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
| { | |
| "show_definitions": false, | |
| "auto_complete": false, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/One Dark Material - Theme/schemes/OneDark.tmTheme", | |
| "fold_buttons": false, | |
| "font_size": 13, | |
| "highlight_line": true, | |
| "indent_guide_options": | |
| [ |
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
Show hidden characters
| [ | |
| { "keys": ["alt+shift+f"], "command": "reindent" }, | |
| ] |
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
| .loader | |
| background: none repeat scroll 0 0 #ffffff | |
| bottom: 0 | |
| height: 100% | |
| left: 0 | |
| position: fixed | |
| right: 0 | |
| top: 0 | |
| width: 100% | |
| z-index: 9999 |
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
| $(document).ready(function() { | |
| function windowResize() { | |
| $("header").css("min-height", $(window).height()); | |
| } | |
| windowResize(); | |
| $(window).resize(function() { | |
| windowResize(); | |
| }); | |
| }); |
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 if ( have_posts() ) : query_posts('p=1'); | |
| while (have_posts()) : the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php the_content(); ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <?php endwhile; endif; wp_reset_query(); ?> |
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 echo get_post_meta($post->ID, 'название доп-поля', 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
| <?php | |
| $idObj = get_category_by_slug('название ярлыка рубрики'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($id); | |
| ?> /*Добавить имя рубрики*/ | |
| <?php echo category_description($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
| //In Template | |
| <?php | |
| $options = get_option('sample_theme_options'); | |
| echo $options['phone1']; | |
| ?> | |
| //in functions.php | |
| require_once ( get_stylesheet_directory() . '/theme-options.php' ); | |
| //theme-options.php file: |
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 | |
| $idObj = get_category_by_slug('s_about'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($id); | |
| ?> |
OlderNewer