Skip to content

Commit

Permalink
2.0.0.13-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed May 7, 2018
1 parent fba2caf commit 31f00b9
Show file tree
Hide file tree
Showing 9 changed files with 1,365 additions and 1,021 deletions.
2 changes: 1 addition & 1 deletion assets/js/geodirectory.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ jQuery(window).load(function() {
jQuery(contentLocation).closest('.geodir-tabs-content').children('li').hide();
jQuery(contentLocation).fadeIn();
jQuery(contentLocation).css({
'display': 'inline-block'
'display': 'block'
});

if (urlHash == '#post_map' && window.gdMaps) {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/geodirectory.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Shortcode builder outputs multiselect values as array instead of sting - FIXED
Default placeholder images for listings will now use the image title/caption if set - CHANGED
Details slider initial load height very tall, max-height set - CHANGED
Review output given GD specific basic styles - ADDED
Some CSS changes to simplify and improve the basics - CHANGED

v2.0.0.12-beta
Attachment table date_gmt field added - ADDED
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.12-beta
* Version: 2.0.0.13-beta
* 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.12-beta';
public $version = '2.0.0.13-beta';

/**
* GeoDirectory instance.
Expand Down
18 changes: 18 additions & 0 deletions includes/admin/class-geodir-admin-dummy-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,24 @@ public static function create_taxonomies( $post_type, $categories ) {
// insert the category
$category_return = wp_insert_term( $category['name'], $post_type . 'category' );

// attach the meta data
if(isset($category_return['term_id']) ){
// schema
if(!empty($category['schema_type'])){
update_term_meta( $category_return['term_id'], 'ct_cat_schema' , $category['schema_type']);
}

// font icon
if(!empty($category['font_icon'])){
update_term_meta( $category_return['term_id'], 'ct_cat_font_icon' , $category['font_icon']);
}

// color
if(!empty($category['color'])){
update_term_meta( $category_return['term_id'], 'ct_cat_color' , $category['color']);
}
}

// attach the icon
if(!empty($category['icon']) && isset($category_return['term_id']) ){
$uploaded = (array) GeoDir_Media::get_external_media ( $category['icon'] );
Expand Down
22 changes: 18 additions & 4 deletions includes/admin/dummy-data/standard_places.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,48 @@
$dummy_categories['attractions'] = array(
'name' => 'Attractions',
'icon' => $dummy_image_url . 'cat_icon/Attractions.png',
'schema_type' => 'TouristAttraction'
'schema_type' => 'TouristAttraction',
'font_icon' => 'fa-star',
'color' => '#62ab43',
);
$dummy_categories['hotels'] = array(
'name' => 'Hotels',
'icon' => $dummy_image_url . 'cat_icon/Hotels.png',
'schema_type' => 'Hotel'
'schema_type' => 'Hotel',
'font_icon' => 'fa-bed',
'color' => '#008972',
);
$dummy_categories['restaurants'] = array(
'name' => 'Restaurants',
'icon' => $dummy_image_url . 'cat_icon/Restaurants.png',
'schema_type' => 'Restaurant'
'schema_type' => 'Restaurant',
'font_icon' => 'fa-cutlery',
'color' => '#bc2b15',
);
$dummy_categories['food-nightlife'] = array(
'name' => 'Food Nightlife',
'icon' => $dummy_image_url . 'cat_icon/Food_Nightlife.png',
'font_icon' => 'fa-glass',
'color' => '#803fc7',
);
$dummy_categories['festival'] = array(
'name' => 'Festival',
'icon' => $dummy_image_url . 'cat_icon/Festival.png',
'schema_type' => 'Event'
'schema_type' => 'Event',
'font_icon' => 'fa-ticket',
'color' => '#20abce',
);
$dummy_categories['videos'] = array(
'name' => 'Videos',
'icon' => $dummy_image_url . 'cat_icon/Videos.png',
'font_icon' => 'fa-video-camera',
'color' => '#ff3e27',
);
$dummy_categories['feature'] = array(
'name' => 'Feature',
'icon' => $dummy_image_url . 'cat_icon/Feature.png',
'font_icon' => 'fa-heart',
'color' => '#ef7337',
);


Expand Down
Binary file modified languages/geodirectory-en_US.mo
Binary file not shown.
Loading

0 comments on commit 31f00b9

Please sign in to comment.