| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/includes/ |
Upload File : |
<?php
FLBuilderModel::default_settings($settings, array(
'post_type' => 'post',
'order_by' => 'date',
'order' => 'DESC',
'offset' => 0,
'users' => ''
));
?>
<div id="fl-builder-settings-section-general" class="fl-loop-builder fl-builder-settings-section">
<table class="fl-form-table">
<?php
// Post type
FLBuilder::render_settings_field('post_type', array(
'type' => 'post-type',
'label' => __('Post Type', 'fl-builder'),
), $settings);
// Order by
FLBuilder::render_settings_field('order_by', array(
'type' => 'select',
'label' => __('Order By', 'fl-builder'),
'options' => array(
'ID' => __('ID', 'fl-builder'),
'date' => __('Date', 'fl-builder'),
'modified' => __('Date Last Modified', 'fl-builder'),
'title' => __('Title', 'fl-builder'),
'author' => __('Author', 'fl-builder'),
'comment_count' => __('Comment Count', 'fl-builder'),
'menu_order' => __('Menu Order', 'fl-builder'),
'rand' => __('Random', 'fl-builder'),
)
), $settings);
// Order
FLBuilder::render_settings_field('order', array(
'type' => 'select',
'label' => __('Order', 'fl-builder'),
'options' => array(
'DESC' => __('Descending', 'fl-builder'),
'ASC' => __('Ascending', 'fl-builder'),
)
), $settings);
// Offset
FLBuilder::render_settings_field('offset', array(
'type' => 'text',
'label' => _x('Offset', 'How many posts to skip.', 'fl-builder'),
'default' => '0',
'size' => '4',
'help' => __('Skip this many posts that match the specified criteria.', 'fl-builder')
), $settings);
?>
</table>
</div>
<div id="fl-builder-settings-section-filter" class="fl-builder-settings-section">
<h3 class="fl-builder-settings-title"><?php _e('Filter', 'fl-builder'); ?></h3>
<?php foreach(FLBuilderLoop::post_types() as $slug => $type) : ?>
<table class="fl-form-table fl-loop-builder-filter fl-loop-builder-<?php echo $slug; ?>-filter" <?php if($slug == $settings->post_type) echo 'style="display:table;"'; ?>>
<?php
// Posts
FLBuilder::render_settings_field('posts_' . $slug, array(
'type' => 'suggest',
'action' => 'fl_as_posts',
'data' => $slug,
'label' => $type->label,
'help' => sprintf(__('Enter a list of %s. Only these %s will be shown.', 'fl-builder'), $type->label, $type->label)
), $settings);
// Taxonomies
$taxonomies = FLBuilderLoop::taxonomies($slug);
foreach($taxonomies as $tax_slug => $tax) {
FLBuilder::render_settings_field('tax_' . $slug . '_' . $tax_slug, array(
'type' => 'suggest',
'action' => 'fl_as_terms',
'data' => $tax_slug,
'label' => $tax->label,
'help' => sprintf(__('Enter a list of %s. Only posts with these %s will be shown.', 'fl-builder'), $tax->label, $tax->label)
), $settings);
}
?>
</table>
<?php endforeach; ?>
<table class="fl-form-table">
<?php
// Author
FLBuilder::render_settings_field('users', array(
'type' => 'suggest',
'action' => 'fl_as_users',
'label' => __('Authors', 'fl-builder'),
'help' => __('Enter a list of authors usernames. Only posts with these authors will be shown.', 'fl-builder')
), $settings);
?>
</table>
</div>