Plugin Directory

Changeset 2057751


Ignore:
Timestamp:
03/26/2019 03:53:50 PM (7 years ago)
Author:
IT-RAYS
Message:

fixed some translation issue.
RTL admin support.

Location:
rays-grid/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • rays-grid/trunk/assets/admin/css/admin.css

    r2050090 r2057751  
    27392739    color: #fff
    27402740}
     2741
     2742
     2743body.rtl .top-btns{
     2744    right: auto;
     2745    left: 0
     2746}
     2747body.rtl .rsgd_form_title h2,body.rtl .rsgd_sel_opts li,body.rtl .portfolio-item,body.rtl .raysgrid-form .dataTables_length,body.rtl .raysgrid-form .dataTables_filter{
     2748    float: right;
     2749}
     2750body.rtl .rsgd_close_settings{
     2751    float: left;
     2752}
     2753body.rtl .rsgd_form_title h2 small{
     2754    float: left;
     2755    margin: 6px 10px 0px 0;
     2756}
     2757body.rtl .rsgd_form_title h2 i,ul.rsgd_tabs > li a i{
     2758    margin-right: 0;
     2759    margin-left: 12px;
     2760}
     2761body.rtl .raysgrid-form small.description{
     2762    text-align: right;
     2763}
     2764body.rtl .raysgrid-form .dataTables_filter{
     2765    text-align: left;
     2766    border-width: 1px 0 0 1px;
     2767}
     2768body.rtl .raysgrid-form .dataTables_filter label {
     2769    margin-right: 0;
     2770    margin-left: 20px;
     2771}
     2772body.rtl .raysgrid-form .dataTables_length{
     2773    border-width: 1px 1px 0 0;
     2774}
     2775body.rtl .raysgrid-form .dataTables_length label {
     2776    margin-left: 0;
     2777    margin-right: 20px;
     2778}
     2779body.rtl .raysgrid-form .dataTables_info {
     2780    float: right;
     2781}
     2782body.rtl .raysgrid-form .dataTables_paginate{
     2783    float: left;
     2784}
  • rays-grid/trunk/includes/class-base.php

    r2050090 r2057751  
    1111        ob_start();
    1212       
    13         $this->rsgd_sections['rsgd_naming']        = '<i class="dashicons dashicons-megaphone"></i>'.__( 'Naming' , RSGD_SLUG );
    14         $this->rsgd_sections['rsgd_source']        = '<i class="dashicons dashicons-admin-network"></i>'.__( 'Source' , RSGD_SLUG );
    15         $this->rsgd_sections['rsgd_gnrlsetting']   = '<i class="dashicons dashicons-admin-plugins"></i>'.__( 'Layout' , RSGD_SLUG );
    16         $this->rsgd_sections['rsgd_skins']         = '<i class="dashicons dashicons-admin-appearance"></i>'.__( 'Skins & Styles' , RSGD_SLUG );
    17         $this->rsgd_sections['rsgd_nav']           = '<i class="dashicons dashicons-admin-generic"></i>'.__( 'Nav Filter' , RSGD_SLUG );
     13        $this->rsgd_sections['rsgd_naming']        = '<i class="dashicons dashicons-megaphone"></i>'.esc_html__( 'Naming' , RSGD_SLUG );
     14        $this->rsgd_sections['rsgd_source']        = '<i class="dashicons dashicons-admin-network"></i>'.esc_html__( 'Source' , RSGD_SLUG );
     15        $this->rsgd_sections['rsgd_gnrlsetting']   = '<i class="dashicons dashicons-admin-plugins"></i>'.esc_html__( 'Layout' , RSGD_SLUG );
     16        $this->rsgd_sections['rsgd_skins']         = '<i class="dashicons dashicons-admin-appearance"></i>'.esc_html__( 'Skins & Styles' , RSGD_SLUG );
     17        $this->rsgd_sections['rsgd_nav']           = '<i class="dashicons dashicons-admin-generic"></i>'.esc_html__( 'Nav Filter' , RSGD_SLUG );
    1818
    1919        add_action('init', array($this, 'rsgd_portfolio_post'));
     
    169169        $insDB = new raysgrid_Tables();
    170170        add_menu_page( RSGD_NAME, RSGD_NAME, 'administrator', RSGD_PFX, array($this, 'rsgd_main_form'), RSGD_URI.'/assets/admin/images/ico.png' );
    171         add_submenu_page(RSGD_PFX, __('Add New Grid', RSGD_SLUG), __('Add New', RSGD_SLUG), 'manage_options', RSGD_PFX.'&do=create', array($insDB, 'rsgd_insert_update'));
    172         add_submenu_page(RSGD_PFX, __('Import/Export Grids', RSGD_SLUG), __('Import/Export', RSGD_SLUG), 'manage_options', RSGD_PFX.'-exp', array($insDB, 'rsgd_import_export'));
     171        add_submenu_page(RSGD_PFX, esc_html__('Add New Grid', RSGD_SLUG), esc_html__('Add New', RSGD_SLUG), 'manage_options', RSGD_PFX.'&do=create', array($insDB, 'rsgd_insert_update'));
     172        add_submenu_page(RSGD_PFX, esc_html__('Import/Export Grids', RSGD_SLUG), esc_html__('Import/Export', RSGD_SLUG), 'manage_options', RSGD_PFX.'-exp', array($insDB, 'rsgd_import_export'));
    173173       
    174174    }
     
    187187       
    188188        $labels = array(
    189             'name' => ' Portfolio Posts',
    190             'singular_name' => RSGD_NAME.' Posts',
    191             'add_new' => 'Add New',
    192             'add_new_item' => 'Add New Post',
    193             'edit' => 'Edit',
    194             'edit_item' => 'Edit Post',
    195             'new_item' => 'New Post',
    196             'view' => 'View',
    197             'view_item' => 'View Post',
    198             'search_items' => 'Search Post',
    199             'not_found' => 'No Posts found',
    200             'not_found_in_trash' => 'No Post found in Trash',
    201             'parent' => 'Parent Post'
     189            'name'                  => esc_html__( 'Portfolio Posts' , RSGD_SLUG ),
     190            'singular_name'         => esc_html__( 'Portfolio Post' , RSGD_SLUG ),
     191            'add_new'               => esc_html__( 'Add New' , RSGD_SLUG ),
     192            'add_new_item'          => esc_html__( 'Add New Post' , RSGD_SLUG ),
     193            'edit'                  => esc_html__( 'Edit' , RSGD_SLUG ),
     194            'edit_item'             => esc_html__( 'Edit Post' , RSGD_SLUG ),
     195            'new_item'              => esc_html__( 'New Post' , RSGD_SLUG ),
     196            'view'                  => esc_html__( 'View' , RSGD_SLUG ),
     197            'view_item'             => esc_html__( 'View Post' , RSGD_SLUG ),
     198            'search_items'          => esc_html__( 'Search Post' , RSGD_SLUG ),
     199            'not_found'             => esc_html__( 'No Posts found' , RSGD_SLUG ),
     200            'not_found_in_trash'    => esc_html__( 'No Post found in Trash' , RSGD_SLUG ),
     201            'parent'                => esc_html__( 'Parent Post' , RSGD_SLUG )
    202202        );
    203203        $args = array(
    204             'labels' => $labels,
    205             'public' => true,
    206             'has_archive' => true,
    207             'publicly_queryable' => true,
    208             'rewrite' => array('slug' => $post_type_name ),
    209             'capability_type' => 'post',
    210             'hierarchical' => false,
    211             'supports' => array(
     204            'labels'                => $labels,
     205            'public'                => true,
     206            'has_archive'           => true,
     207            'publicly_queryable'    => true,
     208            'rewrite'               => array('slug' => $post_type_name ),
     209            'capability_type'       => 'post',
     210            'hierarchical'          => false,
     211            'supports'              => array(
    212212                'title',
    213213                'editor',
     
    216216                'revisions',
    217217            ),
    218             'exclude_from_search' => false,
     218            'exclude_from_search'   => false,
    219219        );
    220220
     
    227227
    228228        register_taxonomy('raysgrid_tags', array($post_type_name), array(
    229             'labels' => array(
    230                 'name' => 'Tags'
     229            'labels'            => array(
     230                'name' => esc_html__( 'Tags' , RSGD_SLUG )
    231231            ),
    232             'show_ui' => true,
    233             'show_tagcloud' => false,
    234             "hierarchical" => false,
    235             "singular_label" => "Tag",
    236             'rewrite' => array('slug' => 'raysgrid_tags', 'with_front' => false)
     232            'show_ui'           => true,
     233            'show_tagcloud'     => false,
     234            "hierarchical"      => false,
     235            "singular_label"    => "Tag",
     236            'rewrite'           => array('slug' => 'raysgrid_tags', 'with_front' => false)
    237237        ));
    238238
    239239        register_taxonomy('raysgrid_categories', array($post_type_name), array(
    240             'labels' => array(
    241                 'name' => 'Categories'
     240            'labels'            => array(
     241                'name' => esc_html__( 'Categories' , RSGD_SLUG )
    242242            ),
    243             'show_ui' => true,
    244             'show_tagcloud' => false,
    245             "hierarchical" => true,
    246             "singular_label" => "Category",
    247             'rewrite' => array('slug' => 'raysgrid_categories', 'with_front' => false)
     243            'show_ui'           => true,
     244            'show_tagcloud'     => false,
     245            "hierarchical"      => true,
     246            "singular_label"    => "Category",
     247            'rewrite'           => array('slug' => 'raysgrid_categories', 'with_front' => false)
    248248        ));
    249249    }
  • rays-grid/trunk/includes/class-db.php

    r2050090 r2057751  
    230230       
    231231        if (!empty($gridSetting)) {
    232             /*foreach ($gridSetting as $gsData) {
    233                 foreach ($confArr as $key => $value) {
    234                     $itemArray[$value['name']] = $gsData->$value['name'];
    235                 }
    236                 unset($itemArray['id']);
    237                 $griSet[] = $itemArray;
    238             }*/
    239232            nocache_headers();
    240233            header('Content-Type: text/plain; charset=utf-8');
     
    259252       
    260253        if ($file_extension != 'json') {
    261             wp_die( __('Please upload a valid .json file', RSGD_SLUG ) );
     254            wp_die( esc_html__('Please upload a valid .json file', RSGD_SLUG ) );
    262255        }
    263256       
  • rays-grid/trunk/includes/config.php

    r2003470 r2057751  
    1414        $this->settings = array(
    1515            array(
    16                 "name" => "id",
    17                 "title" => "id",
    18                 "data_type" => "mediumint(9)",
    19                 "type" => "int",
    20                 "auto" => "AUTO_INCREMENT",
    21                 "not_null" => "NOT NULL",
     16                "name"          => "id",
     17                "title"         => "id",
     18                "data_type"     => "mediumint(9)",
     19                "type"          => "int",
     20                "auto"          => "AUTO_INCREMENT",
     21                "not_null"      => "NOT NULL",
    2222            ),
    2323            /* Start Naming */
    2424            array(
    25                 "name" => "title",
    26                 "title" => "Title",
    27                 "data_type" => "text",
    28                 "type" => "text",
    29                 "section" => "rsgd_naming",
    30                 "not_null" => "NOT NULL",
    31                 "description" => "Insert the grid title.",
    32             ),
    33             array(
    34                 "name" => "alias",
    35                 "title" => "Alias",
    36                 "data_type" => "text",
    37                 "type" => "text",
    38                 "class" => "alias_txt",
    39                 "section" => "rsgd_naming",
    40                 "not_null" => "NOT NULL",
    41                 "description" => "Insert the grid alias.",
    42             ),
    43             array(
    44                 "name" => "shortcode",
    45                 "title" => "Shortcode",
    46                 "data_type" => "text",
    47                 "type" => "disabledtext",
    48                 "class" => "shortcode_txt",
    49                 "section" => "rsgd_naming",
    50                 "not_null" => "NOT NULL",
    51                 "description" => "Shortcode will be generated automatically once you type the alias.",
    52             ),
    53             array(
    54                 "name" => "extra_class",
    55                 "title" => "Extra CSS Class",
    56                 "data_type" => "text",
    57                 "type" => "text",
    58                 "section" => "rsgd_naming",
    59                 "not_null" => "NULL",
    60                 "description" => "Add extra css class name and refer to it in custom CSS.",
    61             ),
    62             array(
    63                 "name" => "oldalias",
    64                 "data_type" => "text",
    65                 "type" => "hidden",
    66                 "section" => "rsgd_naming",
    67                 "not_null" => "NULL",
     25                "name"          => "title",
     26                "title"         => esc_html__( "Title" , RSGD_SLUG ),
     27                "data_type"     => "text",
     28                "type"          => "text",
     29                "section"       => "rsgd_naming",
     30                "not_null"      => "NOT NULL",
     31                "description"   => esc_html__( "Insert the grid title." , RSGD_SLUG ),
     32            ),
     33            array(
     34                "name"          => "alias",
     35                "title"         => esc_html__( "Alias" , RSGD_SLUG ),
     36                "data_type"     => "text",
     37                "type"          => "text",
     38                "class"         => "alias_txt",
     39                "section"       => "rsgd_naming",
     40                "not_null"      => "NOT NULL",
     41                "description"   => esc_html__( "Insert the grid alias." , RSGD_SLUG ),
     42            ),
     43            array(
     44                "name"          => "shortcode",
     45                "title"         => esc_html__( "Shortcode" , RSGD_SLUG ),
     46                "data_type"     => "text",
     47                "type"          => "disabledtext",
     48                "class"         => "shortcode_txt",
     49                "section"       => "rsgd_naming",
     50                "not_null"      => "NOT NULL",
     51                "description"   => esc_html__( "Shortcode will be generated automatically once you type the alias." , RSGD_SLUG ),
     52            ),
     53            array(
     54                "name"          => "extra_class",
     55                "title"         => esc_html__( "Extra CSS Class" , RSGD_SLUG ),
     56                "data_type"     => "text",
     57                "type"          => "text",
     58                "section"       => "rsgd_naming",
     59                "not_null"      => "NULL",
     60                "description"   => esc_html__( "Add extra css class name and refer to it in custom CSS." , RSGD_SLUG ),
     61            ),
     62            array(
     63                "name"          => "oldalias",
     64                "data_type"     => "text",
     65                "type"          => "hidden",
     66                "section"       => "rsgd_naming",
     67                "not_null"      => "NULL",
    6868            ),
    6969            /* Start Source */
    7070            array(
    71                 "name" => "post_type",
    72                 "title" => "Post Types",
    73                 "data_type" => "text",
    74                 "type" => "multidropdown",
    75                 "choices" => rsgd_post_types(),
    76                 "section" => "rsgd_source",
    77                 "not_null" => "NULL",
    78                 "description" => "Select from available post types.",
    79                 //"std" => "raysgridpost",
    80             ),
    81             array(
    82                 "name" => "select_taxonomy",
    83                 "title" => "Post Categories",
    84                 "data_type" => "text",
    85                 "type" => "taxsdropdown",
    86                 "section" => "rsgd_source",
    87                 "not_null" => "NULL",
    88                 "description" => "Select from available categories or tags.",
    89             ),
    90             array(
    91                 "name" => "maximum_entries",
    92                 "title" => "Maximun Entries",
    93                 "data_type" => "int",
    94                 "type" => "number",
    95                 "section" => "rsgd_source",
    96                 "not_null" => "NULL",
    97                 "description" => "Leave it (-1) if you want to show all portfolio posts.",
    98                 "placeholder" => "-1",
    99                 "std" => "-1",
    100                 "min" => "-1",
    101                 "max" => "100",
    102             ),
    103             array(
    104                 "name" => "order_by",
    105                 "title" => "Order By ",
    106                 "data_type" => "text",
    107                 "type" => "dropdown",
    108                 "class" => "rsgd_select_boxes",
    109                 "choices" => array(
    110                     'date' => 'Date',
    111                     'title' => 'Title',
    112                     'id' => 'Id',
    113                     'name' => 'Name',
    114                     'modified' => 'Modified',
    115                     'author' => 'Author',
    116                 ),
    117                 "section" => "rsgd_source",
    118                 "not_null" => "NULL",
    119                 "description" => "Select the grids order from the available options.",
    120             ),
    121             array(
    122                 "name" => "order_type",
    123                 "title" => "Order Type",
    124                 "data_type" => "text",
    125                 "type" => "dropdown",
    126                 "class" => "rsgd_select_boxes",
    127                 "choices" => array(
    128                     'desc' => 'Descending',
    129                     'asc' => 'Ascending',
    130                 ),
    131                 "section" => "rsgd_source",
    132                 "not_null" => "NULL",
    133                 "description" => "Order posts ascending or descending.",
    134             ),
    135             array(
    136                 "name" => "image_source",
    137                 "title" => "Image Source Type",
    138                 "data_type" => "text",
    139                 "class" => "rsgd_select_boxes",
    140                 "type" => "dropdown",
    141                 "choices" => array(
    142                     'full' => 'Full',
    143                     'thumbnail' => 'Thumbnail',
    144                     'medium' => 'Medium',
    145                     'medium_large' => 'Medium Large',
    146                     'large' => 'Large',
    147                 ),
    148                 "section" => "rsgd_source",
    149                 "not_null" => "NULL",
    150                 "description" => "Choose what image size to be set to the image in the grid items.",
    151             ),
    152             array(
    153                 "name" => "pagination_type",
    154                 "title" => "Pagination",
    155                 "data_type" => "text",
    156                 "class" => "rsgd_select_boxes",
    157                 "type" => "dropdown",
    158                 "choices" => array(
    159                     'enable' => 'Enable',
    160                     'smart' => 'Smart Loading',
    161                 ),
    162                 "section" => "rsgd_source",
    163                 "not_null" => "NULL",
    164             ),
    165             array(
    166                 "name" => "pagination_style",
    167                 "title" => "Smart Loading",
    168                 "data_type" => "text",
    169                 "class" => "rsgd_select_boxes",
    170                 "type" => "dropdown",
    171                 "choices" => array(
    172                     'infinite' => 'Infinite Scroll',
    173                     'loadmore' => 'Load More Button',
    174                 ),
    175                 "section" => "rsgd_source",
    176                 "not_null" => "NULL",
    177                 "description" => "Choose pagination smart loading type.",
    178                 'dependency' => array(
     71                "name"          => "post_type",
     72                "title"         => esc_html__( "Post Types" , RSGD_SLUG ),
     73                "data_type"     => "text",
     74                "type"          => "multidropdown",
     75                "choices"       => rsgd_post_types(),
     76                "section"       => "rsgd_source",
     77                "not_null"      => "NULL",
     78                "description"   => esc_html__( "Select from available post types." , RSGD_SLUG ),
     79            ),
     80            array(
     81                "name"          => "select_taxonomy",
     82                "title"         => esc_html__( "Post Categories" , RSGD_SLUG ),
     83                "data_type"     => "text",
     84                "type"          => "taxsdropdown",
     85                "section"       => "rsgd_source",
     86                "not_null"      => "NULL",
     87                "description"   => esc_html__( "Select from available categories or tags." , RSGD_SLUG ),
     88            ),
     89            array(
     90                "name"          => "maximum_entries",
     91                "title"         => esc_html__( "Maximun Entries" , RSGD_SLUG ),
     92                "data_type"     => "int",
     93                "type"          => "number",
     94                "section"       => "rsgd_source",
     95                "not_null"      => "NULL",
     96                "description"   => esc_html__( "Leave it (-1) if you want to show all portfolio posts." , RSGD_SLUG ),
     97                "placeholder"   => "-1",
     98                "std"           => "-1",
     99                "min"           => "-1",
     100                "max"           => "100",
     101            ),
     102            array(
     103                "name"          => "order_by",
     104                "title"         => esc_html__( "Order By" , RSGD_SLUG ),
     105                "data_type"     => "text",
     106                "type"          => "dropdown",
     107                "class"         => "rsgd_select_boxes",
     108                "choices"       => array(
     109                    'date'      => esc_html__( 'Date' , RSGD_SLUG ),
     110                    'title'     => esc_html__( 'Title' , RSGD_SLUG ),
     111                    'id'        => esc_html__( 'Id' , RSGD_SLUG ),
     112                    'name'      => esc_html__( 'Name' , RSGD_SLUG ),
     113                    'modified'  => esc_html__( 'Modified' , RSGD_SLUG ),
     114                    'author'    => esc_html__( 'Author' , RSGD_SLUG ),
     115                ),
     116                "section"       => "rsgd_source",
     117                "not_null"      => "NULL",
     118                "description"   => esc_html__( "Select the grids order from the available options." , RSGD_SLUG ),
     119            ),
     120            array(
     121                "name"          => "order_type",
     122                "title"         => esc_html__( "Order Type" , RSGD_SLUG ),
     123                "data_type"     => "text",
     124                "type"          => "dropdown",
     125                "class"         => "rsgd_select_boxes",
     126                "choices"       => array(
     127                    'desc' => esc_html__( 'Descending' , RSGD_SLUG ),
     128                    'asc'  => esc_html__( 'Ascending' , RSGD_SLUG ),
     129                ),
     130                "section"       => "rsgd_source",
     131                "not_null"      => "NULL",
     132                "description"   => esc_html__( "Order posts ascending or descending." , RSGD_SLUG ),
     133            ),
     134            array(
     135                "name"          => "image_source",
     136                "title"         => esc_html__( "Image Source Type" , RSGD_SLUG ),
     137                "data_type"     => "text",
     138                "class"         => "rsgd_select_boxes",
     139                "type"          => "dropdown",
     140                "choices"       => array(
     141                    'full'          => esc_html__( 'Full' , RSGD_SLUG ),
     142                    'thumbnail'     => esc_html__( 'Thumbnail' , RSGD_SLUG ),
     143                    'medium'        => esc_html__( 'Medium' , RSGD_SLUG ),
     144                    'medium_large'  => esc_html__( 'Medium Large' , RSGD_SLUG ),
     145                    'large'         => esc_html__( 'Large' , RSGD_SLUG ),
     146                ),
     147                "section"       => "rsgd_source",
     148                "not_null"      => "NULL",
     149                "description"   => esc_html__( "Choose what image size to be set to the image in the grid items." , RSGD_SLUG ),
     150            ),
     151            array(
     152                "name"          => "pagination_type",
     153                "title"         => esc_html__( "Pagination" , RSGD_SLUG ),
     154                "data_type"     => "text",
     155                "class"         => "rsgd_select_boxes",
     156                "type"          => "dropdown",
     157                "choices"       => array(
     158                    'enable' => esc_html__( 'Enable' , RSGD_SLUG ),
     159                    'smart'  => esc_html__( 'Smart Loading' , RSGD_SLUG ),
     160                ),
     161                "section"       => "rsgd_source",
     162                "not_null"      => "NULL",
     163            ),
     164            array(
     165                "name"          => "pagination_style",
     166                "title"         => esc_html__( "Smart Loading" , RSGD_SLUG ),
     167                "data_type"     => "text",
     168                "class"         => "rsgd_select_boxes",
     169                "type"          => "dropdown",
     170                "choices"       => array(
     171                    'infinite' => esc_html__( 'Infinite Scroll' , RSGD_SLUG ),
     172                    'loadmore' => esc_html__( 'Load More Button' , RSGD_SLUG ),
     173                ),
     174                "section"       => "rsgd_source",
     175                "not_null"      => "NULL",
     176                "description"   => esc_html__( "Choose pagination smart loading type." , RSGD_SLUG ),
     177                'dependency'    => array(
    179178                    'element' => 'pagination_type',
    180                     'value' => 'smart'
    181                 ),
    182             ),
    183             array(
    184                 "name" => "load_more_button_text",
    185                 "title" => "Load More Button Text",
    186                 "data_type" => "text",
    187                 "type" => "text",
    188                 "section" => "rsgd_source",
    189                 "not_null" => "NULL",
    190                 "description" => "Align the pager below the grids horizontally.",
    191                 'dependency' => array(
     179                    'value'   => 'smart'
     180                ),
     181            ),
     182            array(
     183                "name"          => "load_more_button_text",
     184                "title"         => esc_html__( "Load More Button Text" , RSGD_SLUG ),
     185                "data_type"     => "text",
     186                "type"          => "text",
     187                "section"       => "rsgd_source",
     188                "not_null"      => "NULL",
     189                "description"   => esc_html__( "Align the pager below the grids horizontally." , RSGD_SLUG ),
     190                'dependency'    => array(
    192191                    'element' => 'pagination_style',
    193                     'value' => 'loadmore'
    194                 ),
    195                 "placeholder" => "Load More",
    196                 "std" => "Load More",
    197             ),
    198             array(
    199                 "name" => "items_per_page",
    200                 "title" => "Max. Visible Rows",
    201                 "data_type" => "int",
    202                 "type" => "number",
    203                 "section" => "rsgd_source",
    204                 "not_null" => "NULL",
    205                 "description" => "Number of visible rows.",
    206                 "placeholder" => "9",
    207                 "std" => "9",
    208                 "min" => "0",
    209                 "max" => "500",
    210                 'dependency' => array(
     192                    'value'   => 'loadmore'
     193                ),
     194                "placeholder"   => esc_html__( "Load More" , RSGD_SLUG ),
     195                "std"           => esc_html__( "Load More" , RSGD_SLUG ),
     196            ),
     197            array(
     198                "name"          => "items_per_page",
     199                "title"         => esc_html__( "Max. Visible Rows" , RSGD_SLUG ),
     200                "data_type"     => "int",
     201                "type"          => "number",
     202                "section"       => "rsgd_source",
     203                "not_null"      => "NULL",
     204                "description"   => esc_html__( "Number of visible rows." , RSGD_SLUG ),
     205                "placeholder"   => "9",
     206                "std"           => "9",
     207                "min"           => "0",
     208                "max"           => "500",
     209                'dependency'    => array(
    211210                    'element' => 'pagination_type',
    212                     'value' => 'enable'
    213                 ),
    214             ),
    215             array(
    216                 "name" => "items_start",
    217                 "title" => "Visible Items",
    218                 "data_type" => "int",
    219                 "type" => "number",
    220                 "section" => "rsgd_source",
    221                 "not_null" => "NULL",
    222                 "description" => "Number of visible Items On Load.",
    223                 "placeholder" => "3",
    224                 "std" => "3",
    225                 "min" => "3",
    226                 "max" => "100",
    227                 'dependency' => array(
     211                    'value'   => 'enable'
     212                ),
     213            ),
     214            array(
     215                "name"          => "items_start",
     216                "title"         => esc_html__( "Visible Items" , RSGD_SLUG ),
     217                "data_type"     => "int",
     218                "type"          => "number",
     219                "section"       => "rsgd_source",
     220                "not_null"      => "NULL",
     221                "description"   => esc_html__( "Number of visible Items On Load." , RSGD_SLUG ),
     222                "placeholder"   => "3",
     223                "std"           => "3",
     224                "min"           => "3",
     225                "max"           => "100",
     226                'dependency'    => array(
    228227                    'element' => 'pagination_type',
    229                     'value' => 'smart'
    230                 ),
    231             ),
    232             array(
    233                 "name" => "pagination_alignment",
    234                 "title" => "Button Alignment",
    235                 "data_type" => "text",
    236                 "class" => "rsgd_select_boxes",
    237                 "type" => "dropdown",
    238                 "choices" => array(
    239                     'center' => 'Center',
    240                     'left' => 'Left',
    241                     'right' => 'Right',
    242                 ),
    243                 "section" => "rsgd_source",
    244                 "not_null" => "NULL",
    245                 "description" => "Align the load more button.",
    246                 'dependency' => array(
     228                    'value'   => 'smart'
     229                ),
     230            ),
     231            array(
     232                "name"          => "pagination_alignment",
     233                "title"         => esc_html__( "Button Alignment" , RSGD_SLUG ),
     234                "data_type"     => "text",
     235                "class"         => "rsgd_select_boxes",
     236                "type"          => "dropdown",
     237                "choices"       => array(
     238                    'center' => esc_html__( 'Center' , RSGD_SLUG ),
     239                    'left'   => esc_html__( 'Left' , RSGD_SLUG ),
     240                    'right'  => esc_html__( 'Right' , RSGD_SLUG ),
     241                ),
     242                "section"       => "rsgd_source",
     243                "not_null"      => "NULL",
     244                "description"   => esc_html__( "Align the load more button." , RSGD_SLUG ),
     245                'dependency'    => array(
    247246                    'element' => 'pagination_style',
    248                     'value' => 'loadmore'
     247                    'value'   => 'loadmore'
    249248                ),
    250249            ),
    251250            /* Start Grid Setting */
    252251            array(
    253                 "name" => "main_color",
    254                 "title" => "Main Color",
    255                 "data_type" => "text",
    256                 "type" => "color",
    257                 "section" => "rsgd_gnrlsetting",
    258                 "not_null" => "NULL",
    259                 "placeholder" => "#7da600",
    260                 "std" => "#7da600",
    261             ),
    262             array(
    263                 "name" => "grid_layout",
    264                 "title" => "Grid Layout",
    265                 "data_type" => "text",
    266                 "type" => "dropdown",
    267                 "class" => "rsgd_select_boxes",
    268                 "section" => "rsgd_gnrlsetting",
    269                 "not_null" => "NULL",
    270                 "choices" => array(
    271                     'grid' => 'Even',
    272                     'masonry' => 'Masonry',
    273                     //'justify' => 'Dynamic Width',
    274                     'onecolumn' => 'One Column',
    275                     'slider' => 'Slider',
    276                 ),
    277                 "description" => "Choose how the grid will appear for users.",
    278                 "std" => "grid",
    279             ),
    280             array(
    281                 "name" => "img_ratio",
    282                 "title" => "Media Ratio X:Y",
    283                 "data_type" => "text",
    284                 "type" => "twonumber",
    285                 "section" => "rsgd_gnrlsetting",
    286                 "not_null" => "NULL",
    287                 "placeholder" => "5|4",
    288                 "std" => "5|4",
    289                 'dependency' => array(
     252                "name"          => "main_color",
     253                "title"         => esc_html__( "Main Color" , RSGD_SLUG ),
     254                "data_type"     => "text",
     255                "type"          => "color",
     256                "section"       => "rsgd_gnrlsetting",
     257                "not_null"      => "NULL",
     258                "placeholder"   => "#7da600",
     259                "std"           => "#7da600",
     260            ),
     261            array(
     262                "name"          => "grid_layout",
     263                "title"         => esc_html__( "Grid Layout" , RSGD_SLUG ),
     264                "data_type"     => "text",
     265                "type"          => "dropdown",
     266                "class"         => "rsgd_select_boxes",
     267                "section"       => "rsgd_gnrlsetting",
     268                "not_null"      => "NULL",
     269                "choices"       => array(
     270                    'grid'          => esc_html__( 'Even' , RSGD_SLUG ),
     271                    'masonry'       => esc_html__( 'Masonry' , RSGD_SLUG ),
     272                    'onecolumn'     => esc_html__( 'One Column' , RSGD_SLUG ),
     273                    'slider'        => esc_html__( 'Slider' , RSGD_SLUG ),
     274                ),
     275                "description"   => esc_html__( "Choose how the grid will appear for users." , RSGD_SLUG ),
     276                "std"           => "grid",
     277            ),
     278            array(
     279                "name"          => "img_ratio",
     280                "title"         => esc_html__( "Media Ratio X:Y" , RSGD_SLUG ),
     281                "data_type"     => "text",
     282                "type"          => "twonumber",
     283                "section"       => "rsgd_gnrlsetting",
     284                "not_null"      => "NULL",
     285                "placeholder"   => "5|4",
     286                "std"           => "5|4",
     287                'dependency'    => array(
    290288                    'element' => 'grid_layout',
    291289                    'value' => array('grid','slider')
     
    293291            ),
    294292            array(
    295                 "name" => "slider_type",
    296                 "title" => "Slider Type",
    297                 "data_type" => "text",
    298                 "type" => "dropdown",
    299                 "section" => "rsgd_gnrlsetting",
    300                 "not_null" => "NULL",
    301                 "class" => "rsgd_select_boxes",
    302                 "choices" => array(
    303                     'horizontal' => 'Horizontal',
    304                     'vertical' => 'Vertical',
    305                 ),
    306                 "std" => "horizontal",
    307                 'dependency' => array(
    308                     'element' => 'grid_layout',
    309                     'value' => 'slider'
    310                 ),
    311             ),
    312             array(
    313                 "name" => "slide_to_show",
    314                 "title" => "Slides To Show",
    315                 "data_type" => "int",
    316                 "type" => "number",
    317                 "section" => "rsgd_gnrlsetting",
    318                 "not_null" => "NULL",
    319                 "placeholder" => "4",
    320                 "description" => "Enter the number of slides to be shown.",
    321                 "std" => "4",
    322                 "min" => "1",
    323                 "max" => "10",
    324                 'dependency' => array(
    325                     'element' => 'grid_layout',
    326                     'value' => 'slider'
    327                 ),
    328             ),
    329             array(
    330                 "name" => "slide_to_scroll",
    331                 "title" => "Slide To Scroll",
    332                 "data_type" => "int",
    333                 "type" => "number",
    334                 "section" => "rsgd_gnrlsetting",
    335                 "not_null" => "NULL",
    336                 "placeholder" => "1",
    337                 "description" => "Number of slides that will be scrolled.",
    338                 "std" => "1",
    339                 "min" => "1",
    340                 "max" => "10",
    341                 'dependency' => array(
    342                     'element' => 'grid_layout',
    343                     'value' => 'slider'
    344                 ),
    345             ),
    346             array(
    347                 "name" => "slide_speed",
    348                 "title" => "Slide Speed",
    349                 "data_type" => "int",
    350                 "type" => "number",
    351                 "section" => "rsgd_gnrlsetting",
    352                 "not_null" => "NULL",
    353                 "placeholder" => "500",
    354                 "description" => "Speed of the slider in milliseconds.",
    355                 "std" => "500",
    356                 "min" => "0",
    357                 "max" => "1000",
    358                 'dependency' => array(
    359                     'element' => 'grid_layout',
    360                     'value' => 'slider'
    361                 ),
    362             ),
    363             array(
    364                 "name" => "fade",
    365                 "title" => "Fade ?",
    366                 "data_type" => "text",
    367                 "type" => "checkbox",
    368                 "section" => "rsgd_gnrlsetting",
    369                 "not_null" => "NULL",
    370                 "std" => "",
    371                 'dependency' => array(
    372                     'element' => 'grid_layout',
    373                     'value' => 'slider'
    374                 ),
    375             ),
    376             array(
    377                 "name" => "auto_play",
    378                 "title" => "Auto Play ? ",
    379                 "data_type" => "text",
    380                 "type" => "checkbox",
    381                 "section" => "rsgd_gnrlsetting",
    382                 "not_null" => "NULL",
    383                 "std" => "",
    384                 'dependency' => array(
    385                     'element' => 'grid_layout',
    386                     'value' => 'slider'
    387                 ),
    388             ),
    389             array(
    390                 "name" => "show_arrows",
    391                 "title" => "Show Arrows ? ",
    392                 "data_type" => "text",
    393                 "type" => "checkbox",
    394                 "section" => "rsgd_gnrlsetting",
    395                 "not_null" => "NULL",
    396                 "std" => "1",
    397                 'dependency' => array(
    398                     'element' => 'grid_layout',
    399                     'value' => 'slider'
    400                 ),
    401             ),
    402             array(
    403                 "name" => "show_bullets",
    404                 "title" => "Show Bullets ? ",
    405                 "data_type" => "text",
    406                 "type" => "checkbox",
    407                 "section" => "rsgd_gnrlsetting",
    408                 "not_null" => "NULL",
    409                 "std" => "",
    410                 'dependency' => array(
    411                     'element' => 'grid_layout',
    412                     'value' => 'slider'
    413                 ),
    414             ),
    415             array(
    416                 "name" => "infinite",
    417                 "title" => "Infinite ? ",
    418                 "data_type" => "text",
    419                 "type" => "checkbox",
    420                 "section" => "rsgd_gnrlsetting",
    421                 "not_null" => "NULL",
    422                 "std" => "1",
    423                 'dependency' => array(
    424                     'element' => 'grid_layout',
    425                     'value' => 'slider'
    426                 ),
    427             ),
    428             array(
    429                 "name" => "number_of_columns",
    430                 "title" => "Columns Per Row",
    431                 "data_type" => "text",
    432                 "type" => "dropdown",
    433                 "class" => "rsgd_select_boxes",
    434                 "section" => "rsgd_gnrlsetting",
    435                 "choices" => array(
    436                     '2' => '2 Columns',
    437                     '3' => '3 Columns',
    438                     '4' => '4 Columns',
    439                     '5' => '5 Columns',
    440                     '6' => '6 Columns',
    441                 ),
    442                 "std" => "4",
    443                 "not_null" => "NULL",
    444                 "description" => "Items per row that will be shown horizontally.",
    445                 'dependency' => array(
     293                "name"          => "slider_type",
     294                "title"         => esc_html__( "Slider Type" , RSGD_SLUG ),
     295                "data_type"     => "text",
     296                "type"          => "dropdown",
     297                "section"       => "rsgd_gnrlsetting",
     298                "not_null"      => "NULL",
     299                "class"         => "rsgd_select_boxes",
     300                "choices"       => array(
     301                    'horizontal'    => esc_html__( 'Horizontal' , RSGD_SLUG ),
     302                    'vertical'      => esc_html__( 'Vertical' , RSGD_SLUG ),
     303                ),
     304                "std"           => "horizontal",
     305                'dependency'    => array(
     306                    'element' => 'grid_layout',
     307                    'value' => 'slider'
     308                ),
     309            ),
     310            array(
     311                "name"          => "slide_to_show",
     312                "title"         => esc_html__( "Slides To Show" , RSGD_SLUG ),
     313                "data_type"     => "int",
     314                "type"          => "number",
     315                "section"       => "rsgd_gnrlsetting",
     316                "not_null"      => "NULL",
     317                "placeholder"   => "4",
     318                "description"   => esc_html__( "Enter the number of slides to be shown." , RSGD_SLUG ),
     319                "std"           => "4",
     320                "min"           => "1",
     321                "max"           => "10",
     322                'dependency'    => array(
     323                    'element' => 'grid_layout',
     324                    'value' => 'slider'
     325                ),
     326            ),
     327            array(
     328                "name"          => "slide_to_scroll",
     329                "title"         => esc_html__( "Slide To Scroll" , RSGD_SLUG ),
     330                "data_type"     => "int",
     331                "type"          => "number",
     332                "section"       => "rsgd_gnrlsetting",
     333                "not_null"      => "NULL",
     334                "placeholder"   => "1",
     335                "description"   => esc_html__( "Number of slides that will be scrolled." , RSGD_SLUG ),
     336                "std"           => "1",
     337                "min"           => "1",
     338                "max"           => "10",
     339                'dependency'    => array(
     340                    'element' => 'grid_layout',
     341                    'value' => 'slider'
     342                ),
     343            ),
     344            array(
     345                "name"          => "slide_speed",
     346                "title"         => esc_html__( "Slide Speed" , RSGD_SLUG ),
     347                "data_type"     => "int",
     348                "type"          => "number",
     349                "section"       => "rsgd_gnrlsetting",
     350                "not_null"      => "NULL",
     351                "placeholder"   => "500",
     352                "description"   => esc_html__( "Speed of the slider in milliseconds." , RSGD_SLUG ),
     353                "std"           => "500",
     354                "min"           => "0",
     355                "max"           => "1000",
     356                'dependency'    => array(
     357                    'element' => 'grid_layout',
     358                    'value' => 'slider'
     359                ),
     360            ),
     361            array(
     362                "name"          => "fade",
     363                "title"         => esc_html__( "Fade ?" , RSGD_SLUG ),
     364                "data_type"     => "text",
     365                "type"          => "checkbox",
     366                "section"       => "rsgd_gnrlsetting",
     367                "not_null"      => "NULL",
     368                "std"           => "",
     369                'dependency'    => array(
     370                    'element' => 'grid_layout',
     371                    'value' => 'slider'
     372                ),
     373            ),
     374            array(
     375                "name"          => "auto_play",
     376                "title"         => esc_html__( "Auto Play ? " , RSGD_SLUG ),
     377                "data_type"     => "text",
     378                "type"          => "checkbox",
     379                "section"       => "rsgd_gnrlsetting",
     380                "not_null"      => "NULL",
     381                "std"           => "",
     382                'dependency'    => array(
     383                    'element' => 'grid_layout',
     384                    'value' => 'slider'
     385                ),
     386            ),
     387            array(
     388                "name"          => "show_arrows",
     389                "title"         => esc_html__( "Show Arrows ? " , RSGD_SLUG ),
     390                "data_type"     => "text",
     391                "type"          => "checkbox",
     392                "section"       => "rsgd_gnrlsetting",
     393                "not_null"      => "NULL",
     394                "std"           => "1",
     395                'dependency'    => array(
     396                    'element' => 'grid_layout',
     397                    'value' => 'slider'
     398                ),
     399            ),
     400            array(
     401                "name"          => "show_bullets",
     402                "title"         => esc_html__( "Show Bullets ?" , RSGD_SLUG ),
     403                "data_type"     => "text",
     404                "type"          => "checkbox",
     405                "section"       => "rsgd_gnrlsetting",
     406                "not_null"      => "NULL",
     407                "std"           => "",
     408                'dependency'    => array(
     409                    'element' => 'grid_layout',
     410                    'value' => 'slider'
     411                ),
     412            ),
     413            array(
     414                "name"          => "infinite",
     415                "title"         => esc_html__( "Infinite ?" , RSGD_SLUG ),
     416                "data_type"     => "text",
     417                "type"          => "checkbox",
     418                "section"       => "rsgd_gnrlsetting",
     419                "not_null"      => "NULL",
     420                "std"           => "1",
     421                'dependency'    => array(
     422                    'element' => 'grid_layout',
     423                    'value' => 'slider'
     424                ),
     425            ),
     426            array(
     427                "name"          => "number_of_columns",
     428                "title"         => esc_html__( "Columns Per Row" , RSGD_SLUG ),
     429                "data_type"     => "text",
     430                "type"          => "dropdown",
     431                "class"         => "rsgd_select_boxes",
     432                "section"       => "rsgd_gnrlsetting",
     433                "choices"       => array(
     434                    '2' => esc_html__( '2 Columns' , RSGD_SLUG ),
     435                    '3' => esc_html__( '3 Columns' , RSGD_SLUG ),
     436                    '4' => esc_html__( '4 Columns' , RSGD_SLUG ),
     437                    '5' => esc_html__( '5 Columns' , RSGD_SLUG ),
     438                    '6' => esc_html__( '6 Columns' , RSGD_SLUG ),
     439                ),
     440                "std"           => "4",
     441                "not_null"      => "NULL",
     442                "description"   => esc_html__( "Items per row that will be shown horizontally." , RSGD_SLUG ),
     443                'dependency'    => array(
    446444                    'element' => 'grid_layout',
    447445                    'value' => array('grid','masonry')
     
    449447            ),
    450448            array(
    451                 "name" => "item_spacing",
    452                 "title" => "Item Spacing",
    453                 "data_type" => "int",
    454                 "type" => "number",
    455                 "section" => "rsgd_gnrlsetting",
    456                 "not_null" => "NULL",
    457                 "description" => "Enter the Spacing between grid items.",
    458                 "placeholder" => "15",
    459                 "std" => "15",
    460                 "min" => "0",
    461                 "max" => "100",
    462             ),
    463             array(
    464                 "name" => "preloader",
    465                 "title" => "Pre-loader",
    466                 "data_type" => "text",
    467                 "type" => "dropdown",
    468                 "choices" => array(
    469                     '-1' => 'None',
    470                     'cp-round' => 'Spinner Round',
    471                     'cp-pinwheel' => 'Spinner Pinwheel',
    472                     'cp-balls' => 'Spinner Balls',
    473                     'cp-bubble' => 'Spinner Bubble',
    474                     'cp-flip' => 'Spinner Flip',
    475                     'cp-hue' => 'Spinner Hue',
    476                     'cp-skeleton' => 'Spinner Skeleton',
    477                     'cp-eclipse' => 'Spinner Eclipse',
    478                     'cp-boxes' => 'Spinner Boxes',
    479                     'cp-morph' => 'Spinner Morph',
    480                 ),
    481                 "section" => "rsgd_gnrlsetting",
    482                 "not_null" => "NULL",
    483                 "description" => "Select a preloading styles that appears before all grid items completely loaded.",
    484             ),
    485             array(
    486                 "name" => "rtl",
    487                 "title" => "RTL",
    488                 "data_type" => "text",
    489                 "type" => "checkbox",
    490                 "section" => "rsgd_gnrlsetting",
    491                 "not_null" => "NULL",
    492                 "std" => "0",
     449                "name"          => "item_spacing",
     450                "title"         => esc_html__( "Item Spacing" , RSGD_SLUG ),
     451                "data_type"     => "int",
     452                "type"          => "number",
     453                "section"       => "rsgd_gnrlsetting",
     454                "not_null"      => "NULL",
     455                "description"   => esc_html__( "Enter the Spacing between grid items." , RSGD_SLUG ),
     456                "placeholder"   => "15",
     457                "std"           => "15",
     458                "min"           => "0",
     459                "max"           => "100",
     460            ),
     461            array(
     462                "name"          => "preloader",
     463                "title"         => esc_html__( "Pre-loader" , RSGD_SLUG ),
     464                "data_type"     => "text",
     465                "type"          => "dropdown",
     466                "choices"       => array(
     467                    '-1'            => esc_html__( 'None' , RSGD_SLUG ),
     468                    'cp-round'      => esc_html__( 'Spinner Round' , RSGD_SLUG ),
     469                    'cp-pinwheel'   => esc_html__( 'Spinner Pinwheel' , RSGD_SLUG ),
     470                    'cp-balls'      => esc_html__( 'Spinner Balls' , RSGD_SLUG ),
     471                    'cp-bubble'     => esc_html__( 'Spinner Bubble' , RSGD_SLUG ),
     472                    'cp-flip'       => esc_html__( 'Spinner Flip' , RSGD_SLUG ),
     473                    'cp-hue'        => esc_html__( 'Spinner Hue' , RSGD_SLUG ),
     474                    'cp-skeleton'   => esc_html__( 'Spinner Skeleton' , RSGD_SLUG ),
     475                    'cp-eclipse'    => esc_html__( 'Spinner Eclipse' , RSGD_SLUG ),
     476                    'cp-boxes'      => esc_html__( 'Spinner Boxes' , RSGD_SLUG ),
     477                    'cp-morph'      => esc_html__( 'Spinner Morph' , RSGD_SLUG ),
     478                ),
     479                "section"       => "rsgd_gnrlsetting",
     480                "not_null"      => "NULL",
     481                "description"   => esc_html__( "Select a preloading styles that appears before all grid items completely loaded." , RSGD_SLUG ),
     482            ),
     483            array(
     484                "name"          => "rtl",
     485                "title"         => esc_html__( "RTL" , RSGD_SLUG ),
     486                "data_type"     => "text",
     487                "type"          => "checkbox",
     488                "section"       => "rsgd_gnrlsetting",
     489                "not_null"      => "NULL",
     490                "std"           => "0",
    493491            ),
    494492            /* Start Skins & Styles */
    495493            array(
    496                 "name" => "choose_skin",
    497                 "title" => "Choose Skin",
    498                 "data_type" => "text",
    499                 "type" => "radio",
    500                 "choices" => array(
    501                     'kara' => 'Kara',
    502                     'hub' => 'Hub',
    503                     'ivy' => 'Ivy',
    504                     'krosh' => 'Krosh',
    505                     'impress' => 'Impress',
    506                     'transit' => 'Transit',
    507                     'neuron' => 'Neuron',
    508                     'onair' => 'OnAir',
    509                     'rotato' => 'Rotato',
    510                     'agent' => 'Agent',
    511                     'rolly' => 'Rolly',
    512                     'mass' => 'Mass',
    513                     'marbele' => 'Marble',
    514                     'astro' => 'Asrto',
     494                "name"          => "choose_skin",
     495                "title"         => esc_html__( "Choose Skin" , RSGD_SLUG ),
     496                "data_type"     => "text",
     497                "type"          => "radio",
     498                "choices"       => array(
     499                    'kara'      => esc_html__( 'Kara' , RSGD_SLUG ),
     500                    'hub'       => esc_html__( 'Hub' , RSGD_SLUG ),
     501                    'ivy'       => esc_html__( 'Ivy' , RSGD_SLUG ),
     502                    'krosh'     => esc_html__( 'Krosh' , RSGD_SLUG ),
     503                    'impress'   => esc_html__( 'Impress' , RSGD_SLUG ),
     504                    'transit'   => esc_html__( 'Transit' , RSGD_SLUG ),
     505                    'neuron'    => esc_html__( 'Neuron' , RSGD_SLUG ),
     506                    'onair'     => esc_html__( 'OnAir' , RSGD_SLUG ),
     507                    'rotato'    => esc_html__( 'Rotato' , RSGD_SLUG ),
     508                    'agent'     => esc_html__( 'Agent' , RSGD_SLUG ),
     509                    'rolly'     => esc_html__( 'Rolly' , RSGD_SLUG ),
     510                    'mass'      => esc_html__( 'Mass' , RSGD_SLUG ),
     511                    'marbele'   => esc_html__( 'Marble' , RSGD_SLUG ),
     512                    'astro'     => esc_html__( 'Asrto' , RSGD_SLUG ),
    515513                   
    516                     'paleo' => 'Paleo',
    517                     'sublime' => 'Sublime',
    518                     'resort' => 'Resort',
    519                     'gemini' => 'Gemini',
    520                     'solo' => 'Solo',
    521                     'focus' => 'Focus',
    522                     'zilla' => 'Zilla',
     514                    'paleo'     => esc_html__( 'Paleo' , RSGD_SLUG ),
     515                    'sublime'   => esc_html__( 'Sublime' , RSGD_SLUG ),
     516                    'resort'    => esc_html__( 'Resort' , RSGD_SLUG ),
     517                    'gemini'    => esc_html__( 'Gemini' , RSGD_SLUG ),
     518                    'solo'      => esc_html__( 'Solo' , RSGD_SLUG ),
     519                    'focus'     => esc_html__( 'Focus' , RSGD_SLUG ),
     520                    'zilla'     => esc_html__( 'Zilla' , RSGD_SLUG ),
    523521                   
    524522                ),
    525                 "class" => "portfolio-item",
    526                 "section" => "rsgd_skins",
    527                 "not_null" => "NULL",
    528                 "std" => "p-style1",
    529             ),
    530             array(
    531                 "name" => "show_title",
    532                 "title" => "Show Title",
    533                 "data_type" => "text",
    534                 "type" => "checkbox",
    535                 "section" => "rsgd_skins",
    536                 "not_null" => "NULL",
    537                 "std" => "1",
    538             ),
    539             array(
    540                 "name" => "show_categories",
    541                 "title" => "Show Taxonomies",
    542                 "data_type" => "text",
    543                 "type" => "checkbox",
    544                 "section" => "rsgd_skins",
    545                 "not_null" => "NULL",
    546                 "std" => "1",
    547             ),
    548             array(
    549                 "name" => "show_link_to_post",
    550                 "title" => "Show Link to post",
    551                 "data_type" => "text",
    552                 "type" => "checkbox",
    553                 "section" => "rsgd_skins",
    554                 "not_null" => "NULL",
    555                 "std" => "1",
    556             ),
    557             array(
    558                 "name" => "show_zoom_image",
    559                 "title" => "Show Zoom Image",
    560                 "data_type" => "text",
    561                 "type" => "checkbox",
    562                 "section" => "rsgd_skins",
    563                 "not_null" => "NULL",
    564                 "std" => "1",
    565             ),
    566             array(
    567                 "name" => "show_excerpt",
    568                 "title" => "Show Excerpt",
    569                 "data_type" => "text",
    570                 "type" => "checkbox",
    571                 "section" => "rsgd_skins",
    572                 "not_null" => "NULL",
    573                 "std" => "",
     523                "class"         => "portfolio-item",
     524                "section"       => "rsgd_skins",
     525                "not_null"      => "NULL",
     526                "std"           => "p-style1",
     527            ),
     528            array(
     529                "name"          => "show_title",
     530                "title"         => esc_html__( "Show Title" , RSGD_SLUG ),
     531                "data_type"     => "text",
     532                "type"          => "checkbox",
     533                "section"       => "rsgd_skins",
     534                "not_null"      => "NULL",
     535                "std"           => "1",
     536            ),
     537            array(
     538                "name"          => "show_categories",
     539                "title"         => esc_html__( "Show Taxonomies" , RSGD_SLUG ),
     540                "data_type"     => "text",
     541                "type"          => "checkbox",
     542                "section"       => "rsgd_skins",
     543                "not_null"      => "NULL",
     544                "std"           => "1",
     545            ),
     546            array(
     547                "name"          => "show_link_to_post",
     548                "title"         => esc_html__( "Show Link to post" , RSGD_SLUG ),
     549                "data_type"     => "text",
     550                "type"          => "checkbox",
     551                "section"       => "rsgd_skins",
     552                "not_null"      => "NULL",
     553                "std"           => "1",
     554            ),
     555            array(
     556                "name"          => "show_zoom_image",
     557                "title"         => esc_html__( "Show Zoom Image" , RSGD_SLUG ),
     558                "data_type"     => "text",
     559                "type"          => "checkbox",
     560                "section"       => "rsgd_skins",
     561                "not_null"      => "NULL",
     562                "std"           => "1",
     563            ),
     564            array(
     565                "name"          => "show_excerpt",
     566                "title"         => esc_html__( "Show Excerpt" , RSGD_SLUG ),
     567                "data_type"     => "text",
     568                "type"          => "checkbox",
     569                "section"       => "rsgd_skins",
     570                "not_null"      => "NULL",
     571                "std"           => "",
    574572            ),
    575573           
    576574            /* Start Nav Filter */
    577575            array(
    578                 "name" => "nav_filter",
    579                 "title" => "Nav-Filter",
    580                 "data_type" => "text",
    581                 "class" => "rsgd_select_boxes",
    582                 "type" => "dropdown",
    583                 "choices" => array(
    584                     'style1'    => 'Round Boxes',
    585                     'style2'    => 'Bottom Border',
    586                     'style3'    => 'Small Bottom Border',
    587                     'style4'    => 'Simple',
    588                     'style5'    => 'Top Bottom Borders',
    589                     'none'      => 'None',
    590                 ),
    591                 "section" => "rsgd_nav",
    592                 "not_null" => "NULL",
    593                 "description" => "Select Navigation filter style that appears at the top of the grids.",
    594             ),
    595             array(
    596                 "name" => "show_all",
    597                 "title" => "Show All Button",
    598                 "data_type" => "text",
    599                 "type" => "checkbox",
    600                 "section" => "rsgd_nav",
    601                 "not_null" => "NULL",
    602                 "description" => "Show / Hide (All) button.",
    603                 "std" => "1",
    604             ),
    605             array(
    606                 "name" => "all_text",
    607                 "title" => "Show All Button Text",
    608                 "data_type" => "text",
    609                 "type" => "text",
    610                 "section" => "rsgd_nav",
    611                 "not_null" => "NULL",
    612                 "std" => "All",
    613                 'dependency' => array(
     576                "name"          => "nav_filter",
     577                "title"         => esc_html__( "Nav-Filter" , RSGD_SLUG ),
     578                "data_type"     => "text",
     579                "class"         => "rsgd_select_boxes",
     580                "type"          => "dropdown",
     581                "choices"       => array(
     582                    'style1'    => esc_html__( 'Round Boxes' , RSGD_SLUG ),
     583                    'style2'    => esc_html__( 'Bottom Border' , RSGD_SLUG ),
     584                    'style3'    => esc_html__( 'Small Bottom Border' , RSGD_SLUG ),
     585                    'style4'    => esc_html__( 'Simple' , RSGD_SLUG ),
     586                    'style5'    => esc_html__( 'Top Bottom Borders' , RSGD_SLUG ),
     587                    'none'      => esc_html__( 'None' , RSGD_SLUG ),
     588                ),
     589                "section"       => "rsgd_nav",
     590                "not_null"      => "NULL",
     591                "description"   => esc_html__( "Select Navigation filter style that appears at the top of the grids." , RSGD_SLUG ),
     592            ),
     593            array(
     594                "name"          => "show_all",
     595                "title"         => esc_html__( "Show All Button" , RSGD_SLUG ),
     596                "data_type"     => "text",
     597                "type"          => "checkbox",
     598                "section"       => "rsgd_nav",
     599                "not_null"      => "NULL",
     600                "description"   => esc_html__( "Show / Hide (All) button." , RSGD_SLUG ),
     601                "std"           => "1",
     602            ),
     603            array(
     604                "name"          => "all_text",
     605                "title"         => esc_html__( "Show All Button Text" , RSGD_SLUG ),
     606                "data_type"     => "text",
     607                "type"          => "text",
     608                "section"       => "rsgd_nav",
     609                "not_null"      => "NULL",
     610                "std"           => esc_html__( "All" , RSGD_SLUG ),
     611                'dependency'    => array(
    614612                    'element' => 'show_all',
    615613                    'value' => '1'
     
    617615            ),
    618616            array(
    619                 "name" => "nav_layout",
    620                 "title" => "Layout Option",
    621                 "data_type" => "text",
    622                 "type" => "dropdown",
    623                 "class" => "rsgd_select_boxes",
    624                 "choices" => array(
    625                     'inline' => 'List',
    626                     'dropdown' => 'DropDown',
    627                 ),
    628                 "section" => "rsgd_nav",
    629                 "not_null" => "NULL",
    630             ),
    631             array(
    632                 "name" => "els_num",
    633                 "title" => "Show Number of Elements",
    634                 "data_type" => "text",
    635                 "type" => "checkbox",
    636                 "section" => "rsgd_nav",
    637                 "not_null" => "NULL",
    638                 "std" => "0",
    639             ),
    640             array(
    641                 "name" => "num_style",
    642                 "title" => "Numbers Style",
    643                 "data_type" => "text",
    644                 "class" => "rsgd_select_boxes",
    645                 "type" => "dropdown",
    646                 "choices" => array(
    647                     'inline' => 'Inline',
    648                     'popup' => 'Tooltip',
    649                 ),
    650                 'dependency' => array(
     617                "name"          => "nav_layout",
     618                "title"         => esc_html__( "Layout Option" , RSGD_SLUG ),
     619                "data_type"     => "text",
     620                "type"          => "dropdown",
     621                "class"         => "rsgd_select_boxes",
     622                "choices"       => array(
     623                    'inline'   => esc_html__( 'List' , RSGD_SLUG ),
     624                    'dropdown' => esc_html__( 'DropDown' , RSGD_SLUG ),
     625                ),
     626                "section"       => "rsgd_nav",
     627                "not_null"      => "NULL",
     628            ),
     629            array(
     630                "name"          => "els_num",
     631                "title"         => esc_html__( "Show Number of Elements" , RSGD_SLUG ),
     632                "data_type"     => "text",
     633                "type"          => "checkbox",
     634                "section"       => "rsgd_nav",
     635                "not_null"      => "NULL",
     636                "std"           => "0",
     637            ),
     638            array(
     639                "name"          => "num_style",
     640                "title"         => esc_html__( "Numbers Style" , RSGD_SLUG ),
     641                "data_type"     => "text",
     642                "class"         => "rsgd_select_boxes",
     643                "type"          => "dropdown",
     644                "choices"       => array(
     645                    'inline' => esc_html__( 'Inline' , RSGD_SLUG ),
     646                    'popup'  => esc_html__( 'Tooltip' , RSGD_SLUG ),
     647                ),
     648                'dependency'    => array(
    651649                    'element' => 'els_num',
    652650                    'value' => '1'
    653651                ),
    654                 "section" => "rsgd_nav",
    655                 "not_null" => "NULL",
    656             ),
    657             /* Start Custom Css */
    658             /*array(
    659                 "name" => "custom_css",
    660                 "title" => "Custom CSS",
    661                 "data_type" => "text",
    662                 "type" => "textarea",
    663                 "class" => "custom_css",
    664                 "section" => "rsgd_css",
    665                 "not_null" => "NULL",
    666                 "description" => "Add custom css code for this grid to give it a custom style.",
    667             ), */
     652                "section"       => "rsgd_nav",
     653                "not_null"      => "NULL",
     654            ),
    668655        );
    669656        return $this->settings;
  • rays-grid/trunk/includes/display-field.php

    r1786219 r2057751  
    2525                foreach ($rsgd_cats as $cat) {
    2626                    if ($cat->count == 1) {
    27                         $catno = ' (' . $cat->count . ' Item)';
     27                        $catno = ' (' . $cat->count . esc_html__( ' Item' , RSGD_SLUG ) . ')';
    2828                    } else {
    29                         $catno = ' (' . $cat->count . ' Items)';
     29                        $catno = ' (' . $cat->count . esc_html__( ' Items' , RSGD_SLUG ) . ')';
    3030                    }
    3131                    $output.= "<option value='" . $cat->slug . "'>" . $cat->name . $catno . "</option>";
     
    3535        } else {
    3636            $output.= " <div id='cats_select'>";
    37                 $output.= '<span class="in-message msg-danger">'.__('Please insert categories in the Portfolio Posts to be shown here.', RSGD_SLUG).'</span>';
     37                $output.= '<span class="in-message msg-danger">'.esc_html__('Please insert categories in the Portfolio Posts to be shown here.', RSGD_SLUG).'</span>';
    3838            $output.= '</div>';
    3939        }
     
    5959        } else {
    6060            $output.= "<div id='tags_select'>";
    61                 $output.= '<span class="in-message msg-danger">'.__('Please insert tags in the Portfolio Posts to be shown here.', RSGD_SLUG).'</span>';
     61                $output.= '<span class="in-message msg-danger">'.esc_html__('Please insert tags in the Portfolio Posts to be shown here.', RSGD_SLUG).'</span>';
    6262            $output.= '</div>';
    6363        }
  • rays-grid/trunk/rays-grid.php

    r2050090 r2057751  
    44  Plugin URI: https://www.it-rays.org/raysgrid
    55  Description: WordPress Plugin for showing Grids with Custom Styles.
    6   Version: 1.1.1
     6  Version: 1.2.0
    77  Author: IT-RAYS
    88  Author URI: https://themeforest.net/user/it-rays/portfolio
     
    6969    public function rsgd_localize_plugin () {
    7070       
    71         load_plugin_textdomain( RSGD_SLUG, false, RSGD_DIR . '/languages' );
     71        load_plugin_textdomain( 'raysgrid', false, RSGD_DIR . '/languages' );
    7272       
    7373    }
  • rays-grid/trunk/readme.txt

    r2050090 r2057751  
    66    Tested up to: 5.1
    77    Requires PHP: 5.6 or later
    8     Stable tag: 1.1.1
     8    Stable tag: 1.2.0
    99    License: GPLv2 or later
    1010    License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.