From 5854aaf6bf02c23b3a3d4b4eb48714cf18e5d8c2 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 29 Aug 2009 11:13:18 -0400 Subject: [PATCH] still working on layout --- addons/BookmarkWidget/BookmarkWidget.inc | 3 +-- addons/Core/layout_manager/LayoutEditor.js | 8 ++++++-- addons/Core/layout_manager/index.html | 24 ++++++++++++++++------ 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/addons/BookmarkWidget/BookmarkWidget.inc b/addons/BookmarkWidget/BookmarkWidget.inc index f277495..700f6a0 100644 --- a/addons/BookmarkWidget/BookmarkWidget.inc +++ b/addons/BookmarkWidget/BookmarkWidget.inc @@ -9,7 +9,6 @@ class ComicPressAddonBookmarkWidget extends ComicPressAddon { $this->comicpress = $comicpress; add_action('wp_head', array(&$this, 'wp_head')); - $this->comicpress->additional_javascripts[] = '/js/bookmark.js'; wp_enqueue_script('prototype'); wp_enqueue_script('cookiejar', get_template_directory_uri() . '/js/cookiejar.js', array('prototype')); @@ -34,4 +33,4 @@ class ComicPressAddonBookmarkWidget extends ComicPressAddon { } } -?> \ No newline at end of file +?> diff --git a/addons/Core/layout_manager/LayoutEditor.js b/addons/Core/layout_manager/LayoutEditor.js index df38517..68b4f30 100644 --- a/addons/Core/layout_manager/LayoutEditor.js +++ b/addons/Core/layout_manager/LayoutEditor.js @@ -16,7 +16,9 @@ var LayoutEditor = Class.create({ this.section_handles = []; for (i = 0, il = this.sections.length; i < il; ++i) { var sh = Math.floor(this.height * this.sections[i][1]); - var section = new Element("div", { 'style': "height: " + sh + "px" }); + var section = new Element("div", { 'style': "height: " + sh + "px", "class": this.sections[i][0] }); + var inside = new Element("div"); + section.insert(inside); this.container.insert(section); this.section_handles.push(section); } @@ -25,6 +27,8 @@ var LayoutEditor = Class.create({ var myThis = this; $w('left right').each(function(which) { myThis.sidebar_handles[which] = new Element("div", { 'style': 'position: absolute; z-index: 1' }); + var inside = new Element("div"); + myThis.sidebar_handles[which].insert(inside); myThis.container.insert(myThis.sidebar_handles[which]); }); }, @@ -95,4 +99,4 @@ Event.observe(window, 'load', function() { l.register_info(info); l.draw(); } -}); \ No newline at end of file +}); diff --git a/addons/Core/layout_manager/index.html b/addons/Core/layout_manager/index.html index 20b7236..623b3b9 100644 --- a/addons/Core/layout_manager/index.html +++ b/addons/Core/layout_manager/index.html @@ -4,17 +4,29 @@
-
-
+

Sidebars

+ array( + 'name' => 'Left Sidebar' + ) + ) as $key => $info) { ?> +

+ +
- \ No newline at end of file +