Skip to content

Instantly share code, notes, and snippets.

View denys-vladymyrov's full-sized avatar

Denys denys-vladymyrov

View GitHub Profile
HTML:
<div class="wrapper">
<div class="tabs">
<span class="tab">Вкладка 1</span>
<span class="tab">Вкладка 2</span>
<span class="tab">Вкладка 3</span>
</div>
<div class="tab_content">
<div class="tab_item">Содержимое 1</div>
<div class="tab_item">Содержимое 2</div>
<?php
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
?>
<?php
// for all tages
$tags = get_tags();
if ($tags) {
foreach ($tags as $tag) {
echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
}
}
?>
<?php
<?php echo get_post_meta($post->ID, "soc_url", true) ?>
<?php if (have_posts()) : query_posts("p=2");
while(have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<?php endwhile; endif; wp_reset_query(); ?>
function screenHeight(){
$(".main-head").css("height", $(window).height());
}
$(document).ready(function() {
screenHeight();
$(window).resize(function(){
screenHeight();