Changeset 1467551
- Timestamp:
- 08/04/2016 09:42:02 AM (9 years ago)
- Location:
- kopatheme/trunk
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kopatheme/trunk/assets/css/admin.css
r1462248 r1467551 719 719 } 720 720 721 .kopa_section_group_layout .kopa_group_content { 722 overflow: hidden; 723 } 724 .kopa_section_group_layout .kopa_section_layout_image img { 725 padding: 2px; 726 border: 1px solid #ddd; 727 background-color: #fafafa; 728 } 729 721 730 @media screen and (max-width: 1023px) { 722 731 #kopa_options_wrap .postbox { -
kopatheme/trunk/assets/css/admin.scss
r1462248 r1467551 344 344 } 345 345 .kopa_group_content { 346 padding-top: 1px; 347 // overflow: hidden; 346 padding-top: 1px; 348 347 } 349 348 .kopa_section_layout_image { … … 649 648 } 650 649 651 @media screen and (max-width: 1270px) { 652 653 } 650 .kopa_section_group_layout{ 651 .kopa_group_content{ 652 overflow: hidden; 653 } 654 655 .kopa_section_layout_image img{ 656 padding: 2px; 657 border: 1px solid #ddd; 658 background-color: #fafafa; 659 } 660 } 661 662 654 663 @media screen and (max-width: 1023px) { 655 664 … … 700 709 } 701 710 } 702 @media screen and (max-width: 979px) { 703 } 704 @media screen and (max-width: 899px) { 705 } 706 @media screen and (max-width: 799px) { 707 } 708 @media screen and (max-width: 767px) { 709 } 710 @media screen and (max-width: 639px) { 711 } 712 @media screen and (max-width: 599px) { 713 } 714 @media screen and (max-width: 479px) { 715 } 716 @media screen and (max-width: 359px) { 717 } 711 718 712 @media only screen and (min-width: 1280px) and (max-width: 1366px) { 719 713 #kopa_options_wrap { … … 734 728 } 735 729 } 736 @media only screen and (min-width: 980px) and (max-width: 1023px) { 737 } 738 @media only screen and (min-width: 900px) and (max-width: 979px) { 739 } 740 @media only screen and (min-width: 800px) and (max-width: 899px) { 741 } 742 @media only screen and (min-width: 768px) and (max-width: 799px) { 743 } 744 @media only screen and (min-width: 640px) and (max-width: 767px) { 745 } 746 @media only screen and (min-width: 600px) and (max-width: 639px) { 747 } 748 @media only screen and (min-width: 480px) and (max-width: 599px) { 749 } 750 @media only screen and (min-width: 360px) and (max-width: 479px) { 751 } 752 @media only screen and (min-width: 320px) and (max-width: 359px) { 753 } 730 -
kopatheme/trunk/assets/css/widget.css
r1462248 r1467551 955 955 .kopa-icon-picker-preview { 956 956 display: block; 957 height: 3 0px;958 line-height: 3 0px;957 height: 35px; 958 line-height: 35px; 959 959 text-align: center; 960 960 float: left; … … 1028 1028 margin-top: 12px; 1029 1029 padding-top: 12px; 1030 margin-left: -15px;1031 margin-right: -15px;1030 margin-left: 0px; 1031 margin-right: 0px; 1032 1032 border-top: 1px solid #eee; 1033 1033 } … … 1108 1108 cursor: pointer; 1109 1109 } 1110 1111 .kopa_section:before, .kopa_section:after { 1112 content: " "; 1113 display: table; 1114 } 1115 1116 .kopa_section:after { 1117 clear: both; 1118 } 1119 1120 .kopa-metabox-wrapper .kopa_screenshot { 1121 display: block; 1122 text-align: center; 1123 background-color: #eee; 1124 border: 1px solid #ddd; 1125 padding: 24px; 1126 } 1127 .kopa-metabox-wrapper .kopa_screenshot img { 1128 max-width: 320px; 1129 } 1130 .kopa-metabox-wrapper .kopa_screenshot .kopa_remove_image { 1131 display: none; 1132 } -
kopatheme/trunk/assets/css/widget.scss
r1462248 r1467551 952 952 .kopa-icon-picker-preview { 953 953 display: block; 954 height: 3 0px;955 line-height: 3 0px;954 height: 35px; 955 line-height: 35px; 956 956 text-align: center; 957 957 float: left; … … 1106 1106 1107 1107 } 1108 1109 .kopa_section:before, .kopa_section:after { 1110 content: " "; 1111 display: table; 1112 } 1113 1114 .kopa_section:after { 1115 clear: both; 1116 } 1117 1118 .kopa-metabox-wrapper{ 1119 1120 .kopa_screenshot{ 1121 display: block; 1122 text-align: center; 1123 background-color: #eee; 1124 border: 1px solid #ddd; 1125 padding: 24px; 1126 1127 img{ 1128 max-width: 320px; 1129 } 1130 1131 .kopa_remove_image{ 1132 display: none; 1133 } 1134 } 1135 1136 } -
kopatheme/trunk/includes/admin/class-kopa-admin-assets.php
r1462248 r1467551 13 13 if ( ! class_exists( 'Kopa_Admin_Assets' ) ) { 14 14 15 /**16 * Kopa_Admin_Assets Class17 */18 class Kopa_Admin_Assets {19 20 15 /** 21 * Hook in tabs. 22 * 23 * @since 1.0.0 24 * @access public 16 * Kopa_Admin_Assets Class 25 17 */ 26 public function __construct() { 27 add_action( 'admin_enqueue_scripts', array( $this, 'admin_styles' ) ); 28 add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) ); 18 class Kopa_Admin_Assets { 19 20 /** 21 * Hook in tabs. 22 * 23 * @since 1.0.0 24 * @access public 25 */ 26 public function __construct() { 27 add_action( 'admin_enqueue_scripts', array( $this, 'admin_styles' ) ); 28 add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) ); 29 } 30 31 /** 32 * Enqueue styles 33 * 34 * @since 1.0.0 35 * @access public 36 */ 37 public function admin_styles($hook) { 38 global $wp_scripts; 39 40 $screen = get_current_screen(); 41 42 // Admin styles for admins pages only 43 wp_register_style( 'kopa_admin', KF()->framework_url() . '/assets/css/admin.css', array(), KOPA_FRAMEWORK_VERSION ); 44 45 // font awesome 46 wp_register_style( 'kopa_font_awesome', KF()->framework_url() . '/assets/css/font-awesome.css', array(), '4.0.3' ); 47 48 // style for custom layout feature 49 wp_register_style( 'kopa_custom_layout', KF()->framework_url() . '/assets/css/custom-layout.css', array(), KOPA_FRAMEWORK_VERSION ); 50 51 // Widget form styles 52 wp_register_style( 'kopa_widget', KF()->framework_url() . '/assets/css/widget.css', array(), KOPA_FRAMEWORK_VERSION ); 53 54 // Advanced field 55 $advanced_field = apply_filters('kopa_admin_metabox_advanced_field', false); 56 if ( $advanced_field ) { 57 wp_register_style( 'kopa_datetimepicker', KF()->framework_url() . '/assets/css/jquery.datetimepicker.css', array(), KOPA_FRAMEWORK_VERSION ); 58 } 59 60 if(in_array($hook, array('widgets.php', 'post.php', 'post-new.php'))){ 61 wp_enqueue_style( 'kopa_widget' ); 62 if ( $advanced_field ) { 63 wp_enqueue_style( 'kopa_datetimepicker' ); 64 wp_enqueue_style( 'kopa_font_awesome' ); 65 wp_enqueue_style( 'kopa_jquery_ui' ); 66 wp_enqueue_style( 'kopa_jquery_ui_structure' ); 67 wp_enqueue_style( 'kopa_jquery_ui_theme' ); 68 69 wp_enqueue_script( 'jquery-ui-core' ); 70 wp_enqueue_script( 'jquery-ui-dialog' ); 71 wp_enqueue_script( 'jquery-ui-position' ); 72 wp_enqueue_script( 'jquery-ui-droppable' ); 73 wp_enqueue_script( 'jquery-ui-draggable' ); 74 } 75 } 76 77 // check admin pages to enqueue styles 78 if ( in_array( $screen->id, kopa_get_screen_ids() ) ) { 79 wp_enqueue_style( 'kopa_font_awesome' ); 80 wp_enqueue_style( 'kopa_admin' ); 81 wp_enqueue_style( 'wp-color-picker' ); 82 wp_enqueue_style( 'thickbox' ); 83 } 84 85 do_action( 'kopa_admin_css' ); 86 } 87 88 89 /** 90 * Enqueue scripts 91 * 92 * @since 1.0.0 93 * @access public 94 */ 95 public function admin_scripts() { 96 global $wp_query, $post; 97 98 $screen = get_current_screen(); 99 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 100 101 // Register scripts 102 wp_register_script( 'kopa_admin', KF()->framework_url() . '/assets/js/admin'.$suffix.'.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable', 'kopa_media_uploader' ), KOPA_FRAMEWORK_VERSION ); 103 104 wp_register_script( 'kopa_dynamic_sidebar', KF()->framework_url() .'/assets/js/admin-sidebar'.$suffix.'.js', array( 'jquery', 'jquery-ui-sortable', 'thickbox' ), KOPA_FRAMEWORK_VERSION ); 105 106 wp_register_script( 'kopa_dynamic_layout', KF()->framework_url() .'/assets/js/admin-layout'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION ); 107 108 // script for custom layout feature 109 wp_register_script( 'kopa_custom_layout', KF()->framework_url() . '/assets/js/custom-layout'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION ); 110 111 wp_register_script( 'kopa_custom_fields', KF()->framework_url() . '/assets/js/admin-fields'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION ); 112 113 wp_register_script( 'kopa_media_uploader', KF()->framework_url() . '/assets/js/media-uploader'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION ); 114 115 // script for advanced fields 116 $advanced_field = apply_filters('kopa_admin_metabox_advanced_field', false); 117 if ( $advanced_field ) { 118 wp_register_script( 'kopa_datetimepicker', KF()->framework_url() . '/assets/js/jquery.datetimepicker'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION ); 119 } 120 121 // KopaFramework admin pages 122 if ( in_array( $screen->id, kopa_get_screen_ids() ) ) { 123 124 wp_enqueue_script( 'kopa_admin' ); 125 wp_localize_script( 'kopa_admin', 'kopa_google_fonts', kopa_google_font_property_list_array() ); 126 wp_localize_script( 'kopa_admin', 'kopa_google_font_families', kopa_google_font_list() ); 127 wp_localize_script( 'kopa_admin', 'kopa_system_fonts', kopa_system_font_list() ); 128 wp_localize_script( 'kopa_admin', 'kopa_font_styles', kopa_font_style_options() ); 129 wp_localize_script( 'kopa_admin', 'kopa_custom_font_attributes', array( 130 'name' => array( 131 'type' => 'text', 132 'placeholder' => __( 'Enter font name', 'kopa-framework' ), 133 'required' => false, 134 'value' => __( 'Custom font', 'kopa-framework' ), 135 ), 136 'woff' => array( 137 'type' => 'upload', 138 'placeholder' => __( 'Upload .woff font file', 'kopa-framework' ), 139 'mimes' => 'font/woff', 140 ), 141 'ttf' => array( 142 'type' => 'upload', 143 'placeholder' => __( 'Upload .ttf font file', 'kopa-framework' ), 144 'mimes' => 'font/truetype', 145 ), 146 'eot' => array( 147 'type' => 'upload', 148 'placeholder' => __( 'Upload .eot font file', 'kopa-framework' ), 149 'mimes' => 'font/eot', 150 ), 151 'svg' => array( 152 'type' => 'upload', 153 'placeholder' => __( 'Upload .svg font file', 'kopa-framework' ), 154 'mimes' => 'font/svg', 155 ), 156 ) ); 157 wp_localize_script( 'kopa_admin', 'kopa_admin_l10n', array( 158 'upload' => __( 'Upload', 'kopa-framework' ), 159 'remove' => __( 'Remove', 'kopa-framework' ), 160 'confirm_reset' => __( 'Click OK to reset. Any selected settings will be lost!', 'kopa-framework' ), 161 'confirm_import' => __( 'Click OK to import. Any selected settings will be lost!', 'kopa-framework' ), 162 'confirm_delete' => __( 'Are you sure you want to delete?', 'kopa-framework' )) 163 ); 164 wp_enqueue_script( 'kopa_dynamic_sidebar' ); 165 wp_localize_script( 'kopa_dynamic_sidebar', 'kopa_sidebar_attributes_l10n', array( 166 'ajax_url' => admin_url('admin-ajax.php'), 167 'warning' => __( 'Warning', 'kopa-framework' ), 168 'error' => __( 'Error', 'kopa-framework' ), 169 'info' => __( 'Info', 'kopa-framework' ), 170 'confirm_message' => __( 'Are you sure you want to delete?', 'kopa-framework' ), 171 'close' => __( 'Close', 'kopa-framework' ), 172 'remove' => __( 'Delete', 'kopa-framework' ), 173 'advanced_settings' => __( 'Advanced Settings', 'kopa-framework' ), 174 'attributes' => array( 175 'name' => __( 'Name', 'kopa-framework' ), 176 'description' => __( 'Description', 'kopa-framework' ), 177 'before_widget' => __( 'Before Widget', 'kopa-framework' ), 178 'after_widget' => __( 'After Widget', 'kopa-framework' ), 179 'before_title' => __( 'Before Title', 'kopa-framework' ), 180 'after_title' => __( 'After Title', 'kopa-framework' ), 181 ), 182 ) ); 183 wp_enqueue_script( 'kopa_dynamic_layout' ); 184 } 185 186 // script for widget upload fields 187 wp_enqueue_media(); 188 wp_enqueue_script( 'kopa_media_uploader' ); 189 wp_enqueue_script( 'kopa_custom_fields' ); 190 191 wp_localize_script( 'kopa_media_uploader', 'kopa_upload_l10n', array( 192 'upload' => '+', 193 'remove' => '–', 194 ) 195 ); 196 197 if ( $advanced_field ) { 198 wp_enqueue_script( 'kopa_datetimepicker' ); 199 wp_localize_script( 'kopa_custom_fields', 'kopa_advanced_field', array( 200 'ajax_url' => admin_url('admin-ajax.php'), 201 'i18n' => array( 'icon_picker' => esc_attr__( 'Icon Picker', 'kopa-framework' ) ) 202 ) 203 ); 204 } 205 206 } 207 29 208 } 30 209 31 /**32 * Enqueue styles33 *34 * @since 1.0.035 * @access public36 */37 public function admin_styles($hook) {38 global $wp_scripts;39 40 $screen = get_current_screen();41 42 // Admin styles for admins pages only43 wp_register_style( 'kopa_admin', KF()->framework_url() . '/assets/css/admin.css', array(), KOPA_FRAMEWORK_VERSION );44 45 // font awesome46 wp_register_style( 'kopa_font_awesome', KF()->framework_url() . '/assets/css/font-awesome.css', array(), '4.0.3' );47 48 // style for custom layout feature49 wp_register_style( 'kopa_custom_layout', KF()->framework_url() . '/assets/css/custom-layout.css', array(), KOPA_FRAMEWORK_VERSION );50 51 // Widget form styles52 wp_register_style( 'kopa_widget', KF()->framework_url() . '/assets/css/widget.css', array(), KOPA_FRAMEWORK_VERSION );53 54 // Advanced field55 $advanced_field = apply_filters('kopa_admin_metabox_advanced_field', false);56 if ( $advanced_field ) {57 wp_register_style( 'kopa_datetimepicker', KF()->framework_url() . '/assets/css/jquery.datetimepicker.css', array(), KOPA_FRAMEWORK_VERSION );58 }59 60 if(in_array($hook, array('widgets.php', 'post.php', 'post-new.php'))){61 wp_enqueue_style( 'kopa_widget' );62 if ( $advanced_field ) {63 wp_enqueue_style( 'kopa_datetimepicker' );64 wp_enqueue_style( 'kopa_font_awesome' );65 wp_enqueue_style( 'kopa_jquery_ui' );66 wp_enqueue_style( 'kopa_jquery_ui_structure' );67 wp_enqueue_style( 'kopa_jquery_ui_theme' );68 69 wp_enqueue_script( 'jquery-ui-core' );70 wp_enqueue_script( 'jquery-ui-dialog' );71 wp_enqueue_script( 'jquery-ui-position' );72 wp_enqueue_script( 'jquery-ui-droppable' );73 wp_enqueue_script( 'jquery-ui-draggable' );74 }75 }76 77 // check admin pages to enqueue styles78 if ( in_array( $screen->id, kopa_get_screen_ids() ) ) {79 wp_enqueue_style( 'kopa_font_awesome' );80 wp_enqueue_style( 'kopa_admin' );81 wp_enqueue_style( 'wp-color-picker' );82 wp_enqueue_style( 'thickbox' );83 }84 85 do_action( 'kopa_admin_css' );86 }87 88 89 /**90 * Enqueue scripts91 *92 * @since 1.0.093 * @access public94 */95 public function admin_scripts() {96 global $wp_query, $post;97 98 $screen = get_current_screen();99 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';100 101 // Register scripts102 wp_register_script( 'kopa_admin', KF()->framework_url() . '/assets/js/admin'.$suffix.'.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable', 'kopa_media_uploader' ), KOPA_FRAMEWORK_VERSION );103 104 wp_register_script( 'kopa_dynamic_sidebar', KF()->framework_url() .'/assets/js/admin-sidebar'.$suffix.'.js', array( 'jquery', 'jquery-ui-sortable', 'thickbox' ), KOPA_FRAMEWORK_VERSION );105 106 wp_register_script( 'kopa_dynamic_layout', KF()->framework_url() .'/assets/js/admin-layout'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );107 108 // script for custom layout feature109 wp_register_script( 'kopa_custom_layout', KF()->framework_url() . '/assets/js/custom-layout'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );110 111 wp_register_script( 'kopa_media_uploader', KF()->framework_url() . '/assets/js/media-uploader'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );112 113 // script for advanced fields114 $advanced_field = apply_filters('kopa_admin_metabox_advanced_field', false);115 if ( $advanced_field ) {116 wp_register_script( 'kopa_datetimepicker', KF()->framework_url() . '/assets/js/jquery.datetimepicker'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );117 wp_register_script( 'kopa_custom_advanced_fields', KF()->framework_url() . '/assets/js/custom-advanced-fields'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );118 wp_register_script( 'kopa_custom_advanced_fields_gallery', KF()->framework_url() . '/assets/js/gallery'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );119 wp_register_script( 'kopa_custom_advanced_fields_icon_picker', KF()->framework_url() . '/assets/js/icon_picker'.$suffix.'.js', array( 'jquery' ), KOPA_FRAMEWORK_VERSION );120 }121 122 // KopaFramework admin pages123 if ( in_array( $screen->id, kopa_get_screen_ids() ) ) {124 125 wp_enqueue_script( 'kopa_admin' );126 wp_localize_script( 'kopa_admin', 'kopa_google_fonts', kopa_google_font_property_list_array() );127 wp_localize_script( 'kopa_admin', 'kopa_google_font_families', kopa_google_font_list() );128 wp_localize_script( 'kopa_admin', 'kopa_system_fonts', kopa_system_font_list() );129 wp_localize_script( 'kopa_admin', 'kopa_font_styles', kopa_font_style_options() );130 wp_localize_script( 'kopa_admin', 'kopa_custom_font_attributes', array(131 'name' => array(132 'type' => 'text',133 'placeholder' => __( 'Enter font name', 'kopa-framework' ),134 'required' => false,135 'value' => __( 'Custom font', 'kopa-framework' ),136 ),137 'woff' => array(138 'type' => 'upload',139 'placeholder' => __( 'Upload .woff font file', 'kopa-framework' ),140 'mimes' => 'font/woff',141 ),142 'ttf' => array(143 'type' => 'upload',144 'placeholder' => __( 'Upload .ttf font file', 'kopa-framework' ),145 'mimes' => 'font/truetype',146 ),147 'eot' => array(148 'type' => 'upload',149 'placeholder' => __( 'Upload .eot font file', 'kopa-framework' ),150 'mimes' => 'font/eot',151 ),152 'svg' => array(153 'type' => 'upload',154 'placeholder' => __( 'Upload .svg font file', 'kopa-framework' ),155 'mimes' => 'font/svg',156 ),157 ) );158 wp_localize_script( 'kopa_admin', 'kopa_admin_l10n', array(159 'upload' => __( 'Upload', 'kopa-framework' ),160 'remove' => __( 'Remove', 'kopa-framework' ),161 'confirm_reset' => __( 'Click OK to reset. Any selected settings will be lost!', 'kopa-framework' ),162 'confirm_import' => __( 'Click OK to import. Any selected settings will be lost!', 'kopa-framework' ),163 'confirm_delete' => __( 'Are you sure you want to delete?', 'kopa-framework' ),164 ) );165 166 if ( function_exists( 'wp_enqueue_media' ) ) {167 wp_enqueue_media();168 }169 170 wp_enqueue_script( 'kopa_dynamic_sidebar' );171 wp_localize_script( 'kopa_dynamic_sidebar', 'kopa_sidebar_attributes_l10n', array(172 'ajax_url' => admin_url('admin-ajax.php'),173 'warning' => __( 'Warning', 'kopa-framework' ),174 'error' => __( 'Error', 'kopa-framework' ),175 'info' => __( 'Info', 'kopa-framework' ),176 'confirm_message' => __( 'Are you sure you want to delete?', 'kopa-framework' ),177 'close' => __( 'Close', 'kopa-framework' ),178 'remove' => __( 'Delete', 'kopa-framework' ),179 'advanced_settings' => __( 'Advanced Settings', 'kopa-framework' ),180 'attributes' => array(181 'name' => __( 'Name', 'kopa-framework' ),182 'description' => __( 'Description', 'kopa-framework' ),183 'before_widget' => __( 'Before Widget', 'kopa-framework' ),184 'after_widget' => __( 'After Widget', 'kopa-framework' ),185 'before_title' => __( 'Before Title', 'kopa-framework' ),186 'after_title' => __( 'After Title', 'kopa-framework' ),187 ),188 ) );189 190 wp_enqueue_script( 'kopa_dynamic_layout' );191 }192 193 // script for widget upload fields194 if ( 'widgets' === $screen->id ) {195 wp_enqueue_script( 'kopa_media_uploader' );196 wp_localize_script( 'kopa_media_uploader', 'kopa_upload_l10n', array(197 'upload' => '+',198 'remove' => '–',199 ) );200 if ( function_exists( 'wp_enqueue_media' ) ) {201 wp_enqueue_media();202 }203 204 // advanced fields205 if ( $advanced_field ) {206 wp_enqueue_script( 'kopa_datetimepicker' );207 wp_enqueue_script( 'kopa_custom_advanced_fields' );208 wp_localize_script('kopa_custom_advanced_fields', 'kopa_advanced_field', array(209 'ajax_url' => admin_url('admin-ajax.php'),210 'i18n' => array(211 'icon_picker' => esc_attr__('Icon Picker', 'kopa-framework'),212 )213 ));214 }215 } else {216 wp_localize_script( 'kopa_media_uploader', 'kopa_upload_l10n', array(217 'upload' => __( 'Upload', 'kopa-framework' ),218 'remove' => __( 'Remove', 'kopa-framework' ),219 ) );220 221 // advanced fields222 if ( $advanced_field ) {223 wp_enqueue_script( 'kopa_datetimepicker' );224 wp_enqueue_script( 'kopa_custom_advanced_fields' );225 wp_localize_script('kopa_custom_advanced_fields', 'kopa_advanced_field', array(226 'ajax_url' => admin_url('admin-ajax.php'),227 'i18n' => array(228 'icon_picker' => esc_attr__('Icon Picker', 'kopa-framework'),229 )230 ));231 232 }233 210 } 234 211 235 }236 237 }238 239 }240 241 212 return new Kopa_Admin_Assets(); -
kopatheme/trunk/includes/admin/class-kopa-admin-meta-box.php
r1462803 r1467551 372 372 } else { 373 373 $output .= '<small class="kopa_upload_notice">'.esc_html__( 'Upgrade your version of WordPress for full media support.', 'kopa-framework' ).'</small>'; 374 } 375 $output .= $option_wrap_end; 374 } 376 375 377 376 $output .= '<p class="kopa_screenshot">'; … … 387 386 $output .= '</p>'; 388 387 $output .= '</div>'; 388 389 $output .= $option_wrap_end; 389 390 break; 390 391 … … 434 435 autocomplete="off">'; 435 436 436 $output .= '<a href="#" class="kopa-framework-gallery-config button button-secondary">' . esc_html__(' Config', 'kopa-framework') . '</a>';437 $output .= '<a href="#" class="kopa-framework-gallery-config button button-secondary">' . esc_html__('Select images', 'kopa-framework') . '</a>'; 437 438 $output .= '</div>'; 438 439 $output .= $option_wrap_end; -
kopatheme/trunk/includes/admin/settings/class-kopa-settings-backup-manager.php
r1353276 r1467551 83 83 'type' => 'import', 84 84 'id' => 'import', 85 'desc' => __( "If you have settings in a backup file on your computer, the Kopa Framework can import those into this site.\nTo get started, upload your backup file to import from below.", 'kopa-framework' ),85 'desc' => __( "If you have settings in a backup file on your computer, you can import those into this site.", 'kopa-framework' ), 86 86 'default' => '', 87 87 ), -
kopatheme/trunk/includes/admin/settings/class-kopa-settings-theme-options.php
r1353276 r1467551 26 26 public function __construct() { 27 27 $this->id = 'theme-options'; 28 $this->label = __( ' Theme Options', 'kopa-framework' );28 $this->label = __( 'General Settings', 'kopa-framework' ); 29 29 30 30 add_filter( 'kopa_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); -
kopatheme/trunk/kopa-framework.php
r1462803 r1467551 3 3 * Plugin Name: Kopa Framework 4 4 * Description: A WordPress framework by Kopatheme. 5 * Version: 1.1. 75 * Version: 1.1.8 6 6 * Author: Kopa Theme 7 7 * Author URI: http://kopatheme.com -
kopatheme/trunk/readme.txt
r1462803 r1467551 5 5 Requires at least: 3.8 6 6 Tested up to: 4.5.3 7 Stable tag: 1.1. 77 Stable tag: 1.1.8 8 8 License: GPLv2 or later 9 9 … … 21 21 22 22 == Changelog == 23 = 1.1.8 = 24 * English wording 25 23 26 = 1.1.7 = 24 27 * Fix bug advance field don't working with older themes.
Note: See TracChangeset
for help on using the changeset viewer.