Пример #1
0
<?php

if (!class_exists('Idx_Broker_Plugin')) {
    echo wp_listings_admin_notice(__('<strong>Integrate your MLS Listings into WordPress with IDX Broker!</strong> <a href="http://www.idxbroker.com/features/idx-wordpress-plugin">Find out how</a>', 'wp_listings'), false, 'activate_plugins', 'wpl_notice_idx');
}
if (!function_exists('equity')) {
    echo wp_listings_admin_notice(__('<strong>Want enhanced listings? Automatically import extra details and photos with Equity.</strong> <a href="http://www.agentevolution.com/equity/">Learn how</a>', 'wp_listings'), false, 'activate_plugins', 'wpl_notice_equity');
}
if (isset($_GET['settings-updated'])) {
    ?>
    <div id="message" class="updated">
        <p><strong><?php 
    _e('Settings saved.', 'wp_listings');
    ?>
</strong></p>
    </div>
<?php 
}
?>
<div id="icon-options-general" class="icon32"></div>
<div class="wrap">
	<h1><?php 
_e('WP Listings Settings', 'wp_listings');
?>
</h1>
	<hr>
	<div id="poststuff" class="metabox-holder has-right-sidebar">
		<div id="side-info-column" class="inner-sidebar">
		<?php 
do_meta_boxes('wp-listings-options', 'side', null);
?>
Пример #2
0
 /**
  * Displays admin notices if show-notice url param exists or edit listing page
  * @return object current screen
  * @uses  wp_listings_admin_notice
  */
 function admin_notices()
 {
     $screen = get_current_screen();
     if (isset($_GET['wp-listings']) || $screen->id == 'edit-listing') {
         if (!class_exists('Idx_Broker_Plugin')) {
             echo wp_listings_admin_notice(__('<strong>Integrate your MLS Listings into WordPress with IDX Broker!</strong> <a href="http://www.idxbroker.com/features/idx-wordpress-plugin">Find out how</a>', 'wp_listings'), false, 'activate_plugins', isset($_GET['wp-listings']) ? 'wpl_listing_notice_idx' : 'wpl_notice_idx');
         }
         if (!function_exists('equity')) {
             echo wp_listings_admin_notice(__('<strong>Stop filling out forms. Equity automatically enhances your listings with extra details and photos.</strong> <a href="http://www.agentevolution.com/equity/">Find out how</a>', 'wp_listings'), false, 'activate_plugins', isset($_GET['wp-listings']) ? 'wpl_listing_notice_equity' : 'wpl_notice_equity');
         }
     }
     return $screen;
 }