Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




press_this_media_buttons [ WordPress Function ]

press_this_media_buttons ( No parameters )
Defined at:



No description yet.

Source


<?php
function press_this_media_buttons() {
            
_e'Add:' );

            if ( 
current_user_can('upload_files') ) {
                
?>
                <a id="photo_button" title="<?php esc_attr_e('Insert an Image'); ?>" href="#">
                <img alt="<?php esc_attr_e('Insert an Image'); ?>" src="<?php echo esc_urladmin_url'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a>
                <?php
            
}
            
?>
            <a id="video_button" title="<?php esc_attr_e('Embed a Video'); ?>" href="#"><img alt="<?php esc_attr_e('Embed a Video'); ?>" src="<?php echo esc_urladmin_url'images/media-button-video.gif?ver=20100531' ) ); ?>"/></a>
            <?php
        
}

        
wp_editor$content'content'$editor_settings );

        
?>
        </div>
    </div>
</div>
</form>
<div id="photo-add-url-div" style="display:none;">
    <table><tr>
    <td><label for="this_photo"><?php _e('URL'?></label></td>
    <td><input type="text" id="this_photo" name="this_photo" class="tb_this_photo text" onkeypress="if(event.keyCode==13) image_selector(this);" /></td>
    </tr><tr>
    <td><label for="this_photo_description"><?php _e('Description'?></label></td>
    <td><input type="text" id="this_photo_description" name="photo_description" class="tb_this_photo_description text" onkeypress="if(event.keyCode==13) image_selector(this);" value="<?php echo esc_attr($title);?>"/></td>
    </tr><tr>
    <td><input type="button" class="button" onclick="image_selector(this)" value="<?php esc_attr_e('Insert Image'); ?>" /></td>
    </tr></table>
</div>
<?php
do_action
('admin_footer');
do_action('admin_print_footer_scripts');
?>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</body>
</html>
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics