comicpress-core/addons/BookmarkWidget/BookmarkWidget.inc

14 lines
496 B
PHP
Raw Normal View History

2009-07-13 02:41:36 +00:00
<?php
class ComicPressAddonBookmarkWidget extends ComicPressAddon {
function init() {
wp_register_sidebar_widget('comic-bookmark', __('Comic Bookmark', 'comicpress'), array(&$this, 'render_widget'), array('description' => __('Let your readers save their place via a cookie.', 'comicpress')));
}
function render_widget() {
$url_root = bloginfo('template_directory') . '/' . substr(dirname(__FILE__), strlen(realpath(get_stylesheet_directory())));
var_dump($url_root);
}
}
?>