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
| function portfolio_widgets_init() { | |
| register_sidebar( array( | |
| 'name' => 'Логотип SVG', | |
| 'id' => 'logo', | |
| 'before_widget' => '', | |
| 'after_widget' => '', | |
| 'before_title' => '<span class="hidden">', | |
| 'after_title' => '</span>', | |
| ) ); | |
| } |
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
| add_action( 'init', 'register_post_types' ); | |
| function register_post_types(){ | |
| register_post_type('portfolio_about', array( | |
| 'label' => null, | |
| 'labels' => array( | |
| 'name' => 'Обо мне', // основное название для типа записи | |
| 'singular_name' => 'Информация обо мне', // название для одной записи этого типа | |
| 'add_new' => 'Добавить информацию обо мне', // для добавления новой записи | |
| 'add_new_item' => 'Добавление информации обо мне', // заголовка у вновь создаваемой записи в админ-панели. | |
| 'edit_item' => 'Редактирование информации обо мне', // для редактирования типа записи |
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
| function getPortfolio(){ | |
| $posts = get_posts( array( | |
| 'orderby' => 'date', | |
| 'order' => 'ASC', | |
| 'post_type' => 'portfolio_port', | |
| 'numberposts' => -1 // remove limit | |
| ) ); | |
| $portfolio = []; | |
| foreach($posts as $post){ | |
| $fields = get_fields($post->ID); |
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="col-12"> | |
| <?php | |
| $idObj = get_category_by_slug('portfolio-port'); | |
| $id = $idObj->term_id; | |
| ?> | |
| <h2><?php echo get_cat_name($id);?></h2> | |
| </div> |
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; ?> |
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
| @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
| $("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
| [[getImageList? | |
| &tvname=`some-item` | |
| &tpl=`some-item` | |
| &docid=`1`]] |
OlderNewer