Permalink
Browse files

Mejorada la salida HTML para #colophon. Eliminadas algunas marcas inn…

…ecesarias
  • Loading branch information...
rogertm committed Jan 8, 2019
1 parent 80c7332 commit a90ba17e26ec6fb3d8b9201464b9eafe9f5c1fe9
Showing with 79 additions and 83 deletions.
  1. +16 −16 css/theme.css
  2. +1 −1 css/theme.css.map
  3. +1 −1 css/theme.min.css
  4. +1 −1 css/theme.min.css.map
  5. +1 −1 scss/theme.scss
  6. +49 −53 sidebar-footer.php
  7. +10 −10 templates/init.php
@@ -363,7 +363,7 @@ mark,
padding: 0.2em;
background-color: #fcf8e3; }

.list-unstyled, #related-posts .related-posts-list, #comments .children, .widget-container ul, .widget-container ol {
.list-unstyled, #related-posts .related-posts-list, #comments .children, .widget ul, .widget ol {
padding-left: 0;
list-style: none; }

@@ -1189,22 +1189,22 @@ pre {

.offset-xl-11 {
margin-left: 91.6666666667%; } }
.table, .widget-container table {
.table, .widget table {
width: 100%;
margin-bottom: 1rem;
background-color: transparent; }
.table th, .widget-container table th,
.table th, .widget table th,
.table td,
.widget-container table td {
.widget table td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #dee2e6; }
.table thead th, .widget-container table thead th {
.table thead th, .widget table thead th {
vertical-align: bottom;
border-bottom: 2px solid #dee2e6; }
.table tbody + tbody, .widget-container table tbody + tbody {
.table tbody + tbody, .widget table tbody + tbody {
border-top: 2px solid #dee2e6; }
.table .table, .widget-container table .table, .table .widget-container table, .widget-container .table table, .widget-container table table {
.table .table, .widget table .table, .table .widget table, .widget .table table, .widget table table {
background-color: #fff; }

.table-sm th,
@@ -1331,11 +1331,11 @@ pre {
.table-hover .table-active:hover > th {
background-color: rgba(0, 0, 0, 0.075); }

.table .thead-dark th, .widget-container table .thead-dark th {
.table .thead-dark th, .widget table .thead-dark th {
color: #fff;
background-color: #212529;
border-color: #32383e; }
.table .thead-light th, .widget-container table .thead-light th {
.table .thead-light th, .widget table .thead-light th {
color: #495057;
background-color: #e9ecef;
border-color: #dee2e6; }
@@ -5788,7 +5788,7 @@ button#maintenance-mode-alert:focus {
.mx-2 {
margin-right: 0.5rem !important; }

.mb-2, .widget-container ul li, .widget-container ol li,
.mb-2, .widget ul li, .widget ol li,
.my-2 {
margin-bottom: 0.5rem !important; }

@@ -5882,7 +5882,7 @@ article .card-img-overlay #comments #cancel-comment-reply-link,
.mx-5 {
margin-right: 3rem !important; }

.mb-5, article, .author-info, .widget-container,
.mb-5, article, .author-info, .widget,
.my-5,
#maintenance-mode {
margin-bottom: 3rem !important; }
@@ -7039,7 +7039,7 @@ article .card-img-overlay #comments #cancel-comment-reply-link,
.text-left, .gallery .gallery-item {
text-align: left !important; }

.text-right, .widget-container .calendar_wrap #next {
.text-right, .widget .calendar_wrap #next {
text-align: right !important; }

.text-center, #site-pagination.prev-next a, #posts-navigation.nav a,
@@ -7231,11 +7231,11 @@ a.text-dark:hover, a.text-dark:focus {
.badge {
border: 1px solid #000; }

.table, .widget-container table {
.table, .widget table {
border-collapse: collapse !important; }
.table td, .widget-container table td,
.table td, .widget table td,
.table th,
.widget-container table th {
.widget table th {
background-color: #fff !important; }

.table-bordered th,
@@ -7250,7 +7250,7 @@ a.text-dark:hover, a.text-dark:focus {
.table-dark tbody + tbody {
border-color: #dee2e6; }

.table .thead-dark th, .widget-container table .thead-dark th {
.table .thead-dark th, .widget table .thead-dark th {
color: inherit;
border-color: #dee2e6; } }
@font-face {

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -497,7 +497,7 @@ article{
//
// Widgets
//
.widget-container{
.widget{
@extend .mb-5;
ul, ol{
@extend .list-unstyled;
@@ -16,63 +16,59 @@
/**
* The template for the sidebar containing the footer widget area.
*/
?>

<div id="colophon" class="py-5">
<?php do_action( 't_em_action_colophon_before' ); ?>
<?php
/* The footer widget area is triggered if any of the areas
* have widgets. So let's check that first.
*
* If none of the sidebars have widgets, then let's bail early.
*/
if ( ( is_active_sidebar( 'first-footer-widget-area' )
|| is_active_sidebar( 'second-footer-widget-area' )
|| is_active_sidebar( 'third-footer-widget-area' )
|| is_active_sidebar( 'fourth-footer-widget-area' )
) && 'no-footer-widget' != t_em( 'footer_set' ) ) :
/* The footer widget area is triggered if any of the areas
* have widgets. So let's check that first.
*
* If none of the sidebars have widgets, then let's bail early.
*/
// If we get this far, we have widgets. Let do this.
?>
<section id="footer-widget-area" class="<?php t_em_container(); ?>" role="complementary">
<div class="row widget-area">
<?php do_action( 't_em_action_sidebar_footer_before' ); ?>
if ( ( is_active_sidebar( 'first-footer-widget-area' )
|| is_active_sidebar( 'second-footer-widget-area' )
|| is_active_sidebar( 'third-footer-widget-area' )
|| is_active_sidebar( 'fourth-footer-widget-area' )
) && 'no-footer-widget' != t_em( 'footer_set' ) ) :
?>
<div id="colophon" class="py-5">
<?php do_action( 't_em_action_colophon_before' ); ?>
<section id="sidebar-footer" class="<?php t_em_container(); ?>" role="complementary">
<div class="row widget-area">
<?php do_action( 't_em_action_sidebar_footer_before' ); ?>

<?php if ( is_active_sidebar( 'first-footer-widget-area' )
&& 'no-footer-widget' != t_em( 'footer_set' ) ) : ?>
<aside id="first" <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
</aside><!-- #first .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'first-footer-widget-area' )
&& 'no-footer-widget' != t_em( 'footer_set' ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
</div>
<?php endif; ?>

<?php if ( is_active_sidebar( 'second-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'two-footer-widget', 'three-footer-widget', 'four-footer-widget' ) ) ) : ?>
<aside id="second" <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
</aside><!-- #second .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'second-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'two-footer-widget', 'three-footer-widget', 'four-footer-widget' ) ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
</div>
<?php endif; ?>

<?php if ( is_active_sidebar( 'third-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'three-footer-widget', 'four-footer-widget' ) ) ) : ?>
<aside id="third" <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
</aside><!-- #third .widget-area -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'third-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'three-footer-widget', 'four-footer-widget' ) ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
</div>
<?php endif; ?>

<?php if ( is_active_sidebar( 'fourth-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'four-footer-widget' ) ) ) : ?>
<aside id="fourth" <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
</aside><!-- #fourth .widget-area -->
<?php endif; ?>
<?php do_action( 't_em_action_sidebar_footer_after' ); ?>
</div><!-- .row .widget-area -->
</section><!-- #footer-widget-area .wrapper .container -->
<?php if ( is_active_sidebar( 'fourth-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'four-footer-widget' ) ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
</div>
<?php endif; ?>
<?php do_action( 't_em_action_sidebar_footer_after' ); ?>
</div><!-- .row .widget-area -->
</section><!-- #footer-widget-area .wrapper .container -->

<?php endif; // If there is any sidebar active ?>
<?php do_action( 't_em_action_colophon_after' ); ?>
</div><!-- #colophon -->
<?php do_action( 't_em_action_colophon_after' ); ?>
</div><!-- #colophon -->
<?php endif; // If there is any sidebar active ?>
@@ -364,7 +364,7 @@ function t_em_widgets_init() {
'name' => __( 'Main Sidebar Widget Area', 't_em' ),
'id' => 'sidebar',
'description' => __( 'Add widgets here to appear in your main sidebar', 't_em' ),
'before_widget' => '<aside id="%1$s" class="widget-container %2$s">',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
@@ -379,7 +379,7 @@ function t_em_widgets_init() {
'name' => __( 'Alternative Sidebar Widget Area', 't_em' ),
'id' => 'sidebar-alt',
'description' => __( 'Add widgets here to appear in your alternative sidebar', 't_em' ),
'before_widget' => '<aside id="%1$s" class="widget-container %2$s">',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
@@ -393,8 +393,8 @@ function t_em_widgets_init() {
'name' => __( 'First Footer Widget Area', 't_em' ),
'id' => 'first-footer-widget-area',
'description' => __( 'Add widgets here to appear in your footer sidebar', 't_em' ),
'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
'after_widget' => '</div>',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
@@ -407,8 +407,8 @@ function t_em_widgets_init() {
'name' => __( 'Second Footer Widget Area', 't_em' ),
'id' => 'second-footer-widget-area',
'description' => __( 'Add widgets here to appear in your footer sidebar', 't_em' ),
'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
'after_widget' => '</div>',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
@@ -422,8 +422,8 @@ function t_em_widgets_init() {
'name' => __( 'Third Footer Widget Area', 't_em' ),
'id' => 'third-footer-widget-area',
'description' => __( 'Add widgets here to appear in your footer sidebar', 't_em' ),
'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
'after_widget' => '</div>',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
@@ -437,8 +437,8 @@ function t_em_widgets_init() {
'name' => __( 'Fourth Footer Widget Area', 't_em' ),
'id' => 'fourth-footer-widget-area',
'description' => __( 'Add widgets here to appear in your footer sidebar', 't_em' ),
'before_widget' => '<div id="%1$s" class="widget-container %2$s">',
'after_widget' => '</div>',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );

0 comments on commit a90ba17

Please sign in to comment.