Changeset 2669174
- Timestamp:
- 01/30/2022 10:51:40 AM (4 years ago)
- Location:
- post-types-carousel-slider/trunk
- Files:
-
- 6 edited
-
assets/css/post-cs.css (modified) (3 diffs)
-
includes/admin.php (modified) (31 diffs)
-
includes/front.php (modified) (3 diffs)
-
includes/shortcode.php (modified) (3 diffs)
-
post-cs.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-types-carousel-slider/trunk/assets/css/post-cs.css
r2335968 r2669174 1 1 #post-cs{width:100%;margin:0 auto;color:#fff;font-family: Raleway, sans-serif;font-size:14px;position:relative;min-height:100px} 2 2 #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);} 12 4 #post-cs .ps-box .ps-pad{padding:20px;overflow:hidden} 13 5 #post-cs a{cursor:pointer;color:#fff;text-decoration:none} 14 6 #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} 16 8 #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;bo rder-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} 18 10 19 11 /*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;bo rder-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} 21 13 #post-cs .ps-next{right:0} 22 14 #post-cs .ps-prev{left:0} … … 32 24 33 25 /*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} 35 27 36 28 /*Full width*/ … … 82 74 .bxslider li a{cursor:pointer;color:#fff;text-decoration:none} 83 75 .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;} 85 77 .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;bo rder-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} 87 79 88 80 -
post-types-carousel-slider/trunk/includes/admin.php
r2335968 r2669174 25 25 /*Add menu*/ 26 26 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' ) ); 29 29 } 30 30 … … 44 44 ?> 45 45 <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> 47 48 <hr> 48 49 <?php … … 86 87 ?> 87 88 <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.''); ?>"> 89 90 <?php echo esc_html('Back'); ?> 90 91 </a> 92 <br><br> 91 93 <?php echo do_shortcode('[post-cs id='.$preview.' '.$des_opt.']'); ?> 92 94 </div> … … 95 97 ?> 96 98 <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> 98 100 <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; ?> 100 102 </pre> 101 103 <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; ?> 103 105 </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>107 106 </div> 108 107 <form method="post" action="options.php"> … … 113 112 <table class="<?php echo esc_attr( 'form-table psform' ); ?>"> 114 113 <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> 116 115 <td> 117 116 <?php … … 122 121 ?> 123 122 <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 < pclass="<?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> 131 130 <td> 132 131 <?php … … 139 138 <option <?php if($get_post_type == 'any') echo 'selected'; ?> value="any"><?php echo esc_html( 'Any' ); ?></option> 140 139 <?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 ) { 142 144 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') { 143 145 … … 147 149 } ?> 148 150 </select> 149 < pclass="<?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> 156 158 <td> 157 159 <?php … … 163 165 <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); ?>" /> 164 166 <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' ); ?> 169 168 </p> 170 169 </td> … … 181 180 <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); ?>" /> 182 181 <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.' ); ?> 187 183 </p> 188 184 </td> … … 201 197 <option <?php if($get_order == 'ASC') echo 'selected'; ?> value="<?php echo esc_attr( 'ASC' ); ?>"><?php echo esc_html( 'ASC' ); ?></option> 202 198 </select> 203 < pclass="<?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> 206 202 </td> 207 203 </tr> … … 221 217 <option <?php if($get_orderby == 'name') echo 'selected'; ?> value="<?php echo esc_attr( 'name' ); ?>"><?php echo esc_html( 'name' ); ?></option> 222 218 </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> 255 226 <td> 256 227 <?php … … 265 236 ?> 266 237 <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> 268 239 <?php foreach($categories as $key => $val) { ?> 269 240 <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> 270 241 <?php } ?> 271 242 </select> 272 < pclass="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> 279 250 <td> 280 251 <?php … … 285 256 ?> 286 257 <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> 288 259 <?php foreach($categories as $key => $val) { ?> 289 260 <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> 290 261 <?php } ?> 291 262 </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 ?> 297 276 <tr valign="top"> 298 277 <th scope="row"><?php echo esc_html( 'Select Taxonomy' ); ?></th> 299 278 <td> 300 <?php $taxonomies = get_taxonomies();279 <?php 301 280 foreach($taxonomies as $key => $val) { 302 281 if($key == 'category' || $key == 'post_tag' || $key == 'nav_menu' || $key == 'link_category' || $key == 'post_format') { … … 322 301 } ?> 323 302 <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> 330 310 <td> 331 311 <?php … … 337 317 ?> 338 318 <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> 340 320 <?php foreach($tags as $key => $val) { ?> 341 321 <option <?php if ($get_tags && in_array($val->slug, $get_tags)) { echo "selected"; } ?> value="<?php echo $val->slug; ?>"><?php echo $val->name; ?></option> 342 322 <?php } ?> 343 323 </select> 344 < pclass="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> 351 331 <td> 352 332 <?php … … 357 337 ?> 358 338 <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> 359 347 <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.' ); ?> 369 349 </p> 370 350 <p> … … 408 388 ?> 409 389 <p class="<?php echo esc_attr( 'description' ); ?>"> 410 <?php echo esc_html( ' Animation : belowclasses you can use for animation.' ); ?>390 <?php echo esc_html( 'animation : hear are all classes you can use for animation.' ); ?> 411 391 <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> 412 392 </p> … … 440 420 </strong> 441 421 </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> 463 491 <td> 464 492 <?php … … 470 498 <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" /> 471 499 <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> 547 506 <td> 548 507 <?php … … 554 513 <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" /> 555 514 <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> 562 521 <td> 563 522 <?php … … 569 528 <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" /> 570 529 <span class="<?php echo esc_attr( 'description' ); ?>"> 571 <?php echo esc_html( ' Tick here for hidepagination' ); ?>530 <?php echo esc_html( 'tick here for hiding pagination' ); ?> 572 531 </span> 573 532 </td> … … 584 543 <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" /> 585 544 <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> 592 551 <td> 593 552 <?php … … 599 558 <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" /> 600 559 <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> 607 566 <td> 608 567 <?php … … 614 573 <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" /> 615 574 <span class="<?php echo esc_attr( 'description' ); ?>"> 616 <?php echo esc_html( ' Tick here for start Next, Prev slideron tough swipe / mouse swipe' ); ?>575 <?php echo esc_html( 'check this to enable next / prev on tough swipe / mouse swipe' ); ?> 617 576 </span> 618 577 </td> … … 620 579 </table> 621 580 <?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> 622 582 </form> 623 583 <?php } … … 637 597 ?> 638 598 <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'); ?> 641 601 </a> 602 <br><br> 642 603 <?php echo do_shortcode('[post-cs id='.$preview.']'); ?> 643 604 </div> … … 680 641 </td> 681 642 <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); ?>"> 683 644 <?php echo esc_html( 'Preview' ); ?> 684 645 </a> 685 646 </td> 686 647 <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); ?>"> 688 649 <?php echo esc_html( 'Setting' ); ?> 689 650 </a> 690 651 </td> 691 652 <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); ?>"> 693 654 <?php echo esc_html( 'Delete' ); ?> 694 655 </a> … … 703 664 <tr> 704 665 <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' ); ?>"> 706 667 <?php echo esc_html( 'Add New Slider' ); ?> 707 668 </a> … … 734 695 ?> 735 696 <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 < pclass="<?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> 739 700 </td> 740 701 </tr> … … 749 710 ?> 750 711 <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 < pclass="<?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> 754 715 </td> 755 716 </tr> -
post-types-carousel-slider/trunk/includes/front.php
r1720743 r2669174 44 44 45 45 $get_post_status = 'publish'; 46 if(isset($get_wpqc_setting['post_status'])) {47 $get_post_status = $get_wpqc_setting['post_status'];48 }49 46 50 47 $get_paged = sanitize_text_field($_POST['data']['paged']); … … 192 189 } 193 190 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 } 196 195 } 197 196 if($get_field_arr[2] == 'image') { … … 199 198 $get_field_arr[3] = 'url'; 200 199 } 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); 206 224 } 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);224 225 } 225 226 } -
post-types-carousel-slider/trunk/includes/shortcode.php
r2335968 r2669174 47 47 48 48 $get_post_status = 'publish'; 49 if(isset($get_wpqc_setting['post_status'])) {50 $get_post_status = $get_wpqc_setting['post_status'];51 }52 49 53 50 $get_cat = array(); … … 151 148 } 152 149 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 } 155 154 } 156 155 if($get_field_arr[2] == 'image') { … … 158 157 $get_field_arr[3] = 'url'; 159 158 } 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); 165 183 } 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);183 184 } 184 185 } -
post-types-carousel-slider/trunk/post-cs.php
r2668841 r2669174 2 2 /* 3 3 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. 6 6 Version: 1.0.3 7 7 Author: Tarak Patel -
post-types-carousel-slider/trunk/readme.txt
r2668841 r2669174 3 3 Tags: slideshow, post slider, post carousel, responsive slider, content slider, carousel 4 4 Requires at least: 4.6 5 Tested up to: 5. 7.25 Tested up to: 5.9 6 6 Stable tag: 1.0.3 7 7 License: GPLv2 … … 10 10 11 11 == Description == 12 Please watch the below screen recording video.13 12 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.13 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. 15 14 16 It is simple to create post slider OR post carousel for your WordPress site. 15 View [DEMO](http://fjfj.xyz/post-slider/) 17 16 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. 17 The slider uses auto-generated shortcodes for making it easier to add it to the custom location. 21 18 22 19 == Features == … … 26 23 04. Show posts associated with certain categories, taxonomies & tags 27 24 05. 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 25 06. CSS animation [https://daneden.github.io/animate.css/](https://daneden.github.io/animate.css/) 26 07. Given multiple design option 27 08. Work with Mousewheel & Touch swipe 41 28 42 29 **Support this plugin**
Note: See TracChangeset
for help on using the changeset viewer.