<?php

/*
* Template name: Contact page - fullwidth map
*/
get_header();
?>

 <?php 
converio_map_fullwidth::get(get_the_id());
?>

<section class="content <?php 
echo esc_attr($converio_sidebar_class);
?>
">
	<?php 
$hide_title = get_post_meta(get_the_id(), 'hide_title', true);
?>
<div class="contact">
			
	<article class="main single contact">
		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

			<?php 
        if (!$hide_title) {
            ?>
Esempio n. 2
0
        }
        $nonce = $_POST[$this->nonce_name];
        if (!wp_verify_nonce($nonce, $this->nonce)) {
            return $post_id;
        }
        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
            return $post_id;
        }
        // Check the user's permissions.
        if ('page' == $_POST['post_type']) {
            if (!current_user_can('edit_page', $post_id)) {
                return $post_id;
            }
        } else {
            if (!current_user_can('edit_post', $post_id)) {
                return $post_id;
            }
        }
        update_post_meta($post_id, self::$meta_name, $_POST[self::$meta_name]);
    }
    public static function init()
    {
        new converio_map_fullwidth();
    }
    public static function get($post_id)
    {
        echo self::get_meta($post_id);
    }
}
converio_map_fullwidth::init();