summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <git@evanprodromou.name>2009-01-28 15:24:37 -0500
committerEvan Prodromou <git@evanprodromou.name>2009-01-28 15:24:37 -0500
commit01fce5df271925ca7ad5de0ca71b6ffea6e214fb (patch)
tree946c4d811cf14072ccfe82650bdf285395100ca7
parent62fd9369ec11fae90f166b53c3fdfc74d9ca85de (diff)
parentf400db5fe42e2f73ced3a21de1a1b12f5cb415a9 (diff)
Merge branch 'master' of evan@dev.controlyourself.ca:/var/www/trunk
-rw-r--r--js/util.js16
-rw-r--r--theme/readme.txt33
2 files changed, 42 insertions, 7 deletions
diff --git a/js/util.js b/js/util.js
index 391e4653d..3ad038612 100644
--- a/js/util.js
+++ b/js/util.js
@@ -202,14 +202,16 @@ function NoticeHover() {
}
function NoticeReply() {
- $('#content .notice').each(function() {
- var notice = $(this);
- $('.notice_reply', $(this)).click(function() {
- var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
- NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
- return false;
+ if ($('#notice_data-text').length > 0) {
+ $('#content .notice').each(function() {
+ var notice = $(this);
+ $('.notice_reply', $(this)).click(function() {
+ var nickname = ($('.author .nickname', notice).length > 0) ? $('.author .nickname', notice) : $('.author .nickname');
+ NoticeReplySet(nickname.text(), $('.notice_id', notice).text());
+ return false;
+ });
});
- });
+ }
}
function NoticeReplySet(nick,id) {
diff --git a/theme/readme.txt b/theme/readme.txt
new file mode 100644
index 000000000..335801385
--- /dev/null
+++ b/theme/readme.txt
@@ -0,0 +1,33 @@
+/** Howto: create a laconica theme
+ *
+ * @package Laconica
+ * @author Sarven Capadisli <csarven@controlyourself.ca>
+ * @copyright 2009 Control Yourself, Inc.
+ * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
+ * @link http://laconi.ca/
+ */
+
+Location of key paths and files under theme/:
+
+./base/css/
+./base/css/display.css
+./base/images/
+
+./default/css/
+./default/css/display.css
+./default/images/
+
+./base/display.css contains layout, typography rules:
+Only alter this file if you want to change the layout of the site. Please note that, any updates to this in future laconica releases may not be compatible with your version.
+
+./default/css/display.css contains only the background images and colour rules:
+This file is a good basis for creating your own theme.
+
+
+1. Copy over the default theme to start off (replace 'mytheme'):
+cp -r ./default ./mytheme
+
+2. Edit your mytheme stylesheet:
+nano ./mytheme/css/display.css
+
+3. Search and replace a colour or a path to the background image of your choice.