示例#1
0
                                <?php 
echo __('Your property successfully finalized!', WPL_TEXTDOMAIN);
?>
                            </span>
                            <div class="finilize-btn-wp">
                                <?php 
$listing_target_page = wpl_global::get_client() == 1 ? wpl_global::get_setting('backend_listing_target_page') : NULL;
$property_link = wpl_property::get_property_link('', $this->property_id, $listing_target_page);
$new_link = wpl_global::remove_qs_var('pid', wpl_global::get_full_url());
if ($this->kind) {
    $new_link = wpl_global::add_qs_var('kind', $this->kind, $new_link);
}
if (wpl_global::get_client() == 1) {
    $manager_link = wpl_global::add_qs_var('kind', $this->kind, wpl_global::get_wpl_admin_menu('wpl_admin_listings'));
} else {
    $manager_link = wpl_global::add_qs_var('kind', $this->kind, wpl_global::remove_qs_var('wplmethod', wpl_global::remove_qs_var('pid')));
}
?>
                                <a class="wpl-button button-2" target="_blank" href="<?php 
echo $property_link;
?>
"><?php 
echo __('View this listing', WPL_TEXTDOMAIN);
?>
</a>
                                <a class="wpl-button button-2" href="<?php 
echo $new_link;
?>
"><?php 
echo __('Add new listing', WPL_TEXTDOMAIN);
?>
示例#2
0
}

function wpl_search_location(name, level)
{
	name = wplj("#wpl_search_location").val();
	url = '<?php 
echo wpl_global::get_full_url();
?>
'+'&sf_text_name='+name;
	window.location = url;
}

function wpl_reset_search_location()
{
	url = '<?php 
echo wpl_global::remove_qs_var('sf_text_name');
?>
';
	window.location = url;
}

function wpl_show_countries(enabled_status)
{
	url = wpl_update_qs('sf_select_enabled', enabled_status);
	window.location = url;
}

function wpl_remove_location(level, location_id, confirmed)
{
	if(!location_id || !level)
	{