updated plugin GP Premium version 2.2.0

This commit is contained in:
KawaiiPunk 2022-10-27 11:14:35 +00:00 committed by Gitium
parent 1465186bc5
commit a626bfa106
77 changed files with 418 additions and 152 deletions

View File

@ -1249,7 +1249,7 @@ if ( ! function_exists( 'generate_backgrounds_css' ) ) {
$css->add_property( 'background-attachment', esc_attr( $generate_settings['header_attachment'] ) ); $css->add_property( 'background-attachment', esc_attr( $generate_settings['header_attachment'] ) );
$css->add_property( 'background-position', esc_attr( $generate_settings['header_position'] ) ); $css->add_property( 'background-position', esc_attr( $generate_settings['header_position'] ) );
$css->set_selector( '.main-navigation,.menu-toggle' ); $css->set_selector( '.main-navigation, .main-navigation .menu-toggle' );
$css->add_property( 'background-image', esc_url( $generate_settings['nav_image'] ), 'url' ); $css->add_property( 'background-image', esc_url( $generate_settings['nav_image'] ), 'url' );
$css->add_property( 'background-repeat', esc_attr( $generate_settings['nav_repeat'] ) ); $css->add_property( 'background-repeat', esc_attr( $generate_settings['nav_repeat'] ) );

View File

@ -61,12 +61,6 @@
clear: both; clear: both;
} }
.post-image-aligned-left .inside-article,
.post-image-aligned-right .inside-article {
zoom: 1;
/* For IE 6/7 (trigger hasLayout) */
}
.one-container.post-image-above-header .page-header + .no-featured-image-padding .inside-article .post-image, .one-container.post-image-above-header .page-header + .no-featured-image-padding .inside-article .post-image,
.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image { .one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image {
margin-top: 0; margin-top: 0;

View File

@ -1 +1 @@
.post-image-above-header .inside-article .featured-image,.post-image-above-header .inside-article .post-image{margin-top:0;margin-bottom:2em}.post-image-aligned-left .inside-article .featured-image,.post-image-aligned-left .inside-article .post-image{margin-top:0;margin-right:2em;float:left;text-align:left}.post-image-aligned-center .featured-image,.post-image-aligned-center .post-image{text-align:center}.post-image-aligned-right .inside-article .featured-image,.post-image-aligned-right .inside-article .post-image{margin-top:0;margin-left:2em;float:right;text-align:right}.post-image-below-header.post-image-aligned-center .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .post-image,.post-image-below-header.post-image-aligned-right .inside-article .featured-image,.post-image-below-header.post-image-aligned-right .inside-article .post-image{margin-top:2em}.post-image-aligned-left>.featured-image,.post-image-aligned-right>.featured-image{float:none;margin-left:auto;margin-right:auto}.post-image-aligned-left .featured-image{text-align:left}.post-image-aligned-right .featured-image{text-align:right}.post-image-aligned-left .inside-article:after,.post-image-aligned-left .inside-article:before,.post-image-aligned-right .inside-article:after,.post-image-aligned-right .inside-article:before{content:"";display:table}.post-image-aligned-left .inside-article:after,.post-image-aligned-right .inside-article:after{clear:both}.post-image-aligned-left .inside-article,.post-image-aligned-right .inside-article{zoom:1}.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image,.one-container.post-image-above-header .page-header+.no-featured-image-padding .inside-article .post-image{margin-top:0}.one-container.both-right.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-right.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-right:0}.one-container.both-left.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-left.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0}.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0;margin-right:0}.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .featured-image,.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .post-image{margin-left:0;margin-right:0}@media (max-width:768px){body:not(.post-image-aligned-center) .featured-image,body:not(.post-image-aligned-center) .inside-article .featured-image,body:not(.post-image-aligned-center) .inside-article .post-image{margin-right:0;margin-left:0;float:none;text-align:center}} .post-image-above-header .inside-article .featured-image,.post-image-above-header .inside-article .post-image{margin-top:0;margin-bottom:2em}.post-image-aligned-left .inside-article .featured-image,.post-image-aligned-left .inside-article .post-image{margin-top:0;margin-right:2em;float:left;text-align:left}.post-image-aligned-center .featured-image,.post-image-aligned-center .post-image{text-align:center}.post-image-aligned-right .inside-article .featured-image,.post-image-aligned-right .inside-article .post-image{margin-top:0;margin-left:2em;float:right;text-align:right}.post-image-below-header.post-image-aligned-center .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .post-image,.post-image-below-header.post-image-aligned-right .inside-article .featured-image,.post-image-below-header.post-image-aligned-right .inside-article .post-image{margin-top:2em}.post-image-aligned-left>.featured-image,.post-image-aligned-right>.featured-image{float:none;margin-left:auto;margin-right:auto}.post-image-aligned-left .featured-image{text-align:left}.post-image-aligned-right .featured-image{text-align:right}.post-image-aligned-left .inside-article:after,.post-image-aligned-left .inside-article:before,.post-image-aligned-right .inside-article:after,.post-image-aligned-right .inside-article:before{content:"";display:table}.post-image-aligned-left .inside-article:after,.post-image-aligned-right .inside-article:after{clear:both}.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image,.one-container.post-image-above-header .page-header+.no-featured-image-padding .inside-article .post-image{margin-top:0}.one-container.both-right.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-right.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-right:0}.one-container.both-left.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-left.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0}.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0;margin-right:0}.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .featured-image,.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .post-image{margin-left:0;margin-right:0}@media (max-width:768px){body:not(.post-image-aligned-center) .featured-image,body:not(.post-image-aligned-center) .inside-article .featured-image,body:not(.post-image-aligned-center) .inside-article .post-image{margin-right:0;margin-left:0;float:none;text-align:center}}

View File

