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='modal' id='modal'> | |
| <!-- MODAL CONTENT --> | |
| <div id="modal-content" class='modal-content'> | |
| <!-- For the close button --> | |
| <span class="modal-close" id='close'>×</span> | |
| <!-- Actual content --> | |
| <div> | |
| <a href="#"> | |
| <img src="https://picsum.photos/id/237/820/400" alt="Dog"> | |
| </a> |
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
| //Expansion | |
| const expansionTitle = $('.expansion-component .expansion-component__title') | |
| expansionTitle.first().toggleClass('active'); | |
| expansionTitle.first().siblings('.expansion-component__panel').toggleClass('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
| <?php | |
| $the_query = new WP_Query( array( | |
| 'post_type' => 'calender_item', | |
| 'post_status' => 'publish', | |
| 'meta_key' => 'calender_item_date', | |
| 'orderby' => 'meta_value' | |
| ) ); | |
| # This will hold what group we're in |
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
| //Ordena busca pelo titulo | |
| add_action( 'pre_get_posts', 'my_change_sort_order'); | |
| function my_change_sort_order($query){ | |
| if(is_search()): | |
| //If you wanted it for the archive of a custom post type use: is_post_type_archive( $post_type ) | |
| //Set the order ASC or DESC | |
| $query->set( 'order', 'ASC' ); | |
| //Set the orderby | |
| $query->set( 'orderby', 'relevance' ); | |
| endif; |
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
| <!-- competitions countdown with post type "competição" --> | |
| <?php | |
| //If the event is happening | |
| $args = array( | |
| 'post_type' => 'competicao', | |
| 'meta_query' => [ | |
| 'relation' => 'AND', | |
| [ | |
| 'key' => 'date_picker', | |
| 'compare' => '<=', |