bookmark widget cleanup
This commit is contained in:
parent
68e849717d
commit
f0179bea8e
|
@ -36,6 +36,7 @@ Event.observe(window, 'load', function() {
|
||||||
var bookmark_info = new BookmarkInfo();
|
var bookmark_info = new BookmarkInfo();
|
||||||
var info = bookmark_info.read();
|
var info = bookmark_info.read();
|
||||||
|
|
||||||
|
if ($('comic-bookmark-holder')) {
|
||||||
var hrefs = {};
|
var hrefs = {};
|
||||||
$$('#comic-bookmark-holder a').each(function(a) {
|
$$('#comic-bookmark-holder a').each(function(a) {
|
||||||
var name = $w(a.className).shift();
|
var name = $w(a.className).shift();
|
||||||
|
@ -67,4 +68,5 @@ Event.observe(window, 'load', function() {
|
||||||
Event.observe(hrefs['goto-tag'], 'click', function(e) {
|
Event.observe(hrefs['goto-tag'], 'click', function(e) {
|
||||||
if (hrefs['goto-tag'].href == "#") { Event.stop(e); }
|
if (hrefs['goto-tag'].href == "#") { Event.stop(e); }
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,6 +4,9 @@ if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
|
||||||
<div class="sidebar-head"></div>
|
<div class="sidebar-head"></div>
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
|
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
|
||||||
|
<?php
|
||||||
|
comicpress_comic_bookmark()
|
||||||
|
?>
|
||||||
<?php if (is_cp_theme_layout('standard,v')) { ?>
|
<?php if (is_cp_theme_layout('standard,v')) { ?>
|
||||||
<div class="widget">
|
<div class="widget">
|
||||||
<?php comicpress_calendar(); ?>
|
<?php comicpress_calendar(); ?>
|
||||||
|
|
|
@ -32,5 +32,3 @@ class BookmarkWidget extends WP_Widget {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in New Issue