From: Zach Prezkuta
Date: Sun, 10 Feb 2013 21:57:44 +0000 (-0700)
Subject: update to Frost v0.4
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d8678e523111d181bd52de087cf77e9c933fd76;p=friendica.git
update to Frost v0.4
---
diff --git a/view/theme/frost/contact_edit.tpl b/view/theme/frost/contact_edit.tpl
new file mode 100644
index 0000000000..f5710063a2
--- /dev/null
+++ b/view/theme/frost/contact_edit.tpl
@@ -0,0 +1,88 @@
+
+$header
+
+
diff --git a/view/theme/frost/contact_end.tpl b/view/theme/frost/contact_end.tpl
index b6bcac295f..95c78ba7da 100644
--- a/view/theme/frost/contact_end.tpl
+++ b/view/theme/frost/contact_end.tpl
@@ -1,6 +1,2 @@
-
-
+
diff --git a/view/theme/frost/contact_head.tpl b/view/theme/frost/contact_head.tpl
index e69de29bb2..7b89a20e71 100644
--- a/view/theme/frost/contact_head.tpl
+++ b/view/theme/frost/contact_head.tpl
@@ -0,0 +1,4 @@
+
+
diff --git a/view/theme/frost/end.tpl b/view/theme/frost/end.tpl
index eadf480bea..c88426bbf4 100644
--- a/view/theme/frost/end.tpl
+++ b/view/theme/frost/end.tpl
@@ -1,20 +1,25 @@
-
--->#}
+{##}
+
+
+
-
-
-
+{##}
+
+
+
+
diff --git a/view/theme/frost/event.tpl b/view/theme/frost/event.tpl
new file mode 100644
index 0000000000..67de85d5c8
--- /dev/null
+++ b/view/theme/frost/event.tpl
@@ -0,0 +1,10 @@
+{{ for $events as $event }}
+
+
+ {{ if $event.item.author_name }}
$event.item.author_name{{ endif }}
+ $event.html
+ {{ if $event.item.plink }}
{{ endif }}
+ {{ if $event.edit }}
{{ endif }}
+
+
+{{ endfor }}
diff --git a/view/theme/frost/event_end.tpl b/view/theme/frost/event_end.tpl
index ee9a6f6311..8e8dcd33ab 100644
--- a/view/theme/frost/event_end.tpl
+++ b/view/theme/frost/event_end.tpl
@@ -1,7 +1,5 @@
-
+
diff --git a/view/theme/frost/event_form.tpl b/view/theme/frost/event_form.tpl
new file mode 100644
index 0000000000..36a22a8b2d
--- /dev/null
+++ b/view/theme/frost/event_form.tpl
@@ -0,0 +1,50 @@
+$title
+
+
+$desc
+
+
+
+
+
+
+
+
+$s_text
+$s_dsel $s_tsel
+
+$f_text
+$f_dsel $f_tsel
+
+
+
+ $n_text
+
+
+
+ $a_text
+
+
+
+$t_text
+
+
+
+$d_text
+$d_orig
+
+
+$l_text
+$l_orig
+
+
+ $sh_text
+
+
+$acl
+
+
+
+
+
+
diff --git a/view/theme/frost/event_head.tpl b/view/theme/frost/event_head.tpl
index c3f16d5428..44c6090fc1 100644
--- a/view/theme/frost/event_head.tpl
+++ b/view/theme/frost/event_head.tpl
@@ -2,5 +2,6 @@
diff --git a/view/theme/frost/group_drop.tpl b/view/theme/frost/group_drop.tpl
new file mode 100644
index 0000000000..959b77bb21
--- /dev/null
+++ b/view/theme/frost/group_drop.tpl
@@ -0,0 +1,9 @@
+
+
diff --git a/view/theme/frost/head.tpl b/view/theme/frost/head.tpl
index bb6e9e200b..3c25da46d0 100644
--- a/view/theme/frost/head.tpl
+++ b/view/theme/frost/head.tpl
@@ -2,7 +2,7 @@
-
+{##}
diff --git a/view/theme/frost/images/oxygen/LICENSE b/view/theme/frost/images/oxygen/LICENSE
new file mode 100644
index 0000000000..65c5ca88a6
--- /dev/null
+++ b/view/theme/frost/images/oxygen/LICENSE
@@ -0,0 +1,165 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/view/theme/frost/images/oxygen/application-msword.png b/view/theme/frost/images/oxygen/application-msword.png
new file mode 100644
index 0000000000..aa5aaf31a1
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-msword.png differ
diff --git a/view/theme/frost/images/oxygen/application-pdf.png b/view/theme/frost/images/oxygen/application-pdf.png
new file mode 100644
index 0000000000..bc954ff646
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-pdf.png differ
diff --git a/view/theme/frost/images/oxygen/application-vnd.ms-excel.png b/view/theme/frost/images/oxygen/application-vnd.ms-excel.png
new file mode 100644
index 0000000000..aa0d99597e
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-vnd.ms-excel.png differ
diff --git a/view/theme/frost/images/oxygen/application-vnd.ms-powerpoint.png b/view/theme/frost/images/oxygen/application-vnd.ms-powerpoint.png
new file mode 100644
index 0000000000..022b5152ed
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-vnd.ms-powerpoint.png differ
diff --git a/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.presentation.png b/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.presentation.png
new file mode 100644
index 0000000000..cb573b5c7c
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.presentation.png differ
diff --git a/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.spreadsheet.png b/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.spreadsheet.png
new file mode 100644
index 0000000000..6b8030edd7
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.spreadsheet.png differ
diff --git a/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.text.png b/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.text.png
new file mode 100644
index 0000000000..1adb56e251
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-vnd.oasis.opendocument.text.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-bzip-compressed-tar.png b/view/theme/frost/images/oxygen/application-x-bzip-compressed-tar.png
new file mode 100644
index 0000000000..d7dd1d1fb6
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-bzip-compressed-tar.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-compressed-tar.png b/view/theme/frost/images/oxygen/application-x-compressed-tar.png
new file mode 100644
index 0000000000..adda685059
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-compressed-tar.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-deb.png b/view/theme/frost/images/oxygen/application-x-deb.png
new file mode 100644
index 0000000000..1832d3b73a
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-deb.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-font-otf.png b/view/theme/frost/images/oxygen/application-x-font-otf.png
new file mode 100644
index 0000000000..68fb5dd017
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-font-otf.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-font-ttf.png b/view/theme/frost/images/oxygen/application-x-font-ttf.png
new file mode 100644
index 0000000000..93b92fb26f
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-font-ttf.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-java-archive.png b/view/theme/frost/images/oxygen/application-x-java-archive.png
new file mode 100644
index 0000000000..4883b2d7ab
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-java-archive.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-lzma-compressed-tar.png b/view/theme/frost/images/oxygen/application-x-lzma-compressed-tar.png
new file mode 100644
index 0000000000..6092aedd3e
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-lzma-compressed-tar.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-php.png b/view/theme/frost/images/oxygen/application-x-php.png
new file mode 100644
index 0000000000..f133c87a2e
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-php.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-rar.png b/view/theme/frost/images/oxygen/application-x-rar.png
new file mode 100644
index 0000000000..a9b1b12a64
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-rar.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-rpm.png b/view/theme/frost/images/oxygen/application-x-rpm.png
new file mode 100644
index 0000000000..43149f17e4
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-rpm.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-ruby.png b/view/theme/frost/images/oxygen/application-x-ruby.png
new file mode 100644
index 0000000000..e640ead732
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-ruby.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-shellscript.png b/view/theme/frost/images/oxygen/application-x-shellscript.png
new file mode 100644
index 0000000000..11e27543f6
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-shellscript.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-shockwave-flash.png b/view/theme/frost/images/oxygen/application-x-shockwave-flash.png
new file mode 100644
index 0000000000..ea9ca59ee9
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-shockwave-flash.png differ
diff --git a/view/theme/frost/images/oxygen/application-x-tar.png b/view/theme/frost/images/oxygen/application-x-tar.png
new file mode 100644
index 0000000000..4b7d023f79
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-x-tar.png differ
diff --git a/view/theme/frost/images/oxygen/application-xml.png b/view/theme/frost/images/oxygen/application-xml.png
new file mode 100644
index 0000000000..58d32e4384
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-xml.png differ
diff --git a/view/theme/frost/images/oxygen/application-zip.png b/view/theme/frost/images/oxygen/application-zip.png
new file mode 100644
index 0000000000..9d349a89a6
Binary files /dev/null and b/view/theme/frost/images/oxygen/application-zip.png differ
diff --git a/view/theme/frost/images/oxygen/audio-aac.png b/view/theme/frost/images/oxygen/audio-aac.png
new file mode 100644
index 0000000000..a2d5177d9a
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-aac.png differ
diff --git a/view/theme/frost/images/oxygen/audio-mp4.png b/view/theme/frost/images/oxygen/audio-mp4.png
new file mode 100644
index 0000000000..ae5fd740f6
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-mp4.png differ
diff --git a/view/theme/frost/images/oxygen/audio-mpeg.png b/view/theme/frost/images/oxygen/audio-mpeg.png
new file mode 100644
index 0000000000..5fe3a23594
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-mpeg.png differ
diff --git a/view/theme/frost/images/oxygen/audio-x-flac.png b/view/theme/frost/images/oxygen/audio-x-flac.png
new file mode 100644
index 0000000000..f2f11e8636
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-x-flac.png differ
diff --git a/view/theme/frost/images/oxygen/audio-x-generic.png b/view/theme/frost/images/oxygen/audio-x-generic.png
new file mode 100644
index 0000000000..fe7b052772
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-x-generic.png differ
diff --git a/view/theme/frost/images/oxygen/audio-x-mp2.png b/view/theme/frost/images/oxygen/audio-x-mp2.png
new file mode 100644
index 0000000000..5ac7909920
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-x-mp2.png differ
diff --git a/view/theme/frost/images/oxygen/audio-x-ms-wma.png b/view/theme/frost/images/oxygen/audio-x-ms-wma.png
new file mode 100644
index 0000000000..86cb3e51c8
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-x-ms-wma.png differ
diff --git a/view/theme/frost/images/oxygen/audio-x-vorbis+ogg.png b/view/theme/frost/images/oxygen/audio-x-vorbis+ogg.png
new file mode 100644
index 0000000000..5ac7909920
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-x-vorbis+ogg.png differ
diff --git a/view/theme/frost/images/oxygen/audio-x-wav.png b/view/theme/frost/images/oxygen/audio-x-wav.png
new file mode 100644
index 0000000000..101f8fe5b1
Binary files /dev/null and b/view/theme/frost/images/oxygen/audio-x-wav.png differ
diff --git a/view/theme/frost/images/oxygen/image-x-generic.png b/view/theme/frost/images/oxygen/image-x-generic.png
new file mode 100644
index 0000000000..d1d4e256c8
Binary files /dev/null and b/view/theme/frost/images/oxygen/image-x-generic.png differ
diff --git a/view/theme/frost/images/oxygen/text-css.png b/view/theme/frost/images/oxygen/text-css.png
new file mode 100644
index 0000000000..119aec52cc
Binary files /dev/null and b/view/theme/frost/images/oxygen/text-css.png differ
diff --git a/view/theme/frost/images/oxygen/text-html.png b/view/theme/frost/images/oxygen/text-html.png
new file mode 100644
index 0000000000..34768bfbe5
Binary files /dev/null and b/view/theme/frost/images/oxygen/text-html.png differ
diff --git a/view/theme/frost/images/oxygen/text-x-generic-2.png b/view/theme/frost/images/oxygen/text-x-generic-2.png
new file mode 100644
index 0000000000..70be9bfc3a
Binary files /dev/null and b/view/theme/frost/images/oxygen/text-x-generic-2.png differ
diff --git a/view/theme/frost/images/oxygen/text-x-tex.png b/view/theme/frost/images/oxygen/text-x-tex.png
new file mode 100644
index 0000000000..23d8bf7cae
Binary files /dev/null and b/view/theme/frost/images/oxygen/text-x-tex.png differ
diff --git a/view/theme/frost/images/oxygen/unknown.png b/view/theme/frost/images/oxygen/unknown.png
new file mode 100644
index 0000000000..eb1758ae15
Binary files /dev/null and b/view/theme/frost/images/oxygen/unknown.png differ
diff --git a/view/theme/frost/images/oxygen/video-x-generic.png b/view/theme/frost/images/oxygen/video-x-generic.png
new file mode 100644
index 0000000000..81fe23e7e8
Binary files /dev/null and b/view/theme/frost/images/oxygen/video-x-generic.png differ
diff --git a/view/theme/frost/jot-end.tpl b/view/theme/frost/jot-end.tpl
index 41f50160f1..0ed2a3af6b 100644
--- a/view/theme/frost/jot-end.tpl
+++ b/view/theme/frost/jot-end.tpl
@@ -1,5 +1,3 @@
-
-
-
+
diff --git a/view/theme/frost/jot-header.tpl b/view/theme/frost/jot-header.tpl
index 04169beb58..5291907072 100644
--- a/view/theme/frost/jot-header.tpl
+++ b/view/theme/frost/jot-header.tpl
@@ -1,7 +1,6 @@
diff --git a/view/theme/frost/jot.tpl b/view/theme/frost/jot.tpl
index ae3ab1d3ba..96abeecba7 100644
--- a/view/theme/frost/jot.tpl
+++ b/view/theme/frost/jot.tpl
@@ -38,7 +38,8 @@
-
+ {##}
+
@@ -67,7 +68,7 @@
$jotplugins
-
+{##}
diff --git a/view/theme/frost/js/acl.js b/view/theme/frost/js/acl.js
index 511f84f784..5848ae62cf 100644
--- a/view/theme/frost/js/acl.js
+++ b/view/theme/frost/js/acl.js
@@ -160,7 +160,7 @@ ACL.prototype.update_view = function(){
$j('#jot-public').show();
$j('.profile-jot-net input').attr('disabled', false);
if(typeof editor != 'undefined' && editor != false) {
- $j('#profile-jot-desc').html(ispublic);
+ $j('#profile-jot-desc').html(window.isPublic);
}
} else {
diff --git a/view/theme/frost/js/acl.min.js b/view/theme/frost/js/acl.min.js
index e365f6fee9..6684493e1e 100644
--- a/view/theme/frost/js/acl.min.js
+++ b/view/theme/frost/js/acl.min.js
@@ -1 +1 @@
-function ACL(backend_url,preset){that=this;that.url=backend_url;that.kp_timer=null;if(preset==undefined)preset=[];that.allow_cid=preset[0]||[];that.allow_gid=preset[1]||[];that.deny_cid=preset[2]||[];that.deny_gid=preset[3]||[];that.group_uids=[];that.nw=3;that.list_content=$j("#acl-list-content");that.item_tpl=unescape($j(".acl-list-item[rel=acl-template]").html());that.showall=$j("#acl-showall");if(preset.length==0)that.showall.addClass("selected");that.showall.click(that.on_showall);$j(".acl-button-show").live("click",that.on_button_show);$j(".acl-button-hide").live("click",that.on_button_hide);$j("#acl-search").keypress(that.on_search);$j("#acl-wrapper").parents("form").submit(that.on_submit);that.get(0,100)}ACL.prototype.on_submit=function(){aclfileds=$j("#acl-fields").html("");$j(that.allow_gid).each(function(i,v){aclfileds.append("
")});$j(that.allow_cid).each(function(i,v){aclfileds.append("
")});$j(that.deny_gid).each(function(i,v){aclfileds.append("
")});$j(that.deny_cid).each(function(i,v){aclfileds.append("
")})};ACL.prototype.search=function(){var srcstr=$j("#acl-search").val();that.list_content.html("");that.get(0,100,srcstr)};ACL.prototype.on_search=function(event){if(that.kp_timer)clearTimeout(that.kp_timer);that.kp_timer=setTimeout(that.search,1e3)};ACL.prototype.on_showall=function(event){event.preventDefault();event.stopPropagation();if(that.showall.hasClass("selected")){return false}that.showall.addClass("selected");that.allow_cid=[];that.allow_gid=[];that.deny_cid=[];that.deny_gid=[];that.update_view();return false};ACL.prototype.on_button_show=function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();that.set_allow($j(this).parent().attr("id"));return false};ACL.prototype.on_button_hide=function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();that.set_deny($j(this).parent().attr("id"));return false};ACL.prototype.set_allow=function(itemid){type=itemid[0];id=parseInt(itemid.substr(1));switch(type){case"g":if(that.allow_gid.indexOf(id)<0){that.allow_gid.push(id)}else{that.allow_gid.remove(id)}if(that.deny_gid.indexOf(id)>=0)that.deny_gid.remove(id);break;case"c":if(that.allow_cid.indexOf(id)<0){that.allow_cid.push(id)}else{that.allow_cid.remove(id)}if(that.deny_cid.indexOf(id)>=0)that.deny_cid.remove(id);break}that.update_view()};ACL.prototype.set_deny=function(itemid){type=itemid[0];id=parseInt(itemid.substr(1));switch(type){case"g":if(that.deny_gid.indexOf(id)<0){that.deny_gid.push(id)}else{that.deny_gid.remove(id)}if(that.allow_gid.indexOf(id)>=0)that.allow_gid.remove(id);break;case"c":if(that.deny_cid.indexOf(id)<0){that.deny_cid.push(id)}else{that.deny_cid.remove(id)}if(that.allow_cid.indexOf(id)>=0)that.allow_cid.remove(id);break}that.update_view()};ACL.prototype.update_view=function(){if(that.allow_gid.length==0&&that.allow_cid.length==0&&that.deny_gid.length==0&&that.deny_cid.length==0){that.showall.addClass("selected");$j("#jot-perms-icon").removeClass("lock").addClass("unlock");$j("#jot-public").show();$j(".profile-jot-net input").attr("disabled",false);if(typeof editor!="undefined"&&editor!=false){$j("#profile-jot-desc").html(ispublic)}}else{that.showall.removeClass("selected");$j("#jot-perms-icon").removeClass("unlock").addClass("lock");$j("#jot-public").hide();$j(".profile-jot-net input").attr("disabled","disabled");$j("#profile-jot-desc").html(" ")}$j("#acl-list-content .acl-list-item").each(function(){$j(this).removeClass("groupshow grouphide")});$j("#acl-list-content .acl-list-item").each(function(){itemid=$j(this).attr("id");type=itemid[0];id=parseInt(itemid.substr(1));btshow=$j(this).children(".acl-button-show").removeClass("selected");bthide=$j(this).children(".acl-button-hide").removeClass("selected");switch(type){case"g":var uclass="";if(that.allow_gid.indexOf(id)>=0){btshow.addClass("selected");bthide.removeClass("selected");uclass="groupshow"}if(that.deny_gid.indexOf(id)>=0){btshow.removeClass("selected");bthide.addClass("selected");uclass="grouphide"}$j(that.group_uids[id]).each(function(i,v){if(uclass=="grouphide")$j("#c"+v).removeClass("groupshow");if(uclass!=""){var cls=$j("#c"+v).attr("class");if(cls==undefined)return true;var hiding=cls.indexOf("grouphide");if(hiding==-1)$j("#c"+v).addClass(uclass)}});break;case"c":if(that.allow_cid.indexOf(id)>=0){btshow.addClass("selected");bthide.removeClass("selected")}if(that.deny_cid.indexOf(id)>=0){btshow.removeClass("selected");bthide.addClass("selected")}}})};ACL.prototype.get=function(start,count,search){var postdata={start:start,count:count,search:search};$j.ajax({type:"POST",url:that.url,data:postdata,dataType:"json",success:that.populate})};ACL.prototype.populate=function(data){var height=Math.ceil(data.tot/that.nw)*42;that.list_content.height(height);$j(data.items).each(function(){html="
"+that.item_tpl+"
";html=html.format(this.photo,this.name,this.type,this.id,"",this.network,this.link);if(this.uids!=undefined)that.group_uids[this.id]=this.uids;that.list_content.append(html)});$j(".acl-list-item img[data-src]",that.list_content).each(function(i,el){$j(el).attr("src",$j(el).data("src"))});that.update_view()};
\ No newline at end of file
+function ACL(backend_url,preset){that=this;that.url=backend_url;that.kp_timer=null;if(preset==undefined)preset=[];that.allow_cid=preset[0]||[];that.allow_gid=preset[1]||[];that.deny_cid=preset[2]||[];that.deny_gid=preset[3]||[];that.group_uids=[];that.nw=3;that.list_content=$j("#acl-list-content");that.item_tpl=unescape($j(".acl-list-item[rel=acl-template]").html());that.showall=$j("#acl-showall");if(preset.length==0)that.showall.addClass("selected");that.showall.click(that.on_showall);$j(".acl-button-show").live("click",that.on_button_show);$j(".acl-button-hide").live("click",that.on_button_hide);$j("#acl-search").keypress(that.on_search);$j("#acl-wrapper").parents("form").submit(that.on_submit);that.get(0,100)}ACL.prototype.on_submit=function(){aclfileds=$j("#acl-fields").html("");$j(that.allow_gid).each(function(i,v){aclfileds.append("
")});$j(that.allow_cid).each(function(i,v){aclfileds.append("
")});$j(that.deny_gid).each(function(i,v){aclfileds.append("
")});$j(that.deny_cid).each(function(i,v){aclfileds.append("
")})};ACL.prototype.search=function(){var srcstr=$j("#acl-search").val();that.list_content.html("");that.get(0,100,srcstr)};ACL.prototype.on_search=function(event){if(that.kp_timer)clearTimeout(that.kp_timer);that.kp_timer=setTimeout(that.search,1e3)};ACL.prototype.on_showall=function(event){event.preventDefault();event.stopPropagation();if(that.showall.hasClass("selected")){return false}that.showall.addClass("selected");that.allow_cid=[];that.allow_gid=[];that.deny_cid=[];that.deny_gid=[];that.update_view();return false};ACL.prototype.on_button_show=function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();that.set_allow($j(this).parent().attr("id"));return false};ACL.prototype.on_button_hide=function(event){event.preventDefault();event.stopImmediatePropagation();event.stopPropagation();that.set_deny($j(this).parent().attr("id"));return false};ACL.prototype.set_allow=function(itemid){type=itemid[0];id=parseInt(itemid.substr(1));switch(type){case"g":if(that.allow_gid.indexOf(id)<0){that.allow_gid.push(id)}else{that.allow_gid.remove(id)}if(that.deny_gid.indexOf(id)>=0)that.deny_gid.remove(id);break;case"c":if(that.allow_cid.indexOf(id)<0){that.allow_cid.push(id)}else{that.allow_cid.remove(id)}if(that.deny_cid.indexOf(id)>=0)that.deny_cid.remove(id);break}that.update_view()};ACL.prototype.set_deny=function(itemid){type=itemid[0];id=parseInt(itemid.substr(1));switch(type){case"g":if(that.deny_gid.indexOf(id)<0){that.deny_gid.push(id)}else{that.deny_gid.remove(id)}if(that.allow_gid.indexOf(id)>=0)that.allow_gid.remove(id);break;case"c":if(that.deny_cid.indexOf(id)<0){that.deny_cid.push(id)}else{that.deny_cid.remove(id)}if(that.allow_cid.indexOf(id)>=0)that.allow_cid.remove(id);break}that.update_view()};ACL.prototype.update_view=function(){if(that.allow_gid.length==0&&that.allow_cid.length==0&&that.deny_gid.length==0&&that.deny_cid.length==0){that.showall.addClass("selected");$j("#jot-perms-icon").removeClass("lock").addClass("unlock");$j("#jot-public").show();$j(".profile-jot-net input").attr("disabled",false);if(typeof editor!="undefined"&&editor!=false){$j("#profile-jot-desc").html(window.isPublic)}}else{that.showall.removeClass("selected");$j("#jot-perms-icon").removeClass("unlock").addClass("lock");$j("#jot-public").hide();$j(".profile-jot-net input").attr("disabled","disabled");$j("#profile-jot-desc").html(" ")}$j("#acl-list-content .acl-list-item").each(function(){$j(this).removeClass("groupshow grouphide")});$j("#acl-list-content .acl-list-item").each(function(){itemid=$j(this).attr("id");type=itemid[0];id=parseInt(itemid.substr(1));btshow=$j(this).children(".acl-button-show").removeClass("selected");bthide=$j(this).children(".acl-button-hide").removeClass("selected");switch(type){case"g":var uclass="";if(that.allow_gid.indexOf(id)>=0){btshow.addClass("selected");bthide.removeClass("selected");uclass="groupshow"}if(that.deny_gid.indexOf(id)>=0){btshow.removeClass("selected");bthide.addClass("selected");uclass="grouphide"}$j(that.group_uids[id]).each(function(i,v){if(uclass=="grouphide")$j("#c"+v).removeClass("groupshow");if(uclass!=""){var cls=$j("#c"+v).attr("class");if(cls==undefined)return true;var hiding=cls.indexOf("grouphide");if(hiding==-1)$j("#c"+v).addClass(uclass)}});break;case"c":if(that.allow_cid.indexOf(id)>=0){btshow.addClass("selected");bthide.removeClass("selected")}if(that.deny_cid.indexOf(id)>=0){btshow.removeClass("selected");bthide.addClass("selected")}}})};ACL.prototype.get=function(start,count,search){var postdata={start:start,count:count,search:search};$j.ajax({type:"POST",url:that.url,data:postdata,dataType:"json",success:that.populate})};ACL.prototype.populate=function(data){var height=Math.ceil(data.tot/that.nw)*42;that.list_content.height(height);$j(data.items).each(function(){html="
"+that.item_tpl+"
";html=html.format(this.photo,this.name,this.type,this.id,"",this.network,this.link);if(this.uids!=undefined)that.group_uids[this.id]=this.uids;that.list_content.append(html)});$j(".acl-list-item img[data-src]",that.list_content).each(function(i,el){$j(el).attr("src",$j(el).data("src"))});that.update_view()};
\ No newline at end of file
diff --git a/view/theme/frost/js/main.js b/view/theme/frost/js/main.js
index 78f090db96..5964ed348b 100644
--- a/view/theme/frost/js/main.js
+++ b/view/theme/frost/js/main.js
@@ -84,7 +84,7 @@
});
/* setup field_richtext */
- setupFieldRichtext();
+ //setupFieldRichtext();
/* popup menus */
function close_last_popup_menu(e) {
@@ -279,7 +279,7 @@
}
function liveUpdate() {
- if((src == null) || (stopped) || (! profile_uid)) { $j('.like-rotator').hide(); return; }
+ if((src == null) || (stopped) || (typeof profile_uid == 'undefined') || (! profile_uid)) { $j('.like-rotator').hide(); return; }
if(($j('.comment-edit-text-full').length) || (in_progress)) {
if(livetime) {
clearTimeout(livetime);
@@ -341,6 +341,30 @@
$j('html').height('auto');
//$j(document).scrollTop(vScroll);
}
+
+ // Add Colorbox for viewing Network page images
+ $j("#" + ident + " .wall-item-body a img").each(function(){
+ var aElem = $j(this).parent();
+ var imgHref = aElem.attr("href");
+
+ // We need to make sure we only put a Colorbox on links to Friendica images
+ // We'll try to do this by looking for links of the form
+ // .../photo/ab803d8eg08daf85023adfec08(-0.jpg) (with nothing more following), in hopes
+ // that that will be unique enough
+ if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)) {
+
+ // Add a unique class to all the images of a certain post, to allow scrolling through
+ var cBoxClass = $j(this).closest(".wall-item-body").attr("id") + "-lightbox";
+ $j(this).addClass(cBoxClass);
+
+ aElem.colorbox({
+ maxHeight: '90%',
+ photo: true,
+ rel: cBoxClass
+ });
+ }
+ });
+
prev = ident;
});
@@ -399,13 +423,13 @@
});
}
- function imgbright(node) {
+ /*function imgbright(node) {
$j(node).removeClass("drophide").addClass("drop");
}
function imgdull(node) {
$j(node).removeClass("drop").addClass("drophide");
- }
+ }*/
// Since our ajax calls are asynchronous, we will give a few
// seconds for the first ajax call (setting like/dislike), then
@@ -421,8 +445,6 @@
unpause();
$j('#like-rotator-' + ident.toString()).show();
$j.get('like/' + ident.toString() + '?verb=' + verb, NavUpdate );
-// if(timer) clearTimeout(timer);
-// timer = setTimeout(NavUpdate,3000);
liking = 1;
}
@@ -666,7 +688,7 @@ function fcFileBrowser (field_name, url, type, win) {
return false;
}
-function setupFieldRichtext(){
+/*function setupFieldRichtext(){
tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
@@ -690,7 +712,7 @@ function setupFieldRichtext(){
theme_advanced_path : false,
file_browser_callback : "fcFileBrowser",
});
-}
+}*/
/**
diff --git a/view/theme/frost/js/main.min.js b/view/theme/frost/js/main.min.js
index 03f9d3ac5a..3fea1011be 100644
--- a/view/theme/frost/js/main.min.js
+++ b/view/theme/frost/js/main.min.js
@@ -1 +1 @@
-function openClose(listID){listID="#"+listID.replace(/:/g,"\\:");listID=listID.replace(/\./g,"\\.");listID=listID.replace(/@/g,"\\@");if($j(listID).is(":visible")){$j(listID).hide();$j(listID+"-wrapper").show()}else{$j(listID).show();$j(listID+"-wrapper").hide()}}function openMenu(theID){document.getElementById(theID).style.display="block"}function closeMenu(theID){document.getElementById(theID).style.display="none"}var src=null;var prev=null;var livetime=null;var msie=false;var stopped=false;var totStopped=false;var timer=null;var pr=0;var liking=0;var in_progress=false;var langSelect=false;var commentBusy=false;var last_popup_menu=null;var last_popup_button=null;$j(function(){$j.ajaxSetup({cache:false});msie=$j.browser.msie;collapseHeight();$j(".onoff input").each(function(){val=$j(this).val();id=$j(this).attr("id");$j("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden")});$j(".onoff > a").click(function(event){event.preventDefault();var input=$j(this).siblings("input");var val=1-input.val();var id=input.attr("id");$j("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden");$j("#"+id+"_onoff ."+(val==1?"on":"off")).removeClass("hidden");input.val(val)});setupFieldRichtext();function close_last_popup_menu(e){if(last_popup_menu){if("#"+last_popup_menu.attr("id")!==$j(e.target).attr("rel")){last_popup_menu.hide();last_popup_button.removeClass("selected");last_popup_menu=null;last_popup_button=null}}}$j("a[rel^=#]").click(function(e){close_last_popup_menu(e);menu=$j($j(this).attr("rel"));e.preventDefault();e.stopPropagation();if(menu.attr("popup")=="false")return false;$j(this).parent().toggleClass("selected");menu.slideToggle("fast");if(menu.css("display")=="none"){last_popup_menu=null;last_popup_button=null}else{last_popup_menu=menu;last_popup_button=$j(this).parent()}return false});$j("html").click(function(e){close_last_popup_menu(e)});$j("a.popupbox").colorbox({inline:true,transition:"elastic"});var notifications_tpl=unescape($j("#nav-notifications-template[rel=template]").html());var notifications_all=unescape($j("
").append($j("#nav-notifications-see-all").clone()).html());var notifications_mark=unescape($j("
").append($j("#nav-notifications-mark-all").clone()).html());var notifications_empty=unescape($j("#nav-notifications-menu").html());$j("nav").bind("nav-update",function(e,data){var invalid=$j(data).find("invalid").text();if(invalid==1){window.location.href=window.location.href}var net=$j(data).find("net").text();if(net==0){net="";$j("#net-update").removeClass("show")}else{$j("#net-update").addClass("show")}$j("#net-update").html(net);var home=$j(data).find("home").text();if(home==0){home="";$j("#home-update").removeClass("show")}else{$j("#home-update").addClass("show")}$j("#home-update").html(home);var intro=$j(data).find("intro").text();if(intro==0){intro="";$j("#intro-update").removeClass("show")}else{$j("#intro-update").addClass("show")}$j("#intro-update").html(intro);var mail=$j(data).find("mail").text();if(mail==0){mail="";$j("#mail-update").removeClass("show")}else{$j("#mail-update").addClass("show")}$j("#mail-update").html(mail);var intro=$j(data).find("intro").text();if(intro==0){intro="";$j("#intro-update-li").removeClass("show")}else{$j("#intro-update-li").addClass("show")}$j("#intro-update-li").html(intro);var mail=$j(data).find("mail").text();if(mail==0){mail="";$j("#mail-update-li").removeClass("show")}else{$j("#mail-update-li").addClass("show")}$j("#mail-update-li").html(mail);var eNotif=$j(data).find("notif");if(eNotif.children("note").length==0){$j("#nav-notifications-menu").html(notifications_empty)}else{nnm=$j("#nav-notifications-menu");nnm.html(notifications_all+notifications_mark);eNotif.children("note").each(function(){e=$j(this);text=e.text().format("
"+e.attr("name")+" ");html=notifications_tpl.format(e.attr("href"),e.attr("photo"),text,e.attr("date"),e.attr("seen"));nnm.append(html)});$j("img[data-src]",nnm).each(function(i,el){$j(el).attr("src",$j(el).data("src"))})}notif=eNotif.attr("count");if(notif>0){$j("#nav-notifications-linkmenu").addClass("on")}else{$j("#nav-notifications-linkmenu").removeClass("on")}if(notif==0){notif="";$j("#notify-update").removeClass("show")}else{$j("#notify-update").addClass("show")}$j("#notify-update").html(notif);var eSysmsg=$j(data).find("sysmsgs");eSysmsg.children("notice").each(function(){text=$j(this).text();$j.jGrowl(text,{sticky:false,theme:"notice",life:3e3})});eSysmsg.children("info").each(function(){text=$j(this).text();$j.jGrowl(text,{sticky:false,theme:"info",life:1e3})})});NavUpdate();$j(document).keydown(function(event){if(event.keyCode=="8"){var target=event.target||event.srcElement;if(!/input|textarea/i.test(target.nodeName)){return false}}if(event.keyCode=="19"||event.ctrlKey&&event.which=="32"){event.preventDefault();if(stopped==false){stopped=true;if(event.ctrlKey){totStopped=true}$j("#pause").html('
')}else{unpause()}}else{if(!totStopped){unpause()}}})});function NavUpdate(){if(!stopped){var pingCmd="ping"+(localUser!=0?"?f=&uid="+localUser:"");$j.get(pingCmd,function(data){$j(data).find("result").each(function(){$j("nav").trigger("nav-update",this);if($j("#live-network").length){src="network";liveUpdate()}if($j("#live-profile").length){src="profile";liveUpdate()}if($j("#live-community").length){src="community";liveUpdate()}if($j("#live-notes").length){src="notes";liveUpdate()}if($j("#live-display").length){src="display";liveUpdate()}if($j("#live-photos").length){if(liking){liking=0;window.location.href=window.location.href}}})})}timer=setTimeout(NavUpdate,updateInterval)}function liveUpdate(){if(src==null||stopped||!profile_uid){$j(".like-rotator").hide();return}if($j(".comment-edit-text-full").length||in_progress){if(livetime){clearTimeout(livetime)}livetime=setTimeout(liveUpdate,1e4);return}if(livetime!=null)livetime=null;prev="live-"+src;in_progress=true;var udargs=netargs.length?"/"+netargs:"";var update_url="update_"+src+udargs+"&p="+profile_uid+"&page="+profile_page+"&msie="+(msie?1:0);$j.get(update_url,function(data){in_progress=false;$j(".toplevel_item",data).each(function(){var ident=$j(this).attr("id");if($j("#"+ident).length==0&&profile_page==1){$j("img",this).each(function(){$j(this).attr("src",$j(this).attr("dst"))});$j("#"+prev).after($j(this))}else{var id=$j(".hide-comments-total",this).attr("id");if(typeof id!="undefined"){id=id.split("-")[3];var commentsOpen=$j("#collapsed-comments-"+id).is(":visible")}$j("img",this).each(function(){$j(this).attr("src",$j(this).attr("dst"))});$j("html").height($j("html").height());$j("#"+ident).replaceWith($j(this));if(typeof id!="undefined"){if(commentsOpen)showHideComments(id)}$j("html").height("auto")}prev=ident});$j(".like-rotator").hide();if(commentBusy){commentBusy=false;$j("body").css("cursor","auto")}$j(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");collapseHeight()})}function collapseHeight(elems){var elemName=".wall-item-body:not(.divmore)";if(typeof elems!="undefined"){elemName=elems+" "+elemName}$j(elemName).each(function(){if($j(this).height()>450){$j("html").height($j("html").height());$j(this).divgrow({initialHeight:400,showBrackets:false,speed:0});$j(this).addClass("divmore");$j("html").height("auto")}})}function imgbright(node){$j(node).removeClass("drophide").addClass("drop")}function imgdull(node){$j(node).removeClass("drop").addClass("drophide")}function dolike(ident,verb){unpause();$j("#like-rotator-"+ident.toString()).show();$j.get("like/"+ident.toString()+"?verb="+verb,NavUpdate);liking=1}function dostar(ident){ident=ident.toString();$j.get("starred/"+ident,function(data){if(data.match(/1/)){$j("#starred-"+ident).addClass("starred");$j("#starred-"+ident).removeClass("unstarred");$j("#star-"+ident).addClass("hidden");$j("#unstar-"+ident).removeClass("hidden")}else{$j("#starred-"+ident).addClass("unstarred");$j("#starred-"+ident).removeClass("starred");$j("#star-"+ident).removeClass("hidden");$j("#unstar-"+ident).addClass("hidden")}})}function getPosition(e){var cursor={x:0,y:0};if(e.pageX||e.pageY){cursor.x=e.pageX;cursor.y=e.pageY}else{if(e.clientX||e.clientY){cursor.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;cursor.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}else{if(e.x||e.y){cursor.x=e.x;cursor.y=e.y}}}return cursor}var lockvisible=false;function lockview(event,id){event=event||window.event;cursor=getPosition(event);if(lockvisible){lockviewhide()}else{lockvisible=true;$j.get("lockview/"+id,function(data){$j("#panel").html(data);$j("#panel").css({left:cursor.x+5,top:cursor.y+5});$j("#panel").show()})}}function lockviewhide(){lockvisible=false;$j("#panel").hide()}function post_comment(id){unpause();commentBusy=true;$j("body").css("cursor","wait");$j("#comment-preview-inp-"+id).val("0");$j.post("item",$j("#comment-edit-form-"+id).serialize(),function(data){if(data.success){$j("#comment-edit-wrapper-"+id).hide();$j("#comment-edit-text-"+id).val("");var tarea=document.getElementById("comment-edit-text-"+id);if(tarea)commentClose(tarea,id);if(timer)clearTimeout(timer);timer=setTimeout(NavUpdate,10)}if(data.reload){window.location.href=data.reload}},"json");return false}function preview_comment(id){$j("#comment-preview-inp-"+id).val("1");$j("#comment-edit-preview-"+id).show();$j.post("item",$j("#comment-edit-form-"+id).serialize(),function(data){if(data.preview){$j("#comment-edit-preview-"+id).html(data.preview);$j("#comment-edit-preview-"+id+" a").click(function(){return false})}},"json");return true}function showHideComments(id){if($j("#collapsed-comments-"+id).is(":visible")){$j("#collapsed-comments-"+id).hide();$j("#hide-comments-"+id).html(window.showMore)}else{$j("#collapsed-comments-"+id).show();$j("#hide-comments-"+id).html(window.showFewer);collapseHeight("#collapsed-comments-"+id)}}function preview_post(){$j("#jot-preview").val("1");$j("#jot-preview-content").show();tinyMCE.triggerSave();$j.post("item",$j("#profile-jot-form").serialize(),function(data){if(data.preview){$j("#jot-preview-content").html(data.preview);$j("#jot-preview-content"+" a").click(function(){return false})}},"json");$j("#jot-preview").val("0");return true}function unpause(){totStopped=false;stopped=false;$j("#pause").html("")}function bin2hex(s){var v,i,f=0,a=[];s+="";f=s.length;for(i=0;i
'+data.desc+' '+data.version+'
'+data.credits+'
')})}
\ No newline at end of file
+function openClose(listID){listID="#"+listID.replace(/:/g,"\\:");listID=listID.replace(/\./g,"\\.");listID=listID.replace(/@/g,"\\@");if($j(listID).is(":visible")){$j(listID).hide();$j(listID+"-wrapper").show()}else{$j(listID).show();$j(listID+"-wrapper").hide()}}function openMenu(theID){document.getElementById(theID).style.display="block"}function closeMenu(theID){document.getElementById(theID).style.display="none"}var src=null;var prev=null;var livetime=null;var msie=false;var stopped=false;var totStopped=false;var timer=null;var pr=0;var liking=0;var in_progress=false;var langSelect=false;var commentBusy=false;var last_popup_menu=null;var last_popup_button=null;$j(function(){$j.ajaxSetup({cache:false});msie=$j.browser.msie;collapseHeight();$j(".onoff input").each(function(){val=$j(this).val();id=$j(this).attr("id");$j("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden")});$j(".onoff > a").click(function(event){event.preventDefault();var input=$j(this).siblings("input");var val=1-input.val();var id=input.attr("id");$j("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden");$j("#"+id+"_onoff ."+(val==1?"on":"off")).removeClass("hidden");input.val(val)});function close_last_popup_menu(e){if(last_popup_menu){if("#"+last_popup_menu.attr("id")!==$j(e.target).attr("rel")){last_popup_menu.hide();last_popup_button.removeClass("selected");last_popup_menu=null;last_popup_button=null}}}$j("a[rel^=#]").click(function(e){close_last_popup_menu(e);menu=$j($j(this).attr("rel"));e.preventDefault();e.stopPropagation();if(menu.attr("popup")=="false")return false;$j(this).parent().toggleClass("selected");menu.slideToggle("fast");if(menu.css("display")=="none"){last_popup_menu=null;last_popup_button=null}else{last_popup_menu=menu;last_popup_button=$j(this).parent()}return false});$j("html").click(function(e){close_last_popup_menu(e)});$j("a.popupbox").colorbox({inline:true,transition:"elastic"});var notifications_tpl=unescape($j("#nav-notifications-template[rel=template]").html());var notifications_all=unescape($j("
").append($j("#nav-notifications-see-all").clone()).html());var notifications_mark=unescape($j("
").append($j("#nav-notifications-mark-all").clone()).html());var notifications_empty=unescape($j("#nav-notifications-menu").html());$j("nav").bind("nav-update",function(e,data){var invalid=$j(data).find("invalid").text();if(invalid==1){window.location.href=window.location.href}var net=$j(data).find("net").text();if(net==0){net="";$j("#net-update").removeClass("show")}else{$j("#net-update").addClass("show")}$j("#net-update").html(net);var home=$j(data).find("home").text();if(home==0){home="";$j("#home-update").removeClass("show")}else{$j("#home-update").addClass("show")}$j("#home-update").html(home);var intro=$j(data).find("intro").text();if(intro==0){intro="";$j("#intro-update").removeClass("show")}else{$j("#intro-update").addClass("show")}$j("#intro-update").html(intro);var mail=$j(data).find("mail").text();if(mail==0){mail="";$j("#mail-update").removeClass("show")}else{$j("#mail-update").addClass("show")}$j("#mail-update").html(mail);var intro=$j(data).find("intro").text();if(intro==0){intro="";$j("#intro-update-li").removeClass("show")}else{$j("#intro-update-li").addClass("show")}$j("#intro-update-li").html(intro);var mail=$j(data).find("mail").text();if(mail==0){mail="";$j("#mail-update-li").removeClass("show")}else{$j("#mail-update-li").addClass("show")}$j("#mail-update-li").html(mail);var eNotif=$j(data).find("notif");if(eNotif.children("note").length==0){$j("#nav-notifications-menu").html(notifications_empty)}else{nnm=$j("#nav-notifications-menu");nnm.html(notifications_all+notifications_mark);eNotif.children("note").each(function(){e=$j(this);text=e.text().format("
"+e.attr("name")+" ");html=notifications_tpl.format(e.attr("href"),e.attr("photo"),text,e.attr("date"),e.attr("seen"));nnm.append(html)});$j("img[data-src]",nnm).each(function(i,el){$j(el).attr("src",$j(el).data("src"))})}notif=eNotif.attr("count");if(notif>0){$j("#nav-notifications-linkmenu").addClass("on")}else{$j("#nav-notifications-linkmenu").removeClass("on")}if(notif==0){notif="";$j("#notify-update").removeClass("show")}else{$j("#notify-update").addClass("show")}$j("#notify-update").html(notif);var eSysmsg=$j(data).find("sysmsgs");eSysmsg.children("notice").each(function(){text=$j(this).text();$j.jGrowl(text,{sticky:false,theme:"notice",life:3e3})});eSysmsg.children("info").each(function(){text=$j(this).text();$j.jGrowl(text,{sticky:false,theme:"info",life:1e3})})});NavUpdate();$j(document).keydown(function(event){if(event.keyCode=="8"){var target=event.target||event.srcElement;if(!/input|textarea/i.test(target.nodeName)){return false}}if(event.keyCode=="19"||event.ctrlKey&&event.which=="32"){event.preventDefault();if(stopped==false){stopped=true;if(event.ctrlKey){totStopped=true}$j("#pause").html('
')}else{unpause()}}else{if(!totStopped){unpause()}}})});function NavUpdate(){if(!stopped){var pingCmd="ping"+(localUser!=0?"?f=&uid="+localUser:"");$j.get(pingCmd,function(data){$j(data).find("result").each(function(){$j("nav").trigger("nav-update",this);if($j("#live-network").length){src="network";liveUpdate()}if($j("#live-profile").length){src="profile";liveUpdate()}if($j("#live-community").length){src="community";liveUpdate()}if($j("#live-notes").length){src="notes";liveUpdate()}if($j("#live-display").length){src="display";liveUpdate()}if($j("#live-photos").length){if(liking){liking=0;window.location.href=window.location.href}}})})}timer=setTimeout(NavUpdate,updateInterval)}function liveUpdate(){if(src==null||stopped||typeof profile_uid=="undefined"||!profile_uid){$j(".like-rotator").hide();return}if($j(".comment-edit-text-full").length||in_progress){if(livetime){clearTimeout(livetime)}livetime=setTimeout(liveUpdate,1e4);return}if(livetime!=null)livetime=null;prev="live-"+src;in_progress=true;var udargs=netargs.length?"/"+netargs:"";var update_url="update_"+src+udargs+"&p="+profile_uid+"&page="+profile_page+"&msie="+(msie?1:0);$j.get(update_url,function(data){in_progress=false;$j(".toplevel_item",data).each(function(){var ident=$j(this).attr("id");if($j("#"+ident).length==0&&profile_page==1){$j("img",this).each(function(){$j(this).attr("src",$j(this).attr("dst"))});$j("#"+prev).after($j(this))}else{var id=$j(".hide-comments-total",this).attr("id");if(typeof id!="undefined"){id=id.split("-")[3];var commentsOpen=$j("#collapsed-comments-"+id).is(":visible")}$j("img",this).each(function(){$j(this).attr("src",$j(this).attr("dst"))});$j("html").height($j("html").height());$j("#"+ident).replaceWith($j(this));if(typeof id!="undefined"){if(commentsOpen)showHideComments(id)}$j("html").height("auto")}$j("#"+ident+" .wall-item-body a img").each(function(){var aElem=$j(this).parent();var imgHref=aElem.attr("href");if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)){var cBoxClass=$j(this).closest(".wall-item-body").attr("id")+"-lightbox";$j(this).addClass(cBoxClass);aElem.colorbox({maxHeight:"90%",photo:true,rel:cBoxClass})}});prev=ident});$j(".like-rotator").hide();if(commentBusy){commentBusy=false;$j("body").css("cursor","auto")}$j(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");collapseHeight()})}function collapseHeight(elems){var elemName=".wall-item-body:not(.divmore)";if(typeof elems!="undefined"){elemName=elems+" "+elemName}$j(elemName).each(function(){if($j(this).height()>450){$j("html").height($j("html").height());$j(this).divgrow({initialHeight:400,showBrackets:false,speed:0});$j(this).addClass("divmore");$j("html").height("auto")}})}function dolike(ident,verb){unpause();$j("#like-rotator-"+ident.toString()).show();$j.get("like/"+ident.toString()+"?verb="+verb,NavUpdate);liking=1}function dostar(ident){ident=ident.toString();$j.get("starred/"+ident,function(data){if(data.match(/1/)){$j("#starred-"+ident).addClass("starred");$j("#starred-"+ident).removeClass("unstarred");$j("#star-"+ident).addClass("hidden");$j("#unstar-"+ident).removeClass("hidden")}else{$j("#starred-"+ident).addClass("unstarred");$j("#starred-"+ident).removeClass("starred");$j("#star-"+ident).removeClass("hidden");$j("#unstar-"+ident).addClass("hidden")}})}function getPosition(e){var cursor={x:0,y:0};if(e.pageX||e.pageY){cursor.x=e.pageX;cursor.y=e.pageY}else{if(e.clientX||e.clientY){cursor.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;cursor.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}else{if(e.x||e.y){cursor.x=e.x;cursor.y=e.y}}}return cursor}var lockvisible=false;function lockview(event,id){event=event||window.event;cursor=getPosition(event);if(lockvisible){lockviewhide()}else{lockvisible=true;$j.get("lockview/"+id,function(data){$j("#panel").html(data);$j("#panel").css({left:cursor.x+5,top:cursor.y+5});$j("#panel").show()})}}function lockviewhide(){lockvisible=false;$j("#panel").hide()}function post_comment(id){unpause();commentBusy=true;$j("body").css("cursor","wait");$j("#comment-preview-inp-"+id).val("0");$j.post("item",$j("#comment-edit-form-"+id).serialize(),function(data){if(data.success){$j("#comment-edit-wrapper-"+id).hide();$j("#comment-edit-text-"+id).val("");var tarea=document.getElementById("comment-edit-text-"+id);if(tarea)commentClose(tarea,id);if(timer)clearTimeout(timer);timer=setTimeout(NavUpdate,10)}if(data.reload){window.location.href=data.reload}},"json");return false}function preview_comment(id){$j("#comment-preview-inp-"+id).val("1");$j("#comment-edit-preview-"+id).show();$j.post("item",$j("#comment-edit-form-"+id).serialize(),function(data){if(data.preview){$j("#comment-edit-preview-"+id).html(data.preview);$j("#comment-edit-preview-"+id+" a").click(function(){return false})}},"json");return true}function showHideComments(id){if($j("#collapsed-comments-"+id).is(":visible")){$j("#collapsed-comments-"+id).hide();$j("#hide-comments-"+id).html(window.showMore)}else{$j("#collapsed-comments-"+id).show();$j("#hide-comments-"+id).html(window.showFewer);collapseHeight("#collapsed-comments-"+id)}}function preview_post(){$j("#jot-preview").val("1");$j("#jot-preview-content").show();tinyMCE.triggerSave();$j.post("item",$j("#profile-jot-form").serialize(),function(data){if(data.preview){$j("#jot-preview-content").html(data.preview);$j("#jot-preview-content"+" a").click(function(){return false})}},"json");$j("#jot-preview").val("0");return true}function unpause(){totStopped=false;stopped=false;$j("#pause").html("")}function bin2hex(s){var v,i,f=0,a=[];s+="";f=s.length;for(i=0;i
'+data.desc+' '+data.version+'
'+data.credits+'
')})}
\ No newline at end of file
diff --git a/view/theme/frost/js/theme.js b/view/theme/frost/js/theme.js
index f46192c9be..19c224aa37 100644
--- a/view/theme/frost/js/theme.js
+++ b/view/theme/frost/js/theme.js
@@ -17,18 +17,10 @@ $j(document).ready(function() {
});*/
- if(typeof window.aclInit !="undefined" && typeof acl=="undefined"){
- acl = new ACL(
- baseurl+"/acl",
- [ window.allowCID,window.allowGID,window.denyCID,window.denyGID ]
- );
- }
-
/* enable tinymce on focus and click */
$j("#profile-jot-text").focus(enableOnUser);
$j("#profile-jot-text").click(enableOnUser);
-
$j('.nav-menu-list, .nav-menu-icon').hover(function() {
showNavMenu($j(this).attr('point'));
}, function() {
@@ -78,11 +70,81 @@ $j(document).ready(function() {
return false;
});*/
- if(window.autoCompleteType == "display-head") {
- //$j(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
- // make auto-complete work in more places
- //$j(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
- $j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ $j('#event-share-checkbox').change(function() {
+
+ if ($j('#event-share-checkbox').is(':checked')) {
+ $j('#acl-wrapper').show();
+ }
+ else {
+ $j('#acl-wrapper').hide();
+ }
+ }).trigger('change');
+
+// For event_end.tpl
+/* $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
+ var selstr;
+ $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
+ selstr = $j(this).text();
+ $j('#jot-public').hide();
+ });
+ if(selstr == null) {
+ $j('#jot-public').show();
+ }
+
+ }).trigger('change');*/
+
+
+ if(typeof window.AjaxUpload != "undefined") {
+ var uploader = new window.AjaxUpload(
+ window.imageUploadButton,
+ { action: 'wall_upload/'+window.nickname,
+ name: 'userfile',
+ onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
+ onComplete: function(file,response) {
+ addeditortext(window.jotId, response);
+ $j('#profile-rotator').hide();
+ }
+ }
+ );
+
+ if($j('#wall-file-upload').length) {
+ var file_uploader = new window.AjaxUpload(
+ 'wall-file-upload',
+ { action: 'wall_attach/'+window.nickname,
+ name: 'userfile',
+ onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
+ onComplete: function(file,response) {
+ addeditortext(window.jotId, response);
+ $j('#profile-rotator').hide();
+ }
+ }
+ );
+ }
+ }
+
+
+ if(typeof window.aclInit !="undefined" && typeof acl=="undefined"){
+ acl = new ACL(
+ baseurl+"/acl",
+ [ window.allowCID,window.allowGID,window.denyCID,window.denyGID ]
+ );
+ }
+
+
+ if(window.aclType == "settings-head" || window.aclType == "photos_head" || window.aclType == "event_head") {
+ $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
+ var selstr;
+ $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
+ selstr = $j(this).text();
+ $j('#jot-perms-icon').removeClass('unlock').addClass('lock');
+ $j('#jot-public').hide();
+ });
+ if(selstr == null) {
+ $j('#jot-perms-icon').removeClass('lock').addClass('unlock');
+ $j('#jot-public').show();
+ }
+
+ }).trigger('change');
}
if(window.aclType == "event_head") {
@@ -144,45 +206,6 @@ $j(document).ready(function() {
if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]);
}
- $j('#event-share-checkbox').change(function() {
-
- if ($j('#event-share-checkbox').is(':checked')) {
- $j('#acl-wrapper').show();
- }
- else {
- $j('#acl-wrapper').hide();
- }
- }).trigger('change');
-
-
- if(window.aclType == "settings-head" || window.aclType == "photos_head" || window.aclType == "event_head") {
- $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
- var selstr;
- $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
- selstr = $j(this).text();
- $j('#jot-perms-icon').removeClass('unlock').addClass('lock');
- $j('#jot-public').hide();
- });
- if(selstr == null) {
- $j('#jot-perms-icon').removeClass('lock').addClass('unlock');
- $j('#jot-public').show();
- }
-
- }).trigger('change');
- }
-// For event_end.tpl
-/* $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
- var selstr;
- $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
- selstr = $j(this).text();
- $j('#jot-public').hide();
- });
- if(selstr == null) {
- $j('#jot-public').show();
- }
-
- }).trigger('change');*/
-
switch(window.autocompleteType) {
case 'msg-header':
@@ -203,55 +226,54 @@ $j(document).ready(function() {
});
a.setOptions({ params: { type: 'a' }});
break;
+ case 'display-head':
+ $j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ break;
default:
break;
}
+/* if(window.autoCompleteType == "display-head") {
+ //$j(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ // make auto-complete work in more places
+ //$j(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ $j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ }*/
- if(typeof window.AjaxUpload != "undefined") {
- switch(window.ajaxType) {
- case 'jot-header':
- var uploader = new window.AjaxUpload(
- 'wall-image-upload',
- { action: 'wall_upload/'+window.nickname,
- name: 'userfile',
- onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
- onComplete: function(file,response) {
- addeditortext(response);
- $j('#profile-rotator').hide();
- }
- }
- );
-
- var file_uploader = new window.AjaxUpload(
- 'wall-file-upload',
- { action: 'wall_attach/'+window.nickname,
- name: 'userfile',
- onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
- onComplete: function(file,response) {
- addeditortext(response);
- $j('#profile-rotator').hide();
- }
- }
- );
- break;
- case 'msg-header':
- var uploader = new window.AjaxUpload(
- 'prvmail-upload',
- { action: 'wall_upload/' + window.nickname,
- name: 'userfile',
- onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
- onComplete: function(file,response) {
- tinyMCE.execCommand('mceInsertRawHTML',false,response);
- $j('#profile-rotator').hide();
- }
- }
- );
- break;
- default:
- break;
+ // Add Colorbox for viewing Network page images
+ //var cBoxClasses = new Array();
+ $j(".wall-item-body a img").each(function(){
+ var aElem = $j(this).parent();
+ var imgHref = aElem.attr("href");
+
+ // We need to make sure we only put a Colorbox on links to Friendica images
+ // We'll try to do this by looking for links of the form
+ // .../photo/ab803d8eg08daf85023adfec08 (with nothing more following), in hopes
+ // that that will be unique enough
+ if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)) {
+
+ // Add a unique class to all the images of a certain post, to allow scrolling through
+ var cBoxClass = $j(this).closest(".wall-item-body").attr("id") + "-lightbox";
+ $j(this).addClass(cBoxClass);
+
+// if( $j.inArray(cBoxClass, cBoxClasses) < 0 ) {
+// cBoxClasses.push(cBoxClass);
+// }
+
+ aElem.colorbox({
+ maxHeight: '90%',
+ photo: true, // Colorbox doesn't recognize a URL that don't end in .jpg, etc. as a photo
+ rel: cBoxClass //$j(this).attr("class").match(/wall-item-body-[\d]+-lightbox/)[0]
+ });
}
- }
+ });
+ /*$j.each(cBoxClasses, function(){
+ $j('.'+this).colorbox({
+ maxHeight: '90%',
+ photo: true,
+ rel: this
+ });
+ });*/
});
@@ -274,7 +296,7 @@ $j(function(){
$.colorbox({
width: 800,
height: '90%',
- href: "$baseurl/admin/themes/" + $j("#id_theme :selected").val(),
+ href: baseurl + "/admin/themes/" + $("#id_theme :selected").val(),
onComplete: function(){
$j("div#fancybox-content form").submit(function(e){
var url = $j(this).attr('action');
@@ -321,74 +343,12 @@ if(typeof window.photoEdit != 'undefined') {
});
}
-switch(window.ajaxType) {
- case 'jot-header':
- function jotGetLink() {
- reply = prompt(window.linkURL);
- if(reply && reply.length) {
- reply = bin2hex(reply);
- $j('#profile-rotator').show();
- $j.get('parse_url?binurl=' + reply, function(data) {
- addeditortext(data);
- $j('#profile-rotator').hide();
- });
- }
- }
-
- function linkdrop(event) {
- var reply = event.dataTransfer.getData("text/uri-list");
- event.target.textContent = reply;
- event.preventDefault();
- if(reply && reply.length) {
- reply = bin2hex(reply);
- $j('#profile-rotator').show();
- $j.get('parse_url?binurl=' + reply, function(data) {
- if (!editor) $j("#profile-jot-text").val("");
- initEditor(function(){
- addeditortext(data);
- $j('#profile-rotator').hide();
- });
- });
- }
- }
- break;
- case 'msg-header':
- case 'wallmsg-header':
- function jotGetLink() {
- reply = prompt(window.linkURL);
- if(reply && reply.length) {
- $j('#profile-rotator').show();
- $j.get('parse_url?url=' + reply, function(data) {
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
- $j('#profile-rotator').hide();
- });
- }
- }
-
- function linkdrop(event) {
- var reply = event.dataTransfer.getData("text/uri-list");
- event.target.textContent = reply;
- event.preventDefault();
- if(reply && reply.length) {
- $j('#profile-rotator').show();
- $j.get('parse_url?url=' + reply, function(data) {
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
- $j('#profile-rotator').hide();
- });
- }
- }
-
- break;
- default:
- break;
-}
-
-
function showEvent(eventid) {
$j.get(
baseurl + '/events/?id='+eventid,
function(data){
$j.colorbox({html:data});
+ $j.colorbox.resize();
}
);
}
@@ -498,167 +458,68 @@ function hideNavMenu(menuID) {
-function insertFormatting(comment,BBcode,id) {
-
- var tmpStr = $j("#comment-edit-text-" + id).val();
- if(tmpStr == comment) {
- tmpStr = "";
- $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
- $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
- openMenu("comment-edit-submit-wrapper-" + id);
- $j("#comment-edit-text-" + id).val(tmpStr);
- }
-
- textarea = document.getElementById("comment-edit-text-" +id);
- if (document.selection) {
- textarea.focus();
- selected = document.selection.createRange();
- if (BBcode == "url"){
- selected.text = "["+BBcode+"=http://]" + selected.text + "[/"+BBcode+"]";
- } else
- selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
- } else if (textarea.selectionStart || textarea.selectionStart == "0") {
- var start = textarea.selectionStart;
- var end = textarea.selectionEnd;
- if (BBcode == "url"){
- textarea.value = textarea.value.substring(0, start) + "["+BBcode+"=http://]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
- } else
- textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
- }
- return true;
-}
-
-function cmtBbOpen(id) {
- $j("#comment-edit-bb-" + id).show();
-}
-function cmtBbClose(id) {
- $j("#comment-edit-bb-" + id).hide();
-}
+/*
+ * TinyMCE/Editor
+ */
-function confirmDelete() { return confirm(window.delItem); }
+function InitMCEEditor(editorData) {
+ var tinyMCEInitConfig = {
+ theme : "advanced",
+ //mode : // SPECIFIC
+ //editor_selector: // SPECIFIC
+ //elements: // SPECIFIC
+ plugins : "bbcode,paste,autoresize,inlinepopups",
+ theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : "",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "center",
+ theme_advanced_blockformats : "blockquote,code",
+ gecko_spellcheck : true,
+ paste_text_sticky : true, // COUPLED WITH paste PLUGIN
+ entity_encoding : "raw",
+ add_unload_trigger : false,
+ remove_linebreaks : false,
+ //force_p_newlines : false,
+ //force_br_newlines : true,
+ forced_root_block : 'div',
+ //convert_urls: false, //SPECIFIC?
+ content_css: baseurl + "/view/custom_tinymce.css",
+ theme_advanced_path : false,
+ file_browser_callback : "fcFileBrowser",
+ //setup : // SPECIFIC
+ };
-function commentOpen(obj,id) {
- if(obj.value == window.commentEmptyText) {
- obj.value = "";
- $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
- $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
- $j("#mod-cmnt-wrap-" + id).show();
- openMenu("comment-edit-submit-wrapper-" + id);
+ if(window.editSelect != 'none') {
+ $j.extend(tinyMCEInitConfig, editorData);
+ tinyMCE.init(tinyMCEInitConfig);
}
-}
-function commentClose(obj,id) {
- if(obj.value == "") {
- obj.value = window.commentEmptyText;
- $j("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
- $j("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
- $j("#mod-cmnt-wrap-" + id).hide();
- closeMenu("comment-edit-submit-wrapper-" + id);
+ else if(typeof editorData.plaintextFn == 'function') {
+ (editorData.plaintextFn)();
}
}
+var editor = false;
+var textlen = 0;
-function commentInsert(obj,id) {
- var tmpStr = $j("#comment-edit-text-" + id).val();
- if(tmpStr == window.commentEmptyText) {
- tmpStr = "";
- $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
- $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
- openMenu("comment-edit-submit-wrapper-" + id);
- }
- var ins = $j(obj).html();
- ins = ins.replace("<","<");
- ins = ins.replace(">",">");
- ins = ins.replace("&","&");
- ins = ins.replace(""",'"');
- $j("#comment-edit-text-" + id).val(tmpStr + ins);
-}
+function initEditor(cb){
+ if(editor==false) {
+ editor = true;
+ $j("#profile-jot-text-loading").show();
-function qCommentInsert(obj,id) {
- var tmpStr = $j("#comment-edit-text-" + id).val();
- if(tmpStr == window.commentEmptyText) {
- tmpStr = "";
- $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
- $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
- openMenu("comment-edit-submit-wrapper-" + id);
- }
- var ins = $j(obj).val();
- ins = ins.replace("<","<");
- ins = ins.replace(">",">");
- ins = ins.replace("&","&");
- ins = ins.replace(""",'"');
- $j("#comment-edit-text-" + id).val(tmpStr + ins);
- $j(obj).val("");
-}
-
-/*function showHideCommentBox(id) {
- if( $j('#comment-edit-form-' + id).is(':visible')) {
- $j('#comment-edit-form-' + id).hide();
- }
- else {
- $j('#comment-edit-form-' + id).show();
- }
-}*/
-
-
-
-function enableOnUser(){
- if (editor) return;
- $j(this).val("");
- initEditor();
-}
-
-
-var editor=false;
-var textlen = 0;
-var plaintext = window.editSelect;
-var ispublic = window.isPublic;
-
-function initEditor(cb){
- if (editor==false){
- $j("#profile-jot-text-loading").show();
- if(plaintext == 'none') {
- $j("#profile-jot-text-loading").hide();
- $j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
- $j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
- editor = true;
- $j("a#jot-perms-icon").colorbox({
- 'inline' : true,
- 'transition' : 'elastic'
- });
- $j(".jothidden").show();
- if (typeof cb!="undefined") cb();
- return;
- }
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: window.editSelect,
- auto_focus: "profile-jot-text",
- plugins : "bbcode,paste,autoresize, inlinepopups",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: window.baseURL + "/view/custom_tinymce.css",
- theme_advanced_path : false,
- file_browser_callback : "fcFileBrowser",
- setup : function(ed) {
- cPopup = null;
- ed.onKeyDown.add(function(ed,e) {
- if(cPopup !== null)
- cPopup.onkey(e);
- });
+ var editorData = {
+ mode : "specific_textareas",
+ editor_selector : "profile-jot-text",
+ auto_focus : "profile-jot-text",
+ //plugins : "bbcode,paste,autoresize,inlinepopups",
+ //paste_text_sticky : true,
+ convert_urls : false,
+ setup : function(ed) {
+ cPopup = null;
+ ed.onKeyDown.add(function(ed,e) {
+ if(cPopup !== null)
+ cPopup.onkey(e);
+ });
ed.onKeyUp.add(function(ed, e) {
var txt = tinyMCE.activeEditor.getContent();
@@ -676,7 +537,7 @@ function initEditor(cb){
textlen = txt.length;
if(textlen != 0 && $j('#jot-perms-icon').is('.unlock')) {
- $j('#profile-jot-desc').html(ispublic);
+ $j('#profile-jot-desc').html(window.isPublic);
}
else {
$j('#profile-jot-desc').html(' ');
@@ -709,9 +570,17 @@ function initEditor(cb){
if (typeof cb!="undefined") cb();
});
+ },
+ plaintextFn : function() {
+ $j("#profile-jot-text-loading").hide();
+ $j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
+ $j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
+ $j(".jothidden").show();
+ if (typeof cb!="undefined") cb();
}
- });
- editor = true;
+ };
+ InitMCEEditor(editorData);
+
// setup acl popup
$j("a#jot-perms-icon").colorbox({
'inline' : true,
@@ -722,213 +591,135 @@ function initEditor(cb){
}
}
+function enableOnUser(){
+ if (editor) return;
+ $j(this).val("");
+ initEditor();
+}
+
function msgInitEditor() {
- if(plaintext != 'none') {
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: /(profile-jot-text|prvmail-text)/,
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: baseurl + "/view/custom_tinymce.css",
- //Character count
- theme_advanced_path : false,
- setup : function(ed) {
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- var editorId = ed.editorId;
- var textarea = $j('#'+editorId);
- if (typeof(textarea.attr('tabindex')) != "undefined") {
- $j('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
- textarea.attr('tabindex', null);
+ var editorData = {
+ mode : "specific_textareas",
+ editor_selector : "prvmail-text",
+ //plugins : "bbcode,paste",
+ //paste_text_sticky : true,
+ convert_urls : false,
+ //theme_advanced_path : false,
+ setup : function(ed) {
+ cPopup = null;
+ ed.onKeyDown.add(function(ed,e) {
+ if(cPopup !== null)
+ cPopup.onkey(e);
+ });
+
+ ed.onKeyUp.add(function(ed, e) {
+ var txt = tinyMCE.activeEditor.getContent();
+ match = txt.match(/@([^ \n]+)$/);
+ if(match!==null) {
+ if(cPopup === null) {
+ cPopup = new ACPopup(this,baseurl+"/acl");
}
- });
- }
- });
- }
- else
- $j("#prvmail-text").contact_autocomplete(baseurl+"/acl");
-}
+ if(cPopup.ready && match[1]!==cPopup.searchText) cPopup.search(match[1]);
+ if(! cPopup.ready) cPopup = null;
+ }
+ else {
+ if(cPopup !== null) { cPopup.close(); cPopup = null; }
+ }
+ textlen = txt.length;
+ if(textlen != 0 && $j('#jot-perms-icon').is('.unlock')) {
+ $j('#profile-jot-desc').html(window.isPublic);
+ }
+ else {
+ $j('#profile-jot-desc').html(' ');
+ }
+ });
-function profInitEditor() {
- tinyMCE.init({
- theme : "advanced",
- mode : window.editSelect,
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- content_css: baseurl + "/view/custom_tinymce.css",
- theme_advanced_path : false,
- setup : function(ed) {
ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- });
+ ed.pasteAsPlainText = true;
+ var editorId = ed.editorId;
+ var textarea = $j('#'+editorId);
+ if (typeof(textarea.attr('tabindex')) != "undefined") {
+ $j('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
+ textarea.attr('tabindex', null);
+ }
+ });
+ },
+ plaintextFn : function() {
+ $j("#prvmail-text").contact_autocomplete(baseurl+"/acl");
}
+ }
+ InitMCEEditor(editorData);
+}
- });
+
+function contactInitEditor() {
+ var editorData = {
+ mode : "exact",
+ elements : "contact-edit-info",
+ //plugins : "bbcode"
+ }
+ InitMCEEditor(editorData);
}
+
function eventInitEditor() {
- tinyMCE.init({
- theme : "advanced",
+ var editorData = {
mode : "textareas",
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- content_css: baseurl + "/view/custom_tinymce.css",
- theme_advanced_path : false,
+ //plugins : "bbcode,paste",
+ //paste_text_sticky : true,
+ //theme_advanced_path : false,
setup : function(ed) {
ed.onInit.add(function(ed) {
ed.pasteAsPlainText = true;
});
}
-
- });
-}
-
-function contactInitEditor () {
- tinyMCE.init({
- theme : "advanced",
- mode : window.editSelect,
- elements: "contact-edit-info",
- plugins : "bbcode",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_styles : "blockquote,code",
- gecko_spellcheck : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- content_css: baseurl + "/view/custom_tinymce.css"
-
-
- });
+ }
+ InitMCEEditor(editorData);
}
-function wallInitEditor() {
- var plaintext = window.editSelect;
- if(plaintext != 'none') {
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: /(profile-jot-text|prvmail-text)/,
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: baseurl + "/view/custom_tinymce.css",
- //Character count
- theme_advanced_path : false,
- setup : function(ed) {
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- var editorId = ed.editorId;
- var textarea = $j('#'+editorId);
- if (typeof(textarea.attr('tabindex')) != "undefined") {
- $j('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
- textarea.attr('tabindex', null);
- }
- });
- }
- });
+function profInitEditor() {
+ var editorData = {
+ mode : "textareas",
+ //plugins : "bbcode,paste",
+ //paste_text_sticky : true,
+ //theme_advanced_path : false,
+ setup : function(ed) {
+ ed.onInit.add(function(ed) {
+ ed.pasteAsPlainText = true;
+ });
+ }
}
- else
- $j("#prvmail-text").contact_autocomplete(baseurl+"/acl");
+ InitMCEEditor(editorData);
}
-function deleteCheckedItems(delID) {
- if(confirm(window.delItems)) {
- var checkedstr = '';
- $j(delID).hide();
- $j(delID + '-rotator').show();
- $j('.item-select').each( function() {
- if($j(this).is(':checked')) {
- if(checkedstr.length != 0) {
- checkedstr = checkedstr + ',' + $j(this).val();
- }
- else {
- checkedstr = $j(this).val();
- }
- }
- });
- $j.post('item', { dropitems: checkedstr }, function(data) {
- window.location.reload();
- });
+/*
+ * Jot
+ */
+
+function addeditortext(textElem, data) {
+ if(window.editSelect == 'none') {
+ var currentText = $j(textElem).val();
+ $j(textElem).val(currentText + data);
}
+ else
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
}
-
function jotVideoURL() {
reply = prompt(window.vidURL);
if(reply && reply.length) {
- addeditortext('[video]' + reply + '[/video]');
+ addeditortext("#profile-jot-text", '[video]' + reply + '[/video]');
}
}
function jotAudioURL() {
reply = prompt(window.audURL);
if(reply && reply.length) {
- addeditortext('[audio]' + reply + '[/audio]');
+ addeditortext("#profile-jot-text", '[audio]' + reply + '[/audio]');
}
}
@@ -978,7 +769,7 @@ function jotShare(id) {
$j.get('share/' + id, function(data) {
if (!editor) $j("#profile-jot-text").val("");
initEditor(function(){
- addeditortext(data);
+ addeditortext("#profile-jot-text", data);
$j('#like-rotator-' + id).hide();
$j(window).scrollTop(0);
});
@@ -986,12 +777,87 @@ function jotShare(id) {
});
}
+function jotClearLocation() {
+ $j('#jot-coord').val('');
+ $j('#profile-nolocation-wrapper').hide();
+}
+
+
+function jotGetLink() {
+ reply = prompt(window.linkURL);
+ if(reply && reply.length) {
+ reply = bin2hex(reply);
+ $j('#profile-rotator').show();
+ $j.get('parse_url?binurl=' + reply, function(data) {
+ addeditortext(window.jotId, data);
+ $j('#profile-rotator').hide();
+ });
+ }
+}
+
+
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
if(linkFound)
event.preventDefault();
}
+
+function linkdrop(event) {
+ var reply = event.dataTransfer.getData("text/uri-list");
+ //event.target.textContent = reply;
+ event.preventDefault();
+ if(reply && reply.length) {
+ reply = bin2hex(reply);
+ $j('#profile-rotator').show();
+ $j.get('parse_url?binurl=' + reply, function(data) {
+/* if(window.jotId == "#profile-jot-text") {
+ if (!editor) $j("#profile-jot-text").val("");
+ initEditor(function(){
+ addeditortext(window.jotId, data);
+ $j('#profile-rotator').hide();
+ });
+ }
+ else {*/
+ addeditortext(window.jotId, data);
+ $j('#profile-rotator').hide();
+// }
+ });
+ }
+}
+
+
+if(typeof window.geoTag === 'function') window.geoTag();
+
+
+/*
+ * Items
+ */
+
+function confirmDelete() { return confirm(window.delItem); }
+
+function deleteCheckedItems(delID) {
+ if(confirm(window.delItems)) {
+ var checkedstr = '';
+
+ $j(delID).hide();
+ $j(delID + '-rotator').show();
+ $j('.item-select').each( function() {
+ if($j(this).is(':checked')) {
+ if(checkedstr.length != 0) {
+ checkedstr = checkedstr + ',' + $j(this).val();
+ }
+ else {
+ checkedstr = $j(this).val();
+ }
+ }
+ });
+ $j.post('item', { dropitems: checkedstr }, function(data) {
+ window.location.reload();
+ });
+ }
+}
+
function itemTag(id) {
reply = prompt(window.term);
if(reply && reply.length) {
@@ -1015,6 +881,7 @@ function itemFiler(id) {
$j.get('filer/', function(data){
$j.colorbox({html:data});
+ $j.colorbox.resize();
$j("#id_term").keypress(function(){
$j(this).css("border-color",bordercolor);
})
@@ -1042,20 +909,107 @@ function itemFiler(id) {
}
-function jotClearLocation() {
- $j('#jot-coord').val('');
- $j('#profile-nolocation-wrapper').hide();
+
+/*
+ * Comments
+ */
+
+function insertFormatting(comment,BBcode,id) {
+
+ var tmpStr = $j("#comment-edit-text-" + id).val();
+ if(tmpStr == comment) {
+ tmpStr = "";
+ $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ openMenu("comment-edit-submit-wrapper-" + id);
+ $j("#comment-edit-text-" + id).val(tmpStr);
+ }
+
+ textarea = document.getElementById("comment-edit-text-" +id);
+ if (document.selection) {
+ textarea.focus();
+ selected = document.selection.createRange();
+ if (BBcode == "url"){
+ selected.text = "["+BBcode+"=http://]" + selected.text + "[/"+BBcode+"]";
+ } else
+ selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
+ } else if (textarea.selectionStart || textarea.selectionStart == "0") {
+ var start = textarea.selectionStart;
+ var end = textarea.selectionEnd;
+ if (BBcode == "url"){
+ textarea.value = textarea.value.substring(0, start) + "["+BBcode+"=http://]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
+ } else
+ textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
+ }
+ return true;
+}
+
+function cmtBbOpen(id) {
+ $j("#comment-edit-bb-" + id).show();
+}
+function cmtBbClose(id) {
+ $j("#comment-edit-bb-" + id).hide();
}
-function addeditortext(data) {
- if(plaintext == 'none') {
- var currentText = $j("#profile-jot-text").val();
- $j("#profile-jot-text").val(currentText + data);
+function commentOpen(obj,id) {
+ if(obj.value == window.commentEmptyText) {
+ obj.value = "";
+ $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ $j("#mod-cmnt-wrap-" + id).show();
+ openMenu("comment-edit-submit-wrapper-" + id);
+ }
+}
+function commentClose(obj,id) {
+ if(obj.value == "") {
+ obj.value = window.commentEmptyText;
+ $j("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
+ $j("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
+ $j("#mod-cmnt-wrap-" + id).hide();
+ closeMenu("comment-edit-submit-wrapper-" + id);
}
- else
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
}
-if(typeof window.geoTag === 'function') window.geoTag();
+function commentInsert(obj,id) {
+ var tmpStr = $j("#comment-edit-text-" + id).val();
+ if(tmpStr == window.commentEmptyText) {
+ tmpStr = "";
+ $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ openMenu("comment-edit-submit-wrapper-" + id);
+ }
+ var ins = $j(obj).html();
+ ins = ins.replace("<","<");
+ ins = ins.replace(">",">");
+ ins = ins.replace("&","&");
+ ins = ins.replace(""",'"');
+ $j("#comment-edit-text-" + id).val(tmpStr + ins);
+}
+
+function qCommentInsert(obj,id) {
+ var tmpStr = $j("#comment-edit-text-" + id).val();
+ if(tmpStr == window.commentEmptyText) {
+ tmpStr = "";
+ $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ openMenu("comment-edit-submit-wrapper-" + id);
+ }
+ var ins = $j(obj).val();
+ ins = ins.replace("<","<");
+ ins = ins.replace(">",">");
+ ins = ins.replace("&","&");
+ ins = ins.replace(""",'"');
+ $j("#comment-edit-text-" + id).val(tmpStr + ins);
+ $j(obj).val("");
+}
+
+/*function showHideCommentBox(id) {
+ if( $j('#comment-edit-form-' + id).is(':visible')) {
+ $j('#comment-edit-form-' + id).hide();
+ }
+ else {
+ $j('#comment-edit-form-' + id).show();
+ }
+}*/
diff --git a/view/theme/frost/js/theme.min.js b/view/theme/frost/js/theme.min.js
index c1a56c8ef3..94384c046b 100644
--- a/view/theme/frost/js/theme.min.js
+++ b/view/theme/frost/js/theme.min.js
@@ -1 +1 @@
-$j(document).ready(function(){window.navMenuTimeout={"#network-menu-list-timeout":null,"#contacts-menu-list-timeout":null,"#system-menu-list-timeout":null,"#network-menu-list-opening":false,"#contacts-menu-list-opening":false,"#system-menu-list-opening":false,"#network-menu-list-closing":false,"#contacts-menu-list-closing":false,"#system-menu-list-closing":false};if(typeof window.aclInit!="undefined"&&typeof acl=="undefined"){acl=new ACL(baseurl+"/acl",[window.allowCID,window.allowGID,window.denyCID,window.denyGID])}$j("#profile-jot-text").focus(enableOnUser);$j("#profile-jot-text").click(enableOnUser);$j(".nav-menu-list, .nav-menu-icon").hover(function(){showNavMenu($j(this).attr("point"))},function(){hideNavMenu($j(this).attr("point"))});$j(".group-edit-icon").hover(function(){$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".sidebar-group-element").hover(function(){id=$j(this).attr("id");$j("#edit-"+id).addClass("icon");$j("#edit-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#edit-"+id).removeClass("icon");$j("#edit-"+id).addClass("iconspacer")});$j(".savedsearchdrop").hover(function(){$j(this).addClass("drop");$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("drop");$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".savedsearchterm").hover(function(){id=$j(this).attr("id");$j("#drop-"+id).addClass("icon");$j("#drop-"+id).addClass("drophide");$j("#drop-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#drop-"+id).removeClass("icon");$j("#drop-"+id).removeClass("drophide");$j("#drop-"+id).addClass("iconspacer")});if(window.autoCompleteType=="display-head"){$j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl")}if(window.aclType=="event_head"){$j("#events-calendar").fullCalendar({events:baseurl+"/events/json/",header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},timeFormat:"H(:mm)",eventClick:function(calEvent,jsEvent,view){showEvent(calEvent.id)},eventRender:function(event,element,view){if(event.item["author-name"]==null)return;switch(view.name){case"month":element.find(".fc-event-title").html("
{1} : {2}".format(event.item["author-avatar"],event.item["author-name"],event.title));break;case"agendaWeek":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break;case"agendaDay":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break}}});var args=location.href.replace(baseurl,"").split("/");if(args.length>=4){$j("#events-calendar").fullCalendar("gotoDate",args[2],args[3]-1)}var hash=location.hash.split("-");if(hash.length==2&&hash[0]=="#link")showEvent(hash[1])}$j("#event-share-checkbox").change(function(){if($j("#event-share-checkbox").is(":checked")){$j("#acl-wrapper").show()}else{$j("#acl-wrapper").hide()}}).trigger("change");if(window.aclType=="settings-head"||window.aclType=="photos_head"||window.aclType=="event_head"){$j("#contact_allow, #contact_deny, #group_allow, #group_deny").change(function(){var selstr;$j("#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected").each(function(){selstr=$j(this).text();$j("#jot-perms-icon").removeClass("unlock").addClass("lock");$j("#jot-public").hide()});if(selstr==null){$j("#jot-perms-icon").removeClass("lock").addClass("unlock");$j("#jot-public").show()}}).trigger("change")}switch(window.autocompleteType){case"msg-header":var a=$j("#recip").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350,onSelect:function(value,data){$j("#recip-complete").val(data)}});break;case"contacts-head":var a=$j("#contacts-search").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350});a.setOptions({params:{type:"a"}});break;default:break}if(typeof window.AjaxUpload!="undefined"){switch(window.ajaxType){case"jot-header":var uploader=new window.AjaxUpload("wall-image-upload",{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(response);$j("#profile-rotator").hide()}});var file_uploader=new window.AjaxUpload("wall-file-upload",{action:"wall_attach/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(response);$j("#profile-rotator").hide()}});break;case"msg-header":var uploader=new window.AjaxUpload("prvmail-upload",{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){tinyMCE.execCommand("mceInsertRawHTML",false,response);$j("#profile-rotator").hide()}});break;default:break}}});$j(function(){$j("nav").bind("nav-update",function(e,data){var elm=$j("#pending-update");var register=$j(data).find("register").text();if(register=="0"){register="";elm.hide()}else{elm.show()}elm.html(register)})});$j(function(){$j("#cnftheme").click(function(){$.colorbox({width:800,height:"90%",href:"$baseurl/admin/themes/"+$j("#id_theme :selected").val(),onComplete:function(){$j("div#fancybox-content form").submit(function(e){var url=$j(this).attr("action");var data={};$j(this).find("input").each(function(){data[$j(this).attr("name")]=$j(this).val()});$j(this).find("select").each(function(){data[$j(this).attr("name")]=$j(this).children(":selected").val()});console.log(":)",url,data);$j.post(url,data,function(data){if(timer)clearTimeout(timer);NavUpdate();$j.colorbox.close()});return false})}});return false})});function homeRedirect(){$j("html").fadeOut("slow",function(){window.location=baseurl+"/login"})}if(typeof window.photoEdit!="undefined"){$j(document).keydown(function(event){if(window.prevLink!=""){if(event.ctrlKey&&event.keyCode==37){event.preventDefault();window.location.href=window.prevLink}}if(window.nextLink!=""){if(event.ctrlKey&&event.keyCode==39){event.preventDefault();window.location.href=window.nextLink}}})}switch(window.ajaxType){case"jot-header":function jotGetLink(){reply=prompt(window.linkURL);if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){addeditortext(data);$j("#profile-rotator").hide()})}}function linkdrop(event){var reply=event.dataTransfer.getData("text/uri-list");event.target.textContent=reply;event.preventDefault();if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){if(!editor)$j("#profile-jot-text").val("");initEditor(function(){addeditortext(data);$j("#profile-rotator").hide()})})}}break;case"msg-header":case"wallmsg-header":function jotGetLink(){reply=prompt(window.linkURL);if(reply&&reply.length){$j("#profile-rotator").show();$j.get("parse_url?url="+reply,function(data){tinyMCE.execCommand("mceInsertRawHTML",false,data);$j("#profile-rotator").hide()})}}function linkdrop(event){var reply=event.dataTransfer.getData("text/uri-list");event.target.textContent=reply;event.preventDefault();if(reply&&reply.length){$j("#profile-rotator").show();$j.get("parse_url?url="+reply,function(data){tinyMCE.execCommand("mceInsertRawHTML",false,data);$j("#profile-rotator").hide()})}}break;default:break}function showEvent(eventid){$j.get(baseurl+"/events/?id="+eventid,function(data){$j.colorbox({html:data})})}function initCrop(){function onEndCrop(coords,dimensions){$("x1").value=coords.x1;$("y1").value=coords.y1;$("x2").value=coords.x2;$("y2").value=coords.y2;$("width").value=dimensions.width;$("height").value=dimensions.height}Event.observe(window,"load",function(){new Cropper.ImgWithPreview("croppa",{previewWrap:"previewWrap",minWidth:175,minHeight:175,maxWidth:640,maxHeight:640,ratioDim:{x:100,y:100},displayOnInit:true,onEndCrop:onEndCrop})})}function showNavMenu(menuID){if(window.navMenuTimeout[menuID+"-closing"]){window.navMenuTimeout[menuID+"-closing"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-opening"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideDown("fast").show();window.navMenuTimeout[menuID+"-opening"]=false},200)}}function hideNavMenu(menuID){if(window.navMenuTimeout[menuID+"-opening"]){window.navMenuTimeout[menuID+"-opening"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-closing"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideUp("fast");window.navMenuTimeout[menuID+"-closing"]=false},500)}}function insertFormatting(comment,BBcode,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==comment){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id);$j("#comment-edit-text-"+id).val(tmpStr)}textarea=document.getElementById("comment-edit-text-"+id);if(document.selection){textarea.focus();selected=document.selection.createRange();if(BBcode=="url"){selected.text="["+BBcode+"=http://]"+selected.text+"[/"+BBcode+"]"}else selected.text="["+BBcode+"]"+selected.text+"[/"+BBcode+"]"}else if(textarea.selectionStart||textarea.selectionStart=="0"){var start=textarea.selectionStart;var end=textarea.selectionEnd;if(BBcode=="url"){textarea.value=textarea.value.substring(0,start)+"["+BBcode+"=http://]"+textarea.value.substring(start,end)+"[/"+BBcode+"]"+textarea.value.substring(end,textarea.value.length)}else textarea.value=textarea.value.substring(0,start)+"["+BBcode+"]"+textarea.value.substring(start,end)+"[/"+BBcode+"]"+textarea.value.substring(end,textarea.value.length)}return true}function cmtBbOpen(id){$j("#comment-edit-bb-"+id).show()}function cmtBbClose(id){$j("#comment-edit-bb-"+id).hide()}function confirmDelete(){return confirm(window.delItem)}function commentOpen(obj,id){if(obj.value==window.commentEmptyText){obj.value="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).show();openMenu("comment-edit-submit-wrapper-"+id)}}function commentClose(obj,id){if(obj.value==""){obj.value=window.commentEmptyText;$j("#comment-edit-text-"+id).removeClass("comment-edit-text-full");$j("#comment-edit-text-"+id).addClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).hide();closeMenu("comment-edit-submit-wrapper-"+id)}}function commentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).html();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins)}function qCommentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).val();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins);$j(obj).val("")}function enableOnUser(){if(editor)return;$j(this).val("");initEditor()}var editor=false;var textlen=0;var plaintext=window.editSelect;var ispublic=window.isPublic;function initEditor(cb){if(editor==false){$j("#profile-jot-text-loading").show();if(plaintext=="none"){$j("#profile-jot-text-loading").hide();$j("#profile-jot-text").css({height:200,color:"#000"});$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");editor=true;$j("a#jot-perms-icon").colorbox({inline:true,transition:"elastic"});$j(".jothidden").show();if(typeof cb!="undefined")cb();return}tinyMCE.init({theme:"advanced",mode:"specific_textareas",editor_selector:window.editSelect,auto_focus:"profile-jot-text",plugins:"bbcode,paste,autoresize, inlinepopups",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",convert_urls:false,content_css:window.baseURL+"/view/custom_tinymce.css",theme_advanced_path:false,file_browser_callback:"fcFileBrowser",setup:function(ed){cPopup=null;ed.onKeyDown.add(function(ed,e){if(cPopup!==null)cPopup.onkey(e)});ed.onKeyUp.add(function(ed,e){var txt=tinyMCE.activeEditor.getContent();match=txt.match(/@([^ \n]+)$/);if(match!==null){if(cPopup===null){cPopup=new ACPopup(this,baseurl+"/acl")}if(cPopup.ready&&match[1]!==cPopup.searchText)cPopup.search(match[1]);if(!cPopup.ready)cPopup=null}else{if(cPopup!==null){cPopup.close();cPopup=null}}textlen=txt.length;if(textlen!=0&&$j("#jot-perms-icon").is(".unlock")){$j("#profile-jot-desc").html(ispublic)}else{$j("#profile-jot-desc").html(" ")}if(textlen<=140){$j("#character-counter").removeClass("red");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("grey")}if(textlen>140&&textlen<=420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("red");$j("#character-counter").addClass("orange")}if(textlen>420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("red")}$j("#character-counter").text(textlen)});ed.onInit.add(function(ed){ed.pasteAsPlainText=true;$j("#profile-jot-text-loading").hide();$j(".jothidden").show();if(typeof cb!="undefined")cb()})}});editor=true;$j("a#jot-perms-icon").colorbox({inline:true,transition:"elastic"})}else{if(typeof cb!="undefined")cb()}}function msgInitEditor(){if(plaintext!="none"){tinyMCE.init({theme:"advanced",mode:"specific_textareas",editor_selector:/(profile-jot-text|prvmail-text)/,plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",convert_urls:false,content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true;var editorId=ed.editorId;var textarea=$j("#"+editorId);if(typeof textarea.attr("tabindex")!="undefined"){$j("#"+editorId+"_ifr").attr("tabindex",textarea.attr("tabindex"));textarea.attr("tabindex",null)}})}})}else $j("#prvmail-text").contact_autocomplete(baseurl+"/acl")}function profInitEditor(){tinyMCE.init({theme:"advanced",mode:window.editSelect,plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}})}function eventInitEditor(){tinyMCE.init({theme:"advanced",mode:"textareas",plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}})}function contactInitEditor(){tinyMCE.init({theme:"advanced",mode:window.editSelect,elements:"contact-edit-info",plugins:"bbcode",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_styles:"blockquote,code",gecko_spellcheck:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css"})}function wallInitEditor(){var plaintext=window.editSelect;if(plaintext!="none"){tinyMCE.init({theme:"advanced",mode:"specific_textareas",editor_selector:/(profile-jot-text|prvmail-text)/,plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",convert_urls:false,content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true;var editorId=ed.editorId;var textarea=$j("#"+editorId);if(typeof textarea.attr("tabindex")!="undefined"){$j("#"+editorId+"_ifr").attr("tabindex",textarea.attr("tabindex"));textarea.attr("tabindex",null)}})}})}else $j("#prvmail-text").contact_autocomplete(baseurl+"/acl")}function deleteCheckedItems(delID){if(confirm(window.delItems)){var checkedstr="";$j(delID).hide();$j(delID+"-rotator").show();$j(".item-select").each(function(){if($j(this).is(":checked")){if(checkedstr.length!=0){checkedstr=checkedstr+","+$j(this).val()}else{checkedstr=$j(this).val()}}});$j.post("item",{dropitems:checkedstr},function(data){window.location.reload()})}}function jotVideoURL(){reply=prompt(window.vidURL);if(reply&&reply.length){addeditortext("[video]"+reply+"[/video]")}}function jotAudioURL(){reply=prompt(window.audURL);if(reply&&reply.length){addeditortext("[audio]"+reply+"[/audio]")}}function jotGetLocation(){reply=prompt(window.whereAreU,$j("#jot-location").val());if(reply&&reply.length){$j("#jot-location").val(reply)}}function jotShare(id){if($j("#jot-popup").length!=0)$j("#jot-popup").show();$j("#like-rotator-"+id).show();$j.get("share/"+id,function(data){if(!editor)$j("#profile-jot-text").val("");initEditor(function(){addeditortext(data);$j("#like-rotator-"+id).hide();$j(window).scrollTop(0)})})}function linkdropper(event){var linkFound=event.dataTransfer.types.contains("text/uri-list");if(linkFound)event.preventDefault()}function itemTag(id){reply=prompt(window.term);if(reply&&reply.length){reply=reply.replace("#","");if(reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("tagger/"+id+"?term="+reply,NavUpdate);liking=1}}}function itemFiler(id){var bordercolor=$j("input").css("border-color");$j.get("filer/",function(data){$j.colorbox({html:data});$j("#id_term").keypress(function(){$j(this).css("border-color",bordercolor)});$j("#select_term").change(function(){$j("#id_term").css("border-color",bordercolor)});$j("#filer_save").click(function(e){e.preventDefault();reply=$j("#id_term").val();if(reply&&reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("filer/"+id+"?term="+reply,NavUpdate);liking=1;$j.colorbox.close()}else{$j("#id_term").css("border-color","#FF0000")}return false})})}function jotClearLocation(){$j("#jot-coord").val("");$j("#profile-nolocation-wrapper").hide()}function addeditortext(data){if(plaintext=="none"){var currentText=$j("#profile-jot-text").val();$j("#profile-jot-text").val(currentText+data)}else tinyMCE.execCommand("mceInsertRawHTML",false,data)}if(typeof window.geoTag==="function")window.geoTag();
\ No newline at end of file
+$j(document).ready(function(){window.navMenuTimeout={"#network-menu-list-timeout":null,"#contacts-menu-list-timeout":null,"#system-menu-list-timeout":null,"#network-menu-list-opening":false,"#contacts-menu-list-opening":false,"#system-menu-list-opening":false,"#network-menu-list-closing":false,"#contacts-menu-list-closing":false,"#system-menu-list-closing":false};$j("#profile-jot-text").focus(enableOnUser);$j("#profile-jot-text").click(enableOnUser);$j(".nav-menu-list, .nav-menu-icon").hover(function(){showNavMenu($j(this).attr("point"))},function(){hideNavMenu($j(this).attr("point"))});$j(".group-edit-icon").hover(function(){$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".sidebar-group-element").hover(function(){id=$j(this).attr("id");$j("#edit-"+id).addClass("icon");$j("#edit-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#edit-"+id).removeClass("icon");$j("#edit-"+id).addClass("iconspacer")});$j(".savedsearchdrop").hover(function(){$j(this).addClass("drop");$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("drop");$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".savedsearchterm").hover(function(){id=$j(this).attr("id");$j("#drop-"+id).addClass("icon");$j("#drop-"+id).addClass("drophide");$j("#drop-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#drop-"+id).removeClass("icon");$j("#drop-"+id).removeClass("drophide");$j("#drop-"+id).addClass("iconspacer")});$j("#event-share-checkbox").change(function(){if($j("#event-share-checkbox").is(":checked")){$j("#acl-wrapper").show()}else{$j("#acl-wrapper").hide()}}).trigger("change");if(typeof window.AjaxUpload!="undefined"){var uploader=new window.AjaxUpload(window.imageUploadButton,{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(window.jotId,response);$j("#profile-rotator").hide()}});if($j("#wall-file-upload").length){var file_uploader=new window.AjaxUpload("wall-file-upload",{action:"wall_attach/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(window.jotId,response);$j("#profile-rotator").hide()}})}}if(typeof window.aclInit!="undefined"&&typeof acl=="undefined"){acl=new ACL(baseurl+"/acl",[window.allowCID,window.allowGID,window.denyCID,window.denyGID])}if(window.aclType=="settings-head"||window.aclType=="photos_head"||window.aclType=="event_head"){$j("#contact_allow, #contact_deny, #group_allow, #group_deny").change(function(){var selstr;$j("#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected").each(function(){selstr=$j(this).text();$j("#jot-perms-icon").removeClass("unlock").addClass("lock");$j("#jot-public").hide()});if(selstr==null){$j("#jot-perms-icon").removeClass("lock").addClass("unlock");$j("#jot-public").show()}}).trigger("change")}if(window.aclType=="event_head"){$j("#events-calendar").fullCalendar({events:baseurl+"/events/json/",header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},timeFormat:"H(:mm)",eventClick:function(calEvent,jsEvent,view){showEvent(calEvent.id)},eventRender:function(event,element,view){if(event.item["author-name"]==null)return;switch(view.name){case"month":element.find(".fc-event-title").html("
{1} : {2}".format(event.item["author-avatar"],event.item["author-name"],event.title));break;case"agendaWeek":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break;case"agendaDay":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break}}});var args=location.href.replace(baseurl,"").split("/");if(args.length>=4){$j("#events-calendar").fullCalendar("gotoDate",args[2],args[3]-1)}var hash=location.hash.split("-");if(hash.length==2&&hash[0]=="#link")showEvent(hash[1])}switch(window.autocompleteType){case"msg-header":var a=$j("#recip").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350,onSelect:function(value,data){$j("#recip-complete").val(data)}});break;case"contacts-head":var a=$j("#contacts-search").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350});a.setOptions({params:{type:"a"}});break;case"display-head":$j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");break;default:break}$j(".wall-item-body a img").each(function(){var aElem=$j(this).parent();var imgHref=aElem.attr("href");if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)){var cBoxClass=$j(this).closest(".wall-item-body").attr("id")+"-lightbox";$j(this).addClass(cBoxClass);aElem.colorbox({maxHeight:"90%",photo:true,rel:cBoxClass})}})});$j(function(){$j("nav").bind("nav-update",function(e,data){var elm=$j("#pending-update");var register=$j(data).find("register").text();if(register=="0"){register="";elm.hide()}else{elm.show()}elm.html(register)})});$j(function(){$j("#cnftheme").click(function(){$.colorbox({width:800,height:"90%",href:baseurl+"/admin/themes/"+$("#id_theme :selected").val(),onComplete:function(){$j("div#fancybox-content form").submit(function(e){var url=$j(this).attr("action");var data={};$j(this).find("input").each(function(){data[$j(this).attr("name")]=$j(this).val()});$j(this).find("select").each(function(){data[$j(this).attr("name")]=$j(this).children(":selected").val()});console.log(":)",url,data);$j.post(url,data,function(data){if(timer)clearTimeout(timer);NavUpdate();$j.colorbox.close()});return false})}});return false})});function homeRedirect(){$j("html").fadeOut("slow",function(){window.location=baseurl+"/login"})}if(typeof window.photoEdit!="undefined"){$j(document).keydown(function(event){if(window.prevLink!=""){if(event.ctrlKey&&event.keyCode==37){event.preventDefault();window.location.href=window.prevLink}}if(window.nextLink!=""){if(event.ctrlKey&&event.keyCode==39){event.preventDefault();window.location.href=window.nextLink}}})}function showEvent(eventid){$j.get(baseurl+"/events/?id="+eventid,function(data){$j.colorbox({html:data});$j.colorbox.resize()})}function initCrop(){function onEndCrop(coords,dimensions){$("x1").value=coords.x1;$("y1").value=coords.y1;$("x2").value=coords.x2;$("y2").value=coords.y2;$("width").value=dimensions.width;$("height").value=dimensions.height}Event.observe(window,"load",function(){new Cropper.ImgWithPreview("croppa",{previewWrap:"previewWrap",minWidth:175,minHeight:175,maxWidth:640,maxHeight:640,ratioDim:{x:100,y:100},displayOnInit:true,onEndCrop:onEndCrop})})}function showNavMenu(menuID){if(window.navMenuTimeout[menuID+"-closing"]){window.navMenuTimeout[menuID+"-closing"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-opening"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideDown("fast").show();window.navMenuTimeout[menuID+"-opening"]=false},200)}}function hideNavMenu(menuID){if(window.navMenuTimeout[menuID+"-opening"]){window.navMenuTimeout[menuID+"-opening"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-closing"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideUp("fast");window.navMenuTimeout[menuID+"-closing"]=false},500)}}function InitMCEEditor(editorData){var tinyMCEInitConfig={theme:"advanced",plugins:"bbcode,paste,autoresize,inlinepopups",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,file_browser_callback:"fcFileBrowser"};if(window.editSelect!="none"){$j.extend(tinyMCEInitConfig,editorData);tinyMCE.init(tinyMCEInitConfig)}else if(typeof editorData.plaintextFn=="function"){editorData.plaintextFn()}}var editor=false;var textlen=0;function initEditor(cb){if(editor==false){editor=true;$j("#profile-jot-text-loading").show();var editorData={mode:"specific_textareas",editor_selector:"profile-jot-text",auto_focus:"profile-jot-text",convert_urls:false,setup:function(ed){cPopup=null;ed.onKeyDown.add(function(ed,e){if(cPopup!==null)cPopup.onkey(e)});ed.onKeyUp.add(function(ed,e){var txt=tinyMCE.activeEditor.getContent();match=txt.match(/@([^ \n]+)$/);if(match!==null){if(cPopup===null){cPopup=new ACPopup(this,baseurl+"/acl")}if(cPopup.ready&&match[1]!==cPopup.searchText)cPopup.search(match[1]);if(!cPopup.ready)cPopup=null}else{if(cPopup!==null){cPopup.close();cPopup=null}}textlen=txt.length;if(textlen!=0&&$j("#jot-perms-icon").is(".unlock")){$j("#profile-jot-desc").html(window.isPublic)}else{$j("#profile-jot-desc").html(" ")}if(textlen<=140){$j("#character-counter").removeClass("red");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("grey")}if(textlen>140&&textlen<=420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("red");$j("#character-counter").addClass("orange")}if(textlen>420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("red")}$j("#character-counter").text(textlen)});ed.onInit.add(function(ed){ed.pasteAsPlainText=true;$j("#profile-jot-text-loading").hide();$j(".jothidden").show();if(typeof cb!="undefined")cb()})},plaintextFn:function(){$j("#profile-jot-text-loading").hide();$j("#profile-jot-text").css({height:200,color:"#000"});$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");$j(".jothidden").show();if(typeof cb!="undefined")cb()}};InitMCEEditor(editorData);$j("a#jot-perms-icon").colorbox({inline:true,transition:"elastic"})}else{if(typeof cb!="undefined")cb()}}function enableOnUser(){if(editor)return;$j(this).val("");initEditor()}function msgInitEditor(){var editorData={mode:"specific_textareas",editor_selector:"prvmail-text",convert_urls:false,setup:function(ed){cPopup=null;ed.onKeyDown.add(function(ed,e){if(cPopup!==null)cPopup.onkey(e)});ed.onKeyUp.add(function(ed,e){var txt=tinyMCE.activeEditor.getContent();match=txt.match(/@([^ \n]+)$/);if(match!==null){if(cPopup===null){cPopup=new ACPopup(this,baseurl+"/acl")}if(cPopup.ready&&match[1]!==cPopup.searchText)cPopup.search(match[1]);if(!cPopup.ready)cPopup=null}else{if(cPopup!==null){cPopup.close();cPopup=null}}textlen=txt.length;if(textlen!=0&&$j("#jot-perms-icon").is(".unlock")){$j("#profile-jot-desc").html(window.isPublic)}else{$j("#profile-jot-desc").html(" ")}});ed.onInit.add(function(ed){ed.pasteAsPlainText=true;var editorId=ed.editorId;var textarea=$j("#"+editorId);if(typeof textarea.attr("tabindex")!="undefined"){$j("#"+editorId+"_ifr").attr("tabindex",textarea.attr("tabindex"));textarea.attr("tabindex",null)}})},plaintextFn:function(){$j("#prvmail-text").contact_autocomplete(baseurl+"/acl")}};InitMCEEditor(editorData)}function contactInitEditor(){var editorData={mode:"exact",elements:"contact-edit-info"};InitMCEEditor(editorData)}function eventInitEditor(){var editorData={mode:"textareas",setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}};InitMCEEditor(editorData)}function profInitEditor(){var editorData={mode:"textareas",setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}};InitMCEEditor(editorData)}function addeditortext(textElem,data){if(window.editSelect=="none"){var currentText=$j(textElem).val();$j(textElem).val(currentText+data)}else tinyMCE.execCommand("mceInsertRawHTML",false,data)}function jotVideoURL(){reply=prompt(window.vidURL);if(reply&&reply.length){addeditortext("#profile-jot-text","[video]"+reply+"[/video]")}}function jotAudioURL(){reply=prompt(window.audURL);if(reply&&reply.length){addeditortext("#profile-jot-text","[audio]"+reply+"[/audio]")}}function jotGetLocation(){reply=prompt(window.whereAreU,$j("#jot-location").val());if(reply&&reply.length){$j("#jot-location").val(reply)}}function jotShare(id){if($j("#jot-popup").length!=0)$j("#jot-popup").show();$j("#like-rotator-"+id).show();$j.get("share/"+id,function(data){if(!editor)$j("#profile-jot-text").val("");initEditor(function(){addeditortext("#profile-jot-text",data);$j("#like-rotator-"+id).hide();$j(window).scrollTop(0)})})}function jotClearLocation(){$j("#jot-coord").val("");$j("#profile-nolocation-wrapper").hide()}function jotGetLink(){reply=prompt(window.linkURL);if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){addeditortext(window.jotId,data);$j("#profile-rotator").hide()})}}function linkdropper(event){var linkFound=event.dataTransfer.types.contains("text/uri-list");if(linkFound)event.preventDefault()}function linkdrop(event){var reply=event.dataTransfer.getData("text/uri-list");event.preventDefault();if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){addeditortext(window.jotId,data);$j("#profile-rotator").hide()})}}if(typeof window.geoTag==="function")window.geoTag();function confirmDelete(){return confirm(window.delItem)}function deleteCheckedItems(delID){if(confirm(window.delItems)){var checkedstr="";$j(delID).hide();$j(delID+"-rotator").show();$j(".item-select").each(function(){if($j(this).is(":checked")){if(checkedstr.length!=0){checkedstr=checkedstr+","+$j(this).val()}else{checkedstr=$j(this).val()}}});$j.post("item",{dropitems:checkedstr},function(data){window.location.reload()})}}function itemTag(id){reply=prompt(window.term);if(reply&&reply.length){reply=reply.replace("#","");if(reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("tagger/"+id+"?term="+reply,NavUpdate);liking=1}}}function itemFiler(id){var bordercolor=$j("input").css("border-color");$j.get("filer/",function(data){$j.colorbox({html:data});$j.colorbox.resize();$j("#id_term").keypress(function(){$j(this).css("border-color",bordercolor)});$j("#select_term").change(function(){$j("#id_term").css("border-color",bordercolor)});$j("#filer_save").click(function(e){e.preventDefault();reply=$j("#id_term").val();if(reply&&reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("filer/"+id+"?term="+reply,NavUpdate);liking=1;$j.colorbox.close()}else{$j("#id_term").css("border-color","#FF0000")}return false})})}function insertFormatting(comment,BBcode,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==comment){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id);$j("#comment-edit-text-"+id).val(tmpStr)}textarea=document.getElementById("comment-edit-text-"+id);if(document.selection){textarea.focus();selected=document.selection.createRange();if(BBcode=="url"){selected.text="["+BBcode+"=http://]"+selected.text+"[/"+BBcode+"]"}else selected.text="["+BBcode+"]"+selected.text+"[/"+BBcode+"]"}else if(textarea.selectionStart||textarea.selectionStart=="0"){var start=textarea.selectionStart;var end=textarea.selectionEnd;if(BBcode=="url"){textarea.value=textarea.value.substring(0,start)+"["+BBcode+"=http://]"+textarea.value.substring(start,end)+"[/"+BBcode+"]"+textarea.value.substring(end,textarea.value.length)}else textarea.value=textarea.value.substring(0,start)+"["+BBcode+"]"+textarea.value.substring(start,end)+"[/"+BBcode+"]"+textarea.value.substring(end,textarea.value.length)}return true}function cmtBbOpen(id){$j("#comment-edit-bb-"+id).show()}function cmtBbClose(id){$j("#comment-edit-bb-"+id).hide()}function commentOpen(obj,id){if(obj.value==window.commentEmptyText){obj.value="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).show();openMenu("comment-edit-submit-wrapper-"+id)}}function commentClose(obj,id){if(obj.value==""){obj.value=window.commentEmptyText;$j("#comment-edit-text-"+id).removeClass("comment-edit-text-full");$j("#comment-edit-text-"+id).addClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).hide();closeMenu("comment-edit-submit-wrapper-"+id)}}function commentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).html();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins)}function qCommentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).val();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins);$j(obj).val("")}
\ No newline at end of file
diff --git a/view/theme/frost/like_noshare.tpl b/view/theme/frost/like_noshare.tpl
new file mode 100644
index 0000000000..5bf94f7df7
--- /dev/null
+++ b/view/theme/frost/like_noshare.tpl
@@ -0,0 +1,7 @@
+
diff --git a/view/theme/frost/login-style.css b/view/theme/frost/login-style.css
index 840c404d8d..167ebcb27d 100644
--- a/view/theme/frost/login-style.css
+++ b/view/theme/frost/login-style.css
@@ -67,11 +67,14 @@ div.section-wrapper {
.field {
margin-bottom: 2px;
padding-bottom: 0px;
+ display: inline-block;
+ text-align: left;
}
.field label {
- width: auto;
- position: absolute;
+ width: 275px;
+ /*position: absolute;*/
+ display: inline-block;
margin-left: 0px;
font-weight: 700;
}
@@ -85,30 +88,43 @@ div.section-wrapper {
position: auto;
/*margin-left: 100px;*/
}
-.field.checkbox input {
+/*.field.checkbox input {
width: auto;
margin-left: 140px;
-}
+}*/
#div_id_remember {
margin-top: 10px;
margin-bottom: 10px;
}
+#div_id_remember label {
+ width: auto;
+ margin-right: 1em;
+}
/*.openid input {*/
-#id_openid_url, .openid input {
+#id_openid_url, input.openid {
background: url(login-bg.gif) no-repeat;
background-position: 0 50%;
width: 182px;
padding-left: 18px;
}
-#wrapper_username input, #wrapper_password input, #wrapper_openid_url input {
+/*#wrapper_username input, #wrapper_password input, #wrapper_openid_url input {
margin-left: 225px;
-}
+}*/
-#register-openid-wrapper input, #register-name-wrapper input, #register-email-wrapper input, #register-nickname-wrapper input {
+/*#register-openid-wrapper input, #register-name-wrapper input, #register-email-wrapper input, #register-nickname-wrapper input {
margin-left: 275px;
+}*/
+
+#register-openid-wrapper {
+ display: inline-block;
+ text-align: left;
+}
+#label-register-openid {
+ display: inline-block;
+ width: 275px;
}
#login-name-wrapper input {
diff --git a/view/theme/frost/login_head.tpl b/view/theme/frost/login_head.tpl
index be70d73d2f..25339c327d 100644
--- a/view/theme/frost/login_head.tpl
+++ b/view/theme/frost/login_head.tpl
@@ -1,2 +1,2 @@
-
+{##}
diff --git a/view/theme/frost/mail_conv.tpl b/view/theme/frost/mail_conv.tpl
new file mode 100644
index 0000000000..97e814e1fb
--- /dev/null
+++ b/view/theme/frost/mail_conv.tpl
@@ -0,0 +1,14 @@
+
+
+
+
+
+
$mail.from_name
+
$mail.date
+
$mail.subject
+
$mail.body
+
+
+
+
+
diff --git a/view/theme/frost/mail_list.tpl b/view/theme/frost/mail_list.tpl
new file mode 100644
index 0000000000..5be7f38623
--- /dev/null
+++ b/view/theme/frost/mail_list.tpl
@@ -0,0 +1,16 @@
+
+
+
+
+
+
$from_name
+
$date
+
+
+
+
+
+
+
diff --git a/view/theme/frost/msg-end.tpl b/view/theme/frost/msg-end.tpl
index bc6b9a9d58..84448efd53 100644
--- a/view/theme/frost/msg-end.tpl
+++ b/view/theme/frost/msg-end.tpl
@@ -1,9 +1,3 @@
+
-
-
-
-
-
-
+
diff --git a/view/theme/frost/msg-header.tpl b/view/theme/frost/msg-header.tpl
index b10305bd85..c1eabcec74 100644
--- a/view/theme/frost/msg-header.tpl
+++ b/view/theme/frost/msg-header.tpl
@@ -2,9 +2,9 @@
diff --git a/view/theme/frost/nav.tpl b/view/theme/frost/nav.tpl
index adb9c9f073..3c9a4102fb 100644
--- a/view/theme/frost/nav.tpl
+++ b/view/theme/frost/nav.tpl
@@ -5,7 +5,7 @@
-
+{##}
{{ if $nav.notifications }}
-
+{##}
-
+
{{ endif }}
-
+{##}
{{ if $nav.messages }}
-
+{##}
{{ endif }}
-
+{##}
@@ -179,7 +179,7 @@ $lbl_about
$lbl_hobbies
-$interest
+$interest
@@ -190,7 +190,7 @@ $lbl_hobbies
$lbl_likes
-
$likes
+
$likes
@@ -201,7 +201,7 @@ $lbl_likes
$lbl_dislikes
-
$dislikes
+
$dislikes
@@ -212,7 +212,7 @@ $lbl_dislikes
$lbl_social
-$contact
+$contact
@@ -229,7 +229,7 @@ $lbl_social
$lbl_music
-$music
+$music
@@ -239,7 +239,7 @@ $lbl_music
$lbl_book
-$book
+$book
@@ -251,7 +251,7 @@ $lbl_book
$lbl_tv
-$tv
+$tv
@@ -263,7 +263,7 @@ $lbl_tv
$lbl_film
-$film
+$film
@@ -280,7 +280,7 @@ $lbl_film
$lbl_love
-$romance
+$romance
@@ -292,7 +292,7 @@ $lbl_love
$lbl_work
-$work
+$work
@@ -304,7 +304,7 @@ $lbl_work
$lbl_school
-$education
+$education
diff --git a/view/theme/frost/search_item.tpl b/view/theme/frost/search_item.tpl
new file mode 100644
index 0000000000..b78f05d661
--- /dev/null
+++ b/view/theme/frost/search_item.tpl
@@ -0,0 +1,64 @@
+
+{##}
+
+
+
+
+
+
+ {##}
+
+ {##}
+
+ {##}
+
+ {{ if $item.lock }}{##}
{##}
+ {{ else }}
{{ endif }}
+
$item.location
+
+
+ {##}
+
$item.name
+
$item.ago
+
+ {##}
+
+
$item.title
+ {##}
+
$item.body
+ {{ if $item.has_cats }}
+
+ {{ endif }}
+
+ {{ if $item.has_folders }}
+
+ {{ endif }}
+
+
+
+ {##}
+
+
+
+
+{##}
diff --git a/view/theme/frost/smarty3/contact_edit.tpl b/view/theme/frost/smarty3/contact_edit.tpl
new file mode 100644
index 0000000000..7105d0057e
--- /dev/null
+++ b/view/theme/frost/smarty3/contact_edit.tpl
@@ -0,0 +1,93 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
+{{$header}}
+
+
diff --git a/view/theme/frost/smarty3/contact_end.tpl b/view/theme/frost/smarty3/contact_end.tpl
index 3c01c0d9aa..962f0c346e 100644
--- a/view/theme/frost/smarty3/contact_end.tpl
+++ b/view/theme/frost/smarty3/contact_end.tpl
@@ -3,9 +3,5 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
-
-
+
diff --git a/view/theme/frost/smarty3/contact_head.tpl b/view/theme/frost/smarty3/contact_head.tpl
index a7fb961089..959c4e2b41 100644
--- a/view/theme/frost/smarty3/contact_head.tpl
+++ b/view/theme/frost/smarty3/contact_head.tpl
@@ -3,3 +3,7 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
+
+
diff --git a/view/theme/frost/smarty3/end.tpl b/view/theme/frost/smarty3/end.tpl
index 4ed99a6e0e..7cdb2e3f7a 100644
--- a/view/theme/frost/smarty3/end.tpl
+++ b/view/theme/frost/smarty3/end.tpl
@@ -6,20 +6,25 @@
-
--->*}}
+{{**}}
+
+
+
-
-
-
+{{**}}
+
+
+
+
diff --git a/view/theme/frost/smarty3/event.tpl b/view/theme/frost/smarty3/event.tpl
new file mode 100644
index 0000000000..15c4e2b937
--- /dev/null
+++ b/view/theme/frost/smarty3/event.tpl
@@ -0,0 +1,15 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+{{foreach $events as $event}}
+
+
+ {{if $event.item.author_name}}
{{$event.item.author_name}}{{/if}}
+ {{$event.html}}
+ {{if $event.item.plink}}
{{/if}}
+ {{if $event.edit}}
{{/if}}
+
+
+{{/foreach}}
diff --git a/view/theme/frost/smarty3/event_end.tpl b/view/theme/frost/smarty3/event_end.tpl
index 0ff4e339b5..813047e6ab 100644
--- a/view/theme/frost/smarty3/event_end.tpl
+++ b/view/theme/frost/smarty3/event_end.tpl
@@ -6,7 +6,5 @@
-
+
diff --git a/view/theme/frost/smarty3/event_form.tpl b/view/theme/frost/smarty3/event_form.tpl
new file mode 100644
index 0000000000..f4a9719ebb
--- /dev/null
+++ b/view/theme/frost/smarty3/event_form.tpl
@@ -0,0 +1,55 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+{{$title}}
+
+
+{{$desc}}
+
+
+
+
+
+
+
+
+{{$s_text}}
+{{$s_dsel}} {{$s_tsel}}
+
+{{$f_text}}
+{{$f_dsel}} {{$f_tsel}}
+
+
+
+ {{$n_text}}
+
+
+
+ {{$a_text}}
+
+
+
+{{$t_text}}
+
+
+
+{{$d_text}}
+{{$d_orig}}
+
+
+{{$l_text}}
+{{$l_orig}}
+
+
+ {{$sh_text}}
+
+
+{{$acl}}
+
+
+
+
+
+
diff --git a/view/theme/frost/smarty3/event_head.tpl b/view/theme/frost/smarty3/event_head.tpl
index 9d1c4b5f94..ee23e43056 100644
--- a/view/theme/frost/smarty3/event_head.tpl
+++ b/view/theme/frost/smarty3/event_head.tpl
@@ -7,5 +7,6 @@
diff --git a/view/theme/frost/smarty3/group_drop.tpl b/view/theme/frost/smarty3/group_drop.tpl
new file mode 100644
index 0000000000..2693228154
--- /dev/null
+++ b/view/theme/frost/smarty3/group_drop.tpl
@@ -0,0 +1,14 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
+
diff --git a/view/theme/frost/smarty3/head.tpl b/view/theme/frost/smarty3/head.tpl
index ce89dc08ba..095743e9b2 100644
--- a/view/theme/frost/smarty3/head.tpl
+++ b/view/theme/frost/smarty3/head.tpl
@@ -7,7 +7,7 @@
-
+{{**}}
diff --git a/view/theme/frost/smarty3/jot-end.tpl b/view/theme/frost/smarty3/jot-end.tpl
index 055ecc5e61..ebbef166db 100644
--- a/view/theme/frost/smarty3/jot-end.tpl
+++ b/view/theme/frost/smarty3/jot-end.tpl
@@ -3,8 +3,6 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
-
-
-
+
diff --git a/view/theme/frost/smarty3/jot-header.tpl b/view/theme/frost/smarty3/jot-header.tpl
index 2ef86d5a8e..92a6aed1d8 100644
--- a/view/theme/frost/smarty3/jot-header.tpl
+++ b/view/theme/frost/smarty3/jot-header.tpl
@@ -5,8 +5,7 @@
*}}
diff --git a/view/theme/frost/smarty3/jot.tpl b/view/theme/frost/smarty3/jot.tpl
index 21485029ff..dc4f2cfe17 100644
--- a/view/theme/frost/smarty3/jot.tpl
+++ b/view/theme/frost/smarty3/jot.tpl
@@ -43,7 +43,8 @@
-
+ {{**}}
+
@@ -72,7 +73,7 @@
{{$jotplugins}}
-
+{{**}}
diff --git a/view/theme/frost/smarty3/like_noshare.tpl b/view/theme/frost/smarty3/like_noshare.tpl
new file mode 100644
index 0000000000..1ad1eeaeec
--- /dev/null
+++ b/view/theme/frost/smarty3/like_noshare.tpl
@@ -0,0 +1,12 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
diff --git a/view/theme/frost/smarty3/login_head.tpl b/view/theme/frost/smarty3/login_head.tpl
index eff41619fe..5cac7bd1d7 100644
--- a/view/theme/frost/smarty3/login_head.tpl
+++ b/view/theme/frost/smarty3/login_head.tpl
@@ -3,5 +3,5 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
-
+{{**}}
diff --git a/view/theme/frost/smarty3/mail_conv.tpl b/view/theme/frost/smarty3/mail_conv.tpl
new file mode 100644
index 0000000000..effaa73c2a
--- /dev/null
+++ b/view/theme/frost/smarty3/mail_conv.tpl
@@ -0,0 +1,19 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
+
+
+
+
+
{{$mail.from_name}}
+
{{$mail.date}}
+
{{$mail.subject}}
+
{{$mail.body}}
+
+
+
+
+
diff --git a/view/theme/frost/smarty3/mail_list.tpl b/view/theme/frost/smarty3/mail_list.tpl
new file mode 100644
index 0000000000..0607c15c73
--- /dev/null
+++ b/view/theme/frost/smarty3/mail_list.tpl
@@ -0,0 +1,21 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
+
+
+
+
+
{{$from_name}}
+
{{$date}}
+
+
+
+
+
+
+
diff --git a/view/theme/frost/smarty3/msg-end.tpl b/view/theme/frost/smarty3/msg-end.tpl
index de30e9bce1..0115bfad40 100644
--- a/view/theme/frost/smarty3/msg-end.tpl
+++ b/view/theme/frost/smarty3/msg-end.tpl
@@ -3,12 +3,6 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
+
-
-
-
-
-
-
+
diff --git a/view/theme/frost/smarty3/msg-header.tpl b/view/theme/frost/smarty3/msg-header.tpl
index f5286890b8..bb7cac0e43 100644
--- a/view/theme/frost/smarty3/msg-header.tpl
+++ b/view/theme/frost/smarty3/msg-header.tpl
@@ -7,9 +7,9 @@
diff --git a/view/theme/frost/smarty3/nav.tpl b/view/theme/frost/smarty3/nav.tpl
index 98fffbe095..db5f696baf 100644
--- a/view/theme/frost/smarty3/nav.tpl
+++ b/view/theme/frost/smarty3/nav.tpl
@@ -10,7 +10,7 @@
-
+{{**}}
{{if $nav.notifications}}
-
+{{**}}
-
+
{{/if}}
-
+{{**}}
{{if $nav.messages}}
-
+{{**}}
{{/if}}
-
+{{**}}
@@ -184,7 +184,7 @@
{{$lbl_hobbies}}
-{{$interest}}
+{{$interest}}
@@ -195,7 +195,7 @@
{{$lbl_likes}}
-{{$likes}}
+{{$likes}}
@@ -206,7 +206,7 @@
{{$lbl_dislikes}}
-{{$dislikes}}
+{{$dislikes}}
@@ -217,7 +217,7 @@
{{$lbl_social}}
-{{$contact}}
+{{$contact}}
@@ -234,7 +234,7 @@
{{$lbl_music}}
-{{$music}}
+{{$music}}
@@ -244,7 +244,7 @@
{{$lbl_book}}
-{{$book}}
+{{$book}}
@@ -256,7 +256,7 @@
{{$lbl_tv}}
-{{$tv}}
+{{$tv}}
@@ -268,7 +268,7 @@
{{$lbl_film}}
-{{$film}}
+{{$film}}
@@ -285,7 +285,7 @@
{{$lbl_love}}
-{{$romance}}
+{{$romance}}
@@ -297,7 +297,7 @@
{{$lbl_work}}
-{{$work}}
+{{$work}}
@@ -309,7 +309,7 @@
{{$lbl_school}}
-{{$education}}
+{{$education}}
diff --git a/view/theme/frost/smarty3/search_item.tpl b/view/theme/frost/smarty3/search_item.tpl
new file mode 100644
index 0000000000..2b37b24583
--- /dev/null
+++ b/view/theme/frost/smarty3/search_item.tpl
@@ -0,0 +1,69 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
+{{**}}
+
+
+
+
+
+
+ {{**}}
+
+ {{**}}
+
+ {{**}}
+
+ {{if $item.lock}}{{**}}
{{**}}
+ {{else}}
{{/if}}
+
{{$item.location}}
+
+
+ {{**}}
+
{{$item.name}}
+
{{$item.ago}}
+
+ {{**}}
+
+
{{$item.title}}
+ {{**}}
+
{{$item.body}}
+ {{if $item.has_cats}}
+
+ {{/if}}
+
+ {{if $item.has_folders}}
+
+ {{/if}}
+
+
+
+ {{**}}
+
+
+
+
+{{**}}
diff --git a/view/theme/frost/smarty3/suggest_friends.tpl b/view/theme/frost/smarty3/suggest_friends.tpl
new file mode 100644
index 0000000000..8843d51284
--- /dev/null
+++ b/view/theme/frost/smarty3/suggest_friends.tpl
@@ -0,0 +1,21 @@
+{{*
+ * AUTOMATICALLY GENERATED TEMPLATE
+ * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+
+
+
+
+
+ {{if $connlnk}}
+
+ {{/if}}
+
+
diff --git a/view/theme/frost/smarty3/threaded_conversation.tpl b/view/theme/frost/smarty3/threaded_conversation.tpl
index f5c9b3c63c..fbaafa2674 100644
--- a/view/theme/frost/smarty3/threaded_conversation.tpl
+++ b/view/theme/frost/smarty3/threaded_conversation.tpl
@@ -5,7 +5,7 @@
*}}
{{if $dropping}}
@@ -25,7 +25,7 @@
{{if $dropping}}
diff --git a/view/theme/frost/smarty3/wall_thread.tpl b/view/theme/frost/smarty3/wall_thread.tpl
index d6782484f8..d6fbb3cf06 100644
--- a/view/theme/frost/smarty3/wall_thread.tpl
+++ b/view/theme/frost/smarty3/wall_thread.tpl
@@ -11,7 +11,7 @@
{{/if}}
-
+{{**}}
{{if $item.owner_url}}
@@ -29,33 +29,33 @@
-
+{{**}}
-
+{{**}}
-
+ {{**}}
- {{if $item.lock}}
+ {{if $item.lock}}{{**}}
{{**}}
{{else}}
{{/if}}
{{$item.location}}
-
+ {{**}}
{{$item.name}} {{if $item.owner_url}} {{$item.to}}
{{$item.owner_name}} {{$item.vwall}}{{/if}}
-
+ {{**}}
{{$item.title}}
-
+ {{**}}
{{$item.body}}
-
+ {{**}}
{{foreach $item.tags as $tag}}
{{$tag}}
{{/foreach}}
-
+ {{**}}
{{if $item.has_cats}}
@@ -79,7 +79,7 @@
{{/if}}
{{if $item.plink}}
-
+ {{**}}
{{**}}
{{/if}}
{{if $item.edpost}}
@@ -95,35 +95,35 @@
{{/if}}
-
- {{if $item.drop.dropping}}
{{/if}}
-
+ {{**}}
+ {{if $item.drop.dropping}}
{{/if}}
+ {{**}}
{{if $item.drop.pagedrop}}
{{/if}}
-
+ {{**}}
-
+ {{**}}
{{$item.like}}
{{$item.dislike}}
{{if $item.threaded}}
{{if $item.comment}}
-
+ {{**}}
{{$item.comment}}
-
+ {{**}}
{{/if}}
{{/if}}
-
-
+{{**}}
+{{**}}
{{foreach $item.children as $child}}
{{include file="{{$child.template}}" item=$child}}
{{/foreach}}
{{if $item.flatten}}
-
+{{**}}
{{$item.comment}}
-
+{{**}}
{{/if}}
{{if $item.comment_lastcollapsed}}{{/if}}
diff --git a/view/theme/frost/smarty3/wallmsg-end.tpl b/view/theme/frost/smarty3/wallmsg-end.tpl
index a0da3e095b..c7ad27401f 100644
--- a/view/theme/frost/smarty3/wallmsg-end.tpl
+++ b/view/theme/frost/smarty3/wallmsg-end.tpl
@@ -3,8 +3,7 @@
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
+
-
+
diff --git a/view/theme/frost/smarty3/wallmsg-header.tpl b/view/theme/frost/smarty3/wallmsg-header.tpl
index dcf8ae94df..6107a8a087 100644
--- a/view/theme/frost/smarty3/wallmsg-header.tpl
+++ b/view/theme/frost/smarty3/wallmsg-header.tpl
@@ -6,6 +6,7 @@
diff --git a/view/theme/frost/style.css b/view/theme/frost/style.css
index 05e4e65b9b..0e0ce6d71f 100644
--- a/view/theme/frost/style.css
+++ b/view/theme/frost/style.css
@@ -92,12 +92,17 @@ blockquote {
}
#panel {
- background-color: ivory;
position: absolute;
z-index: 2;
width: 30%;
padding: 25px;
- border: 1px solid #444;
+
+/* background-color: ivory;
+ border: 1px solid #444;*/
+
+ border-radius: 7px;
+ background-color: #222;
+ color: #eee;
}
.heart {
@@ -337,6 +342,11 @@ section {
}
.tabs li { margin: 0px; list-style: none; }
.tabs a {
+/* background-image: url(head.jpg);
+ background-repeat: repeat-x;
+ background-position: 0px 0px;
+ background-size: auto 45px;*/
+
padding: 0.4em 0.5em;
margin-right: 0.5em;
margin-bottom: 0.5em;
@@ -359,6 +369,9 @@ section {
.tab.active {
font-weight: bold;
+/* background-image: url(head-flipped.jpg);
+ background-position: 0px -20px;*/
+
box-shadow: 2px 2px 3px #aaa inset;
-moz-box-shadow: 2px 2px 3px #aaa inset;
-webkit-box-shadow: 2px 2px 3px #aaa inset;
@@ -375,6 +388,12 @@ footer {
padding-bottom: 1em;
}
+#maintenance-message {
+ font-size: 20px;
+ text-align: center;
+ margin-top: 10em;
+}
+
.birthday-today, .event-today {
font-weight: bold;
}
@@ -1173,15 +1192,16 @@ input#dfrn-url {
float: left;
width:110px;
margin-right:10px;
+ margin-bottom:10px;
}
.comment .wall-item-info {
width: 70px;
}
-.wall-item-photo-wrapper {
+/*.wall-item-photo-wrapper {
margin-bottom: 10px;
width: 100px;
-}
+}*/
.wall-item-photo-menu-button {
display: block;
position: absolute;
@@ -1191,7 +1211,7 @@ input#dfrn-url {
margin: 0px; padding: 0px;
width: 16px;
height: 16px;
- top: 94px; left:0px;
+ top: 76px; left:0px;
overflow: hidden;
text-indent: 40px;
display: none;
@@ -1203,7 +1223,7 @@ input#dfrn-url {
background: #FFFFFF;
position: absolute;
/* left: 10px; top: 90px;*/
- left: 0px; top:110px;
+ left: 0px; top:92px;
display: none;
z-index: 10000;
}
@@ -1219,7 +1239,7 @@ input#dfrn-url {
left: 50px;
margin: 0;
position: absolute;
- top: 70px;
+ top: 63px;
width: 30px
}
.wallwall .wwto img {
@@ -1234,7 +1254,7 @@ input#dfrn-url {
.wall-item-arrowphoto-wrapper {
position: absolute;
left: 75px;
- top: 70px;
+ top: 63px;
z-index: 100;
}
.wall-item-lock {
@@ -1354,15 +1374,34 @@ input#dfrn-url {
.wall-item-content img {
display: block;
- margin-top: 10px;
+ margin-top: 12px;
+ margin-bottom: 12px;
margin-right: auto;
margin-left: auto;
+/* max-width: 100%;*/
+ max-width: 400px; /* to make room for the shadow */
+ padding: 5px;
+
+ box-shadow: 0 0 10px #000;
+ -moz-box-shadow: 0 0 10px #000;
+ -webkit-box-shadow: 0 0 10px #000;
+}
+
+.shared_content img {
max-width: 100%;
}
+.comment .wall-item-content img {
+ max-width: 370px;
+}
+
.wall-item-content img.smiley {
display: inline;
margin: auto;
+ padding: 0;
+ box-shadow: none;
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
}
.divgrow-showmore {
@@ -1420,7 +1459,7 @@ input#dfrn-url {
.comment .wall-item-tools {
margin-left: 0px;
- margin-top: 0px;
+ margin-top: 5px;
padding-top: 0px;
}
@@ -1502,6 +1541,27 @@ input#dfrn-url {
margin-left: 30px;
}
+.shared_header {
+ border-top: 1px solid #aaa;
+ color: #999;
+
+ height: 42px; /* 32 px for the image plus 10 px for the margin around the image */
+ padding-top: 0.5em;
+ margin-top: 1em;
+ margin-bottom: 1em;
+
+}
+.shared_header img {
+ float: left;
+
+ margin: auto 1em auto auto;
+ padding: 0;
+
+ box-shadow: none;
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
+}
+
#profile-jot-plugin-wrapper,
#profile-jot-submit-wrapper {
margin-top: 15px;
@@ -1925,7 +1985,10 @@ input#dfrn-url {
}
.contact-edit-submit {
- margin-top: 20px;
+ margin-top: 10px;
+ clear: left;
+ display: block;
+ margin-bottom: 45px;
}
@@ -2372,8 +2435,10 @@ aside input[type='text'] {
}
.photo-top-image-wrapper {
-/* position: relative; */
- float: left;
+/* position: relative;
+ float: left;*/
+ display: inline-block;
+ vertical-align: top;
margin-top: 15px;
margin-right: 15px;
margin-left: 15px;
@@ -2381,8 +2446,13 @@ aside input[type='text'] {
/* width: 200px; height: 200px;
overflow: hidden; */
}
-.photo-top-image-wrapper img {
- max-width: 550px;
+.photo-album-image-wrapper img, .photo-top-image-wrapper img {
+ max-width: 225px;
+ padding: 5px;
+
+ box-shadow: 0 0 10px #000;
+ -moz-box-shadow: 0 0 10px #000;
+ -webkit-box-shadow: 0 0 10px #000;
}
.photo-top-album-name {
width: 100%;
@@ -2510,9 +2580,8 @@ aside input[type='text'] {
#photos-upload-choosefile-outer-wrapper {
margin-top: 35px;
- padding-top: 50px;
padding-left: 50px;
- position: relative;
+ margin-bottom: 4em;
}
#photos-upload-noshare-div {
margin-top: 0px;
@@ -2578,12 +2647,13 @@ aside input[type='text'] {
}
#photo-edit-delete-button {
- margin-left: 270px;
+/* margin-left: 270px;*/
+ float: right;
}
#photos-upload-choose {
- position: absolute;
+/* position: absolute;
top: 0px;
- left: 55px;
+ left: 55px;*/
}
.settings-submit, .profile-edit-submit-button {
margin-bottom: 10px;
@@ -2832,7 +2902,7 @@ aside input[type='text'] {
}
#event-share-text {
- float: left;
+/* float: left;*/
margin-top: 10px;
margin-left: 5px;
}
@@ -2957,9 +3027,17 @@ aside input[type='text'] {
/*#photo-photo {
float: left;
}*/
+#photo-photo {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 2em;
+ text-align: center;
+}
#photo-photo img {
- max-width: 555px;
- margin-left: 5px;
+/* max-width: 555px;
+ margin-left: 5px;*/
+ max-width: 100%;
}
#photo-photo-end {
clear: both;
@@ -2989,11 +3067,18 @@ aside input[type='text'] {
}
.profile-match-wrapper {
- float: left;
+ display: inline-block;
padding: 10px;
- width: 120px;
- height: 120px;
+ /*width: 120px;
+ height: 120px;*/
scroll: auto;
+ margin-bottom: 2em;
+ vertical-align: top;
+}
+.profile-match-wrapper .icon.drophide {
+ margin-left: auto;
+ margin-right: auto;
+ margin-top: 1em;
}
#profile-match-wrapper-end {
clear: both;
@@ -3456,6 +3541,13 @@ aside input[type='text'] {
background-repeat: no-repeat;
opacity: 0.4;
}
+.icon.drophide:hover {
+ display: block; width: 16px; height: 16px;
+ background-size: 100% 100%;
+ background-image: url('images/drop-16.png');
+ background-repeat: no-repeat;
+ opacity: 1.0;
+}
.edit { background-position: -80px 0px;}
/*.camera { background-position: -96px 0px;}*/
.icon.camera{
@@ -3758,21 +3850,66 @@ aside input[type='text'] {
}*/
.attachtype {
- display: block; width: 20px; height: 23px;
+ display: block;
float: left;
- background-image: url('../../../images/content-types.png');
- background-position: -80px 0px;
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+ background-image: url('images/oxygen/unknown.png');
}
.body-attach {
margin-top: 10px;
}
-.type-video { background-position: 0px 0px; }
+/*.type-video { background-position: 0px 0px; }
.type-image { background-position: -20px 0px; }
.type-audio { background-position: -40px 0px; }
.type-text { background-position: -60px 0px; }
-.type-unkn { background-position: -80px 0px; }
+.type-unkn { background-position: -80px 0px; }*/
+.type-video {
+ background-image: url('images/oxygen/video-x-generic.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}
+.type-image {
+ background-image: url('images/oxygen/image-x-generic.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}
+.type-audio { background-image: url('images/oxygen/audio-x-generic.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}
+
+.type-text {
+ background-image: url('images/oxygen/text-x-generic-2.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}
+.subtype-msword, .subtype-vnd-openxmlformats-officedocument-wordprocessingml-document {
+ background-image: url('images/oxygen/application-msword.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}
+.subtype-pdf {
+ background-image: url('images/oxygen/application-pdf.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}
+/*.type-unkn {
+ background-image: url('images/oxygen/unknown.png');
+ background-size: 100% 100%;
+ width: 48px;
+ height: 48px;
+}*/
+
/* autocomplete popup */
@@ -3852,6 +3989,33 @@ div.jGrowl-notification {
.nav-notify.show {
display: block;
}
+ul#nav-network-notifications-popup {
+ text-align: center;
+ line-height: 18px;
+
+ border: 1px solid #AAAAAA;
+ border-radius: 5px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+
+ -moz-box-shadow: 3px 3px 5px #555;
+ -webkit-box-shadow: 3px 3px 5px #555;
+ box-shadow: 3px 3px 5px #555;
+
+ background: #FFFFFF;
+
+ display: none;
+ list-style: none;
+
+ width: 10em;
+ position: absolute;
+ margin: 0px;
+ top: 15px;
+ left: 55px;
+ padding: 1em 0px;
+
+ z-index: 11000;
+}
ul.notifications-menu-popup {
position: absolute;
display: none;
diff --git a/view/theme/frost/suggest_friends.tpl b/view/theme/frost/suggest_friends.tpl
new file mode 100644
index 0000000000..e0d1c29441
--- /dev/null
+++ b/view/theme/frost/suggest_friends.tpl
@@ -0,0 +1,16 @@
+
+
+
+
+
+ {{ if $connlnk }}
+
+ {{ endif }}
+
+
diff --git a/view/theme/frost/theme.php b/view/theme/frost/theme.php
index 8deef782f0..3decb2a118 100644
--- a/view/theme/frost/theme.php
+++ b/view/theme/frost/theme.php
@@ -4,7 +4,7 @@
* Name: Frost
* Description: Like frosted glass
* Credits: Navigation icons taken from http://iconza.com. Other icons taken from http://thenounproject.com, including: Like, Dislike, Black Lock, Unlock, Pencil, Tag, Camera, Paperclip (Marie Coons), Folder (Sergio Calcara), Chain-link (Andrew Fortnum), Speaker (Harold Kim), Quotes (Henry Ryder), Video Camera (Anas Ramadan), and Left Arrow, Right Arrow, and Delete X (all three P.J. Onori). All under Attribution (CC BY 3.0). Others from The Noun Project are public domain or No Rights Reserved (CC0).
- * Version: Version 0.3.2
+ * Version: Version 0.4
* Author: Zach P
* Maintainer: Zach P
*/
@@ -30,3 +30,45 @@ function frost_content_loaded(&$a) {
}
+function frost_install() {
+ register_hook('prepare_body_final', 'view/theme/frost/theme.php', 'frost_item_photo_links');
+
+ logger("installed theme frost");
+}
+
+function frost_uninstall() {
+ unregister_hook('bbcode', 'view/theme/frost/theme.php', 'frost_bbcode');
+
+ logger("uninstalled theme frost");
+}
+
+function frost_item_photo_links(&$a, &$body_info) {
+ require_once('include/Photo.php');
+ $phototypes = Photo::supportedTypes();
+
+ $occurence = 1;
+ $p = bb_find_open_close($body_info['html'], "");
+ while($p !== false && ($occurence++ < 500)) {
+ $link = substr($body_info['html'], $p['start'], $p['end'] - $p['start']);
+
+ $matches = array();
+ preg_match("/\/photos\/[\w]+\/image\/([\w]+)/", $link, $matches);
+ if($matches) {
+
+ // Replace the link for the photo's page with a direct link to the photo itself
+ $newlink = str_replace($matches[0], "/photo/{$matches[1]}", $link);
+
+ // Add a "quiet" parameter to any redir links to prevent the "XX welcomes YY" info boxes
+ $newlink = preg_replace("/href=\"([^\"]+)\/redir\/([^\"]+)&url=([^\"]+)\"/", 'href="$1/redir/$2&quiet=1&url=$3"', $newlink);
+
+ // Having any arguments to the link for Colorbox causes it to fetch base64 code instead of the image
+ $newlink = preg_replace("/\/[?&]zrl=([^&\"]+)/", '', $newlink);
+
+ $body_info['html'] = str_replace($link, $newlink, $body_info['html']);
+
+ }
+
+ $p = bb_find_open_close($body_info['html'], " ", $occurence);
+ }
+}
+
diff --git a/view/theme/frost/threaded_conversation.tpl b/view/theme/frost/threaded_conversation.tpl
index cdafaad39c..a987541831 100644
--- a/view/theme/frost/threaded_conversation.tpl
+++ b/view/theme/frost/threaded_conversation.tpl
@@ -1,6 +1,6 @@
{{ if $dropping }}
@@ -20,7 +20,7 @@ $live_update
{{ if $dropping }}
diff --git a/view/theme/frost/wall_thread.tpl b/view/theme/frost/wall_thread.tpl
index 85b0183c4c..9c63bef227 100644
--- a/view/theme/frost/wall_thread.tpl
+++ b/view/theme/frost/wall_thread.tpl
@@ -6,7 +6,7 @@
{{endif}}
-
+{##}
{{ if $item.owner_url }}
@@ -24,33 +24,33 @@
-
+{##}
-
+{##}
-
+ {##}
- {{ if $item.lock }}
+ {{ if $item.lock }}{##}
{##}
{{ else }}
{{ endif }}
$item.location
-
+ {##}
$item.name {{ if $item.owner_url }} $item.to
$item.owner_name $item.vwall{{ endif }}
-
+ {##}
$item.title
-
+ {##}
$item.body
-
+ {##}
{{ for $item.tags as $tag }}
$tag
{{ endfor }}
-
+ {##}
{{ if $item.has_cats }}
@@ -74,7 +74,7 @@
{{ endif }}
{{ if $item.plink }}
-
+ {##}
{##}
{{ endif }}
{{ if $item.edpost }}
@@ -90,35 +90,35 @@
{{ endif }}
-
- {{ if $item.drop.dropping }}
{{ endif }}
-
+ {##}
+ {{ if $item.drop.dropping }}
{{ endif }}
+ {##}
{{ if $item.drop.pagedrop }}
{{ endif }}
-
+ {##}
-
+ {##}
$item.like
$item.dislike
{{ if $item.threaded }}
{{ if $item.comment }}
-
+ {##}
$item.comment
-
+ {##}
{{ endif }}
{{ endif }}
-
-
+{##}
+{##}
{{ for $item.children as $child }}
{{ inc $child.template with $item=$child }}{{ endinc }}
{{ endfor }}
{{ if $item.flatten }}
-
+{##}
$item.comment
-
+{##}
{{ endif }}
{{if $item.comment_lastcollapsed}}{{endif}}
diff --git a/view/theme/frost/wallmsg-end.tpl b/view/theme/frost/wallmsg-end.tpl
index d9e34d6fba..6baa6e7dc1 100644
--- a/view/theme/frost/wallmsg-end.tpl
+++ b/view/theme/frost/wallmsg-end.tpl
@@ -1,5 +1,4 @@
+
-
+
diff --git a/view/theme/frost/wallmsg-header.tpl b/view/theme/frost/wallmsg-header.tpl
index 9cd2bd6e23..7523539483 100644
--- a/view/theme/frost/wallmsg-header.tpl
+++ b/view/theme/frost/wallmsg-header.tpl
@@ -1,6 +1,7 @@