���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/righteousmag.com/wp-content__a986334/themes/caster/include/functions/oneclick-demo-import.php
���ѧ٧ѧ�
<?php /* * One Click Demo import Functions */ if ( ! function_exists( 'caster_import_files' ) ) { function caster_import_files() { return array( array( 'import_file_name' => 'Dark Demo Import', 'import_file_url' => 'https://caster.caliberthemes.com/resources/demo-data/creative-portfolio-dark/content.xml', 'import_redux' => array( array( 'file_url' => 'https://caster.caliberthemes.com/resources/demo-data/creative-portfolio-dark/theme-options.json', 'option_name' => 'caster_theme_settings', ), ), 'import_preview_image_url' => 'https://caster.caliberthemes.com/resources/demo-data/creative-portfolio-dark/caster-demo-dark.jpg', 'import_notice' => esc_html__( 'Make sure that all plugins are activated.', 'caster' ), 'preview_url' => 'https://caster.caliberthemes.com/creative-portfolio-dark', ), array( 'import_file_name' => 'Light Demo Import', 'import_file_url' => 'https://caster.caliberthemes.com/resources/demo-data/creative-portfolio-light/content.xml', 'import_redux' => array( array( 'file_url' => 'https://caster.caliberthemes.com/resources/demo-data/creative-portfolio-light/theme-options.json', 'option_name' => 'caster_theme_settings', ), ), 'import_preview_image_url' => 'https://caster.caliberthemes.com/resources/demo-data/creative-portfolio-light/caster-demo-light.jpg', 'import_notice' => esc_html__( 'Make sure that all plugins are activated.', 'caster' ), 'preview_url' => 'https://caster.caliberthemes.com/creative-portfolio-light', ), ); } } add_filter( 'pt-ocdi/import_files', 'caster_import_files' ); if ( ! function_exists( 'caster_after_import_setup' ) ) { function caster_after_import_setup( $selected_import ) { // Assign menus to their locations. $main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', array( 'main-menu' => $main_menu->term_id, ) ); // Assign front page and posts page (blog page). $front_page_id = get_page_by_title( 'Home' ); $blog_page_id = get_page_by_title( 'Blog' ); update_option( 'elementor_disable_color_schemes', 'yes' ); update_option( 'elementor_disable_typography_schemes', 'yes' ); update_option( 'elementor_active_kit', '14' ); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); update_option( 'page_for_posts', $blog_page_id->ID ); } } add_action( 'pt-ocdi/after_import', 'caster_after_import_setup' ); if ( ! function_exists( 'caster_show_system_status' ) ) { function caster_show_system_status( $default_text ) { $max_execution_time = ini_get('max_execution_time'); $memory_limit = ini_get('memory_limit'); $max_post = ini_get('post_max_size'); $max_upload = ini_get('upload_max_filesize'); $default_text .= '<div class="config-info">'; $default_text .= '<div class="config-intro-text">Recommended PHP Configuration Limits</div>'; $default_text .= '<div class="config-text">'; $default_text .= '<span class="config-text-for" >max_execution_time 180</span>'; if( $max_execution_time < 180 ) { $default_text .= '<span class="config-text-fail" >'. $max_execution_time .'</span>'; } else { $default_text .= '<span class="config-text-pass" >'. $max_execution_time .'</span>'; } $default_text .= '</div>'; $default_text .= '<div class="config-text">'; $default_text .= '<span class="config-text-for" >memory_limit 128M</span>'; if( $memory_limit < 128 ) { $default_text .= '<span class="config-text-fail" >'. $memory_limit .'</span>'; } else { $default_text .= '<span class="config-text-pass" >'. $memory_limit .'</span>'; } $default_text .= '</div>'; $default_text .= '<div class="config-text">'; $default_text .= '<span class="config-text-for" >post_max_size 32M </span>'; if( $max_post < 32 ) { $default_text .= '<span class="config-text-fail" >'. $max_post .'</span>'; } else { $default_text .= '<span class="config-text-pass" >'. $max_post .'</span>'; } $default_text .= '</div>'; $default_text .= '<div class="config-text">'; $default_text .= '<span class="config-text-for" >upload_max_filesize 32M </span>'; if( $max_upload < 32 ) { $default_text .= '<span class="config-text-fail" >'. $max_upload .'</span>'; } else { $default_text .= '<span class="config-text-pass" >'. $max_upload .'</span>'; } $default_text .= '</div>'; $default_text .= '</div>'; return $default_text; } } add_filter( 'pt-ocdi/plugin_intro_text', 'caster_show_system_status' ); add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.4 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