Plugin Directory

Changeset 1599961


Ignore:
Timestamp:
02/20/2017 04:51:49 PM (9 years ago)
Author:
goran321
Message:

version 1.1.1

Location:
wp-css-generator/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • wp-css-generator/trunk/framework/class-bootstrap.php

    r1576937 r1599961  
    4949            add_action( 'wp_ajax_delete_sub_term',  array($this, 'delete_sub_term' ) );
    5050           
     51            //ajax admin delete parent term
     52            add_action( 'wp_ajax_delete_parent_term',  array($this, 'delete_parent_term' ) );
     53           
     54
    5155        }   
    5256       
     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       
    5398        /**
    5499         * Delete sub term
     
    58103
    59104            $term_id =  isset( $_POST['data']['term_id'] ) ? $_POST['data']['term_id'] : NULL ;
    60 
    61 
    62105            if ( !empty( $term_id ) ) :
    63106
    64107                wp_delete_term( $term_id , 'wpcss-group' );
    65 
    66108                $data['status'] = 'success';
    67 
    68109            else:
    69 
    70110                $data['status'] = 'error';
    71 
    72111            endif;
    73112
    74113            $data['msg']    = __('You have successfully delete selektor.' , 'wp-css-geneartor') ;
    75 
    76114            echo json_encode($data);
    77 
    78115            wp_die();           
    79116       
  • wp-css-generator/trunk/framework/classes/class-cusomize-css.php

    r1576937 r1599961  
    2323
    2424
    25         static $wraps =
     25        static $display =
    2626            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'
    3033                );             
    3134
     
    202205        function __construct(){
    203206           
     207            //get plugin config
    204208            $this->config = Config::getInstance();
    205        
     209           
     210            //customize_register
    206211            add_action('customize_register', array(&$this, 'register_customize_style_setting'));
    207212        }   
     
    432437   
    433438       
     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       
    434480
    435481        /**
  • wp-css-generator/trunk/framework/helpers/class-css.php

    r1576937 r1599961  
    8383    echo "
    8484    ";
    85     endif;             
     85    endif;
     86self::display( $options,  $term->slug, $important, $dev);                   
    8687self::color( $options,  $term->slug, $important, $dev);
    8788self::font_family( $options,  $term->slug, $important, $dev);
     
    116117         * @var str $key
    117118         **/
    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;
    121127            endif; 
    122128        }
  • wp-css-generator/trunk/framework/helpers/class-options.php

    r1576937 r1599961  
    1717            //get confing
    1818            $this->config  =  Config::getInstance();
    19            
    20        
    21        
    2219
    2320        }
    2421
    25    
    2622
    2723        public function set_default_values(){
    2824           
     25            //chech first_activation
    2926            $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       
    107107           
    108108                $group_name  = !empty( $default_values['wcg']['group_name'] ) ?  $default_values['wcg']['group_name']   : NULL ;   
     
    220220                    $group_id  = $this->save_css_group( $group_name, $group_slug, $group_desc, $group_priority );
    221221
    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;
    227227
    228228
    229229                    //save sub groups
     230                    if(!empty($subGroup_titles[0])) :
    230231                    $i = 0;
    231232                    foreach ($subGroup_titles as $key => $title) :
     
    249250                    $i++;
    250251                    endforeach;
    251 
     252                    endif;
    252253                    //redirect after save
    253254                    wp_redirect(admin_url('admin.php?page=wpcssgenerator&group_id='.$group_id));
     
    753754                               
    754755                               
    755                                 if ( !empty(    $group_id ) ) :
     756                                if ( !empty( $group_id ) ) :
    756757                                   
    757758                                    $subGroups = get_terms( array(
     
    821822                                                $css_options =  get_term_meta($subGroup->term_id, $this->config->slug.'css_options', true);     ?>
    822823                                            <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                                               
    823832                                                <label>
    824833                                                    <?php $css_options['color'] = isset( $css_options['color']) ?  $css_options['color'] : 'no'; ?>
     
    957966                           
    958967                                <!-- 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; ?>
    960972                                    <div id="publishing-action">
     973                                   
    961974                                        <span class="spinner"></span>
    962975                                        <input name="publish" id="publish" class="button button-primary button-large" value="<?php _e('Publish', 'wp-css-generator') ?>" type="submit" form="myform" ></div>
     
    9971010                        <div class="wp_css_generator wcg-option-item-header active">
    9981011                            <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>
    10001013                            <div class="wp_css_generator wcg-option-item-header-label"></div>
    10011014                        <!--    <div class="wp_css_generator wp_css_generator-option-header-item">3</div>-->
     
    10441057                                    <div class="wp_css_generator wcg-field">
    10451058                                        <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>
    10461064                                            <input  class="wcg-checkbox" type="checkbox"  value="yes" > <?php _e('Color', 'wp-css-generator') ?>
    10471065                                            <input class="wcg-checkbox-value" type="hidden" name="wcg[options][color][]" value="no">
     
    10541072                                        <br />
    10551073                                        <label>
    1056                                        
    10571074                                            <input class="wcg-checkbox" type="checkbox" value="yes"> <?php _e('Background', 'wp-css-generator') ?>
    10581075                                            <input class="wcg-checkbox-value" type="hidden" name="wcg[options][background][]" value="no">
     
    11241141                                            <p>
    11251142                                            <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>
    11271144
    11281145                                        </div><!--wcg-option-items-->
  • wp-css-generator/trunk/i18/wp-css-generator-en_GB.po

    r1576937 r1599961  
    22msgstr ""
    33"Project-Id-Version: wp-css-generator-en_GB\n"
    4 "POT-Creation-Date: 2017-01-17 11:04+0100\n"
    5 "PO-Revision-Date: 2017-01-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"
    66"Last-Translator: NO Solutions - ThemeStreet <[email protected]>\n"
    77"Language-Team: WP CSS Generator <[email protected]>\n"
     
    1717"X-Poedit-SearchPath-0: .\n"
    1818
    19 #: framework/class-bootstrap.php:75
     19#: framework/class-bootstrap.php:91
     20msgid "You have successfully delete group."
     21msgstr ""
     22
     23#: framework/class-bootstrap.php:113
    2024msgid "You have successfully delete selektor."
    2125msgstr ""
    2226
    23 #: framework/class-bootstrap.php:175
     27#: framework/class-bootstrap.php:211
    2428msgid "Settings"
    2529msgstr ""
    2630
    27 #: framework/helpers/class-options.php:290
     31#: framework/helpers/class-options.php:291
    2832msgid "You do not have sufficient permissions to access this page."
    2933msgstr ""
    3034
    31 #: framework/helpers/class-options.php:325
    32 #: framework/helpers/class-options.php:399
     35#: framework/helpers/class-options.php:326
     36#: framework/helpers/class-options.php:400
    3337msgid "No name"
    3438msgstr ""
    3539
    36 #: framework/helpers/class-options.php:528
     40#: framework/helpers/class-options.php:529
    3741msgid "CSS Groups"
    3842msgstr ""
    3943
    40 #: framework/helpers/class-options.php:542
    41 #: framework/helpers/class-options.php:740
     44#: framework/helpers/class-options.php:543
     45#: framework/helpers/class-options.php:741
    4246msgid "Order"
    4347msgstr ""
    4448
    45 #: framework/helpers/class-options.php:543
     49#: framework/helpers/class-options.php:544
    4650msgid "Group"
    4751msgstr ""
    4852
    49 #: framework/helpers/class-options.php:544
     53#: framework/helpers/class-options.php:545
    5054msgid "Status"
    5155msgstr ""
    5256
    53 #: framework/helpers/class-options.php:545
    54 #: framework/helpers/class-options.php:894
     57#: framework/helpers/class-options.php:546
     58#: framework/helpers/class-options.php:903
    5559msgid "Viewport"
    5660msgstr ""
    5761
    58 #: framework/helpers/class-options.php:592
    59 #: framework/helpers/class-options.php:774
    60 #: framework/helpers/class-options.php:999
     62#: framework/helpers/class-options.php:593
     63#: framework/helpers/class-options.php:775
     64#: framework/helpers/class-options.php:1012
    6165msgid "Edit"
    6266msgstr ""
    6367
    64 #: framework/helpers/class-options.php:617
     68#: framework/helpers/class-options.php:618
    6569msgid "Add Group"
    6670msgstr ""
    6771
    68 #: framework/helpers/class-options.php:635
    69 #: framework/helpers/class-options.php:950
    70 #: framework/helpers/class-options.php:962
     72#: framework/helpers/class-options.php:636
     73#: framework/helpers/class-options.php:959
     74#: framework/helpers/class-options.php:975
    7175msgid "Publish"
    7276msgstr ""
    7377
    74 #: framework/helpers/class-options.php:641
     78#: framework/helpers/class-options.php:642
    7579msgid "After re-order or change status of group don't forget to save changes."
    7680msgstr ""
    7781
    78 #: framework/helpers/class-options.php:643
     82#: framework/helpers/class-options.php:644
    7983msgid "Customize"
    8084msgstr ""
    8185
    82 #: framework/helpers/class-options.php:644
     86#: framework/helpers/class-options.php:645
    8387msgid "Save"
    8488msgstr ""
    8589
    86 #: framework/helpers/class-options.php:663
    87 #: framework/helpers/class-options.php:977
    88 #: framework/helpers/class-options.php:1151
     90#: framework/helpers/class-options.php:664
     91#: framework/helpers/class-options.php:990
     92#: framework/helpers/class-options.php:1167
    8993msgid "Getting Started"
    9094msgstr ""
    9195
    92 #: framework/helpers/class-options.php:665
    93 #: framework/helpers/class-options.php:978
    94 #: framework/helpers/class-options.php:1153
     96#: framework/helpers/class-options.php:666
     97#: framework/helpers/class-options.php:991
     98#: framework/helpers/class-options.php:1169
    9599msgid "Pro Version"
    96100msgstr ""
    97101
    98 #: framework/helpers/class-options.php:667
    99 #: framework/helpers/class-options.php:979
    100 #: framework/helpers/class-options.php:1155
     102#: framework/helpers/class-options.php:668
     103#: framework/helpers/class-options.php:992
     104#: framework/helpers/class-options.php:1171
    101105msgid "Created by"
    102106msgstr ""
    103107
    104 #: framework/helpers/class-options.php:711
     108#: framework/helpers/class-options.php:712
    105109msgid "Edit CSS Group"
    106110msgstr ""
    107111
    108 #: framework/helpers/class-options.php:711
     112#: framework/helpers/class-options.php:712
    109113msgid "Add New CSS Group"
    110114msgstr ""
    111115
    112 #: framework/helpers/class-options.php:729
     116#: framework/helpers/class-options.php:730
    113117msgid "Enter title here"
    114118msgstr ""
    115119
    116 #: framework/helpers/class-options.php:741
    117 #: framework/helpers/class-options.php:783
    118 #: framework/helpers/class-options.php:1009
     120#: framework/helpers/class-options.php:742
     121#: framework/helpers/class-options.php:784
     122#: framework/helpers/class-options.php:1022
    119123msgid "Label"
    120124msgstr ""
    121125
    122 #: framework/helpers/class-options.php:742
    123 #: framework/helpers/class-options.php:795
    124 #: framework/helpers/class-options.php:1021
     126#: framework/helpers/class-options.php:743
     127#: framework/helpers/class-options.php:796
     128#: framework/helpers/class-options.php:1034
    125129msgid "CSS Selectors"
    126130msgstr ""
    127131
    128 #: framework/helpers/class-options.php:774
     132#: framework/helpers/class-options.php:775
     133#: framework/helpers/class-options.php:1012
    129134msgid "Delete"
    130135msgstr ""
    131136
    132 #: framework/helpers/class-options.php:784
    133 #: framework/helpers/class-options.php:1010
     137#: framework/helpers/class-options.php:785
     138#: framework/helpers/class-options.php:1023
    134139msgid "This label will be visible in Customize setting as group option."
    135140msgstr ""
    136141
    137 #: framework/helpers/class-options.php:787
    138 #: framework/helpers/class-options.php:1013
     142#: framework/helpers/class-options.php:788
     143#: framework/helpers/class-options.php:1026
    139144msgid "Enter label here"
    140145msgstr ""
    141146
    142 #: framework/helpers/class-options.php:796
    143 #: framework/helpers/class-options.php:1022
     147#: framework/helpers/class-options.php:797
     148#: framework/helpers/class-options.php:1035
    144149msgid "Insert CSS selector as classes, IDs or pseudo-classes."
    145150msgstr ""
    146151
    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
     157msgid "Help"
     158msgstr ""
     159
     160#: framework/helpers/class-options.php:804
     161#: framework/helpers/class-options.php:1042
     162msgid "Enter CSS selectors here for this group of options"
     163msgstr ""
     164
     165#: framework/helpers/class-options.php:805
     166#: framework/helpers/class-options.php:1043
     167msgid "Example( .header, #header, #header:hover or .header a:first-childe )"
     168msgstr ""
     169
     170#: framework/helpers/class-options.php:814
     171#: framework/helpers/class-options.php:1052
     172msgid "Options"
     173msgstr ""
     174
    148175#: 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
    172177msgid "Choice CSS options for the selectors."
    173178msgstr ""
    174179
    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
     182msgid "Display"
     183msgstr ""
     184
     185#: framework/helpers/class-options.php:834
     186#: framework/helpers/class-options.php:1064
    177187msgid "Color"
    178188msgstr ""
    179189
    180 #: framework/helpers/class-options.php:831
    181 #: framework/helpers/class-options.php:1051
     190#: framework/helpers/class-options.php:840
     191#: framework/helpers/class-options.php:1069
    182192msgid "Font-Family"
    183193msgstr ""
    184194
    185 #: framework/helpers/class-options.php:837
    186 #: framework/helpers/class-options.php:1057
     195#: framework/helpers/class-options.php:846
     196#: framework/helpers/class-options.php:1074
    187197msgid "Background"
    188198msgstr ""
    189199
    190 #: framework/helpers/class-options.php:841
    191 #: framework/helpers/class-options.php:1061
     200#: framework/helpers/class-options.php:850
     201#: framework/helpers/class-options.php:1078
    192202msgid ""
    193203"More CSS options available in <a href=\"https://wpcssgenerator.com\">PRO "
     
    195205msgstr ""
    196206
    197 #: framework/helpers/class-options.php:850
    198 #: framework/helpers/class-options.php:1070
     207#: framework/helpers/class-options.php:859
     208#: framework/helpers/class-options.php:1087
    199209msgid "Important"
    200210msgstr ""
    201211
    202 #: framework/helpers/class-options.php:851
    203 #: framework/helpers/class-options.php:1071
     212#: framework/helpers/class-options.php:860
     213#: framework/helpers/class-options.php:1088
    204214msgid "Make this options group as !important;"
    205215msgstr ""
    206216
    207 #: framework/helpers/class-options.php:883
     217#: framework/helpers/class-options.php:892
    208218msgid "Add Selector"
    209219msgstr ""
    210220
    211 #: framework/helpers/class-options.php:909
     221#: framework/helpers/class-options.php:918
    212222msgid ""
    213223"The @media rule is used to define different style rules for different media "
     
    215225msgstr ""
    216226
    217 #: framework/helpers/class-options.php:914
     227#: framework/helpers/class-options.php:923
    218228msgid "Enter media query here"
    219229msgstr ""
    220230
    221 #: framework/helpers/class-options.php:954
     231#: framework/helpers/class-options.php:963
    222232msgid "After edit don't forget to save your options."
    223233msgstr ""
    224234
    225 #: framework/helpers/class-options.php:999
     235#: framework/helpers/class-options.php:1012
    226236msgid "New label"
    227237msgstr ""
    228238
    229 #: framework/helpers/class-options.php:1100
     239#: framework/helpers/class-options.php:1117
    230240msgid "CSS Tools"
    231241msgstr ""
  • wp-css-generator/trunk/js/admin_init.js

    r1576937 r1599961  
    5454   
    5555
     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
    5691    //delete term
    57     jQuery('.wcg-delete-option').click(function( event ) {
    58    
     92    jQuery('.wcg-delete-option').click(function( event ) { 
     93       
    5994        var term_id = jQuery(this).attr('data-term-id');
    6095
    61         if(term_id) {
    62                        
     96        if(term_id) {                       
    6397                var data = {
    6498                    'action': 'delete_sub_term',
     
    70104                   
    71105                    if (response.status=='success') {
    72 
     106                        jQuery('li#term_'+term_id).remove();                                       
     107                    }else{                     
    73108                        jQuery('li#term_'+term_id).remove();       
    74                                
    75                     }else{
    76                        
    77                         jQuery('li#term_'+term_id).remove();       
    78                    
    79109                    }
    80110                       
    81111                },'json');
    82112
    83 
    84113        }
    85114   
    86         return false;
    87    
     115        return false;   
    88116    });
    89117   
    90118
     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    });
    91124});
  • wp-css-generator/trunk/readme.txt

    r1599910 r1599961  
    44Requires at least: 4.7
    55Tested up to: 4.7
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • wp-css-generator/trunk/wp-css-generator.php

    r1599910 r1599961  
    55    Description: Customize you WP page elements easy and fast. Get full control over any element or property.
    66    Plugin URI: https://wpcssgenerator.com
    7     Version: 1.1.0
     7    Version: 1.1.1
    88    Author: Goran Petrovic 
    99    Author URI: https://godev.rs   
Note: See TracChangeset for help on using the changeset viewer.