private function generate_edit_listing_link($listing)
 {
     $template = '<a href="<edit-listing-url>" title="<link-title>"><link-text></a>';
     $template = str_replace('<edit-listing-url>', esc_url(awpcp_get_edit_listing_url($listing)), $template);
     $template = str_replace('<link-title>', esc_attr($this->generate_link_title($listing)), $template);
     $template = str_replace('<link-text>', esc_html(_x('Edit Ad', 'text for edit listing link', 'AWPCP')), $template);
     return $template;
 }
        echo esc_html($total_credits);
        ?>
 
<?php 
    }
    ?>

<?php 
}
if ($include_edit_listing_url) {
    _e('The next link will take you to a page where you can edit the listing:', 'AWPCP');
    ?>
 

<?php 
    echo awpcp_get_edit_listing_url($ad);
    ?>
 

<?php 
}
if (!empty($message)) {
    _e('Additional Details', 'AWPCP');
    ?>
 

<?php 
    echo $message;
    ?>
 
Ejemplo n.º 3
0
 public function get_edit_listing_url($listing)
 {
     return awpcp_get_edit_listing_url($listing);
 }
 public function do_placeholder($listing, $placeholder, $context)
 {
     return esc_url(awpcp_get_edit_listing_url($listing));
 }