This file contains 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 | |
class order_Widget extends WP_Widget { | |
/** | |
* Register widget with WordPress. | |
*/ | |
function __construct() { | |
parent::__construct( | |
'order_Widget', // Base ID | |
esc_html__( 'Order', 'webove' ), // Name |
This file contains 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
JADE: | |
.container | |
.cover-slide | |
.slider | |
.slide | |
.slide | |
.slide | |
SASS: | |
.slider |
This file contains 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
// SideBar | |
function true_register_wp_sidebars() { | |
/* В боковой колонке - первый сайдбар */ | |
register_sidebar( | |
array( | |
'id' => 'homepage_sidebar', | |
'name' => 'Home page sidebar', | |
'description' => 'Your widgets', // | |
'before_widget' => '<div id="%1$s" class="">', |
This file contains 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 $blog_posts = new WP_Query( array( 'p' => '51' ) ); | |
if ( $blog_posts->have_posts() ) : while ( $blog_posts->have_posts() ) : $blog_posts->the_post();?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<?php endwhile; else: endif;?> |
This file contains 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
SASS: | |
@import mixins | |
@import ../css/sprite | |
@import vars | |
$heading-font: Georgia,sans-serif | |
$excerpt-font: Arial,sans-serif | |
$heading-size: 22rem | |
$excerpt-size: 2rem | |
$heading-color: #fff |