Exemplo n.º 1
0
                    
                    <select name="dp_icon_boxes_size" id="dp_icon_boxes_size" class="width120">
                    		<option value="small">Small Icon </option>
                    		<option value="medium">Medium Icon </option>
                            <option value="large">Large Icon</option>
                            <option value="extralarge">Extra Large Icon</option>
                    </select>
					
					</td>
				  </tr>
                  <tr>
				   <td nowrap="nowrap"  width="240"><label >Select icon: </label></td>
				   <td>
				   <input type="hidden" id="dp_icon_boxes_icon" />
				   <?php 
echo get_dp_font_manager();
?>
</td>
                </tr>
                  </table>
				<table border="0" cellpadding="4" cellspacing="0">
                  <tr>
					<td nowrap="nowrap" width="240"><label for="dp_icon_boxes_iconcolor" >Select icon color:</label></td>
					                
    				<td width="140"><input type="text" size="27" id="icon_color"  value="#555555" /></td>
    				<td width="60"><input type="text" id="icon_color_picker"  /></td>
				  </tr>
				</td>
				  </tr>
                  <tr>
					<td nowrap="nowrap"><label for="dp_icon_boxes_badge" >Icon Badge:</label></td>
Exemplo n.º 2
0
	jQuery(".preview-icon").html("<i class=\'"+icon+"\'></i>");
	});
	jQuery("#submiticon").click(function() {
	var icon = jQuery(".preview-icon").find(">:first-child").attr('class')
	jQuery(parentpreview,top.document).html('<i class="'+ icon + '"></i>');	 
	self.parent.tb_remove();	
	});
  });

	</script>
<?php 
$fonts = get_option('dp_font_icons');
$upload_dir = wp_upload_dir();
if (is_array($fonts)) {
    foreach ($fonts as $font => $info) {
        echo '<link rel="stylesheet" href="' . $upload_dir['baseurl'] . '/dp_font_icons/' . $info['style'] . '">';
    }
}
?>

</head>
<body>
    <?php 
echo ' <input type ="hidden" name="parentid" id="parentid" value="' . $_GET["parentid"] . '">';
echo ' <input type ="hidden" name="parentpreviewid" id="parentpreviewid" value="' . $_GET["parentpreviewid"] . '">';
$output = get_dp_font_manager();
$output .= '<button id="submiticon">Submit</button>';
echo $output;
?>
</body>
</html>