item-fields.php
3 years ago
layout-settings.php
3 years ago
post-source.php
3 years ago
sc-settings.php
3 years ago
settings.php
3 years ago
style.php
3 years ago
post-source.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Settings: Post Source |
| 4 | * |
| 5 | * @package RT_TPG |
| 6 | */ |
| 7 | |
| 8 | use RT\ThePostGrid\Helpers\Fns; |
| 9 | use RT\ThePostGrid\Helpers\Options; |
| 10 | |
| 11 | // Do not allow directly accessing this file. |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit( 'This script cannot be accessed directly.' ); |
| 14 | } |
| 15 | |
| 16 | Fns::print_html( Fns::rtFieldGenerator( Options::rtTPGPostType() ), true ); |
| 17 | |
| 18 | $sHtml = null; |
| 19 | $sHtml .= '<div class="field-holder rt-tpg-field-group">'; |
| 20 | $sHtml .= '<div class="field-label">Common Filters</div>'; |
| 21 | $sHtml .= '<div class="field">'; |
| 22 | $sHtml .= Fns::rtFieldGenerator( Options::rtTPGCommonFilterFields() ); |
| 23 | $sHtml .= '</div>'; |
| 24 | $sHtml .= '</div>'; |
| 25 | |
| 26 | Fns::print_html( $sHtml, true ); |
| 27 | ?> |
| 28 | |
| 29 | <div class='rt-tpg-filter-container rt-tpg-field-group'> |
| 30 | <?php Fns::print_html( Fns::rtFieldGenerator( Options::rtTPAdvanceFilters() ), true ); ?> |
| 31 | <div class="rt-tpg-filter-holder"> |
| 32 | <?php |
| 33 | $html = null; |
| 34 | $pt = get_post_meta( $post->ID, 'tpg_post_type', true ); |
| 35 | $advFilters = Options::rtTPAdvanceFilters(); |
| 36 | Fns::print_html( $html, true ); |
| 37 | ?> |
| 38 | </div> |
| 39 | </div> |
| 40 | |
| 41 | <div class="rt-tpg-field-group"> |
| 42 | <?php Fns::print_html( Fns::rtFieldGenerator( Options::stickySettings() ), true ); ?> |
| 43 | </div> |
| 44 |