the_media_upload_tabs [ WordPress Function ]
the_media_upload_tabs ( No parameters )
| Defined at: |
|
Soorgelijke functies: media_upload_tabs, media_upload_image, media_upload_audio, media_upload_html_bypass, media_upload_header
{@internal Missing Short Description}}
Source
<?php
function the_media_upload_tabs() {
global $redir_tab;
$tabs = media_upload_tabs();
$default = 'type';
if ( !empty($tabs) ) {
echo "<ul id='sidemenu'>\n";
if ( isset($redir_tab) && array_key_exists($redir_tab, $tabs) )
$current = $redir_tab;
elseif ( isset($_GET['tab']) && array_key_exists($_GET['tab'], $tabs) )
$current = $_GET['tab'];
else
$current = apply_filters('media_upload_default_tab', $default);
foreach ( $tabs as $callback => $text ) {
$class = '';
if ( $current == $callback )
$class = " class='current'";
$href = add_query_arg(array('tab' => $callback, 's' => false, 'paged' => false, 'post_mime_type' => false, 'm' => false));
$link = "<a href='" . esc_url($href) . "'$class>$text</a>";
echo "\t<li id='" . esc_attr("tab-$callback") . "'>$link</li>\n";
}
echo "</ul>\n";
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- the_media_upload_tabs | A HitchHackers guide through WordPress
Feb 12, 2011 ... function the_media_upload_tabs() { global $redir_tab; $tabs = media_upload_tabs(); if ( !empty($tabs) ) { echo "<ul id='sidemenu'>\n"; ...
hitchhackerguide.com - #7219 (the_media_upload_tabs() always shows first tab as active ...
However the tabbar created by function the_media_upload_tabs() at the top will always show the first tab as active if the parameter is missing: ...
core.trac.wordpress.org - WordPress › Support » Adding to the Media Upload Tabs
Adding to the Media Upload Tabs (2 posts). Anthony · Member Posted 8 months ago #. How do I modify an existing Media Upload tab? like the "From Computer" ...
wordpress.org - PHPXRef 0.7 : WordPress : Detail view of media.php
the_media_upload_tabs() get_image_send_to_editor() ...
phpxref.ftwr.co.uk