Beispiel #1
0
wptouch_admin_the_setting_value();
?>
"><?php 
_e('Undo', 'wptouch-pro');
?>
</a></span>
				<a href="#" rel="desktop-colors-ul" class="tabbed active"><?php 
_e('Desktop theme colors', 'wptouch-pro');
?>
</a> | <a href="#" rel="palette" class="tabbed"><?php 
_e('Palette', 'wptouch-pro');
?>
</a>
			</p>
			<?php 
$colors = wptouch_get_desktop_theme_colors();
?>
			<?php 
if (count($colors)) {
    ?>
			<ul class="desktop-colors-ul">
				<?php 
    foreach ($colors as $color) {
        ?>
					<li class="desktop-colors-color" data-background="<?php 
        echo $color;
        ?>
"></li>
				<?php 
    }
    ?>
Beispiel #2
0
}
?>

<?php 
if (wptouch_admin_is_setting_new()) {
    ?>
	<span class="new">&nbsp;<?php 
    _e('New', 'wptouch-pro');
    ?>
</span>
<?php 
}
?>

<?php 
$colors = json_encode(wptouch_get_desktop_theme_colors());
?>

<input type="text" autocomplete="off" class="wptouch-color" data-desktop-palette='<?php 
echo $colors;
?>
' id="<?php 
wptouch_admin_the_setting_name();
?>
" name="<?php 
wptouch_admin_the_encoded_setting_name();
?>
" value="<?php 
wptouch_admin_the_setting_value();
?>
" placeholder="" />