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
Hello, World! |
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 | |
wp_reset_query(); | |
global $withcomments; | |
$withcomments = 1; | |
comments_template( '', true ); |
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
<style> | |
.square { | |
display: inline-block; | |
position: relative; | |
width: 55%; | |
} | |
.square_dummy { | |
margin-top: 100%; | |
display: block; | |
} |
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 | |
$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/> |
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 | |
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(); |
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 | |
$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'); | |
} | |
?> |
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
//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 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
$(".element").waypoint(function() { | |
$(this).addClass("animated zoomInUp"); | |
}, { | |
offset: "70%" | |
}); | |
.element:nth-child(1) { | |
-webkit-animation-delay: 0s; | |
-o-animation-delay: 0s; | |
animation-delay: 0s; |
OlderNewer