Beispiel #1
0
	<div id="top">
		
		<div class="wrap_940">
		
			<div id="top-inner"<?php 
_wip_top_inner_logo_class();
?>
>
				<a id="site-logo"<?php 
_wip_logo_floated_class();
?>
 href="<?php 
echo home_url();
?>
/"><img src="<?php 
echo wip_get_uploaded_image_url('bd_logo', get_template_directory_uri() . '/images/default-logo.png');
?>
" alt="<?php 
bloginfo('name');
?>
" /></a>



<?php 
if (top_bar_is_need_to_show()) {
    ?>
<div id="top-utilitize"<?php 
    echo _wip_logo_on_right();
    get_bottomvalue_form_value();
    ?>
    function WIP_uploadimage_input($id, $name, $desc = '')
    {
        ?>
	
				<div class="wip-form">
					
					<span class="wip-label"><?php 
        echo $name;
        ?>
</span>
					
					<div class="image_uploader_wrap" id="<?php 
        echo $id;
        ?>
-wrap">

						<input id="<?php 
        echo $id;
        ?>
" type="button" value="<?php 
        esc_attr_e('Select Image', 'wip');
        ?>
" class="button_uploader button" />
						<input type="hidden" name="<?php 
        echo $id;
        ?>
_nonce" value="<?php 
        echo wp_create_nonce($id);
        ?>
" />

						<div class="panel_file_progress"></div>

						<div class="wip-clear"></div>
						
						<span class="wip-image-preview<?php 
        if (wip_get_uploaded_image_url($id)) {
            ?>
 preview-img<?php 
        }
        ?>
">
						<img class="image_preview" id="image_<?php 
        echo $id;
        ?>
" src="<?php 
        echo wip_get_uploaded_image_url($id);
        ?>
" alt="" /><a href="#" class="delete_image" rel="<?php 
        echo $id;
        ?>
" title="<?php 
        print __('Delete image', 'wip');
        ?>
"></a>
						</span>

					</div>
					
					<?php 
        if ($desc != "") {
            ?>
<span class="wip-desc"><?php 
            echo $desc;
            ?>
</span><?php 
        }
        ?>
					
					<div class="wip-clear"></div>
					
				</div>
	
	<?php 
    }