Changeset 1239547
- Timestamp:
- 09/07/2015 07:38:08 AM (11 years ago)
- Location:
- kopatheme/trunk
- Files:
-
- 5 edited
-
includes/admin/class-kopa-admin-settings.php (modified) (2 diffs)
-
includes/admin/settings/class-kopa-settings-backup-manager.php (modified) (2 diffs)
-
includes/kopa-settings-functions.php (modified) (1 diff)
-
kopa-framework.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kopatheme/trunk/includes/admin/class-kopa-admin-settings.php
r1208795 r1239547 59 59 include_once( 'settings/class-kopa-settings-page.php' ); 60 60 61 // $settings[] = include( 'settings/class-kopa-settings-theme-options.php' ); 62 $settings[] = include( 'settings/class-kopa-settings-sidebar-manager.php' ); 63 $settings[] = include( 'settings/class-kopa-settings-layout-manager.php' ); 64 $settings[] = include( 'settings/class-kopa-settings-backup-manager.php' ); 61 $enables = array( 62 'theme-options' => apply_filters( 'kopa_settings_theme_options_enable', 1 ), 63 'sidebar-manager' => apply_filters( 'kopa_settings_sidebar_manager_enable', 1 ), 64 'layout-manager' => apply_filters( 'kopa_settings_layout_manager_enable', 1 ), 65 'backup-manager' => apply_filters( 'kopa_settings_backup_manager_enable', 1 ), 66 ); 67 68 if ( $enables['theme-options'] ) { 69 $settings[] = include( 'settings/class-kopa-settings-theme-options.php' ); 70 } 71 72 if ( $enables['sidebar-manager'] ) { 73 $settings[] = include( 'settings/class-kopa-settings-sidebar-manager.php' ); 74 } 75 76 if ( $enables['layout-manager'] ) { 77 $settings[] = include( 'settings/class-kopa-settings-layout-manager.php' ); 78 } 79 80 if ( $enables['backup-manager'] ) { 81 $settings[] = include( 'settings/class-kopa-settings-backup-manager.php' ); 82 } 65 83 66 84 self::$settings = apply_filters( 'kopa_get_settings_pages', $settings ); … … 189 207 190 208 // Get current tab/section 191 $kopa_current_tab = empty( $_GET['tab'] ) ? apply_filters( 'kopa_current_tab_default', ' sidebar-manager' ) : sanitize_title( $_GET['tab'] );209 $kopa_current_tab = empty( $_GET['tab'] ) ? apply_filters( 'kopa_current_tab_default', 'theme-options' ) : sanitize_title( $_GET['tab'] ); 192 210 193 211 // Determines whether or not show save submit button -
kopatheme/trunk/includes/admin/settings/class-kopa-settings-backup-manager.php
r1208795 r1239547 65 65 */ 66 66 'options' => array( 67 'sidebar-manager,layout-manager' => __( 'All Settings', 'kopa-framework' ), 67 'theme-options,sidebar-manager,layout-manager' => __( 'All Settings (This will contain all of the options listed below.)', 'kopa-framework' ), 68 'theme-options' => __( 'Theme Options', 'kopa-framework' ), 69 'sidebar-manager,layout-manager' => __( 'Sidebars & Layouts', 'kopa-framework' ), 68 70 ), 69 'default' => ' sidebar-manager,layout-manager',71 'default' => 'theme-options,sidebar-manager,layout-manager', 70 72 ), 71 73 … … 97 99 */ 98 100 'options' => array( 99 'sidebar-manager,layout-manager' => __( 'All Settings', 'kopa-framework' ), 101 'theme-options,sidebar-manager,layout-manager' => __( 'All Settings (This will contain all of the options listed below.)', 'kopa-framework' ), 102 'theme-options' => __( 'Theme Options', 'kopa-framework' ), 103 'sidebar-manager,layout-manager' => __( 'Sidebars & Layouts', 'kopa-framework' ), 100 104 ), 101 'default' => ' sidebar-manager,layout-manager',105 'default' => 'theme-options,sidebar-manager,layout-manager', 102 106 ), 103 107 ) ); -
kopatheme/trunk/includes/kopa-settings-functions.php
r1208795 r1239547 129 129 } 130 130 131 if ( $current_layout_id && ! empty( $setting['sidebars'][ $current_layout_id ] )) {131 if ( $current_layout_id ) { 132 132 $return_data['layout_id'] = $current_layout_id; 133 $return_data['sidebars'] = $setting['sidebars'][ $current_layout_id ];133 $return_data['sidebars'] = isset( $setting['sidebars'][ $current_layout_id ] ) ? $setting['sidebars'][ $current_layout_id ] : array(); 134 134 } 135 135 } -
kopatheme/trunk/kopa-framework.php
r1231034 r1239547 3 3 * Plugin Name: Kopa Framework 4 4 * Description: A WordPress framework by Kopatheme. 5 * Version: 1.0. 95 * Version: 1.0.10 6 6 * Author: Kopa Theme 7 7 * Author URI: http://kopatheme.com … … 25 25 * @copyright 2014 Kopatheme 26 26 * @license GPLv2 or later 27 * @version 1.0. 727 * @version 1.0.10 28 28 * @package KopaFramework 29 29 * @link http://kopatheme.com … … 35 35 * @var string framework version 36 36 */ 37 public $version = '1.0. 9';37 public $version = '1.0.10'; 38 38 39 39 /** -
kopatheme/trunk/readme.txt
r1231034 r1239547 5 5 Requires at least: 3.8 6 6 Tested up to: 4.3 7 Stable tag: 1.0. 97 Stable tag: 1.0.10 8 8 License: GPLv2 or later 9 9 … … 21 21 22 22 == Changelog == 23 = 1.0.10 = 24 * Updated: show theme options by default 25 * Updated: add hooks for optional include theme options, sidebar manager, layout manager, backup manager 26 23 27 = 1.0.9 = 24 28 * Fix: "The Called Constructor Method For WP_Widget Is Deprecated Since Version 4.3.0! Use __construct()".
Note: See TracChangeset
for help on using the changeset viewer.