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
| $('.toggle-mnu').on('click', function() { | |
| $('.hidden-mnu').slideToggle(function(){ | |
| if($(this).css('display') == 'none'){ | |
| $(this).removeAttr('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
| html: | |
| <div class="video-relation"> | |
| <div class="video-relation-ration"></div> | |
| <iframe class="video-relation-content" src="https://www.youtube.com/embed/By_Cn5ixYLg" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> | |
| </div> | |
| sass: | |
| .video-relation | |
| position: relative | |
| &-content | |
| width: 100% |
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 | |
| // параметры по умолчанию | |
| $posts = get_posts( array( | |
| 'numberposts' => -1, | |
| 'orderby' => 'date', | |
| 'order' => 'ASC', | |
| 'post_type' => 'news', | |
| 'suppress_filters' => true, | |
| // подавление работы фильтров изменения SQL запроса | |
| ) ); |
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 | |
| $term = get_term_by('name', 'Достижения', 'info'); | |
| $id = $term->term_id; | |
| // параметры по умолчанию | |
| $posts = get_posts( array( | |
| 'numberposts' => -1, | |
| 'orderby' => 'date', | |
| 'order' => 'ASC', | |
| 'post_type' => 'about-items', | |
| 'suppress_filters' => true, |
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
| [[getImageList? | |
| &tvname=`some-item` | |
| &tpl=`some-item` | |
| &docid=`1`]] |
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
| $("img.img-svg").each(function(){var t=$(this),r=t.attr("id"),a=t.attr("class"),e=t.attr("src");$.get(e,function(e){var i=$(e).find("svg");void 0!==r&&(i=i.attr("id",r)),void 0!==a&&(i=i.attr("class",a+" replaced-svg")),!(i=i.removeAttr("xmlns:a")).attr("viewBox")&&i.attr("height")&&i.attr("width")&&i.attr("viewBox","0 0 "+i.attr("height")+" "+i.attr("width")),t.replaceWith(i)},"xml")}); |
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
| @mixin mt($t) | |
| transition: all $t ease |
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
| Tabs: | |
| [ | |
| {"caption":"Tab Title", "fields": [ | |
| {"field":"title","caption":"Name"}, | |
| {"field":"description","caption":"Description","inputTVtype":"textarea"}, | |
| {"field":"imageTV","caption":"Photo","inputTV":"imageTV"} | |
| ]} | |
| ] | |
| Table: |
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 foreach(getContacts() as $contact): ?> | |
| <div class="contact_item"> | |
| <div class="contact_item_title"><i class="fa fa-<?php echo $contact['icon']; ?>"></i> <?php echo $contact['title']; ?></div> | |
| <div class="contact_item_content"><?php echo $contact['content']; ?></div> | |
| </div> | |
| <?php endforeach; ?> |