Exemplo n.º 1
0
    /**
     * Inserts content into the "Publish" metabox on property pages
     *
     * @since 1.04
     *
     */
    function post_submitbox_misc_actions()
    {
        global $post, $wp_properties;
        if ($post->post_type == 'property') {
            ?>
      <div class="misc-pub-section ">
        <ul>
          <li><?php 
            _e('Menu Sort Order:', ud_get_wp_property()->domain);
            ?>
 <?php 
            echo WPP_F::input("name=menu_order&special=size=4", $post->menu_order);
            ?>
</li>
          <?php 
            if (current_user_can('manage_options')) {
                ?>
            <li><?php 
                echo WPP_F::checkbox("name=wpp_data[meta][featured]&label=" . __('Display in featured listings.', ud_get_wp_property()->domain), get_post_meta($post->ID, 'featured', true));
                ?>
</li>
          <?php 
            }
            ?>
          <?php 
            do_action('wpp_publish_box_options', $post);
            ?>
        </ul>
      </div>
    <?php 
        }
    }
Exemplo n.º 2
0
_e('Available tags:', ud_get_wp_property()->domain);
?>
 [street_number] [street_name], [city], [state], [state_code], [county],  [country], [zip_code].
        </span>
      </td>
    </tr>

    <tr>
      <th><?php 
_e('Currency & Numbers', ud_get_wp_property()->domain);
?>
</th>
      <td>
        <ul>
          <li><?php 
echo WPP_F::input("name=currency_symbol&label=" . __('Currency symbol.', ud_get_wp_property()->domain) . "&group=wpp_settings[configuration]&style=width: 50px;", $wp_properties['configuration']['currency_symbol']);
?>
</li>
          <li>
            <?php 
_e('Thousands separator symbol:', ud_get_wp_property()->domain);
?>
            <select name="wpp_settings[configuration][thousands_sep]">
              <option value=""> - </option>
              <option value="." <?php 
if (isset($wp_properties['configuration']['thousands_sep'])) {
    selected($wp_properties['configuration']['thousands_sep'], '.');
}
?>
><?php 
_e('. (period)', ud_get_wp_property()->domain);