%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
FLBuilderModel::default_settings($settings, array(
'data_source' => 'custom_query',
'post_type' => 'post',
'order_by' => 'date',
'order' => 'DESC',
'offset' => 0,
'users' => '',
'show_image' => 'yes',
'show_author' => 'yes',
'show_date' => 'yes',
'show_categories' => 'no',
'meta_separator' => ' | ',
'show_content' => 'yes',
'content_type' => 'excerpt',
'content_length' => 300,
'link_type' => 'title_thumb',
'show_button' => 'no',
'button_text' => __('Read More', 'bb-powerpack'),
'post_taxonomies' => 'none',
'image_position' => 'above_header'
));
$settings = apply_filters( 'pp_cg_loop_settings', $settings );
do_action( 'pp_cg_loop_settings_before_form', $settings ); // e.g Add custom FLBuilder::render_settings_field()
?>
<div id="fl-builder-settings-section-source" class="fl-loop-data-source-select fl-builder-settings-section">
<table class="fl-form-table">
<?php
// Data Source
FLBuilder::render_settings_field('data_source', array(
'type' => 'select',
'label' => __('Source', 'bb-powerpack'),
'default' => 'custom_query',
'options' => array(
'custom_query' => __('Custom Query', 'bb-powerpack'),
'main_query' => __('Main Query', 'bb-powerpack'),
),
'toggle' => array(
'custom_query' => array(
'sections' => array( 'general', 'filter' ),
'fields' => array( 'posts_per_page' )
)
)
), $settings);
?>
</table>
</div>
<div class="fl-custom-query fl-loop-data-source" data-source="custom_query">
<div id="fl-builder-settings-section-general" class="fl-builder-settings-section">
<h3 class="fl-builder-settings-title"><?php _e('Custom Query', 'bb-powerpack'); ?></h3>
<table class="fl-form-table">
<?php
// Post type
FLBuilder::render_settings_field('post_type', array(
'type' => 'post-type',
'label' => __('Post Type', 'bb-powerpack'),
), $settings);
// Order by
FLBuilder::render_settings_field('order_by', array(
'type' => 'select',
'label' => __('Order By', 'bb-powerpack'),
'options' => array(
'author' => __('Author', 'bb-powerpack'),
'comment_count' => __('Comment Count', 'bb-powerpack'),
'date' => __('Date', 'bb-powerpack'),
'modified' => __('Date Last Modified', 'bb-powerpack'),
'ID' => __('ID', 'bb-powerpack'),
'menu_order' => __('Menu Order', 'bb-powerpack'),
'meta_value' => __('Meta Value (Alphabetical)', 'bb-powerpack'),
'meta_value_num' => __('Meta Value (Numeric)', 'bb-powerpack'),
'rand' => __('Random', 'bb-powerpack'),
'title' => __('Title', 'bb-powerpack'),
),
'toggle' => array(
'meta_value' => array(
'fields' => array( 'order_by_meta_key' )
),
'meta_value_num' => array(
'fields' => array( 'order_by_meta_key' )
)
)
), $settings);
// Meta Key
FLBuilder::render_settings_field('order_by_meta_key', array(
'type' => 'text',
'label' => __('Meta Key', 'bb-powerpack'),
), $settings);
// Order
FLBuilder::render_settings_field('order', array(
'type' => 'select',
'label' => __('Order', 'bb-powerpack'),
'options' => array(
'DESC' => __('Descending', 'bb-powerpack'),
'ASC' => __('Ascending', 'bb-powerpack'),
)
), $settings);
// Offset
FLBuilder::render_settings_field('offset', array(
'type' => 'text',
'label' => _x('Offset', 'How many posts to skip.', 'bb-powerpack'),
'default' => '0',
'size' => '4',
'help' => __('Skip this many posts that match the specified criteria.', 'bb-powerpack')
), $settings);
?>
</table>
</div>
<div id="fl-builder-settings-section-filter" class="fl-builder-settings-section">
<h3 class="fl-builder-settings-title"><?php esc_html_e('Filter', 'bb-powerpack'); ?></h3>
<?php foreach(FLBuilderLoop::post_types() as $slug => $type) : ?>
<table class="fl-form-table fl-custom-query-filter fl-custom-query-<?php echo $slug; ?>-filter 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 comma separated list of %s. Only these %s will be shown.', 'bb-powerpack'), $type->label, $type->label),
'matching' => true
), $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 comma separated list of %s. Only posts with these %s will be shown.', 'bb-powerpack'), $tax->label, $tax->label),
'matching' => true
), $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', 'bb-powerpack'),
'help' => __('Enter a comma separated list of authors usernames. Only posts with these authors will be shown.', 'bb-powerpack'),
'matching' => true
), $settings);
?>
</table>
</div>
</div>
<div id="fl-builder-settings-section-post-content" class="fl-builder-settings-section">
<h3 class="fl-builder-settings-title"><?php esc_html_e('Content Settings', 'bb-powerpack'); ?></h3>
<table class="fl-form-table">
<?php
FLBuilder::render_settings_field('show_content', array(
'type' => 'pp-switch',
'label' => __('Show Content', 'bb-powerpack'),
'default' => 'yes',
'options' => array(
'yes' => __('Yes', 'bb-powerpack'),
'no' => __('No', 'bb-powerpack'),
),
'toggle' => array(
'yes' => array(
'fields' => array('content_type')
)
)
), $settings );
FLBuilder::render_settings_field('content_type', array(
'type' => 'select',
'label' => __('Content Type', 'bb-powerpack'),
'default' => 'excerpt',
'options' => array(
'excerpt' => __('Excerpt', 'bb-powerpack'),
'content' => __('Limited Content', 'bb-powerpack'),
'full' => __('Full Content', 'bb-powerpack'),
),
'toggle' => array(
'content' => array(
'fields' => array('content_length'),
)
)
), $settings );
FLBuilder::render_settings_field('content_length', array(
'type' => 'text',
'label' => __('Content Limit', 'bb-powerpack'),
'help' => __('Number of words to be displayed from the post content.', 'bb-powerpack'),
'default' => '300',
'maxlenght' => 4,
'size' => 5,
'description' => __('words', 'bb-powerpack'),
), $settings );
FLBuilder::render_settings_field('link_type', array(
'type' => 'select',
'label' => __('Link Type', 'bb-powerpack'),
'default' => 'title_thumb',
'options' => array(
'none' => __( 'None', 'bb-powerpack' ),
'title' => __( 'Title', 'bb-powerpack' ),
'thumb' => __( 'Thumbnail', 'bb-powerpack' ),
'title_thumb' => __( 'Title + Thumbnail', 'bb-powerpack' ),
),
), $settings );
FLBuilder::render_settings_field('show_button', array(
'type' => 'pp-switch',
'label' => __('Show Button', 'bb-powerpack'),
'default' => 'no',
'options' => array(
'yes' => __( 'Yes', 'bb-powerpack' ),
'no' => __( 'No', 'bb-powerpack' ),
),
'toggle' => array(
'yes' => array(
'sections' => array('button_style', 'button_typography'),
'fields' => array('button_text')
)
)
), $settings );
FLBuilder::render_settings_field('button_text', array(
'type' => 'text',
'label' => __('Button Text', 'bb-powerpack'),
'default' => __('Read More', 'bb-powerpack'),
'connections' => array('string'),
'preview' => array(
'type' => 'text',
'selector' => '.pp-post-timeline-button'
)
), $settings);
?>
</table>
</div>
<div id="fl-builder-settings-section-image-settings" class="fl-builder-settings-section">
<h3 class="fl-builder-settings-title"><?php esc_html_e('Featured Image', 'bb-powerpack'); ?></h3>
<table class="fl-form-table">
<?php
FLBuilder::render_settings_field('show_image', array(
'type' => 'pp-switch',
'label' => __('Featured Image', 'bb-powerpack'),
'default' => 'yes',
'options' => array(
'yes' => __('Yes', 'bb-powerpack'),
'no' => __('No', 'bb-powerpack'),
),
'toggle' => array(
'yes' => array(
'fields' => array('image_thumb_size', 'image_position')
)
)
), $settings );
FLBuilder::render_settings_field('image_thumb_size', array(
'type' => 'photo-sizes',
'label' => __( 'Image Size', 'bb-powerpack' ),
'default' => 'large',
), $settings );
FLBuilder::render_settings_field('image_position', array(
'type' => 'select',
'label' => __('Image Position', 'bb-powerpack'),
'default' => 'above_header',
'options' => array(
'above_header' => __('Above Header', 'bb-powerpack'),
'below_header' => __('Below Header', 'bb-powerpack'),
),
), $settings );
?>
</table>
</div>
<div id="fl-builder-settings-section-meta-settings" class="fl-builder-settings-section">
<h3 class="fl-builder-settings-title"><?php esc_html_e('Meta Settings', 'bb-powerpack'); ?></h3>
<table class="fl-form-table">
<?php
FLBuilder::render_settings_field('show_author', array(
'type' => 'pp-switch',
'label' => __('Author', 'bb-powerpack'),
'default' => 'yes',
'options' => array(
'yes' => __('Yes', 'bb-powerpack'),
'no' => __('No', 'bb-powerpack'),
),
), $settings );
FLBuilder::render_settings_field('show_date', array(
'type' => 'pp-switch',
'label' => __('Date', 'bb-powerpack'),
'default' => 'yes',
'options' => array(
'yes' => __('Yes', 'bb-powerpack'),
'no' => __('No', 'bb-powerpack'),
),
), $settings );
FLBuilder::render_settings_field('show_categories', array(
'type' => 'pp-switch',
'label' => __('Show Taxonomies', 'bb-powerpack'),
'default' => 'no',
'options' => array(
'yes' => __('Yes', 'bb-powerpack'),
'no' => __('No', 'bb-powerpack'),
),
'toggle' => array(
'yes' => array(
'fields' => array('post_taxonomies')
)
)
), $settings );
FLBuilder::render_settings_field('post_taxonomies', array(
'type' => 'select',
'label' => __('Select Taxonomy', 'bb-powerpack'),
'default' => '',
'options' => array()
), $settings);
// Separators
FLBuilder::render_settings_field('meta_separator', array(
'type' => 'text',
'label' => __('Meta Separator', 'bb-powerpack'),
'default' => ' | ',
'size' => 5
), $settings);
?>
</table>
</div>
<?php
do_action( 'pp_cg_loop_settings_after_form', $settings ); // e.g Add custom FLBuilder::render_settings_field()
?>
<script type="text/javascript">
;(function($) {
$('.fl-builder-pp-post-timeline-settings select[name="post_type"]').on('change', function() {
var post_type_slug = $(this).val();
var post_taxonomies = $('.fl-builder-pp-post-timeline-settings select[name="post_taxonomies"]');
var selected_taxonomy = '<?php echo $settings->post_taxonomies; ?>';
$.ajax({
type: 'post',
data: {action: 'pp_timeline_get_post_tax', post_type_slug: post_type_slug},
url: ajaxurl,
success: function(res) {
if ( res !== 'undefined' || res !== '' ) {
post_taxonomies.html(res);
post_taxonomies.find('option[value="'+selected_taxonomy+'"]').attr('selected', 'selected');
}
}
});
});
})(jQuery);
</script>
Zerion Mini Shell 1.0
Flawless SAP Solutions | GMH Consulting Group LLC
Skip to content
Flawless, Cost Efficient Solutions
For All SAP-Enabled Transformation Initiatives
Welcome to GmH Consulting Group LLC
GmH Consulting Group is the gold standard in SAP solutions, offering unparalleled expertise in SAP S/4HANA, ECC, SCM, SRM, IBP and CRM. As a trusted partner in SAP-enabled transformation projects, we deliver flawless, cost-efficient solutions that drive measurable results.
Our unique blend of deep industry knowledge, business acumen, and technical design prowess sets us apart. We leverage cutting-edge manufacturing insights and global supply chain strategies to ensure your project's success, no matter the complexity or scale.
United by a shared commitment to excellence, we are not just SAP implementors; we are catalysts for change. We take pride in making a meaningful impact—not just for our clients, but also for our communities and the world at large.
Headquartered in Tampa, we are a global firm serving a diverse clientele across continents.
GMH Consulting Group sets the global standard for the successful execution of all SAP projects.
Gustavo Hidalgo, a luminary in the SAP consulting landscape, embarked on his journey in 1998. Since then, he has been pivotal in the success of numerous SAP and Supply Chain implementation initiatives at major multinational corporations, collaborating with industry giants such as IBM, Deloitte, and Infosys. Before stepping into consulting, Gustavo honed his skills in supply chain management at renowned organizations like Procter & Gamble, Philips NV, Unilever PLC, and Bridgestone/Firestone.
With a career spanning over four decades, Gustavo has amassed unparalleled expertise in 3PL logistics, supply chain processes, and SAP technologies. His close collaboration with C-suite executives and key stakeholders has led to the development and deployment of best practices that drive sustainable value and operational excellence.
In founding GMH Consulting Group, Gustavo aims to redefine global benchmarks through the impeccable delivery of SAP-enabled transformation initiatives. His proven methodologies have consistently delivered increased profitability, revenue growth, and customer satisfaction for clients across North and South America, the Caribbean, Europe, and Asia.
Over the years, Gustavo's contributions have generated documented benefits exceeding $35 billion, solidifying his reputation as one of the most reputable SAP delivery practitioners in the market.
As the visionary founder of GMH Consulting Group LLC, I invite you to experience the unparalleled expertise and dedication that set GMH Consulting Group apart in the industry.
We are your trusted partner for all your SAP-enabled transformation initiatives.
"…With over a quarter-century SAP consulting experience, spanning a diverse range of industries, unparalleled expertise in Supply Chain Management, SAP-enabling technologies, and the SAP S/4HANA enterprise application suite."
Learn More About Our Services
Follow the link below to find out how we can help take your business to the next level!
Scroll To Top