updater
11 years ago
admin-posts.php
11 years ago
admin-settings.php
11 years ago
column-css.php
11 years ago
column-group.php
11 years ago
column-settings.php
11 years ago
field-code.php
11 years ago
field-color.php
11 years ago
field-editor.php
11 years ago
field-form.php
11 years ago
field-icon.php
11 years ago
field-layout.php
11 years ago
field-multiple-photos.php
11 years ago
field-photo-sizes.php
11 years ago
field-photo.php
11 years ago
field-post-type.php
11 years ago
field-select.php
11 years ago
field-suggest.php
11 years ago
field-text.php
11 years ago
field-textarea.php
11 years ago
field-video.php
11 years ago
field.php
11 years ago
global-settings.php
11 years ago
icon-selector.php
11 years ago
jquery.php
11 years ago
js-config.php
11 years ago
loop-settings.php
11 years ago
module-settings.php
11 years ago
module.php
11 years ago
row-css.php
11 years ago
row-js.php
11 years ago
row-settings.php
11 years ago
row-video.php
11 years ago
row.php
11 years ago
settings.php
11 years ago
ui.php
11 years ago
updater-config.php
11 years ago
user-template-settings.php
11 years ago
loop-settings.php
96 lines
| 1 | <?php |
| 2 | |
| 3 | FLBuilderModel::default_settings($settings, array( |
| 4 | 'post_type' => 'post', |
| 5 | 'order_by' => 'date', |
| 6 | 'order' => 'DESC', |
| 7 | 'users' => '' |
| 8 | )); |
| 9 | |
| 10 | ?> |
| 11 | <div id="fl-builder-settings-section-general" class="fl-loop-builder fl-builder-settings-section"> |
| 12 | |
| 13 | <table class="fl-form-table"> |
| 14 | <?php |
| 15 | |
| 16 | // Post type |
| 17 | FLBuilder::render_settings_field('post_type', array( |
| 18 | 'type' => 'post-type', |
| 19 | 'label' => __('Post Type', 'fl-builder'), |
| 20 | ), $settings); |
| 21 | |
| 22 | // Order by |
| 23 | FLBuilder::render_settings_field('order_by', array( |
| 24 | 'type' => 'select', |
| 25 | 'label' => __('Order By', 'fl-builder'), |
| 26 | 'options' => array( |
| 27 | 'ID' => __('ID', 'fl-builder'), |
| 28 | 'date' => __('Date', 'fl-builder'), |
| 29 | 'modified' => __('Date Last Modified', 'fl-builder'), |
| 30 | 'title' => __('Title', 'fl-builder'), |
| 31 | 'author' => __('Author', 'fl-builder'), |
| 32 | 'comment_count' => __('Comment Count', 'fl-builder'), |
| 33 | 'menu_order' => __('Menu Order', 'fl-builder'), |
| 34 | 'random' => __('Random', 'fl-builder'), |
| 35 | ) |
| 36 | ), $settings); |
| 37 | |
| 38 | // Order |
| 39 | FLBuilder::render_settings_field('order', array( |
| 40 | 'type' => 'select', |
| 41 | 'label' => __('Order', 'fl-builder'), |
| 42 | 'options' => array( |
| 43 | 'DESC' => __('Descending', 'fl-builder'), |
| 44 | 'ASC' => __('Ascending', 'fl-builder'), |
| 45 | ) |
| 46 | ), $settings); |
| 47 | |
| 48 | ?> |
| 49 | </table> |
| 50 | </div> |
| 51 | <div id="fl-builder-settings-section-filter" class="fl-builder-settings-section"> |
| 52 | <h3 class="fl-builder-settings-title"><?php _e('Filter', 'fl-builder'); ?></h3> |
| 53 | <?php foreach(FLBuilderLoop::post_types() as $slug => $type) : ?> |
| 54 | <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;"'; ?>> |
| 55 | <?php |
| 56 | |
| 57 | // Posts |
| 58 | FLBuilder::render_settings_field('posts_' . $slug, array( |
| 59 | 'type' => 'suggest', |
| 60 | 'action' => 'fl_as_posts', |
| 61 | 'data' => $slug, |
| 62 | 'label' => $type->label, |
| 63 | 'help' => sprintf(__('Enter a comma separated list of %s. Only these %s will be shown.', 'fl-builder'), $type->label, $type->label) |
| 64 | ), $settings); |
| 65 | |
| 66 | // Taxonomies |
| 67 | $taxonomies = FLBuilderLoop::taxonomies($slug); |
| 68 | |
| 69 | foreach($taxonomies as $tax_slug => $tax) { |
| 70 | |
| 71 | FLBuilder::render_settings_field('tax_' . $slug . '_' . $tax_slug, array( |
| 72 | 'type' => 'suggest', |
| 73 | 'action' => 'fl_as_terms', |
| 74 | 'data' => $tax_slug, |
| 75 | 'label' => $tax->label, |
| 76 | 'help' => sprintf(__('Enter a comma separated list of %s. Only posts with these %s will be shown.', 'fl-builder'), $tax->label, $tax->label) |
| 77 | ), $settings); |
| 78 | } |
| 79 | |
| 80 | ?> |
| 81 | </table> |
| 82 | <?php endforeach; ?> |
| 83 | <table class="fl-form-table"> |
| 84 | <?php |
| 85 | |
| 86 | // Author |
| 87 | FLBuilder::render_settings_field('users', array( |
| 88 | 'type' => 'suggest', |
| 89 | 'action' => 'fl_as_users', |
| 90 | 'label' => __('Authors', 'fl-builder'), |
| 91 | 'help' => __('Enter a comma separated list of authors usernames. Only posts with these authors will be shown.', 'fl-builder') |
| 92 | ), $settings); |
| 93 | |
| 94 | ?> |
| 95 | </table> |
| 96 | </div> |