<?php

get_header();
?>
	
<!-- Custom photos template, looks for FlicrkRSS plugin adds itself as a drop menu option -->
	<div class="<?php 
mobileview_post_classes();
?>
 mobileview-custom-page page-title-area">

		<?php 
if (mobileview_page_has_icon()) {
    ?>
			<img src="<?php 
    mobileview_page_the_icon();
    ?>
" alt="<?php 
    the_title();
    ?>
-page-icon" />
		<?php 
}
?>

		<h2><?php 
_e('Photos', 'mobileviewlang');
?>
</h2>

	</div>	
Esempio n. 2
0
function mobileview_page_get_icon()
{
    global $mobileview;
    if (mobileview_page_has_icon()) {
        if (mobileview_is_custom_page_template()) {
            $page_id = mobileview_get_custom_page_template_id();
        } else {
            $page_id = get_the_ID();
        }
        // If we're not in the loop yet, let's grab the first post and then rewind
        if (!$page_id) {
            if (have_posts()) {
                the_post();
                rewind_posts();
                $page_id = get_the_ID();
            }
        }
        $settings = mobileview_get_settings();
        return mobileview_get_site_menu_icon($page_id);
    } else {
        return false;
    }
}