This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $(document).ready(function() { | |
| var url = window.location; | |
| var element = $('ul.sidebar-menu a').filter(function() { | |
| return this.href == url || url.href.indexOf(this.href) == 0; }).parent().addClass('active'); | |
| if (element.is('li')) { | |
| element.addClass('active').parent().parent('li').addClass('active') | |
| } | |
| }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="pagina-interna-imprensa__materias"> | |
| <?php | |
| $related = get_posts( array( 'category__in' => wp_get_post_categories($post->ID), 'numberposts' => 2,'post_type' => 'imprensa', 'post__not_in' => array($post->ID) ) ); | |
| if( $related ) foreach( $related as $post ) { | |
| setup_postdata($post); | |
| ?> | |
| <h2>Matérias Relacionadas</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $args = array ( | |
| 'child_of' => 12 | |
| ); | |
| $categories = get_categories($args); | |
| foreach($categories as $category) { | |
| echo '<li id="'. $category->slug .'"><a href="' . get_category_link( $category->term_id ) . '">' . $category->name . '</a></li>'; | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // HTML | |
| <div class="loader"> | |
| <svg class="spinner" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"> | |
| <circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle> | |
| </svg> | |
| </div><!-- /loader --> | |
| // CSS | |
| .loader { | |
| position: fixed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // AO CLICAR ADICIONAR A CLASSE REFERENTE AO ID | |
| $(document).ready(function() { | |
| $(".pagina-interna__conteudo-desk--esq ul li").on("click", function() { | |
| // alert("clicked"); | |
| $(this) | |
| .siblings() | |
| .removeClass("active"); | |
| $(this).addClass("active"); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>TESTE</title> | |
| <style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* BREAKPOINT 576px */ | |
| @media (min-width: 36em) { | |
| .container { | |
| max-width: 540px; | |
| } | |
| .destaque li figcaption h3 { | |
| color: #fff; | |
| font-size: 2em; | |
| } |