@ -61,12 +61,6 @@
clear: both; clear: both;
} }
.post-image-aligned-left .inside-article,
.post-image-aligned-right .inside-article {
zoom: 1;
/* For IE 6/7 (trigger hasLayout) */
}
.one-container.post-image-above-header .page-header + .no-featured-image-padding .inside-article .post-image, .one-container.post-image-above-header .page-header + .no-featured-image-padding .inside-article .post-image,
.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image { .one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image {
margin-top: 0; margin-top: 0;

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,79 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) {
$wp_customize->register_control_type( 'Generate_Control_Toggle_Customize_Control' ); $wp_customize->register_control_type( 'Generate_Control_Toggle_Customize_Control' );
} }
$wp_customize->add_section(
'generate_blog_loop_template_section',
array(
'title' => __( 'Blog', 'gp-premium' ),
'capability' => 'edit_theme_options',
'panel' => 'generate_layout_panel',
'priority' => 40,
'active_callback' => function() {
return generate_has_active_element( 'loop-template', true );
},
)
);
$wp_customize->add_control(
new GeneratePress_Information_Customize_Control(
$wp_customize,
'generate_using_loop_template',
array(
'section' => 'generate_blog_loop_template_section',
'description' => sprintf(
/* translators: URL to the Elements dashboard. */
__( 'This page is using a <a href="%s">Loop Template Element</a>. Other options can be found within that Element.', 'gp-premium' ),
admin_url( 'edit.php?post_type=gp_elements' )
),
'notice' => true,
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
'active_callback' => function() {
return generate_has_active_element( 'loop-template', true );
},
'priority' => 0,
)
)
);
$wp_customize->add_setting(
'generate_blog_settings[excerpt_length]', array(
'default' => $defaults['excerpt_length'],
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'absint',
)
);
$wp_customize->add_control(
'generate_loop_template_excerpt_length',
array(
'type' => 'number',
'label' => __( 'Excerpt word count', 'gp-premium' ),
'section' => 'generate_blog_loop_template_section',
'settings' => 'generate_blog_settings[excerpt_length]',
)
);
$wp_customize->add_setting(
'generate_blog_settings[read_more]',
array(
'default' => $defaults['read_more'],
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'wp_kses_post',
)
);
$wp_customize->add_control(
'generate_loop_template_read_more',
array(
'type' => 'text',
'label' => __( 'Read more label', 'gp-premium' ),
'section' => 'generate_blog_loop_template_section',
'settings' => 'generate_blog_settings[read_more]',
)
);
// Blog content section. // Blog content section.
$wp_customize->add_section( $wp_customize->add_section(
'generate_blog_section', 'generate_blog_section',
@ -36,6 +109,9 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) {
'capability' => 'edit_theme_options', 'capability' => 'edit_theme_options',
'panel' => 'generate_layout_panel', 'panel' => 'generate_layout_panel',
'priority' => 40, 'priority' => 40,
'active_callback' => function() {
return ! generate_has_active_element( 'loop-template', true );
},
) )
); );
@ -83,16 +159,6 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) {
) )
); );
// Excerpt length
$wp_customize->add_setting(
'generate_blog_settings[excerpt_length]', array(
'default' => $defaults['excerpt_length'],
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'absint',
)
);
$wp_customize->add_control( $wp_customize->add_control(
'generate_blog_settings[excerpt_length]', array( 'generate_blog_settings[excerpt_length]', array(
'type' => 'number', 'type' => 'number',
@ -103,16 +169,6 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) {
) )
); );
// Read more text
$wp_customize->add_setting(
'generate_blog_settings[read_more]', array(
'default' => $defaults['read_more'],
'capability' => 'edit_theme_options',
'type' => 'option',
'sanitize_callback' => 'wp_kses_post',
)
);
$wp_customize->add_control( $wp_customize->add_control(
'generate_blog_settings[read_more]', array( 'generate_blog_settings[read_more]', array(
'type' => 'text', 'type' => 'text',
@ -122,7 +178,6 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) {
) )
); );
// Read more button
$wp_customize->add_setting( $wp_customize->add_setting(
'generate_blog_settings[read_more_button]', 'generate_blog_settings[read_more_button]',
array( array(

View File

@ -650,6 +650,10 @@ if ( ! function_exists( 'generate_blog_load_more' ) ) {
return; return;
} }
if ( is_tax( 'product_cat' ) ) {
return;
}
$icon = ''; $icon = '';
if ( function_exists( 'generate_get_svg_icon' ) ) { if ( function_exists( 'generate_get_svg_icon' ) ) {

View File

@ -243,6 +243,10 @@ function generate_blog_single_featured_image() {
} }
} }
if ( function_exists( 'wp_get_loading_attr_default' ) ) {
$attrs['loading'] = wp_get_loading_attr_default( 'the_post_thumbnail' );
}
$image_html = apply_filters( $image_html = apply_filters(
'post_thumbnail_html', // phpcs:ignore -- Core filter. 'post_thumbnail_html', // phpcs:ignore -- Core filter.
wp_get_attachment_image( wp_get_attachment_image(

View File

@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render'), 'version' => '3b04b8f2f126925df9bb349c0dc708ad'); <?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render'), 'version' => 'c15a6f51f21c26086ca8fe73950ba89b');

View File

@ -1,4 +1,4 @@
.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;align-items:center}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block{margin-left:0;margin-right:0}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block.block-list-appender{margin-left:20px}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block-image{line-height:0}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block-image figcaption{display:none}.gpp-dynamic-container-bg-dropdown .components-popover__content{width:275px}.gpp-dynamic-container-bg-dropdown .components-popover__content .components-base-control:not(:last-child){margin-bottom:20px}.gpp-dynamic-container-bg-dropdown .components-popover__content .components-base-control:last-child .components-base-control__field{margin-bottom:0}.gpp-dynamic-container-bg-dropdown .components-popover__content .components-base-control:last-child .components-base-control__help{margin-top:3px} .inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout{display:flex;align-items:center}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block.block-list-appender{margin-left:20px}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block-image{line-height:0}.inline-post-meta-area>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.wp-block-image figcaption{display:none}.inline-post-meta-area .wp-block{margin-left:0;margin-right:0}.gpp-dynamic-container-bg-dropdown .components-popover__content{width:275px}.gpp-dynamic-container-bg-dropdown .components-popover__content .components-base-control:not(:last-child){margin-bottom:20px}.gpp-dynamic-container-bg-dropdown .components-popover__content .components-base-control:last-child .components-base-control__field{margin-bottom:0}.gpp-dynamic-container-bg-dropdown .components-popover__content .components-base-control:last-child .components-base-control__help{margin-top:3px}
.gpp-dynamic-headline-text-dropdown .components-popover__content{width:275px}.gpp-dynamic-headline-text-dropdown .components-popover__content .components-base-control:not(:last-child){margin-bottom:20px}.gpp-dynamic-headline-text-dropdown .components-popover__content .components-base-control:last-child .components-base-control__field{margin-bottom:0}.gpp-dynamic-headline-text-dropdown .components-popover__content .components-base-control:last-child .components-base-control__help{margin-top:3px}.gpp-blocks-dynamic-text-replace-field{display:none}.gpp-block-dynamic-year .components-base-control__help{margin-top:2px} .gpp-dynamic-headline-text-dropdown .components-popover__content{width:275px}.gpp-dynamic-headline-text-dropdown .components-popover__content .components-base-control:not(:last-child){margin-bottom:20px}.gpp-dynamic-headline-text-dropdown .components-popover__content .components-base-control:last-child .components-base-control__field{margin-bottom:0}.gpp-dynamic-headline-text-dropdown .components-popover__content .components-base-control:last-child .components-base-control__help{margin-top:3px}.gpp-blocks-dynamic-text-replace-field{display:none}.gpp-block-dynamic-year .components-base-control__help{margin-top:2px}
@ -8,5 +8,5 @@
.components-generatepress-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold} .components-generatepress-units-control-header__units{display:flex;justify-content:space-between;margin-bottom:5px;align-items:center}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button{background:#fff;box-shadow:none !important;color:#929da7;font-size:10px;padding:0 5px;position:relative;text-align:center;text-shadow:none;border:0;border-radius:0 !important;line-height:20px;padding:0 5px;height:auto}.components-generatepress-control__units .components-generatepress-control-buttons__units button.components-button.is-primary{background:#fff !important;color:#000 !important;cursor:default;z-index:1;font-weight:bold}
.editor-styles-wrapper .is-root-container>.wp-block{max-width:var(--gp-block-element-width);margin-left:auto;margin-right:auto}.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout,.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout{padding:10px}body.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout .block-editor-block-list__block,body.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout .block-editor-block-list__block{margin-top:0;margin-bottom:0}.gpp-block-element-panel>.components-base-control{margin-bottom:20px}.gpp-block-element-panel .components-notice{margin:0}.gpp-block-element-panel .components-notice .components-notice__content{margin:0}.gpp-element-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gpp-element-panel-label .components-panel__body-toggle.components-button svg.components-panel__icon{margin:0 10px 0 0}button.gpp-block-elements-template-button{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:5px;margin:0 0 10px;padding:5px}button.gpp-block-elements-template-button:hover{border-color:var(--wp-admin-theme-color)}button.gpp-block-elements-template-button .gpp-block-template-label{font-size:13px;color:#888;padding:5px}.element-has-parent #generate_premium_elements{display:none}.gpp-block-element-template-panel{background:#fafafa}.gpp-hook-select .gpp-block-element-search-select{width:100%;position:relative}.gpp-hook-select .components-text-control__input{position:relative;z-index:1;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:13px 13px}.gpp-hook-select .select-search__select{background:#fff;border:1px solid #ddd}.gpp-hook-select .select-search__options{list-style:none}.gpp-hook-select .select-search__row:not(:first-child){border-top:1px solid #eee}.gpp-hook-select .select-search__row{margin:0}.gpp-hook-select .select-search__option,.gpp-hook-select .select-search__not-found{display:block;height:36px;width:100%;padding:0 16px;background:#fff;border:none;outline:none;text-align:left;cursor:pointer;margin:0}.gpp-hook-select .select-search__option.select-search__is-selected{background:#007cba;color:#fff}.gpp-hook-select .select-search__option.select-search__is-highlighted,.gpp-hook-select .select-search__option:not(.select-search__is-selected):hover{background:#fafafa}.gpp-hook-select .select-search__option.select-search__is-highlighted.select-search__is-selected,.gpp-hook-select .select-search__option.select-search__is-selected:hover{background:#007cba;color:#fff}.gpp-hook-select .select-search__group-header{font-size:10px;text-transform:uppercase;background:#eee;padding:8px 16px}.gpp-hook-select .gpp-block-element-search-select.is-disabled{opacity:0.5}.gpp-hook-select .gpp-block-element-search-select.is-loading .select-search__value::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath fill='%232F2D37' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");background-size:11px}.gpp-hook-select .gpp-block-element-search-select:not(.is-disabled) .select-search__input{cursor:pointer}.gpp-hook-select .gpp-block-element-search-select:not(.select-search--multiple) .select-search__select{position:absolute;z-index:2;top:35px;right:0;left:0;border-radius:3px;overflow:auto;max-height:360px}.gpp-hook-select .select-search__not-found{height:auto;padding:16px;text-align:center;color:#888} .editor-styles-wrapper .is-root-container>.wp-block{max-width:var(--gp-block-element-width);margin-left:auto;margin-right:auto}.left-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout,.right-sidebar-block-type div:not(.block-editor-inner-blocks)>.block-editor-block-list__layout{padding:10px}.gpp-block-element-panel>.components-base-control{margin-bottom:20px}.gpp-block-element-panel .components-notice{margin:0}.gpp-block-element-panel .components-notice .components-notice__content{margin:0}.gpp-element-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gpp-element-panel-label .components-panel__body-toggle.components-button svg.components-panel__icon{margin:0 10px 0 0}button.gpp-block-elements-template-button{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:5px;margin:0 0 10px;padding:5px}button.gpp-block-elements-template-button:hover{border-color:var(--wp-admin-theme-color)}button.gpp-block-elements-template-button .gpp-block-template-label{font-size:13px;color:#888;padding:5px}.element-has-parent #generate_premium_elements{display:none}.gpp-block-element-template-panel{background:#fafafa}.gpp-hook-select .gpp-block-element-search-select{width:100%;position:relative}.gpp-hook-select .components-text-control__input{position:relative;z-index:1;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:13px 13px}.gpp-hook-select .select-search__select{background:#fff;border:1px solid #ddd}.gpp-hook-select .select-search__options{list-style:none}.gpp-hook-select .select-search__row:not(:first-child){border-top:1px solid #eee}.gpp-hook-select .select-search__row{margin:0}.gpp-hook-select .select-search__option,.gpp-hook-select .select-search__not-found{display:block;height:36px;width:100%;padding:0 16px;background:#fff;border:none;outline:none;text-align:left;cursor:pointer;margin:0}.gpp-hook-select .select-search__option.select-search__is-selected{background:#007cba;color:#fff}.gpp-hook-select .select-search__option.select-search__is-highlighted,.gpp-hook-select .select-search__option:not(.select-search__is-selected):hover{background:#fafafa}.gpp-hook-select .select-search__option.select-search__is-highlighted.select-search__is-selected,.gpp-hook-select .select-search__option.select-search__is-selected:hover{background:#007cba;color:#fff}.gpp-hook-select .select-search__group-header{font-size:10px;text-transform:uppercase;background:#eee;padding:8px 16px}.gpp-hook-select .gpp-block-element-search-select.is-disabled{opacity:0.5}.gpp-hook-select .gpp-block-element-search-select.is-loading .select-search__value::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath fill='%232F2D37' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");background-size:11px}.gpp-hook-select .gpp-block-element-search-select:not(.is-disabled) .select-search__input{cursor:pointer}.gpp-hook-select .gpp-block-element-search-select:not(.select-search--multiple) .select-search__select{position:absolute;z-index:2;top:35px;right:0;left:0;border-radius:3px;overflow:auto;max-height:360px}.gpp-hook-select .select-search__not-found{height:auto;padding:16px;text-align:center;color:#888}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e177a697b77e93bbbb93641d66bd044a'); <?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e35c34fc35cf9392a18646bdbdbbcac5');

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
.generatepress-module-action{text-decoration:none;font-size:12px;font-weight:normal;display:inline-block;margin-left:10px;line-height:1}.generatepress-dashboard__section-item-settings{display:flex;align-items:center}.generatepress-dashboard__section-item-settings button{height:30px;font-size:11px;justify-content:center !important}.generatepress-dashboard__section-item-settings button .components-spinner{margin-top:0}.generatepress-dashboard__section-item-settings button svg{height:20px;width:20px;margin:0 !important}.generatepress-dashboard__section-item-settings button:not(:last-child){margin-right:5px} .generatepress-module-action{text-decoration:none;font-size:12px;font-weight:normal;display:inline-block;margin-left:10px;line-height:1}.generatepress-dashboard__section-item-settings{display:flex;align-items:center}.generatepress-dashboard__section-item-settings button{height:30px;font-size:11px;justify-content:center !important}.generatepress-dashboard__section-item-settings button .components-spinner{margin-top:0}.generatepress-dashboard__section-item-settings button svg{height:20px;width:20px;margin:0 !important}.generatepress-dashboard__section-item-settings button:not(:last-child){margin-right:5px}
.generatepress-license-key-area .generatepress-dashboard__section-item-message{background:#ffffff}.generatepress-license-key-area .generatepress-dashboard__section-item{flex-wrap:wrap;justify-content:flex-start}.generatepress-license-key-area .generatepress-dashboard__section-item-content{flex-basis:30%}.generatepress-license-key-area .generatepress-dashboard__section-item-action{margin-left:auto}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester{margin-left:20px;padding-left:20px;display:flex;align-items:center;border-left:1px solid #ddd}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester .components-base-control__field{height:30px}.generatepress-license-key-area .generatepress-dashboard__section-license-notice{flex-basis:100%;margin:0 0 20px}.generatepress-license-key-area .components-base-control__help,.generatepress-license-key-area .components-base-control__field{margin-bottom:0}@media (max-width: 768px){.generatepress-license-key-area .generatepress-dashboard__section-item-content{flex-basis:100%}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester{flex-basis:100%;border-left:0;padding-left:0;margin:20px 0}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester .components-base-control__field{height:auto}.generatepress-license-key-area .generatepress-dashboard__section-item-action{margin-left:0}} .generatepress-license-key-area .generatepress-dashboard__section-item-message{background:#ffffff}.generatepress-license-key-area .generatepress-dashboard__section-item{flex-wrap:wrap;justify-content:flex-start}.generatepress-license-key-area .generatepress-dashboard__section-item-content{flex-basis:40%;display:flex}.generatepress-license-key-area .generatepress-dashboard__section-item-content .generatepress-dashboard__section-license-key{flex:max-content}.generatepress-license-key-area .generatepress-dashboard__section-item-content .generatepress-dashboard__section-clear-license-key button{height:31px;margin-left:8px}.generatepress-license-key-area .generatepress-dashboard__section-item-action{margin-left:auto}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester{margin-left:20px;padding-left:20px;display:flex;align-items:center;border-left:1px solid #ddd}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester .components-base-control__field{height:30px}.generatepress-license-key-area .generatepress-dashboard__section-license-notice{flex-basis:100%;margin:0 0 20px}.generatepress-license-key-area .components-base-control__help,.generatepress-license-key-area .components-base-control__field{margin-bottom:0}@media (max-width: 768px){.generatepress-license-key-area .generatepress-dashboard__section-item-content{flex-basis:100%}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester{flex-basis:100%;border-left:0;padding-left:0;margin:20px 0}.generatepress-license-key-area .generatepress-dashboard__section-beta-tester .components-base-control__field{height:auto}.generatepress-license-key-area .generatepress-dashboard__section-item-action{margin-left:0}}
.generatepress-dashboard__section-item-action input[type="file"]{padding:5px;border:1px solid #ddd}.generatepress-dashboard__section-item-export-popover .components-popover__content{padding:20px} .generatepress-dashboard__section-item-action input[type="file"]{padding:5px;border:1px solid #ddd}.generatepress-dashboard__section-item-export-popover .components-popover__content{padding:20px}

View File

@ -41,7 +41,7 @@ class GeneratePress_Block_Elements {
public function __construct() { public function __construct() {
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_assets' ), 8 ); add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_assets' ), 8 );
if ( version_compare( $GLOBALS['wp_version'], '5.8-alpha-1', '<' ) ) { if ( version_compare( $GLOBALS['wp_version'], '5.8', '<' ) ) {
add_filter( 'block_categories', array( $this, 'add_block_category' ) ); add_filter( 'block_categories', array( $this, 'add_block_category' ) );
} else { } else {
add_filter( 'block_categories_all', array( $this, 'add_block_category' ) ); add_filter( 'block_categories_all', array( $this, 'add_block_category' ) );
@ -586,6 +586,7 @@ class GeneratePress_Block_Elements {
$url = get_permalink( $id ); $url = get_permalink( $id );
} }
if ( isset( $block['attrs']['gpDynamicLinkCustomField'] ) ) {
if ( 'post-meta' === $link_type ) { if ( 'post-meta' === $link_type ) {
$url = get_post_meta( $id, $block['attrs']['gpDynamicLinkCustomField'], true ); $url = get_post_meta( $id, $block['attrs']['gpDynamicLinkCustomField'], true );
} }
@ -595,7 +596,8 @@ class GeneratePress_Block_Elements {
} }
if ( 'term-meta' === $link_type ) { if ( 'term-meta' === $link_type ) {
$url = get_term_meta( get_queried_object_id(), $block['attrs']['gpDynamicTextCustomField'], true ); $url = get_term_meta( get_queried_object_id(), $block['attrs']['gpDynamicLinkCustomField'], true );
}
} }
if ( 'author-archives' === $link_type ) { if ( 'author-archives' === $link_type ) {
@ -1132,8 +1134,8 @@ class GeneratePress_Block_Elements {
} }
if ( 'user-meta' === $settings['gpDynamicImageBg'] ) { if ( 'user-meta' === $settings['gpDynamicImageBg'] ) {
$author_id = $this->get_author_id( $source, $block['attrs'] ); $author_id = $this->get_author_id( $source, $settings );
$custom_field = $this->get_user_data( $author_id, $block['attrs']['gpDynamicImageCustomField'] ); $custom_field = $this->get_user_data( $author_id, $settings['gpDynamicImageCustomField'] );
} }
if ( 'featured-image' === $settings['gpDynamicImageBg'] && has_post_thumbnail( $id ) ) { if ( 'featured-image' === $settings['gpDynamicImageBg'] && has_post_thumbnail( $id ) ) {
@ -1180,8 +1182,8 @@ class GeneratePress_Block_Elements {
} }
if ( 'user-meta' === $settings['gpDynamicImageBg'] ) { if ( 'user-meta' === $settings['gpDynamicImageBg'] ) {
$author_id = $this->get_author_id( $source, $block['attrs'] ); $author_id = $this->get_author_id( $source, $settings );
$custom_field = $this->get_user_data( $author_id, $block['attrs']['gpDynamicImageCustomField'] ); $custom_field = $this->get_user_data( $author_id, $settings['gpDynamicImageCustomField'] );
} }
if ( 'featured-image' === $settings['gpDynamicImageBg'] && has_post_thumbnail( $id ) ) { if ( 'featured-image' === $settings['gpDynamicImageBg'] && has_post_thumbnail( $id ) ) {

View File

@ -128,6 +128,10 @@ class GeneratePress_Block_Element {
case 'content-template': case 'content-template':
$hook = 'generate_before_do_template_part'; $hook = 'generate_before_do_template_part';
break; break;
case 'loop-template':
$hook = 'generate_before_main_content';
break;
} }
if ( 'custom' === $hook && $custom_hook ) { if ( 'custom' === $hook && $custom_hook ) {
@ -170,6 +174,13 @@ class GeneratePress_Block_Element {
add_filter( 'generate_do_template_part', array( $this, 'do_template_part' ) ); add_filter( 'generate_do_template_part', array( $this, 'do_template_part' ) );
} }
if ( 'loop-template' === $this->type ) {
add_filter( 'generate_has_default_loop', '__return_false' );
add_filter( 'generate_blog_columns', '__return_false' );
add_filter( 'option_generate_blog_settings', array( $this, 'filter_blog_settings' ) );
add_filter( 'post_class', array( $this, 'post_classes' ) );
}
add_action( 'wp', array( $this, 'remove_elements' ), 100 ); add_action( 'wp', array( $this, 'remove_elements' ), 100 );
add_action( esc_attr( $hook ), array( $this, 'build_hook' ), absint( $priority ) ); add_action( esc_attr( $hook ), array( $this, 'build_hook' ), absint( $priority ) );
add_filter( 'generateblocks_do_content', array( $this, 'do_block_content' ) ); add_filter( 'generateblocks_do_content', array( $this, 'do_block_content' ) );
@ -231,6 +242,33 @@ class GeneratePress_Block_Element {
return $widgets; return $widgets;
} }
/**
* Filter some of our blog settings.
*
* @param array $settings Existing blog settings.
*/
public function filter_blog_settings( $settings ) {
if ( 'loop-template' === $this->type ) {
$settings['infinite_scroll'] = false;
$settings['read_more_button'] = false;
}
return $settings;
}
/**
* Add class to our loop template item posts.
*
* @param array $classes Post classes.
*/
public function post_classes( $classes ) {
if ( 'loop-template' === $this->type && is_main_query() ) {
$classes[] = 'is-loop-template-item';
}
return $classes;
}
/** /**
* Remove existing elements. * Remove existing elements.
* *

View File

@ -53,6 +53,7 @@ class GeneratePress_Conditions {
'general:search' => esc_attr__( 'Search Results', 'gp-premium' ), 'general:search' => esc_attr__( 'Search Results', 'gp-premium' ),
'general:no_results' => esc_attr__( 'No Search Results', 'gp-premium' ), 'general:no_results' => esc_attr__( 'No Search Results', 'gp-premium' ),
'general:404' => esc_attr__( '404 Template', 'gp-premium' ), 'general:404' => esc_attr__( '404 Template', 'gp-premium' ),
'general:is_paged' => esc_attr__( 'Paginated Results', 'gp-premium' ),
), ),
), ),
); );
@ -249,7 +250,6 @@ class GeneratePress_Conditions {
} }
if ( $post_id ) { if ( $post_id ) {
// Get the location string. // Get the location string.
$front_page_id = get_option( 'page_on_front' ); $front_page_id = get_option( 'page_on_front' );
$blog_id = get_option( 'page_for_posts' ); $blog_id = get_option( 'page_for_posts' );
@ -265,6 +265,8 @@ class GeneratePress_Conditions {
$object = $post_id; $object = $post_id;
} }
} elseif ( isset( $_GET['post_type'] ) ) { // phpcs:ignore -- Just checking if it's set.
$location = 'post:' . esc_attr( $_GET['post_type'] ); // phpcs:ignore -- No data processing going on.
} }
} }
} }
@ -339,6 +341,8 @@ class GeneratePress_Conditions {
} elseif ( is_front_page() && is_home() && ( in_array( 'general:blog', $conditional ) || in_array( 'general:front_page', $conditional ) ) ) { } elseif ( is_front_page() && is_home() && ( in_array( 'general:blog', $conditional ) || in_array( 'general:front_page', $conditional ) ) ) {
// If the home page is the blog, both of general:blog and general:front_page apply. // If the home page is the blog, both of general:blog and general:front_page apply.
$show = true; $show = true;
} elseif ( in_array( 'general:is_paged', $conditional ) && is_paged() ) {
$show = true;
} }
} }
} }
@ -367,6 +371,8 @@ class GeneratePress_Conditions {
} elseif ( is_front_page() && is_home() && ( in_array( 'general:blog', $conditional ) || in_array( 'general:front_page', $conditional ) ) ) { } elseif ( is_front_page() && is_home() && ( in_array( 'general:blog', $conditional ) || in_array( 'general:front_page', $conditional ) ) ) {
// If the home page is the blog, both of general:blog and general:front_page apply. // If the home page is the blog, both of general:blog and general:front_page apply.
$show = false; $show = false;
} elseif ( in_array( 'general:is_paged', $conditional ) && is_paged() ) {
$show = false;
} }
} }
} }

View File

@ -148,6 +148,13 @@ class GeneratePress_Elements_Helper {
$block_element->post_content = str_replace( '{{current_year}}', date( 'Y' ), $block_element->post_content ); // phpcs:ignore -- Prefer date(). $block_element->post_content = str_replace( '{{current_year}}', date( 'Y' ), $block_element->post_content ); // phpcs:ignore -- Prefer date().
} }
// Handle embeds for block elements.
global $wp_embed;
if ( is_object( $wp_embed ) && method_exists( $wp_embed, 'autoembed' ) ) {
$block_element->post_content = $wp_embed->autoembed( $block_element->post_content );
}
return apply_filters( 'generate_do_block_element_content', do_blocks( $block_element->post_content ) ); return apply_filters( 'generate_do_block_element_content', do_blocks( $block_element->post_content ) );
} }

View File

@ -341,6 +341,14 @@ class GeneratePress_Site_Layout {
if ( $this->disable_content_title ) { if ( $this->disable_content_title ) {
add_filter( 'generate_block_editor_show_content_title', '__return_false' ); add_filter( 'generate_block_editor_show_content_title', '__return_false' );
} }
if ( $this->content_area ) {
add_filter( 'generate_block_editor_content_area_type', array( $this, 'set_editor_content_area' ) );
}
if ( $this->content_width ) {
add_filter( 'generate_block_editor_container_width', array( $this, 'set_editor_content_width' ) );
}
} }
} }
@ -355,21 +363,19 @@ class GeneratePress_Site_Layout {
if ( is_admin() ) { if ( is_admin() ) {
$admin_css = ''; $admin_css = '';
if ( version_compare( generate_premium_get_theme_version(), '3.2.0-alpha.1', '<' ) ) {
if ( 'full-width' === $this->content_area ) { if ( 'full-width' === $this->content_area ) {
$admin_css .= 'html .editor-styles-wrapper .wp-block{max-width: 100%}'; $admin_css .= 'html .editor-styles-wrapper .wp-block{max-width: 100%}';
} }
if ( $this->content_area ) {
$admin_css .= '#generate-layout-page-builder-container {opacity: 0.5;pointer-events: none;}';
}
if ( $this->disable_content_title ) {
$admin_css .= '.content-title-visibility{display: none !important;}label[for="meta-generate-disable-headline"] {opacity: 0.5;pointer-events: none;}';
}
if ( $this->content_width ) { if ( $this->content_width ) {
$admin_css .= 'html .editor-styles-wrapper .wp-block{max-width: ' . absint( $this->content_width ) . 'px;}'; $admin_css .= 'html .editor-styles-wrapper .wp-block{max-width: ' . absint( $this->content_width ) . 'px;}';
} }
}
if ( $this->content_area ) {
$admin_css .= '#generate-layout-page-builder-container {opacity: 0.5;pointer-events: none;}';
}
if ( $admin_css ) { if ( $admin_css ) {
wp_add_inline_style( 'wp-edit-blocks', $admin_css ); wp_add_inline_style( 'wp-edit-blocks', $admin_css );
@ -460,6 +466,36 @@ class GeneratePress_Site_Layout {
} }
} }
/**
* Set the content area type in the editor.
*
* @param string $area Content area type.
*/
public function set_editor_content_area( $area ) {
if ( 'full-width' === $this->content_area ) {
$area = 'true';
}
if ( 'contained-container' === $this->content_area ) {
$area = 'contained';
}
return $area;
}
/**
* Set the content width in the editor.
*
* @param string $width Content width with unit.
*/
public function set_editor_content_width( $width ) {
if ( $this->content_width ) {
$width = absint( $this->content_width ) . 'px';
}
return $width;
}
/** /**
* Disable the Secondary Navigation if set. * Disable the Secondary Navigation if set.
* *

View File

@ -128,8 +128,13 @@ class GeneratePress_Elements_Metabox {
public function scripts( $hook ) { public function scripts( $hook ) {
if ( in_array( $hook, array( 'post.php', 'post-new.php' ) ) ) { if ( in_array( $hook, array( 'post.php', 'post-new.php' ) ) ) {
if ( 'gp_elements' === get_post_type() ) { if ( 'gp_elements' === get_post_type() ) {
// Autosave won't save Element type, so we can't have it. $element_type = get_post_meta( get_the_ID(), '_generate_element_type', true );
// Remove autosave when dealing with non-content Elements.
// phpcs:ignore -- No data processing happening.
if ( 'block' !== $element_type || ( isset( $_GET['element_type'] ) && 'block' !== $_GET['element_type'] ) ) {
wp_dequeue_script( 'autosave' ); wp_dequeue_script( 'autosave' );
}
$deps = array( 'jquery' ); $deps = array( 'jquery' );

View File

@ -95,7 +95,7 @@ class GeneratePress_Elements_Post_Type {
$args = array( $args = array(
'labels' => $labels, 'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ), 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', 'revisions' ),
'hierarchical' => true, 'hierarchical' => true,
'public' => false, 'public' => false,
'show_ui' => true, 'show_ui' => true,
@ -142,7 +142,7 @@ class GeneratePress_Elements_Post_Type {
} }
if ( 'block' === $type ) { if ( 'block' === $type ) {
$args['supports'] = array( 'title', 'editor', 'custom-fields', 'page-attributes' ); $args['supports'] = array( 'title', 'editor', 'custom-fields', 'page-attributes', 'revisions' );
} }
if ( 'layout' === $type ) { if ( 'layout' === $type ) {

View File

@ -2,8 +2,8 @@
font-family: 'GP Premium'; font-family: 'GP Premium';
src: url('gp-premium.eot'); src: url('gp-premium.eot');
src: url('gp-premium.eot#iefix') format('embedded-opentype'), src: url('gp-premium.eot#iefix') format('embedded-opentype'),
url('gp-premium.ttf') format('truetype'),
url('gp-premium.woff') format('woff'), url('gp-premium.woff') format('woff'),
url('gp-premium.ttf') format('truetype'),
url('gp-premium.svg#gp-premium') format('svg'); url('gp-premium.svg#gp-premium') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;

View File

@ -1 +1 @@
@font-face{font-family:'GP Premium';src:url(gp-premium.eot);src:url(gp-premium.eot#iefix) format('embedded-opentype'),url(gp-premium.ttf) format('truetype'),url(gp-premium.woff) format('woff'),url(gp-premium.svg#gp-premium) format('svg');font-weight:400;font-style:normal} @font-face{font-family:'GP Premium';src:url(gp-premium.eot);src:url(gp-premium.eot#iefix) format('embedded-opentype'),url(gp-premium.woff) format('woff'),url(gp-premium.ttf) format('truetype'),url(gp-premium.svg#gp-premium) format('svg');font-weight:400;font-style:normal}

View File

@ -3,7 +3,7 @@
* Plugin Name: GP Premium * Plugin Name: GP Premium
* Plugin URI: https://generatepress.com * Plugin URI: https://generatepress.com
* Description: The entire collection of GeneratePress premium modules. * Description: The entire collection of GeneratePress premium modules.
* Version: 2.1.2 * Version: 2.2.0
* Requires at least: 5.2 * Requires at least: 5.2
* Requires PHP: 5.6 * Requires PHP: 5.6
* Author: Tom Usborne * Author: Tom Usborne
@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly. exit; // Exit if accessed directly.
} }
define( 'GP_PREMIUM_VERSION', '2.1.2' ); define( 'GP_PREMIUM_VERSION', '2.2.0' );
define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) ); define( 'GP_PREMIUM_DIR_PATH', plugin_dir_path( __FILE__ ) );
define( 'GP_PREMIUM_DIR_URL', plugin_dir_url( __FILE__ ) ); define( 'GP_PREMIUM_DIR_URL', plugin_dir_url( __FILE__ ) );
define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' ); define( 'GP_LIBRARY_DIRECTORY', plugin_dir_path( __FILE__ ) . 'library/' );

View File

@ -290,6 +290,23 @@ class GeneratePress_Pro_Dashboard {
); );
} }
/**
* Returns safely the license key.
*/
public static function get_license_key() {
$license_key = get_option( 'gen_premium_license_key', '' );
if ( $license_key && strlen( $license_key ) > 4 ) {
$hidden_length = strlen( $license_key ) - 4;
$safe_part = substr( $license_key, 0, 4 );
$hidden_part = implode('', array_fill( 0, $hidden_length, '*' ) );
return $safe_part . $hidden_part;
}
return $license_key;
}
/** /**
* Add our scripts to the page. * Add our scripts to the page.
*/ */
@ -329,7 +346,7 @@ class GeneratePress_Pro_Dashboard {
'siteLibraryUrl' => admin_url( 'themes.php?page=generatepress-library' ), 'siteLibraryUrl' => admin_url( 'themes.php?page=generatepress-library' ),
'elementsUrl' => admin_url( 'edit.php?post_type=gp_elements' ), 'elementsUrl' => admin_url( 'edit.php?post_type=gp_elements' ),
'hasWooCommerce' => class_exists( 'WooCommerce' ), 'hasWooCommerce' => class_exists( 'WooCommerce' ),
'licenseKey' => get_option( 'gen_premium_license_key', '' ), 'licenseKey' => self::get_license_key(),
'licenseKeyStatus' => get_option( 'gen_premium_license_key_status', 'deactivated' ), 'licenseKeyStatus' => get_option( 'gen_premium_license_key_status', 'deactivated' ),
'betaTester' => get_option( 'gp_premium_beta_testing', false ), 'betaTester' => get_option( 'gp_premium_beta_testing', false ),
) )

View File

@ -170,7 +170,10 @@ class GeneratePress_Pro_Rest extends WP_REST_Controller {
$new_beta_tester = $request->get_param( 'betaTester' ); $new_beta_tester = $request->get_param( 'betaTester' );
$old_license = get_option( 'gen_premium_license_key', '' ); $old_license = get_option( 'gen_premium_license_key', '' );
$old_status = get_option( 'gen_premium_license_key_status', 'deactivated' ); $old_status = get_option( 'gen_premium_license_key_status', 'deactivated' );
$new_license = trim( $new_license_key ); $new_license = strpos( $new_license_key, '***' ) !== false
? trim( $old_license )
: trim( $new_license_key );
if ( $new_license ) { if ( $new_license ) {
$api_params = array( $api_params = array(

View File

@ -1 +1 @@
{"translation-revision-date":"2020-10-01 13:52:43+0000","generator":"WP-CLI\/2.4.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=n != 1;"},"This will remove the current sidebar widgets for the selected sidebar. Your layout must have a sidebar set for this Element to show.":["Die bestehenden Widgets des ausgew\u00e4hlten Seitenbereichs werden gel\u00f6scht. F\u00fcr das Layout muss ein Seitenbereich definiert sein, damit dieses Element angezeigt werden kann."],"Site Footer":["Seiten-Footer"],"None":["Ohne"],"Type":["Typ"],"Right Sidebar":["Rechte Seitenleiste"],"Left Sidebar":["Linke Seitenleiste"],"Priority":["Priorit\u00e4t"],"Custom Hook":["Benutzerdefinierter Hook"],"Custom":["Benutzerdefiniert"],"Site Header":["Seitenkopf"],"Page Hero":["Page Hero"],"Hook":["Hook"],"Right":["Rechts"],"Left":["Links"],"Center":["Zentriert"],"Location":["Standort"]}}} {"translation-revision-date":"2020-10-01 13:52:43+0000","generator":"WP-CLI\/2.6.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=n != 1;"},"This will remove the current sidebar widgets for the selected sidebar. Your layout must have a sidebar set for this Element to show.":["Die bestehenden Widgets des ausgew\u00e4hlten Seitenbereichs werden gel\u00f6scht. F\u00fcr das Layout muss ein Seitenbereich definiert sein, damit dieses Element angezeigt werden kann."],"Site Footer":["Seiten-Footer"],"None":["Ohne"],"Type":["Typ"],"Right Sidebar":["Rechte Seitenleiste"],"Left Sidebar":["Linke Seitenleiste"],"Priority":["Priorit\u00e4t"],"Custom Hook":["Benutzerdefinierter Hook"],"Custom":["Benutzerdefiniert"],"Site Header":["Seitenkopf"],"Page Hero":["Page Hero"],"Hook":["Hook"],"Right":["Rechts"],"Left":["Links"],"Center":["Zentriert"],"Location":["Standort"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-10-01 13:52:43+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=n != 1;"},"All Elements":["Alle Elemente"]}}} {"translation-revision-date":"2020-10-01 13:52:43+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=n != 1;"},"All Elements":["Alle Elemente"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-10-01 13:52:43+0000","generator":"WP-CLI\/2.4.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=n != 1;"},"Why?":["Warum?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Dieser Vorgang stellt Ihre vorherigen Optionen, Widgets und aktiven Plugins wieder her. Au\u00dferdem werden Ihre importierten Inhalte und CSS entfernt."],"It is highly recommended that you remove the last site you imported before importing a new one.":["Es wird dringend empfohlen, die zuletzt importierte Site zu entfernen, bevor Sie eine neue importieren."],"Existing Site Import Detected":["Bestehender Site-Import erkannt"],"Restoring theme options":["Vorherige Theme-Einstellungen werden wieder hergestellt."],"New URL":["Neue URL"],"Old URL":["Alte URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Diese Site verwendet Elementor, was bedeutet, dass Sie eventuell die importierten Bild-URLs ersetzen sollten."],"Additional Cleanup":["Zus\u00e4tzliche Bereinigung"],"This site uses the following plugins.":["Diese Site verwendet die folgenden Plugins."],"All":["Alle"],"View Site":["Seite ansehen"],"Get Started":["Installation starten"],"Plugins":["Plugins"],"Installing plugins":["Plugins installieren"],"Activating plugins":["Plugins aktivieren"],"Importing widgets":["Widgets importieren"],"Importing site options":["Import von Seiten Optionen"],"Importing content":["Importieren von Inhalten"],"None":["Ohne"],"Import":["Import"]}}} {"translation-revision-date":"2020-10-01 13:52:43+0000","generator":"WP-CLI\/2.6.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=n != 1;"},"Why?":["Warum?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Dieser Vorgang stellt Ihre vorherigen Optionen, Widgets und aktiven Plugins wieder her. Au\u00dferdem werden Ihre importierten Inhalte und CSS entfernt."],"It is highly recommended that you remove the last site you imported before importing a new one.":["Es wird dringend empfohlen, die zuletzt importierte Site zu entfernen, bevor Sie eine neue importieren."],"Existing Site Import Detected":["Bestehender Site-Import erkannt"],"Restoring theme options":["Vorherige Theme-Einstellungen werden wieder hergestellt."],"New URL":["Neue URL"],"Old URL":["Alte URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Diese Site verwendet Elementor, was bedeutet, dass Sie eventuell die importierten Bild-URLs ersetzen sollten."],"Additional Cleanup":["Zus\u00e4tzliche Bereinigung"],"This site uses the following plugins.":["Diese Site verwendet die folgenden Plugins."],"All":["Alle"],"View Site":["Seite ansehen"],"Get Started":["Installation starten"],"Plugins":["Plugins"],"Installing plugins":["Plugins installieren"],"Activating plugins":["Plugins aktivieren"],"Importing widgets":["Widgets importieren"],"Importing site options":["Import von Seiten Optionen"],"Importing content":["Importieren von Inhalten"],"None":["Ohne"],"Import":["Import"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2021-01-18 18:01:36+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"es","plural-forms":"nplurals=2; plural=n != 1;"},"All Elements":["Todos los Elementos"]}}} {"translation-revision-date":"2022-08-18 07:05:04+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"es","plural-forms":"nplurals=2; plural=n != 1;"},"Active Elements":["Elementos activos"],"All Elements":["Todos los Elementos"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-08-18 07:05:04+0000","generator":"WP-CLI\/2.6.0","source":"dist\/dashboard.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"es","plural-forms":"nplurals=2; plural=n != 1;"},"This will delete all of your customizer settings. It cannot be undone.":["Esto eliminar\u00e1 todas sus ajustes de personalizaci\u00f3n. No se puede deshacer."],"Reset your customizer settings.":["Reestablecer sus ajustes de personalizaci\u00f3n."],"Options imported.":["Opciones imoprtadas."],"This can overwrite existing settings and cannot be undone.":["Esto puede sobreescribir ajustes existentes y no se puede dehacer."],"Import your customizer settings.":["Importar sus ajustes de personalizaci\u00f3n."],"Global Colors":["Colores globales"],"Export your customizer settings.":["Exportar sus ajustes de personalizaci\u00f3n."],"Import \/ Export":["Importar \/ Exportar"],"License key deactivated.":["Clave de licencia desactivada."],"License key activated.":["Clave de licencia activada."],"Get alpha and beta updates directly to your Dashboard.":["Obtenga actualizaciones alfa y beta directamente en su Panel de control."],"Enter your license key to activate updates.":["Ingrese su clave de licencia para activar las actualizaciones."],"Not receiving premium updates.":["No recibiendo actualizaciones premium."],"Receiving premium updates.":["Recibiendo actualizaciones premium."],"Options exported":["Opciones exportadas"],"This will delete all settings for this module. It cannot be undone.":["Esto eliminar\u00e1 todos los ajustes para este m\u00f3dulo. No se puede deshacer."],"Open tools for this module.":["Abrir herramientas para este m\u00f3dulo."],"Open Elements":["Abrir Elementos"],"Open Site Library":["Abrir Biblioteca de sitios"],"Settings reset.":["Reestablecer ajustes"],"Typography":["Tipograf\u00eda"],"All":["Todo"],"Reset":["Restablecer"],"Modules":["M\u00f3dulos"],"License Key":["Clave de licencia"],"Deactivate":["Desactivar"],"Activate":["Activar"],"This module has been deprecated. Deactivating it will remove it from this list.":["Este m\u00f3dulo se encuentra obsoleto. Al desactivarlo, lo eliminar\u00e1 de esta lista."],"Import":["Importar"],"Export":["Exportar"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-08-18 07:05:04+0000","generator":"WP-CLI\/2.6.0","source":"dist\/customizer.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"es","plural-forms":"nplurals=2; plural=n != 1;"},"Related\/Upsell Product Titles":["T\u00edtulos de productos relacionados\/mejorados"],"Catalog Product Titles":["T\u00edtulos de productos del cat\u00e1logo"],"Off-Canvas Sub-Menu Items":["Elementos del submen\u00fa fuera de lienzo"],"Off-Canvas Menu Items":["Elementos del men\u00fa fuera de lienzo"],"Secondary Mobile Menu Toggle":["Alternar men\u00fa m\u00f3vil secundario"],"Secondary Sub-Menu Items":["Elementos del submen\u00fa secundario"],"Secondary Menu Items":["Elementos del men\u00fa secundario"],"Off-Canvas Panel":["Panel fuera de lienzo"],"WooCommerce":["WooCommerce"],"Secondary Navigation":["Navegaci\u00f3n Secundaria"]}}}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"translation-revision-date":"2021-04-24 08:46:07+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fi","plural-forms":"nplurals=2; plural=n != 1;"},"Active Elements":["Aktiivit elementit"],"All Elements":["Kaikki elementit"]}}} {"translation-revision-date":"2022-01-01 20:29:49+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fi","plural-forms":"nplurals=2; plural=n != 1;"},"Active Elements":["Aktiivit elementit"],"All Elements":["Kaikki elementit"]}}}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-01-01 20:29:49+0000","generator":"WP-CLI\/2.6.0","source":"dist\/dashboard.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fi","plural-forms":"nplurals=2; plural=n != 1;"},"This will delete all of your customizer settings. It cannot be undone.":["T\u00e4m\u00e4 poistaa kaikki tekem\u00e4si asetukset mukauttimessa. T\u00e4t\u00e4 ei voi perua."],"Reset your customizer settings.":["Palauta mukauttimen asetukset alkuarvoihin."],"Options imported.":["Asetukset tuotu."],"This can overwrite existing settings and cannot be undone.":["T\u00e4m\u00e4 voi muuttaa nykyiset asetukset eik\u00e4 sit\u00e4 voi perua."],"Import your customizer settings.":["Tuo mukauttimen asetukset."],"Global Colors":["Yleiset v\u00e4rit"],"Export your customizer settings.":["Vie mukauttimen asetukset."],"Import \/ Export":["Tuo \/ Vie"],"License key deactivated.":["Lisenssiavaimen aktivointi poistettu."],"License key activated.":["Lisenssiavain aktivoitu"],"Get alpha and beta updates directly to your Dashboard.":["Vastaanota alpha ja beta -p\u00e4ivityksi\u00e4 suoraan ohjausn\u00e4kym\u00e4st\u00e4si."],"Enter your license key to activate updates.":["Sy\u00f6t\u00e4 lisenssiavain aktivoidaksesi p\u00e4ivitykset."],"Not receiving premium updates.":["Ei vastaanota premium -p\u00e4ivityksi\u00e4."],"Receiving premium updates.":["Vastaanottaa premium -p\u00e4ivityksi\u00e4."],"Options exported":["Vaihtoehdot viety"],"This will delete all settings for this module. It cannot be undone.":["T\u00e4m\u00e4 poistaa t\u00e4m\u00e4n moduulin asetukset. Sit\u00e4 ei voi perua."],"Open tools for this module.":["Avaa t\u00e4m\u00e4n moduulin ty\u00f6kalut."],"Open Elements":["Avaa Elementit"],"Open Site Library":["Avaa sivustokirjasto"],"Settings reset.":["Asetukset resetoitu."],"Typography":["Typografia"],"All":["Kaikki"],"Reset":["Palauta asetukset"],"Modules":["Moduulit"],"License Key":["Lisenssiavain"],"Deactivate":["Poista k\u00e4yt\u00f6st\u00e4"],"Activate":["Ota k\u00e4ytt\u00f6\u00f6n"],"This module has been deprecated. Deactivating it will remove it from this list.":["T\u00e4m\u00e4 moduuli on vanhentunut. Poistamalla sen k\u00e4yt\u00f6st\u00e4, katoaa se t\u00e4st\u00e4 listasta."],"Import":["Tuonti"],"Export":["Vienti"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-01-01 20:29:49+0000","generator":"WP-CLI\/2.6.0","source":"dist\/customizer.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fi","plural-forms":"nplurals=2; plural=n != 1;"},"Related\/Upsell Product Titles":["Liittyvien\/Lis\u00e4myyntituotteiden otsikot"],"Catalog Product Titles":["Tuoteluettelon tuotteiden nimet"],"Off-Canvas Sub-Menu Items":["Piilossa olevan alivalikon kohteet"],"Off-Canvas Menu Items":["Piilossa olevan valikon kohteet"],"Secondary Mobile Menu Toggle":["Toissijainen mobiilivalikko p\u00e4\u00e4lle\/pois"],"Secondary Sub-Menu Items":["Alivalikon toissijaiset kohteet"],"Secondary Menu Items":["Toissijaisen valikon kohteet"],"Off-Canvas Panel":["Poissa n\u00e4kyvist\u00e4 oleva paneeli"],"WooCommerce":["WooCommerce - verkkokauppa"],"Secondary Navigation":["Toissijainen valikko"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2021-03-10 11:23:17+0000","generator":"WP-CLI\/2.4.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr","plural-forms":"nplurals=2; plural=n > 1;"},"Post author name":["Nom de l'auteur de la publication"],"Post date":["Date de la publication"],"Title":["Titre"],"Dynamic text type":["Type de texte dynamique"],"Published date before text":["Texte avant la date de publication"],"Term archives":["Archives des termes"],"Author meta":["M\u00e9tadonn\u00e9es des auteurs"],"Previous page of posts":["Pr\u00e9c\u00e9dente page des publications"],"Next page of posts":["Prochaine page des publications"],"Comments area":["Zone des commentaires"],"Author archives":["Archives des auteurs"],"Single post":["Publication unique"],"Taxonomy":["Taxonomie"],"In same term":["Dans le m\u00eame terme"],"No previous post":["Pas de publication pr\u00e9c\u00e9dente"],"This will remove the current sidebar widgets for the selected sidebar. Your layout must have a sidebar set for this Element to show.":["Cela supprimera les widgets en cours pour la colonne lat\u00e9rale s\u00e9lectionn\u00e9e. Votre mise en page doit avoir des colonnes lat\u00e9rales d\u00e9finies pour que cet \u00e9l\u00e9ment soit visible."],"Site Footer":["Pied de page du site"],"None":["Aucun"],"Type":["Type"],"Right Sidebar":["Colonne lat\u00e9rale de droite"],"Left Sidebar":["Colonne lat\u00e9rale gauche"],"Priority":["Priorit\u00e9"],"Custom Hook":["Hook personnalis\u00e9"],"Custom":["Personnaliser"],"Site Header":["Ent\u00eate du site"],"Page Hero":["Banni\u00e8re"],"Hook":["Hook"],"Right":["Droite"],"Left":["Gauche"],"Center":["Centre"],"Location":["Emplacement"]}}} {"translation-revision-date":"2021-03-10 11:23:17+0000","generator":"WP-CLI\/2.6.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr","plural-forms":"nplurals=2; plural=n > 1;"},"Post author name":["Nom de l'auteur de la publication"],"Post date":["Date de la publication"],"Title":["Titre"],"Dynamic text type":["Type de texte dynamique"],"Published date before text":["Texte avant la date de publication"],"Term archives":["Archives des termes"],"Author meta":["M\u00e9tadonn\u00e9es des auteurs"],"Previous page of posts":["Pr\u00e9c\u00e9dente page des publications"],"Next page of posts":["Prochaine page des publications"],"Comments area":["Zone des commentaires"],"Author archives":["Archives des auteurs"],"Single post":["Publication unique"],"Taxonomy":["Taxonomie"],"In same term":["Dans le m\u00eame terme"],"No previous post":["Pas de publication pr\u00e9c\u00e9dente"],"This will remove the current sidebar widgets for the selected sidebar. Your layout must have a sidebar set for this Element to show.":["Cela supprimera les widgets en cours pour la colonne lat\u00e9rale s\u00e9lectionn\u00e9e. Votre mise en page doit avoir des colonnes lat\u00e9rales d\u00e9finies pour que cet \u00e9l\u00e9ment soit visible."],"Site Footer":["Pied de page du site"],"None":["Aucun"],"Type":["Type"],"Right Sidebar":["Colonne lat\u00e9rale de droite"],"Left Sidebar":["Colonne lat\u00e9rale gauche"],"Priority":["Priorit\u00e9"],"Custom Hook":["Hook personnalis\u00e9"],"Custom":["Personnaliser"],"Site Header":["Ent\u00eate du site"],"Page Hero":["Banni\u00e8re"],"Hook":["Hook"],"Right":["Droite"],"Left":["Gauche"],"Center":["Centre"],"Location":["Emplacement"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2021-03-10 11:23:17+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr","plural-forms":"nplurals=2; plural=n > 1;"},"All Elements":["Tous les \u00e9l\u00e9ments"]}}} {"translation-revision-date":"2021-03-10 11:23:17+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr","plural-forms":"nplurals=2; plural=n > 1;"},"All Elements":["Tous les \u00e9l\u00e9ments"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2021-03-10 11:23:17+0000","generator":"WP-CLI\/2.4.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr","plural-forms":"nplurals=2; plural=n > 1;"},"Why?":["Pourquoi?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Cette op\u00e9ration restaure vos r\u00e9glages pr\u00e9c\u00e9dents: options, widgets et extensions actives. Cela va aussi supprimer le contenu import\u00e9 est les CSS. "],"It is highly recommended that you remove the last site you imported before importing a new one.":["Il est vraiment recommand\u00e9 de supprimer le dernier site que vous avez import\u00e9 avant d'en importer un nouveau. "],"Existing Site Import Detected":["L'importation de ce site existe d\u00e9j\u00e0"],"Restoring theme options":["Restaurer les options du th\u00e8me"],"New URL":["Nouvelle URL"],"Old URL":["Ancienne URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Ce site utilise Elementor ce qui veut dire que vous devrez remplacer les URLs des images import\u00e9es"],"Additional Cleanup":["Nettoyage suppl\u00e9mentaire"],"This site uses the following plugins.":["Ce site utilise les plugins suivants"],"Installing plugins":["Installation de plugins..."],"Activating plugins":["Activer les plugins"],"Importing widgets":["Importation des widgets"],"Importing site options":["Importation des options du site"],"Importing content":["Importation du contenu"],"None":["Aucun"],"Import":["Importer"]}}} {"translation-revision-date":"2021-03-10 11:23:17+0000","generator":"WP-CLI\/2.6.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr","plural-forms":"nplurals=2; plural=n > 1;"},"Why?":["Pourquoi?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Cette op\u00e9ration restaure vos r\u00e9glages pr\u00e9c\u00e9dents: options, widgets et extensions actives. Cela va aussi supprimer le contenu import\u00e9 est les CSS. "],"It is highly recommended that you remove the last site you imported before importing a new one.":["Il est vraiment recommand\u00e9 de supprimer le dernier site que vous avez import\u00e9 avant d'en importer un nouveau. "],"Existing Site Import Detected":["L'importation de ce site existe d\u00e9j\u00e0"],"Restoring theme options":["Restaurer les options du th\u00e8me"],"New URL":["Nouvelle URL"],"Old URL":["Ancienne URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Ce site utilise Elementor ce qui veut dire que vous devrez remplacer les URLs des images import\u00e9es"],"Additional Cleanup":["Nettoyage suppl\u00e9mentaire"],"This site uses the following plugins.":["Ce site utilise les plugins suivants"],"Installing plugins":["Installation de plugins..."],"Activating plugins":["Activer les plugins"],"Importing widgets":["Importation des widgets"],"Importing site options":["Importation des options du site"],"Importing content":["Importation du contenu"],"None":["Aucun"],"Import":["Importer"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-05-12 15:01:48+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=n != 1;"},"All Elements":["Alle elementen"]}}} {"translation-revision-date":"2022-03-18 15:02:47+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=n != 1;"},"Active Elements":["Actieve elementen"],"All Elements":["Alle elementen"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-05-12 15:01:48+0000","generator":"WP-CLI\/2.4.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=n != 1;"},"Why?":["Waarom?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Deze procedure zet je vorige opties, widgets, en actieve plugins terug. Het verwijdert ook de ge\u00efmporteerde inhoud en CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["Het is aanbevolen dat je de laatste site verwijdert die je hebt ge\u00efmporteerd voordat je een nieuwe importeert."],"Existing Site Import Detected":["Bestaande site import gevonden"],"Restoring theme options":["Terugzetten themaopties"],"New URL":["Nieuwe URL"],"Old URL":["Oude URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Deze site maakt gebruik van Elementor, wat betekent dat je de ge\u00efmporteerde afbeeldings-URLs moet aanpassen."],"Additional Cleanup":["Extra opruimen"],"This site uses the following plugins.":["Deze site maakt gebruik van de volgende plugins:"],"All":["Alles"],"View Site":["Bekijk site"],"Get Started":["Nu beginnen"],"Plugins":["Plugins"],"Installing plugins":["Plugins aan het installeren"],"Activating plugins":["Plugins aan het activeren"],"Importing widgets":["Widgets aan het importeren"],"Importing site options":["Site-instellingen aan het importeren"],"Importing content":["Inhoud aan het importeren"],"None":["Geen"],"Import":["Importeren"]}}} {"translation-revision-date":"2022-03-18 15:02:47+0000","generator":"WP-CLI\/2.6.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=n != 1;"},"Requires GeneratePress %s.":[""],"Built by":["Gebouwd door"],"Note: We do our best to ensure all imported images are licensed for open use. However, image licenses can change, so we strongly advise that you replace all imported images with your own.":["Opmerking: we doen ons best om ervoor te zorgen dat alle ge\u00efmporteerde afbeeldingen vrij gebruikt mogen worden. Afbeeldingslicenties kunnen echter veranderen, dus we raden je ten zeerste aan om alle ge\u00efmporteerde afbeeldingen te vervangen door je eigen afbeeldingen."],"Check out your new site and start making it yours!":["Bekijk je nieuwe site en geef het jouw unieke stijl!"],"Learn more here":["Leer hier meer"],"To disable it, find WP_DEBUG in your wp-config.php file and set it to false like the below.":["Zoek - om het uit te schakelen - naar WP_DEBUG in je wp-config.php-bestand en stel het in op false zoals hieronder."],"WordPress debug mode is currently enabled. With this, any errors from third-party plugins might affect the import process.":["De foutopsporingsmodus van WordPress is momenteel ingeschakeld. Hierdoor kunnen eventuele fouten van plug-ins van derden het importproces be\u00efnvloeden."],"Debug Mode Enabled":["Foutopsporingsmodus ingeschakeld"],"Preview mobile":["Voorbeeld mobiel"],"Preview tablet":["Voorbeeld tablet"],"Preview desktop":["Voorbeeld desktop"],"Elementor Tools":["Elementor Tools"],"Take note of the old and new URLs below, then head over to the Elementor Tools area to replace them.":["Noteer de oude en nieuwe URL's hieronder en ga naar het Elementor Tools-gebied om ze te vervangen."],"Begin Import":["Begin importeren"],"I understand":["Ik begrijp het"],"Confirm Import":["Bevestig importeren"],"Import Demo Content":["Importeer demo inhoud"],"This will install and activate needed plugins, import demo content, and import site options.":["Dit installeert en activeert de benodigde plug-ins, importeert de demo-inhoud en importeert site-instellingen."],"Import Theme Options":["Importeer thema-instellingen"],"This will import the options from the Customizer.":["Dit importeert de instellingen van de Customizer."],"These plugins need to be installed manually.":["Deze plug-ins moeten handmatig worden ge\u00efnstalleerd."],"These plugins are already installed.":["Deze plug-ins zijn al ge\u00efnstalleerd."],"These plugins can be installed automatically.":["Deze plug-ins kunnen automatisch worden ge\u00efnstalleerd."],"Gathering information":["Informatie aan het verzamelen."],"Refresh sites":["Vernieuw sites"],"Requires GP Premium %s.":["Vereist GP Premium %s."],"Page Builder":["Pagina bouwer"],"Category":["Categorie"],"No thanks":["Nee bedankt"],"Remove imported site":["Verwijder ge\u00efmporteerde site"],"This process makes changes to your website. If it contains important data, we suggest backing it up before proceeding.":["Dit proces maakt veranderingen aan je website. Als deze belangrijke data bevat, raden we aan om deze te back-uppen."],"Try again":["Nogmaals proberen"],"No sites were found.":["Geen sites gevonden."],"Restoring content":["Terugzetten inhoud"],"Installing %s":["%s wordt ge\u00efnstalleerd"],"Import Complete":["Import compleet"],"Importing theme options":["Thema-instellingen worden ge\u00efmporteerd"],"Why?":["Waarom?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Deze procedure zet de vorige instellingen, widgets, en actieve plugins terug. Het verwijdert ook de ge\u00efmporteerde inhoud en CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["Het is aanbevolen dat je de laatste site verwijdert die je hebt ge\u00efmporteerd voordat je een nieuwe importeert."],"Existing Site Import Detected":["Bestaande site import gevonden"],"Restoring theme options":["Terugzetten thema-instellingen"],"New URL":["Nieuwe URL"],"Old URL":["Oude URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Deze site maakt gebruik van Elementor, wat betekent dat je de ge\u00efmporteerde afbeeldings-URLs moet aanpassen."],"Additional Cleanup":["Extra opruimen"],"This site uses the following plugins.":["Deze site maakt gebruik van de volgende plugins:"],"All":["Alles"],"View Site":["Bekijk site"],"Get Started":["Nu beginnen"],"Plugins":["Plugins"],"Installing plugins":["Plugins aan het installeren"],"Activating plugins":["Plugins aan het activeren"],"Importing widgets":["Widgets aan het importeren"],"Importing site options":["Site-instellingen aan het importeren"],"Importing content":["Inhoud aan het importeren"],"None":["Geen"],"Import":["Importeren"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-03-18 15:02:47+0000","generator":"WP-CLI\/2.6.0","source":"dist\/dashboard.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=n != 1;"},"This will delete all of your customizer settings. It cannot be undone.":["Dit zal al je customizer instellingen verwijderen. Het kan niet ongedaan worden gemaakt."],"Reset your customizer settings.":["Reset je customizer instellingen."],"Options imported.":["Opties ge\u00efmporteerd."],"This can overwrite existing settings and cannot be undone.":["Dit kan bestaande instellingen overschrijven en kan niet ongedaan worden gemaakt."],"Import your customizer settings.":["Importeer je customizer instellingen."],"Global Colors":["Globale kleuren"],"Export your customizer settings.":["Exporteer je customizer instellingen."],"Import \/ Export":["Importeren \/ exporteren"],"License key deactivated.":["Licentiesleutel gedeactiveerd."],"License key activated.":["Licentiesleutel geactiveerd."],"Get alpha and beta updates directly to your Dashboard.":["Ontvang alpha en beta updates direct in je Dashboard."],"Enter your license key to activate updates.":["Voer je licentiesleutel in om updates te activeren."],"Not receiving premium updates.":["Geen premium updates ontvangen."],"Receiving premium updates.":["Premium-updates ontvangen."],"Options exported":["Opties ge\u00ebxporteerd"],"This will delete all settings for this module. It cannot be undone.":["Hiermee worden alle instellingen voor deze module verwijderd. Dit kan niet ongedaan worden gemaakt."],"Open tools for this module.":["Open gereedschap voor deze module."],"Open Elements":["Open elementen"],"Open Site Library":["Open site bibliotheek"],"Settings reset.":["Instellingen gereset."],"Typography":["Typografie"],"All":["Alles"],"Reset":["Terugzetten"],"Modules":["Modules"],"License Key":["Licentiecode"],"Deactivate":["Deactiveren"],"Activate":["Activeren"],"This module has been deprecated. Deactivating it will remove it from this list.":["Deze module is verouderd. Als u deze deactiveert, wordt deze uit deze lijst verwijderd."],"Import":["Importeren"],"Export":["Exporteren"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-03-18 15:02:47+0000","generator":"WP-CLI\/2.6.0","source":"dist\/customizer.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=n != 1;"},"Related\/Upsell Product Titles":["Gerelateerde\/opwaarderende producttitels"],"Catalog Product Titles":["Catalogus product titels"],"Off-Canvas Sub-Menu Items":["Off-canvas submenu items"],"Off-Canvas Menu Items":["Off-canvas menu items"],"Secondary Mobile Menu Toggle":["Secundair mobiel menu toggle"],"Secondary Sub-Menu Items":["Secundaire submenu items"],"Secondary Menu Items":["Secundaire menu-items"],"Off-Canvas Panel":["Off-canvas paneel"],"WooCommerce":["WooCommerce"],"Secondary Navigation":["Secundaire navigatie"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-08-08 21:16:06+0000","generator":"WP-CLI\/2.4.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=n != 1;"},"Site Footer":["Rodap\u00e9 do site"],"None":["Nenhuma"],"Type":["Tipo"],"Right Sidebar":["Barra lateral direita"],"Left Sidebar":["Barra lateral esquerda"],"Priority":["Prioridade"],"Custom Hook":["Hook personalizado"],"Custom":["Personalizado"],"Site Header":["Cabe\u00e7alho do site"],"Page Hero":["Hero de p\u00e1gina"],"Hook":["Hook"],"Right":["Direita"],"Left":["Esquerda"],"Center":["Centro"],"Location":["Localiza\u00e7\u00e3o"]}}} {"translation-revision-date":"2020-08-08 21:16:06+0000","generator":"WP-CLI\/2.6.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=n != 1;"},"Site Footer":["Rodap\u00e9 do site"],"None":["Nenhuma"],"Type":["Tipo"],"Right Sidebar":["Barra lateral direita"],"Left Sidebar":["Barra lateral esquerda"],"Priority":["Prioridade"],"Custom Hook":["Hook personalizado"],"Custom":["Personalizado"],"Site Header":["Cabe\u00e7alho do site"],"Page Hero":["Hero de p\u00e1gina"],"Hook":["Hook"],"Right":["Direita"],"Left":["Esquerda"],"Center":["Centro"],"Location":["Localiza\u00e7\u00e3o"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-08-08 21:16:06+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=n != 1;"},"All Elements":["Todos os elementos"]}}} {"translation-revision-date":"2020-08-08 21:16:06+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=n != 1;"},"All Elements":["Todos os elementos"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-08-08 21:16:06+0000","generator":"WP-CLI\/2.4.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=n != 1;"},"Why?":["Porqu\u00ea?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Este processo recupera as suas op\u00e7\u00f5es, widgets e plugins activos anteriores. Tamb\u00e9m ir\u00e1 remover o seu conte\u00fado importado e CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["\u00c9 altamente recomendado que remova o site importado anteriormente antes de importar um novo."],"Existing Site Import Detected":["Detectado um site importado existente"],"Restoring theme options":["A recuperar op\u00e7\u00f5es do tema"],"New URL":["URL novo"],"Old URL":["URL antigo"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Este site utiliza o Elementor, isto significa que dever\u00e1 substituir os URL das imagens importadas."],"Additional Cleanup":["Limpeza adicional"],"This site uses the following plugins.":["Este site utiliza os seguintes plugins."],"All":["Todos"],"View Site":["Ver site"],"Get Started":["Come\u00e7ar"],"Plugins":["Plugins"],"Installing plugins":["A instalar plugins"],"Activating plugins":["A activar plugins"],"Importing widgets":["A importar widgets"],"Importing site options":["A importar op\u00e7\u00f5es do site"],"Importing content":["A importar conte\u00fados"],"None":["Nenhuma"],"Import":["Importar"]}}} {"translation-revision-date":"2020-08-08 21:16:06+0000","generator":"WP-CLI\/2.6.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"pt","plural-forms":"nplurals=2; plural=n != 1;"},"Why?":["Porqu\u00ea?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Este processo recupera as suas op\u00e7\u00f5es, widgets e plugins activos anteriores. Tamb\u00e9m ir\u00e1 remover o seu conte\u00fado importado e CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["\u00c9 altamente recomendado que remova o site importado anteriormente antes de importar um novo."],"Existing Site Import Detected":["Detectado um site importado existente"],"Restoring theme options":["A recuperar op\u00e7\u00f5es do tema"],"New URL":["URL novo"],"Old URL":["URL antigo"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Este site utiliza o Elementor, isto significa que dever\u00e1 substituir os URL das imagens importadas."],"Additional Cleanup":["Limpeza adicional"],"This site uses the following plugins.":["Este site utiliza os seguintes plugins."],"All":["Todos"],"View Site":["Ver site"],"Get Started":["Come\u00e7ar"],"Plugins":["Plugins"],"Installing plugins":["A instalar plugins"],"Activating plugins":["A activar plugins"],"Importing widgets":["A importar widgets"],"Importing site options":["A importar op\u00e7\u00f5es do site"],"Importing content":["A importar conte\u00fados"],"None":["Nenhuma"],"Import":["Importar"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-04-26 23:48:38+0000","generator":"WP-CLI\/2.4.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"},"None":["\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"],"Type":["\u0422\u0438\u043f"],"Right Sidebar":["\u0412 \u043f\u0440\u0430\u0432\u043e\u043c \u0431\u043e\u043a\u043e\u0432\u0438\u043a\u0435"],"Left Sidebar":["\u0412 \u043b\u0435\u0432\u043e\u043c \u0431\u043e\u043a\u043e\u0432\u0438\u043a\u0435"],"Priority":["\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442"],"Custom Hook":["\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0445\u0443\u043a"],"Custom":["\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439"],"Site Header":["\u0428\u0430\u043f\u043a\u0430 \u0441\u0430\u0439\u0442\u0430"],"Page Hero":["Hero \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430"],"Hook":["\u0425\u0443\u043a"],"Right":["\u0421\u043f\u0440\u0430\u0432\u0430"],"Left":["\u0421\u043b\u0435\u0432\u0430"],"Center":["\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443"],"Location":["\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435"]}}} {"translation-revision-date":"2020-04-26 23:48:38+0000","generator":"WP-CLI\/2.6.0","source":"dist\/block-elements.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"},"None":["\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"],"Type":["\u0422\u0438\u043f"],"Right Sidebar":["\u0412 \u043f\u0440\u0430\u0432\u043e\u043c \u0431\u043e\u043a\u043e\u0432\u0438\u043a\u0435"],"Left Sidebar":["\u0412 \u043b\u0435\u0432\u043e\u043c \u0431\u043e\u043a\u043e\u0432\u0438\u043a\u0435"],"Priority":["\u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442"],"Custom Hook":["\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0445\u0443\u043a"],"Custom":["\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439"],"Site Header":["\u0428\u0430\u043f\u043a\u0430 \u0441\u0430\u0439\u0442\u0430"],"Page Hero":["Hero \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430"],"Hook":["\u0425\u0443\u043a"],"Right":["\u0421\u043f\u0440\u0430\u0432\u0430"],"Left":["\u0421\u043b\u0435\u0432\u0430"],"Center":["\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443"],"Location":["\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-04-26 23:48:38+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"},"All Elements":["\u0412\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b"]}}} {"translation-revision-date":"2020-04-26 23:48:38+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"},"All Elements":["\u0412\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2020-04-26 23:48:38+0000","generator":"WP-CLI\/2.4.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"},"Why?":["\u041f\u043e\u0447\u0435\u043c\u0443?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b. \u041e\u043d \u0442\u0430\u043a\u0436\u0435 \u0443\u0434\u0430\u043b\u0438\u0442 \u0432\u0430\u0448 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0438 CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["\u041d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043f\u0435\u0440\u0435\u0434 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u043c \u043d\u043e\u0432\u043e\u0433\u043e."],"Existing Site Import Detected":["\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0438\u043c\u043f\u043e\u0440\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430"],"Restoring theme options":["\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u0435\u043c\u044b"],"New URL":["\u041d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 URL"],"Old URL":["\u0421\u0442\u0430\u0440\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["\u042d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Elementor, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0412\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c URL-\u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439."],"Additional Cleanup":["\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0430"],"This site uses the following plugins.":["\u042d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b."],"Installing plugins":["\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432"],"Activating plugins":["\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432"],"Importing widgets":["\u0418\u043c\u043f\u043e\u0440\u0442 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432"],"Importing site options":["\u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0430\u0439\u0442\u0430"],"Importing content":["\u0418\u043c\u043f\u043e\u0440\u0442 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430"],"None":["\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"],"Import":["\u0418\u043c\u043f\u043e\u0440\u0442"]}}} {"translation-revision-date":"2020-04-26 23:48:38+0000","generator":"WP-CLI\/2.6.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru","plural-forms":"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"},"Why?":["\u041f\u043e\u0447\u0435\u043c\u0443?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b. \u041e\u043d \u0442\u0430\u043a\u0436\u0435 \u0443\u0434\u0430\u043b\u0438\u0442 \u0432\u0430\u0448 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0438 CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["\u041d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043f\u0435\u0440\u0435\u0434 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u043c \u043d\u043e\u0432\u043e\u0433\u043e."],"Existing Site Import Detected":["\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0438\u043c\u043f\u043e\u0440\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430"],"Restoring theme options":["\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0442\u0435\u043c\u044b"],"New URL":["\u041d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 URL"],"Old URL":["\u0421\u0442\u0430\u0440\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["\u042d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Elementor, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0412\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c URL-\u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439."],"Additional Cleanup":["\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0430"],"This site uses the following plugins.":["\u042d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b."],"Installing plugins":["\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432"],"Activating plugins":["\u0410\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432"],"Importing widgets":["\u0418\u043c\u043f\u043e\u0440\u0442 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432"],"Importing site options":["\u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0430\u0439\u0442\u0430"],"Importing content":["\u0418\u043c\u043f\u043e\u0440\u0442 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430"],"None":["\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"],"Import":["\u0418\u043c\u043f\u043e\u0440\u0442"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2021-04-23 12:51:19+0000","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"sv_SE","plural-forms":"nplurals=2; plural=n != 1;"},"Active Elements":["Aktiva element"],"All Elements":["Alla element"]}}} {"translation-revision-date":"2022-09-11 13:55:08+0000","generator":"WP-CLI\/2.6.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"sv_SE","plural-forms":"nplurals=2; plural=n != 1;"},"Active Elements":["Aktiva element"],"All Elements":["Alla element"]}}}

View File

@ -1 +1 @@
{"translation-revision-date":"2021-04-23 12:51:19+0000","generator":"WP-CLI\/2.4.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"sv_SE","plural-forms":"nplurals=2; plural=n != 1;"},"Note: We do our best to ensure all imported images are licensed for open use. However, image licenses can change, so we strongly advise that you replace all imported images with your own.":[""],"Check out your new site and start making it yours!":["Kolla in din nya webbplats och b\u00f6rja g\u00f6ra den till din egen!"],"Learn more here":["L\u00e4r dig mer h\u00e4r"],"To disable it, find WP_DEBUG in your wp-config.php file and set it to false like the below.":["F\u00f6r att inaktivera den, hitta WP_DEBUG i din wp-config.php-fil och st\u00e4ll in den p\u00e5 falsk som nedan."],"WordPress debug mode is currently enabled. With this, any errors from third-party plugins might affect the import process.":[""],"Debug Mode Enabled":["Fels\u00f6kningsl\u00e4ge aktiverat"],"Preview mobile":["F\u00f6rhandsgranska mobil"],"Preview tablet":["F\u00f6rhandsgranska surfplatta"],"Preview desktop":["F\u00f6rhandsgranska station\u00e4r dator"],"Elementor Tools":["Elementor-verktyg"],"Take note of the old and new URLs below, then head over to the Elementor Tools area to replace them.":[""],"Begin Import":[""],"I understand":["Jag f\u00f6rst\u00e5r"],"Confirm Import":["Bekr\u00e4fta import"],"Import Demo Content":["Importera demoinneh\u00e5ll"],"This will install and activate needed plugins, import demo content, and import site options.":["Detta kommer att installera och aktivera n\u00f6dv\u00e4ndiga till\u00e4gg, importera demo-inneh\u00e5ll och importera webbplatsalternativ."],"Import Theme Options":["Importera temaalternativ"],"This will import the options from the Customizer.":["Detta importerar alternativen fr\u00e5n anpassaren."],"These plugins need to be installed manually.":["Dessa till\u00e4gg m\u00e5ste installeras manuellt."],"These plugins are already installed.":["Dessa till\u00e4gg \u00e4r redan installerade."],"These plugins can be installed automatically.":["Dessa till\u00e4gg kan installeras automatiskt."],"Gathering information":[""],"Refresh sites":["Uppdatera webbplatser"],"Requires GP Premium %s.":["Kr\u00e4ver GP Premium %s."],"Page Builder":[""],"Category":["Kategori"],"No thanks":["Nej tack"],"Remove imported site":["Ta bort importerad webbplats"],"This process makes changes to your website. If it contains important data, we suggest backing it up before proceeding.":[""],"Try again":["F\u00f6rs\u00f6k igen"],"No sites were found.":["Inga webbplatser hittades."],"Restoring content":["\u00c5terst\u00e4ller inneh\u00e5ll"],"Installing %s":["Installerar %s"],"Import Complete":["Import slutf\u00f6rd"],"Importing theme options":["Importerar temaalternativ"],"Why?":["Varf\u00f6r?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Denna process \u00e5terst\u00e4ller dina f\u00f6reg\u00e5ende alternativ, widgetar och aktiva till\u00e4gg. Det tar ocks\u00e5 bort ditt importerade inneh\u00e5ll och CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["Det rekommenderas starkt att du tar bort den senaste webbplatsen du importerade innan du importerar en ny."],"Existing Site Import Detected":["Befintlig webbplatsimport uppt\u00e4ckt"],"Restoring theme options":["\u00c5terst\u00e4ller temalternativ"],"New URL":["Ny URL"],"Old URL":["Gammal URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Denna webbplats anv\u00e4nder Elementor vilket inneb\u00e4r att du beh\u00f6ver ers\u00e4tta de importerade bild-URL:erna."],"Additional Cleanup":["Ytterligare upprensning"],"This site uses the following plugins.":["Denna webbplats anv\u00e4nder f\u00f6ljande till\u00e4gg."],"All":["Alla"],"View Site":["Visa webbplats"],"Get Started":["Komma ig\u00e5ng"],"Plugins":["Till\u00e4gg"],"Installing plugins":["Installerar till\u00e4gg"],"Activating plugins":["Aktiverar till\u00e4gg"],"Importing widgets":["Importerar widgetar"],"Importing site options":["Importerar webbplatsalternativ"],"Importing content":["Importerar inneh\u00e5ll"],"None":["Ingen"],"Import":["Importera"]}}} {"translation-revision-date":"2022-09-11 13:55:08+0000","generator":"WP-CLI\/2.6.0","source":"dist\/site-library.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"sv_SE","plural-forms":"nplurals=2; plural=n != 1;"},"Requires GeneratePress %s.":[""],"Built by":["Byggd med"],"Note: We do our best to ensure all imported images are licensed for open use. However, image licenses can change, so we strongly advise that you replace all imported images with your own.":[""],"Check out your new site and start making it yours!":["Kolla in din nya webbplats och b\u00f6rja g\u00f6ra den till din egen!"],"Learn more here":["L\u00e4r dig mer h\u00e4r"],"To disable it, find WP_DEBUG in your wp-config.php file and set it to false like the below.":["F\u00f6r att inaktivera den, hitta WP_DEBUG i din wp-config.php-fil och st\u00e4ll in den p\u00e5 falsk som nedan."],"WordPress debug mode is currently enabled. With this, any errors from third-party plugins might affect the import process.":["WordPress fels\u00f6kningsl\u00e4ge \u00e4r f\u00f6r n\u00e4rvarande aktiverat. Med detta kan eventuella fel fr\u00e5n till\u00e4gg fr\u00e5n tredje part p\u00e5verka importprocessen."],"Debug Mode Enabled":["Fels\u00f6kningsl\u00e4ge aktiverat"],"Preview mobile":["F\u00f6rhandsgranska mobil"],"Preview tablet":["F\u00f6rhandsgranska surfplatta"],"Preview desktop":["F\u00f6rhandsgranska station\u00e4r dator"],"Elementor Tools":["Elementor-verktyg"],"Take note of the old and new URLs below, then head over to the Elementor Tools area to replace them.":[""],"Begin Import":["Starta import"],"I understand":["Jag f\u00f6rst\u00e5r"],"Confirm Import":["Bekr\u00e4fta import"],"Import Demo Content":["Importera demoinneh\u00e5ll"],"This will install and activate needed plugins, import demo content, and import site options.":["Detta kommer att installera och aktivera n\u00f6dv\u00e4ndiga till\u00e4gg, importera demo-inneh\u00e5ll och importera webbplatsalternativ."],"Import Theme Options":["Importera temaalternativ"],"This will import the options from the Customizer.":["Detta importerar alternativen fr\u00e5n anpassaren."],"These plugins need to be installed manually.":["Dessa till\u00e4gg m\u00e5ste installeras manuellt."],"These plugins are already installed.":["Dessa till\u00e4gg \u00e4r redan installerade."],"These plugins can be installed automatically.":["Dessa till\u00e4gg kan installeras automatiskt."],"Gathering information":["Samlar information"],"Refresh sites":["Uppdatera webbplatser"],"Requires GP Premium %s.":["Kr\u00e4ver GP Premium %s."],"Page Builder":["Sidbyggare"],"Category":["Kategori"],"No thanks":["Nej tack"],"Remove imported site":["Ta bort importerad webbplats"],"This process makes changes to your website. If it contains important data, we suggest backing it up before proceeding.":["Denna process g\u00f6r \u00e4ndringar p\u00e5 din webbplats. Om den inneh\u00e5ller viktiga data f\u00f6resl\u00e5r vi att du s\u00e4kerhetskopierar den innan du forts\u00e4tter."],"Try again":["F\u00f6rs\u00f6k igen"],"No sites were found.":["Inga webbplatser hittades."],"Restoring content":["\u00c5terst\u00e4ller inneh\u00e5ll"],"Installing %s":["Installerar %s"],"Import Complete":["Import slutf\u00f6rd"],"Importing theme options":["Importerar temaalternativ"],"Why?":["Varf\u00f6r?"],"This process restores your previous options, widgets and active plugins. It will also remove your imported content and CSS.":["Denna process \u00e5terst\u00e4ller dina f\u00f6reg\u00e5ende alternativ, widgetar och aktiva till\u00e4gg. Det tar ocks\u00e5 bort ditt importerade inneh\u00e5ll och CSS."],"It is highly recommended that you remove the last site you imported before importing a new one.":["Det rekommenderas starkt att du tar bort den senaste webbplatsen du importerade innan du importerar en ny."],"Existing Site Import Detected":["Befintlig webbplatsimport uppt\u00e4ckt"],"Restoring theme options":["\u00c5terst\u00e4ller temalternativ"],"New URL":["Ny URL"],"Old URL":["Gammal URL"],"This site is using Elementor which means you will want to replace the imported image URLs.":["Denna webbplats anv\u00e4nder Elementor vilket inneb\u00e4r att du beh\u00f6ver ers\u00e4tta de importerade bild-URL:erna."],"Additional Cleanup":["Ytterligare upprensning"],"This site uses the following plugins.":["Denna webbplats anv\u00e4nder f\u00f6ljande till\u00e4gg."],"All":["Alla"],"View Site":["Visa webbplats"],"Get Started":["Komma ig\u00e5ng"],"Plugins":["Till\u00e4gg"],"Installing plugins":["Installerar till\u00e4gg"],"Activating plugins":["Aktiverar till\u00e4gg"],"Importing widgets":["Importerar widgetar"],"Importing site options":["Importerar webbplatsalternativ"],"Importing content":["Importerar inneh\u00e5ll"],"None":["Ingen"],"Import":["Importera"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-09-11 13:55:08+0000","generator":"WP-CLI\/2.6.0","source":"dist\/dashboard.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"sv_SE","plural-forms":"nplurals=2; plural=n != 1;"},"This will delete all of your customizer settings. It cannot be undone.":[""],"Reset your customizer settings.":["\u00c5terst\u00e4ll dina inst\u00e4llningar f\u00f6r anpassaren."],"Options imported.":["Alternativ importerade."],"This can overwrite existing settings and cannot be undone.":["Detta kan skriva \u00f6ver befintliga inst\u00e4llningar och kan inte \u00e5ngras."],"Import your customizer settings.":["Importera dina inst\u00e4llningar f\u00f6r anpassaren."],"Global Colors":["Globala f\u00e4rger"],"Export your customizer settings.":["Exportera dina inst\u00e4llningar f\u00f6r anpassaren."],"Import \/ Export":["Import\/export"],"License key deactivated.":["Licensnyckel inaktiverad."],"License key activated.":["Licensnyckel aktiverad."],"Get alpha and beta updates directly to your Dashboard.":[""],"Enter your license key to activate updates.":["Ange din licensnyckel f\u00f6r att aktivera uppdateringar."],"Not receiving premium updates.":["Tar inte emot premiumuppdateringar."],"Receiving premium updates.":["Tar emot premiumuppdateringar."],"Options exported":["Alternativ exporterad"],"This will delete all settings for this module. It cannot be undone.":["Detta kommer ta bort alla inst\u00e4llningar f\u00f6r denna modul. Det kan inte \u00e5ngras."],"Open tools for this module.":["\u00d6ppna verktyg f\u00f6r denna modul."],"Open Elements":["\u00d6ppna element"],"Open Site Library":["\u00d6ppna webbplatsbibliotek"],"Settings reset.":["Inst\u00e4llningar \u00e5terst\u00e4lls."],"Typography":["Typografi"],"All":["Alla"],"Reset":["\u00c5terst\u00e4ll"],"Modules":["Moduler"],"License Key":["Licensnyckel"],"Deactivate":["Inaktivera"],"Activate":["Aktivera"],"This module has been deprecated. Deactivating it will remove it from this list.":["Denna modul har tagits ur bruk. Vid inaktivering kommer den att tas bort fr\u00e5n denna lista."],"Import":["Importera"],"Export":["Exportera"]}}}

View File

@ -0,0 +1 @@
{"translation-revision-date":"2022-09-11 13:55:08+0000","generator":"WP-CLI\/2.6.0","source":"dist\/customizer.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"sv_SE","plural-forms":"nplurals=2; plural=n != 1;"},"Related\/Upsell Product Titles":["Produktrubriker f\u00f6r relaterad\/merf\u00f6rs\u00e4ljning"],"Catalog Product Titles":[""],"Off-Canvas Sub-Menu Items":[""],"Off-Canvas Menu Items":[""],"Secondary Mobile Menu Toggle":[""],"Secondary Sub-Menu Items":[""],"Secondary Menu Items":["Sekund\u00e4ra menyalternativ"],"Off-Canvas Panel":[""],"WooCommerce":["WooCommerce"],"Secondary Navigation":["Sekund\u00e4r navigation"]}}}

View File

@ -16,6 +16,7 @@
z-index: 9999; z-index: 9999;
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch; /* enables momentum scrolling in iOS overflow elements */ -webkit-overflow-scrolling: touch; /* enables momentum scrolling in iOS overflow elements */
visibility: hidden;
} }
/* Left off-canvas elements default status: out of the page */ /* Left off-canvas elements default status: out of the page */

