Skip to content

Commit

Permalink
Merge pull request #41 from kprajapatii/master
Browse files Browse the repository at this point in the history
Remove send to friend functionality as it against the GDPR policy - CHANGED
  • Loading branch information
Stiofan authored May 25, 2018
2 parents 725855b + 22df356 commit 2bafa43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
3 changes: 3 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.1.8
Remove send to friend functionality as it against the GDPR policy - CHANGED

v1.1.7
Mobile details page tabs now close and scroll to show tab title - CHANGED
Don't translate GD post types/taxonomies if disabled in WPML settings - CHANGED
Expand Down
18 changes: 3 additions & 15 deletions inc/geodirectory-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function my_change_sidebar_content_order($arr)
/**
* Output the listings images as a gallery.
*
* Used to add the listins images to the sidebar.
* Used to add the listing images to the sidebar.
*
* @since 1.0.0
*/
Expand Down Expand Up @@ -553,9 +553,8 @@ function sd_theme_deactivation($newname, $newtheme) {



//remove send to friend/enquiry from details page
//remove send to enquiry from details page
add_filter("geodir_show_geodir_email", '__return_false');
remove_action('geodir_after_detail_page_more_info', 'geodir_payment_sidebar_show_send_to_friend', 11);

function sd_detail_display_notices() {
if (geodir_is_page('detail')) {
Expand All @@ -574,14 +573,6 @@ function sd_detail_display_notices() {
</div>
<?php
}

if (isset($_GET['sendtofrnd']) && $_GET['sendtofrnd'] == 'success') {
?>
<div class="alert alert-success" style="text-align: center">
<?php echo SEND_FRIEND_SUCCESS; ?>
</div>
<?php
}
}
}
add_action('sd-detail-details-before', 'sd_detail_display_notices');
Expand Down Expand Up @@ -802,7 +793,7 @@ class="fa fa-edit"></i> <?php echo __('Edit', 'supreme-directory'); ?></a>
}
?>
</div>
<!-- sd-detail-suthor end -->
<!-- sd-detail-author end -->
<div class="sd-detail-info">
<?php
$title_extra_class = apply_filters('sd_detail_title_extra_class', "");
Expand Down Expand Up @@ -873,9 +864,6 @@ class="fa fa-edit"></i> <?php echo __('Edit', 'supreme-directory'); ?></a>
if ( ! empty( $post->geodir_email ) && ! empty( $available_fields ) && in_array( 'geodir_email', $available_fields ) ) {
$share_actions[] = '<a href="javascript:void(0);" class="b_send_inquiry">' . SEND_INQUIRY . '</a>';
}
if ( ! empty( $package_info['sendtofriend'] ) ) {
$share_actions[] = '<a class="b_sendtofriend" href="javascript:void(0);">' . SEND_TO_FRIEND . '</a></span>';
}
if ( ! empty( $share_actions ) ) {
$send_buttons .= '<span style="" class="geodir-i-email">';
$send_buttons .= '<i class="fa fa-envelope"></i> ';
Expand Down

0 comments on commit 2bafa43

Please sign in to comment.