Skip to content

Commit

Permalink
2.3.66
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Jul 17, 2024
1 parent bd21b8a commit 58cf71b
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 108 deletions.
4 changes: 2 additions & 2 deletions geodirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: GeoDirectory
* Plugin URI: https://wpgeodirectory.com/
* Description: GeoDirectory - Business Directory Plugin for WordPress.
* Version: 2.3.65
* Version: 2.3.66
* Author: AyeCode - WP Business Directory Plugins
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand All @@ -34,7 +34,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.3.65';
public $version = '2.3.66';

/**
* GeoDirectory instance.
Expand Down
90 changes: 40 additions & 50 deletions includes/class-geodir-defaults.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions includes/class-geodir-template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static function init() {
* @param $post_ID
* @param $post_after
* @param $post_before
* @todo we will need ot updated this for block themes
*/
public static function set_clear_list_view_storage($post_ID, $post_after, $post_before){
if($post_after->post_type=='page' && has_shortcode( $post_after->post_content, 'gd_loop' ) ){
Expand Down
7 changes: 7 additions & 0 deletions includes/widgets/class-geodir-widget-loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,17 @@ public function output( $args = array(), $widget_args = array(), $content = '' )
} elseif ( geodir_is_page( 'search' ) && ! isset( $_REQUEST['geodir_search'] ) ) {
geodir_no_listings_found();
} else {

// Check we are not inside a template builder container
if ( isset( $wp_query->posts[0] ) && $wp_query->posts[0]->post_type == 'page' ) {
// Reset the query count so the correct number of listings are output.
rewind_posts();

// Reset the proper loop content
if ( isset( $wp_query->posts[0] ) && $wp_query->posts[0]->post_type == 'page' && geodir_is_page('search') ) {
return ob_get_clean();
}

// Reset the proper loop content
global $wp_query, $gd_temp_wp_query;

Expand Down
6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://wpgeodirectory.com
Tags: business directory, listings, directory plugin, classifieds, directory
Requires at least: 4.5
Tested up to: 6.6
Stable tag: 2.3.65
Stable tag: 2.3.66
Requires PHP: 5.6
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -317,9 +317,11 @@ We don't offer free trials, but we have a 30-day money-back guarantee if you are

__WARNING: GDv2 is a significant update over GDv1 and may require manual work, such as adding widgets to sidebars to recreate your current layout. As always, we recommend trying this on a staging site first. [Learn more](https://docs.wpgeodirectory.com/article/260-upgrading-from-gdv1-to-gdv2)__

= GeoDirectory v2.3.65 - 2024-07-17 =
= GeoDirectory v2.3.66 - 2024-07-17 =
* non FSE themes can fail to render new blocks - FIXED
* Image attribute in schema shows location when private address is enabled - FIXED
* More block theme template updates for new block rendering system - CHANGED
* GD Search page not rendering on some themes with new block rendering system - FIXED

= GeoDirectory v2.3.64 - 2024-07-16 =
* GD > Dynamic Content keys added for logged in, logged out, post author, user roles etc - ADDED
Expand Down
10 changes: 4 additions & 6 deletions templates/bootstrap/block-templates/gd-add-listing.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:geodirectory/geodir-widget-notifications -->
<div class="wp-block-geodirectory-geodir-widget-notifications">[gd_notifications]</div>
<!-- /wp:geodirectory/geodir-widget-notifications -->
<!-- wp:geodirectory/geodir-widget-notifications {"content":"","sd_shortcode":"[gd_notifications]","className":"wp-block-geodirectory-geodir-widget-notifications"} /-->

<!-- wp:geodirectory/geodir-widget-add-listing {"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-add-listing">[gd_add_listing post_type='' show_login='true' login_msg='' container='' mapzoom='0' label_type='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-add-listing {"content":"","sd_shortcode":"[gd_add_listing post_type='' show_login='true' login_msg='' container='' mapzoom='0' label_type='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-add-listing"></div>
<!-- /wp:geodirectory/geodir-widget-add-listing -->

<!-- wp:template-part {"slug":"footer"} /-->
<!-- wp:template-part {"slug":"footer"} /-->
22 changes: 10 additions & 12 deletions templates/bootstrap/block-templates/gd-archive.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:geodirectory/geodir-widget-notifications -->
<div class="wp-block-geodirectory-geodir-widget-notifications">[gd_notifications]</div>
<!-- /wp:geodirectory/geodir-widget-notifications -->
<!-- wp:geodirectory/geodir-widget-notifications {"content":"","sd_shortcode":"[gd_notifications]","className":"wp-block-geodirectory-geodir-widget-notifications"} /-->

<!-- wp:geodirectory/geodir-widget-search {"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-search">[gd_search post_type='' post_type_hide='false' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-search {"content":"","sd_shortcode":"[gd_search hide_search_input='false' hide_near_input='false' input_size='' bar_flex_wrap='' bar_flex_wrap_md='' bar_flex_wrap_lg='' input_border='' input_border_opacity='' input_rounded_size='' btn_bg='' btn_rounded_size='' btn_rounded_size_md='' btn_rounded_size_lg='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' rounded_size_md='' rounded_size_lg='' shadow='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-search"></div>
<!-- /wp:geodirectory/geodir-widget-search -->

<!-- wp:geodirectory/geodir-widget-loop-actions {"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-loop-actions">[gd_loop_actions hide_layouts='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-loop-actions {"content":"","sd_shortcode":"[gd_loop_actions hide_layouts='' btn_size='' btn_style='' btn_bg='' btn_border='' text_color='' text_align='' text_align_md='' text_align_lg='' bg='' mt='' mr='' mb='3' ml='' mt_md='' mr_md='' mb_md='' ml_md='' mt_lg='' mr_lg='' mb_lg='' ml_lg='' pt='' pr='' pb='' pl='' pt_md='' pr_md='' pb_md='' pl_md='' pt_lg='' pr_lg='' pb_lg='' pl_lg='' border='' border_type='' border_width='' border_opacity='' rounded='' rounded_size='' shadow='' display='' display_md='' display_lg='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-loop-actions"></div>
<!-- /wp:geodirectory/geodir-widget-loop-actions -->

<!-- wp:geodirectory/geodir-widget-loop {"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-loop">[gd_loop layout='2' row_gap='' column_gap='' card_border='' card_shadow='' bg='' mt='' mr='' mb='' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-loop {"content":"","sd_shortcode":"[gd_loop layout='2' row_gap='' column_gap='' card_border='' card_shadow='' bg='' mt='' mr='' mb='' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' template_type='' tmpl_page='' tmpl_part='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-loop"></div>
<!-- /wp:geodirectory/geodir-widget-loop -->

<!-- wp:geodirectory/geodir-widget-loop-paging {"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-loop-paging">[gd_loop_paging show_advanced='' mid_size='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-loop-paging {"content":"","sd_shortcode":"[gd_loop_paging show_advanced='' mid_size='' mid_size_sm='' paging_style='' size='' size_sm='' ap_text_color='' ap_font_size='' ap_pt='' ap_pr='' ap_pb='' ap_pl='' bg='' mt='' mr='' mb='3' ml='' mt_md='' mr_md='' mb_md='' ml_md='' mt_lg='' mr_lg='' mb_lg='' ml_lg='' pt='' pr='' pb='' pl='' pt_md='' pr_md='' pb_md='' pl_md='' pt_lg='' pr_lg='' pb_lg='' pl_lg='' border='' border_type='' border_width='' border_opacity='' rounded='' rounded_size='' shadow='' display='' display_md='' display_lg='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-loop-paging"></div>
<!-- /wp:geodirectory/geodir-widget-loop-paging -->

<!-- wp:template-part {"slug":"footer"} /-->
<!-- wp:template-part {"slug":"footer"} /-->
22 changes: 10 additions & 12 deletions templates/bootstrap/block-templates/gd-location.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:geodirectory/geodir-widget-notifications -->
<div class="wp-block-geodirectory-geodir-widget-notifications">[gd_notifications]</div>
<!-- /wp:geodirectory/geodir-widget-notifications -->
<!-- wp:geodirectory/geodir-widget-notifications {"content":"","sd_shortcode":"[gd_notifications]","className":"wp-block-geodirectory-geodir-widget-notifications"} /-->

<!-- wp:geodirectory/geodir-widget-categories {"hide_empty":true,"design_type":"icon-top","icon_size":"box-medium","content":""} -->
<div class="wp-block-geodirectory-geodir-widget-categories">[gd_categories title='' post_type='0' cpt_title='false' title_tag='h4' cpt_ajax='false' filter_ids='' hide_empty='true' hide_count='false' hide_icon='false' use_image='false' image_size='medium' cpt_left='false' sort_by='count' max_level='1' max_count='all' max_count_child='all' no_cpt_filter='false' no_cat_filter='false' widget_title_tag='' widget_title_size_class='' widget_title_align_class='' widget_title_color_class='' widget_title_border_class='' widget_title_border_color_class='' widget_title_mt_class='' widget_title_mr_class='' widget_title_mb_class='' widget_title_ml_class='' widget_title_pt_class='' widget_title_pr_class='' widget_title_pb_class='' widget_title_pl_class='' design_type='icon-top' row_items='' row_positioning='' card_padding_inside='' card_color='' card_shadow='' icon_color='' icon_size='box-medium' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-categories {"hide_empty":true,"content":"","sd_shortcode":"[gd_categories title='' widget_title_tag='' widget_title_size_class='' widget_title_align_class='' widget_title_color_class='' widget_title_border_class='' widget_title_border_color_class='' widget_title_mt_class='' widget_title_mr_class='' widget_title_mb_class='' widget_title_ml_class='' widget_title_pt_class='' widget_title_pr_class='' widget_title_pb_class='' widget_title_pl_class='' post_type='0' cpt_ajax='false' filter_ids='' hide_empty='true' max_level='1' max_count='all' max_count_child='all' no_cpt_filter='false' no_cat_filter='false' sort_by='count' design_type='' row_items='' row_positioning='' card_padding_inside='' card_color='' card_shadow='' hide_icon='false' use_image='false' image_size='medium' icon_color='' icon_size='' cat_text_color='' cat_text_color_custom='' cat_font_size='' cat_font_size_custom='' cat_font_weight='' cat_font_case='' hide_count='false' badge_position='' badge_color='light' badge_text_append='light' badge_text_color='' badge_text_color_custom='' badge_font_size='' badge_font_size_custom='' badge_font_weight='' badge_font_case='' cpt_title='false' title_tag='h4' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-categories"></div>
<!-- /wp:geodirectory/geodir-widget-categories -->

<!-- wp:geodirectory/geodir-widget-map {"show_advanced":true,"height":"425px","map_type":"directory","search_filter":true,"post_type_filter":true,"cat_filter":true,"child_collapse":true,"mb":"4"} -->
<div class="wp-block-geodirectory-geodir-widget-map">[gd_map title='' width='100%' height='425px' maptype='ROADMAP' zoom='0' map_type='directory' post_settings='true' post_type='' terms='' tick_terms='' tags='' all_posts='false' post_id='' search_filter='true' post_type_filter='true' cat_filter='true' child_collapse='true' map_directions='false' scrollwheel='false' sticky='false' static='false' bg='' mt='' mr='' mb='4' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' country='' region='' city='' neighbourhood='' ]</div>
<!-- wp:geodirectory/geodir-widget-map {"show_advanced":true,"map_type":"directory","search_filter":true,"post_type_filter":true,"cat_filter":true,"child_collapse":true,"content":"","sd_shortcode":"[gd_map title='' map_type='directory' post_settings='true' post_type='' terms='' tick_terms='' tags='' all_posts='false' post_id='' search_filter='true' post_type_filter='true' cat_filter='true' child_collapse='true' map_directions='false' scrollwheel='false' hide_zoom_control='false' hide_street_control='false' sticky='false' static='false' width='100%' height='425px' maptype='ROADMAP' zoom='0' bg='' mt='' mr='' mb='' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-map"></div>
<!-- /wp:geodirectory/geodir-widget-map -->

<!-- wp:geodirectory/geodir-widget-search {"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-search">[gd_search post_type='' post_type_hide='false' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' ]</div>
<!-- wp:geodirectory/geodir-widget-search {"content":"","sd_shortcode":"[gd_search hide_search_input='false' hide_near_input='false' input_size='' bar_flex_wrap='' bar_flex_wrap_md='' bar_flex_wrap_lg='' input_border='' input_border_opacity='' input_rounded_size='' btn_bg='' btn_rounded_size='' btn_rounded_size_md='' btn_rounded_size_lg='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' rounded_size_md='' rounded_size_lg='' shadow='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-search"></div>
<!-- /wp:geodirectory/geodir-widget-search -->

<!-- wp:geodirectory/geodir-widget-listings {"post_limit":6,"content":""} -->
<div class="wp-block-geodirectory-geodir-widget-listings">[gd_listings title='' post_type='gd_place' category='' related_to='' tags='' post_author='' post_limit='6' post_ids='' package_ids='' add_location_filter='true' show_featured_only='false' show_special_only='false' with_pics_only='false' with_videos_only='false' show_favorites_only='false' favorites_by_user='' use_viewing_post_type='false' use_viewing_term='false' sort_by='' title_tag='h3' layout='2' view_all_link='true' with_pagination='false' top_pagination='false' bottom_pagination='true' pagination_info='' hide_if_empty='false' row_gap='' column_gap='' card_border='' card_shadow='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' with_carousel='' with_indicators='' with_controls='' slide_interval='5' slide_ride='' linked_posts='' linked_post_id='' country='' region='' city='' neighbourhood='' ]</div>
<!-- wp:geodirectory/geodir-widget-listings {"post_limit":6,"content":"","sd_shortcode":"[gd_listings title='' widget_title_tag='' widget_title_size_class='' widget_title_align_class='' widget_title_color_class='' widget_title_border_class='' widget_title_border_color_class='' widget_title_mt_class='' widget_title_mr_class='' widget_title_mb_class='' widget_title_ml_class='' widget_title_pt_class='' widget_title_pr_class='' widget_title_pb_class='' widget_title_pl_class='' hide_if_empty='false' post_type='gd_place' category='' related_to='' tags='' post_author='' post_limit='6' post_ids='' add_location_filter='true' nearby_gps='false' show_featured_only='false' show_special_only='false' with_pics_only='false' with_videos_only='false' show_favorites_only='false' favorites_by_user='' use_viewing_post_type='false' use_viewing_term='false' sort_by='' title_tag='h3' layout='2' view_all_link='true' with_pagination='false' top_pagination='false' bottom_pagination='true' pagination_info='' template_type='' tmpl_page='' tmpl_part='' row_gap='' column_gap='' card_border='' card_shadow='' with_carousel='' with_indicators='' indicators_mb='' with_controls='' slide_interval='5' slide_ride='' center_slide='' bg='' mt='' mr='' mb='3' ml='' pt='' pr='' pb='' pl='' border='' rounded='' rounded_size='' shadow='' css_class='' ]"} -->
<div class="wp-block-geodirectory-geodir-widget-listings"></div>
<!-- /wp:geodirectory/geodir-widget-listings -->

<!-- wp:template-part {"slug":"footer"} /-->
<!-- wp:template-part {"slug":"footer"} /-->
Loading

0 comments on commit 58cf71b

Please sign in to comment.