-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-home.php
executable file
·36 lines (33 loc) · 1.2 KB
/
page-home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Template Name: Home
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that other
* 'pages' on your WordPress site will use a different template.
*
* @package Odin
* @since 2.2.0
*
$widgets_bk = get_option( 'sidebars_widgets_load' );
$widgets = get_option( 'sidebars_widgets' );
echo '<br>widgets bk:<br>';
var_dump( $widgets_bk );
echo '<br>widgets:<br>';
$widgets[ 'widget__home-manchete_' ] = $widgets_bk[ 'widget__home-manchete_' ];
$widgets[ 'widget__catastrofe_' ] = $widgets_bk[ 'widget__catastrofe_' ];
$widgets[ 'widget__home-editorial_' ] = $widgets_bk[ 'widget__homes-editorial_' ];
$widgets[ 'widget__home-video-na-manchete_' ] = $widgets_bk[ 'widget__home-video-na-manchete_'];
update_option( 'sidebars_widgets', $widgets );
*/
get_header( 'large' ); ?>
<main id="content" class="<?php echo odin_classes_page_full(); ?>" tabindex="-1" role="main">
<div class="col-md-12 no-padding">
<?php dynamic_sidebar( 'home-widgets' );?>
</div><!-- .col-md-12 -->
<div class="col-md-12 no-padding">
<?php dynamic_sidebar( 'home-widgets-baixo' );?>
</div><!-- .col-md-12 -->
</main><!-- #main -->
<?php
get_footer();