* #header * #top-menu * #branding * #site-title * #site-tagline * #header-html * #header-widget-area * #bottom-menu */ $hdr_class = weaverx_is_checked_page_opt('_pp_hide_header') ? 'hide' : ''; weaverx_clear_both('preheader'); weaverx_inject_area('preheader'); // inject pre-header HTML weaverx_area_div('header', $hdr_class); // <div id='header'> weaverx_inject_area('header'); // inject header HTML do_action('weaverx_nav', 'top'); // menus at top /* ======== HEADER WIDGET AREA ======== */ weaverx_header_widget_area('top'); // show header widget area if set to this position $title = apply_filters('weaverx_site_title', esc_html(get_bloginfo('name', 'display'))); ?> <button class="header_button first_button" type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> Nous situer </button> <a href="http://80.67.190.170/projet-hopital_static/?page_id=399"><button class="header_button second_button" type="button" class="btn btn-primary btn-lg"> Nous contacter
function weaverx_put_widgetarea($area_name, $class = '', $area_class_name = '') { $area = apply_filters('weaverx_replace_widget_area', $area_name); if (weaverx_is_checked_page_opt('_pp_' . $area_name)) { return; } // hide area option checked unset($GLOBALS['wvr_widget_number']); // clear for each widget $GLOBALS['wvr_widget_number'] = false; if ($area != $area_name) { // replacement area? $class .= ' ' . $area; weaverx_t_set('use_widget_area', $area_name); // save state for weaverx_add_widget_classes to use later } if ($area_class_name) { $class .= ' widget-area-' . $area_class_name; } $class = ' ' . $class; if (is_active_sidebar($area)) { /* add top and bottom widget areas */ ob_start(); /* let's use output buffering to allow use of Dynamic Widgets plugin and not have empty sidebar */ $success = dynamic_sidebar($area); $content = ob_get_clean(); if ($success && $content) { ?> <div id="<?php echo $area_name; ?> " class="widget-area<?php echo $class; ?> " role="complementary"> <?php if ($area_name == 'primary-widget-area') { weaverx_inject_area('presidebar'); } echo $content; weaverx_clear_both($area_name); ?> </div><!-- <?php echo $area_name; ?> --> <?php if ($area_class_name == 'top') { weaverx_clear_both($area_name); } } } weaverx_t_clear('use_widget_area'); // gotta do this }
<?php } else { weaverx_post_div('content'); weaverx_the_post_full(); weaverx_link_pages(); ?> </div><!-- .entry-content --> <?php } ?> <div class="atw-aside-margin" style="margin-bottom:20px;"></div> <?php if (!weaverx_compact_post()) { weaverx_format_posted_on_footer('aside'); weaverx_compact_link('check'); } else { weaverx_compact_link(); weaverx_edit_link(); } ?> <?php weaverx_inject_area('postpostcontent'); // inject post comment body ?> <div style="clear:both;"></div></article><!-- /#post-<?php the_ID(); ?> -->
get_header('pwp'); // build infobar front part - replace get_template_part('infobar'); with local code // we need to build it in a buffer weaverx_container_div('pwp'); // #container ob_start(); // generate the stuff that comes AFTER the infobar for pwp since we can't generate page nav until later $sb_layout = weaverx_sb_layout('blog'); // ********* get_template_part('templates/infobar'); // put the info bar weaverx_sidebar_before($sb_layout, 'blog'); // sidebars if top-stacking do_action('weaverx_per_page'); $paged = weaverx_get_page(); // and next the content area. echo '<div id="content" role="main" ' . weaverx_content_class($sb_layout, 'pwp', false) . ">\n"; weaverx_inject_area('precontent'); weaverx_sb_precontent('blog'); weaverx_post_count_clear(); the_post(); if (!is_front_page()) { $GLOBALS['weaverx_pwp_title'] = get_the_title(); // Make breadcrumbs work a bit better } if ($paged == 1) { // only show on the first page // If we have content for this page, let's display it. if (get_the_content() != '' || get_the_title() != '' && !weaverx_is_checked_page_opt('_pp_hide_page_title')) { get_template_part('templates/content', 'page'); } else { weaverx_edit_link(); }
echo '</a>'; } ?> </span> <!-- #site-info --> <div> <p style = "text-align : right"><B>Réalisé</B> par Mélanie Gourpil, Manuel Martinez et Quentin Gallois</p> </div> </footer><!-- #colophon --> <?php weaverx_clear_both('colophon'); } // end if !hide_footer do_action('weaverxplus_action', 'footer'); weaverx_inject_area('fixedbottom'); echo "</div><!-- /#wrapper --><div class='clear-wrapper-end' style='clear:both;'></div>\n"; weaverx_inject_area('postfooter'); // and this is the end options insertion do_action('weaverxplus_action', 'postfooter'); echo "\n<a href=\"#page-top\" id=\"page-bottom\">↑</a>\n"; if (!($content_h_ff = weaverx_getopt('content_h_font_family'))) { $content_h_ff = '0'; } $font_size = weaverx_getopt_default('content_h_font_size', 'default'); switch ($font_size) { case 'xxs-font-size': $h_fontmult = 0.625; break; case 'xs-font-size': $h_fontmult = 0.75; break; case 's-font-size':
?> " <?php post_class('content-single post-content ' . weaverx_post_class(true)); ?> > <?php weaverx_single_title(''); weaverx_post_div('content'); weaverx_the_post_full_single(); wp_link_pages(array('before' => '<div class="page-link"><span>' . __('Pages:', 'weaver-xtreme') . '</span>', 'after' => '</div>')); ?> </div><!-- .entry-content --> <footer class="entry-utility entry-author-info"> <?php weaverx_post_bottom_info('single'); weaverx_author_info(); ?> </footer><!-- .entry-utility --> <?php weaverx_inject_area('postpostcontent'); // inject post comment body ?> </article><!-- #post-<?php the_ID(); ?> --> <?php weaverx_inject_area('pagecontentbottom');
$l_area .= '-rm'; } $wrap = '<div class="' . $l_area . ' s-full m-full">'; $p_class = 'l-full m-half-rm ' . weaverx_area_class('primary', 'pad', '', 'margin-bottom'); $s_class = 'l-full m-half-lm ' . weaverx_area_class('secondary', 'pad', '', 'margin-bottom'); if (weaverx_has_widgetarea('primary-widget-area')) { echo $wrap; // keep the two areas vertical no matter what the content height if (weaverx_has_widgetarea('secondary-widget-area')) { // both top and bottom weaverx_put_widgetarea('primary-widget-area', $p_class); weaverx_put_widgetarea('secondary-widget-area', $s_class); } else { // top only $p_class = str_replace('m-half-rm', 'm-full', $p_class); weaverx_inject_area('presidebar', $p_class); weaverx_put_widgetarea('primary-widget-area', $p_class); } echo '</div>'; } else { if (weaverx_has_widgetarea('secondary-widget-area')) { // bottom only $s_class = str_replace('m-half-lm', 'm-full', $s_class); echo $wrap; weaverx_put_widgetarea('secondary-widget-area', $s_class); } else { echo $wrap; weaverx_no_sidebars($p_class); } echo '</div>'; }
?> </div> <div class="nav-next"><?php next_comments_link(apply_filters('weaverx_newer_comments', __('Newer Comments →', 'weaver-xtreme'))); ?> </div> </nav> <?php } // check for comment navigation ?> <?php if (comments_open()) { comment_form(); } weaverx_inject_area('postcomments'); echo "</div><!-- #comments -->\n"; } else { if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) { /* If there are no comments and comments are closed, let's leave a little note, shall we? * But we don't want the note on pages or post types that do not support comments. */ ?> <p class="nocomments"><?php echo __('Comments are closed.', 'weaver-xtreme'); ?> </p> <?php } }