File diff suppressed because one or more lines are too long

View File

@ -800,7 +800,7 @@ if ( ! function_exists( 'generate_menu_plus_enqueue_js' ) ) {
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
if ( ( 'false' !== $settings['sticky_menu'] ) || ( 'enable' === $settings['mobile_header'] && 'enable' === $settings['mobile_header_sticky'] ) ) { if ( ( 'false' !== $settings['sticky_menu'] ) || ( 'enable' === $settings['mobile_header'] && 'enable' === $settings['mobile_header_sticky'] ) ) {
wp_enqueue_script( 'generate-sticky', plugin_dir_url( __FILE__ ) . "js/sticky{$suffix}.js", array( 'jquery' ), GENERATE_MENU_PLUS_VERSION, true ); wp_enqueue_script( 'generate-sticky', plugin_dir_url( __FILE__ ) . "js/sticky{$suffix}.js", array( 'jquery-core' ), GENERATE_MENU_PLUS_VERSION, true );
} }
if ( 'false' !== $settings['slideout_menu'] ) { if ( 'false' !== $settings['slideout_menu'] ) {
@ -1145,7 +1145,7 @@ if ( ! function_exists( 'generate_slideout_navigation' ) ) {
} }
?> ?>
<nav id="generate-slideout-menu" class="main-navigation slideout-navigation<?php echo esc_attr( $overlay ); ?>" <?php echo $microdata; // phpcs:ignore -- No escaping needed. ?> style="display: none;"> <nav id="generate-slideout-menu" class="main-navigation slideout-navigation<?php echo esc_attr( $overlay ); ?>" <?php echo $microdata; // phpcs:ignore -- No escaping needed. ?> style="display: none;" aria-hidden>
<div class="inside-navigation grid-container grid-parent"> <div class="inside-navigation grid-container grid-parent">
<?php <?php
do_action( 'generate_inside_slideout_navigation' ); do_action( 'generate_inside_slideout_navigation' );
@ -2289,3 +2289,26 @@ function generate_menu_plus_typography_selectors( $selector ) {
return $selector; return $selector;
} }
add_filter( 'generate_parse_attr', 'generate_set_off_canvas_toggle_attributes', 20, 2 );
/**
* Add attributes to our menu-toggle element when using the Off Canvas panel.
*
* @since 2.2.0
* @param array $attributes The current attributes.
* @param string $context The context in which attributes are applied.
*/
function generate_set_off_canvas_toggle_attributes( $attributes, $context ) {
if ( 'menu-toggle' === $context ) {
$settings = wp_parse_args(
get_option( 'generate_menu_plus_settings', array() ),
generate_menu_plus_get_defaults()
);
if ( 'mobile' === $settings['slideout_menu'] || 'both' === $settings['slideout_menu'] ) {
$attributes['aria-controls'] = 'generate-slideout-menu';
}
}
return $attributes;
}

View File

@ -505,22 +505,35 @@ var generateOffside = offside( '.slideout-navigation', {
slidingElementsSelector:'#slideout-container', slidingElementsSelector:'#slideout-container',
buttonsSelector: '.slideout-mobile .main-navigation .menu-toggle, .slideout-both .main-navigation .menu-toggle, .slideout-both .slideout-toggle, .slideout-desktop .slideout-toggle', buttonsSelector: '.slideout-mobile .main-navigation .menu-toggle, .slideout-both .main-navigation .menu-toggle, .slideout-both .slideout-toggle, .slideout-desktop .slideout-toggle',
slidingSide: offSide.side, slidingSide: offSide.side,
beforeOpen: function() {
// Turn on visibility so we can transition nicely.
document.querySelector( '.slideout-navigation' ).style.visibility = 'visible';
},
afterOpen: function() { afterOpen: function() {
document.documentElement.classList.add( 'slide-opened' ); document.documentElement.classList.add( 'slide-opened' );
document.body.classList.add( 'slide-opened' ); document.body.classList.add( 'slide-opened' );
// Get the first link so we can focus on it. if ( document.body.classList.contains( 'dropdown-hover' ) ) {
var slideoutMenu = document.querySelector( 'ul.slideout-menu' ); var dropdownItems = document.querySelector( '.slideout-navigation' ).querySelectorAll( 'li.menu-item-has-children' );
for ( var i = 0; i < dropdownItems.length; i++ ) {
var spanToggle = dropdownItems[i].querySelector( 'span.dropdown-menu-toggle' );
if ( slideoutMenu ) { if ( spanToggle ) {
var firstLink = slideoutMenu.firstChild.querySelector( 'a' ); spanToggle.setAttribute( 'tabindex', 0 );
spanToggle.setAttribute( 'role', 'button' );
if ( firstLink ) { spanToggle.setAttribute( 'aria-expanded', true );
setTimeout( function() {
firstLink.focus();
}, 200 );
} }
} }
}
// Focus the first focusable element.
var focusable = document.querySelector( '.slideout-navigation' ).querySelectorAll( 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' );
if ( focusable ) {
setTimeout( function() {
focusable[0].focus();
}, 200 );
}
}, },
afterClose: function() { afterClose: function() {
var body = document.body, var body = document.body,
@ -540,7 +553,7 @@ var generateOffside = offside( '.slideout-navigation', {
} }
if ( body.classList.contains( 'dropdown-hover' ) ) { if ( body.classList.contains( 'dropdown-hover' ) ) {
var dropdownItems = document.querySelector( '.main-navigation:not(.slideout-navigation)' ).querySelectorAll( 'li.menu-item-has-children' ); var dropdownItems = document.querySelector( '.main-navigation:not(.slideout-navigation):not(.mobile-menu-control-wrapper)' ).querySelectorAll( 'li.menu-item-has-children' );
for ( var i = 0; i < dropdownItems.length; i++ ) { for ( var i = 0; i < dropdownItems.length; i++ ) {
var spanToggle = dropdownItems[i].querySelector( 'span.dropdown-menu-toggle' ); var spanToggle = dropdownItems[i].querySelector( 'span.dropdown-menu-toggle' );
@ -551,6 +564,30 @@ var generateOffside = offside( '.slideout-navigation', {
} }
} }
} }
// Turn off visibility.
setTimeout( function() {
document.querySelector( '.slideout-navigation:not(.is-open)' ).style.visibility = '';
}, 500 );
// Focus our slideout toggle.
if ( window.document.documentElement.clientWidth <= 768 ) {
if ( body.classList.contains( 'slideout-mobile' ) || body.classList.contains( 'slideout-both' ) ) {
document.querySelectorAll( '.main-navigation:not(.slideout-navigation)' ).forEach( function( navigation ) {
if ( navigation && navigation.style.display !== 'none' ) {
navigation.querySelector( '.menu-toggle' ).focus();
}
} );
}
} else {
if ( body.classList.contains( 'slideout-desktop' ) || body.classList.contains( 'slideout-both' ) ) {
document.querySelectorAll( '.main-navigation:not(.slideout-navigation)' ).forEach( function( navigation ) {
if ( navigation && navigation.style.display !== 'none' ) {
navigation.querySelector( '.slideout-toggle a' ).focus();
}
} );
}
}
} }
} ); } );
@ -588,20 +625,9 @@ for ( var i = 0; i < slideoutLinks.length; i++ ) {
document.addEventListener( 'keyup', function( e ) { document.addEventListener( 'keyup', function( e ) {
if ( document.body.classList.contains( 'slide-opened' ) ) { if ( document.body.classList.contains( 'slide-opened' ) ) {
e = e || window.event; e = e || window.event;
if ( e.keyCode == 27 ) { if ( e.keyCode == 27 ) {
generateOffside.close(); generateOffside.close();
var body = document.body;
if ( window.document.documentElement.clientWidth <= 768 ) {
if ( body.classList.contains( 'slideout-mobile' ) || body.classList.contains( 'slideout-both' ) ) {
document.querySelector( '.main-navigation .menu-toggle' ).focus();
}
} else {
if ( body.classList.contains( 'slideout-desktop' ) || body.classList.contains( 'slideout-both' ) ) {
document.querySelector( '.slideout-toggle a' ).focus();
document.activeElement.blur();
}
}
} }
} }
} ); } );

File diff suppressed because one or more lines are too long

View File

@ -3,9 +3,9 @@ Contributors: edge22
Donate link: https://generatepress.com Donate link: https://generatepress.com
Tags: generatepress Tags: generatepress
Requires at least: 5.2 Requires at least: 5.2
Tested up to: 5.9 Tested up to: 6.1
Requires PHP: 5.6 Requires PHP: 5.6
Stable tag: 2.1.2 Stable tag: 2.2.0
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -27,6 +27,33 @@ In most cases, #1 will work fine and is way easier.
== Changelog == == Changelog ==
= 2.2.0 =
* Feature: Allow block element autosave
* Feature: Add revisions to block elements
* Feature: Add Loop Template block element
* Feature: Dont display the raw license key in the Dashboard
* Feature: Add "Paginated Results" to Element Display Rules
* Fix: Element post navigation template PHP warning when not using GB Pro
* Fix: Remove unnecessary zoom CSS from featured images
* Fix: Font icon CSS order
* Fix: Load more button showing in product tax archives
* Fix: Prevent tabbing in hidden off-canvas panel
* Fix: Hide hidden off-canvas panel from screen readers
* Fix: menu-toggle aria-controls when using off-canvas panel
* Fix: Focus first focusable element when opening off-canvas panel
* Fix: Focus slideout toggle when closing off-canvas panel
* Fix: Off-Canvas Panel sub-menu a11y
* Fix: Prevent secondary nav legacy typography CSS
* Fix: Fix dynamic term meta link
* Fix: Block margins in the block element editor
* Fix: Embeds in Block Elements
* Fix: Apply display rules to editor with no ID
* Fix: Navigation background image applying to secondary nav
* Fix: WooCommerce order received page float issue
* Fix: Block element editor error in GenerateBlocks 1.7
* Tweak: Remove jquery-migrate from sticky script
* Tweak: Add message in Blog section about Loop Template
= 2.1.2 = = 2.1.2 =
* Elements: Fix custom field value in dynamic container links * Elements: Fix custom field value in dynamic container links
* Elements: Fix block widths in the editor * Elements: Fix block widths in the editor

View File

@ -962,6 +962,11 @@ if ( ! function_exists( 'generate_secondary_nav_css' ) ) {
$separator = 20; $separator = 20;
} }
// Check if we're using our legacy typography system.
$using_dynamic_typography = function_exists( 'generate_is_using_dynamic_typography' ) && generate_is_using_dynamic_typography();
$secondary_nav_family = '';
if ( ! $using_dynamic_typography ) {
if ( function_exists( 'generate_get_font_family_css' ) ) { if ( function_exists( 'generate_get_font_family_css' ) ) {
$secondary_nav_family = generate_get_font_family_css( 'font_secondary_navigation', 'generate_secondary_nav_settings', generate_secondary_nav_get_defaults() ); $secondary_nav_family = generate_get_font_family_css( 'font_secondary_navigation', 'generate_secondary_nav_settings', generate_secondary_nav_get_defaults() );
} else { } else {
@ -971,15 +976,13 @@ if ( ! function_exists( 'generate_secondary_nav_css' ) ) {
if ( '""' === $secondary_nav_family ) { if ( '""' === $secondary_nav_family ) {
$secondary_nav_family = 'inherit'; $secondary_nav_family = 'inherit';
} }
}
// Get our untouched defaults. // Get our untouched defaults.
$og_defaults = generate_secondary_nav_get_defaults( false ); $og_defaults = generate_secondary_nav_get_defaults( false );
$css = new GeneratePress_Secondary_Nav_CSS(); $css = new GeneratePress_Secondary_Nav_CSS();
// Check if we're using our legacy typography system.
$using_dynamic_typography = function_exists( 'generate_is_using_dynamic_typography' ) && generate_is_using_dynamic_typography();
$css->set_selector( '.secondary-navigation' ); $css->set_selector( '.secondary-navigation' );
$css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_color'] ) ); $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_color'] ) );
$css->add_property( 'background-image', ! empty( $generate_settings['nav_image'] ) ? 'url(' . esc_url( $generate_settings['nav_image'] ) . ')' : '' ); $css->add_property( 'background-image', ! empty( $generate_settings['nav_image'] ) ? 'url(' . esc_url( $generate_settings['nav_image'] ) . ')' : '' );
@ -1004,10 +1007,13 @@ if ( ! function_exists( 'generate_secondary_nav_css' ) ) {
$css->set_selector( '.secondary-navigation .top-bar' ); $css->set_selector( '.secondary-navigation .top-bar' );
$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) ); $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) );
$css->add_property( 'line-height', absint( $generate_settings['secondary_menu_item_height'] ), false, 'px' ); $css->add_property( 'line-height', absint( $generate_settings['secondary_menu_item_height'] ), false, 'px' );
if ( ! $using_dynamic_typography ) {
$css->add_property( 'font-family', $secondary_nav_family ); $css->add_property( 'font-family', $secondary_nav_family );
$css->add_property( 'font-weight', esc_attr( $generate_settings['secondary_navigation_font_weight'] ) ); $css->add_property( 'font-weight', esc_attr( $generate_settings['secondary_navigation_font_weight'] ) );
$css->add_property( 'text-transform', esc_attr( $generate_settings['secondary_navigation_font_transform'] ) ); $css->add_property( 'text-transform', esc_attr( $generate_settings['secondary_navigation_font_transform'] ) );
$css->add_property( 'font-size', absint( $generate_settings['secondary_navigation_font_size'] ), false, 'px' ); $css->add_property( 'font-size', absint( $generate_settings['secondary_navigation_font_size'] ), false, 'px' );
}
$css->set_selector( '.secondary-navigation .top-bar a' ); $css->set_selector( '.secondary-navigation .top-bar a' );
$css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) ); $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) );

