Plugin Directory

Changeset 2669174


Ignore:
Timestamp:
01/30/2022 10:51:40 AM (4 years ago)
Author:
tarakpatel18
Message:

Minor updates

Location:
post-types-carousel-slider/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • post-types-carousel-slider/trunk/assets/css/post-cs.css

    r2335968 r2669174  
    11#post-cs{width:100%;margin:0 auto;color:#fff;font-family: Raleway, sans-serif;font-size:14px;position:relative;min-height:100px}
    22#post-cs *{color:#fff}
    3 #post-cs .ps-box{background: rgba(0,115,255,1);
    4 background: -moz-linear-gradient(left, rgba(0,115,255,1) 0%, rgba(0,200,255,1) 100%);
    5 background: -webkit-gradient(left top, right top, color-stop(0%, rgba(0,115,255,1)), color-stop(100%, rgba(0,200,255,1)));
    6 background: -webkit-linear-gradient(left, rgba(0,115,255,1) 0%, rgba(0,200,255,1) 100%);
    7 background: -o-linear-gradient(left, rgba(0,115,255,1) 0%, rgba(0,200,255,1) 100%);
    8 background: -ms-linear-gradient(left, rgba(0,115,255,1) 0%, rgba(0,200,255,1) 100%);
    9 background: linear-gradient(to right, rgba(0,115,255,1) 0%, rgba(0,200,255,1) 100%);
    10 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0073ff', endColorstr='#00c8ff', GradientType=1 );
    11 border-radius:3px}
     3#post-cs .ps-box{background: rgba(0,115,255,1);}
    124#post-cs .ps-box .ps-pad{padding:20px;overflow:hidden}
    135#post-cs a{cursor:pointer;color:#fff;text-decoration:none}
    146#post-cs h2{margin:0;font-size:25px}
    15 #post-cs img.ps-image{float:left;border-radius:3px}
     7#post-cs img.ps-image{float:left}
    168#post-cs .ps-content {float:left;width:67%;margin-left:20px}
    17 #post-cs .ps-readmore{color:#fff;font-size:11px;margin-top:5px;padding:4px 7px;background:#0C6CE1;display:inline-block;cursor:pointer;border-radius:3px;box-shadow:none}
     9#post-cs .ps-readmore{color:#fff;font-size:11px;margin-top:5px;padding:4px 7px;background:#0C6CE1;display:inline-block;cursor:pointer;box-shadow:none}
    1810
    1911/*Next .ps-prev*/
    20 #post-cs .ps-next,#post-cs .ps-prev{position:absolute;bottom:20px;color:#fff;font-size:11px;margin:0;padding:4px 7px;background:#0C6CE1;display:inline-block;cursor:pointer;border-radius:3px;box-shadow:none}
     12#post-cs .ps-next,#post-cs .ps-prev{position:absolute;bottom:20px;color:#fff;font-size:11px;margin:0;padding:4px 7px;background:#0C6CE1;display:inline-block;cursor:pointer;box-shadow:none}
    2113#post-cs .ps-next{right:0}
    2214#post-cs .ps-prev{left:0}
     
    3224
    3325/*Nodata*/
    34 #post-cs .nodata{position:absolute;left:0;top:0;width:100%;text-align:center;padding:5px 0;z-index:999;background:#869791;color:#fff;font-size:12px;border-radius:3px 3px 0 0}
     26#post-cs .nodata{position:absolute;left:0;top:0;width:100%;text-align:center;padding:5px 0;z-index:999;background:#869791;color:#fff;font-size:12px}
    3527
    3628/*Full width*/
     
    8274.bxslider li a{cursor:pointer;color:#fff;text-decoration:none}
    8375.bxslider li h2{margin:0;font-size:25px}
    84 .bxslider li img.ps-image{float:left;border-radius:3px;max-width: 150px;}
     76.bxslider li img.ps-image{float:left;max-width: 150px;}
    8577.bxslider li .ps-content {float:left;width:75%;margin-left:20px}
    86 .bxslider li .ps-readmore{color:#fff;font-size:11px;margin-top:5px;padding:4px 7px;background:#0C6CE1;display:inline-block;cursor:pointer;border-radius:3px;box-shadow:none}
     78.bxslider li .ps-readmore{color:#fff;font-size:11px;margin-top:5px;padding:4px 7px;background:#0C6CE1;display:inline-block;cursor:pointer;box-shadow:none}
    8779
    8880
  • post-types-carousel-slider/trunk/includes/admin.php

    r2335968 r2669174  
    2525    /*Add menu*/
    2626    public function postcs_menu() {
    27         add_menu_page( __( 'Post Carousel & Slider', 'post-carousel-and-slider' ), __( 'Post Carousel & Slider', 'post-carousel-and-slider' ), 'manage_options', 'postcs', array( $this, 'postcs_page' ) );
    28         add_submenu_page( 'postcs', __( 'Common Setting', 'post-carousel-and-slider' ), __( 'Common Setting', 'post-carousel-and-slider' ), 'manage_options', 'postcssetting', array( $this, 'postcs_page_setting' ) );
     27        add_menu_page( __( 'Post carousel & slider', 'post-carousel-and-slider' ), __( 'Post carousel & slider', 'post-carousel-and-slider' ), 'manage_options', 'postcs', array( $this, 'postcs_page' ) );
     28        add_submenu_page( 'postcs', __( 'Common setting', 'post-carousel-and-slider' ), __( 'Common setting', 'post-carousel-and-slider' ), 'manage_options', 'postcssetting', array( $this, 'postcs_page_setting' ) );
    2929    }
    3030
     
    4444        ?>
    4545        <div id="<?php echo esc_attr( 'psbox' ); ?>" class="<?php echo esc_attr( 'wrap' ); ?>">
    46             <h1><?php echo esc_html( 'Post Carousel & Slider' ); ?></h1>
     46            <a style="margin-top:15px;" class="<?php echo esc_attr( 'button button-primary button-small alain-right' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs'); ?>"><?php echo esc_html('All slider and carousel'); ?></a>   
     47            <h1><?php echo esc_html( 'Post carousel & slider' ); ?></h1>
    4748            <hr>
    4849            <?php
     
    8687                    ?>
    8788                    <div class="content-box top">
    88                         <a class="<?php echo esc_attr( 'button button-primary' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$slider_no.''); ?>">
     89                        <a class="<?php echo esc_attr( 'button button-small' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$slider_no.''); ?>">
    8990                            <?php echo esc_html('Back'); ?>
    9091                        </a>
     92                        <br><br>
    9193                        <?php echo do_shortcode('[post-cs id='.$preview.' '.$des_opt.']'); ?>
    9294                    </div>
     
    9597                    ?>
    9698                    <div class="content-box top">
    97                         <h3><?php echo esc_html( 'Sortcode' ) ?> :</h3>
     99                        <a class="<?php echo esc_attr( 'button button-small alain-right' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$slider_no.'&preview='.$slider_no.''); ?>"><?php echo esc_html('Preview'); ?></a>
    98100                        <pre>
    99                             <strong><?php echo esc_html( 'CMS' ) ?> : </strong> <?php echo $sortcodeforcms; ?>
     101                            <strong><?php echo esc_html( 'Sortcode for CMS' ) ?> : </strong> <?php echo $sortcodeforcms; ?>
    100102                        </pre>
    101103                        <pre>
    102                             <strong><?php echo esc_html( 'PHP' ) ?> : </strong> <?php echo $sortcodeforphp; ?>
     104                            <strong><?php echo esc_html( 'Sortcode for PHP' ) ?> : </strong> <?php echo $sortcodeforphp; ?>
    103105                        </pre>
    104                         <h3 class="<?php echo esc_attr( 'rateme alain-right' ); ?>">Don’t forget to rate this plugin if you like it, thanks!... :)</h3>
    105                         <a class="<?php echo esc_attr( 'button button-primary' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs'); ?>"><?php echo esc_html('All Slider and Carousel'); ?></a>
    106                         <a class="<?php echo esc_attr( 'button button-primary' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$slider_no.'&preview='.$slider_no.''); ?>"><?php echo esc_html('Preview'); ?></a>                     
    107106                    </div>
    108107                    <form method="post" action="options.php">
     
    113112                        <table class="<?php echo esc_attr( 'form-table psform' ); ?>">
    114113                            <tr valign="top">
    115                                 <th scope="row"><?php echo esc_html( 'Enter Name' ); ?></th>
     114                                <th scope="row"><?php echo esc_html( 'Enter slider name' ); ?></th>
    116115                                <td>
    117116                                    <?php
     
    122121                                    ?>
    123122                                    <input type="text" name="ps_setting[<?php echo $slider_no; ?>][enter_name]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="<?php echo esc_attr($get_enter_name); ?>" />
    124                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    125                                         <?php echo esc_html( 'Enter slider name OR carousel name' ); ?>
    126                                     </p>
    127                                 </td>
    128                             </tr>
    129                             <tr valign="top">
    130                                 <th scope="row"><?php echo esc_html( 'Select Post type' ); ?></th>
     123                                    <span class="<?php echo esc_attr( 'description' ); ?>">
     124                                        <?php echo esc_html( 'enter slider name OR carousel name' ); ?>
     125                                    </span>
     126                                </td>
     127                            </tr>
     128                            <tr valign="top">
     129                                <th scope="row"><?php echo esc_html( 'Select post type' ); ?></th>
    131130                                <td>
    132131                                    <?php
     
    139138                                        <option <?php if($get_post_type == 'any') echo 'selected'; ?> value="any"><?php echo esc_html( 'Any' ); ?></option>
    140139                                        <?php
    141                                         foreach ( get_post_types( '', 'names' ) as $post_type ) {
     140                                        $args = array(
     141                                            'public'=> true
     142                                        );
     143                                        foreach ( get_post_types( $args, 'names' ) as $post_type ) {
    142144                                            if($post_type == 'attachment' || $post_type == 'revision' || $post_type == 'nav_menu_item' || $post_type == 'custom_css' || $post_type == 'customize_changeset' || $post_type == 'acf' || $post_type == 'product_variation' || $post_type == 'shop_order' || $post_type == 'shop_order_refund' || $post_type == 'shop_webhook') {
    143145
     
    147149                                        } ?>                               
    148150                                    </select>
    149                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    150                                         <?php echo esc_html( 'Retrieves posts by Post Type' ); ?>
    151                                     </p>               
    152                                 </td>
    153                             </tr>
    154                             <tr valign="top">
    155                                 <th scope="row"><?php echo esc_html( 'Exclude Posts by ID' ); ?></th>
     151                                    <span class="<?php echo esc_attr( 'description' ); ?>">
     152                                        <?php echo esc_html( 'retrieves posts by post type' ); ?>
     153                                    </span>             
     154                                </td>
     155                            </tr>
     156                            <tr valign="top">
     157                                <th scope="row"><?php echo esc_html( 'Exclude posts by id' ); ?></th>
    156158                                <td>
    157159                                    <?php
     
    163165                                    <input type="text" name="ps_setting[<?php echo $slider_no; ?>][exclude_post]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="<?php echo esc_attr($get_exclude_post); ?>" />
    164166                                    <p class="<?php echo esc_attr( 'description' ); ?>">
    165                                         <?php echo esc_html( 'Exclude Post with their ID’s that you do not want to display' ); ?>
    166                                     </p>
    167                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    168                                         <?php echo esc_html( 'Add post IDs in comma separated like 1,2,3' ); ?>
     167                                        <?php echo esc_html( 'exclude post with their id that you do not want to display. add post id in comma separated like 1,2,3' ); ?>
    169168                                    </p>
    170169                                </td>
     
    181180                                    <input type="number" name="ps_setting[<?php echo $slider_no; ?>][posts_per_page]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="<?php echo esc_attr($get_posts_per_page); ?>" />
    182181                                    <p class="<?php echo esc_attr( 'description' ); ?>">
    183                                         <?php echo esc_html( 'Number of post to show per slider' ); ?>
    184                                     </p>
    185                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    186                                         <?php echo esc_html( 'Select 1 for slider and more then 1 for carousel' ); ?>
     182                                        <?php echo esc_html( 'number of post to show per slider. select 1 for slider and more then 1 for carousel.' ); ?>
    187183                                    </p>
    188184                                </td>
     
    201197                                        <option <?php if($get_order == 'ASC') echo 'selected'; ?> value="<?php echo esc_attr( 'ASC' ); ?>"><?php echo esc_html( 'ASC' ); ?></option>
    202198                                    </select>
    203                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    204                                         <?php echo esc_html( 'Ascending or descending order' ); ?>
    205                                     </p>
     199                                    <span class="<?php echo esc_attr( 'description' ); ?>">
     200                                        <?php echo esc_html( 'ascending or descending order' ); ?>
     201                                    </span>
    206202                                </td>
    207203                            </tr>
     
    221217                                        <option <?php if($get_orderby == 'name') echo 'selected'; ?> value="<?php echo esc_attr( 'name' ); ?>"><?php echo esc_html( 'name' ); ?></option>
    222218                                    </select>
    223                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    224                                         <?php echo esc_html( 'Sort retrieved posts by ID, title, name or date' ); ?>
    225                                     </p>
    226                                 </td>
    227                             </tr>
    228                             <tr valign="top">
    229                                 <th scope="row"><?php echo esc_html( 'Post Status' ); ?></th>
    230                                 <td>
    231                                     <?php
    232                                     $get_post_status = 'publish';
    233                                     if(isset($get_wpqc_setting['post_status'])) {
    234                                         $get_post_status = $get_wpqc_setting['post_status'];
    235                                     }
    236                                     ?>
    237                                     <select name="wpqc_setting[<?php echo $query_no; ?>][post_status]" class="<?php echo esc_attr( 'regular-text' ); ?>">
    238                                         <option <?php if($get_post_status == 'publish') echo 'selected'; ?> value="<?php echo esc_attr( 'publish' ); ?>"><?php echo esc_html( 'publish' ); ?></option>
    239                                         <option <?php if($get_post_status == 'pending') echo 'selected'; ?> value="<?php echo esc_attr( 'pending' ); ?>"><?php echo esc_html( 'pending' ); ?></option>                                     
    240                                         <option <?php if($get_post_status == 'draft') echo 'selected'; ?> value="<?php echo esc_attr( 'draft' ); ?>"><?php echo esc_html( 'draft' ); ?></option>
    241                                         <option <?php if($get_post_status == 'auto-draft') echo 'selected'; ?> value="<?php echo esc_attr( 'auto-draft' ); ?>"><?php echo esc_html( 'auto-draft' ); ?></option>
    242                                         <option <?php if($get_post_status == 'future') echo 'selected'; ?> value="<?php echo esc_attr( 'future' ); ?>"><?php echo esc_html( 'future' ); ?></option>
    243                                         <option <?php if($get_post_status == 'private') echo 'selected'; ?> value="<?php echo esc_attr( 'private' ); ?>"><?php echo esc_html( 'private' ); ?></option>
    244                                         <option <?php if($get_post_status == 'inherit') echo 'selected'; ?> value="<?php echo esc_attr( 'inherit' ); ?>"><?php echo esc_html( 'inherit' ); ?></option>
    245                                         <option <?php if($get_post_status == 'trash') echo 'selected'; ?> value="<?php echo esc_attr( 'trash' ); ?>"><?php echo esc_html( 'trash' ); ?></option>
    246                                         <option <?php if($get_post_status == 'any') echo 'selected'; ?> value="<?php echo esc_attr( 'any' ); ?>"><?php echo esc_html( 'any' ); ?></option>
    247                                     </select>
    248                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    249                                         <?php echo esc_html( 'Show posts associated with certain status.' ); ?>
    250                                     </p>
    251                                 </td>
    252                             </tr>
    253                             <tr valign="top">
    254                                 <th scope="row"><?php echo esc_html( 'Select Category' ); ?></th>
     219                                    <span class="<?php echo esc_attr( 'description' ); ?>">
     220                                        <?php echo esc_html( 'sort retrieved posts by id, title, name or date' ); ?>
     221                                    </span>
     222                                </td>
     223                            </tr>
     224                            <tr valign="top">
     225                                <th scope="row"><?php echo esc_html( 'Select category' ); ?></th>
    255226                                <td>
    256227                                    <?php
     
    265236                                    ?>
    266237                                    <select name="ps_setting[<?php echo $slider_no; ?>][cat][]" multiple class="<?php echo esc_attr( 'regular-text' ); ?>">
    267                                     <option value="">Select Category</option>
     238                                    <option value="">Select category</option>
    268239                                    <?php foreach($categories as $key => $val) { ?>
    269240                                        <option <?php if ($get_cat && in_array($val->term_id, $get_cat)) { echo "selected"; } ?> value="<?php echo $val->term_id; ?>"><?php echo $val->name; ?></option>
    270241                                    <?php } ?>
    271242                                    </select>
    272                                     <p class="description">
    273                                         <?php echo esc_html( 'Display posts that have this category' ); ?>
    274                                     </p>
    275                                 </td>
    276                             </tr>
    277                             <tr valign="top">
    278                                 <th scope="row"><?php echo esc_html( 'Exclude Category' ); ?></th>
     243                                    <span class="description">
     244                                        <?php echo esc_html( 'display posts that have this category' ); ?>
     245                                    </span>
     246                                </td>
     247                            </tr>
     248                            <tr valign="top">
     249                                <th scope="row"><?php echo esc_html( 'Exclude category' ); ?></th>
    279250                                <td>
    280251                                    <?php
     
    285256                                    ?>
    286257                                    <select name="ps_setting[<?php echo $slider_no; ?>][excat][]" multiple class="<?php echo esc_attr( 'regular-text' ); ?>">
    287                                     <option value="">Select Category</option>
     258                                    <option value="">Select category</option>
    288259                                    <?php foreach($categories as $key => $val) { ?>
    289260                                        <option <?php if ($get_excat && in_array($val->term_id, $get_excat)) { echo "selected"; } ?> value="<?php echo $val->term_id; ?>"><?php echo $val->name; ?></option>
    290261                                    <?php } ?>
    291262                                    </select>
    292                                     <p class="description">
    293                                         <?php echo esc_html( 'Display all posts except those from selected category' ); ?>
    294                                     </p>
    295                                 </td>
    296                             </tr>
     263                                    <span class="description">
     264                                        <?php echo esc_html( 'display all posts except those from selected category' ); ?>
     265                                    </span>
     266                                </td>
     267                            </tr>
     268                            <?php
     269                            $args = array(
     270                                'public' => true,
     271                                '_builtin' => false
     272                            );
     273                            $taxonomies = get_taxonomies($args);
     274                            if (count($taxonomies)) {
     275                            ?>
    297276                            <tr valign="top">
    298277                                <th scope="row"><?php echo esc_html( 'Select Taxonomy' ); ?></th>
    299278                                <td>
    300                                     <?php $taxonomies = get_taxonomies();
     279                                    <?php
    301280                                    foreach($taxonomies as $key => $val) {
    302281                                        if($key == 'category' || $key == 'post_tag' || $key == 'nav_menu' || $key == 'link_category' || $key == 'post_format') {
     
    322301                                    } ?>
    323302                                    <p class="description">
    324                                         <?php echo esc_html( 'Show posts associated with certain taxonomy' ); ?>
    325                                     </p>
    326                                 </td>
    327                             </tr>
    328                             <tr valign="top">
    329                                 <th scope="row"><?php echo esc_html( 'Select Tags' ); ?></th>
     303                                        <?php echo esc_html( 'show posts associated with certain taxonomy' ); ?>
     304                                    </p>
     305                                </td>
     306                            </tr>
     307                            <?php } ?>
     308                            <tr valign="top">
     309                                <th scope="row"><?php echo esc_html( 'Select tags' ); ?></th>
    330310                                <td>
    331311                                    <?php
     
    337317                                    ?>
    338318                                    <select name="ps_setting[<?php echo $slider_no; ?>][tags][]" multiple class="<?php echo esc_attr( 'regular-text' ); ?>">
    339                                     <option value="">Select Tags</option>
     319                                    <option value="">Select tags</option>
    340320                                    <?php foreach($tags as $key => $val) { ?>
    341321                                        <option <?php if ($get_tags && in_array($val->slug, $get_tags)) { echo "selected"; } ?> value="<?php echo $val->slug; ?>"><?php echo $val->name; ?></option>
    342322                                    <?php } ?>
    343323                                    </select>
    344                                     <p class="description">
    345                                         <?php echo esc_html( 'Display posts that have this tag' ); ?>
    346                                     </p>
    347                                 </td>
    348                             </tr>
    349                             <tr valign="top">
    350                                 <th scope="row"><?php echo esc_html( 'Search String' ); ?></th>
     324                                    <span class="description">
     325                                        <?php echo esc_html( 'display posts that have this tag' ); ?>
     326                                    </span>
     327                                </td>
     328                            </tr>
     329                            <tr valign="top">
     330                                <th scope="row"><?php echo esc_html( 'Search string' ); ?></th>
    351331                                <td>
    352332                                    <?php
     
    357337                                    ?>
    358338                                    <input type="text" name="ps_setting[<?php echo $slider_no; ?>][search_string]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="<?php echo esc_attr($get_search_string); ?>" />
     339                                    <span class="<?php echo esc_attr( 'description' ); ?>">
     340                                        <?php echo esc_html( 'show posts based on a keyword search' ); ?>
     341                                    </span>
     342                                </td>
     343                            </tr>
     344                            <tr valign="top">
     345                                <th scope="row"><?php echo esc_html( 'Template setting' ); ?></th>
     346                                <td>
    359347                                    <p class="<?php echo esc_attr( 'description' ); ?>">
    360                                         <?php echo esc_html( 'Show posts based on a keyword search' ); ?>
    361                                     </p>
    362                                 </td>
    363                             </tr>
    364                             <tr valign="top">
    365                                 <th scope="row"><?php echo esc_html( 'Template Setting' ); ?></th>
    366                                 <td>
    367                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    368                                         <?php echo esc_html( 'Dynemic tags : Use below tags for fatch dynemic content.' ); ?>
     348                                        <?php echo esc_html( 'dynemic tags : Use below tags for fatch dynemic content.' ); ?>
    369349                                    </p>
    370350                                    <p>
     
    408388                                    ?>
    409389                                    <p class="<?php echo esc_attr( 'description' ); ?>">
    410                                         <?php echo esc_html( 'Animation : below classes you can use for animation.' ); ?>
     390                                        <?php echo esc_html( 'animation : hear are all classes you can use for animation.' ); ?>
    411391                                        <a href="<?php echo esc_url( 'https://daneden.github.io/animate.css/' ); ?>" target="_blank"><?php echo esc_html( 'https://daneden.github.io/animate.css/' ); ?></a>
    412392                                    </p>
     
    440420                                        </strong>
    441421                                    </p>
    442                                     <br>
    443                                     <p>Also you can add fields which created by <a href="https://wordpress.org/plugins/advanced-custom-fields/" target="_blank">Advance Custom Field</a> plugin.</p>
    444                                     <p>
    445                                         <strong>
    446                                             <code class="adf"> <i>Text field</i> <?php echo esc_html( '%get_field|field_name|text%' ); ?></code>
    447                                             <code class="adf"> <i>Email field</i> <?php echo esc_html( '%get_field|field_name|email%' ); ?></code>
    448                                             <code class="adf"> <i>Number field</i> <?php echo esc_html( '%get_field|field_name|number%' ); ?></code>
    449                                             <code class="adf"> <i>Textarea field</i> <?php echo esc_html( '%get_field|field_name|textarea%' ); ?></code>
    450                                             <code class="adf"> <i>Editor field</i> <?php echo esc_html( '%get_field|field_name|editor%' ); ?></code>
    451                                             <code class="adf"> <i>Image field (Image Object) thumb</i> <?php echo esc_html( '%get_field|field_name|image|thumbnail%' ); ?></code>
    452                                             <code class="adf"> <i>Image field (Image Object) medium</i> <?php echo esc_html( '%get_field|field_name|image|medium%' ); ?></code>
    453                                             <code class="adf"> <i>Image field (Image Object) large size</i> <?php echo esc_html( '%get_field|field_name|image|large%' ); ?></code>
    454                                             <code class="adf"> <i>Image field (Image Object) full</i> <?php echo esc_html( '%get_field|field_name|image|url%' ); ?></code>
    455                                             <code class="adf"> <i>Image field (Image URL)</i> <?php echo esc_html( '%get_field|field_name|image%' ); ?></code>
    456                                             <code class="adf"> <i>Image field (Image ID)</i> <?php echo esc_html( '%get_field|field_name|image%' ); ?></code>
    457                                         </strong>
    458                                     </p>
    459                                 </td>
    460                             </tr>
    461                             <tr valign="top">
    462                                 <th scope="row"><?php echo esc_html( 'No Ajax' ); ?></th>
     422                                </td>
     423                            </tr>
     424                            <tr valign="top">
     425                                <th scope="row"><?php echo esc_html( 'Design option' ); ?></th>
     426                                <td class="<?php echo esc_attr( 'design-option' ); ?>">
     427                                    <?php
     428                                    $get_design_option = 'fullwidth';
     429                                    if(isset($get_ps_setting['design_option'])) {
     430                                        $get_design_option = $get_ps_setting['design_option']; 
     431                                    }
     432                                    ?>
     433                                    <input id="<?php echo esc_attr( 'fullwidth' ); ?>" type="radio" <?php if($get_design_option == 'fullwidth') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'fullwidth' ); ?>">
     434                                    <label for="fullwidth" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'fullwidth') echo esc_attr( ' checked' ); ?>">
     435                                        <?php echo esc_html( 'Full width' ); ?>
     436                                    </label>
     437                                    <input id="<?php echo esc_attr( 'fixwidth' ); ?>" type="radio" <?php if($get_design_option == 'fixwidth') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'fixwidth' ); ?>">
     438                                    <label style="margin-right:25px;" for="fixwidth" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'fixwidth') echo esc_attr( ' checked' ); ?>">
     439                                        <?php echo esc_html( 'Fix width' ); ?>
     440                                    </label>
     441                                    <input id="<?php echo esc_attr( 'grid' ); ?>" type="radio" <?php if($get_design_option == 'grid') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'grid' ); ?>">
     442                                    <label for="grid" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'grid') echo esc_attr( ' checked' ); ?>">
     443                                        <?php echo esc_html( 'Grid' ); ?>
     444                                    </label>
     445                                    <input id="<?php echo esc_attr( 'grid2' ); ?>" type="radio" <?php if($get_design_option == 'grid2') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'grid2' ); ?>">
     446                                    <label style="margin-right:25px;" for="grid2" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'grid2') echo esc_attr( ' checked' ); ?>">
     447                                        <?php echo esc_html( 'Grid - 2' ); ?>
     448                                    </label>
     449                                    <input id="<?php echo esc_attr( 'carousel2' ); ?>" type="radio" <?php if($get_design_option == 'carousel2') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'carousel2' ); ?>">
     450                                    <label for="carousel2" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'carousel2') echo esc_attr( ' checked' ); ?>">
     451                                        <?php echo esc_html( 'Carousel - 2' ); ?>
     452                                    </label>
     453                                    <input id="<?php echo esc_attr( 'carousel3' ); ?>" type="radio" <?php if($get_design_option == 'carousel3') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'carousel3' ); ?>">
     454                                    <label for="carousel3" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'carousel3') echo esc_attr( ' checked' ); ?>">
     455                                        <?php echo esc_html( 'Carousel - 3' ); ?>
     456                                    </label>
     457                                    <input id="<?php echo esc_attr( 'carousel4' ); ?>" type="radio" <?php if($get_design_option == 'carousel4') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'carousel4' ); ?>">
     458                                    <label style="margin-right:25px;" for="carousel4" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'carousel4') echo esc_attr( ' checked' ); ?>">
     459                                        <?php echo esc_html( 'Carousel - 4' ); ?>
     460                                    </label>
     461                                    <input id="<?php echo esc_attr( 'insidebar' ); ?>" type="radio" <?php if($get_design_option == 'insidebar') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'insidebar' ); ?>">
     462                                    <label for="insidebar" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'insidebar') echo esc_attr( ' checked' ); ?>">
     463                                        <?php echo esc_html( 'In sidebar (widget)' ); ?>
     464                                    </label>
     465                                    <input id="<?php echo esc_attr( 'nodesign' ); ?>" type="radio" <?php if($get_design_option == 'nodesign') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'nodesign' ); ?>">
     466                                    <label for="nodesign" class="<?php echo esc_attr( 'button button-small' ); if($get_design_option == 'nodesign') echo esc_attr( ' checked' ); ?>">
     467                                        <?php echo esc_html( 'No design' ); ?>
     468                                    </label>
     469                                    <p class="<?php echo esc_attr( 'description' ); ?>">
     470                                        <?php echo esc_html( 'select readymade design option from above' ); ?>
     471                                    </p>
     472                                </td>
     473                            </tr>
     474                            <tr valign="top">
     475                                <th scope="row"><?php echo esc_html( 'Excerpt length' ); ?></th>
     476                                <td>
     477                                    <?php
     478                                    $get_excerpt_length = 100;
     479                                    if(isset($get_ps_setting['excerpt_length'])) {
     480                                        $get_excerpt_length = $get_ps_setting['excerpt_length'];   
     481                                    }
     482                                    ?>
     483                                    <input type="number" name="ps_setting[<?php echo $slider_no; ?>][excerpt_length]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="<?php echo esc_attr($get_excerpt_length); ?>" />
     484                                    <p class="<?php echo esc_attr( 'description' ); ?>">
     485                                        <?php echo esc_html( 'default excerpt word length is 100 words. Change is as per your requirement.' ); ?>
     486                                    </p>
     487                                </td>
     488                            </tr>
     489                            <tr valign="top">
     490                                <th scope="row"><?php echo esc_html( 'No ajax' ); ?></th>
    463491                                <td>
    464492                                    <?php
     
    470498                                    <input type="checkbox" <?php if($get_no_ajax == '1') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][no_ajax]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    471499                                    <span class="<?php echo esc_attr( 'description' ); ?>">
    472                                         <?php echo esc_html( 'Return plain html code' ); ?>
    473                                     </span>
    474                                 </td>
    475                             </tr>
    476                             <tr valign="top">
    477                                 <th scope="row"><?php echo esc_html( 'Design Option' ); ?></th>
    478                                 <td class="<?php echo esc_attr( 'design-option' ); ?>">
    479                                     <?php
    480                                     $get_design_option = 'fullwidth';
    481                                     if(isset($get_ps_setting['design_option'])) {
    482                                         $get_design_option = $get_ps_setting['design_option']; 
    483                                     }
    484                                     ?>
    485                                     <input id="<?php echo esc_attr( 'fullwidth' ); ?>" type="radio" <?php if($get_design_option == 'fullwidth') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'fullwidth' ); ?>">
    486                                     <label for="fullwidth" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'fullwidth') echo esc_attr( ' checked' ); ?>">
    487                                         <?php echo esc_html( 'Full width' ); ?>
    488                                     </label>
    489                                     <input id="<?php echo esc_attr( 'fixwidth' ); ?>" type="radio" <?php if($get_design_option == 'fixwidth') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'fixwidth' ); ?>">
    490                                     <label for="fixwidth" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'fixwidth') echo esc_attr( ' checked' ); ?>">
    491                                         <?php echo esc_html( 'Fix width' ); ?>
    492                                     </label>
    493                                     <br><br>
    494                                     <input id="<?php echo esc_attr( 'grid' ); ?>" type="radio" <?php if($get_design_option == 'grid') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'grid' ); ?>">
    495                                     <label for="grid" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'grid') echo esc_attr( ' checked' ); ?>">
    496                                         <?php echo esc_html( 'Grid' ); ?>
    497                                     </label>
    498                                     <input id="<?php echo esc_attr( 'grid2' ); ?>" type="radio" <?php if($get_design_option == 'grid2') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'grid2' ); ?>">
    499                                     <label for="grid2" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'grid2') echo esc_attr( ' checked' ); ?>">
    500                                         <?php echo esc_html( 'Grid - 2' ); ?>
    501                                     </label>
    502                                     <br><br>
    503                                     <input id="<?php echo esc_attr( 'carousel2' ); ?>" type="radio" <?php if($get_design_option == 'carousel2') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'carousel2' ); ?>">
    504                                     <label for="carousel2" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'carousel2') echo esc_attr( ' checked' ); ?>">
    505                                         <?php echo esc_html( 'Carousel - 2' ); ?>
    506                                     </label>
    507                                     <input id="<?php echo esc_attr( 'carousel3' ); ?>" type="radio" <?php if($get_design_option == 'carousel3') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'carousel3' ); ?>">
    508                                     <label for="carousel3" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'carousel3') echo esc_attr( ' checked' ); ?>">
    509                                         <?php echo esc_html( 'Carousel - 3' ); ?>
    510                                     </label>
    511                                     <input id="<?php echo esc_attr( 'carousel4' ); ?>" type="radio" <?php if($get_design_option == 'carousel4') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'carousel4' ); ?>">
    512                                     <label for="carousel4" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'carousel4') echo esc_attr( ' checked' ); ?>">
    513                                         <?php echo esc_html( 'Carousel - 4' ); ?>
    514                                     </label>
    515                                     <br><br>
    516                                     <input id="<?php echo esc_attr( 'insidebar' ); ?>" type="radio" <?php if($get_design_option == 'insidebar') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'insidebar' ); ?>">
    517                                     <label for="insidebar" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'insidebar') echo esc_attr( ' checked' ); ?>">
    518                                         <?php echo esc_html( 'In Sidebar (Widget)' ); ?>
    519                                     </label>
    520                                     <input id="<?php echo esc_attr( 'nodesign' ); ?>" type="radio" <?php if($get_design_option == 'nodesign') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][design_option]" value="<?php echo esc_attr( 'nodesign' ); ?>">
    521                                     <label for="nodesign" class="<?php echo esc_attr( 'button' ); if($get_design_option == 'nodesign') echo esc_attr( ' checked' ); ?>">
    522                                         <?php echo esc_html( 'No design' ); ?>
    523                                     </label>
    524                                     <br><br>
    525                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    526                                         <?php echo esc_html( 'Select readymade design option from above' ); ?>
    527                                     </p>
    528                                 </td>
    529                             </tr>
    530                             <tr valign="top">
    531                                 <th scope="row"><?php echo esc_html( 'Excerpt length' ); ?></th>
    532                                 <td>
    533                                     <?php
    534                                     $get_excerpt_length = 100;
    535                                     if(isset($get_ps_setting['excerpt_length'])) {
    536                                         $get_excerpt_length = $get_ps_setting['excerpt_length'];   
    537                                     }
    538                                     ?>
    539                                     <input type="number" name="ps_setting[<?php echo $slider_no; ?>][excerpt_length]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="<?php echo esc_attr($get_excerpt_length); ?>" />
    540                                     <p class="<?php echo esc_attr( 'description' ); ?>">
    541                                         <?php echo esc_html( 'Default excerpt word length is 100 words. Change is as per your requirement.' ); ?>
    542                                     </p>
    543                                 </td>
    544                             </tr>
    545                             <tr valign="top">
    546                                 <th scope="row"><?php echo esc_html( 'Hide Next/Prev' ); ?></th>
     500                                        <?php echo esc_html( 'return plain html code' ); ?>
     501                                    </span>
     502                                </td>
     503                            </tr>
     504                            <tr valign="top">
     505                                <th scope="row"><?php echo esc_html( 'Hide next / prev' ); ?></th>
    547506                                <td>
    548507                                    <?php
     
    554513                                    <input type="checkbox" <?php if($get_hide_next_prev == '1') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][hide_next_prev]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    555514                                    <span class="<?php echo esc_attr( 'description' ); ?>">
    556                                         <?php echo esc_html( 'Tick here for hide Next/Prev arrow' ); ?>
    557                                     </span>
    558                                 </td>
    559                             </tr>
    560                             <tr valign="top">
    561                                 <th scope="row"><?php echo esc_html( 'Hide Pagination' ); ?></th>
     515                                        <?php echo esc_html( 'tick here for hiding next / prev buttons' ); ?>
     516                                    </span>
     517                                </td>
     518                            </tr>
     519                            <tr valign="top">
     520                                <th scope="row"><?php echo esc_html( 'Hide pagination' ); ?></th>
    562521                                <td>
    563522                                    <?php
     
    569528                                    <input type="checkbox" <?php if($get_hide_pagi == '1') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][hide_pagi]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    570529                                    <span class="<?php echo esc_attr( 'description' ); ?>">
    571                                         <?php echo esc_html( 'Tick here for hide pagination' ); ?>
     530                                        <?php echo esc_html( 'tick here for hiding pagination' ); ?>
    572531                                    </span>
    573532                                </td>
     
    584543                                    <input type="checkbox" <?php if($get_mw_on == '1') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][mw_on]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    585544                                    <span class="<?php echo esc_attr( 'description' ); ?>">
    586                                         <?php echo esc_html( 'Check this for start next / prev on mousewheel' ); ?>
    587                                     </span>
    588                                 </td>
    589                             </tr>
    590                             <tr valign="top">
    591                                 <th scope="row"><?php echo esc_html( 'Infinite Loop OFF' ); ?></th>
     545                                        <?php echo esc_html( 'check this to enable next / prev on mouse wheel event' ); ?>
     546                                    </span>
     547                                </td>
     548                            </tr>
     549                            <tr valign="top">
     550                                <th scope="row"><?php echo esc_html( 'Infinite loop OFF' ); ?></th>
    592551                                <td>
    593552                                    <?php
     
    599558                                    <input type="checkbox" <?php if($get_il_off == '1') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][il_off]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    600559                                    <span class="<?php echo esc_attr( 'description' ); ?>">
    601                                         <?php echo esc_html( 'By default clicking "Next" while on the last slide will transition to the first slide and. Tick here for stop looping' ); ?>
    602                                     </span>
    603                                 </td>
    604                             </tr>
    605                             <tr valign="top">
    606                                 <th scope="row"><?php echo esc_html( 'Touch Swipe ON' ); ?></th>
     560                                        <?php echo esc_html( 'by default clicking "Next" on the last slide will display the first slide again. tick here to stop looping.' ); ?>
     561                                    </span>
     562                                </td>
     563                            </tr>
     564                            <tr valign="top">
     565                                <th scope="row"><?php echo esc_html( 'Touch swipe ON' ); ?></th>
    607566                                <td>
    608567                                    <?php
     
    614573                                    <input type="checkbox" <?php if($get_ts_on == '1') echo 'checked'; ?> name="ps_setting[<?php echo $slider_no; ?>][ts_on]" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    615574                                    <span class="<?php echo esc_attr( 'description' ); ?>">
    616                                         <?php echo esc_html( 'Tick here for start Next, Prev slider on tough swipe / mouse swipe' ); ?>
     575                                        <?php echo esc_html( 'check this to enable next / prev on tough swipe / mouse swipe' ); ?>
    617576                                    </span>
    618577                                </td>
     
    620579                        </table>
    621580                        <?php submit_button(); ?>
     581                        <h3 class="<?php echo esc_attr( 'rateme alain-right' ); ?>">Don’t forget to rate this plugin if you like it, thanks!... :)</h3>
    622582                    </form>
    623583                <?php }
     
    637597                        ?>
    638598                        <div class="<?php echo esc_attr('content-box'); ?>">
    639                             <a class="<?php echo esc_attr( 'button button-primary' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs'); ?>">
    640                                 <?php echo esc_html('Remove Preview'); ?>
     599                            <a class="<?php echo esc_attr( 'button button-small' ); ?>" href="<?php echo admin_url('/admin.php?page=postcs'); ?>">
     600                                <?php echo esc_html('close preview'); ?>
    641601                            </a>
     602                            <br><br>
    642603                            <?php echo do_shortcode('[post-cs id='.$preview.']'); ?>
    643604                        </div>
     
    680641                                        </td>
    681642                                        <td>
    682                                             <a class="<?php echo esc_attr('button-primary'); ?>" href="<?php echo admin_url('/admin.php?page=postcs&preview='.$i); ?>">
     643                                            <a class="<?php echo esc_attr('button button-small'); ?>" href="<?php echo admin_url('/admin.php?page=postcs&preview='.$i); ?>">
    683644                                                <?php echo esc_html( 'Preview' ); ?>
    684645                                            </a>
    685646                                        </td>
    686647                                        <td>
    687                                             <a class="<?php echo esc_attr('button-primary'); ?>" href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$i); ?>">
     648                                            <a class="<?php echo esc_attr('button button-small'); ?>" href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$i); ?>">
    688649                                                <?php echo esc_html( 'Setting' ); ?>
    689650                                            </a>
    690651                                        </td>
    691652                                        <td>
    692                                             <a class="<?php echo esc_attr('button-primary'); ?>" href="<?php echo admin_url('/admin.php?page=postcs&del_slider_no='.$i); ?>">
     653                                            <a class="<?php echo esc_attr('button button-small'); ?>" href="<?php echo admin_url('/admin.php?page=postcs&del_slider_no='.$i); ?>">
    693654                                                <?php echo esc_html( 'Delete' ); ?>
    694655                                            </a>
     
    703664                                <tr>
    704665                                    <th colspan="6">
    705                                         <a href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$i); ?>" class="<?php echo esc_attr( 'button button-primary button-hero' ); ?>">
     666                                        <a href="<?php echo admin_url('/admin.php?page=postcs&slider_no='.$i); ?>" class="<?php echo esc_attr( 'button button-primary' ); ?>">
    706667                                            <?php echo esc_html( 'Add New Slider' ); ?>
    707668                                        </a>
     
    734695                            ?>
    735696                            <input type="checkbox" <?php if($ps_setting_mousewheel == '1') echo 'checked'; ?> name="ps_setting_mousewheel" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    736                             <p class="<?php echo esc_attr( 'description' ); ?>">
    737                                 <?php echo esc_html( 'Tick here for exclude mousewheel js from site footer' ); ?>
    738                             </p>
     697                            <span class="<?php echo esc_attr( 'description' ); ?>">
     698                                <?php echo esc_html( 'tick here for exclude mousewheel js from site footer' ); ?>
     699                            </span>
    739700                        </td>
    740701                    </tr>
     
    749710                            ?>
    750711                            <input type="checkbox" <?php if($ps_setting_swipe == '1') echo 'checked'; ?> name="ps_setting_swipe" class="<?php echo esc_attr( 'regular-text' ); ?>" value="1" />
    751                             <p class="<?php echo esc_attr( 'description' ); ?>">
    752                                 <?php echo esc_html( 'Tick here for exclude swipe js from site footer' ); ?>
    753                             </p>
     712                            <span class="<?php echo esc_attr( 'description' ); ?>">
     713                                <?php echo esc_html( 'tick here for exclude swipe js from site footer' ); ?>
     714                            </span>
    754715                        </td>
    755716                    </tr>
  • post-types-carousel-slider/trunk/includes/front.php

    r1720743 r2669174  
    4444
    4545                $get_post_status = 'publish';
    46                 if(isset($get_wpqc_setting['post_status'])) {
    47                     $get_post_status = $get_wpqc_setting['post_status'];
    48                 }
    4946
    5047                $get_paged = sanitize_text_field($_POST['data']['paged']);
     
    192189                                    }
    193190                                    if($get_field_arr[2] == 'text' || $get_field_arr[2] == 'number' || $get_field_arr[2] == 'email' || $get_field_arr[2] == 'editor' || $get_field_arr[2] == 'textarea') {
    194                                         $get_fields = get_field($get_field_arr[1]);
    195                                         $template_setting = str_replace("%{$val}%", "{$get_fields}", $template_setting);
     191                                        if (function_exists('get_field')) {
     192                                            $get_fields = get_field($get_field_arr[1]);
     193                                            $template_setting = str_replace("%{$val}%", "{$get_fields}", $template_setting);
     194                                        }                                       
    196195                                    }
    197196                                    if($get_field_arr[2] == 'image') {
     
    199198                                            $get_field_arr[3] = 'url';
    200199                                        }
    201                                         $get_fields = get_field($get_field_arr[1]);
    202                                         if(is_array ($get_fields)) {
    203                                             if($get_field_arr[3] == 'url') {
    204                                                 if($get_fields['url']) {
    205                                                     $template_setting = str_replace("%{$val}%", "<img src='".$get_fields['url']."'>", $template_setting);
     200                                        if (function_exists('get_field')) {
     201                                            $get_fields = get_field($get_field_arr[1]);
     202                                            if(is_array ($get_fields)) {
     203                                                if($get_field_arr[3] == 'url') {
     204                                                    if($get_fields['url']) {
     205                                                        $template_setting = str_replace("%{$val}%", "<img src='".$get_fields['url']."'>", $template_setting);
     206                                                    }
     207                                                } else {
     208                                                    if($get_fields['sizes']) {
     209                                                        if($get_fields['sizes'][$get_field_arr[3]]) {
     210                                                            $template_setting = str_replace("%{$val}%", "<img src='".$get_fields['sizes'][$get_field_arr[3]]."'>", $template_setting);
     211                                                        }
     212                                                    }
     213                                                }                                                                   
     214                                            } else {
     215                                                if($get_fields) {
     216                                                    if(strrpos($get_fields, "http") > -1) {
     217                                                        $template_setting = str_replace("%{$val}%", "<img src='".$get_fields."'>", $template_setting);
     218                                                    } else {
     219                                                        $img = wp_get_attachment_image( $get_fields, $get_field_arr[3] );
     220                                                        $template_setting = str_replace("%{$val}%", $img, $template_setting);
     221                                                    }
     222                                                } else {
     223                                                    $template_setting = str_replace("%{$val}%", "", $template_setting);
    206224                                                }
    207                                             } else {
    208                                                 if($get_fields['sizes']) {
    209                                                     if($get_fields['sizes'][$get_field_arr[3]]) {
    210                                                         $template_setting = str_replace("%{$val}%", "<img src='".$get_fields['sizes'][$get_field_arr[3]]."'>", $template_setting);
    211                                                     }
    212                                                 }
    213                                             }                                                                   
    214                                         } else {
    215                                             if($get_fields) {
    216                                                 if(strrpos($get_fields, "http") > -1) {
    217                                                     $template_setting = str_replace("%{$val}%", "<img src='".$get_fields."'>", $template_setting);
    218                                                 } else {
    219                                                     $img = wp_get_attachment_image( $get_fields, $get_field_arr[3] );
    220                                                     $template_setting = str_replace("%{$val}%", $img, $template_setting);
    221                                                 }
    222                                             } else {
    223                                                 $template_setting = str_replace("%{$val}%", "", $template_setting);
    224225                                            }
    225226                                        }
  • post-types-carousel-slider/trunk/includes/shortcode.php

    r2335968 r2669174  
    4747
    4848                    $get_post_status = 'publish';
    49                     if(isset($get_wpqc_setting['post_status'])) {
    50                         $get_post_status = $get_wpqc_setting['post_status'];
    51                     }
    5249
    5350                    $get_cat = array();
     
    151148                                    }
    152149                                    if($get_field_arr[2] == 'text' || $get_field_arr[2] == 'number' || $get_field_arr[2] == 'email' || $get_field_arr[2] == 'editor' || $get_field_arr[2] == 'textarea') {
    153                                         $getfields = get_field($get_field_arr[1]);
    154                                         $template_setting = str_replace("%{$val}%", "{$getfields}", $template_setting);
     150                                        if (function_exists('get_field')) {
     151                                            $getfields = get_field($get_field_arr[1]);
     152                                            $template_setting = str_replace("%{$val}%", "{$getfields}", $template_setting);
     153                                        }
    155154                                    }
    156155                                    if($get_field_arr[2] == 'image') {
     
    158157                                            $get_field_arr[3] = 'url';
    159158                                        }
    160                                         $getfields = get_field($get_field_arr[1]);
    161                                         if(is_array ($getfields)) {
    162                                             if($get_field_arr[3] == 'url') {
    163                                                 if($getfields['url']) {
    164                                                     $template_setting = str_replace("%{$val}%", "<img src='".$getfields['url']."'>", $template_setting);
     159                                        if (function_exists('get_field')) {
     160                                            $getfields = get_field($get_field_arr[1]);
     161                                            if(is_array ($getfields)) {
     162                                                if($get_field_arr[3] == 'url') {
     163                                                    if($getfields['url']) {
     164                                                        $template_setting = str_replace("%{$val}%", "<img src='".$getfields['url']."'>", $template_setting);
     165                                                    }
     166                                                } else {
     167                                                    if($getfields['sizes']) {
     168                                                        if($getfields['sizes'][$get_field_arr[3]]) {
     169                                                            $template_setting = str_replace("%{$val}%", "<img src='".$getfields['sizes'][$get_field_arr[3]]."'>", $template_setting);
     170                                                        }
     171                                                    }
     172                                                }                                                                   
     173                                            } else {
     174                                                if($getfields) {
     175                                                    if(strrpos($getfields, "http") > -1) {
     176                                                        $template_setting = str_replace("%{$val}%", "<img src='".$getfields."'>", $template_setting);
     177                                                    } else {
     178                                                        $img = wp_get_attachment_image( $getfields, $get_field_arr[3] );
     179                                                        $template_setting = str_replace("%{$val}%", $img, $template_setting);
     180                                                    }
     181                                                } else {
     182                                                    $template_setting = str_replace("%{$val}%", "", $template_setting);
    165183                                                }
    166                                             } else {
    167                                                 if($getfields['sizes']) {
    168                                                     if($getfields['sizes'][$get_field_arr[3]]) {
    169                                                         $template_setting = str_replace("%{$val}%", "<img src='".$getfields['sizes'][$get_field_arr[3]]."'>", $template_setting);
    170                                                     }
    171                                                 }
    172                                             }                                                                   
    173                                         } else {
    174                                             if($getfields) {
    175                                                 if(strrpos($getfields, "http") > -1) {
    176                                                     $template_setting = str_replace("%{$val}%", "<img src='".$getfields."'>", $template_setting);
    177                                                 } else {
    178                                                     $img = wp_get_attachment_image( $getfields, $get_field_arr[3] );
    179                                                     $template_setting = str_replace("%{$val}%", $img, $template_setting);
    180                                                 }
    181                                             } else {
    182                                                 $template_setting = str_replace("%{$val}%", "", $template_setting);
    183184                                            }
    184185                                        }
  • post-types-carousel-slider/trunk/post-cs.php

    r2668841 r2669174  
    22   /*
    33   Plugin Name: Post Carousel & Slider
    4    Plugin URI: http://fjfj.xyz/post-carousel-slider/
    5    Description: By using this plugin you can display posts OR custom posts as a slider OR carousel. Next and Previous post data come by Ajax.
     4   Plugin URI: http://fjfj.xyz/post-slider/
     5   Description: Using this plugin you can create a post slider and carousel for your WordPress site. All you need to do is just a few clicks and your slider will be ready.
    66   Version: 1.0.3
    77   Author: Tarak Patel
  • post-types-carousel-slider/trunk/readme.txt

    r2668841 r2669174  
    33Tags: slideshow, post slider, post carousel, responsive slider, content slider, carousel
    44Requires at least: 4.6
    5 Tested up to: 5.7.2
     5Tested up to: 5.9
    66Stable tag: 1.0.3
    77License: GPLv2
     
    1010
    1111== Description ==
    12 Please watch the below screen recording video.
    1312
    14 This plugin is the easy way for those who wants to convert posts to slider OR carousel. By using this plugin you can display posts OR custom posts as a slider OR carousel. Next and previous post data fetch by Ajax.
     13Using this plugin you can create a post slider and carousel for your WordPress site. All you need to do is just a few clicks and your slider will be ready.
    1514
    16 It is simple to create post slider OR post carousel for your WordPress site.
     15View [DEMO](http://fjfj.xyz/post-slider/)
    1716
    18 View [DEMO](http://fjfj.xyz/post-carousel-slider/) for additional information.
    19 
    20 The slider uses auto generated shortcodes for making it easier to add it to the custom location.
     17The slider uses auto-generated shortcodes for making it easier to add it to the custom location.
    2118
    2219== Features ==
     
    262304. Show posts associated with certain categories, taxonomies & tags
    272405. Show posts based on a keyword search
    28 06. Admin option for update HTML
    29 07. CSS animation [https://daneden.github.io/animate.css/](https://daneden.github.io/animate.css/)
    30 08. Given multiple design option
    31 09. Responsive
    32 10. Admin preview
    33 11. Work with Mousewheel & Touch swipe
    34 12. Infinite Loop
    35 13. Option for return plain html code
    36 14. You can add fields which created by [Advance custom field]
    37 
    38 **How to create new slider or carousel / select design options / use CSS animation / update HTML template**
    39 
    40 https://www.youtube.com/watch?v=pgH281ka7Ms
     2506. CSS animation [https://daneden.github.io/animate.css/](https://daneden.github.io/animate.css/)
     2607. Given multiple design option
     2708. Work with Mousewheel & Touch swipe
    4128
    4229**Support this plugin**
Note: See TracChangeset for help on using the changeset viewer.