A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n | 
| /* @include font-face(SourceSansPro, '/fonts/Source_Sans_Pro/SourceSansPro-Regular'); */ | |
| @font-face { | |
| font-family: SourceSansPro; | |
| font-weight: normal; | |
| font-style: normal; | |
| src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot); | |
| src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot?#iefix) format("embedded-opentype"), | |
| url(/assets/Source_Sans_Pro/SourceSansPro-Regular.woff) format("woff"), | |
| url(/assets/Source_Sans_Pro/SourceSansPro-Regular.ttf) format("truetype"), | 
| @media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
| @media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
| @media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
| @media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
| @media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
| @media (min-width:1281px) { /* hi-res laptops and desktops */ } | 
| <?php | |
| wp_reset_query(); | |
| global $withcomments; | |
| $withcomments = 1; | |
| comments_template( '', true ); | 
| <?php | |
| $images = getFieldOrder('img'); | |
| $i = 0; | |
| foreach($images as $image) { | |
| $i++; | |
| $nuevos = array ("w" => 300, "h" => 200, "zc" => 1, "q" => 100); | |
| $image_thumb = get_image('img', 1, $i, 0, NULL, $nuevos); | |
| $image_link = get_image('img', 1, $i, 0, NULL); ?> | |
| <?php echo $image_thumb; ?><br/> | 
| <?php | |
| if ( have_posts() ) : // если имеются записи в блоге. | |
| query_posts('cat=3'); // указываем ID рубрик, которые необходимо вывести. | |
| while (have_posts()) : the_post(); // запускаем цикл обхода материалов блога | |
| ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <? endwhile; // завершаем цикл. | |
| endif; | |
| /* Сбрасываем настройки цикла. Если ниже по коду будет идти еще один цикл, чтобы не было сбоя. */ | |
| wp_reset_query(); | 
| <?php | |
| $post = $wp_query->post; | |
| if (in_category('cat_label_1')) { | |
| include(TEMPLATEPATH.'/single-cat_label_1.php'); | |
| } elseif (in_category('cat_label_2')) { | |
| include(TEMPLATEPATH.'/single-cat_label_2.php'); | |
| } | |
| ?> | 
| //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: |