View File

@ -191,16 +191,16 @@ class GeneratePress_Site_Library_Rest extends WP_REST_Controller {
$data = wp_safe_remote_get( 'https://gpsites.co/wp-json/wp/v2/sites?per_page=100' ); $data = wp_safe_remote_get( 'https://gpsites.co/wp-json/wp/v2/sites?per_page=100' );
if ( is_wp_error( $data ) ) { if ( is_wp_error( $data ) ) {
update_option( 'generatepress_sites', 'no results' ); update_option( 'generatepress_sites', 'no results', false );
update_option( 'generatepress_sites_expiration', strtotime( '+5 minutes' ) ); update_option( 'generatepress_sites_expiration', strtotime( '+5 minutes' ), false );
return $this->failed( 'no results' ); return $this->failed( 'no results' );
} }
$data = json_decode( wp_remote_retrieve_body( $data ), true ); $data = json_decode( wp_remote_retrieve_body( $data ), true );
if ( ! is_array( $data ) ) { if ( ! is_array( $data ) ) {
update_option( 'generatepress_sites', 'no results' ); update_option( 'generatepress_sites', 'no results', false );
update_option( 'generatepress_sites_expiration', strtotime( '+5 minutes' ) ); update_option( 'generatepress_sites_expiration', strtotime( '+5 minutes' ), false );
return $this->failed( 'no results' ); return $this->failed( 'no results' );
} }
@ -224,8 +224,8 @@ class GeneratePress_Site_Library_Rest extends WP_REST_Controller {
); );
} }
update_option( 'generatepress_sites', $sites ); update_option( 'generatepress_sites', $sites, false );
update_option( 'generatepress_sites_expiration', strtotime( '+1 day' ) ); update_option( 'generatepress_sites_expiration', strtotime( '+1 day' ), false );
} }
$sites = apply_filters( 'generate_add_sites', $sites ); $sites = apply_filters( 'generate_add_sites', $sites );

