Beispiel #1
0
function wptouch_output_menu_icon_packs()
{
    global $current_screen;
    if ($current_screen->base != 'nav-menus' || $current_screen->get_help_tab('locations-overview') != null) {
        return false;
    }
    require_once WPTOUCH_DIR . '/core/admin-icons.php';
    if (wptouch_have_icon_packs()) {
        ?>
		<div id="icon-picker">
			<div id="icon-packs">
			<?php 
        while (wptouch_have_icon_packs()) {
            wptouch_the_icon_pack();
            ?>

			<div class="pack" id="pack-<?php 
            echo wptouch_get_icon_pack_class_name();
            ?>
">
		  		<?php 
            if (wptouch_have_icons(wptouch_get_icon_pack_name())) {
                ?>
					<h3><?php 
                echo wptouch_get_icon_pack_name();
                ?>
</h3>
					<ul>
					<?php 
                while (wptouch_have_icons(wptouch_get_icon_pack_name())) {
                    ?>
						<?php 
                    wptouch_the_icon();
                    ?>
						<li>
							<img src="<?php 
                    wptouch_the_icon_url();
                    ?>
" alt="icon" />
						</li>
						<?php 
                }
                ?>
					</ul>
				<?php 
            }
            ?>
			</div>
		<?php 
        }
        ?>
			</div>
		</div>
	<?php 
    }
}
<?php 
require_once WPTOUCH_ADMIN_DIR . '/template-tags/icons.php';
require_once WPTOUCH_DIR . '/include/template-tags/menu.php';
?>

<div id="wptouch-icon-area">
	<div class="pool-wrapper">
		<div class="round-3" id="wptouch-icon-packs">
			<div id="icon-select">
				<label for="active-icon-set"><?php 
_e("Active Icon Set: ", "wptouch-pro");
?>
</label>
				<select name="active-icon-set" id="active-icon-set">
				<?php 
while (wptouch_have_icon_packs()) {
    ?>
					<?php 
    wptouch_the_icon_pack();
    ?>
					<option value="<?php 
    wptouch_the_icon_pack_name();
    ?>
"><?php 
    wptouch_the_icon_pack_name();
    ?>
</option>	
				<?php 
}
?>
				</select>