]> _ Git - couzy.git/commitdiff
wait #6092 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 30 Jun 2023 10:44:14 +0000 (12:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 30 Jun 2023 10:44:14 +0000 (12:44 +0200)
pavillonmadeleine.fr/wp-content/plugins/yves-couzy/admin/yves-couzy.php
pavillonmadeleine.fr/wp-content/themes/YvesCouzy/page-home.php

index 653703feb053588db093e1912376255bd6bfc036..8891f7ea74a9b9588fd8f4b8492a6d01825bde18 100644 (file)
@@ -139,6 +139,11 @@ class Yves_Couzy
                                $this->_metaboxes[$id]['thumbnail_sidebar_1']->title    = 'Image colonne droite #1';
                                $this->_metaboxes[$id]['thumbnail_sidebar_1']->key              = 'yc_page_thumbnail_sidebar_1_content';
 
+                               $this->_metaboxes[$id]['top_sidebar_1']                         = new stdClass();
+                               $this->_metaboxes[$id]['top_sidebar_1']->id             = 'yc_page_top_sidebar_1';
+                               $this->_metaboxes[$id]['top_sidebar_1']->title  = 'Image (code html libre) colonne droite #1';
+                               $this->_metaboxes[$id]['top_sidebar_1']->key            = 'yc_page_top_sidebar_1_content';
+
                                $this->_metaboxes[$id]['content_2']                     = new stdClass();
                                $this->_metaboxes[$id]['content_2']->id                 = 'yc_page_content_2';
                                $this->_metaboxes[$id]['content_2']->title              = 'Bloc contenu #2';
index cf0028ee157da126a8e422bac66e250d1ef7cdb0..1485e640a3641826cd3c48b92ec72ecfa9b87449 100644 (file)
@@ -7,6 +7,7 @@ get_header();
 
 $sidebar_1 = get_post_meta($post->ID, 'yc_page_sidebar_1_content', true);
 $thumbnail_sidebar_1 = get_post_meta($post->ID, 'yc_page_thumbnail_sidebar_1_content', true);
+$top_sidebar_1 = get_post_meta($post->ID, 'yc_page_top_sidebar_1_content', true);
 ?>
 
        <div class="motopress-wrapper content-holder clearfix">
@@ -31,6 +32,8 @@ $thumbnail_sidebar_1 = get_post_meta($post->ID, 'yc_page_thumbnail_sidebar_1_con
                                                                        <div>
                                                                                <img src="<?php echo aq_resize($thumbnail_sidebar_1, 310); ?>" alt="" class="img-responsive sidebar-thumbnail">
                                                                        </div>
+                                                               <?php elseif ($top_sidebar_1): ?>
+                                                                       <div><?php echo $top_sidebar_1 ?></div>
                                                                <?php endif; ?>
                                                                <div id="custom_page_sidebar_1" class="custom-page-sidebar">
                                                                        <?php echo $sidebar_1; ?>