links_popup_script [ WordPress Function ]
links_popup_script ( $text = 'Links', $width = 400, $height = 400, $file = 'links.all.php', $count = true )
| Parameters: |
|
| Defined at: |
|
Benzer Fonksiyonlar: comments_popup_script, print_footer_scripts, print_head_scripts, _wp_footer_scripts, _print_scripts
Show the link to the links popup and the number of links.
Source
<?php
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
_deprecated_function( __FUNCTION__, '2.1' );
if ( $count )
$counts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links");
$javascript = "<a href=\"#\" onclick=\"javascript:window.open('$file?popup=1', '_blank', 'width=$width,height=$height,scrollbars=yes,status=no'); return false\">";
$javascript .= $text;
if ( $count )
$javascript .= " ($counts)";
$javascript .= "</a>\n\n";
echo $javascript;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- <?php /** function wp_get_links() ** Gets the links associated with ...
$cat = get_category($cat_id); return $cat->cat_name; } /** function links_popup_script() ** This function contributed by Fullo -- http://sprite.csr.unibo. it/fullo/ ...
core.svn.wordpress.org - Docs for page deprecated.php
links_popup_script (line 1088). Show the link to the links popup and the number of links. deprecated: 2.1; deprecated: since: 0.71. void links_popup_script ...
phpdoc.wordpress.org - comments_popup_script (WordPress Function) - WPSeek.com
Similar Functions: comments_popup_link, links_popup_script, is_comments_popup, comment_excerpt, get_comments_popup_template. Displays the JS popup ...
wpseek.com - get_comments_popup_template() WordPress function reference ...
...popup... comments_popup_link() · comments_popup_script() · is_comments_popup() · links_popup_script() · popuplinks() ...
queryposts.com