<?php

get_header();
?>
	

	<div class="<?php 
wptouch_post_classes();
?>
 wptouch-custom-page page-title-area rounded-corners-8px">

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

		<h2><?php 
_e('Links', 'wptouch-pro');
?>
</h2>

	</div>	
Beispiel #2
0
function wptouch_page_get_icon()
{
    global $wptouch_pro;
    if (wptouch_page_has_icon()) {
        if (wptouch_is_custom_page_template()) {
            $page_id = wptouch_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 = wptouch_get_settings();
        if ($settings->custom_menu_name != 'none') {
            $menu_items = array();
            wptouch_build_wordpress_menu_tree(0, 1, $menu_items, true);
            $icon = wptouch_recursive_find_page($page_id, $menu_items);
            if ($icon) {
                return $icon;
            } else {
                return wptouch_get_site_menu_icon(-1000000);
            }
        } else {
            return wptouch_get_site_menu_icon($page_id);
        }
    } else {
        return false;
    }
}