CSS for mobile:
@media only screen and (max-width: 600px) {
.pp_pic_holder.pp_default {
width: 100%!important;
left: 0!important;
overflow: hidden;
top: 50px !important;
<?php | |
/** | |
* show_pagination | |
* | |
* Show pagination links. | |
* | |
* @author JoseRobinson.com | |
* @link https://gist.github.com/jrobinsonc/bb3829f9418d37c02a09 | |
* @version 2.0.0 |
<?php | |
##################################################### | |
# Example to show most visited posts. | |
##################################################### | |
$custom_query = new WP_query(array( | |
'meta_key' => Posts_views::$key, | |
'orderby' => 'meta_value_num', | |
'order' => 'DESC' |
<?php | |
function get_the_slug() | |
{ | |
global $post; | |
return is_single() || is_page()? $post->post_name : ''; | |
} |
{ | |
"files": | |
{ | |
"cycle": "http://malsup.github.io/jquery.cycle.all.js", | |
"angular": "http://code.angularjs.org/snapshot/angular.min.js", | |
"history": "https://raw.github.com/balupton/history.js/master/scripts/compressed/history.js", | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"modernizr": "https://raw.github.com/Modernizr/Modernizr/master/modernizr.js", | |
"normalize": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css", | |
"reset": "http://meyerweb.com/eric/tools/css/reset/reset.css" |
<?php | |
/** | |
* get_file_url | |
* | |
* Usage example: | |
* | |
* URL relative to the base file: | |
* get_file_url('styles.css', __FILE__); | |
* |
_ |
<?php | |
// Use shortcodes within text widgets | |
add_filter('widget_text', 'do_shortcode'); | |
// wp_nav_menu | |
add_shortcode('wp_nav_menu', 'wp_nav_menu_shortcode'); | |
function wp_nav_menu_shortcode($atts = array(), $content = '') | |
{ |
<?php | |
/** | |
* Return an absolute URL. | |
* | |
* Usage: | |
* [get_url page=<page id>] | |
* | |
* or | |
* |
CSS for mobile:
@media only screen and (max-width: 600px) {
.pp_pic_holder.pp_default {
width: 100%!important;
left: 0!important;
overflow: hidden;
top: 50px !important;