You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Settings: Post Source
|
|
*
|
|
* @package RT_TPG
|
|
*/
|
|
|
|
use RT\ThePostGrid\Helpers\Fns;
|
|
use RT\ThePostGrid\Helpers\Options;
|
|
|
|
// Do not allow directly accessing this file.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit( 'This script cannot be accessed directly.' );
|
|
}
|
|
|
|
Fns::print_html( Fns::rtFieldGenerator( Options::rtTPGPostType() ), true );
|
|
|
|
$sHtml = null;
|
|
$sHtml .= '<div class="field-holder rt-tpg-field-group">';
|
|
$sHtml .= '<div class="field-label">Common Filters</div>';
|
|
$sHtml .= '<div class="field">';
|
|
$sHtml .= Fns::rtFieldGenerator( Options::rtTPGCommonFilterFields() );
|
|
$sHtml .= '</div>';
|
|
$sHtml .= '</div>';
|
|
|
|
Fns::print_html( $sHtml, true );
|
|
?>
|
|
|
|
<div class='rt-tpg-filter-container rt-tpg-field-group'>
|
|
<?php Fns::print_html( Fns::rtFieldGenerator( Options::rtTPAdvanceFilters() ), true ); ?>
|
|
<div class="rt-tpg-filter-holder">
|
|
<?php
|
|
$html = null;
|
|
$pt = get_post_meta( $post->ID, 'tpg_post_type', true );
|
|
$advFilters = Options::rtTPAdvanceFilters();
|
|
Fns::print_html( $html, true );
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="rt-tpg-field-group">
|
|
<?php Fns::print_html( Fns::rtFieldGenerator( Options::stickySettings() ), true ); ?>
|
|
</div>
|