View File

@ -124,7 +124,7 @@ jQuery( window ).on( 'load', function() {
} }
} ); } );
generate_spacing_live_update( 'one_container_post_content_bottom', 'content_bottom', '.one-container.archive .post:not(:last-child),.one-container.blog .post:not(:last-child)', 'padding-bottom' ); generate_spacing_live_update( 'one_container_post_content_bottom', 'content_bottom', '.one-container.archive .post:not(:last-child):not(.is-loop-template-item),.one-container.blog .post:not(:last-child):not(.is-loop-template-item)', 'padding-bottom' );
/* Mobile content padding */ /* Mobile content padding */
generate_spacing_live_update( 'mobile_content_top', 'mobile_content_top', content_areas, 'padding-top', false, false, gp_spacing.mobile ); generate_spacing_live_update( 'mobile_content_top', 'mobile_content_top', content_areas, 'padding-top', false, false, gp_spacing.mobile );

View File

@ -1273,3 +1273,12 @@ form.checkout:after {
.wc-menu-cart-activated .menu-toggle { .wc-menu-cart-activated .menu-toggle {
text-align: left; text-align: left;
} }
.woocommerce-order-received .woocommerce-customer-details .col2-set {
float: none;
width: auto;
}
.woocommerce-order-received .woocommerce-customer-details .col2-set .col-1 {
margin-bottom: 1.5em;
}

File diff suppressed because one or more lines are too long

View File

@ -40,6 +40,7 @@
<custom-fields> <custom-fields>
<custom-field action="translate">_generate_element_content</custom-field> <custom-field action="translate">_generate_element_content</custom-field>
<custom-field action="copy-once">_generate_element_type</custom-field> <custom-field action="copy-once">_generate_element_type</custom-field>
<custom-field action="copy-once">_generate_block_type</custom-field>
<custom-field action="copy-once">_generate_element_display_conditions</custom-field> <custom-field action="copy-once">_generate_element_display_conditions</custom-field>
<custom-field action="copy-once">_generate_element_exclude_conditions</custom-field> <custom-field action="copy-once">_generate_element_exclude_conditions</custom-field>
<custom-field action="copy-once">_generate_element_user_conditions</custom-field> <custom-field action="copy-once">_generate_element_user_conditions</custom-field>