link-templates
5 months ago
lock-options
6 months ago
page-templates
4 months ago
all-packages-shortcode.php
1 week ago
category-shortcode-toolbar.php
1 year ago
file-list.php
5 years ago
lock-options-iframe.php
5 months ago
packages-shortcode-toolbar.php
1 year ago
packages-shortcode.php
2 years ago
search-result.php
5 years ago
shortcode-iframe.php
5 months ago
packages-shortcode.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Base: wpdmpro |
| 4 | * Developer: shahjada |
| 5 | * Team: W3 Eden |
| 6 | * Date: 6/6/20 06:35 |
| 7 | */ |
| 8 | if (!defined("ABSPATH")) die(); |
| 9 | $category_shortcode = wpdm_valueof($scparams, 'catsc', ['validate' => 'int']); |
| 10 | $toolbar_file = $category_shortcode === 1 ? "category-shortcode-toolbar.php" : "packages-shortcode-toolbar.php"; |
| 11 | |
| 12 | /* |
| 13 | tbgrid - Toolbar grid layout setting variable, 12 grid layout distribute amonng search bar, order by dropdown, order dropdown, and filter button |
| 14 | $sr - Search bar width |
| 15 | $ob - Orderby dropdown width |
| 16 | $od - Order dropdown width |
| 17 | $bt - Button area width |
| 18 | */ |
| 19 | list($sr, $ob, $od, $bt) = [6,2,2,2]; |
| 20 | if(isset($scparams['tbgrid'])){ |
| 21 | list($sr, $ob, $od, $bt) = explode(",", $scparams['tbgrid']); |
| 22 | $sr = (int)$sr; |
| 23 | $ob = (int)$ob; |
| 24 | $od = (int)$od; |
| 25 | $bt = (int)$bt; |
| 26 | } |
| 27 | |
| 28 | ?> |
| 29 | <div class='w3eden'> |
| 30 | <div class='<?php echo esc_attr($css_class); ?>'> |
| 31 | |
| 32 | <?php include \WPDM\__\Template::locate($toolbar_file, __DIR__); ?> |
| 33 | |
| 34 | <div id="content_<?php echo esc_attr($scid); ?>"> |
| 35 | <?php echo $html ?> |
| 36 | <?php echo $pagination ?> |
| 37 | </div> |
| 38 | |
| 39 | <div style='clear:both'></div> |
| 40 | </div> |
| 41 | </div> |
| 42 |