Skip to content

Commit

Permalink
2.0.0.55
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Apr 5, 2019
1 parent 5e1d0fa commit 3fd0a7a
Show file tree
Hide file tree
Showing 23 changed files with 241 additions and 122 deletions.
2 changes: 1 addition & 1 deletion assets/css/admin.css

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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.

5 changes: 5 additions & 0 deletions assets/css/partials/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,9 @@
.geodir-text-aligncenter{
text-align: center;

}

.gd-position-absolute{
position: absolute;
z-index: 1;
}
7 changes: 6 additions & 1 deletion assets/css/partials/_listings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ body { // wrapping ina body tag makes rules more specific
display: inline-block;
width: 30%;
//margin-right: 3%;
padding-right: 3%;
//padding-right: 3%;
float: left;
position: relative;
overflow: hidden;

.geodir-post-img {
box-sizing: border-box;
Expand Down Expand Up @@ -95,6 +97,9 @@ body { // wrapping ina body tag makes rules more specific
vertical-align: top;
width: 67%;
float: left;
position: relative;
overflow: hidden;
padding-left: 3%;

.geodir-post-info {
font-size: 12px;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/partials/_ratings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
font-size: 16px;

img{
width: 20%; // if we have 5* system
// width: 20%; // if we have 5* system
}
}

Expand Down
1 change: 1 addition & 0 deletions assets/css/partials/_reviews.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
padding: 0;
margin: 0;
text-align: justify;
clear: both;

&>li{
margin: 10px 0;
Expand Down
3 changes: 3 additions & 0 deletions assets/css/partials/_search_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
// New styles

body {
.geodir-search-container{
z-index: 1; // give the container a higher z-index so autocompetes can be over map if below
}
.geodir-listing-search.gd-search-bar-style{
.geodir-loc-bar {
position: relative;
Expand Down
53 changes: 53 additions & 0 deletions assets/css/partials/_widget_post_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,59 @@
cursor: pointer;
}
}

// shadow
&.gd-badge-shadow{
box-shadow: 0 5px 18px 0 rgba(0,0,0,0.3) !important;
}

// replicate featured
&.gd-ab-left{
position: absolute;
z-index: 1;
top: 2px;
left: 2px;
margin: 0;
}
&.gd-ab-left-angle{
position: absolute;
z-index: 1;
top: 13px;
left: -15px;
margin: 0;
transform: rotate(-45deg);
transform-origin: bottom;
width: 100px;
text-align: center;
.gd-badge{
display: block;
}
}

&.gd-ab-right{
position: absolute;
z-index: 1;
top: 2px;
right: 2px;
margin: 0;
}

&.gd-ab-right-angle{
position: absolute;
z-index: 1;
top: 13px;
right: -15px;
margin: 0;
transform: rotate(45deg);
transform-origin: bottom;
width: 100px;
text-align: center;
.gd-badge{
display: block;
}

}

}
.gd-badge {
display: inline;
Expand Down
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.

5 changes: 5 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
= 2.0.0.55 =
* "Elvyre - Retina Ready Wordpress Theme" layout compatibility for detail & archive pages - ADDED
* Geodir_Session class called in other addons can cause issues on frontend before upgrade - FIXED
* Transparent image multiratings not displaying right on less than full score - FIXED
* Post badge now has item specific classes - ADDED
* added some badge classes for extra features - ADDED
* OpenStreetMap map icon position not relative to zoom level - FIXED
* Conversion script can set categories to select instead of multiselect - FIXED

= 2.0.0.54 =
* Ninja Form looses post id and shows incorrect post title - 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.54
* Version: 2.0.0.55
* Author: AyeCode Ltd
* Author URI: https://wpgeodirectory.com
* Text Domain: geodirectory
Expand All @@ -35,7 +35,7 @@ final class GeoDirectory {
*
* @var string
*/
public $version = '2.0.0.54';
public $version = '2.0.0.55';

/**
* GeoDirectory instance.
Expand Down
3 changes: 2 additions & 1 deletion includes/class-geodir-defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public static function page_archive_content(){
*/
public static function page_archive_item_content(){
return "[gd_archive_item_section type='open' position='left']
[gd_post_images type='image' ajax_load='true' link_to='post' show_logo='true' ]
[gd_post_badge key='featured' condition='is_not_empty' badge='FEATURED' bg_color='#fd4700' txt_color='#ffffff' css_class='gd-ab-left-angle gd-badge-shadow']
[gd_post_images type='image' ajax_load='true' link_to='post' show_logo='true']
[gd_archive_item_section type='close' position='left']
[gd_archive_item_section type='open' position='right']
[gd_post_title tag='h2']
Expand Down
42 changes: 42 additions & 0 deletions includes/deprecated-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,48 @@ function geodir_user_signup(){
_deprecated_function( __FUNCTION__, '2.0.0' );
}

/**
* @deprecated 2.0.0
*/
function geodir_load_textdomain(){
_deprecated_function( __FUNCTION__, '2.0.0' );
}

/**
* @deprecated 2.0.0
*/
if(!class_exists('Geodir_Session')){
class Geodir_Session {
public function get( $key ) {
return '';
}
public function set( $key, $value ) {
return '';
}

public function un_set( $key ) {
return '';
}
}
global $gd_session;
$gd_session = new Geodir_Session();
}

/**
* @deprecated 2.0.0
*/
function geodir_update_options($options, $dummy = false){
_deprecated_function( __FUNCTION__, '2.0.0' );
}

/**
* @deprecated 2.0.0
*/
function geodir_resave_settings($settings = array()){
_deprecated_function( __FUNCTION__, '2.0.0' );
}


if ( defined( 'GEODIRREVIEWRATING_VERSION' ) ) {
/**
* @deprecated 2.0.0
Expand Down
2 changes: 1 addition & 1 deletion includes/post-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ function geodir_get_post_badge( $post_id ='', $args = array() ) {
$badge = " <span class='gd-secondary'>$badge</span>";
}

$output = '<div class="gd-badge-meta ' . trim( $class ) . '" '.$onclick.' '.$extra_attributes.' title="'.esc_attr( $title ).'">';
$output = '<div class="gd-badge-meta ' . trim( $class ) . ' gd-badge-meta-' . sanitize_title_with_dashes( esc_attr( $title ) ).'" '.$onclick.' '.$extra_attributes.' title="'.esc_attr( $title ).'">';
if(!empty($args['link'])){$output .= "<a href='".esc_url($args['link'])."' $new_window $rel>";}
$post_id = isset($find_post->ID) ? absint($find_post->ID) : '';
// we escape the user input from $match_value but we don't escape the user badge input so they can use html like font awesome.
Expand Down
1 change: 1 addition & 0 deletions includes/widgets/class-geodir-widget-post-badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function __construct() {
'class_name' => __CLASS__,
'base_id' => 'gd_post_badge', // this us used as the widget id and the shortcode id.
'name' => __( 'GD > Post Badge', 'geodirectory' ), // the name of the widget.
'no_wrap' => true,
'widget_ops' => array(
'classname' => 'geodir-post-badge', // widget class
'description' => esc_html__( 'Displays the post badge.', 'geodirectory' ), // widget description
Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
Loading

0 comments on commit 3fd0a7a

Please sign in to comment.