%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
/**
* Render the Loop Settings for Advanced Posts module.
*
* @package UABB Advanced Posts Module
*/
FLBuilderModel::default_settings(
$settings,
array(
'post_type' => 'post',
'order_by' => 'date',
'order' => 'DESC',
'users' => '',
'total_posts_switch' => 'custom',
'total_posts' => '6',
)
);
$settings = apply_filters( 'fl_builder_loop_settings', $settings );
// Allow extension of default Values.
do_action( 'uabb_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', 'uabb' ),
'default' => 'custom_query',
'options' => array(
'custom_query' => __( 'Custom Query', 'uabb' ),
'main_query' => __( 'Main Query', 'uabb' ),
),
'toggle' => array(
'custom_query' => array(
'fields' => array( 'posts_per_page' ),
),
),
),
$settings
);
?>
</table>
</div>
<div class="fl-loop-data-source-acf fl-loop-data-source" data-source="acf_relationship">
<table class="fl-form-table">
<?php
// ACF Compatibility.
FLBuilder::render_settings_field(
'data_source_acf_relational_type',
array(
'type' => 'select',
'label' => __( 'Type', 'uabb' ),
'default' => 'relationship',
'options' => array(
'relationship' => __( 'Relationship', 'uabb' ),
'user' => __( 'User', 'uabb' ),
),
),
$settings
);
FLBuilder::render_settings_field(
'data_source_acf_relational_key',
array(
'type' => 'text',
'label' => __( 'Key', 'uabb' ),
),
$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-loop-builder uabb-settings-section">
<h3 class="fl-builder-settings-title"><span class="fl-builder-settings-title-text-wrap">
<?php
esc_attr_e( 'Custom Query', 'uabb' );
?>
</span></h3>
<table class="fl-form-table">
<?php
// Post type.
FLBuilder::render_settings_field(
'post_type',
array(
'type' => 'post-type',
'label' => __( 'Post Type', 'uabb' ),
'help' => __( 'Choose the post type to display in module.', 'uabb' ),
),
$settings
);
FLBuilder::render_settings_field(
'total_posts_switch',
array(
'type' => 'select',
'label' => __( 'Number of Posts to Display', 'uabb' ),
'help' => __( 'Choose the number of posts you want to display in module.', 'uabb' ),
'default' => 'custom',
'options' => array(
'all' => __( 'All', 'uabb' ),
'custom' => __( 'Custom', 'uabb' ),
),
'toggle' => array(
'custom' => array(
'fields' => array( 'total_posts', 'offset' ),
),
'all' => array(
'fields' => array(),
),
),
),
$settings
);
FLBuilder::render_settings_field(
'total_posts',
array(
'type' => 'text',
'label' => __( 'Posts Count', 'uabb' ),
'help' => __( 'Enter the total number of posts you want to display in module. Scroll pagination will show all posts.', 'uabb' ),
'default' => '6',
'size' => '8',
'placeholder' => '10',
),
$settings
);
// Offset.
FLBuilder::render_settings_field(
'offset',
array(
'type' => 'text',
'label' => __( 'Offset', 'uabb' ),
'help' => __( 'Enter the total number of posts you want skip.', 'uabb' ),
'size' => '8',
'placeholder' => '0',
),
$settings
);
// Order by.
FLBuilder::render_settings_field(
'order_by',
array(
'type' => 'select',
'label' => __( 'Sort By', 'uabb' ),
'help' => __( 'Choose the parameter to sort your posts.', 'uabb' ),
'options' => array(
'ID' => __( 'ID', 'uabb' ),
'date' => __( 'Date', 'uabb' ),
'modified' => __( 'Date Last Modified', 'uabb' ),
'title' => __( 'Title', 'uabb' ),
'author' => __( 'Author', 'uabb' ),
'comment_count' => __( 'Comment Count', 'uabb' ),
'menu_order' => __( 'Menu Order', 'uabb' ),
'meta_value' => __( 'Meta Value (Alphabetical)', 'uabb' ),
'meta_value_num' => __( 'Meta Value (Numeric)', 'uabb' ),
'rand' => __( 'Random', 'uabb' ),
'post__in' => __( 'Selection Order', 'uabb' ),
),
'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', 'uabb' ),
),
$settings
);
// Order.
FLBuilder::render_settings_field(
'order',
array(
'type' => 'select',
'label' => __( 'Order', 'uabb' ),
'help' => __( 'Choose the order to display your posts.', 'uabb' ),
'default' => 'DESC',
'options' => array(
'DESC' => __( 'Descending', 'uabb' ),
'ASC' => __( 'Ascending', 'uabb' ),
),
),
$settings
);
FLBuilder::render_settings_field(
'exclude_self',
array(
'type' => 'select',
'label' => __( 'Exclude Current Post', 'uabb' ),
'default' => 'no',
'help' => __( 'Exclude the current post from the query.', 'uabb' ),
'options' => array(
'yes' => __( 'Yes', 'uabb' ),
'no' => __( 'No', 'uabb' ),
),
),
$settings
);
?>
</table>
</div>
<div id="fl-builder-settings-section-masonary_filter" class="uabb-settings-section">
<h3 class="fl-builder-settings-title">
<?php
esc_attr_e( 'Taxonomy Filter', 'uabb' );
?>
</h3>
<?php
foreach ( FLBuilderLoop::post_types() as $slug => $type ) : //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
?>
<table class="fl-form-table fl-loop-builder-masonary_filter fl-loop-builder-<?php echo esc_attr( $slug ); ?>-masonary_filter"
<?php
if ( $slug === $settings->post_type ) {
echo 'style="display:table;"';
}
?>
>
<?php
// Taxonomies.
$taxonomies = FLBuilderLoop::taxonomies( $slug );
$taxonomies_array = array();
if ( count( $taxonomies ) > 0 ) {
$taxonomies_array[-1] = __( 'No Filter', 'uabb' );
}
foreach ( $taxonomies as $tax_slug => $tax ) { //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$taxonomies_array[ $tax_slug ] = $tax->label;
}
if ( count( $taxonomies_array ) > 0 ) {
// Taxonomy Filter.
FLBuilder::render_settings_field(
'masonary_filter_' . $slug,
array(
'type' => 'select',
'label' => __( 'Taxonomy Filter', 'uabb' ),
'help' => __( 'Select post filter criteria to display post filter at top of the module.', 'uabb' ),
'options' => $taxonomies_array,
),
$settings
);
}
FLBuilder::render_settings_field(
'uabb_masonary_filter_type_' . $slug,
array(
'type' => 'select',
'label' => __( 'Select Filter Layout', 'uabb' ),
'options' => array(
'buttons' => __( 'Button', 'uabb' ),
'drop-down' => __( 'Drop Down', 'uabb' ),
),
),
$settings
);
FLBuilder::render_settings_field(
'uabb_masonary_filter_all_edit_' . $slug,
array(
'type' => 'text',
'label' => __( '"All" Filter Label', 'uabb' ),
'default' => __( 'All', 'uabb' ),
'placeholder' => __( 'All', 'uabb' ),
'connections' => array( 'string' ),
),
$settings
);
?>
</table>
<?php endforeach; ?>
</div>
<div id="fl-builder-settings-section-filter" class="uabb-settings-section">
<h3 class="fl-builder-settings-title"><span class="fl-builder-settings-title-text-wrap"><?php esc_attr_e( 'Filter', 'uabb' ); ?></span></h3>
<?php foreach ( FLBuilderLoop::post_types() as $slug => $type ) : //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
<table class="fl-form-table fl-loop-builder-filter fl-loop-builder-<?php echo esc_attr( $slug ); ?>-filter"
<?php
if ( $slug === $settings->post_type ) {
echo 'style="display:table;"';
}
?>
>
<?php
FLBuilder::render_settings_field(
'posts_' . $slug . '_matching',
array(
'type' => 'select',
'label' => $type->label,
'options' => array(
'1' => sprintf( /* translators: %s: search term */ __( 'Match these %s', '%s is an object like posts or taxonomies.', 'uabb' ), $type->label, $type->label ), //phpcs:ignore WordPress.WP.I18n.TooManyFunctionArgs
'0' => sprintf( /* translators: %s: search term */ __( 'Do not match these %s', '%s is an object like posts or taxonomies.', 'uabb' ), $type->label, $type->label ), //phpcs:ignore WordPress.WP.I18n.TooManyFunctionArgs
),
'help' => sprintf( /* translators: %1$s: search term, translators: %2$s: search term */ __( 'Enter a comma separated list of %1$s. Only these %2$s will be shown.', 'uabb' ), $type->label, $type->label ),
),
$settings
);
// Posts.
FLBuilder::render_settings_field(
'posts_' . $slug,
array(
'type' => 'suggest',
'action' => 'fl_as_posts',
'data' => $slug,
'label' => ' ',
),
$settings
);
// Taxonomies.
$taxonomies = FLBuilderLoop::taxonomies( $slug );
$taxonomies_array = array();
foreach ( $taxonomies as $tax_slug => $tax ) { //phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
FLBuilder::render_settings_field(
'tax_' . $slug . '_' . $tax_slug . '_matching',
array(
'type' => 'select',
'label' => $tax->label,
'help' => sprintf( /* translators: %1$s: search term, translators: %2$s: search term */ __( 'Enter a comma separated list of %1$s. Only posts with these %2$s will be shown.', 'uabb' ), $tax->label, $tax->label ),
'options' => array(
'1' => sprintf( /* translators: %s: search term */ __( 'Match these %s', '%s is an object like posts or taxonomies.', 'uabb' ), $tax->label, $tax->label ), //phpcs:ignore WordPress.WP.I18n.TooManyFunctionArgs
'0' => sprintf( /* translators: %s: search term */ __( 'Do not match these %s', '%s is an object like posts or taxonomies.', 'uabb' ), $tax->label, $tax->label ), //phpcs:ignore WordPress.WP.I18n.TooManyFunctionArgs
'related' => sprintf( /* translators: %s: search term */ __( 'Match all related %s except...', '%s is an object like posts or taxonomies.', 'uabb' ), $tax->label, $tax->label ), //phpcs:ignore WordPress.WP.I18n.TooManyFunctionArgs
),
'help' => sprintf( /* translators: %1$s: search term, translators: %2$s: search term */ __( 'Enter a comma separated list of %1$s. Only posts with these %2$s will be shown.', 'uabb' ), $tax->label, $tax->label ),
),
$settings
);
FLBuilder::render_settings_field(
'tax_' . $slug . '_' . $tax_slug,
array(
'type' => 'suggest',
'action' => 'fl_as_terms',
'data' => $tax_slug,
'label' => ' ',
),
$settings
);
$taxonomies_array[ $tax_slug ] = $tax->label;
}
?>
</table>
<?php endforeach; ?>
<table class="fl-form-table">
<?php
// Author.
FLBuilder::render_settings_field(
'users_matching',
array(
'type' => 'select',
'label' => __( 'Authors', 'uabb' ),
'help' => __( 'Enter a comma separated list of authors usernames. Only posts with these authors will be shown.', 'uabb' ),
'options' => array(
'1' => __( 'Match these Authors', 'uabb' ),
'0' => __( 'Do not match these Authors', 'uabb' ),
),
'help' => __( 'Enter a comma separated list of authors usernames. Only posts with these authors will be shown.', 'uabb' ),
),
$settings
);
FLBuilder::render_settings_field(
'users',
array(
'type' => 'suggest',
'action' => 'fl_as_users',
'label' => __( ' ', 'uabb' ),
),
$settings
);
?>
</table>
</div>
</div>
<?php
do_action( 'uabb_loop_settings_after_form', $settings );
// e.g Add custom FLBuilder::render_settings_field().
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