updated plugin GP Premium version 1.10.0

This commit is contained in:
2020-05-04 15:57:08 +00:00
committed by Gitium
parent bedbe7cc3f
commit 6a7ce488aa
68 changed files with 483 additions and 39245 deletions

View File

@ -101,7 +101,7 @@ class GeneratePress_Hero {
wp_add_inline_style( 'generate-style', self::build_css() );
if ( $options['parallax'] ) {
wp_enqueue_script( 'generate-hero-parallax', plugin_dir_url( __FILE__ ) . '/assets/js/parallax.min.js', array(), GP_PREMIUM_VERSION, true );
wp_enqueue_script( 'generate-hero-parallax', plugin_dir_url( __FILE__ ) . 'assets/js/parallax.min.js', array(), GP_PREMIUM_VERSION, true );
wp_localize_script( 'generate-hero-parallax', 'hero', array(
'parallax' => apply_filters( 'generate_hero_parallax_speed', 2 ),
) );

View File

@ -1077,7 +1077,7 @@ class GeneratePress_Elements_Metabox {
<input type="checkbox" name="_generate_disable_footer" id="_generate_disable_footer" value="true" <?php checked( get_post_meta( get_the_ID(), '_generate_disable_footer', true ), 'true' ); ?> />
</td>
</tr>
</body>
</tbody>
</table>
<table class="generate-elements-settings" data-type="layout" data-tab="content">

View File

@ -23,10 +23,15 @@ function generate_premium_do_elements() {
'post_status' => 'publish',
'numberposts' => 500,
'fields' => 'ids',
'order' => 'ASC',
'suppress_filters' => false,
);
$custom_args = apply_filters( 'generate_elements_custom_args', array(
'order' => 'ASC',
) );
$args = array_merge( $args, $custom_args );
// Prevent Polylang from altering the query.
if ( function_exists( 'pll_get_post_language' ) ) {
$args['lang'] = '';