Switch language

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




links_popup_script [ WordPress Function ]

links_popup_script ( $text = 'Links', $width = 400, $height = 400, $file = 'links.all.php', $count = true )
Parameters:
  • (string) $text the text of the link
  • (int) $width the width of the popup window
  • (int) $height the height of the popup window
  • (string) $file the page to open in the popup window
  • (bool) $count the number of links in the db
Defined at:



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ý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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