Changeset 1599961
- Timestamp:
- 02/20/2017 04:51:49 PM (9 years ago)
- Location:
- wp-css-generator/trunk
- Files:
-
- 9 edited
-
framework/class-bootstrap.php (modified) (2 diffs)
-
framework/classes/class-cusomize-css.php (modified) (3 diffs)
-
framework/helpers/class-css.php (modified) (2 diffs)
-
framework/helpers/class-options.php (modified) (10 diffs)
-
i18/wp-css-generator-en_GB.mo (modified) (previous)
-
i18/wp-css-generator-en_GB.po (modified) (4 diffs)
-
js/admin_init.js (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wp-css-generator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-css-generator/trunk/framework/class-bootstrap.php
r1576937 r1599961 49 49 add_action( 'wp_ajax_delete_sub_term', array($this, 'delete_sub_term' ) ); 50 50 51 //ajax admin delete parent term 52 add_action( 'wp_ajax_delete_parent_term', array($this, 'delete_parent_term' ) ); 53 54 51 55 } 52 56 57 58 /** 59 * Delete parent group 60 * 61 */ 62 63 function delete_parent_term(){ 64 65 $term_id = isset( $_POST['data']['term_id'] ) ? $_POST['data']['term_id'] : NULL ; 66 if ( !empty( $term_id ) ) : 67 68 69 $subGroups = get_terms( array( 70 'taxonomy' => 'wpcss-group', 71 'hide_empty' => false, 72 'parent' => $term_id 73 ) ); 74 75 //delete sub terms 76 foreach ($subGroups as $subGroup) : 77 78 wp_delete_term( $subGroup->term_id , 'wpcss-group' ); 79 80 endforeach; 81 82 //delete group 83 wp_delete_term( $term_id , 'wpcss-group' ); 84 85 86 $data['status'] = 'success'; 87 else: 88 $data['status'] = 'error'; 89 endif; 90 91 $data['msg'] = __('You have successfully delete group.' , 'wp-css-geneartor') ; 92 echo json_encode($data); 93 wp_die(); 94 95 } 96 97 53 98 /** 54 99 * Delete sub term … … 58 103 59 104 $term_id = isset( $_POST['data']['term_id'] ) ? $_POST['data']['term_id'] : NULL ; 60 61 62 105 if ( !empty( $term_id ) ) : 63 106 64 107 wp_delete_term( $term_id , 'wpcss-group' ); 65 66 108 $data['status'] = 'success'; 67 68 109 else: 69 70 110 $data['status'] = 'error'; 71 72 111 endif; 73 112 74 113 $data['msg'] = __('You have successfully delete selektor.' , 'wp-css-geneartor') ; 75 76 114 echo json_encode($data); 77 78 115 wp_die(); 79 116 -
wp-css-generator/trunk/framework/classes/class-cusomize-css.php
r1576937 r1599961 23 23 24 24 25 static $ wraps=25 static $display = 26 26 array( 27 'normal' => 'Normal', 28 'stretch' => 'Stretch', 29 'fullwidth' => 'Full Width' 27 '' => ' ---', 28 'block' => 'Block', 29 'none' => 'None', 30 'inline' => 'Inline', 31 'inline-block' => 'Inline-Block', 32 'initial' => 'Initial' 30 33 ); 31 34 … … 202 205 function __construct(){ 203 206 207 //get plugin config 204 208 $this->config = Config::getInstance(); 205 209 210 //customize_register 206 211 add_action('customize_register', array(&$this, 'register_customize_style_setting')); 207 212 } … … 432 437 433 438 439 /** 440 * Display 441 * 442 * @author Goran Petrovic 443 * @since 1.0 444 * @var $wp_customize 445 * 446 **/ 447 static function display($wp_customize, $class, $section, $label = '', $desc = ""){ 448 449 450 /* = Display Family 451 -------------------------------------------------------------- */ 452 $wp_customize->add_setting( 453 $section.'['.$class.'=display]', 454 array( 455 'default' => '', 456 'capability' => 'edit_theme_options', 457 'type' => 'option', 458 'transport' => 'refresh', 459 'sanitize_callback' => '', 460 'sanitize_js_callback' => '' 461 )); 462 463 $wp_customize->add_control( 464 $class.'=display', 465 array( 466 'label' => 'Display', 467 'section' => $section, 468 'settings' => $section.'['.$class.'=display]', 469 'type' => 'select', 470 'choices' => self::$display, 471 'description' => $desc, 472 )); 473 474 475 476 } 477 478 479 434 480 435 481 /** -
wp-css-generator/trunk/framework/helpers/class-css.php
r1576937 r1599961 83 83 echo " 84 84 "; 85 endif; 85 endif; 86 self::display( $options, $term->slug, $important, $dev); 86 87 self::color( $options, $term->slug, $important, $dev); 87 88 self::font_family( $options, $term->slug, $important, $dev); … … 116 117 * @var str $key 117 118 **/ 118 static function display($value, $key){ 119 if(!empty( $value[$key.'=display'])) : 120 echo 'display: ' . $value[$key.'=display'] . '; ' ; 119 static function display($value = '', $key, $important, $dev){ 120 if( !empty( $value[$key.'=display'])) : 121 $important = ( $important == 'yes') ? '!important' : ''; 122 echo 'display:'. $value[$key.'=display'] . $important.';' ; 123 if($dev): 124 echo " 125 "; 126 endif; 121 127 endif; 122 128 } -
wp-css-generator/trunk/framework/helpers/class-options.php
r1576937 r1599961 17 17 //get confing 18 18 $this->config = Config::getInstance(); 19 20 21 22 19 23 20 } 24 21 25 26 22 27 23 public function set_default_values(){ 28 24 25 //chech first_activation 29 26 $first_activation = get_option('wp_css_generator_first_activation', 'no'); 30 31 if ( $first_activation!='yes' ) : 32 33 $default_values = array( 34 35 'wcg' => array( 36 'group_name' => 'Body', 37 'group_slug' => 'body', 38 'group_priority' =>'1', 39 'title' => array( 40 '0' => 'Background', 41 '1' => 'Text', 42 '2' => 'Hedings', 43 '3' => 'Link', 44 '4' => 'Link Hover', 45 ), 46 47 48 'slug' => array( 49 '0' => '', 50 '1' => '', 51 '2' => '', 52 '3' => '', 53 '4' => '', 54 ), 55 56 57 'selector' => array( 58 '0' => 'body', 59 '1' => 'body p, p', 60 '2' => 'h1, h2, h3, h4, h5, h6', 61 '3' => 'a', 62 '4' => 'a:hover', 63 ), 64 65 'options' => array( 66 67 'color' => array( 68 '0' => 'no', 69 '1' => 'yes', 70 '2' => 'yes', 71 '3' => 'yes', 72 '4' => 'yes', 73 ), 74 75 'font_family' => array( 76 '0' => 'no', 77 '1' => 'yes', 78 '2' => 'yes', 79 '3' => 'no', 80 '4' => 'no', 81 ), 82 83 'background' => array( 84 '0' => 'yes', 85 '1' => 'no', 86 '2' => 'no', 87 '3' => 'no', 88 '4' => 'no', 89 ), 90 91 ), 92 93 'important' => array( 94 '0' => '', 95 '1' => '', 96 '2' => '', 97 '3' => '', 98 '4' => '', 99 ), 100 101 'group_desc' => '', 102 ), 103 104 105 ); 106 27 28 //check body group 29 $get_body_group = get_term_by( 'slug', 'body', 'wpcss-group'); 30 31 if ( $first_activation!='yes' and empty( $get_body_group ) ) : 32 33 $default_values = array( 34 35 'wcg' => array( 36 'group_name' => 'Body', 37 'group_slug' => 'body', 38 'group_priority' =>'1', 39 'title' => array( 40 '0' => 'Background', 41 '1' => 'Text', 42 '2' => 'Hedings', 43 '3' => 'Link', 44 '4' => 'Link Hover', 45 ), 46 47 48 'slug' => array( 49 '0' => '', 50 '1' => '', 51 '2' => '', 52 '3' => '', 53 '4' => '', 54 ), 55 56 57 'selector' => array( 58 '0' => 'body', 59 '1' => 'body p, p', 60 '2' => 'h1, h2, h3, h4, h5, h6', 61 '3' => 'a', 62 '4' => 'a:hover', 63 ), 64 65 'options' => array( 66 67 'color' => array( 68 '0' => 'no', 69 '1' => 'yes', 70 '2' => 'yes', 71 '3' => 'yes', 72 '4' => 'yes', 73 ), 74 75 'font_family' => array( 76 '0' => 'no', 77 '1' => 'yes', 78 '2' => 'yes', 79 '3' => 'no', 80 '4' => 'no', 81 ), 82 83 'background' => array( 84 '0' => 'yes', 85 '1' => 'no', 86 '2' => 'no', 87 '3' => 'no', 88 '4' => 'no', 89 ), 90 91 ), 92 93 'important' => array( 94 '0' => '', 95 '1' => '', 96 '2' => '', 97 '3' => '', 98 '4' => '', 99 ), 100 101 'group_desc' => '', 102 ), 103 104 105 ); 106 107 107 108 108 $group_name = !empty( $default_values['wcg']['group_name'] ) ? $default_values['wcg']['group_name'] : NULL ; … … 220 220 $group_id = $this->save_css_group( $group_name, $group_slug, $group_desc, $group_priority ); 221 221 222 $subGroup_titles = $_POST['wcg']['title'];223 $subGroup_slugs = $_POST['wcg']['slug'];224 $subGroup_selectors = $_POST['wcg']['selector'];225 $subGroup_css = $_POST['wcg']['options'];226 $subGroup_important = $_POST['wcg']['important'];222 $subGroup_titles = !empty( $_POST['wcg']['title'] ) ? $_POST['wcg']['title'] : NULL; 223 $subGroup_slugs = !empty( $_POST['wcg']['slug'] ) ? $_POST['wcg']['slug'] : NULL; 224 $subGroup_selectors = !empty( $_POST['wcg']['selector'] ) ? $_POST['wcg']['selector'] : NULL; 225 $subGroup_css = !empty( $_POST['wcg']['options'] ) ? $_POST['wcg']['options'] : NULL; 226 $subGroup_important = !empty( $_POST['wcg']['important'] ) ? $_POST['wcg']['important'] : NULL; 227 227 228 228 229 229 //save sub groups 230 if(!empty($subGroup_titles[0])) : 230 231 $i = 0; 231 232 foreach ($subGroup_titles as $key => $title) : … … 249 250 $i++; 250 251 endforeach; 251 252 endif; 252 253 //redirect after save 253 254 wp_redirect(admin_url('admin.php?page=wpcssgenerator&group_id='.$group_id)); … … 753 754 754 755 755 if ( !empty( $group_id ) ) :756 if ( !empty( $group_id ) ) : 756 757 757 758 $subGroups = get_terms( array( … … 821 822 $css_options = get_term_meta($subGroup->term_id, $this->config->slug.'css_options', true); ?> 822 823 <div class="wp_css_generator wcg-field"> 824 825 <label> 826 <?php $css_options['display'] = isset( $css_options['display']) ? $css_options['display'] : 'no'; ?> 827 <input class="wcg-checkbox" type="checkbox" value="yes" > <?php _e('Display', 'wp-css-generator') ?> 828 <input class="wcg-checkbox-value" type="hidden" name="wcg[options][display][]" value="no"> 829 </label> 830 <br /> 831 823 832 <label> 824 833 <?php $css_options['color'] = isset( $css_options['color']) ? $css_options['color'] : 'no'; ?> … … 957 966 958 967 <!-- Publish --> 959 <div id="major-publishing-actions"> 968 <div id="major-publishing-actions"> 969 <?php if ( !empty( $group_id ) ) : ?> 970 <p><a href="#" class="wcg-delete-parent-group" data-term-id="<?php echo $group_id ?>" data-redirect="<?php echo admin_url() ?>admin.php?page=wpcssgenerator" style="color:red; float:left;">Delete</a></p> 971 <?php endif; ?> 960 972 <div id="publishing-action"> 973 961 974 <span class="spinner"></span> 962 975 <input name="publish" id="publish" class="button button-primary button-large" value="<?php _e('Publish', 'wp-css-generator') ?>" type="submit" form="myform" ></div> … … 997 1010 <div class="wp_css_generator wcg-option-item-header active"> 998 1011 <div class="wp_css_generator wcg-option-item-header-label"><div class="wcg-order-icon"><i class="fa fa-sort fa-lg" aria-hidden="true"></i></div></div> 999 <div class="wp_css_generator wcg-option-item-header-label"><a href="#"><strong class="wcg-edit-option"><?php _e('New label', 'wp-css-generator') ?></strong></a> <br /> <span class="wcg-actions"><a href="#" class="wcg-edit-option"><?php _e('Edit', 'wp-css-generator') ?></a> </div>1012 <div class="wp_css_generator wcg-option-item-header-label"><a href="#"><strong class="wcg-edit-option"><?php _e('New label', 'wp-css-generator') ?></strong></a> <br /> <span class="wcg-actions"><a href="#" class="wcg-edit-option"><?php _e('Edit', 'wp-css-generator') ?></a> <a href="#" class="wcg-delete-clon-option"><?php _e('Delete', 'wp-css-generator') ?></a></div> 1000 1013 <div class="wp_css_generator wcg-option-item-header-label"></div> 1001 1014 <!-- <div class="wp_css_generator wp_css_generator-option-header-item">3</div>--> … … 1044 1057 <div class="wp_css_generator wcg-field"> 1045 1058 <label> 1059 <input class="wcg-checkbox" type="checkbox" value="yes" > <?php _e('Display', 'wp-css-generator') ?> 1060 <input class="wcg-checkbox-value" type="hidden" name="wcg[options][display][]" value="no"> 1061 </label> 1062 <br /> 1063 <label> 1046 1064 <input class="wcg-checkbox" type="checkbox" value="yes" > <?php _e('Color', 'wp-css-generator') ?> 1047 1065 <input class="wcg-checkbox-value" type="hidden" name="wcg[options][color][]" value="no"> … … 1054 1072 <br /> 1055 1073 <label> 1056 1057 1074 <input class="wcg-checkbox" type="checkbox" value="yes"> <?php _e('Background', 'wp-css-generator') ?> 1058 1075 <input class="wcg-checkbox-value" type="hidden" name="wcg[options][background][]" value="no"> … … 1124 1141 <p> 1125 1142 <label><strong>Developer</strong></label> 1126 <textarea name="Name" rows="80" style="width:100%" readonly><?php Helper_CSS::generate_minify_CSS(true) ?></textarea> </p>1143 <textarea name="Name" rows="80" style="width:100%" readonly><?php Helper_CSS::generate_minify_CSS(true) ?></textarea> </p> 1127 1144 1128 1145 </div><!--wcg-option-items--> -
wp-css-generator/trunk/i18/wp-css-generator-en_GB.po
r1576937 r1599961 2 2 msgstr "" 3 3 "Project-Id-Version: wp-css-generator-en_GB\n" 4 "POT-Creation-Date: 2017-0 1-17 11:04+0100\n"5 "PO-Revision-Date: 2017-0 1-17 11:04+0100\n"4 "POT-Creation-Date: 2017-02-20 14:00+0100\n" 5 "PO-Revision-Date: 2017-02-20 14:00+0100\n" 6 6 "Last-Translator: NO Solutions - ThemeStreet <[email protected]>\n" 7 7 "Language-Team: WP CSS Generator <[email protected]>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: framework/class-bootstrap.php:75 19 #: framework/class-bootstrap.php:91 20 msgid "You have successfully delete group." 21 msgstr "" 22 23 #: framework/class-bootstrap.php:113 20 24 msgid "You have successfully delete selektor." 21 25 msgstr "" 22 26 23 #: framework/class-bootstrap.php: 17527 #: framework/class-bootstrap.php:211 24 28 msgid "Settings" 25 29 msgstr "" 26 30 27 #: framework/helpers/class-options.php:29 031 #: framework/helpers/class-options.php:291 28 32 msgid "You do not have sufficient permissions to access this page." 29 33 msgstr "" 30 34 31 #: framework/helpers/class-options.php:32 532 #: framework/helpers/class-options.php: 39935 #: framework/helpers/class-options.php:326 36 #: framework/helpers/class-options.php:400 33 37 msgid "No name" 34 38 msgstr "" 35 39 36 #: framework/helpers/class-options.php:52 840 #: framework/helpers/class-options.php:529 37 41 msgid "CSS Groups" 38 42 msgstr "" 39 43 40 #: framework/helpers/class-options.php:54 241 #: framework/helpers/class-options.php:74 044 #: framework/helpers/class-options.php:543 45 #: framework/helpers/class-options.php:741 42 46 msgid "Order" 43 47 msgstr "" 44 48 45 #: framework/helpers/class-options.php:54 349 #: framework/helpers/class-options.php:544 46 50 msgid "Group" 47 51 msgstr "" 48 52 49 #: framework/helpers/class-options.php:54 453 #: framework/helpers/class-options.php:545 50 54 msgid "Status" 51 55 msgstr "" 52 56 53 #: framework/helpers/class-options.php:54 554 #: framework/helpers/class-options.php: 89457 #: framework/helpers/class-options.php:546 58 #: framework/helpers/class-options.php:903 55 59 msgid "Viewport" 56 60 msgstr "" 57 61 58 #: framework/helpers/class-options.php:59 259 #: framework/helpers/class-options.php:77 460 #: framework/helpers/class-options.php: 99962 #: framework/helpers/class-options.php:593 63 #: framework/helpers/class-options.php:775 64 #: framework/helpers/class-options.php:1012 61 65 msgid "Edit" 62 66 msgstr "" 63 67 64 #: framework/helpers/class-options.php:61 768 #: framework/helpers/class-options.php:618 65 69 msgid "Add Group" 66 70 msgstr "" 67 71 68 #: framework/helpers/class-options.php:63 569 #: framework/helpers/class-options.php:95 070 #: framework/helpers/class-options.php:9 6272 #: framework/helpers/class-options.php:636 73 #: framework/helpers/class-options.php:959 74 #: framework/helpers/class-options.php:975 71 75 msgid "Publish" 72 76 msgstr "" 73 77 74 #: framework/helpers/class-options.php:64 178 #: framework/helpers/class-options.php:642 75 79 msgid "After re-order or change status of group don't forget to save changes." 76 80 msgstr "" 77 81 78 #: framework/helpers/class-options.php:64 382 #: framework/helpers/class-options.php:644 79 83 msgid "Customize" 80 84 msgstr "" 81 85 82 #: framework/helpers/class-options.php:64 486 #: framework/helpers/class-options.php:645 83 87 msgid "Save" 84 88 msgstr "" 85 89 86 #: framework/helpers/class-options.php:66 387 #: framework/helpers/class-options.php:9 7788 #: framework/helpers/class-options.php:11 5190 #: framework/helpers/class-options.php:664 91 #: framework/helpers/class-options.php:990 92 #: framework/helpers/class-options.php:1167 89 93 msgid "Getting Started" 90 94 msgstr "" 91 95 92 #: framework/helpers/class-options.php:66 593 #: framework/helpers/class-options.php:9 7894 #: framework/helpers/class-options.php:11 5396 #: framework/helpers/class-options.php:666 97 #: framework/helpers/class-options.php:991 98 #: framework/helpers/class-options.php:1169 95 99 msgid "Pro Version" 96 100 msgstr "" 97 101 98 #: framework/helpers/class-options.php:66 799 #: framework/helpers/class-options.php:9 79100 #: framework/helpers/class-options.php:11 55102 #: framework/helpers/class-options.php:668 103 #: framework/helpers/class-options.php:992 104 #: framework/helpers/class-options.php:1171 101 105 msgid "Created by" 102 106 msgstr "" 103 107 104 #: framework/helpers/class-options.php:71 1108 #: framework/helpers/class-options.php:712 105 109 msgid "Edit CSS Group" 106 110 msgstr "" 107 111 108 #: framework/helpers/class-options.php:71 1112 #: framework/helpers/class-options.php:712 109 113 msgid "Add New CSS Group" 110 114 msgstr "" 111 115 112 #: framework/helpers/class-options.php:7 29116 #: framework/helpers/class-options.php:730 113 117 msgid "Enter title here" 114 118 msgstr "" 115 119 116 #: framework/helpers/class-options.php:74 1117 #: framework/helpers/class-options.php:78 3118 #: framework/helpers/class-options.php:10 09120 #: framework/helpers/class-options.php:742 121 #: framework/helpers/class-options.php:784 122 #: framework/helpers/class-options.php:1022 119 123 msgid "Label" 120 124 msgstr "" 121 125 122 #: framework/helpers/class-options.php:74 2123 #: framework/helpers/class-options.php:79 5124 #: framework/helpers/class-options.php:10 21126 #: framework/helpers/class-options.php:743 127 #: framework/helpers/class-options.php:796 128 #: framework/helpers/class-options.php:1034 125 129 msgid "CSS Selectors" 126 130 msgstr "" 127 131 128 #: framework/helpers/class-options.php:774 132 #: framework/helpers/class-options.php:775 133 #: framework/helpers/class-options.php:1012 129 134 msgid "Delete" 130 135 msgstr "" 131 136 132 #: framework/helpers/class-options.php:78 4133 #: framework/helpers/class-options.php:10 10137 #: framework/helpers/class-options.php:785 138 #: framework/helpers/class-options.php:1023 134 139 msgid "This label will be visible in Customize setting as group option." 135 140 msgstr "" 136 141 137 #: framework/helpers/class-options.php:78 7138 #: framework/helpers/class-options.php:10 13142 #: framework/helpers/class-options.php:788 143 #: framework/helpers/class-options.php:1026 139 144 msgid "Enter label here" 140 145 msgstr "" 141 146 142 #: framework/helpers/class-options.php:79 6143 #: framework/helpers/class-options.php:10 22147 #: framework/helpers/class-options.php:797 148 #: framework/helpers/class-options.php:1035 144 149 msgid "Insert CSS selector as classes, IDs or pseudo-classes." 145 150 msgstr "" 146 151 147 #: framework/helpers/class-options.php:797 152 #: framework/helpers/class-options.php:798 153 #: framework/helpers/class-options.php:816 154 #: framework/helpers/class-options.php:919 155 #: framework/helpers/class-options.php:1036 156 #: framework/helpers/class-options.php:1054 157 msgid "Help" 158 msgstr "" 159 160 #: framework/helpers/class-options.php:804 161 #: framework/helpers/class-options.php:1042 162 msgid "Enter CSS selectors here for this group of options" 163 msgstr "" 164 165 #: framework/helpers/class-options.php:805 166 #: framework/helpers/class-options.php:1043 167 msgid "Example( .header, #header, #header:hover or .header a:first-childe )" 168 msgstr "" 169 170 #: framework/helpers/class-options.php:814 171 #: framework/helpers/class-options.php:1052 172 msgid "Options" 173 msgstr "" 174 148 175 #: framework/helpers/class-options.php:815 149 #: framework/helpers/class-options.php:910 150 #: framework/helpers/class-options.php:1023 151 #: framework/helpers/class-options.php:1041 152 msgid "Help" 153 msgstr "" 154 155 #: framework/helpers/class-options.php:803 156 #: framework/helpers/class-options.php:1029 157 msgid "Enter CSS selectors here for this group of options" 158 msgstr "" 159 160 #: framework/helpers/class-options.php:804 161 #: framework/helpers/class-options.php:1030 162 msgid "Example( .header, #header, #header:hover or .header a:first-childe )" 163 msgstr "" 164 165 #: framework/helpers/class-options.php:813 166 #: framework/helpers/class-options.php:1039 167 msgid "Options" 168 msgstr "" 169 170 #: framework/helpers/class-options.php:814 171 #: framework/helpers/class-options.php:1040 176 #: framework/helpers/class-options.php:1053 172 177 msgid "Choice CSS options for the selectors." 173 178 msgstr "" 174 179 175 #: framework/helpers/class-options.php:825 176 #: framework/helpers/class-options.php:1046 180 #: framework/helpers/class-options.php:827 181 #: framework/helpers/class-options.php:1059 182 msgid "Display" 183 msgstr "" 184 185 #: framework/helpers/class-options.php:834 186 #: framework/helpers/class-options.php:1064 177 187 msgid "Color" 178 188 msgstr "" 179 189 180 #: framework/helpers/class-options.php:8 31181 #: framework/helpers/class-options.php:10 51190 #: framework/helpers/class-options.php:840 191 #: framework/helpers/class-options.php:1069 182 192 msgid "Font-Family" 183 193 msgstr "" 184 194 185 #: framework/helpers/class-options.php:8 37186 #: framework/helpers/class-options.php:10 57195 #: framework/helpers/class-options.php:846 196 #: framework/helpers/class-options.php:1074 187 197 msgid "Background" 188 198 msgstr "" 189 199 190 #: framework/helpers/class-options.php:8 41191 #: framework/helpers/class-options.php:10 61200 #: framework/helpers/class-options.php:850 201 #: framework/helpers/class-options.php:1078 192 202 msgid "" 193 203 "More CSS options available in <a href=\"https://wpcssgenerator.com\">PRO " … … 195 205 msgstr "" 196 206 197 #: framework/helpers/class-options.php:85 0198 #: framework/helpers/class-options.php:10 70207 #: framework/helpers/class-options.php:859 208 #: framework/helpers/class-options.php:1087 199 209 msgid "Important" 200 210 msgstr "" 201 211 202 #: framework/helpers/class-options.php:8 51203 #: framework/helpers/class-options.php:10 71212 #: framework/helpers/class-options.php:860 213 #: framework/helpers/class-options.php:1088 204 214 msgid "Make this options group as !important;" 205 215 msgstr "" 206 216 207 #: framework/helpers/class-options.php:8 83217 #: framework/helpers/class-options.php:892 208 218 msgid "Add Selector" 209 219 msgstr "" 210 220 211 #: framework/helpers/class-options.php:9 09221 #: framework/helpers/class-options.php:918 212 222 msgid "" 213 223 "The @media rule is used to define different style rules for different media " … … 215 225 msgstr "" 216 226 217 #: framework/helpers/class-options.php:9 14227 #: framework/helpers/class-options.php:923 218 228 msgid "Enter media query here" 219 229 msgstr "" 220 230 221 #: framework/helpers/class-options.php:9 54231 #: framework/helpers/class-options.php:963 222 232 msgid "After edit don't forget to save your options." 223 233 msgstr "" 224 234 225 #: framework/helpers/class-options.php: 999235 #: framework/helpers/class-options.php:1012 226 236 msgid "New label" 227 237 msgstr "" 228 238 229 #: framework/helpers/class-options.php:11 00239 #: framework/helpers/class-options.php:1117 230 240 msgid "CSS Tools" 231 241 msgstr "" -
wp-css-generator/trunk/js/admin_init.js
r1576937 r1599961 54 54 55 55 56 //delete parent term 57 jQuery('.wcg-delete-parent-group').click(function( event ) { 58 59 if(confirm("Are you sure you want to delete this group?")){ 60 61 var term_id = jQuery(this).attr('data-term-id'); 62 var redirect = jQuery(this).attr('data-redirect'); 63 64 if(term_id) { 65 var data = { 66 'action': 'delete_parent_term', 67 'data': { term_id: term_id } 68 }; 69 70 //admin-ajax.php 71 jQuery.post(ajaxurl, data, function(response) { 72 73 if (response.status=='success') { 74 //redirect 75 window.location.href = redirect; 76 77 }else{} 78 79 },'json'); 80 81 } 82 83 } 84 else{ 85 return false; 86 } 87 88 return false; 89 }); 90 56 91 //delete term 57 jQuery('.wcg-delete-option').click(function( event ) { 58 92 jQuery('.wcg-delete-option').click(function( event ) { 93 59 94 var term_id = jQuery(this).attr('data-term-id'); 60 95 61 if(term_id) { 62 96 if(term_id) { 63 97 var data = { 64 98 'action': 'delete_sub_term', … … 70 104 71 105 if (response.status=='success') { 72 106 jQuery('li#term_'+term_id).remove(); 107 }else{ 73 108 jQuery('li#term_'+term_id).remove(); 74 75 }else{76 77 jQuery('li#term_'+term_id).remove();78 79 109 } 80 110 81 111 },'json'); 82 112 83 84 113 } 85 114 86 return false; 87 115 return false; 88 116 }); 89 117 90 118 119 //delete clon option 120 jQuery('.wcg-delete-clon-option').live( "click" ,function() { 121 jQuery(this).parent().parent().parent().parent().remove(); 122 return false; 123 }); 91 124 }); -
wp-css-generator/trunk/readme.txt
r1599910 r1599961 4 4 Requires at least: 4.7 5 5 Tested up to: 4.7 6 Stable tag: 1.1. 06 Stable tag: 1.1.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wp-css-generator/trunk/wp-css-generator.php
r1599910 r1599961 5 5 Description: Customize you WP page elements easy and fast. Get full control over any element or property. 6 6 Plugin URI: https://wpcssgenerator.com 7 Version: 1.1. 07 Version: 1.1.1 8 8 Author: Goran Petrovic 9 9 Author URI: https://godev.rs
Note: See TracChangeset
for help on using the changeset viewer.