hipnews_header_color_style;
if(!empty($header_style)){
//echo " \n";
}
}
} //init
function hipnews_language( $locale ) {
// In a normal theme a language file would be loaded here for text translation
}
function hipnews_body_classes( $body_classes ) {
$settings = mobileview_get_settings();
$is_idevice = strpos( $_SERVER['HTTP_USER_AGENT'],'iPad' ) || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone' ) || strpos($_SERVER['HTTP_USER_AGENT'],'iPod' );
$body_classes[] = $settings->hipnews_icon_type;
$body_classes[] = $settings->hipnews_calendar_icon_bg;
$body_classes[] = $settings->hipnews_text_justification;
if ( $settings->hipnews_webapp_use_ajax ) {
$body_classes[] = 'ajax-on';
}
if ( $settings->hipnews_hide_addressbar ) {
$body_classes[] = 'hide-addressbar';
}
if ( $settings->hipnews_webapp_status_bar_color == 'black-translucent' ) {
$body_classes[] = $settings->hipnews_webapp_status_bar_color;
}
if ( $is_idevice ) {
$body_classes[] = 'idevice';
} else {
$body_classes[] = 'generic';
}
if ( $is_idevice && is_iOS_5() ) {
$body_classes[] = 'ios5';
}
if ( $settings->hipnews_enable_persistent ) {
$body_classes[] = 'loadsaved';
}
return $body_classes;
}
// New logo code
function hipnews_mobile_has_logo() {
$settings = mobileview_get_settings();
if ( $settings->hipnews_header_img_location ) {
return true;
} else {
return false;
}
}
function hipnews_has_header_retina_image() {
$settings = mobileview_get_settings();
return apply_filters( 'hipnews_has_header_retina_image', ( $settings->hipnews_retina_header_img_location && strlen( $settings->hipnews_retina_header_img_location ) ) );
}
function hipnews_get_header_image_location() {
$settings = mobileview_get_settings();
if ( hipnews_has_header_retina_image() ) {
return apply_filters( 'hipnews_header_image_location', $settings->hipnews_retina_header_img_location );
} else {
return apply_filters( 'hipnews_header_image_location', $settings->hipnews_header_img_location );
}
}
function hipnews_mobile_logo_img() {
if ( hipnews_has_header_retina_image() ) {
echo " \n";
} else {
echo "
\n";
}
}
function hipnews_background() {
$settings = mobileview_get_settings();
return $settings->hipnews_background_image;
}
/*
function hipnews_mobile_show_site_icon() {
$settings = mobileview_get_settings();
if ( $settings->hipnews_show_header_icon ) {
return true;
} else {
return false;
}
}
*/
function hipnews_mobile_has_menu_icon() {
$settings = mobileview_get_settings();
if ( $settings->hipnews_use_menu_icon ) {
return true;
} else {
return false;
}
}
function hipnews_mobile_hide_responses() {
$settings = mobileview_get_settings();
return $settings->hipnews_hide_responses;
}
function hipnews_mobile_com_toggle() {
if ( !function_exists( 'id_activate_hooks' ) || !function_exists( 'dsq_is_installed' ) ) {
$comment_string1 = __( 'No Comments Yet', "mobileviewlang" );
$comment_string2 = __( '1 Comment', "mobileviewlang" );
$comment_string3 = __( '% Comments', "mobileviewlang" );
echo '';
if ( hipnews_mobile_hide_responses() ) {
echo '
';
} else {
echo '
';
}
comments_number( $comment_string1, $comment_string2, $comment_string3 );
echo '';
}
}
// Custom Comments
// Custom callback to list comments in the your-theme style
function hipnews_custom_comments( $comment, $args, $depth ) {
$GLOBALS[ 'comment' ] = $comment;
$GLOBALS[ 'comment_depth' ] = $depth;
?>