Skip to content

Commit

Permalink
2.0.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Aug 9, 2018
1 parent e19b8d0 commit 18f96b1
Show file tree
Hide file tree
Showing 15 changed files with 307 additions and 246 deletions.
2 changes: 1 addition & 1 deletion assets/css/gd_core_frontend.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/gd_core_frontend.css.map

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions assets/css/partials/_search_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,44 @@ SIDEBAR STYLES



// suggestion box
.gd-suggestions-dropdown{
position: absolute;
background: #ffffff;
box-shadow: 0 21px 38px rgba(0,0,0,0.2);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-top: 1px solid #ccc;
z-index: 100;
width: 100%;
overflow-y: scroll;


ul{
margin: 0;
padding: 0;
list-style: none;
cursor: pointer;

li{
display: block;
width: 100%;
padding: 0 10px;
color: #505050;

&.gd-near-me{
color: #2196f3;
}

&:hover{
background: #03a9f436;
}

.fa-times{
float: right;
margin-top: 6px;
}
}
}
}

2 changes: 1 addition & 1 deletion assets/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/style.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/admin.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/geodirectory.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ v2.0.0.22
Business hours not taking into account daylight savings time (DST) - FIXED
Inline quick save resets the location to default - FIXED
Problems with permalinks that have no trialing slash - FIXED
Add category font icon & font icon color values in api response - ADDED
Added category font icon & font icon color values in api response - ADDED

v2.0.0.21
Some dummy category icons not updated to FA5 - FIXED
Expand Down
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 plugin for WordPress.
* Version: 2.0.0.21
* Version: 2.0.0.22
* Author: AyeCode Ltd
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand Down Expand Up @@ -60,7 +60,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.0.0.21';
public $version = '2.0.0.22';

/**
* GeoDirectory instance.
Expand Down
4 changes: 1 addition & 3 deletions includes/class-geodir-maps.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ public static function get_categories_filter( $cat_taxonomy, $cat_parent = 0, $h
}

$cat_terms = get_terms( array( 'taxonomy' => $cat_taxonomy, 'parent' => $cat_parent, 'exclude' => $exclude_cat_str, 'hide_empty ' => $hide_empty ) );

// print_r( $cat_terms );echo '###';


if ($hide_empty) {
$cat_terms = geodir_filter_empty_terms($cat_terms);
}
Expand Down
13 changes: 9 additions & 4 deletions includes/core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -919,15 +919,20 @@ function geodir_search_form_post_type_input() {
}else{
if(! empty( $post_types )){
$pt_arr = (array)$post_types;
echo '<input type="hidden" name="stype" value="' . key( $pt_arr ) . '" />';
$pt_slug = isset($pt_arr['rewrite']['slug']) ? esc_attr($pt_arr['rewrite']['slug']) : 'places';
echo '<input type="hidden" name="stype" value="' . key( $pt_arr ) . '" data-slug="'.$pt_slug.'" />';
}else{
echo '<input type="hidden" name="stype" value="gd_place" />';
echo '<input type="hidden" name="stype" value="gd_place" data-slug="places"/>';
}

}

}elseif ( ! empty( $post_types ) ) {
echo '<input type="hidden" name="stype" value="gd_place" />';
$pt_arr = (array)$post_types;
$key = key( $pt_arr);
$pt_arr = (array)$pt_arr[$key];
$pt_slug = isset($pt_arr->rewrite->slug) ? esc_attr($pt_arr->rewrite->slug) : 'places';
echo '<input type="hidden" name="stype" value="gd_place" data-slug="'.$pt_slug.'" />';
}
}

Expand All @@ -942,7 +947,7 @@ function geodir_search_form_search_input() {
?>
<div class='gd-search-input-wrapper gd-search-field-search'>
<?php do_action('geodir_before_search_for_input');?>
<input class="search_text" name="s"
<input class="search_text gd_search_text" name="s"
value="<?php if ( isset( $_REQUEST['s'] ) && trim( $_REQUEST['s'] ) != '' ) {
$search_term = esc_attr( stripslashes_deep( $_REQUEST['s'] ) );
echo str_replace(array("%E2%80%99",""),array("%27","'"),$search_term);// apple suck
Expand Down
2 changes: 1 addition & 1 deletion includes/location-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function geodir_location_name_from_slug($slug,$type){
* @return bool|string
*/
function geodir_get_location_link($which_location = 'current') {
$location_link = get_permalink(geodir_location_page_id());
$location_link = trailingslashit( get_permalink(geodir_location_page_id()) );

if ($which_location == 'base') {
return $location_link;
Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
Loading

0 comments on commit 18f96b1

Please sign in to comment.