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
/* Large Devices, Wide Screens */ | |
@media only screen and (max-width : 1199px) { | |
} | |
/* Medium Devices, Desktops */ | |
@media only screen and (max-width : 991px) { | |
} |
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
.alignnone { | |
margin: 5px 20px 20px 0; | |
} | |
.aligncenter, | |
div.aligncenter { | |
display: block; | |
margin: 5px auto 5px auto; | |
} |
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 | |
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail-size', true); | |
echo $thumb_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 | |
if(is_front_page()){ | |
$paged = ( get_query_var('page') ) ? get_query_var('page') : 1; | |
}else{ | |
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; | |
} | |
$the_query = new WP_Query(array( |
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
function theme_queue_js(){ | |
if ( (!is_admin()) && is_singular() && comments_open() && get_option('thread_comments') ) | |
wp_enqueue_script( 'comment-reply' ); | |
} | |
add_action('wp_print_scripts', 'theme_queue_js'); |
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
/** | |
* Style for post pagination | |
*/ | |
.post-pagination { | |
width: 100%; | |
padding:5px; | |
height: 40px; | |
border:1px solid #fff; | |
outline: 1px solid #e3e3e3; | |
border-radius:3px; |
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
hr.shape { | |
background-color: #dcdbdb; | |
background-image: -moz-linear-gradient(left, #ffffff 0%, #dcdbdb 50%, #ffffff 100%); | |
background-image: -o-linear-gradient(left, #ffffff 0%, #dcdbdb 50%, #ffffff 100%); | |
background-image: -webkit-linear-gradient(left, #ffffff 0%, #dcdbdb 50%, #ffffff 100%); | |
background-image: linear-gradient(left, #ffffff 0%, #dcdbdb 50%, #ffffff 100%); | |
border: none; | |
height: 1px; | |
margin: 1.5em auto; | |
width: 100%; |
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
/* | |
Beautiful link color | |
*/ | |
a { | |
color:#50AAEB; | |
} |
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
/** | |
* Function for post counter table | |
* Show post cunter and use | |
* show more view post as popular | |
*/ | |
//Create function for new table for post counter | |
function wpb_set_post_views($postID) { | |
$count_key = 'wpb_post_views_count'; | |
$count = get_post_meta($postID, $count_key, true); |
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 | |
$pop = $wpdb->get_results("SELECT id,post_title,guid FROM {$wpdb->prefix}posts WHERE post_type='post' ORDER BY comment_count DESC LIMIT 10"); | |
foreach($pop as $post) : ?> | |
<li><a href="<?php echo $post->guid; ?>"><?php echo get_the_post_thumbnail($post->id); ?></li> | |
<?php endforeach; ?> |