function mobileview_bloginfo_title($info, $show) { if ($show == 'name') { $info = mobileview_get_bloginfo('site_title'); } return $info; }
if (mobile_view_show_webapp_notice()) { ?> <div id="web-app-overlay"> <img src="<?php mobileview_bloginfo('template_directory'); ?> /images/web-app-bubble-arrow.png" alt="bubble-arrow" id="bubble-arrow" /> <a href="#" id="close-wa-overlay">X</a> <img src="<?php echo mobileview_get_site_menu_icon(MOBILEVIEW_ICON_BOOKMARK); ?> " alt="bookmark-icon" id="bookmark-icon" /> <h2><?php mobileview_bloginfo('site_title'); ?> </h2> <h3><?php _e("is now web-app enabled!", "mobileviewlang"); ?> </h3> <p><?php echo sprintf(__("Save %s as a web-app on your Home Screen.", "mobileviewlang"), mobileview_get_bloginfo('site_title')); ?> </p> <p><?php _e("Tap the center button below, then Add to Home Screen.", "mobileviewlang"); ?> </p> </div> <?php }
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 '<a id="comments-' . get_the_ID() . '" class="post no-ajax com-toggle">'; if (hipnews_mobile_hide_responses()) { echo '<img id="com-arrow" class="com-arrow" src="' . mobileview_get_bloginfo('template_directory') . '/images/com_arrow.png" alt="arrow" />'; } else { echo '<img id="com-arrow" class="com-arrow-down" src="' . mobileview_get_bloginfo('template_directory') . '/images/com_arrow.png" alt="arrow" />'; } comments_number($comment_string1, $comment_string2, $comment_string3); echo '</a>'; } }
function add_mobile_header_info() { $settings = $this->get_settings(); if ($this->get_active_device_class() == "ipad") { if ($settings->glossy_bookmark_icon) { $bookmark_icon = "<link rel='apple-touch-icon' href='" . mobileview_get_site_menu_icon(MOBILEVIEW_ICON_TABLET_BOOKMARK) . "' />\n"; } else { $bookmark_icon = "<link rel='apple-touch-icon-precomposed' href='" . mobileview_get_site_menu_icon(MOBILEVIEW_ICON_TABLET_BOOKMARK) . "' />\n"; } } else { if ($settings->glossy_bookmark_icon) { $bookmark_icon = "<link rel='apple-touch-icon' href='" . mobileview_get_site_menu_icon(MOBILEVIEW_ICON_BOOKMARK) . "' />\n"; } else { $bookmark_icon = "<link rel='apple-touch-icon-precomposed' href='" . mobileview_get_site_menu_icon(MOBILEVIEW_ICON_BOOKMARK) . "' />\n"; } } echo apply_filters('mobileview_bookmark_meta', $bookmark_icon); // Add the default stylesheet to the end, use min if available $minfile = TEMPLATEPATH . '/style.min.css'; if (file_exists($minfile)) { $this->css_files[] = mobileview_get_bloginfo('template_directory') . '/style.min.css?ver=' . mobileview_refreshed_files(); } else { $this->css_files[] = mobileview_get_bloginfo('template_directory') . '/style.css?ver=' . mobileview_refreshed_files(); } // Check for an active skin if ($settings->current_theme_skin != 'none') { $current_theme = $this->get_current_theme_info(); if (isset($current_theme->skins[$settings->current_theme_skin])) { $this->css_files[] = $current_theme->skins[$settings->current_theme_skin]->skin_url; } } $this->css_files = apply_filters('mobileview_theme_css_files', $this->css_files); foreach ($this->css_files as $css) { echo "<link rel='stylesheet' type='text/css' media='screen' href='{$css}' />\n"; } }
function hipnews_the_post_thumbnail($thumbnail) { global $post; $settings = mobileview_get_settings(); $custom_field_name = $settings->hipnews_custom_field_thumbnail_name; switch ($settings->hipnews_icon_type) { case 'thumbnails': if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { return $thumbnail; } break; case 'simple_thumbs': if (function_exists('p75GetThumbnail') && p75HasThumbnail($post->ID)) { return p75GetThumbnail($post->ID); } break; case 'custom_thumbs': if (get_post_meta($post->ID, $custom_field_name, true)) { return get_post_meta($post->ID, $custom_field_name, true); } else { if (get_post_meta($post->ID, 'Thumbnail', true)) { return get_post_meta($post->ID, 'Thumbnail', true); } else { if (get_post_meta($post->ID, 'thumbnail', true)) { return get_post_meta($post->ID, 'thumbnail', true); } } } break; } // return default if none of those exist return mobileview_get_bloginfo('template_directory') . '/images/default-thumbnail.png'; }