PATH:
home
/
letacommog
/
chevaldefeu
/
wp-content
/
plugins
/
cmp-coming-soon-maintenance
/
inc
/
settings
<?php defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); ?> <div class="table-wrapper general"> <h3><?php _e('Available Themes', 'cmp-coming-soon-maintenance');?></h3> <table class="general theme-selector"> <tr> <td class="theme-selector"> <fieldset> <legend class="screen-reader-text"> <span><?php _e('Free Themes', 'cmp-coming-soon-maintenance');?> </span> </legend> <?php // move active theme to beginning $key = array_search ( $this->cmp_selectedTheme(), $this->cmp_themes_available() ); $themes = $this->cmp_themes_available(); if ( $key ) { $active = $themes[$key]; unset( $themes[$key] ); array_unshift( $themes, $active ); } // define what attribute we want from style.css header $headers = array('Version'); foreach ( $themes as $theme_slug ) { $version = $this->cmp_theme_version( $theme_slug ); $type = 'standard'; // if premium get theme version if ( in_array( $theme_slug, $this->cmp_premium_themes_installed() ) ) { $type = 'premium'; } // get thumbnail $thumbnail = plugins_url('../../img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__); // if no thumbnail in CMP plugin folder, check directly in CMP theme folder if ( !file_exists( CMP_PLUGIN_DIR . 'img/thumbnails/'. $theme_slug . '_thumbnail.jpg' ) ) { $thumbnail = $this->cmp_themeURL( $themeslug ) . $theme_slug . '/img/thumbnail.jpg'; } ?> <div class="theme-wrapper<?php if ( $this->cmp_selectedTheme() == $theme_slug ) { echo ' active'; } ?>" data-security="<?php echo esc_attr($ajax_nonce);?>" data-type="<?php echo esc_attr($type);?>" data-purchased="1" data-slug="<?php echo esc_attr($theme_slug);?>" data-version="<?php echo esc_html($version);?>" data-remote_url="<?php echo esc_url(CMP_UPDATE_URL);?>"> <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div> <div class="buttons-wrapper"> <div class="button theme-select hide<?php echo ( $this->cmp_selectedTheme() == $theme_slug ) ? ' activated' : '';?>"> <input type="radio" name="niteoCS_select_theme" value="<?php echo esc_attr($theme_slug);?>" id="displayOption-<?php echo esc_attr($theme_slug);?>"<?php if ( $this->cmp_selectedTheme() == $theme_slug ) { echo ' checked="checked"'; } ?>> <span class="input-label"><?php if ( $this->cmp_selectedTheme() == $theme_slug ) { _e('Active', 'cmp-coming-soon-maintenance'); } else { _e('Select', 'cmp-coming-soon-maintenance'); }?></span> </div> <a href="<?php echo esc_url( get_site_url().'?cmp_preview=true&cmp_theme='.$theme_slug );?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a> <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button> </div> <div class="theme-inputs"> <span class="theme-title"><?php echo ucwords(esc_html(str_replace('_', ' ', $theme_slug)));?></span> <?php echo ( $this->cmp_selectedTheme() == $theme_slug ) ? ' <span class="italic">'.__('Active', 'cmp-coming-soon-maintenance').'</span>' : '';?> <span class="theme-version">ver. <?php echo esc_html( $version );?></span> </div> <!-- theme-inputs --> </div> <!-- theme-wrapper --> <?php } ?> </fieldset> </td> </tr> <?php echo $this->render_settings->submit(); ?> </tbody> </table> <div class="theme-overlay cmp"></div> </div> <?php if ( !empty( $downloadable_themes ) ) { ?> <div class="table-wrapper general"> <h3><?php _e('Download more CMP Themes', 'cmp-coming-soon-maintenance');?></h3> <table class="general theme-selector"> <tbody> <tr> <td class="theme-selector"> <fieldset> <legend class="screen-reader-text"> <span><?php _e('Premium Themes', 'cmp-coming-soon-maintenance');?> </span> </legend> <?php // build previews for downloadable themes foreach ( $downloadable_themes as $premium_theme ) { $theme_slug = $premium_theme['name']; switch ( $theme_slug ) { case 'pluto': $background = '4'; break; default: $background = '1'; break; } $thumbnail = plugins_url('../../img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__); ?> <div class="theme-wrapper premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium"> <div class="thumbnail-holder theme-details" style="background-image:url('<?php echo esc_url( $thumbnail ); ?>')"></div> <div class="buttons-wrapper"> <a href="<?php echo esc_url ( $premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php echo sprintf(__('Get %s', 'cmp-coming-soon-maintenance'), ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) ));?></a> <a href="<?php echo 'https://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&background='.$background.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a> <button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button> </div> <div class="theme-inputs"> <span class="theme-title"><?php echo ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) );?></span> <?php echo ( $premium_theme['price'] == '0' ) ? '<span class="theme-version"> ('. __('freebie') .')</span>' : ''; ?> </div> </div> <?php } ?> </fieldset> </td> </tr> <?php echo $this->render_settings->submit(); ?> </tbody> </table> </div> <?php } // if !empty($premium_themes
[+]
..
[-] settings-logo.php
[edit]
[-] settings-subscribe-disabled.php
[edit]
[-] settings-contact_form.php
[edit]
[-] settings-subscribe.php
[edit]
[-] settings-background.php
[edit]
[-] settings-font-selector.php
[edit]
[-] settings-slider.php
[edit]
[-] settings-slider-disabled.php
[edit]
[-] settings-footer-disabled.php
[edit]
[-] settings-special_effects-disabled.php
[edit]
[-] settings-theme-selector.php
[edit]
[-] settings-contact_form-disabled.php
[edit]
[-] settings-logo-disabled.php
[edit]
[-] settings-counter-disabled.php
[edit]
[-] settings-social-media.php
[edit]
[-] settings-footer.php
[edit]
[-] settings-counter.php
[edit]
[-] settings-special_effects.php
[edit]