示例#1
0
function my_button_init()
{
    // used to insert button in wordpress 2.x editor
    $button_image_url = buttonsnap_dirname(__FILE__) . '/images/mgbrowser.gif';
    buttonsnap_jsbutton($button_image_url, 'myGallery Browser', 'window.open("' . myGalleryURL . 'myfunctions/mygallerybrowser.php?myPath=' . ABSPATH . '", "myGalleryBrowser",  "width=780,height=600,scrollbars=yes");');
}
示例#2
0
 function wpcf_marker_css()
 {
     $wpcf_marker_url = buttonsnap_dirname(__FILE__) . '/wpcf_marker.gif';
     echo "\n\t\t\t.wpcf_marker {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\theight: 15px;\n\t\t\t\t\twidth: 155px\n\t\t\t\t\tmargin-top: 5px;\n\t\t\t\t\tbackground-image: url({$wpcf_marker_url});\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tbackground-position: center;\n\t\t\t}\n\t\t";
 }