Пример #1
0
"></i></a>
				<?php 
            echo '<a href="#" class="delete-property" data-property-id="' . $post->ID . '"><i class="fa fa-trash" data-toggle="tooltip" title="' . __('Delete Property', 'tt') . '"></i></a>';
        } else {
            if (get_post_status($post->ID) == "pending") {
                ?>
				<a href="<?php 
                echo the_permalink();
                ?>
" target="_blank"><i class="fa fa-clock-o" data-toggle="tooltip" title="<?php 
                _e('Pending', 'tt');
                ?>
"></i></a>
				<?php 
                echo '<a href="#" class="delete-property" data-property-id="' . $post->ID . '"><i class="fa fa-trash" data-toggle="tooltip" title="' . __('Delete Property', 'tt') . '"></i></a>';
                echo tt_paypal_payment_button($post->ID);
            }
        }
    }
    ?>
			<?php 
}
?>
			<div class="price-tag"><?php 
echo tt_property_price();
?>
</div>
		</div>
	</div>
	
</div>
Пример #2
0
     $submit_success = true;
     $submit_result = '<div class="alert alert-success alert-dismissable">';
     $submit_result .= '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>';
     if (isset($_POST['publish'])) {
         $submit_result .= __($submit_result_text, 'tt');
     } else {
         if (isset($_POST['save'])) {
             $submit_result .= __($save_result_text, 'tt');
         }
     }
     // Show PayPal button
     if (!$allow_to_publish) {
         if ($realty_theme_option['paypal-enable']) {
             $submit_result .= ' | ';
         }
         $submit_result .= tt_paypal_payment_button($property_id);
     }
     $submit_result .= '</div>';
 } else {
     $submit_success = false;
     $submit_result = '<div class="alert alert-info alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>' . __('Property submit failed. Please try again.', 'tt') . '</div>';
 }
 // New Property - Notification Email
 $property_title = $_POST['property-title'];
 $property_edit_url = get_edit_post_link($property_id, '');
 if ($realty_theme_option['property-submit-notification-email-recipient']) {
     $notification_recipient = $realty_theme_option['property-submit-notification-email-recipient'];
 } else {
     $notification_recipient = get_option('admin_email');
 }
 $subject = __('New Property Submit', 'tt') . ' - ' . $property_title;