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
| <ul class="first_menu"> | |
| <li class="sitebar_head">Все статьи данного раздела:</li> | |
| <li class="link">Бесплатная игровые автоматы <i class="fa fa-angle-right" aria-hidden="true"></i>казино </li> | |
| <ul class="menu"> | |
| <li><a class="link_menu_active" href="#">List Item 1</a></li> | |
| <li><a class="link_menu_active" href="#">List Item 2</a></li> | |
| <li><a class="link_menu_active" href="#">List Item 3</a></li> | |
| <li><a class="link_menu_active" href="#">List Item 5</a></li> | |
| <li><a class="link_menu_active" href="#">List Item 6</a></li> | |
| <li><a class="link_menu_active" href="#">List Item 7</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
| <?php | |
| $idObj = get_category_by_slug('s_about'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($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
| <?php $url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ); $url = $url['0']; ?> |
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 | |
| add_action( 'admin_init', 'theme_options_init' ); | |
| add_action( 'admin_menu', 'theme_options_add_page' ); | |
| /** | |
| * Init plugin options to white list our options | |
| */ | |
| function theme_options_init(){ | |
| register_setting( 'sample_options', 'sample_theme_options', 'theme_options_validate' ); |
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 date('Y'); ?> // вывод теперевней даты | |
| <?php 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
| <?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)); ?> | |
| <? endwhile; endif; wp_reset_query(); ?> |
NewerOlder