%PDF- %PDF-
Direktori : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/theme-specific/theme.about/ |
Current File : /home/eirtvhdf/makkitrust.org/wp-content/themes/alhambra/theme-specific/theme.about/theme.about.php |
<?php /** * Information about this theme * * @package WordPress * @subpackage ALHAMBRA * @since ALHAMBRA 1.0.30 */ // Redirect to the 'About Theme' page after switch theme if (!function_exists('alhambra_about_after_switch_theme')) { add_action('after_switch_theme', 'alhambra_about_after_switch_theme', 1000); function alhambra_about_after_switch_theme() { update_option('alhambra_about_page', 1); } } if ( !function_exists('alhambra_about_after_setup_theme') ) { add_action( 'init', 'alhambra_about_after_setup_theme', 1000 ); function alhambra_about_after_setup_theme() { if (get_option('alhambra_about_page') == 1) { update_option('alhambra_about_page', 0); wp_safe_redirect(admin_url().'themes.php?page=alhambra_about'); exit(); } } } // Add 'About Theme' item in the Appearance menu if (!function_exists('alhambra_about_add_menu_items')) { add_action( 'admin_menu', 'alhambra_about_add_menu_items' ); function alhambra_about_add_menu_items() { add_theme_page( esc_html__('About Alhambra', 'alhambra'), //page_title esc_html__('About Alhambra', 'alhambra'), //menu_title 'manage_options', //capability 'alhambra_about', //menu_slug 'alhambra_about_page_builder' //callback ); } } // Load page-specific scripts and styles if (!function_exists('alhambra_about_enqueue_scripts')) { add_action( 'admin_enqueue_scripts', 'alhambra_about_enqueue_scripts' ); function alhambra_about_enqueue_scripts() { $screen = function_exists('get_current_screen') ? get_current_screen() : false; if (is_object($screen) && $screen->id == 'appearance_page_alhambra_about') { // Scripts wp_enqueue_script( 'jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true ); if (function_exists('alhambra_plugins_installer_enqueue_scripts')) alhambra_plugins_installer_enqueue_scripts(); // Styles wp_enqueue_style( 'fontello-icons', alhambra_get_file_url('css/font-icons/css/fontello-embedded.css') ); if ( ($fdir = alhambra_get_file_url('theme-specific/theme.about/theme.about.css')) != '' ) wp_enqueue_style( 'alhambra-about', $fdir, array(), null ); } } } // Build 'About Theme' page if (!function_exists('alhambra_about_page_builder')) { function alhambra_about_page_builder() { $theme = wp_get_theme(); ?> <div class="alhambra_about"> <div class="alhambra_about_header"> <div class="alhambra_about_logo"><?php $logo = alhambra_get_file_url('theme-specific/theme.about/logo.jpg'); if (empty($logo)) $logo = alhambra_get_file_url('screenshot.jpg'); if (!empty($logo)) { ?><img src="<?php echo esc_url($logo); ?>"><?php } ?></div> <?php if (ALHAMBRA_THEME_FREE) { ?> <a href="<?php echo esc_url(alhambra_storage_get('theme_download_url')); ?>" target="_blank" class="alhambra_about_pro_link button button-primary"><?php esc_html_e('Get PRO version', 'alhambra'); ?></a> <?php } ?> <h1 class="alhambra_about_title"><?php echo sprintf(esc_html__('Welcome to %s %s v.%s', 'alhambra'), $theme->name, ALHAMBRA_THEME_FREE ? esc_html__('Free', 'alhambra') : '', $theme->version ); ?></h1> <div class="alhambra_about_description"> <?php if (ALHAMBRA_THEME_FREE) { ?><p><?php echo wp_kses_data(sprintf(__('Now you are using Free version of <a href="%s">%s Pro Theme</a>.', 'alhambra'), esc_url(alhambra_storage_get('theme_download_url')), $theme->name ) ); echo '<br>' . wp_kses_data(sprintf(__('This version is SEO- and Retina-ready. It also has a built-in support for parallax and slider with swipe gestures. %s Free is compatible with many popular plugins, such as %s', 'alhambra'), $theme->name, alhambra_about_get_supported_plugins() ) ); ?></p> <p><?php echo wp_kses_data(sprintf(__('We hope you have a great acquaintance with our themes. If you are looking for a fully functional website, you can get the <a href="%s">Pro Version here</a>', 'alhambra'), esc_url(alhambra_storage_get('theme_download_url')) ) ); ?></p><?php } else { ?><p><?php echo wp_kses_data(sprintf(__('%s is a Premium WordPress theme. It has a built-in support for parallax, slider with swipe gestures, and is SEO- and Retina-ready', 'alhambra'), $theme->name ) ); ?></p> <p><?php echo wp_kses_data(sprintf(__('The Premium Theme is compatible with many popular plugins, such as %s', 'alhambra'), alhambra_about_get_supported_plugins() ) ); ?></p><?php } ?> </div> </div> <div id="alhambra_about_tabs" class="alhambra_tabs alhambra_about_tabs"> <ul> <li><a href="#alhambra_about_section_start"><?php esc_html_e('Getting started', 'alhambra'); ?></a></li> <li><a href="#alhambra_about_section_actions"><?php esc_html_e('Recommended actions', 'alhambra'); ?></a></li> <?php if (ALHAMBRA_THEME_FREE) { ?> <li><a href="#alhambra_about_section_pro"><?php esc_html_e('Free vs PRO', 'alhambra'); ?></a></li> <?php } ?> </ul> <div id="alhambra_about_section_start" class="alhambra_tabs_section alhambra_about_section"><?php // Install required plugins if (!alhambra_exists_trx_addons()) { ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-admin-plugins"></i> <?php esc_html_e('ThemeREX Addons', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('It is highly recommended that you install the companion plugin "ThemeREX Addons" to have access to the layouts builder, awesome shortcodes, team and testimonials, services and slider, and many other features ...', 'alhambra'), $theme->name)); ?></div> <?php alhambra_plugins_installer_get_button_html('trx_addons'); ?> </div></div><?php } // Install recommended plugins ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-admin-plugins"></i> <?php esc_html_e('Recommended plugins', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('Theme %s is compatible with a large number of popular plugins. You can install only those that are going to use in the near future.', 'alhambra'), $theme->name)); ?></div> <a href="<?php echo esc_url(admin_url().'themes.php?page=tgmpa-install-plugins'); ?>" class="alhambra_about_block_link button button-primary"><?php esc_html_e('Install plugins', 'alhambra'); ?></a> </div></div><?php // Customizer or Theme Options ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-admin-appearance"></i> <?php esc_html_e('Setup Theme options', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php esc_html_e('Using the WordPress Customizer you can easily customize every aspect of the theme. If you want to use the standard theme settings page - open Theme Options and follow the same steps there.', 'alhambra'); ?></div> <a href="<?php echo esc_url(admin_url().'customize.php'); ?>" class="alhambra_about_block_link button button-primary"><?php esc_html_e('Customizer', 'alhambra'); ?></a> <?php esc_html_e('or', 'alhambra'); ?> <a href="<?php echo esc_url(admin_url().'themes.php?page=theme_options'); ?>" class="alhambra_about_block_link button"><?php esc_html_e('Theme Options', 'alhambra'); ?></a> </div></div><?php // Documentation ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-book"></i> <?php esc_html_e('Read full documentation', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('Need more details? Please check our full online documentation for detailed information on how to use %s.', 'alhambra'), $theme->name)); ?></div> <a href="<?php echo esc_url(alhambra_storage_get('theme_doc_url')); ?>" target="_blank" class="alhambra_about_block_link button button-primary"><?php esc_html_e('Documentation', 'alhambra'); ?></a> </div></div><?php // Support if (!ALHAMBRA_THEME_FREE) { ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-sos"></i> <?php esc_html_e('Support', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('We want to make sure you have the best experience using %s and that is why we gathered here all the necessary informations for you.', 'alhambra'), $theme->name)); ?></div> <a href="<?php echo esc_url(alhambra_storage_get('theme_support_url')); ?>" target="_blank" class="alhambra_about_block_link button button-primary"><?php esc_html_e('Support', 'alhambra'); ?></a> </div></div><?php } // Online Demo ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-images-alt2"></i> <?php esc_html_e('On-line demo', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('Visit the Demo Version of %s to check out all the features it has', 'alhambra'), $theme->name)); ?></div> <a href="<?php echo esc_url(alhambra_storage_get('theme_demo_url')); ?>" target="_blank" class="alhambra_about_block_link button button-primary"><?php esc_html_e('View demo', 'alhambra'); ?></a> </div></div> </div> <div id="alhambra_about_section_actions" class="alhambra_tabs_section alhambra_about_section"><?php // Install required plugins if (!alhambra_exists_trx_addons()) { ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-admin-plugins"></i> <?php esc_html_e('ThemeREX Addons', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('It is highly recommended that you install the companion plugin "ThemeREX Addons" to have access to the layouts builder, awesome shortcodes, team and testimonials, services and slider, and many other features ...', 'alhambra'), $theme->name)); ?></div> <?php alhambra_plugins_installer_get_button_html('trx_addons'); ?> </div></div><?php } // Install recommended plugins ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-admin-plugins"></i> <?php esc_html_e('Recommended plugins', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php echo esc_html(sprintf(__('Theme %s is compatible with a large number of popular plugins. You can install only those that are going to use in the near future.', 'alhambra'), $theme->name)); ?></div> <a href="<?php echo esc_url(admin_url().'themes.php?page=tgmpa-install-plugins'); ?>" class="alhambra_about_block_link button button button-primary"><?php esc_html_e('Install plugins', 'alhambra'); ?></a> </div></div><?php // Customizer or Theme Options ?><div class="alhambra_about_block"><div class="alhambra_about_block_inner"> <h2 class="alhambra_about_block_title"> <i class="dashicons dashicons-admin-appearance"></i> <?php esc_html_e('Setup Theme options', 'alhambra'); ?> </h2> <div class="alhambra_about_block_description"><?php esc_html_e('Using the WordPress Customizer you can easily customize every aspect of the theme. If you want to use the standard theme settings page - open Theme Options and follow the same steps there.', 'alhambra'); ?></div> <a href="<?php echo esc_url(admin_url().'customize.php'); ?>" target="_blank" class="alhambra_about_block_link button button-primary"><?php esc_html_e('Customizer', 'alhambra'); ?></a> <?php esc_html_e('or', 'alhambra'); ?> <a href="<?php echo esc_url(admin_url().'themes.php?page=theme_options'); ?>" class="alhambra_about_block_link button"><?php esc_html_e('Theme Options', 'alhambra'); ?></a> </div></div> </div> <?php if (ALHAMBRA_THEME_FREE) { ?> <div id="alhambra_about_section_pro" class="alhambra_tabs_section alhambra_about_section"> <table class="alhambra_about_table" cellpadding="0" cellspacing="0" border="0"> <thead> <tr> <td class="alhambra_about_table_info"> </td> <td class="alhambra_about_table_check"><?php echo esc_html(sprintf(__('%s Lite', 'alhambra'), $theme->name)); ?></td> <td class="alhambra_about_table_check"><?php echo esc_html(sprintf(__('%s PRO', 'alhambra'), $theme->name)); ?></td> </tr> </thead> <tbody> <?php // Responsive layouts ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Mobile friendly', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Responsive layout. Looks great on any device.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php // Built-in slider ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Built-in posts slider', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Allows you to add beautiful slides using the built-in shortcode/widget "Slider" with swipe gestures support.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php // Revolution slider if (alhambra_storage_isset('required_plugins', 'revslider')) { ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Revolution Slider Compatibility', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Our built-in shortcode/widget "Slider" is able to work not only with posts, but also with slides created in "Revolution Slider".', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php } ?> <?php // SiteOrigin Panels if (alhambra_storage_isset('required_plugins', 'siteorigin-panels')) { ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Free PageBuilder', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Full integration with a nice free page builder "SiteOrigin Panels".', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Additional widgets pack', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('A number of useful shortcodes and widgets to create beautiful homepages and other sections of your website.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-no"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php } ?> <?php // WPBakery Page Builder ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('WPBakery Page Builder', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Full integration with a very popular page builder "WPBakery Page Builder". A number of useful shortcodes and widgets to create beautiful homepages and other sections of your website.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-no"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php // Layouts builder ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Headers and Footers builder', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Powerful visual builder of headers and footers! No manual code editing - use all the advantages of drag-and-drop technology.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-no"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php // Easy Digital Downloads if (alhambra_storage_isset('required_plugins', 'easy-digital-downloads')) { ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Easy Digital Downloads Compatibility', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Ready for digital e-commerce. You can build an online digital store with this theme.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-no"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php } ?> <?php // Other plugins ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Many other popular plugins compatibility', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('PRO version is compatible (was tested and has built-in support) with many popular plugins.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-no"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php // Support ?> <tr> <td class="alhambra_about_table_info"> <h2 class="alhambra_about_table_info_title"> <?php esc_html_e('Support', 'alhambra'); ?> </h2> <div class="alhambra_about_table_info_description"><?php esc_html_e('Our premium support is going to take care of any problems, in case there will be any of course.', 'alhambra'); ?></div> </td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-no"></i></td> <td class="alhambra_about_table_check"><i class="dashicons dashicons-yes"></i></td> </tr> <?php // Get PRO version ?> <tr> <td class="alhambra_about_table_info"> </td> <td class="alhambra_about_table_check" colspan="2"> <a href="<?php echo esc_url(alhambra_storage_get('theme_download_url')); ?>" target="_blank" class="alhambra_about_block_link alhambra_about_pro_link button button-primary"><?php esc_html_e('Get PRO version', 'alhambra'); ?></a> </td> </tr> </tbody> </table> </div> <?php } ?> </div> </div> <?php } } // Utils //------------------------------------ // Return supported plugin's names if (!function_exists('alhambra_about_get_supported_plugins')) { function alhambra_about_get_supported_plugins() { return '"' . join('", "', array_values(alhambra_storage_get('required_plugins'))) . '"'; } } require_once ALHAMBRA_THEME_DIR . 'includes/plugins.installer/plugins.installer.php'; ?>