0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
bonniescraftygifts.com
/
iFzj4
/
configCHM
/
Jump
/
0-aserty
/
testapp
/
wp-content
/
themes
/
ThesisMobile
/
[
Home
]
File: functions.php
<?php if(!is_admin()) { include_once(TEMPLATEPATH . '/functions.php'); wp_enqueue_style( 'thesis-mobile', get_stylesheet_directory_uri() . '/style.css', '', false, 'screen,projection' ); } remove_action('thesis_hook_custom_template', 'thesis_custom_template_sample'); function mobile_body_classes($classes) { if (is_home() || is_front_page()) $classes[] = "home"; if (is_archive()) $classes[] = "archive"; return $classes; } add_filter('thesis_body_classes','mobile_body_classes'); function mobile_remove_defaults($content) { return false; } function apply_mobile_filters() { add_filter('thesis_show_sidebars', 'mobile_remove_defaults'); } add_action('template_redirect','apply_mobile_filters'); if (class_exists('thesis_custom_loop')) { class mobile_loops extends thesis_custom_loop { function home() { $post_count = 1; while (have_posts()) { the_post(); $classes = 'post_box'; $post_image = thesis_post_image_info('image'); if ($post_count == 1) $classes .= ' top'; thesis_hook_before_post_box($post_count); ?> <div <?php post_class($classes); ?> id="post-<?php the_ID(); ?>"> <?php thesis_headline_area($post_count, $post_image); ?> <div class="format_text"> <?php thesis_hook_before_post($post_count); the_excerpt(); thesis_hook_after_post($post_count); ?> </div> </div> <?php thesis_hook_after_post_box($post_count); $post_count++; } } function archive() { $post_count = 1; while (have_posts()) { the_post(); $classes = 'post_box'; $post_image = thesis_post_image_info('image'); if ($post_count == 1) $classes .= ' top'; thesis_hook_before_post_box($post_count); ?> <div <?php post_class($classes); ?> id="post-<?php the_ID(); ?>"> <?php thesis_headline_area($post_count, $post_image); ?> </div> <?php thesis_hook_after_post_box($post_count); $post_count++; } } } $loopty_loop = new mobile_loops; } function mobile_scripts() { wp_enqueue_script('thesis-mobile',get_bloginfo('stylesheet_directory') . '/scripts/scripts.js',array('jquery'),0.3,true); } add_action('wp_enqueue_scripts','mobile_scripts'); if (!is_admin()) { wp_deregister_script('admin-bar'); wp_deregister_style('admin-bar'); remove_action('wp_footer','wp_admin_bar_render',1000); }