Merge remote-tracking branch 'upstream/master'
Conflicts: boot.php database.sql library/fancybox/jquery.fancybox-1.3.4.css mod/search.php update.php
2
LICENSE
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2010-2012 the Friendica Project
|
Copyright (c) 2010-2013 the Friendica Project
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
|
97
README.translate
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
Friendica translations
|
||||||
|
======================
|
||||||
|
|
||||||
|
Translation Process
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
The strings used in the UI of Friendica is translated at Transifex [1] and then
|
||||||
|
included in the git repository at github. If you want to help with translation
|
||||||
|
for any language, be it correcting terms or translating friendica to a
|
||||||
|
currently not supported language, please register an account at transifex.com
|
||||||
|
and contact the friendica translation team there.
|
||||||
|
|
||||||
|
Translating friendica is simple. Just use the online tool at transifex. If you
|
||||||
|
don't want to deal with git & co. that is fine, we check the status of the
|
||||||
|
translations regularly and import them into the source tree at github so that
|
||||||
|
others can use them.
|
||||||
|
|
||||||
|
We do not include every translation from transifex in the source tree to avoid
|
||||||
|
a scattered and disturbed overall experience. As an uneducated guess we have a
|
||||||
|
lower limit of 50% translated strings before we include the language. This
|
||||||
|
limit is judging only by the amount of translated strings under the assumption
|
||||||
|
that the most prominent strings for the UI will be translated first by a
|
||||||
|
translation team. If you feel your translation useable before this limit,
|
||||||
|
please contact us and we will probably include your teams work in the source
|
||||||
|
tree.
|
||||||
|
|
||||||
|
If you want to get your work into the source tree yourself, feel free to do so
|
||||||
|
and contact us with and question that arises. The process is simple and
|
||||||
|
friendica ships with all the tools necessary.
|
||||||
|
|
||||||
|
The location of the translated files in the source tree is
|
||||||
|
/view/LNG-CODE/
|
||||||
|
where LNG-CODE is the language code used, e.g. de for German or fr for French.
|
||||||
|
For the email templates (the *.tpl files) just place them into the directory
|
||||||
|
and you are done. The translated strings come as a "message.po" file from
|
||||||
|
transifex which needs to be translated into the PHP file friendica uses. To do
|
||||||
|
so, place the file in the directory mentioned above and use the "po2php"
|
||||||
|
utility from the util directory of your friendica installation.
|
||||||
|
|
||||||
|
Assuming you want to convert the German localization which is placed in
|
||||||
|
view/de/message.po you would do the following.
|
||||||
|
|
||||||
|
1. Navigate at the command prompt to the base directory of your
|
||||||
|
friendica installation
|
||||||
|
|
||||||
|
2. Execute the po2php script, which will place the translation
|
||||||
|
in the strings.php file that is used by friendica.
|
||||||
|
|
||||||
|
$> php util/po2php.php view/de/message.po
|
||||||
|
|
||||||
|
The output of the script will be placed at view/de/strings.php where
|
||||||
|
froemdoca os expecting it, so you can test your translation mmediately.
|
||||||
|
|
||||||
|
3. Visit your friendica page to check if it still works in the language you
|
||||||
|
just translated. If not try to find the error, most likely PHP will give
|
||||||
|
you a hint in the log/warnings.about the error.
|
||||||
|
|
||||||
|
For debugging you can also try to "run" the file with PHP. This should
|
||||||
|
not give any output if the file is ok but might give a hint for
|
||||||
|
searching the bug in the file.
|
||||||
|
|
||||||
|
$> php view/de/strings.php
|
||||||
|
|
||||||
|
4. commit the two files with a meaningful commit message to your git
|
||||||
|
repository, push it to your fork of the friendica repository at github and
|
||||||
|
issue a pull request for that commit.
|
||||||
|
|
||||||
|
Utilities
|
||||||
|
---------
|
||||||
|
|
||||||
|
Additional to the po2php script there are some more utilities for translation
|
||||||
|
in the "util" directory of the friendica source tree. If you only want to
|
||||||
|
translate friendica into another language you wont need any of these tools most
|
||||||
|
likely but it gives you an idea how the translation process of friendica
|
||||||
|
works.
|
||||||
|
|
||||||
|
For further information see the utils/README file.
|
||||||
|
|
||||||
|
Known Problems
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Friendica uses the language setting of the visitors browser to determain the
|
||||||
|
language for the UI. Most of the time this works, but there are some known
|
||||||
|
quirks.
|
||||||
|
|
||||||
|
One is that some browsers, like Safari, do the setting to "de-de" but friendica
|
||||||
|
only has a "de" localisation. A workaround would be to add a symbolic link
|
||||||
|
from
|
||||||
|
$friendica/view/de-de
|
||||||
|
pointing to
|
||||||
|
$friendica/view/de
|
||||||
|
|
||||||
|
Links
|
||||||
|
-----
|
||||||
|
|
||||||
|
[1] https://www.transifex.com/projects/p/friendica/
|
||||||
|
|
78
boot.php
|
@ -12,9 +12,9 @@ require_once('library/Mobile_Detect/Mobile_Detect.php');
|
||||||
require_once('include/features.php');
|
require_once('include/features.php');
|
||||||
|
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '3.1.1589' );
|
define ( 'FRIENDICA_VERSION', '3.1.1612' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1159 );
|
define ( 'DB_UPDATE_VERSION', 1161 );
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
|
||||||
|
@ -824,14 +824,26 @@ function is_ajax() {
|
||||||
return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
|
return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function check_db() {
|
||||||
|
|
||||||
// Primarily involved with database upgrade, but also sets the
|
$build = get_config('system','build');
|
||||||
// base url for use in cmdline programs which don't have
|
if(! x($build)) {
|
||||||
|
set_config('system','build',DB_UPDATE_VERSION);
|
||||||
|
$build = DB_UPDATE_VERSION;
|
||||||
|
}
|
||||||
|
if($build != DB_UPDATE_VERSION)
|
||||||
|
proc_run('php', 'include/dbupdate.php');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Sets the base url for use in cmdline programs which don't have
|
||||||
// $_SERVER variables
|
// $_SERVER variables
|
||||||
|
|
||||||
|
if(! function_exists('check_url')) {
|
||||||
if(! function_exists('check_config')) {
|
function check_url(&$a) {
|
||||||
function check_config(&$a) {
|
|
||||||
|
|
||||||
$url = get_config('system','url');
|
$url = get_config('system','url');
|
||||||
|
|
||||||
|
@ -846,6 +858,15 @@ if(! function_exists('check_config')) {
|
||||||
if((! link_compare($url,$a->get_baseurl())) && (! preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$a->get_hostname)))
|
if((! link_compare($url,$a->get_baseurl())) && (! preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$a->get_hostname)))
|
||||||
$url = set_config('system','url',$a->get_baseurl());
|
$url = set_config('system','url',$a->get_baseurl());
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Automatic database updates
|
||||||
|
|
||||||
|
if(! function_exists('update_db')) {
|
||||||
|
function update_db(&$a) {
|
||||||
|
|
||||||
$build = get_config('system','build');
|
$build = get_config('system','build');
|
||||||
if(! x($build))
|
if(! x($build))
|
||||||
|
@ -1327,7 +1348,7 @@ if(! function_exists('profile_sidebar')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(get_my_url() && $profile['unkmail'])
|
if( get_my_url() && $profile['unkmail'] && ($profile['uid'] != local_user()) )
|
||||||
$wallmessage = t('Message');
|
$wallmessage = t('Message');
|
||||||
else
|
else
|
||||||
$wallmessage = false;
|
$wallmessage = false;
|
||||||
|
@ -1364,9 +1385,15 @@ if(! function_exists('profile_sidebar')) {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if ($profile['uid'] == local_user() && !feature_enabled(local_user(),'multi_profiles')) {
|
||||||
|
$profile['edit'] = array($a->get_baseurl(). '/profiles/'.$profile['id'], t('Edit profile'),"", t('Edit profile'));
|
||||||
|
$profile['menu'] = array(
|
||||||
|
'chg_photo' => t('Change profile photo'),
|
||||||
|
'cr_new' => null,
|
||||||
|
'entries' => array(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1419,6 +1446,7 @@ if(! function_exists('profile_sidebar')) {
|
||||||
if($a->theme['template_engine'] === 'internal')
|
if($a->theme['template_engine'] === 'internal')
|
||||||
$location = template_escape($location);
|
$location = template_escape($location);
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template('profile_vcard.tpl');
|
$tpl = get_markup_template('profile_vcard.tpl');
|
||||||
$o .= replace_macros($tpl, array(
|
$o .= replace_macros($tpl, array(
|
||||||
'$profile' => $p,
|
'$profile' => $p,
|
||||||
|
@ -1935,6 +1963,36 @@ function build_querystring($params, $name=null) {
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function explode_querystring($query) {
|
||||||
|
$arg_st = strpos($query, '?');
|
||||||
|
if($arg_st !== false) {
|
||||||
|
$base = substr($query, 0, $arg_st);
|
||||||
|
$arg_st += 1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$base = '';
|
||||||
|
$arg_st = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$args = explode('&', substr($query, $arg_st));
|
||||||
|
foreach($args as $k=>$arg) {
|
||||||
|
if($arg === '')
|
||||||
|
unset($args[$k]);
|
||||||
|
}
|
||||||
|
$args = array_values($args);
|
||||||
|
|
||||||
|
if(!$base) {
|
||||||
|
$base = $args[0];
|
||||||
|
unset($args[0]);
|
||||||
|
$args = array_values($args);
|
||||||
|
}
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'base' => $base,
|
||||||
|
'args' => $args,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the complete URL of the current page, e.g.: http(s)://something.com/network
|
* Returns the complete URL of the current page, e.g.: http(s)://something.com/network
|
||||||
*
|
*
|
||||||
|
|
|
@ -592,6 +592,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
||||||
KEY `uid_unseen` (`uid`, `unseen`),
|
KEY `uid_unseen` (`uid`, `unseen`),
|
||||||
KEY `mention` (`mention`),
|
KEY `mention` (`mention`),
|
||||||
KEY `resource-id` (`resource-id`),
|
KEY `resource-id` (`resource-id`),
|
||||||
|
KEY `event_id` (`event-id`),
|
||||||
FULLTEXT KEY `title` (`title`),
|
FULLTEXT KEY `title` (`title`),
|
||||||
FULLTEXT KEY `body` (`body`),
|
FULLTEXT KEY `body` (`body`),
|
||||||
FULLTEXT KEY `allow_cid` (`allow_cid`),
|
FULLTEXT KEY `allow_cid` (`allow_cid`),
|
||||||
|
|
52
doc/Chats.md
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
Chats
|
||||||
|
=====
|
||||||
|
|
||||||
|
* [Home](help)
|
||||||
|
|
||||||
|
There are two possibilities to use a chat on your friendica site
|
||||||
|
|
||||||
|
* IRC Chat
|
||||||
|
* Jappix
|
||||||
|
|
||||||
|
##IRC-Chat Plugin
|
||||||
|
|
||||||
|
After activating the plugin, you can find the chat at [yoursite.com/irc](../irc). Note: you can use this chat without any login at your site so that everyone could use it.
|
||||||
|
|
||||||
|
If you follow the link, you will see the login page of the IR chat. Now choose a nickname and a chatroom. You can choose every name for the room, even something like #superchatwhosenameisonlyknownbyme. At last, solve the captchas and click the connect button.
|
||||||
|
|
||||||
|
The following window shows some text while connecting. This text isn't importend for you, just wait for the next window. The first line shows your name and your current IP address. The right part of the window shows all user. The lower part of the window contains an input field.
|
||||||
|
|
||||||
|
##Jappix Mini
|
||||||
|
|
||||||
|
The Jappix Mini Plugin creates a chatbox for jabber- and XMPP-contacts. You should already have a jabber/XMPP-account before setting up the plugin. You can find more information at http://www.jabber.org/
|
||||||
|
|
||||||
|
You can use several server to create an account:
|
||||||
|
|
||||||
|
* [https://jappix.com](https://jappix.com)
|
||||||
|
* [http://xmpp.net](http://xmpp.net)
|
||||||
|
|
||||||
|
**1. Basics**
|
||||||
|
|
||||||
|
At first you have to get the current version (via github):
|
||||||
|
|
||||||
|
cd /var/www/virtual/YOURSPACE/html/addon; git pull
|
||||||
|
|
||||||
|
or as a normal download via: https://github.com/friendica/friendica-addons/blob/master/jappixmini.tgz (click at „view raw“).
|
||||||
|
|
||||||
|
Just unpack the file and rename the directory to „jappixmini“. Next, upload this directory and the .tgz-file into your addon directory of your friendica installation.
|
||||||
|
|
||||||
|
Now you can activate the plugin at the admin pages. Now you can find an entry of jappix at the plugin sidebar (where you can also find twitter, statusnet and other ones). The following page shows the settings of this plugin.
|
||||||
|
|
||||||
|
Now you can activate the BOSH proxy.
|
||||||
|
Next, go to the setting page of your account.
|
||||||
|
|
||||||
|
**2. Settings**
|
||||||
|
|
||||||
|
Go to the account settings and choose the plugin page. Scroll down until you find the Jappix Mini addon settings
|
||||||
|
|
||||||
|
At first you have to activate the addon.
|
||||||
|
|
||||||
|
Now add your Jabber/XMPP name, the domain/server (without "http"; just "jappix.com"). For „Jabber BOSH Host“ you could use "https://bind.jappix.com/". You can find further information in the „Configuration Help“-section below this fields.
|
||||||
|
At last you have enter your password (there are some more optional options, you can choose). Finish these steps with "send" to save the entries. Now, you should find the chatbox at the lower right corner of your browser window.
|
||||||
|
|
||||||
|
If you want to add contacts manually, you can click "add contact".
|
140
doc/FAQ.md
Normal file
|
@ -0,0 +1,140 @@
|
||||||
|
Frequently Asked Questions - FAQ
|
||||||
|
==============
|
||||||
|
|
||||||
|
* [Home](help)
|
||||||
|
|
||||||
|
User
|
||||||
|
|
||||||
|
* **[Why do I getting warnings about certificates?](help/FAQ#ssl)**
|
||||||
|
* **[Is it possible to have different avatars per profile?](help/FAQ#avatars)**
|
||||||
|
* **[What is the difference between blocked|ignored|archived|hidden contacts?](help/FAQ#contacts)**
|
||||||
|
* **[What happens when an account is removed? Is it truly deleted?](help/FAQ#removed)**
|
||||||
|
* **[Can I subscribe to a hashtag?](help/FAQ#hashtag)**
|
||||||
|
* **[How to create a RSS feed of the stream?](help/FAQ#rss)**
|
||||||
|
* **[Where I can find help?](help/FAQ#help)**
|
||||||
|
|
||||||
|
Admins
|
||||||
|
|
||||||
|
* **[Can I configure multiple domains with the same code instance?](help/FAQ#multiple)**
|
||||||
|
* **[Where can I find the source code of friendica, addons and themes?](help/FAQ#sources)**
|
||||||
|
|
||||||
|
User
|
||||||
|
--------
|
||||||
|
*****
|
||||||
|
<a name="ssl"></a>
|
||||||
|
|
||||||
|
**Why do I getting warnings about certificates?**
|
||||||
|
|
||||||
|
Sometimes you get a browser warning about a missing certificate. These warnings can have three reasons:
|
||||||
|
|
||||||
|
1. the server you are connected to doesn't have SSL;
|
||||||
|
|
||||||
|
2. the server has a self-signed certificate (not recommended)
|
||||||
|
|
||||||
|
3. the certificate is expired.
|
||||||
|
|
||||||
|
*(SSL (Secure Socket Layer) is a technology to encrypt data as it passes between two computers).*
|
||||||
|
|
||||||
|
If you dont have a SSL cert yet, there are three ways to get one: buy one, get a free one (eg. via StartSSL) or create your own (not recommended). [You can find more information about setting up SSL and why it's a bad idea to use self-signed SSL here.](help/SSL)
|
||||||
|
|
||||||
|
Be aware that a browser warning about security issues is something that can make new users feel insecure about the whole friendica project.
|
||||||
|
Because of this, Friendica Red will only accept SSL certs signed by a recognized CA and doesn't connect to servers without these kind of SSL. Despite of the negative aspects of SSL, this is a necessary solution until there is an established alternative for this technique.
|
||||||
|
|
||||||
|
Also you can have problems with the connection to diaspora because some pods require a SSL-certificated connection.
|
||||||
|
|
||||||
|
If you are just using friendica for a specified group of people on a single server without a connection to the rest of the friendica network, there is no need to use SSL. If you exclusively use public posts, there is also no need for it.
|
||||||
|
|
||||||
|
If you havn't set up a server yet, it's wise to compare the different provider and their SSL conditions. Some allow the usage of free certificates or give you the access to their certificate for free. Other ones only allow bought certificates from themselves or other providers.
|
||||||
|
|
||||||
|
<a name="avatars"></a>
|
||||||
|
|
||||||
|
**Is it possible to have different avatars per profile?**
|
||||||
|
|
||||||
|
Yes. On your Edit/Manage Profiles page, you will find a "change profile photo" link. Clicking this will take you to a page where you can upload a photograph and select which profile it will be associated with. To avoid privacy leakage, we only display the photograph associated with your default profile as the avatar in your posts.
|
||||||
|
|
||||||
|
<a name="contacts"></a>
|
||||||
|
|
||||||
|
**What is the difference between blocked|ignored|archived|hidden contacts?**
|
||||||
|
|
||||||
|
We prevent direct communication with blocked contacts. They are not included in delivery, and their own posts to you are not imported; however their conversations with your friends will still be visible in your stream. If you remove a contact completely, they can send you another friend request. Blocked contacts cannot do this. They cannot communicate with you directly, only through friends.
|
||||||
|
|
||||||
|
Ignored contacts are included in delivery - they will receive your posts. However we do not import their posts to you. Like blocking, you will still see this person's comments to posts made by your friends.
|
||||||
|
|
||||||
|
[A plugin called "blockem" can be installed to collapse/hide all posts from a particular person in your stream if you desire complete blocking of an individual, including his/her conversations with your other friends.]
|
||||||
|
|
||||||
|
An archived contact means that communication is not possible and will not be attempted (perhaps the person moved to a new site and removed the old profile); however unlike blocking, existing posts this person made before being archived will be visible in your stream.
|
||||||
|
|
||||||
|
A hidden contact will not be displayed in any "friend list" (except to you). However a hidden contact will appear normally in conversations and this may expose his/her hidden status to anybody who can see the conversation.
|
||||||
|
|
||||||
|
<a name="removed"></a>
|
||||||
|
|
||||||
|
**What happens when an account is removed? Is it truly deleted?**
|
||||||
|
|
||||||
|
If you delete your account, we will immediately remove all your content on your server, and then issue requests to all your contacts to remove you. This will also remove you from the global directory. Doing this requires that your account and profile still be "partially" available for up to 24 hours in order to establish contact with all your friends. We can block it in several ways so that it appears empty and all profile information erased, but will then wait for 24 hours (or after all of your contacts have been notified) before we can physically remove it.
|
||||||
|
|
||||||
|
<a name="hashtag"></a>
|
||||||
|
|
||||||
|
**Can I follow a hashtag?**
|
||||||
|
|
||||||
|
No. The act of 'following' a hashtags is an interesting technology, but presents a few issues.
|
||||||
|
|
||||||
|
1.) Posts which have to be copied to all sites on the network that are "listening" to that tag, which increases the storage demands to the detriment of small sites, and making the use of shared hosting practically impossible, and
|
||||||
|
|
||||||
|
2.) Making spam easy (tag spam is quite a serious issue on identi.ca for instance)
|
||||||
|
|
||||||
|
but mostly
|
||||||
|
|
||||||
|
3.) It creates a natural bias towards large sites which hold more tagged content - if your network uses tagging instead of other conversation federation mechanisms such as groups/forums.
|
||||||
|
|
||||||
|
Instead, we offer other mechanisms for wide-area conversations while retaining a 'level playing ground' for both large and small sites, such as forums and community pages and shared tags.
|
||||||
|
|
||||||
|
<a name="rss"></a>
|
||||||
|
|
||||||
|
**How to create a RSS feed of the stream?**
|
||||||
|
|
||||||
|
If you want to share your public page via rss you can use one of the following links:
|
||||||
|
|
||||||
|
RSS feed of your posts
|
||||||
|
|
||||||
|
basic-url.com/**dfrn_poll/profilename
|
||||||
|
|
||||||
|
Example: Friendica Support
|
||||||
|
|
||||||
|
https://helpers.pyxis.uberspace.de/dfrn_poll/helpers
|
||||||
|
|
||||||
|
RSS feed of the conversations at your site
|
||||||
|
|
||||||
|
basic-url.com/dfrn_poll/profilename/converse
|
||||||
|
|
||||||
|
Example: Friendica Support
|
||||||
|
|
||||||
|
https://helpers.pyxis.uberspace.de/dfrn_poll/helpers/converse
|
||||||
|
|
||||||
|
<a name="help"></a>
|
||||||
|
|
||||||
|
**Where I can find help?**
|
||||||
|
|
||||||
|
If you have problems with your Friendica page, you can ask the community at the [Friendica Support Group](https://helpers.pyxis.uberspace.de/profile/helpers). If you can't use your default profile you can either use a test account [test server](http://friendica.com/node/31) respectively an account at a public site [list](http://dir.friendica.com/siteinfo) or you can use the Librelist mailing list. If you want to use the mailing list, please just send a mail to friendica AT librelist DOT com.
|
||||||
|
|
||||||
|
If you are using Friendica Red, you will also find help at this forum: [Friendica Red Development](https://myfriendica.net/profile/friendicared).
|
||||||
|
|
||||||
|
If you are a theme developer, you will find help at this forum: [Friendica Theme Developers](https://friendica.eu/profile/ftdevs).
|
||||||
|
|
||||||
|
Admin
|
||||||
|
--------
|
||||||
|
*****
|
||||||
|
<a name="multiple"></a>
|
||||||
|
|
||||||
|
**Can I configure multiple domains with the same code instance?**
|
||||||
|
|
||||||
|
You can do that. What you can't do is point two different domains at the same database. As long as .htconfig.php exists to keep it from trying to do an install, you can keep the real config in include/$hostname/.htconfig.php All of the cache and lock stuff can be configured per instance.
|
||||||
|
|
||||||
|
<a name="sources"></a>
|
||||||
|
|
||||||
|
**Where can I find the source code of friendica, addons and themes?**
|
||||||
|
|
||||||
|
You can find the main respository [here](https://github.com/friendica/friendica). There you will always find the current stable version of friendica. The source files of Friendica Red are [here](https://github.com/friendica/red).
|
||||||
|
|
||||||
|
Addons are listed at [this page](https://github.com/friendica/friendica-addons).
|
||||||
|
|
||||||
|
If you are searching for new themes, you can find them at [Friendica-Themes.com](http://friendica-themes.com/)
|
33
doc/Home.md
|
@ -1,22 +1,26 @@
|
||||||
Friendica Documentation and Resources
|
Friendica Documentation and Resources
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
|
||||||
**Contents**
|
**Contents**
|
||||||
|
|
||||||
* [Account Basics](help/Account-Basics)
|
* Generell functions - first steps
|
||||||
* [New User Quick Start](help/Quick-Start-guide)
|
* [Account Basics](help/Account-Basics)
|
||||||
* [Creating posts](help/Text_editor)
|
* [New User Quick Start](help/Quick-Start-guide)
|
||||||
* [Comment, sort and delete posts](help/Text_comment)
|
* [Creating posts](help/Text_editor)
|
||||||
* [Profiles](help/Profiles)
|
* [Comment, sort and delete posts](help/Text_comment)
|
||||||
* [Connectors](help/Connectors)
|
* [Profiles](help/Profiles)
|
||||||
* [Making Friends](help/Making-Friends)
|
* You and other user
|
||||||
* [Groups and Privacy](help/Groups-and-Privacy)
|
* [Connectors](help/Connectors)
|
||||||
* [Tags and Mentions](help/Tags-and-Mentions)
|
* [Making Friends](help/Making-Friends)
|
||||||
* [Community Forums](help/Forums)
|
* [Groups and Privacy](help/Groups-and-Privacy)
|
||||||
* [Move Account](help/Move-Account)
|
* [Tags and Mentions](help/Tags-and-Mentions)
|
||||||
* [Remove Account](help/Remove-Account)
|
* [Community Forums](help/Forums)
|
||||||
* [Bugs and Issues](help/Bugs-and-Issues)
|
* [Chats](help/Chats)
|
||||||
|
* Further information
|
||||||
|
* [Move Account](help/Move-Account)
|
||||||
|
* [Remove Account](help/Remove-Account)
|
||||||
|
* [Bugs and Issues](help/Bugs-and-Issues)
|
||||||
|
* [Frequently asked questions (FAQ)](help/FAQ)
|
||||||
|
|
||||||
**Technical Documentation**
|
**Technical Documentation**
|
||||||
|
|
||||||
|
@ -25,6 +29,7 @@ Friendica Documentation and Resources
|
||||||
* [Plugins](help/Plugins)
|
* [Plugins](help/Plugins)
|
||||||
* [Installing Connectors (Facebook/Twitter/StatusNet)](help/Installing-Connectors)
|
* [Installing Connectors (Facebook/Twitter/StatusNet)](help/Installing-Connectors)
|
||||||
* [Message Flow](help/Message-Flow)
|
* [Message Flow](help/Message-Flow)
|
||||||
|
* [Using SSL with Friendica](help/SSL)
|
||||||
* [Developers](help/Developers)
|
* [Developers](help/Developers)
|
||||||
|
|
||||||
|
|
||||||
|
|
168
doc/SSL.md
Normal file
|
@ -0,0 +1,168 @@
|
||||||
|
Using SSL with Friendica
|
||||||
|
=====================================
|
||||||
|
|
||||||
|
* [Home](help)
|
||||||
|
|
||||||
|
If you are running your own Friendica site, you may want to use SSL (https) to encrypt communication between yourself and your server (communication between servers is encrypted anyway).
|
||||||
|
|
||||||
|
To do that on a domain of your own, you have to obtain a certificate from a trusted organization (so-called self-signed certificates that are popular among geeks don’t work very well with Friendica, because they can cause disturbances in other people's browsers).
|
||||||
|
|
||||||
|
If you are reading this document before actually installing Friendica, you might want to consider a very simple option: Go for a shared hosting account without your own domain name. That way, your address will be something like yourname.yourprovidersname.com, which isn't very fancy compared to yourname.com. But it will still be your very own site, and you will usually be able to hitch a lift on your provider's SSL certificate. That means that you won't need to configure SSL at all - it will simply work out of the box when people type https instead of http.
|
||||||
|
|
||||||
|
If that isn't your idea of doing things, read on...
|
||||||
|
|
||||||
|
**Shared hosts**
|
||||||
|
|
||||||
|
If you are using a shared host on a domain of your own, your provider may well offer to obtain and install the certificate for you. You will then only need to apply and pay for it – and everything will be set up. If that is the case for you, the rest of this document need not concern you at all. Just make sure the certificate is for the address that Friendica uses: e.g. myownfriendica.com or friendica.myserver.com.
|
||||||
|
|
||||||
|
The above ought to be the most common scenario for Friendica sites, making the rest of this article superfluous for most people.
|
||||||
|
|
||||||
|
**Obtaining a certificate yourself**
|
||||||
|
|
||||||
|
Alternatively, a few shared hosting providers may ask you to obtain and upload the certificate yourself.
|
||||||
|
|
||||||
|
The next section describes the process of acquiring a certificate from StartSSL. The good thing about StartSSL is that you can get an entry-level, but perfectly sufficient certificate for free. That’s not the case with most other certificate issuers - so we will be concentrating on StartSSL in this document If you want to use a certificate from a different source, you will have to follow the instructions given by that organization. We can't cover every possibility here.
|
||||||
|
|
||||||
|
Installing your certificate - once you have obtained it - depends on your provider’s way of doing things. But for shared hosts, there will usually be an easy web tool for this.
|
||||||
|
|
||||||
|
Note: Your certificate is usually restricted to one subdomain. When you apply for the certificate, make sure it’s for the domain and subdomain Friendica uses: e.g. myownfriendica.com or friendica.myserver.com.
|
||||||
|
|
||||||
|
**Getting a free StartSSL certificate**
|
||||||
|
|
||||||
|
StartSSL’s website attempts to guide you through the process of obtaining a free certificate, but some people end up frustrated. We really recommend working your way through the steps on the site very slowly and carefully. Don't take things for granted - read every word before proceeding and don't close the browser window until everything is working. That said, there are three main stumbling blocks that can confuse users:
|
||||||
|
|
||||||
|
When you initially sign up with StartSSL, the first certificate you receive is simply installed in your browser (though you should also store it somewhere safe, so that you can reinstall it in any other browser at a later date, for instance when you need to renew something). This authentication certificate is only used for logging on to the StartSSL website – it has nothing to do with the certificate you will need for your server. As a first-timer with StartSSL, start here: https://www.startssl.com/?app=12 and choose the Express Lane option to get that browser authentication certificate. Then seamlessly continue to the process of acquiring the desired certificate for your server (the one you actually came for). You can change the website’s language if that makes things easier for you.
|
||||||
|
|
||||||
|
When you are first prompted for a domain to certify, you need to enter your top-level domain – not the subdomain Friendica uses. In the next step, you will be able to specify that subdomain. So if you have friendica.yourname.com on your server, you first enter yourname.com – and specify the subdomain friendica later.
|
||||||
|
|
||||||
|
Don’t quit too fast when you have received your personal web server certificate at the end of the procedure. Depending on your server software, you will also require one or two generic files for use with this free StartSSL certificate. These are sub.class1.server.ca.pem and ca.pem. If you have already overlooked this step, you can download those files here: http://www.startssl.com/?app=21 But once again, the very best way of doing things is not to quit the StartSSL site until you are completely done and your https certificate is up and working.
|
||||||
|
|
||||||
|
**Virtual private and dedicated servers (using StartSSL free)**
|
||||||
|
|
||||||
|
The rest of this document is slightly more complicated, but it’s only for people running Friendica on a virtual private or dedicated server. Everyone else can stop reading at this point.
|
||||||
|
|
||||||
|
Follow the instructions here ( http://www.startssl.com/?app=20 ) to configure the web server you are using (e.g. Apache) for your certificate.
|
||||||
|
|
||||||
|
To illustrate the necessary changes, we will now assume you are running Apache. In essence, you can simply create a second httpd.conf entry for Friendica.
|
||||||
|
|
||||||
|
To do this, you copy the existing one and change the end of the first line to read :443> instead of :80>, then add the following lines to that entry, as also shown in StartSSL’s instructions:
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLProtocol all -SSLv2
|
||||||
|
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
|
||||||
|
|
||||||
|
SSLCertificateFile /usr/local/apache/conf/ssl.crt
|
||||||
|
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key
|
||||||
|
SSLCertificateChainFile /usr/local/apache/conf/sub.class1.server.ca.pem
|
||||||
|
SSLCACertificateFile /usr/local/apache/conf/ca.pem
|
||||||
|
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||||||
|
CustomLog /usr/local/apache/logs/ssl_request_log \
|
||||||
|
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||||
|
|
||||||
|
(Note that the directory /usr/local/apache/conf/ may not exist on your machine. For Debian, for instance, the directory might be /etc/apache2/ - in which you can create an ssl subdirectory if it doesn’t already exist. Then you have /etc/apache2/ssl/… instead of /usr/local/apache/conf/…)
|
||||||
|
|
||||||
|
You thus end up with two entries for your Friendica site - one for simple http and one for https.
|
||||||
|
|
||||||
|
Note to those who want to force SSL: Don't redirect to SSL in your Apache settings. Friendica's own admin panel has a special setting for SSL policy. Please use this facility instead.
|
||||||
|
|
||||||
|
**Mixing certificates on Apache – StartSSL and others (self-signed)**
|
||||||
|
|
||||||
|
Many people using a virtual private or dedicated server will be running more than Friendica on it. They will probably want to use SSL for other sites they run on the server, too. To achieve this, they may wish to employ more than one certificate with a single IP – for instance, a trusted one for Friendica and a self-signed certificate for personal stuff (possibly a wildcard certificate covering arbitrary subdomains).
|
||||||
|
|
||||||
|
For this to work, Apache offers a NameVirtualHost directive. You can see how to use it in httpd.conf in the following pattern. Note that wildcards (*) in httpd.conf break the NameVirtualHost method – you can’t use them in this new configuration. In other words, no more *80> or *443>. And you really must specify the IP, too, even if you only have one. Also note that you will soon be needing two additional NameVirtualHost lines at the top of the file to cater for IPv6.
|
||||||
|
|
||||||
|
NameVirtualHost 12.123.456.1:443
|
||||||
|
NameVirtualHost 12.123.456.1:80
|
||||||
|
|
||||||
|
<VirtualHost www.anywhere.net:80>
|
||||||
|
DocumentRoot /var/www/anywhere
|
||||||
|
Servername www.anywhere.net
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost www.anywhere.net:443>
|
||||||
|
DocumentRoot /var/www/anywhere
|
||||||
|
Servername www.anywhere.net
|
||||||
|
SSLEngine On
|
||||||
|
<pointers to a an eligible cert>
|
||||||
|
<more ssl stuff >
|
||||||
|
<other stuff>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost www.somewhere-else.net:80>
|
||||||
|
DocumentRoot /var/www/somewhere-else
|
||||||
|
Servername www.somewhere-else.net
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost www.somewhere-else:443>
|
||||||
|
DocumentRoot /var/www/somewhere-else
|
||||||
|
Servername www.somewhere-else.net
|
||||||
|
SSLEngine On
|
||||||
|
<pointers to another eligible cert>
|
||||||
|
<more ssl stuff >
|
||||||
|
<other stuff>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
Of course, you may optionally be using other places like the sites-available directory to configure Apache, in which case only some of this information need be in httpd.conf or ports.conf - specifically, the NameVirtualHost lines must be there. But if you're savvy about alternatives like that, you will probably be able to figure out the details yourself.
|
||||||
|
|
||||||
|
Just restart Apache when you're done, whichever way you decide to do it.
|
||||||
|
|
||||||
|
**StartSSL on Nginx**
|
||||||
|
|
||||||
|
First, update to the latest Friendica code. Then follow the above instructions to get your free certificate. But instead of following the Apache installation instructions, do this:
|
||||||
|
|
||||||
|
Upload your certificate. It doesn't matter where to, as long as Nginx can find it. Some people use /home/randomlettersandnumbers to keep it in out of paranoia, but you can put it anywhere, so we'll call it /foo/bar.
|
||||||
|
|
||||||
|
You can remove the password if you like. This is probably bad practice, but if you don't, you'll have to enter the password every time you restart nginx. To remove it:
|
||||||
|
|
||||||
|
openssl rsa -in ssl.key-pass -out ssl.key
|
||||||
|
|
||||||
|
Now, grab the helper certificate:
|
||||||
|
|
||||||
|
wget http://www.startssl.com/certs/sub.class1.server.ca.pem
|
||||||
|
|
||||||
|
Now you need to merge the files:
|
||||||
|
|
||||||
|
cat ssl.crt sub.class1.server.ca.pem > ssl.crt
|
||||||
|
|
||||||
|
In some configurations there is a bug, and this doesn't quite work properly. You may now need to edit ssl.crt, so:
|
||||||
|
|
||||||
|
nano /foo/bar/ssl.crt
|
||||||
|
|
||||||
|
You'll see two certificates in the same file. Halfway down, you may see:
|
||||||
|
|
||||||
|
-----END CERTIFICATE----------BEGIN CERTIFICATE-----
|
||||||
|
|
||||||
|
This is bad. You need to see:
|
||||||
|
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
|
||||||
|
You can enter the carriage return manually if the bug is present on your system. Note there is a single carriage return for -----BEGIN CERTIFICATE----- to start on a new line. There is no empty line.
|
||||||
|
|
||||||
|
Now you need to tell Nginx about the certs.
|
||||||
|
|
||||||
|
In /etc/nginx/sites-available/foo.com.conf you need something like:
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
listen [::]:443 ipv6only=on ssl;
|
||||||
|
|
||||||
|
ssl_certificate /foo/bar/ssl.crt;
|
||||||
|
|
||||||
|
ssl_certificate_key /foo/bar/ssl.key;
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
Now, restart nginx:
|
||||||
|
|
||||||
|
/etc/init.d/nginx restart
|
||||||
|
|
||||||
|
And that's it.
|
||||||
|
|
||||||
|
For multiple domains, we have it easier than Apache users: Just repeat the above for each certificate, and keep it in it's own {server...} section.
|
26
doc/andfinally.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
[[!meta title="And Finally..."]]
|
||||||
|
|
||||||
|
And that brings the Quick Start to an end.
|
||||||
|
|
||||||
|
Here are some more things to help get you started:
|
||||||
|
|
||||||
|
**Groups**
|
||||||
|
|
||||||
|
|
||||||
|
- <a href="https://kakste.com/profile/newhere">New Here</a> - a group for people new to Friendica
|
||||||
|
|
||||||
|
- <a href="http://helpers.pyxis.uberspace.de/profile/helpers">Friendica Support</a> - problems? This is the place to ask.
|
||||||
|
|
||||||
|
- <a href="https://kakste.com/profile/public_stream">Public Stream</a> - a place to talk about anything to anyone.
|
||||||
|
|
||||||
|
- <a href="https://letstalk.pyxis.uberspace.de/profile/letstalk">Let's Talk</a> a group for finding people and groups who share similar interests.
|
||||||
|
|
||||||
|
- <a href="http://newzot.hydra.uberspace.de/profile/newzot">Local Friendica</a> a page for local Friendica groups</a>
|
||||||
|
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- <a href="help/Connectors">Connecting to more networks</a>
|
||||||
|
- <a href="help">Help Index</a>
|
||||||
|
|
||||||
|
|
53
doc/de/Chats.md
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
Chats
|
||||||
|
=====
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Du hast derzeit zwei Möglichkeiten, einen Chat auf deiner Friendica-Seite zu betreiben
|
||||||
|
|
||||||
|
* IRC - Internet Relay Chat
|
||||||
|
* Jappix
|
||||||
|
|
||||||
|
##IRC Plugin
|
||||||
|
|
||||||
|
Sobald das Plugin aktiviert ist, kannst du den Chat unter [deineSeite.de/irc](../irc) finden. Beachte aber, dass dieser Chat auch ohne Anmeldung auf deiner Seite zugänglich ist und somit auch Fremde diesen Chat mitnutzen können.
|
||||||
|
|
||||||
|
Wenn du dem Link folgst, dann kommst du zum Anmeldefenster des IR-Chats. Wähle nun einen Spitznamen (Nickname) aus und wähle einen Raum aus, in dem du chatten willst. Hier kannst du jeden Namen eingeben. Es ist also auch #tollerChatdessenNamenurichkenne sein. Gib als nächstes nur noch die Captchas ein, um zu zeigen, dass es sich bei dir um einen Menschen handelt. Gehe nun auf "Connect".
|
||||||
|
|
||||||
|
Im nächsten Fenster siehst du zunächst viel Text beim Verbindungsaufbau, der allerdings für dich nicht weiter von Bedeutung ist. Anschließend öffnet sich das Chat-Fenster. In den ersten Zeilen wird dir dein Name und deine aktuelle IP-Adresse angezeigt. Rechts im Fenster siehst du alle Teilnehmer des Chats. Unten hast du ein Eingabefeld, um Beiträge zu schreiben.
|
||||||
|
|
||||||
|
##Jappix Mini
|
||||||
|
|
||||||
|
Das Jappix Mini Plugin erlaubt das Erstellen einer Chatbox für Jabber/XMPP-Kontakte. Ein Jabber/XMPP Account sollte vor der Installation bereits vorhanden sein.
|
||||||
|
Eine ausführliche Anleitung dazu und eine Kontrolle, ob man nicht sogar schon über seinen E-Mail Anbieter einen Jabber-Account hat, findet man unter http://einfachjabber.de.
|
||||||
|
Einige Server zum Anmelden eines neuen Accounts:
|
||||||
|
|
||||||
|
* [https://jappix.com](https://jappix.com)
|
||||||
|
* [https://www.jabme.de](https://www.jabme.de)
|
||||||
|
* [http://www.jabber.de](http://www.jabber.de)
|
||||||
|
* oder die Auswahl von [http://xmpp.net](http://xmpp.net) nutzen.
|
||||||
|
|
||||||
|
**1. Grundsätzliches**
|
||||||
|
|
||||||
|
Als erstes muss die aktuellste Version heruntergeladen werden, per Git:
|
||||||
|
|
||||||
|
cd /var/www/virtual/DEINUBERSPACE/html/addon; git pull
|
||||||
|
|
||||||
|
oder als normaler Download von hier: https://github.com/friendica/friendica-addons/blob/master/jappixmini.tgz (auf „view raw“ klicken)
|
||||||
|
|
||||||
|
Diese Datei wird entpackt, ggf. den entpackten Ordner in „jappixmini“ umbenennen und sowohl den kompletten entpackten Ordner als auch die .tgz Datei in den Addon Ordner deiner Friendica Installation hochladen.
|
||||||
|
|
||||||
|
Nach dem Upload gehts in den Friendica Adminbereich, dort zu den Plugins. Das Jappixmini Addon aktivieren und anschließend über die Plugins Seitenleiste (dort wo auch die Twitter-, Impressums-, StatusNet-, usw Einstellungen gemacht werden) zu den Jappix Grundeinstellungen gehen.
|
||||||
|
|
||||||
|
Hier den Haken zur Aktivierung des BOSH Proxys setzen.
|
||||||
|
Weiter gehts in den Einstellungen deines Friendica Account.
|
||||||
|
|
||||||
|
**2. Einstellungen**
|
||||||
|
|
||||||
|
In deinen Einstellungen (Account Settings), gehe bitte zu den Plugin-Einstellungen. Etwas scrollen bis zu Jappix Mini addon settings
|
||||||
|
|
||||||
|
Hier zuerst das Addon aktvieren.
|
||||||
|
|
||||||
|
Trage nun deinen Jabber/XMPP Namen ein, ebenfalls die entsprechende Domain bzw. den Server (ohne http, also zb einfach so: jappix.com). Bei „Jabber BOSH Host“ kannst du erstmal “https://bind.jappix.com/ “ eintragen. Siehe dazu auch die „Configuration Help“ weiter unten. Danach noch dein Passwort und damit ist eigentlich schon fast alles geschafft. Die weiteren Einstellmöglichkeiten bleiben dir überlassen, sind also optional. Jetzt noch auf „senden“ klicken und fertig.
|
||||||
|
|
||||||
|
Falls du manuell Kontakte hinzufügen möchtest, einfach den „Add Contact“ Knopf nutzen. Deine Chatbox sollte jetzt irgendwo unten rechts im Browserfenster „kleben“. Viel Spass beim Chatten!
|
137
doc/de/FAQ.md
Normal file
|
@ -0,0 +1,137 @@
|
||||||
|
Häufig gestellte Fragen - FAQ
|
||||||
|
==============
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Nutzer
|
||||||
|
|
||||||
|
* **[Warum erhalte ich Warnungen über fehlende Zertifikate?](help/FAQ#ssl)**
|
||||||
|
* **[Ist es möglich, bei mehreren Profilen verschiedene Avatare (Nutzerbilder) zu haben?](help/FAQ#avatars)**
|
||||||
|
* **[Was ist der Unterschied zwischen blockierten|ignorierten|archivierten|versteckten Kontakten?](help/FAQ#contacts)**
|
||||||
|
* **[Was passiert, wenn ein Account gelöscht ist? Ist dieser richtig gelöscht?](help/FAQ#removed)**
|
||||||
|
* **[Kann ich einem hashtag folgen?](help/FAQ#hashtag)**
|
||||||
|
* **[Wie kann ich einen RSS-Feed meiner Netzwerkseite (Stream) erstellen?](help/FAQ#rss)**
|
||||||
|
* **[Wo finde ich Hilfe?](help/FAQ#help)**
|
||||||
|
|
||||||
|
Admins
|
||||||
|
|
||||||
|
* **[Kann ich mehrere Domains mit den selben Dateien aufsetzen?](help/FAQ#multiple)**
|
||||||
|
* **[Wo kann ich den Quellcode von Friendica, Addons und Themes finden?](help/FAQ#sources)**
|
||||||
|
|
||||||
|
Nutzer
|
||||||
|
--------
|
||||||
|
*****
|
||||||
|
<a name="ssl"></a>
|
||||||
|
|
||||||
|
**Warum erhalte ich Warnungen über fehlende Zertifikate?**
|
||||||
|
|
||||||
|
Manchmal erhältst du eine Browser-Warnung über fehlende Zertifikate. Diese Warnungen können drei Gründe haben:
|
||||||
|
|
||||||
|
1. der Server, mit dem du verbunden bist, nutzt kein SSL;
|
||||||
|
|
||||||
|
2. der Server hat ein selbst-signiertes Zertifikat (nicht empfohlen)
|
||||||
|
|
||||||
|
3. das Zertifikat ist nicht mehr gültig.
|
||||||
|
|
||||||
|
*(SSL (Secure Socket Layer) ist eine Technologie, die Daten auf ihrem Weg zwischen zwei Computern verschlüsselt.)*
|
||||||
|
|
||||||
|
Wenn du noch kein SSL-Zertifikat hast, dann gibt es drei Wege, eines zu erhalten: kauf dir eines, hole dir ein kostenloses (z.B. bei StartSSL) oder kreiere dein eigenes (nicht empfohlen). [Weitere Informationen über die Einrichtung von SSL und warum es schlecht ist, selbst-signierte Zertifikate zu nutzen, findest du hier.](help/SSL)
|
||||||
|
|
||||||
|
Sei dir bewusst, dass Browser-Warnungen über Sicherheitslücken etwas sind, wodurch neue Nutzer schnell das Vertrauen in das gesamte Friendica-Projekt verlieren können. Aus diesem Grund wird Friendica Red nur SSL-Zertifikate eines anerkannten Anbieters (CA, certificate authority) akzeptieren und nicht zu Seiten verbinden, die kein SSL nutzen. Unabhängig von den negativen Aspekten von SSL handelt es sich hierbei um eine notwendige Lösung, solange keine etablierte Alternative existiert.
|
||||||
|
|
||||||
|
Abgesehen davon kann es ohne SSL auch Probleme mit der Verbindung zu Diaspora geben, da einige Diaspora-Pods eine zertifizierte Verbindung benötigen.
|
||||||
|
|
||||||
|
Wenn du Friendica nur für eine bestimmte Gruppe von Leuten auf einem einzelnen Server nutzt, bei dem keine Verbindung zum restlichen Netzwerk besteht, dann benötigst du kein SSL. Ebenso benötigst du SSL nicht, wenn du ausschließlich öffentliche Beiträge auf deiner Seite veröffentlichst bzw. empfängst.
|
||||||
|
|
||||||
|
Wenn du zum jetzigen Zeitpunkt noch keinen Server aufgesetzt hast, ist es sinnvoll, die verschiedenen Anbieter in Bezug auf SSL zu vergleichen. Einige erlauben die Nutzung von freien Zertifikaten oder lassen dich ihre eigenen Zertifikate mitnutzen. Andere erlauben nur kostenpflichtige Zertifikate als eigenes Angebot bzw. von anderen Anbietern.
|
||||||
|
|
||||||
|
<a name="avatars"></a>
|
||||||
|
|
||||||
|
**Ist es möglich, bei mehreren Profilen verschiedene Avatare (Nutzerbilder) zu haben?**
|
||||||
|
|
||||||
|
Ja. Auf deiner ["Profile verwalten/editieren"-Seite](../profiles) wählst du zunächst das gewünschte Profil aus. Anschließend siehst du eine Seite mit allen Infos zu diesem Profil. Klicke nun oben auf den Link "Profilbild ändern" und lade im nächsten Fenster ein Bild von deinem PC hoch. Um deine privaten Daten zu schützen, wird in Beiträgen nur das Bild aus deinem öffentlichen Profil angezeigt.
|
||||||
|
|
||||||
|
<a name="contacts"></a>
|
||||||
|
|
||||||
|
**Was ist der Unterschied zwischen blockierten|ignorierten|archivierten|versteckten Kontakten?**
|
||||||
|
|
||||||
|
Wir verhindern direkte Kommunikation mit blockierten Kontakten. Sie gehören nicht zu den Empfängern beim Versand von Beiträgen und deren Beiträge werden auch nicht importiert. Trotzdem werden deren Unterhaltungen mit deinen Freunden trotzdem in deinem Stream sichtbar sein. Wenn du einen Kontakt komplett löschst, können sie dir eine neue Freundschaftsanfrage schicken. Blockierte Kontakte können das nicht machen. Sie können nicht mit dir direkt kommunizieren, nur über Freunde.
|
||||||
|
|
||||||
|
Ignorierte Kontakte können weiterhin Beiträge von dir erhalten. Deren Beiträge werden allerdings nicht importiert. Wie bei blockierten Beiträgen siehst du auch hier weiterhin die Kommentare dieser Person zu anderen Beiträgen deiner Freunde.
|
||||||
|
|
||||||
|
[Ein Plugin namens "blockem" kann installiert werden, um alle Beiträge einer bestimmten Person in deinem Stream zu verstecken bzw. zu verkürzen. Dabei werden auch Kommentare dieser Person in Beiträgen deiner Freunde blockiert.]
|
||||||
|
|
||||||
|
Ein archivierter Kontakt bedeutet, dass Kommunikation nicht möglich ist und auch nicht versucht wird (das ist z.B. sinnvoll, wenn eine Person zu einer neuen Seite gewechselt ist und das alte Profil gelöscht hat). Anders als beim Blockieren werden existierende Beiträge, die vor der Archivierung erstellt wurden, weiterhin angezeigt.
|
||||||
|
|
||||||
|
Ein versteckter Kontakt wird in keiner "Freundeliste" erscheinen (außer für dich). Trotzdem wird ein versteckter Kontakt trotzdem normal in Unterhaltungen angezeigt, was jedoch für andere Kontakte ein Hinweis sein kann, dass diese Person als versteckter Kontakt in deiner Liste ist.
|
||||||
|
|
||||||
|
<a name="removed"></a>
|
||||||
|
|
||||||
|
**Was passiert, wenn ein Account gelöscht ist? Ist dieser richtig gelöscht?**
|
||||||
|
|
||||||
|
Wenn du deinen Account löschst, wird sofort der gesamte Inhalt auf deinem Server gelöscht und ein Löschbefehl an alle deine Kontakte verschickt. Dadurch wirst du ebenfalls aus dem globalen Verzeichnis gelöscht. Dieses Vorgehen setzt voraus, dass dein Profil für 24 Stunden weiterhin "teilweise" verfügbar sein wird, um eine Verbindung zu allen deinen Kontakten ermöglicht. Wir können also dein Profil blockieren und es so erscheinen lassen, als wären alle Daten sofort gelöscht, allerdings warten wir 24 Stunden (bzw. bis alle deine Kontakte informiert wurden), bevor wir die Daten auch physikalisch löschen.
|
||||||
|
|
||||||
|
<a name="hashtag"></a>
|
||||||
|
|
||||||
|
**Kann ich einem hashtag folgen?**
|
||||||
|
|
||||||
|
Nein. Die Möglichkeit, einem hashtag zu folgen, ist eine interessante Technik, führt aber zu einigen Schwierigkeiten.
|
||||||
|
|
||||||
|
1.) Alle Beiträge, die diesen tag nutzen, müssten zu allen Seiten im Netzwerk kopiert werden. Das erhöht den Speicherbedarf und beeinträchtigt kleine Seiten. Die Nutzung von geteilten Hosting-Angeboten (Shared Hosting) wäre praktisch unmöglich.
|
||||||
|
|
||||||
|
2.) Die Verbreitung von Spam wäre vereinfacht (tag-Spam ist z.B. bei identi.ca ein schwerwiegendes Problem)
|
||||||
|
|
||||||
|
3.) Der wichtigste Grund der gegen diese Technik spricht ist, dass sie eine natürliche Ausrichtung auf größere Seiten mit mehr getaggten Inhalten zur Folge hat. Dies kann z.B. aufkommen, wenn dein Netzwerk tags anstelle von anderen Kommunikationsmitteln wie Gruppen oder Foren nutzt.
|
||||||
|
|
||||||
|
Stattdessen bieten wir andere Mechanismen, um globale Unterhaltungen zu erreichen, dabei aber eine angemesse Basis für kleine und große Seiten zu bieten. Hierzu gehören Foren, Gruppen und geteilte tags.
|
||||||
|
|
||||||
|
<a name="rss"></a>
|
||||||
|
|
||||||
|
**Wie kann ich einen RSS-Feed meiner Netzwerkseite (Stream) erstellen?**
|
||||||
|
|
||||||
|
Wenn du die Beiträge deines Accounts mit RSS teilen willst, dann kannst du einen der folgenden Links nutzen:
|
||||||
|
|
||||||
|
RSS-Feed deiner Beiträge
|
||||||
|
|
||||||
|
deineSeite.de/**dfrn_poll/profilname
|
||||||
|
|
||||||
|
Beispiel: Friendica Support
|
||||||
|
|
||||||
|
https://helpers.pyxis.uberspace.de/dfrn_poll/helpers
|
||||||
|
|
||||||
|
RSS-Feed aller Unterhaltungen auf deiner Seite
|
||||||
|
|
||||||
|
deineSeite.de/dfrn_poll/profilname/converse
|
||||||
|
|
||||||
|
Beispiel: Friendica Support
|
||||||
|
|
||||||
|
https://helpers.pyxis.uberspace.de/dfrn_poll/helpers/converse
|
||||||
|
|
||||||
|
<a name="help"></a>
|
||||||
|
|
||||||
|
**Wo finde ich Hilfe?**
|
||||||
|
|
||||||
|
Wenn du Probleme mit deiner Friendica-Seite hast, dann kannst du die Community in der [Friendica-Support-Gruppe](https://helpers.pyxis.uberspace.de/profile/helpers) oder im [deutschen Friendica-Support-Forum](http://toktan.org/profile/wiki) fragen oder dir das [deutsche Wiki](http://wiki.toktan.org/doku.php) anschauen. Wenn du deinen Account nicht nutzen kannst, kannst du entweder einen [Testaccount](http://friendica.com/node/31) bzw. einen Account auf einer öffentlichen Seite ([Liste](http://dir.friendica.com/siteinfo)) nutzen, oder du wählst die Librelist-mailing-Liste. Wenn du die Mailing-Liste nutzen willst, schicke eine Mail an friendica AT librelist PUNKT com.
|
||||||
|
|
||||||
|
Wenn du Friendica Red nutzt, findest du außerdem in diesem Forum Hilfe: [Friendica Red Development](https://myfriendica.net/profile/friendicared).
|
||||||
|
|
||||||
|
Wenn du ein Theme-Entwickler bist, wirst du in diesem Forum Hilfe finden: [Friendica Theme Developers](https://friendica.eu/profile/ftdevs).
|
||||||
|
|
||||||
|
Admin
|
||||||
|
--------
|
||||||
|
*****
|
||||||
|
<a name="multiple"></a>
|
||||||
|
|
||||||
|
**Kann ich mehrere Domains mit den selben Dateien aufsetzen?**
|
||||||
|
|
||||||
|
Ja, das ist möglich. Es ist allerdings nicht möglich, eine Datenbank durch zwei Domains zu nutzen. Solange du deine .htconfig.php allerdings so einrichtest, dass das System nicht versucht, eine Installation durchzuführen, kannst du die richtige Config-Datei in include/$hostname/.htconfig.php hinterlegen. Alle Cache-Aspekte und der Zugriffsschutz können pro Instanz konfiguriert werden.
|
||||||
|
|
||||||
|
<a name="sources"></a>
|
||||||
|
|
||||||
|
**Wo kann ich den Quellcode von Friendica, Addons und Themes finden?**
|
||||||
|
|
||||||
|
Du kannst den Friendica-Quellcode [hier](https://github.com/friendica/friendica) finden. Dort findest du immer die aktuellste stabile Version von Friendica. Der Quellcode von Friendica Red ist [hier](https://github.com/friendica/red) zu finden.
|
||||||
|
|
||||||
|
Addons findest du auf [dieser Seite](https://github.com/friendica/friendica-addons).
|
||||||
|
|
||||||
|
Wenn du neue Themen suchst, findest du sie auf [Friendica-Themes.com](http://friendica-themes.com/)
|
|
@ -3,20 +3,25 @@ Friendica - Dokumentation und Ressourcen
|
||||||
|
|
||||||
**Inhalte**
|
**Inhalte**
|
||||||
|
|
||||||
* [Account - Basics](help/Account-Basics)
|
* Allgemeine Funktionen - Erste Schritte
|
||||||
* [Schnellstart für neue Benutzer](help/Quick-Start-guide)
|
* [Account - Basics](help/Account-Basics)
|
||||||
* [Beiträge erstellen](help/Text_editor)
|
* [Schnellstart für neue Benutzer](help/Quick-Start-guide)
|
||||||
* [Beiträge kommentieren, einordnen und löschen](help/Text_comment)
|
* [Beiträge erstellen](help/Text_editor)
|
||||||
* [Profile](help/Profiles)
|
* [Beiträge kommentieren, einordnen und löschen](help/Text_comment)
|
||||||
* [Konnektoren (Connectors)](help/Connectors)
|
* [Profile](help/Profiles)
|
||||||
* [Freunde finden](help/Making-Friends)
|
* Du und andere Nutzer
|
||||||
* [Gruppen und Privatsphäre](help/Groups-and-Privacy)
|
* [Konnektoren (Connectors)](help/Connectors)
|
||||||
* [Tags und Erwähnungen](help/Tags-and-Mentions)
|
* [Freunde finden](help/Making-Friends)
|
||||||
* [Community-Foren](help/Forums)
|
* [Gruppen und Privatsphäre](help/Groups-and-Privacy)
|
||||||
* [Account umziehen](help/Move-Account)
|
* [Tags und Erwähnungen](help/Tags-and-Mentions)
|
||||||
* [Account löschen](help/Remove-Account)
|
* [Community-Foren](help/Forums)
|
||||||
* [Bugs und Probleme](help/Bugs-and-Issues)
|
* [Chats](help/Chats)
|
||||||
|
* Weiterführende Informationen
|
||||||
|
* [Account umziehen](help/Move-Account)
|
||||||
|
* [Account löschen](help/Remove-Account)
|
||||||
|
* [Bugs und Probleme](help/Bugs-and-Issues)
|
||||||
|
* [Häufig gestellte Fragen (FAQ)](help/FAQ)
|
||||||
|
|
||||||
**Technische Dokumentation**
|
**Technische Dokumentation**
|
||||||
|
|
||||||
* [Installation](help/Install)
|
* [Installation](help/Install)
|
||||||
|
@ -24,6 +29,7 @@ Friendica - Dokumentation und Ressourcen
|
||||||
* [Plugins](help/Plugins)
|
* [Plugins](help/Plugins)
|
||||||
* [Konnektoren (Connectors) installieren (Facebook/Twitter/StatusNet)](help/Installing-Connectors)
|
* [Konnektoren (Connectors) installieren (Facebook/Twitter/StatusNet)](help/Installing-Connectors)
|
||||||
* [Nachrichtenfluss](help/Message-Flow)
|
* [Nachrichtenfluss](help/Message-Flow)
|
||||||
|
* [Betreibe deine Seite mit einem SSL-Zertifikat](help/SSL)
|
||||||
* [Entwickler](help/Developers)
|
* [Entwickler](help/Developers)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ Hier sieht es ein wenig wie auf deiner Facebook-Seite aus. Hier findest du alle
|
||||||
|
|
||||||
Wenn du deinen Beitrag ("Post") geschrieben hast, kannst du auf das "Schloss"-Symbol klicken und festlegen, wer deinen Beitrag sehen kann. Wenn du dieses Symbol nicht anklickst, ist dein Beitrag öffentlich. Das bedeutet, dass jeder, der dein Profil ansieht, der auf dem "Community"-Tab deines Servers oder auf dem "Netzwerk"-Tab ("Beiträge deiner Kontakte") eines befreundeten Kontakts ist, den Beitrag sehen kann.
|
Wenn du deinen Beitrag ("Post") geschrieben hast, kannst du auf das "Schloss"-Symbol klicken und festlegen, wer deinen Beitrag sehen kann. Wenn du dieses Symbol nicht anklickst, ist dein Beitrag öffentlich. Das bedeutet, dass jeder, der dein Profil ansieht, der auf dem "Community"-Tab deines Servers oder auf dem "Netzwerk"-Tab ("Beiträge deiner Kontakte") eines befreundeten Kontakts ist, den Beitrag sehen kann.
|
||||||
|
|
||||||
Probiere es doch einfach mal aus. Wenn du fertg bist, schauen wir uns den <a href="help/Quick-Start-network">"Netzwerk"-Tab</a> an.
|
Probiere es doch einfach mal aus. Wenn du fertig bist, schauen wir uns den <a href="help/Quick-Start-network">"Netzwerk"-Tab</a> an.
|
||||||
|
|
||||||
<iframe src="login" width="950" height="600"></iframe>
|
<iframe src="login" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
169
doc/de/SSL.md
Normal file
|
@ -0,0 +1,169 @@
|
||||||
|
Friendica mit SSL nutzen
|
||||||
|
=====================================
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Wenn du deine eigene Friendica-Seite betreibst, willst du vielleicht SSL (https) nutzen, um die Kommunikation zwischen dir und deinem Server zu verschlüsseln (die Kommunikation zwischen den Servern ist bereits verschlüsselt).
|
||||||
|
|
||||||
|
Wenn du das auf deiner eigenen Domain machen willst, musst du ein Zertifikat von einer anerkannten Organisation beschaffen (sogenannte selbst-signierte Zertifikate, die unter Computerfreaks beliebt sind, arbeiten nicht sehr gut mit Friendica, weil sie Warnungen im Browser hervorrufen können).
|
||||||
|
|
||||||
|
Wenn du dieses Dokument liest, bevor du Friendica installierst, kannst du eine sehr einfache Option in Betracht ziehen: suche dir ein geteiltes Hosting-Angebot (shared hosting) ohne eigene Domain. Dadurch wirst du eine Adresse in der Form deinName.deinAnbietername.de erhalten, was nicht so schön wie deinName.de ist. Aber es wird trotzdem deine ganz persönliche Seite sein und du wirst unter Umständen die Möglichkeit haben, das SSL-Zertifikat deines Anbieters mitzubenutzen. Das bedeutet, dass du SSL überhaupt nicht konfigurieren musst - es wird einfach sofort funktionieren, wenn die Besucher deiner Seite https statt http eingeben.
|
||||||
|
|
||||||
|
Wenn dir diese Lösung nicht gefällt, lies weiter...
|
||||||
|
|
||||||
|
**Geteilte Hosting-Angebote/Shared hosts**
|
||||||
|
|
||||||
|
Wenn du ein geteiltes Hosting-Angebot mit einer eigenen Domain nutzt, dann wird dir dein Anbieter ggf. anbieten, dir das Zertifikat zu besorgen und zu installieren. Du musst es nur beantragen und bezahlen und alles wird eingerichtet. Wenn das die Lösung für dich ist, musst du das weitere Dokument nicht lesen. Gehe nur sicher, dass das Zertifikat auch für die Domain gilt, die du für Friendica nutzt: z.B. meinfriendica.de oder friendica.meinserver.de.
|
||||||
|
|
||||||
|
Das Vorangehende wird die häufigste Art sein, eine Friendica-Seite zu betreiben, so dass der Rest des Artikels für die meisten Leute nicht von Bedeutung ist.
|
||||||
|
|
||||||
|
**Beschaffe dir das Zertifikat selbst**
|
||||||
|
|
||||||
|
Alternativ kannst du dir auch selbst ein Zertifikat besorgen und hochladen, falls dein Anbieter das unterstützt.
|
||||||
|
|
||||||
|
Der nächste Abschnitt beschreibt den Ablauf, um ein Zertifikat von StartSSL zu erhalten. Das Gute an StartSSL ist, dass du kostenlos ein einfaches, aber perfekt ausreichendes Zertifikat erhältst. Das ist bei vielen anderen Anbietern nicht so, weshalb wir uns in diesem Dokument auf StartSSL konzentrieren werden. Wenn du ein Zertifikat eines anderen Anbieters nutzen willst, musst du die Vorgaben dieser Organisation befolgen. Wir können hier nicht jede Möglichkeit abdecken.
|
||||||
|
|
||||||
|
Die Installation deines erhaltenen Zertifikats hängt von den Vorgaben deines Anbieters ab. Aber generell nutzen solche Anbieter ein einfaches Web-Tool, um die Einrichtung zu unterstützen.
|
||||||
|
|
||||||
|
Beachte: dein Zertifikat gilt gewöhnlich nur für eine Subdomain. Wenn du dein Zertifikat beantragst, sorge dafür, dass es für die Domain und die Subdomain gilt, die du für Friendica nutzt: z.B. meinfriendica.de oder friendica.meinserver.de.
|
||||||
|
|
||||||
|
**Erhalte ein kostenloses StartSSL-Zertifikat**
|
||||||
|
|
||||||
|
Die Webseite von StartSSL führt dich durch den Erstellungsprozess, aber manche Leute haben hier trotzdem Probleme. Wir empfehlen dir ausdrücklich, die Installationsanleitung Schritt für Schritt langsam und sorgfältig zu befolgen. Lese dir jedes Wort durch und schließe deinen Browser erst, wenn alles läuft. Es heißt, dass es drei Schritte gibt, die den Nutzer verwirren können:
|
||||||
|
|
||||||
|
Wenn du dich erstmals bei StartSSL anmeldest, erhältst du ein erstes Zertifikat, dass sich einfach in deinem Browser installiert. Dieses Zertifikat solltest du zur Sicherheit irgendwo speichern, so dass du es für einen neuen Browser neu installieren kannst, wenn du z.B. etwas erneuern musst. Dieses Authentifizierungszertifikat wird nur für das Login benötigt und hat nichts mit dem Zertifikat zu tun, dass du später für deinen Server benötigst. Als Anfänger mit StartSSL kannst du [hier starten](https://www.startssl.com/?lang=de) und die "Express Lane" nutzen, um dein Browser-Zertifikiat zu erhalten. Im nächsten Schritt kannst du die Einrichtung deines Zertifikats fortsetzen.
|
||||||
|
|
||||||
|
Wenn du zuerst nach einer Domain für dein Zertifikat gefragt wirst, musst du die Top-Level-Domain angeben, nicht die Subdomain, die Friendica nutzt. Im nächsten Schritt kannst du dann die Subdomain spezifizieren. Wenn du also friendica.deinName.de auf deinem Server hast, musst du zuerst deinName.de angeben.
|
||||||
|
|
||||||
|
Höre nicht zu früh auf, wenn du am Ende der Einrichtung dein persönliches Server-Zertifikat erhalten hast. Abhängig von deiner Server-Software benötigst du ein oder zwei generische Dateien, die du mit deinem kostenlosen StartSSL-Zertifikat nutzen musst. Diese Dateien sind sub.class1.server.ca.pem und ca.pem. Wenn du diesen Schritt bereits übersprungen hast, kannst du die Dateien hier finden: [http://www.startssl.com/?app=21](http://www.startssl.com/?app=21). Aber am besten funktioniert es, wenn du StartSSL nicht beendest, bevor du den Vorgang komplett abgeschlossen hast und dein https-Zertifikat hochgeladen ist und funktioniert.
|
||||||
|
|
||||||
|
**Virtuelle private und dedizierte Server (mit StartSSL free)**
|
||||||
|
|
||||||
|
Der Rest dieses Dokuments ist etwas komplizierter, aber es ist auch nur für Personen, die Friendica auf einem virtuellen oder dedizierten Server nutzen. Jeder andere kann an dieser Stelle mit dem Lesen aufhören.
|
||||||
|
|
||||||
|
Folge den weiteren Anleitungen [hier](http://www.startssl.com/?app=20), um den Webserver, den du benutzt (z.B. Apache), für dein Zertifikat einzurichten.
|
||||||
|
|
||||||
|
Um die nötigen Schritte zu verdeutlichen, setzen wir nun voraus, dass Apache aktiv ist. Im Wesentlichen kannst du einfach einen zweiten httpd.conf-Eintrag für Friendica erstellen.
|
||||||
|
|
||||||
|
Um das zu machen, kopiere den existierenden Eintrag und ändere das Ende der ersten Zeile auf "lesen" :443> anstelle von :80> und trage dann die folgenden Zeilen ein, wie du es auch in der Anleitung von StartSSL finden kannst:
|
||||||
|
|
||||||
|
SSLEngine on
|
||||||
|
SSLProtocol all -SSLv2
|
||||||
|
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
|
||||||
|
|
||||||
|
SSLCertificateFile /usr/local/apache/conf/ssl.crt
|
||||||
|
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key
|
||||||
|
SSLCertificateChainFile /usr/local/apache/conf/sub.class1.server.ca.pem
|
||||||
|
SSLCACertificateFile /usr/local/apache/conf/ca.pem
|
||||||
|
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
|
||||||
|
CustomLog /usr/local/apache/logs/ssl_request_log \
|
||||||
|
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||||
|
|
||||||
|
(Beachte, dass das Verzeichnis /usr/local/apache/conf/ möglicherweise nicht in deinem System existiert. In Debian ist der Pfad bspw. /etc/apache2/, in dem du ein SSL-Unterverzeichnis erstellen kannst, wenn dieses noch nicht vorhanden ist. Dann hast du /etc/apache2/ssl/… statt /usr/local/apache/conf/…)
|
||||||
|
|
||||||
|
Du solltest nun zwei Einträgen für deine Friendica-Seite haben - einen für einfaches http und eines für https.
|
||||||
|
|
||||||
|
Ein Hinweis für diejenigen, die SSL steuern wollen: setze keine Weiterleitung deines SSL in deine Apache-Einstellung. Friendicas Admin-Panel hat eine spezielle Einstellung für die SSL-Methode. Bitte nutze diese Einstellungen.
|
||||||
|
|
||||||
|
**Vermische Zertifikate in Apache – StartSSL und andere (selbst-signierte)**
|
||||||
|
|
||||||
|
Viele Leute nutzen einen virtuellen privaten oder einen dedizierten Server, um mehr als Friendica darauf laufen zu lassen. Sie wollen möglicherweise SSL auch für andere Seiten nutzen, die auf dem Server liegen. Um das zu erreichen, wollen sie mehrere Zertifikate für eine IP nutzen, z.B. ein Zertifikat eines anerkannten Anbieters für Friendica und ein selbst-signiertes für eine persönliche Inhalte (möglw. ein Wildcard-Zertifikat für mehrere Subdomains).
|
||||||
|
|
||||||
|
Um das zum Laufen zu bringen, bietet Apache eine NameVirtualHost-Direktive. Du findest Informationen zur Nutzung in httpd.conf in den folgenden Ausschnitten. Beachte, dass Wildcards (*) in httpd.conf dazu führen, dass die NameVirtualHost-Methode nicht funktioniert; du kannst diese in dieser neuen Konfiguration nicht nutzen. Das bedeutet, dass *80> oder *443> nicht funktionieren. Und du musst unbedingt die IP definieren, selbst wenn du nur eine hast. Beachte außerdem, dass du bald zwei Zeilen zu Beginn der Datei hinzufügen musst, um NameVirtualHost für IPv6 vorzubereiten.
|
||||||
|
|
||||||
|
NameVirtualHost 12.123.456.1:443
|
||||||
|
NameVirtualHost 12.123.456.1:80
|
||||||
|
|
||||||
|
<VirtualHost www.anywhere.net:80>
|
||||||
|
DocumentRoot /var/www/anywhere
|
||||||
|
Servername www.anywhere.net
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost www.anywhere.net:443>
|
||||||
|
DocumentRoot /var/www/anywhere
|
||||||
|
Servername www.anywhere.net
|
||||||
|
SSLEngine On
|
||||||
|
<pointers to a an eligible cert>
|
||||||
|
<more ssl stuff >
|
||||||
|
<other stuff>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost www.somewhere-else.net:80>
|
||||||
|
DocumentRoot /var/www/somewhere-else
|
||||||
|
Servername www.somewhere-else.net
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
<VirtualHost www.somewhere-else:443>
|
||||||
|
DocumentRoot /var/www/somewhere-else
|
||||||
|
Servername www.somewhere-else.net
|
||||||
|
SSLEngine On
|
||||||
|
<pointers to another eligible cert>
|
||||||
|
<more ssl stuff >
|
||||||
|
<other stuff>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
Natürlich kannst du auch andere Verzeichnisse auf deinem Server nutzen, um Apache zu konfigurieren. In diesem Fall müssen nur einige Zeilen in httpd.conf oder ports.conf angepasst werden - vor allem die NameVirtualHost-Zeilen. Aber wenn du sicher im Umgang mit solchen Alternativen bist, wirst du sicherlich die nötigen Anpassungen herausfinden.
|
||||||
|
|
||||||
|
Starte dein Apache abschließend neu.
|
||||||
|
|
||||||
|
**StartSSL auf Nginx**
|
||||||
|
|
||||||
|
Führe zunächst ein Update auf den neuesten Friendica-Code durch. Folge dann der Anleitung oben, um dein kostenloses Zertifikat zu erhalten. Aber statt der Apache-Installationsanleitung zu folgen, mache das Folgende:
|
||||||
|
|
||||||
|
Lade dein Zertifikat hoch. Es ist nicht wichtig, wohin du es lädst, solange Nginx es finden kann. Einige Leute nutzen /home/verschiedeneNummernundBuchstaben, du kannst aber auch z.B. etwas wie /foo/bar nutzen.
|
||||||
|
|
||||||
|
Du kannst das Passwort entfernen, wenn du willst. Es ist zwar möglicherweise nicht die beste Wahl, aber wenn du es nicht machst, wirst du das Passwort immer wieder eingeben müssen, wenn du Ngingx neustartest. Um es zu entfernen, gebe Folgendes ein:
|
||||||
|
|
||||||
|
openssl rsa -in ssl.key-pass -out ssl.key
|
||||||
|
|
||||||
|
Nun hole dir das Hifs-Zertifikat:
|
||||||
|
|
||||||
|
wget http://www.startssl.com/certs/sub.class1.server.ca.pem
|
||||||
|
|
||||||
|
Nun vereinige die Dateien:
|
||||||
|
|
||||||
|
cat ssl.crt sub.class1.server.ca.pem > ssl.crt
|
||||||
|
|
||||||
|
In manchen Konfigurationen ist ein Bug enthalten, weshalb diese Schritte nicht ordentlich arbeiten. Du musst daher ggf. ssl.crt bearbeiten:
|
||||||
|
|
||||||
|
nano /foo/bar/ssl.crt
|
||||||
|
|
||||||
|
Du wirst zwei Zertifikate in der gleichen Date sehen. In der Mitte findest du:
|
||||||
|
|
||||||
|
-----END CERTIFICATE----------BEGIN CERTIFICATE-----
|
||||||
|
|
||||||
|
Das ist schlecht. Du brauchst die folgenden Einträge:
|
||||||
|
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
|
||||||
|
|
||||||
|
Du kannst den Zeilenumbruch manuell eingeben, falls dein System vom Bug betroffen ist. Beachte, dass nach -----BEGIN CERTIFICATE----- nur ein Zeilenumbruch ist. Es gibt keine leere Zeile zwischen beiden Einträgen.
|
||||||
|
|
||||||
|
Nun musst du Nginx über die Zertifikate informieren.
|
||||||
|
|
||||||
|
In /etc/nginx/sites-available/foo.com.conf benötigst du etwas wie:
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
listen [::]:443 ipv6only=on ssl;
|
||||||
|
|
||||||
|
ssl_certificate /foo/bar/ssl.crt;
|
||||||
|
|
||||||
|
ssl_certificate_key /foo/bar/ssl.key;
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
Nun starte Nginx neu:
|
||||||
|
|
||||||
|
/etc/init.d/nginx restart
|
||||||
|
|
||||||
|
Und das war es schon.
|
||||||
|
|
||||||
|
Für multiple Domains ist es mit Nginx einfacher als mit Apache. Du musst du oben genannten Schritte nur für jedes Zertifikat wiederholen und die spezifischen Informationen im eigenen {server...}-Bereich spezifizieren.
|
27
doc/de/andfinally.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
... und zuletzt
|
||||||
|
===============
|
||||||
|
|
||||||
|
Und damit sind wir auch schon am Ende der Schnellstartanleitung.
|
||||||
|
|
||||||
|
Hier sind noch einige weitere Dinge, die dir den Start vereinfachen können.
|
||||||
|
|
||||||
|
**Gruppen**
|
||||||
|
|
||||||
|
|
||||||
|
- <a href="https://kakste.com/profile/newhere">Neu hier?</a> - eine Gruppe für Leute, die neu bei Friendica sind
|
||||||
|
|
||||||
|
- <a href="http://helpers.pyxis.uberspace.de/profile/helpers">Friendica Support</a> - Probleme? Dann ist das der Platz, um zu fragen!
|
||||||
|
|
||||||
|
- <a href="https://kakste.com/profile/public_stream">Öffentlicher Stream</a> - ein Platz, um über alles mit jedem zu reden.
|
||||||
|
|
||||||
|
- <a href="https://letstalk.pyxis.uberspace.de/profile/letstalk">Let's Talk</a> eine Gruppe, um Leute und Gruppen mit gleichen Interessen zu finden
|
||||||
|
|
||||||
|
- <a href="http://newzot.hydra.uberspace.de/profile/newzot">Local Friendica</a> eine Seite für lokale Friendica-Gruppen</a>
|
||||||
|
|
||||||
|
|
||||||
|
**Dokumentation**
|
||||||
|
|
||||||
|
- <a href="help/Connectors">Zu weiteren Netzwerken verbinden</a>
|
||||||
|
- <a href="help">Zur Startseite der Hilfe</a>
|
||||||
|
|
||||||
|
|
16
doc/de/groupsandpages.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
Gruppen und Seiten
|
||||||
|
==========
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Hier siehst du das globale Verzeichnis. Wenn du dich mal verirrt hast, kannst du <a href = "help/groupsandpages">diesen Link klicken</a> und wieder hierher kommen.
|
||||||
|
|
||||||
|
Auf dieser Seite findest du eine Zusammenstellung von Gruppen, Foren und bekannten Seiten. Gruppen sind keine realen Personen. Sich mit diesen zu verbinden ist, als wenn man jemanden auf Facebook "liked" ("gefällt mir") oder wenn man sich in einem Forum anmeldet. Habe keine Sorge, falls du dich unbehaglich fühlst, wenn du dich einer neuen Person vorstellen sollst, da es sich nicht um Personen handelt.
|
||||||
|
|
||||||
|
Wenn du dich mit einer Gruppe verbindest, erscheinen alle Nachrichten der Gruppe in deinem "Netzwerk"-Tab. Du kannst diese Beiträge kommentieren oder selbst in der Gruppe schreiben, ohne eine der Gruppenmitglieder persönlich hinzuzufügen. Das ist ein großartiger Weg, dynamisch neue Freunde zu gewinnen. Du findest Personen, die du magst, anstatt Fremde hinzuzufügen. Suche dir einfach eine Gruppe und füge sie so hinzu, wie du auch normale Freunde hinzufügst. Es gibt eine Menge Gruppen und möglicherweise findest du nicht wieder zu dieser Seite zurück. In diesem Fall nutze einfach den Link oben auf dieser Seite.
|
||||||
|
|
||||||
|
Wenn du einige Gruppen hinzugefügt hast, gehe <a href="help/andfinally">weiter zum nächsten Schritt</a>.
|
||||||
|
|
||||||
|
<iframe src="http://dir.friendica.com/directory/forum" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
17
doc/de/guide.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
Erste Schritte...
|
||||||
|
==========
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Das Erste zum Anfang: geh sicher, dass du schon eingeloggt bist. Wenn du noch nicht eingeloggt bist, kannst du das in dem Fenster unten machen.
|
||||||
|
|
||||||
|
Sobald du eingeloggt bist (oder wenn du bereits eingeloggt bist), kannst du unten nun auf deine Profilseite schauen.
|
||||||
|
|
||||||
|
Hier sieht es ein wenig wie auf deiner Facebook-Seite aus. Hier findest du alle deine Statusmeldungen und Nachrichten deiner Freunde, die direkt auf deine Seite ("Wall") geschrieben haben. Um deinen Status einzutragen, klicke einfach auf die Box oben, in der "Teilen" steht. Wenn du das machst, vergrößert sich die Box. Nun kannst du einige Formatierungsoptionen wie Fett, kursiv, unterstrichen auswählen und ebenfalls Bilder und Links hinzufügen. Unten findest du in diesem Feld weitere Links, mit denen du Bilder und Dateien von deinem Computer hochladen, Webseiten mit einem Kurztext teilen und Video- und Audiodateien aus dem Internet einfügen kannst. Außerdem kannst du hier eintragen, wo du gerade bist.
|
||||||
|
|
||||||
|
Wenn du deinen Beitrag ("Post") geschrieben hast, kannst du auf das "Schloss"-Symbol klicken und festlegen, wer deinen Beitrag sehen kann. Wenn du dieses Symbol nicht anklickst, ist dein Beitrag öffentlich. Das bedeutet, dass jeder, der dein Profil ansieht, der auf dem "Community"-Tab deines Servers oder auf dem "Netzwerk"-Tab ("Beiträge deiner Kontakte") eines befreundeten Kontakts ist, den Beitrag sehen kann.
|
||||||
|
|
||||||
|
Probiere es doch einfach mal aus. Wenn du fertg bist, schauen wir uns den <a href="help/network">"Netzwerk"-Tab</a> an.
|
||||||
|
|
||||||
|
<iframe src="login" width="950" height="600"></iframe>
|
||||||
|
|
16
doc/de/makingnewfriends.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
Neue Freunde finden
|
||||||
|
==============
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Hier siehst du die Kontaktvorschläge. Wenn du dich mal verirrt hast, kannst du <a href="help/makenewfriends">diesen Link klicken</a> und wieder hierher kommen.
|
||||||
|
|
||||||
|
Diese Seite ist ein wenig wie die Kontaktvorschläge in Facebook. Jeder auf dieser Liste hat zugestimmt, als Kontaktvorschlag zu erscheinen. Das bedeutet, das sie Anfragen meist nicht ablehnen, da sie neue Leute kennenlernen wollen.
|
||||||
|
|
||||||
|
Siehst du jemanden, dessen Aussehen du magst? Klicke auf den "Verbinden"-Button beim Foto. Als nächstes kommst du zur Seite "Freundschafts-/Kontaktanfrage". Fülle das Formular wie vorgegeben aus und trage optional eine kleine Notiz ein. Nun musst du nur noch auf die Bestätigung warten. Beachte dabei, dass es sich um reale Personen handelt und es somit etwas dauern kann. Jetzt, nachdem du jemanden hinzugefügt hast, weißt du vielleicht nicht mehr, wie du zurückkommst. Klicke einfach auf den Link oben auf dieser Seite und du kommst zurück zur Seite mit den Kontaktvorschlägen, um weitere Personen hinzuzufügen.
|
||||||
|
|
||||||
|
Du willst nicht einfach Personen hinzufügen, die du nicht kennst? Kein Problem - an dieser Stelle kommen wir zu den <a href="help/groupsandpages">Gruppen und Seiten</a>.
|
||||||
|
|
||||||
|
<iframe src="suggest" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
14
doc/de/network.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
Deine "Netzwerk"-Seite
|
||||||
|
==============
|
||||||
|
|
||||||
|
* [Zur Startseite der Hilfe](help)
|
||||||
|
|
||||||
|
Das ist dein "Netzwerk"-Tab. Wenn du dich mal verirrt hast, kannst du <a href="help/network">diesen Link klicken</a>, um wieder hierher zu kommen.
|
||||||
|
|
||||||
|
Diese Seite ist ein wenig wie die News-Seite in Facebook oder der Stream in Diaspora. Hier findest du alle Beiträge deiner Kontakte, Gruppen und Feeds, die du eingetragen hast. Wenn du neu bist, siehst du hier noch nichts, falls du deinen Status im letzten Schritt noch nicht eingetragen hast. Wenn du bereits ein paar Freunde eingetragen hast, findest du hier ihre Beiträge. Hier kannst du Beiträge kommentieren, eintragen, dass du den Beitrag magst oder ablehnst oder die Profile durch einen Klick auf deren Namen anschauen und auf deren Seite ("Wall") Nachrichten schreiben.
|
||||||
|
|
||||||
|
Nun wollen wir diese Seite mit Inhalt füllen. Der erste Schritt ist es, Leute <a href="help/makingnewfriends">zu deinem Account hinzuzufügen</a>.
|
||||||
|
|
||||||
|
<iframe src="network" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
11
doc/groupsandpages.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
This is the global directory. If you get lost, you can <a href = "help/groupsandpages">click this link</a> to bring yourself back here.
|
||||||
|
|
||||||
|
On this page, you'll find a collection of groups, forums and celebrity pages. Groups are not real people. Connecting to them is similar to "liking" something on Facebook, or signing up for a new forum. You don't have to feel awkward about introducing yourself to a new person, because they're not people!
|
||||||
|
|
||||||
|
When you connect to a group, all messages to that group will start appearing in your network tab. You can comment on these posts, or post to the group yourself without ever having to add any of the groups members. This is a great way to make friends dynamically - you'll find people you like and add each other naturally instead of adding random strangers. Simply find a group you're interested in, and connect to it the same way you did with people in the last section. There are a lot of groups, and you're likely to get lost. Remember the link at the top of this page will bring you back here.
|
||||||
|
|
||||||
|
Once you've added some groups, <a href="help/andfinally">move on to the next section</a>.
|
||||||
|
|
||||||
|
<iframe src="http://dir.friendica.com/directory/forum" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
13
doc/guide.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
First things first, let's make sure you're logged in to your account. If you're not already logged in, do so in the frame below.
|
||||||
|
|
||||||
|
Once you've logged in (or if you are already logged in), you'll now be looking at your profile page.
|
||||||
|
|
||||||
|
This is a bit like your Facebook wall. It's where all your status messgages are kept, and where your friends come to post on your wall. To write your status, simply click in the box that says "share". When you do this, the box will expand. You can see some formatting options at the top such as Bold, Italics and Underline, as well as ways to add links and pictures. At the bottom you'll find some more links. You can use these to upload pictures and files from your computer, share websites with a bit of preview text, or embed video and audio files from elsewhere on the web. You can also set your post location here.
|
||||||
|
|
||||||
|
Once you've finished writing your post, click on the padlock icon to select who can see it. If you do not use the padlock icon, your post will be public. This means it will appear to anybody who views your profile, and in the community tab if your site has it enabled, as well as in the network tab of any of your contacts.
|
||||||
|
|
||||||
|
Play around with this a bit, then when you're ready to move on, we'll take a look at the <a href="help/network">Network Tab</a>
|
||||||
|
|
||||||
|
<iframe src="login" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
11
doc/makingnewfriends.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
This is your Suggested Friends page. If you get lost, you can <a href="help/makenewfriends">click this link</a> to bring yourself back here.
|
||||||
|
|
||||||
|
This is a bit like the Friend Suggestions page of Facebook. Everybody on this list has agreed that they may be suggested as a friend. This means they're unlikely to refuse an introduction you send, and they want to meet new people too!
|
||||||
|
|
||||||
|
See somebody you like the look of? Click the connect button beneath their photograph. This will bring you to the introductions page. Fill in the form as instructed, and add a small note (optional). Now, wait a bit and they'll accept your request - note that these are real people, and it might take a while. Now you've added one, you're probably lost. Click the link at the top of this page to go back to the suggested friends list and add some more.
|
||||||
|
|
||||||
|
Feel uncomfortable adding people you don't know? Don't worry - that's where <a href="help/groupsandpages">Groups and Pages</a> come in!
|
||||||
|
|
||||||
|
<iframe src="suggest" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
9
doc/network.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
This is your Network Tab. If you get lost, you can <a href="help/network">click this link</a> to bring yourself back here.
|
||||||
|
|
||||||
|
This is a bit like the Newsfeed at Facebook or the Stream at Diaspora. It's where all the posts from your contacts, groups, and feeds will appear. If you're new, you won't see anything in this page, unless you posted your status in the last step. If you've already added a few friends, you'll be able to see their posts. Here, you can comment, like, or dislike posts, or click on somebody's name to visit their profile page where you can write on their wall.
|
||||||
|
|
||||||
|
Now we need to fill it up, the first step, is to <a href="help/makingnewfriends"> make some new friends</a>.
|
||||||
|
|
||||||
|
<iframe src="network" width="950" height="600"></iframe>
|
||||||
|
|
||||||
|
|
|
@ -219,16 +219,16 @@ function contact_photo_menu($contact) {
|
||||||
|
|
||||||
$poke_link = $a->get_baseurl() . '/poke/?f=&c=' . $contact['id'];
|
$poke_link = $a->get_baseurl() . '/poke/?f=&c=' . $contact['id'];
|
||||||
$contact_url = $a->get_baseurl() . '/contacts/' . $contact['id'];
|
$contact_url = $a->get_baseurl() . '/contacts/' . $contact['id'];
|
||||||
$posts_link = $a->get_baseurl() . '/network/?cid=' . $contact['id'];
|
$posts_link = $a->get_baseurl() . '/network/0?nets=all&cid=' . $contact['id'];
|
||||||
|
|
||||||
$menu = Array(
|
$menu = Array(
|
||||||
t("Poke") => $poke_link,
|
'poke' => array(t("Poke"), $poke_link),
|
||||||
t("View Status") => $status_link,
|
'status' => array(t("View Status"), $status_link),
|
||||||
t("View Profile") => $profile_link,
|
'profile' => array(t("View Profile"), $profile_link),
|
||||||
t("View Photos") => $photos_link,
|
'photos' => array(t("View Photos"), $photos_link),
|
||||||
t("Network Posts") => $posts_link,
|
'network' => array(t("Network Posts"), $posts_link),
|
||||||
t("Edit Contact") => $contact_url,
|
'edit' => array(t("Edit Contact"), $contact_url),
|
||||||
t("Send PM") => $pm_url,
|
'pm' => array(t("Send PM"), $pm_url),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ function contact_photo_menu($contact) {
|
||||||
|
|
||||||
call_hooks('contact_photo_menu', $args);
|
call_hooks('contact_photo_menu', $args);
|
||||||
|
|
||||||
$o = "";
|
/* $o = "";
|
||||||
foreach($menu as $k=>$v){
|
foreach($menu as $k=>$v){
|
||||||
if ($v!="") {
|
if ($v!="") {
|
||||||
if(($k !== t("Network Posts")) && ($k !== t("Send PM")) && ($k !== t('Edit Contact')))
|
if(($k !== t("Network Posts")) && ($k !== t("Send PM")) && ($k !== t('Edit Contact')))
|
||||||
|
@ -245,7 +245,16 @@ function contact_photo_menu($contact) {
|
||||||
$o .= "<li><a href=\"$v\">$k</a></li>\n";
|
$o .= "<li><a href=\"$v\">$k</a></li>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $o;
|
return $o;*/
|
||||||
|
foreach($menu as $k=>$v){
|
||||||
|
if ($v[1]!="") {
|
||||||
|
if(($v[0] !== t("Network Posts")) && ($v[0] !== t("Send PM")) && ($v[0] !== t('Edit Contact')))
|
||||||
|
$menu[$k][2] = 1;
|
||||||
|
else
|
||||||
|
$menu[$k][2] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $menu;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
require_once("include/contact_selectors.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -236,16 +239,14 @@ function prune_deadguys($arr) {
|
||||||
if($r) {
|
if($r) {
|
||||||
$ret = array();
|
$ret = array();
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$ret[] = $rr['id'];
|
$ret[] = intval($rr['id']);
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function get_acl_permissions($user = null) {
|
||||||
function populate_acl($user = null,$celeb = false) {
|
|
||||||
|
|
||||||
$allow_cid = $allow_gid = $deny_cid = $deny_gid = false;
|
$allow_cid = $allow_gid = $deny_cid = $deny_gid = false;
|
||||||
|
|
||||||
if(is_array($user)) {
|
if(is_array($user)) {
|
||||||
|
@ -265,6 +266,19 @@ function populate_acl($user = null,$celeb = false) {
|
||||||
|
|
||||||
$allow_cid = prune_deadguys($allow_cid);
|
$allow_cid = prune_deadguys($allow_cid);
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'allow_cid' => $allow_cid,
|
||||||
|
'allow_gid' => $allow_gid,
|
||||||
|
'deny_cid' => $deny_cid,
|
||||||
|
'deny_gid' => $deny_gid,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function populate_acl($user = null,$celeb = false) {
|
||||||
|
|
||||||
|
$perms = get_acl_permissions($user);
|
||||||
|
|
||||||
// We shouldn't need to prune deadguys from the block list. Either way they can't get the message.
|
// We shouldn't need to prune deadguys from the block list. Either way they can't get the message.
|
||||||
// Also no point enumerating groups and checking them, that will take place on delivery.
|
// Also no point enumerating groups and checking them, that will take place on delivery.
|
||||||
|
|
||||||
|
@ -311,10 +325,10 @@ function populate_acl($user = null,$celeb = false) {
|
||||||
'$showall'=> t("Visible to everybody"),
|
'$showall'=> t("Visible to everybody"),
|
||||||
'$show' => t("show"),
|
'$show' => t("show"),
|
||||||
'$hide' => t("don't show"),
|
'$hide' => t("don't show"),
|
||||||
'$allowcid' => json_encode($allow_cid),
|
'$allowcid' => json_encode($perms['allow_cid']),
|
||||||
'$allowgid' => json_encode($allow_gid),
|
'$allowgid' => json_encode($perms['allow_gid']),
|
||||||
'$denycid' => json_encode($deny_cid),
|
'$denycid' => json_encode($perms['deny_cid']),
|
||||||
'$denygid' => json_encode($deny_gid),
|
'$denygid' => json_encode($perms['deny_gid']),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
@ -322,3 +336,238 @@ function populate_acl($user = null,$celeb = false) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function construct_acl_data(&$a, $user) {
|
||||||
|
|
||||||
|
// Get group and contact information for html ACL selector
|
||||||
|
$acl_data = acl_lookup($a, 'html');
|
||||||
|
|
||||||
|
$user_defaults = get_acl_permissions($user);
|
||||||
|
|
||||||
|
if($acl_data['groups']) {
|
||||||
|
foreach($acl_data['groups'] as $key=>$group) {
|
||||||
|
// Add a "selected" flag to groups that are posted to by default
|
||||||
|
if($user_defaults['allow_gid'] &&
|
||||||
|
in_array($group['id'], $user_defaults['allow_gid']) && !in_array($group['id'], $user_defaults['deny_gid']) )
|
||||||
|
$acl_data['groups'][$key]['selected'] = 1;
|
||||||
|
else
|
||||||
|
$acl_data['groups'][$key]['selected'] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($acl_data['contacts']) {
|
||||||
|
foreach($acl_data['contacts'] as $key=>$contact) {
|
||||||
|
// Add a "selected" flag to groups that are posted to by default
|
||||||
|
if($user_defaults['allow_cid'] &&
|
||||||
|
in_array($contact['id'], $user_defaults['allow_cid']) && !in_array($contact['id'], $user_defaults['deny_cid']) )
|
||||||
|
$acl_data['contacts'][$key]['selected'] = 1;
|
||||||
|
else
|
||||||
|
$acl_data['contacts'][$key]['selected'] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $acl_data;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function acl_lookup(&$a, $out_type = 'json') {
|
||||||
|
|
||||||
|
if(!local_user())
|
||||||
|
return "";
|
||||||
|
|
||||||
|
|
||||||
|
$start = (x($_REQUEST,'start')?$_REQUEST['start']:0);
|
||||||
|
$count = (x($_REQUEST,'count')?$_REQUEST['count']:100);
|
||||||
|
$search = (x($_REQUEST,'search')?$_REQUEST['search']:"");
|
||||||
|
$type = (x($_REQUEST,'type')?$_REQUEST['type']:"");
|
||||||
|
|
||||||
|
|
||||||
|
// For use with jquery.autocomplete for private mail completion
|
||||||
|
|
||||||
|
if(x($_REQUEST,'query') && strlen($_REQUEST['query'])) {
|
||||||
|
if(! $type)
|
||||||
|
$type = 'm';
|
||||||
|
$search = $_REQUEST['query'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ($search!=""){
|
||||||
|
$sql_extra = "AND `name` LIKE '%%".dbesc($search)."%%'";
|
||||||
|
$sql_extra2 = "AND (`attag` LIKE '%%".dbesc($search)."%%' OR `name` LIKE '%%".dbesc($search)."%%' OR `nick` LIKE '%%".dbesc($search)."%%')";
|
||||||
|
} else {
|
||||||
|
$sql_extra = $sql_extra2 = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// count groups and contacts
|
||||||
|
if ($type=='' || $type=='g'){
|
||||||
|
$r = q("SELECT COUNT(`id`) AS g FROM `group` WHERE `deleted` = 0 AND `uid` = %d $sql_extra",
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
|
$group_count = (int)$r[0]['g'];
|
||||||
|
} else {
|
||||||
|
$group_count = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($type=='' || $type=='c'){
|
||||||
|
$r = q("SELECT COUNT(`id`) AS c FROM `contact`
|
||||||
|
WHERE `uid` = %d AND `self` = 0
|
||||||
|
AND `blocked` = 0 AND `pending` = 0 AND `archive` = 0
|
||||||
|
AND `notify` != '' $sql_extra2" ,
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
|
$contact_count = (int)$r[0]['c'];
|
||||||
|
}
|
||||||
|
elseif ($type == 'm') {
|
||||||
|
|
||||||
|
// autocomplete for Private Messages
|
||||||
|
|
||||||
|
$r = q("SELECT COUNT(`id`) AS c FROM `contact`
|
||||||
|
WHERE `uid` = %d AND `self` = 0
|
||||||
|
AND `blocked` = 0 AND `pending` = 0 AND `archive` = 0
|
||||||
|
AND `network` IN ('%s','%s','%s') $sql_extra2" ,
|
||||||
|
intval(local_user()),
|
||||||
|
dbesc(NETWORK_DFRN),
|
||||||
|
dbesc(NETWORK_ZOT),
|
||||||
|
dbesc(NETWORK_DIASPORA)
|
||||||
|
);
|
||||||
|
$contact_count = (int)$r[0]['c'];
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif ($type == 'a') {
|
||||||
|
|
||||||
|
// autocomplete for Contacts
|
||||||
|
|
||||||
|
$r = q("SELECT COUNT(`id`) AS c FROM `contact`
|
||||||
|
WHERE `uid` = %d AND `self` = 0
|
||||||
|
AND `pending` = 0 $sql_extra2" ,
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
|
$contact_count = (int)$r[0]['c'];
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$contact_count = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$tot = $group_count+$contact_count;
|
||||||
|
|
||||||
|
$groups = array();
|
||||||
|
$contacts = array();
|
||||||
|
|
||||||
|
if ($type=='' || $type=='g'){
|
||||||
|
|
||||||
|
$r = q("SELECT `group`.`id`, `group`.`name`, GROUP_CONCAT(DISTINCT `group_member`.`contact-id` SEPARATOR ',') as uids
|
||||||
|
FROM `group`,`group_member`
|
||||||
|
WHERE `group`.`deleted` = 0 AND `group`.`uid` = %d
|
||||||
|
AND `group_member`.`gid`=`group`.`id`
|
||||||
|
$sql_extra
|
||||||
|
GROUP BY `group`.`id`
|
||||||
|
ORDER BY `group`.`name`
|
||||||
|
LIMIT %d,%d",
|
||||||
|
intval(local_user()),
|
||||||
|
intval($start),
|
||||||
|
intval($count)
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach($r as $g){
|
||||||
|
// logger('acl: group: ' . $g['name'] . ' members: ' . $g['uids']);
|
||||||
|
$groups[] = array(
|
||||||
|
"type" => "g",
|
||||||
|
"photo" => "images/twopeople.png",
|
||||||
|
"name" => $g['name'],
|
||||||
|
"id" => intval($g['id']),
|
||||||
|
"uids" => array_map("intval", explode(",",$g['uids'])),
|
||||||
|
"link" => ''
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($type=='' || $type=='c'){
|
||||||
|
|
||||||
|
$r = q("SELECT `id`, `name`, `nick`, `micro`, `network`, `url`, `attag` FROM `contact`
|
||||||
|
WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `archive` = 0 AND `notify` != ''
|
||||||
|
$sql_extra2
|
||||||
|
ORDER BY `name` ASC ",
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif($type == 'm') {
|
||||||
|
$r = q("SELECT `id`, `name`, `nick`, `micro`, `network`, `url`, `attag` FROM `contact`
|
||||||
|
WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `archive` = 0
|
||||||
|
AND `network` IN ('%s','%s','%s')
|
||||||
|
$sql_extra2
|
||||||
|
ORDER BY `name` ASC ",
|
||||||
|
intval(local_user()),
|
||||||
|
dbesc(NETWORK_DFRN),
|
||||||
|
dbesc(NETWORK_ZOT),
|
||||||
|
dbesc(NETWORK_DIASPORA)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif($type == 'a') {
|
||||||
|
$r = q("SELECT `id`, `name`, `nick`, `micro`, `network`, `url`, `attag` FROM `contact`
|
||||||
|
WHERE `uid` = %d AND `pending` = 0
|
||||||
|
$sql_extra2
|
||||||
|
ORDER BY `name` ASC ",
|
||||||
|
intval(local_user())
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$r = array();
|
||||||
|
|
||||||
|
|
||||||
|
if($type == 'm' || $type == 'a') {
|
||||||
|
$x = array();
|
||||||
|
$x['query'] = $search;
|
||||||
|
$x['photos'] = array();
|
||||||
|
$x['links'] = array();
|
||||||
|
$x['suggestions'] = array();
|
||||||
|
$x['data'] = array();
|
||||||
|
if(count($r)) {
|
||||||
|
foreach($r as $g) {
|
||||||
|
$x['photos'][] = $g['micro'];
|
||||||
|
$x['links'][] = $g['url'];
|
||||||
|
$x['suggestions'][] = $g['name'];
|
||||||
|
$x['data'][] = intval($g['id']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo json_encode($x);
|
||||||
|
killme();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(count($r)) {
|
||||||
|
foreach($r as $g){
|
||||||
|
$contacts[] = array(
|
||||||
|
"type" => "c",
|
||||||
|
"photo" => $g['micro'],
|
||||||
|
"name" => $g['name'],
|
||||||
|
"id" => intval($g['id']),
|
||||||
|
"network" => $g['network'],
|
||||||
|
"link" => $g['url'],
|
||||||
|
"nick" => ($g['attag']) ? $g['attag'] : $g['nick'],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$items = array_merge($groups, $contacts);
|
||||||
|
|
||||||
|
|
||||||
|
if($out_type === 'html') {
|
||||||
|
$o = array(
|
||||||
|
'tot' => $tot,
|
||||||
|
'start' => $start,
|
||||||
|
'count' => $count,
|
||||||
|
'groups' => $groups,
|
||||||
|
'contacts' => $contacts,
|
||||||
|
);
|
||||||
|
return $o;
|
||||||
|
}
|
||||||
|
|
||||||
|
$o = array(
|
||||||
|
'tot' => $tot,
|
||||||
|
'start' => $start,
|
||||||
|
'count' => $count,
|
||||||
|
'items' => $items,
|
||||||
|
);
|
||||||
|
|
||||||
|
echo json_encode($o);
|
||||||
|
|
||||||
|
killme();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -450,6 +450,11 @@
|
||||||
case "xml":
|
case "xml":
|
||||||
$data = array_xmlify($data);
|
$data = array_xmlify($data);
|
||||||
$tpl = get_markup_template("api_".$templatename."_".$type.".tpl");
|
$tpl = get_markup_template("api_".$templatename."_".$type.".tpl");
|
||||||
|
if(! $tpl) {
|
||||||
|
header ("Content-Type: text/xml");
|
||||||
|
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n".'<status><error>not implemented</error></status>';
|
||||||
|
killme();
|
||||||
|
}
|
||||||
$ret = replace_macros($tpl, $data);
|
$ret = replace_macros($tpl, $data);
|
||||||
break;
|
break;
|
||||||
case "json":
|
case "json":
|
||||||
|
|
|
@ -85,6 +85,15 @@ function get_config($family, $key, $instore = false) {
|
||||||
if(! function_exists('set_config')) {
|
if(! function_exists('set_config')) {
|
||||||
function set_config($family,$key,$value) {
|
function set_config($family,$key,$value) {
|
||||||
global $a;
|
global $a;
|
||||||
|
|
||||||
|
// If $a->config[$family] has been previously set to '!<unset>!', then
|
||||||
|
// $a->config[$family][$key] will evaluate to $a->config[$family][0], and
|
||||||
|
// $a->config[$family][$key] = $value will be equivalent to
|
||||||
|
// $a->config[$family][0] = $value[0] (this causes infuriating bugs),
|
||||||
|
// so unset the family before assigning a value to a family's key
|
||||||
|
if($a->config[$family] === '!<unset>!')
|
||||||
|
unset($a->config[$family]);
|
||||||
|
|
||||||
// manage array value
|
// manage array value
|
||||||
$dbvalue = (is_array($value)?serialize($value):$value);
|
$dbvalue = (is_array($value)?serialize($value):$value);
|
||||||
$dbvalue = (is_bool($dbvalue) ? intval($dbvalue) : $dbvalue);
|
$dbvalue = (is_bool($dbvalue) ? intval($dbvalue) : $dbvalue);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once("include/bbcode.php");
|
require_once("include/bbcode.php");
|
||||||
|
require_once("include/acl_selectors.php");
|
||||||
|
|
||||||
|
|
||||||
// Note: the code in 'item_extract_images' and 'item_redir_and_replace_images'
|
// Note: the code in 'item_extract_images' and 'item_redir_and_replace_images'
|
||||||
|
@ -702,6 +703,8 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
call_hooks('display_item', $arr);
|
||||||
|
|
||||||
$item['pagedrop'] = $page_dropping;
|
$item['pagedrop'] = $page_dropping;
|
||||||
|
|
||||||
if($item['id'] == $item['parent']) {
|
if($item['id'] == $item['parent']) {
|
||||||
|
@ -720,6 +723,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
|
||||||
|
|
||||||
$o = replace_macros($page_template, array(
|
$o = replace_macros($page_template, array(
|
||||||
'$baseurl' => $a->get_baseurl($ssl_state),
|
'$baseurl' => $a->get_baseurl($ssl_state),
|
||||||
|
'$return_path' => $a->query_string,
|
||||||
'$live_update' => $live_update_div,
|
'$live_update' => $live_update_div,
|
||||||
'$remove' => t('remove'),
|
'$remove' => t('remove'),
|
||||||
'$mode' => $mode,
|
'$mode' => $mode,
|
||||||
|
@ -809,7 +813,7 @@ function item_photo_menu($item){
|
||||||
if(($cid) && (! $item['self'])) {
|
if(($cid) && (! $item['self'])) {
|
||||||
$poke_link = $a->get_baseurl($ssl_state) . '/poke/?f=&c=' . $cid;
|
$poke_link = $a->get_baseurl($ssl_state) . '/poke/?f=&c=' . $cid;
|
||||||
$contact_url = $a->get_baseurl($ssl_state) . '/contacts/' . $cid;
|
$contact_url = $a->get_baseurl($ssl_state) . '/contacts/' . $cid;
|
||||||
$posts_link = $a->get_baseurl($ssl_state) . '/network/?cid=' . $cid;
|
$posts_link = $a->get_baseurl($ssl_state) . '/network/0?nets=all&cid=' . $cid;
|
||||||
|
|
||||||
$clean_url = normalise_link($item['author-link']);
|
$clean_url = normalise_link($item['author-link']);
|
||||||
|
|
||||||
|
@ -924,7 +928,7 @@ function format_like($cnt,$arr,$type,$id) {
|
||||||
$str .= sprintf( t(', and %d other people'), $total - MAX_LIKERS );
|
$str .= sprintf( t(', and %d other people'), $total - MAX_LIKERS );
|
||||||
}
|
}
|
||||||
$str = (($type === 'like') ? sprintf( t('%s like this.'), $str) : sprintf( t('%s don\'t like this.'), $str));
|
$str = (($type === 'like') ? sprintf( t('%s like this.'), $str) : sprintf( t('%s don\'t like this.'), $str));
|
||||||
$o .= "\t" . '<div id="' . $type . 'list-' . $id . '" style="display: none;" >' . $str . '</div>';
|
$o .= "\t" . '<div class="wall-item-' . $type . '-expanded" id="' . $type . 'list-' . $id . '" style="display: none;" >' . $str . '</div>';
|
||||||
}
|
}
|
||||||
return $o;
|
return $o;
|
||||||
}}
|
}}
|
||||||
|
@ -978,8 +982,6 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template("jot.tpl");
|
|
||||||
|
|
||||||
$jotplugins = '';
|
$jotplugins = '';
|
||||||
$jotnets = '';
|
$jotnets = '';
|
||||||
|
|
||||||
|
@ -1010,10 +1012,31 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
|
||||||
if($notes_cid)
|
if($notes_cid)
|
||||||
$jotnets .= '<input type="hidden" name="contact_allow[]" value="' . $notes_cid .'" />';
|
$jotnets .= '<input type="hidden" name="contact_allow[]" value="' . $notes_cid .'" />';
|
||||||
|
|
||||||
|
|
||||||
|
// Private/public post links for the non-JS ACL form
|
||||||
|
$private_post = 1;
|
||||||
|
if($_REQUEST['public'])
|
||||||
|
$private_post = 0;
|
||||||
|
|
||||||
|
$query_str = $a->query_string;
|
||||||
|
if(strpos($query_str, 'public=1') !== false)
|
||||||
|
$query_str = str_replace(array('?public=1', '&public=1'), array('', ''), $query_str);
|
||||||
|
|
||||||
|
// I think $a->query_string may never have ? in it, but I could be wrong
|
||||||
|
// It looks like it's from the index.php?q=[etc] rewrite that the web
|
||||||
|
// server does, which converts any ? to &, e.g. suggest&ignore=61 for suggest?ignore=61
|
||||||
|
if(strpos($query_str, '?') === false)
|
||||||
|
$public_post_link = '?public=1';
|
||||||
|
else
|
||||||
|
$public_post_link = '&public=1';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
|
// $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
|
||||||
|
$tpl = get_markup_template("jot.tpl");
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
'$return_path' => $a->query_string,
|
'$return_path' => $query_str,
|
||||||
'$action' => $a->get_baseurl(true) . '/item',
|
'$action' => $a->get_baseurl(true) . '/item',
|
||||||
'$share' => (x($x,'button') ? $x['button'] : t('Share')),
|
'$share' => (x($x,'button') ? $x['button'] : t('Share')),
|
||||||
'$upload' => t('Upload photo'),
|
'$upload' => t('Upload photo'),
|
||||||
|
@ -1049,14 +1072,22 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
|
||||||
'$jotnets' => $jotnets,
|
'$jotnets' => $jotnets,
|
||||||
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
||||||
'$lockstate' => $x['lockstate'],
|
'$lockstate' => $x['lockstate'],
|
||||||
'$acl' => $x['acl'],
|
|
||||||
'$bang' => $x['bang'],
|
'$bang' => $x['bang'],
|
||||||
'$profile_uid' => $x['profile_uid'],
|
'$profile_uid' => $x['profile_uid'],
|
||||||
'$preview' => ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : ''),
|
'$preview' => ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : ''),
|
||||||
'$jotplugins' => $jotplugins,
|
'$jotplugins' => $jotplugins,
|
||||||
'$sourceapp' => t($a->sourcename),
|
'$sourceapp' => t($a->sourcename),
|
||||||
'$cancel' => t('Cancel'),
|
'$cancel' => t('Cancel'),
|
||||||
'$rand_num' => random_digits(12)
|
'$rand_num' => random_digits(12),
|
||||||
|
|
||||||
|
// ACL permissions box
|
||||||
|
'$acl' => $x['acl'],
|
||||||
|
'$acl_data' => $x['acl_data'],
|
||||||
|
'$group_perms' => t('Post to Groups'),
|
||||||
|
'$contact_perms' => t('Post to Contacts'),
|
||||||
|
'$private' => t('Private post'),
|
||||||
|
'$is_private' => $private_post,
|
||||||
|
'$public_link' => $public_post_link,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ function dbupdate_run(&$argv, &$argc) {
|
||||||
load_config('config');
|
load_config('config');
|
||||||
load_config('system');
|
load_config('system');
|
||||||
|
|
||||||
check_config($a);
|
update_db($a);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_search(__file__,get_included_files())===0){
|
if (array_search(__file__,get_included_files())===0){
|
||||||
|
|
|
@ -56,12 +56,13 @@ function notification($params) {
|
||||||
|
|
||||||
$parent_id = $params['parent'];
|
$parent_id = $params['parent'];
|
||||||
|
|
||||||
// Check to see if there was already a tag notify for this post.
|
// Check to see if there was already a tag notify or comment notify for this post.
|
||||||
// If so don't create a second notification
|
// If so don't create a second notification
|
||||||
|
|
||||||
$p = null;
|
$p = null;
|
||||||
$p = q("select id from notify where type = %d and link = '%s' and uid = %d limit 1",
|
$p = q("select id from notify where ( type = %d or type = %d ) and link = '%s' and uid = %d limit 1",
|
||||||
intval(NOTIFY_TAGSELF),
|
intval(NOTIFY_TAGSELF),
|
||||||
|
intval(NOTIFY_COMMENT),
|
||||||
dbesc($params['link']),
|
dbesc($params['link']),
|
||||||
intval($params['uid'])
|
intval($params['uid'])
|
||||||
);
|
);
|
||||||
|
@ -299,6 +300,38 @@ function notification($params) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we seem to have a lot of duplicate comment notifications due to race conditions, mostly from forums
|
||||||
|
// After we've stored everything, look again to see if there are any duplicates and if so remove them
|
||||||
|
|
||||||
|
$p = null;
|
||||||
|
$p = q("select id from notify where ( type = %d or type = %d ) and link = '%s' and uid = %d order by id",
|
||||||
|
intval(NOTIFY_TAGSELF),
|
||||||
|
intval(NOTIFY_COMMENT),
|
||||||
|
dbesc($params['link']),
|
||||||
|
intval($params['uid'])
|
||||||
|
);
|
||||||
|
if($p && (count($p) > 1)) {
|
||||||
|
for ($d = 1; $d < count($p); $d ++) {
|
||||||
|
q("delete from notify where id = %d limit 1",
|
||||||
|
intval($p[$d]['id'])
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// only continue on if we stored the first one
|
||||||
|
|
||||||
|
if($notify_id != $p[0]['id']) {
|
||||||
|
pop_lang();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$itemlink = $a->get_baseurl() . '/notify/view/' . $notify_id;
|
$itemlink = $a->get_baseurl() . '/notify/view/' . $notify_id;
|
||||||
$msg = replace_macros($epreamble,array('$itemlink' => $itemlink));
|
$msg = replace_macros($epreamble,array('$itemlink' => $itemlink));
|
||||||
$r = q("update notify set msg = '%s' where id = %d and uid = %d limit 1",
|
$r = q("update notify set msg = '%s' where id = %d and uid = %d limit 1",
|
||||||
|
|
|
@ -3665,7 +3665,7 @@ function fix_private_photos($s, $uid, $item = null, $cid = 0) {
|
||||||
// Only embed locally hosted photos
|
// Only embed locally hosted photos
|
||||||
$replace = false;
|
$replace = false;
|
||||||
$i = basename($image);
|
$i = basename($image);
|
||||||
$i = str_replace(array('.jpg','.png'),array('',''),$i);
|
$i = str_replace(array('.jpg','.png','.gif'),array('','',''),$i);
|
||||||
$x = strpos($i,'-');
|
$x = strpos($i,'-');
|
||||||
|
|
||||||
if($x) {
|
if($x) {
|
||||||
|
@ -3676,7 +3676,7 @@ function fix_private_photos($s, $uid, $item = null, $cid = 0) {
|
||||||
intval($res),
|
intval($res),
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if($r) {
|
||||||
|
|
||||||
// Check to see if we should replace this photo link with an embedded image
|
// Check to see if we should replace this photo link with an embedded image
|
||||||
// 1. No need to do so if the photo is public
|
// 1. No need to do so if the photo is public
|
||||||
|
@ -3945,6 +3945,34 @@ function drop_item($id,$interactive = true) {
|
||||||
|
|
||||||
if((local_user() == $item['uid']) || ($cid) || (! $interactive)) {
|
if((local_user() == $item['uid']) || ($cid) || (! $interactive)) {
|
||||||
|
|
||||||
|
// Check if we should do HTML-based delete confirmation
|
||||||
|
if($_REQUEST['confirm']) {
|
||||||
|
// <form> can't take arguments in its "action" parameter
|
||||||
|
// so add any arguments as hidden inputs
|
||||||
|
$query = explode_querystring($a->query_string);
|
||||||
|
$inputs = array();
|
||||||
|
foreach($query['args'] as $arg) {
|
||||||
|
if(strpos($arg, 'confirm=') === false) {
|
||||||
|
$arg_parts = explode('=', $arg);
|
||||||
|
$inputs[] = array('name' => $arg_parts[0], 'value' => $arg_parts[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return replace_macros(get_markup_template('confirm.tpl'), array(
|
||||||
|
'$method' => 'get',
|
||||||
|
'$message' => t('Do you really want to delete this item?'),
|
||||||
|
'$extra_inputs' => $inputs,
|
||||||
|
'$confirm' => t('Yes'),
|
||||||
|
'$confirm_url' => $query['base'],
|
||||||
|
'$confirm_name' => 'confirmed',
|
||||||
|
'$cancel' => t('Cancel'),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
// Now check how the user responded to the confirmation query
|
||||||
|
if($_REQUEST['canceled']) {
|
||||||
|
goaway($a->get_baseurl() . '/' . $_SESSION['return_url']);
|
||||||
|
}
|
||||||
|
|
||||||
logger('delete item: ' . $item['id'], LOGGER_DEBUG);
|
logger('delete item: ' . $item['id'], LOGGER_DEBUG);
|
||||||
// delete the item
|
// delete the item
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ function nav(&$a) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$ssl_state = ((local_user()) ? true : false);
|
|
||||||
|
|
||||||
if(!(x($a->page,'nav')))
|
if(!(x($a->page,'nav')))
|
||||||
$a->page['nav'] = '';
|
$a->page['nav'] = '';
|
||||||
|
|
||||||
|
@ -19,6 +17,35 @@ function nav(&$a) {
|
||||||
|
|
||||||
$a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
|
$a->page['nav'] .= '<div id="panel" style="display: none;"></div>' ;
|
||||||
|
|
||||||
|
$nav_info = nav_info($a);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the page
|
||||||
|
*/
|
||||||
|
|
||||||
|
$tpl = get_markup_template('nav.tpl');
|
||||||
|
|
||||||
|
$a->page['nav'] .= replace_macros($tpl, array(
|
||||||
|
'$baseurl' => $a->get_baseurl(),
|
||||||
|
'$langselector' => lang_selector(),
|
||||||
|
'$sitelocation' => $nav_info['sitelocation'],
|
||||||
|
'$nav' => $nav_info['nav'],
|
||||||
|
'$banner' => $nav_info['banner'],
|
||||||
|
'$emptynotifications' => t('Nothing new here'),
|
||||||
|
'$userinfo' => $nav_info['userinfo'],
|
||||||
|
'$sel' => $a->nav_sel,
|
||||||
|
'$apps' => $a->apps,
|
||||||
|
'$clear_notifs' => t('Clear notifications')
|
||||||
|
));
|
||||||
|
|
||||||
|
call_hooks('page_header', $a->page['nav']);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function nav_info(&$a) {
|
||||||
|
|
||||||
|
$ssl_state = ((local_user()) ? true : false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Our network is distributed, and as you visit friends some of the
|
* Our network is distributed, and as you visit friends some of the
|
||||||
|
@ -152,6 +179,9 @@ function nav(&$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$nav['navigation'] = array('navigation/', t('Navigation'), "", t('Site map'));
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Provide a banner/logo/whatever
|
* Provide a banner/logo/whatever
|
||||||
|
@ -164,23 +194,15 @@ function nav(&$a) {
|
||||||
$banner .= '<a href="http://friendica.com"><img id="logo-img" src="images/friendica-32.png" alt="logo" /></a><span id="logo-text"><a href="http://friendica.com">Friendica</a></span>';
|
$banner .= '<a href="http://friendica.com"><img id="logo-img" src="images/friendica-32.png" alt="logo" /></a><span id="logo-text"><a href="http://friendica.com">Friendica</a></span>';
|
||||||
|
|
||||||
|
|
||||||
$tpl = get_markup_template('nav.tpl');
|
return array(
|
||||||
|
'sitelocation' => $sitelocation,
|
||||||
$a->page['nav'] .= replace_macros($tpl, array(
|
'nav' => $nav,
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'banner' => $banner,
|
||||||
'$langselector' => lang_selector(),
|
'userinfo' => $userinfo,
|
||||||
'$sitelocation' => $sitelocation,
|
);
|
||||||
'$nav' => $nav,
|
|
||||||
'$banner' => $banner,
|
|
||||||
'$emptynotifications' => t('Nothing new here'),
|
|
||||||
'$userinfo' => $userinfo,
|
|
||||||
'$sel' => $a->nav_sel,
|
|
||||||
'$apps' => $a->apps,
|
|
||||||
));
|
|
||||||
|
|
||||||
call_hooks('page_header', $a->page['nav']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set a menu item in navbar as selected
|
* Set a menu item in navbar as selected
|
||||||
*
|
*
|
||||||
|
|
|
@ -164,6 +164,10 @@ function call_hooks($name, &$data = null) {
|
||||||
|
|
||||||
if((is_array($a->hooks)) && (array_key_exists($name,$a->hooks))) {
|
if((is_array($a->hooks)) && (array_key_exists($name,$a->hooks))) {
|
||||||
foreach($a->hooks[$name] as $hook) {
|
foreach($a->hooks[$name] as $hook) {
|
||||||
|
// Don't run a theme's hook if the user isn't using the theme
|
||||||
|
if(strpos($hook[0], 'view/theme/') !== false && strpos($hook[0], 'view/theme/'.current_theme()) === false)
|
||||||
|
continue;
|
||||||
|
|
||||||
@include_once($hook[0]);
|
@include_once($hook[0]);
|
||||||
if(function_exists($hook[1])) {
|
if(function_exists($hook[1])) {
|
||||||
$func = $hook[1];
|
$func = $hook[1];
|
||||||
|
@ -328,6 +332,42 @@ function get_theme_screenshot($theme) {
|
||||||
return($a->get_baseurl() . '/images/blank.png');
|
return($a->get_baseurl() . '/images/blank.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// install and uninstall theme
|
||||||
|
if (! function_exists('uninstall_theme')){
|
||||||
|
function uninstall_theme($theme){
|
||||||
|
logger("Addons: uninstalling theme " . $theme);
|
||||||
|
|
||||||
|
@include_once("view/theme/$theme/theme.php");
|
||||||
|
if(function_exists("{$theme}_uninstall")) {
|
||||||
|
$func = "{$theme}_uninstall";
|
||||||
|
$func();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
|
if (! function_exists('install_theme')){
|
||||||
|
function install_theme($theme) {
|
||||||
|
// silently fail if theme was removed
|
||||||
|
|
||||||
|
if(! file_exists("view/theme/$theme/theme.php"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
logger("Addons: installing theme $theme");
|
||||||
|
|
||||||
|
@include_once("view/theme/$theme/theme.php");
|
||||||
|
|
||||||
|
if(function_exists("{$theme}_install")) {
|
||||||
|
$func = "{$theme}_install";
|
||||||
|
$func();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
logger("Addons: FAILED installing theme $theme");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// check service_class restrictions. If there are no service_classes defined, everything is allowed.
|
// check service_class restrictions. If there are no service_classes defined, everything is allowed.
|
||||||
// if $usage is supplied, we check against a maximum count and return true if the current usage is
|
// if $usage is supplied, we check against a maximum count and return true if the current usage is
|
||||||
|
|
|
@ -41,7 +41,7 @@ function queue_run(&$argv, &$argc){
|
||||||
$interval = ((get_config('system','delivery_interval') === false) ? 2 : intval(get_config('system','delivery_interval')));
|
$interval = ((get_config('system','delivery_interval') === false) ? 2 : intval(get_config('system','delivery_interval')));
|
||||||
|
|
||||||
$r = q("select * from deliverq where 1");
|
$r = q("select * from deliverq where 1");
|
||||||
if(count($r)) {
|
if($r) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
logger('queue: deliverq');
|
logger('queue: deliverq');
|
||||||
proc_run('php','include/delivery.php',$rr['cmd'],$rr['item'],$rr['contact']);
|
proc_run('php','include/delivery.php',$rr['cmd'],$rr['item'],$rr['contact']);
|
||||||
|
@ -53,7 +53,7 @@ function queue_run(&$argv, &$argc){
|
||||||
$r = q("SELECT `queue`.*, `contact`.`name`, `contact`.`uid` FROM `queue`
|
$r = q("SELECT `queue`.*, `contact`.`name`, `contact`.`uid` FROM `queue`
|
||||||
LEFT JOIN `contact` ON `queue`.`cid` = `contact`.`id`
|
LEFT JOIN `contact` ON `queue`.`cid` = `contact`.`id`
|
||||||
WHERE `queue`.`created` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
|
WHERE `queue`.`created` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
|
||||||
if(count($r)) {
|
if($r) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
logger('Removing expired queue item for ' . $rr['name'] . ', uid=' . $rr['uid']);
|
logger('Removing expired queue item for ' . $rr['name'] . ', uid=' . $rr['uid']);
|
||||||
logger('Expired queue data :' . $rr['content'], LOGGER_DATA);
|
logger('Expired queue data :' . $rr['content'], LOGGER_DATA);
|
||||||
|
@ -73,7 +73,7 @@ function queue_run(&$argv, &$argc){
|
||||||
|
|
||||||
$r = q("SELECT `id` FROM `queue` WHERE (( `created` > UTC_TIMESTAMP() - INTERVAL 12 HOUR && `last` < UTC_TIMESTAMP() - INTERVAL 15 MINUTE ) OR ( `last` < UTC_TIMESTAMP() - INTERVAL 1 HOUR ))");
|
$r = q("SELECT `id` FROM `queue` WHERE (( `created` > UTC_TIMESTAMP() - INTERVAL 12 HOUR && `last` < UTC_TIMESTAMP() - INTERVAL 15 MINUTE ) OR ( `last` < UTC_TIMESTAMP() - INTERVAL 1 HOUR ))");
|
||||||
}
|
}
|
||||||
if(! count($r)){
|
if(! $r){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -266,8 +266,8 @@ function item_permissions_sql($owner_id,$remote_verified = false,$groups = null)
|
||||||
* Profile owner - everything is visible
|
* Profile owner - everything is visible
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(($local_user) && ($local_user == $owner_id)) {
|
if($local_user && ($local_user == $owner_id)) {
|
||||||
$sql = '';
|
$sql = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -300,7 +300,7 @@ function item_permissions_sql($owner_id,$remote_verified = false,$groups = null)
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = sprintf(
|
$sql = sprintf(
|
||||||
" AND ( private = 0 OR ( private = 1 AND wall = 1 AND ( allow_cid = '' OR allow_cid REGEXP '<%d>' )
|
/*" AND ( private = 0 OR ( private in (1,2) AND wall = 1 AND ( allow_cid = '' OR allow_cid REGEXP '<%d>' )
|
||||||
AND ( deny_cid = '' OR NOT deny_cid REGEXP '<%d>' )
|
AND ( deny_cid = '' OR NOT deny_cid REGEXP '<%d>' )
|
||||||
AND ( allow_gid = '' OR allow_gid REGEXP '%s' )
|
AND ( allow_gid = '' OR allow_gid REGEXP '%s' )
|
||||||
AND ( deny_gid = '' OR NOT deny_gid REGEXP '%s')))
|
AND ( deny_gid = '' OR NOT deny_gid REGEXP '%s')))
|
||||||
|
@ -309,6 +309,15 @@ function item_permissions_sql($owner_id,$remote_verified = false,$groups = null)
|
||||||
intval($remote_user),
|
intval($remote_user),
|
||||||
dbesc($gs),
|
dbesc($gs),
|
||||||
dbesc($gs)
|
dbesc($gs)
|
||||||
|
*/
|
||||||
|
" AND ( private = 0 OR ( private in (1,2) AND wall = 1
|
||||||
|
AND ( NOT (deny_cid REGEXP '<%d>' OR deny_gid REGEXP '%s')
|
||||||
|
AND ( allow_cid REGEXP '<%d>' OR allow_gid REGEXP '%s' OR ( allow_cid = '' AND allow_gid = '')))))
|
||||||
|
",
|
||||||
|
intval($remote_user),
|
||||||
|
dbesc($gs),
|
||||||
|
intval($remote_user),
|
||||||
|
dbesc($gs)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -259,15 +259,15 @@ class Template {
|
||||||
public function replace($s, $r) {
|
public function replace($s, $r) {
|
||||||
$this->r = $r;
|
$this->r = $r;
|
||||||
|
|
||||||
|
// remove comments block
|
||||||
|
$s = preg_replace('/{#(.*?\s*?)*?#}/', "", $s);
|
||||||
|
|
||||||
$s = $this->_build_nodes($s);
|
$s = $this->_build_nodes($s);
|
||||||
|
|
||||||
$s = preg_replace_callback('/\|\|([0-9]+)\|\|/', array($this, "_replcb_node"), $s);
|
$s = preg_replace_callback('/\|\|([0-9]+)\|\|/', array($this, "_replcb_node"), $s);
|
||||||
if ($s == Null)
|
if ($s == Null)
|
||||||
$this->_preg_error();
|
$this->_preg_error();
|
||||||
|
|
||||||
// remove comments block
|
|
||||||
$s = preg_replace('/{#[^#]*#}/', "", $s);
|
|
||||||
|
|
||||||
// replace strings recursively (limit to 10 loops)
|
// replace strings recursively (limit to 10 loops)
|
||||||
$os = "";
|
$os = "";
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
|
|
@ -174,10 +174,11 @@ function autoname($len) {
|
||||||
|
|
||||||
if(! function_exists('xmlify')) {
|
if(! function_exists('xmlify')) {
|
||||||
function xmlify($str) {
|
function xmlify($str) {
|
||||||
$buffer = '';
|
/* $buffer = '';
|
||||||
|
|
||||||
for($x = 0; $x < mb_strlen($str); $x ++) {
|
$len = mb_strlen($str);
|
||||||
$char = $str[$x];
|
for($x = 0; $x < $len; $x ++) {
|
||||||
|
$char = mb_substr($str,$x,1);
|
||||||
|
|
||||||
switch( $char ) {
|
switch( $char ) {
|
||||||
|
|
||||||
|
@ -205,7 +206,14 @@ function xmlify($str) {
|
||||||
$buffer .= $char;
|
$buffer .= $char;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
$buffer = mb_ereg_replace("&", "&", $str);
|
||||||
|
$buffer = mb_ereg_replace("'", "'", $buffer);
|
||||||
|
$buffer = mb_ereg_replace("\"", """, $buffer);
|
||||||
|
$buffer = mb_ereg_replace("<", "<", $buffer);
|
||||||
|
$buffer = mb_ereg_replace(">", ">", $buffer);
|
||||||
|
|
||||||
$buffer = trim($buffer);
|
$buffer = trim($buffer);
|
||||||
return($buffer);
|
return($buffer);
|
||||||
}}
|
}}
|
||||||
|
@ -215,8 +223,13 @@ function xmlify($str) {
|
||||||
|
|
||||||
if(! function_exists('unxmlify')) {
|
if(! function_exists('unxmlify')) {
|
||||||
function unxmlify($s) {
|
function unxmlify($s) {
|
||||||
$ret = str_replace('&','&', $s);
|
// $ret = str_replace('&','&', $s);
|
||||||
$ret = str_replace(array('<','>','"','''),array('<','>','"',"'"),$ret);
|
// $ret = str_replace(array('<','>','"','''),array('<','>','"',"'"),$ret);
|
||||||
|
$ret = mb_ereg_replace('&', '&', $s);
|
||||||
|
$ret = mb_ereg_replace(''', "'", $ret);
|
||||||
|
$ret = mb_ereg_replace('"', '"', $ret);
|
||||||
|
$ret = mb_ereg_replace('<', "<", $ret);
|
||||||
|
$ret = mb_ereg_replace('>', ">", $ret);
|
||||||
return $ret;
|
return $ret;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -1083,7 +1096,18 @@ function prepare_body($item,$attach = false) {
|
||||||
$cnt = preg_match_all('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"|',$r,$matches, PREG_SET_ORDER);
|
$cnt = preg_match_all('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"|',$r,$matches, PREG_SET_ORDER);
|
||||||
if($cnt) {
|
if($cnt) {
|
||||||
foreach($matches as $mtch) {
|
foreach($matches as $mtch) {
|
||||||
$icontype = strtolower(substr($mtch[3],0,strpos($mtch[3],'/')));
|
$filetype = strtolower(substr( $mtch[3], 0, strpos($mtch[3],'/') ));
|
||||||
|
if($filetype) {
|
||||||
|
$filesubtype = strtolower(substr( $mtch[3], strpos($mtch[3],'/') + 1 ));
|
||||||
|
$filesubtype = str_replace('.', '-', $filesubtype);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$filetype = 'unkn';
|
||||||
|
$filesubtype = 'unkn';
|
||||||
|
}
|
||||||
|
|
||||||
|
$icon = '<div class="attachtype icon s22 type-' . $filetype . ' subtype-' . $filesubtype . '"></div>';
|
||||||
|
/*$icontype = strtolower(substr($mtch[3],0,strpos($mtch[3],'/')));
|
||||||
switch($icontype) {
|
switch($icontype) {
|
||||||
case 'video':
|
case 'video':
|
||||||
case 'audio':
|
case 'audio':
|
||||||
|
@ -1094,7 +1118,8 @@ function prepare_body($item,$attach = false) {
|
||||||
default:
|
default:
|
||||||
$icon = '<div class="attachtype icon s22 type-unkn"></div>';
|
$icon = '<div class="attachtype icon s22 type-unkn"></div>';
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
$title = ((strlen(trim($mtch[4]))) ? escape_tags(trim($mtch[4])) : escape_tags($mtch[1]));
|
$title = ((strlen(trim($mtch[4]))) ? escape_tags(trim($mtch[4])) : escape_tags($mtch[1]));
|
||||||
$title .= ' ' . $mtch[2] . ' ' . t('bytes');
|
$title .= ' ' . $mtch[2] . ' ' . t('bytes');
|
||||||
if((local_user() == $item['uid']) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN))
|
if((local_user() == $item['uid']) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN))
|
||||||
|
|
|
@ -58,9 +58,9 @@ if(!$install) {
|
||||||
require_once("include/session.php");
|
require_once("include/session.php");
|
||||||
load_hooks();
|
load_hooks();
|
||||||
call_hooks('init_1');
|
call_hooks('init_1');
|
||||||
}
|
|
||||||
|
|
||||||
$maintenance = get_config('system', 'maintenance');
|
$maintenance = get_config('system', 'maintenance');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -141,7 +141,8 @@ if($install)
|
||||||
elseif($maintenance)
|
elseif($maintenance)
|
||||||
$a->module = 'maintenance';
|
$a->module = 'maintenance';
|
||||||
else {
|
else {
|
||||||
proc_run('php', 'include/dbupdate.php');
|
check_url($a);
|
||||||
|
check_db();
|
||||||
check_plugins($a);
|
check_plugins($a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
js/ajaxupload.min.js
vendored
13
js/country.min.js
vendored
6
js/fk.autocomplete.min.js
vendored
|
@ -1,5 +1 @@
|
||||||
/**
|
function ACPopup(elm,backend_url){this.idsel=-1;this.element=elm;this.searchText="";this.ready=true;this.kp_timer=false;this.url=backend_url;var w=530;var h=130;if(typeof elm.editorId=="undefined"){style=$(elm).offset();w=$(elm).width();h=$(elm).height()}else{var container=elm.getContainer();if(typeof container!="undefined"){style=$(container).offset();w=$(container).width();h=$(container).height()}}style.top=style.top+h;style.width=w;style.position="absolute";style.display="none";this.cont=$("<div class='acpopup'></div>");this.cont.css(style);$("body").append(this.cont)}ACPopup.prototype.close=function(){$(this.cont).remove();this.ready=false};ACPopup.prototype.search=function(text){var that=this;this.searchText=text;if(this.kp_timer)clearTimeout(this.kp_timer);this.kp_timer=setTimeout(function(){that._search()},500)};ACPopup.prototype._search=function(){console.log("_search");var that=this;var postdata={start:0,count:100,search:this.searchText,type:"c"};$.ajax({type:"POST",url:this.url,data:postdata,dataType:"json",success:function(data){that.cont.html("");if(data.tot>0){that.cont.show();$(data.items).each(function(){html="<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo,this.name,this.nick);that.add(html,this.nick.replace(" ","")+"+"+this.id+" - "+this.link)})}else{that.cont.hide()}}})};ACPopup.prototype.add=function(label,value){var that=this;var elm=$("<div class='acpopupitem' title='"+value+"'>"+label+"</div>");elm.click(function(e){t=$(this).attr("title").replace(new RegExp(" - .*"),"");if(typeof that.element.container==="undefined"){el=$(that.element);sel=el.getSelection();sel.start=sel.start-that.searchText.length;el.setSelection(sel.start,sel.end).replaceSelectedText(t+" ").collapseSelection(false);that.close()}else{txt=tinyMCE.activeEditor.getContent();newtxt=txt.replace("@"+that.searchText,"@"+t+" ");tinyMCE.activeEditor.setContent(newtxt);tinyMCE.activeEditor.focus();that.close()}});$(this.cont).append(elm)};ACPopup.prototype.onkey=function(event){if(event.keyCode=="13"){if(this.idsel>-1){this.cont.children()[this.idsel].click();event.preventDefault()}else this.close()}if(event.keyCode=="38"){cmax=this.cont.children().size()-1;this.idsel--;if(this.idsel<0)this.idsel=cmax;event.preventDefault()}if(event.keyCode=="40"||event.keyCode=="9"){cmax=this.cont.children().size()-1;this.idsel++;if(this.idsel>cmax)this.idsel=0;event.preventDefault()}if(event.keyCode=="38"||event.keyCode=="40"||event.keyCode=="9"){this.cont.children().removeClass("selected");$(this.cont.children()[this.idsel]).addClass("selected")}if(event.keyCode=="27"){this.close()}};function ContactAutocomplete(element,backend_url){this.pattern=/@([^ \n]+)$/;this.popup=null;var that=this;$(element).unbind("keydown");$(element).unbind("keyup");$(element).keydown(function(event){if(that.popup!==null)that.popup.onkey(event)});$(element).keyup(function(event){cpos=$(this).getSelection();if(cpos.start==cpos.end){match=$(this).val().substring(0,cpos.start).match(that.pattern);if(match!==null){if(that.popup===null){that.popup=new ACPopup(this,backend_url)}if(that.popup.ready&&match[1]!==that.popup.searchText)that.popup.search(match[1]);if(!that.popup.ready)that.popup=null}else{if(that.popup!==null){that.popup.close();that.popup=null}}}})}(function($){$.fn.contact_autocomplete=function(backend_url){this.each(function(){new ContactAutocomplete(this,backend_url)})}})(jQuery);
|
||||||
* Friendica people autocomplete
|
|
||||||
*
|
|
||||||
* require jQuery, jquery.textareas
|
|
||||||
*/function ACPopup(e,t){this.idsel=-1,this.element=e,this.searchText="",this.ready=!0,this.kp_timer=!1,this.url=t;var n=530,r=130;if(typeof e.editorId=="undefined")style=$(e).offset(),n=$(e).width(),r=$(e).height();else{var i=e.getContainer();typeof i!="undefined"&&(style=$(i).offset(),n=$(i).width(),r=$(i).height())}style.top=style.top+r,style.width=n,style.position="absolute",style.display="none",this.cont=$("<div class='acpopup'></div>"),this.cont.css(style),$("body").append(this.cont)}function ContactAutocomplete(e,t){this.pattern=/@([^ \n]+)$/,this.popup=null;var n=this;$(e).unbind("keydown"),$(e).unbind("keyup"),$(e).keydown(function(e){n.popup!==null&&n.popup.onkey(e)}),$(e).keyup(function(e){cpos=$(this).getSelection(),cpos.start==cpos.end&&(match=$(this).val().substring(0,cpos.start).match(n.pattern),match!==null?(n.popup===null&&(n.popup=new ACPopup(this,t)),n.popup.ready&&match[1]!==n.popup.searchText&&n.popup.search(match[1]),n.popup.ready||(n.popup=null)):n.popup!==null&&(n.popup.close(),n.popup=null))})}ACPopup.prototype.close=function(){$(this.cont).remove(),this.ready=!1},ACPopup.prototype.search=function(e){var t=this;this.searchText=e,this.kp_timer&&clearTimeout(this.kp_timer),this.kp_timer=setTimeout(function(){t._search()},500)},ACPopup.prototype._search=function(){console.log("_search");var e=this,t={start:0,count:100,search:this.searchText,type:"c"};$.ajax({type:"POST",url:this.url,data:t,dataType:"json",success:function(t){e.cont.html(""),t.tot>0?(e.cont.show(),$(t.items).each(function(){html="<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo,this.name,this.nick),e.add(html,this.nick.replace(" ","")+"+"+this.id+" - "+this.link)})):e.cont.hide()}})},ACPopup.prototype.add=function(e,n){var r=this,i=$("<div class='acpopupitem' title='"+n+"'>"+e+"</div>");i.click(function(e){t=$(this).attr("title").replace(new RegExp(" - .*"),""),typeof r.element.container=="undefined"?(el=$(r.element),sel=el.getSelection(),sel.start=sel.start-r.searchText.length,el.setSelection(sel.start,sel.end).replaceSelectedText(t+" ").collapseSelection(!1),r.close()):(txt=tinyMCE.activeEditor.getContent(),newtxt=txt.replace(r.searchText,t+" "),tinyMCE.activeEditor.setContent(newtxt),tinyMCE.activeEditor.focus(),r.close())}),$(this.cont).append(i)},ACPopup.prototype.onkey=function(e){e.keyCode=="13"&&(this.idsel>-1?(this.cont.children()[this.idsel].click(),e.preventDefault()):this.close()),e.keyCode=="38"&&(cmax=this.cont.children().size()-1,this.idsel--,this.idsel<0&&(this.idsel=cmax),e.preventDefault());if(e.keyCode=="40"||e.keyCode=="9")cmax=this.cont.children().size()-1,this.idsel++,this.idsel>cmax&&(this.idsel=0),e.preventDefault();if(e.keyCode=="38"||e.keyCode=="40"||e.keyCode=="9")this.cont.children().removeClass("selected"),$(this.cont.children()[this.idsel]).addClass("selected");e.keyCode=="27"&&this.close()},function(e){e.fn.contact_autocomplete=function(e){this.each(function(){new ContactAutocomplete(this,e)})}}(jQuery);
|
|
7
js/jquery.htmlstream.min.js
vendored
|
@ -1,6 +1 @@
|
||||||
/* jQuery ajax stream plugin
|
(function($){var ajax_old=$.ajax;var get_old=$.get;var post_old=$.post;var active=true;$.ajaxSetup({stream:false,pollInterval:500});$.enableAjaxStream=function(enable){if(typeof enable=="undefined")enable=!active;if(!enable){$.ajax=ajax_old;$.get=get_old;$.post=post_old;active=false}else{$.ajax=ajax_stream;$.get=ajax_get_stream;$.post=ajax_post_stream;active=true}};var ajax_stream=$.ajax=function(options){options=jQuery.extend(true,options,jQuery.extend(true,{},jQuery.ajaxSettings,options));if(options.stream){var timer=0;var offset=0;var xmlhttp=null;var lastlen=0;var done=false;var hook=function(xhr){xmlhttp=xhr;checkagain()};var fix=function(){check("stream")};var checkagain=function(){if(!done)timer=setTimeout(fix,options.pollInterval)};var check=function(status){if(typeof status=="undefined")status="stream";if(xmlhttp.status<3)return;var text=xmlhttp.responseText;if(status=="stream"){if(text.length<=lastlen){checkagain();return}lastlength=text.length;if(offset==text.length){checkagain();return}}var pkt=text.substr(offset);offset=text.length;if($.isFunction(options.OnDataRecieved)){options.OnDataRecieved(pkt,status,xmlhttp.responseText,xmlhttp)}if(xmlhttp.status!=4)checkagain()};var complete=function(xhr,s){clearTimeout(timer);done=true;check(s)};if($.isFunction(options.success)){var oc=options.success;options.success=function(xhr,s){complete(xhr,s);oc(xhr,s)}}else options.success=complete;if($.isFunction(options.beforeSend)){var obs=options.beforeSend;options.beforeSend=function(xhr){obs(xhr);hook(xhr)}}else options.beforeSend=hook}ajax_old(options)};var ajax_get_stream=$.get=function(url,data,callback,type,stream){if($.isFunction(data)){var orgcb=callback;callback=data;if($.isFunction(orgcb)){stream=orgcb}data=null}if($.isFunction(type)){stream=type;type=undefined}var dostream=$.isFunction(stream);return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type,stream:dostream,OnDataRecieved:stream})};var ajax_post_stream=$.post=function(url,data,callback,type,stream){if($.isFunction(data)){var orgcb=callback;callback=data}if($.isFunction(type)){stream=type;type=undefined}var dostream=$.isFunction(stream);return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type,stream:dostream,OnDataRecieved:stream})}})(jQuery);
|
||||||
* Version 0.1
|
|
||||||
* Copyright (C) 2009 Chris Tarquini
|
|
||||||
* Licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/)
|
|
||||||
* Permissions beyond the scope of this license may be available by contacting petros000[at]hotmail.com.
|
|
||||||
*/(function(e){var t=e.ajax,n=e.get,r=e.post,i=!0;e.ajaxSetup({stream:!1,pollInterval:500}),e.enableAjaxStream=function(a){typeof a=="undefined"&&(a=!i),a?(e.ajax=s,e.get=o,e.post=u,i=!0):(e.ajax=t,e.get=n,e.post=r,i=!1)};var s=e.ajax=function(n){n=jQuery.extend(!0,n,jQuery.extend(!0,{},jQuery.ajaxSettings,n));if(n.stream){var r=0,i=0,s=null,o=0,u=!1,a=function(e){s=e,l()},f=function(){c("stream")},l=function(){u||(r=setTimeout(f,n.pollInterval))},c=function(t){typeof t=="undefined"&&(t="stream");if(s.status<3)return;var r=s.responseText;if(t=="stream"){if(r.length<=o){l();return}lastlength=r.length;if(i==r.length){l();return}}var u=r.substr(i);i=r.length,e.isFunction(n.OnDataRecieved)&&n.OnDataRecieved(u,t,s.responseText,s),s.status!=4&&l()},h=function(e,t){clearTimeout(r),u=!0,c(t)};if(e.isFunction(n.success)){var p=n.success;n.success=function(e,t){h(e,t),p(e,t)}}else n.success=h;if(e.isFunction(n.beforeSend)){var d=n.beforeSend;n.beforeSend=function(e){d(e),a(e)}}else n.beforeSend=a}t(n)},o=e.get=function(t,n,r,i,s){if(e.isFunction(n)){var o=r;r=n,e.isFunction(o)&&(s=o),n=null}e.isFunction(i)&&(s=i,i=undefined);var u=e.isFunction(s);return jQuery.ajax({type:"GET",url:t,data:n,success:r,dataType:i,stream:u,OnDataRecieved:s})},u=e.post=function(t,n,r,i,s){if(e.isFunction(n)){var o=r;r=n}e.isFunction(i)&&(s=i,i=undefined);var u=e.isFunction(s);return jQuery.ajax({type:"POST",url:t,data:n,success:r,dataType:i,stream:u,OnDataRecieved:s})}})(jQuery);
|
|
12
js/main.js
|
@ -103,9 +103,13 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// fancyboxes
|
// fancyboxes
|
||||||
$("a.popupbox").fancybox({
|
/*$("a.popupbox").fancybox({
|
||||||
'transitionIn' : 'elastic',
|
'transitionIn' : 'elastic',
|
||||||
'transitionOut' : 'elastic'
|
'transitionOut' : 'elastic'
|
||||||
|
});*/
|
||||||
|
$("a.popupbox").colorbox({
|
||||||
|
'inline' : true,
|
||||||
|
'transition' : 'elastic'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -670,9 +674,9 @@ function setupFieldRichtext(){
|
||||||
entity_encoding : "raw",
|
entity_encoding : "raw",
|
||||||
add_unload_trigger : false,
|
add_unload_trigger : false,
|
||||||
remove_linebreaks : false,
|
remove_linebreaks : false,
|
||||||
force_p_newlines : false,
|
//force_p_newlines : false,
|
||||||
force_br_newlines : true,
|
//force_br_newlines : true,
|
||||||
forced_root_block : '',
|
forced_root_block : 'div',
|
||||||
convert_urls: false,
|
convert_urls: false,
|
||||||
content_css: baseurl+"/view/custom_tinymce.css",
|
content_css: baseurl+"/view/custom_tinymce.css",
|
||||||
theme_advanced_path : false,
|
theme_advanced_path : false,
|
||||||
|
|
2
js/main.min.js
vendored
7
js/webtoolkit.base64.min.js
vendored
|
@ -1,6 +1 @@
|
||||||
/**
|
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=(chr1&3)<<4|chr2>>4;enc3=(chr2&15)<<2|chr3>>6;enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64}else if(isNaN(chr3)){enc4=64}output=output+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4)}return output},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2)}if(enc4!=64){output=output+String.fromCharCode(chr3)}}output=Base64._utf8_decode(output);return output},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c)}else if(c>127&&c<2048){utftext+=String.fromCharCode(c>>6|192);utftext+=String.fromCharCode(c&63|128)}else{utftext+=String.fromCharCode(c>>12|224);utftext+=String.fromCharCode(c>>6&63|128);utftext+=String.fromCharCode(c&63|128)}}return utftext},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++}else if(c>191&&c<224){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode((c&31)<<6|c2&63);i+=2}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode((c&15)<<12|(c2&63)<<6|c3&63);i+=3}}return string}};
|
||||||
*
|
|
||||||
* Base64 encode / decode
|
|
||||||
* http://www.webtoolkit.info/
|
|
||||||
*
|
|
||||||
**/var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="",n,r,i,s,o,u,a,f=0;e=Base64._utf8_encode(e);while(f<e.length)n=e.charCodeAt(f++),r=e.charCodeAt(f++),i=e.charCodeAt(f++),s=n>>2,o=(n&3)<<4|r>>4,u=(r&15)<<2|i>>6,a=i&63,isNaN(r)?u=a=64:isNaN(i)&&(a=64),t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a);return t},decode:function(e){var t="",n,r,i,s,o,u,a,f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length)s=this._keyStr.indexOf(e.charAt(f++)),o=this._keyStr.indexOf(e.charAt(f++)),u=this._keyStr.indexOf(e.charAt(f++)),a=this._keyStr.indexOf(e.charAt(f++)),n=s<<2|o>>4,r=(o&15)<<4|u>>2,i=(u&3)<<6|a,t+=String.fromCharCode(n),u!=64&&(t+=String.fromCharCode(r)),a!=64&&(t+=String.fromCharCode(i));return t=Base64._utf8_decode(t),t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t},_utf8_decode:function(e){var t="",n=0,r=c1=c2=0;while(n<e.length)r=e.charCodeAt(n),r<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((r&31)<<6|c2&63),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63),n+=3);return t}};
|
|
376
library/colorbox/README.md
Normal file
|
@ -0,0 +1,376 @@
|
||||||
|
## About ColorBox:
|
||||||
|
A customizable lightbox plugin for jQuery. See the [project page](http://jacklmoore.com/colorbox/) for documentation and a demonstration, and the [FAQ](http://jacklmoore.com/colorbox/faq/) for solutions and examples to common issues. Released under the [MIT license](http://www.opensource.org/licenses/mit-license.php).
|
||||||
|
|
||||||
|
## Translations Welcome
|
||||||
|
Send me your language configuration files. See /i18n/jquery.colorbox-de.js as an example.
|
||||||
|
|
||||||
|
## Changelog:
|
||||||
|
|
||||||
|
### Version 1.3.32 - 2013/1/31
|
||||||
|
|
||||||
|
* Improved internal event subscribing & fixed event bug introduced in v1.3.21
|
||||||
|
|
||||||
|
### Version 1.3.31 - 2013/1/28
|
||||||
|
|
||||||
|
* Fixed a size-calculation bug introduced in the previous commit.
|
||||||
|
|
||||||
|
### Version 1.3.30 - 2013/1/25
|
||||||
|
|
||||||
|
* Delayed border-width calculations until after opening, to avoid a bug in FF when using ColorBox in a hidden iframe.
|
||||||
|
|
||||||
|
### Version 1.3.29 - 2013/1/24
|
||||||
|
|
||||||
|
* Fixes bug with bubbling delegated events, introduced in the previous commit.
|
||||||
|
|
||||||
|
### Version 1.3.28 - 2013/1/24
|
||||||
|
|
||||||
|
* Fixed compatibility issue with old versions of jQuery (1.3.2-1.4.2)
|
||||||
|
|
||||||
|
### Version 1.3.27 - 2013/1/23
|
||||||
|
|
||||||
|
* Added className property.
|
||||||
|
|
||||||
|
### Version 1.3.26 - 2013/1/23
|
||||||
|
|
||||||
|
* Minor bugfix: clear the onload event handler after photo has loaded.
|
||||||
|
|
||||||
|
### Version 1.3.25 - 2013/1/23
|
||||||
|
|
||||||
|
* Removed grunt file & added Bower component.json.
|
||||||
|
|
||||||
|
### Version 1.3.24 - 2013/1/22
|
||||||
|
|
||||||
|
* Added generated files (jquery.colorbox.js / jquery.colorbox-min.js) back to the repository.
|
||||||
|
|
||||||
|
### Version 1.3.23 - 2013/1/18
|
||||||
|
|
||||||
|
* Minor bugfix for calling ColorBox on empty jQuery collections without a selector.
|
||||||
|
|
||||||
|
### Version 1.3.22 - 2013/1/17
|
||||||
|
|
||||||
|
* Recommit for plugins.jquery.com
|
||||||
|
|
||||||
|
### Version 1.3.21 - 2013/1/15
|
||||||
|
Files Changed: *.js
|
||||||
|
|
||||||
|
* Fixed compatability issues with jQuery 1.9
|
||||||
|
|
||||||
|
### Version 1.3.20 - August 15 2012
|
||||||
|
Files Changed:jquery.colorbox.js
|
||||||
|
|
||||||
|
* Added temporary workaround for jQuery-UI 1.8 bug (http://bugs.jquery.com/ticket/12273)
|
||||||
|
* Added *.jpe extension to the list of image types.
|
||||||
|
|
||||||
|
### Version 1.3.19 - December 08 2011
|
||||||
|
Files Changed:jquery.colorbox.js, colorbox.css (all)
|
||||||
|
|
||||||
|
* Fixed bug related to using the 'fixed' property.
|
||||||
|
* Optimized the setup procedure to be more efficient.
|
||||||
|
* Removed $.colorbox.init() as it will no longer be needed (will self-init when called).
|
||||||
|
* Removed use of $.browser.
|
||||||
|
|
||||||
|
### Version 1.3.18 - October 07 2011
|
||||||
|
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 1's controls.png
|
||||||
|
|
||||||
|
* Fixed a regression where Flash content displayed in ColorBox would be reloaded if the browser window was resized.
|
||||||
|
* Added safety check to make sure that ColorBox's markup is only added to the DOM a single time, even if $.colorbox.init() is called multiple times. This will allow site owners to manually initialize ColorBox if they need it before the DOM has finished loading.
|
||||||
|
* Updated the example index.html files to be HTML5 compliant.
|
||||||
|
* Changed the slideshow behavior so that it immediately moves to the next slide when the slideshow is started.
|
||||||
|
* Minor regex bugfix to allow automatic detection of image URLs that include fragments.
|
||||||
|
|
||||||
|
### Version 1.3.17 - May 11 2011
|
||||||
|
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Added properties "top", "bottom", "left" and "right" to specify a position relative to the viewport, rather than using the default centering.
|
||||||
|
* Added property "data" to specify GET or POST data when using Ajax. ColorBox's ajax functionality is handled by jQuery's .load() method, so the data property works the same way as it does with .load().
|
||||||
|
* Added property "fixed" which can provide fixed positioning for ColorBox, rather than absolute positioning. This will allow ColorBox to remain in a fixed position within the visitors viewport, despite scrolling. IE6 support for this was not added, it will continue to use the default absolute positioning.
|
||||||
|
* Fixed ClearType problem with IE7.
|
||||||
|
* Minor fixes.
|
||||||
|
|
||||||
|
### Version 1.3.16 - March 01 2011
|
||||||
|
Files Changed:jquery.colorbox.js/jquery.colorbox-min.js, colorbox.css (all) and example 4 background png files
|
||||||
|
|
||||||
|
* Better IE related transparency workarounds. IE7 and up now uses the same background image sprite as other browsers.
|
||||||
|
* Added error handling for broken image links. A message will be displayed telling the user that the image could not be loaded.
|
||||||
|
* Added new property: 'fastIframe' and set it to true by default. Setting to fastIframe:false will delay the loading graphic removal and onComplete event until iframe has completely loaded.
|
||||||
|
* Ability to redefine $.colorbox.close (or prev, or next) at any time.
|
||||||
|
|
||||||
|
### Version 1.3.15 - October 27 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Minor fixes for specific cases.
|
||||||
|
|
||||||
|
### Version 1.3.14 - October 27 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* In IE6, closing an iframe when using HTTPS no longer generates a security warning.
|
||||||
|
|
||||||
|
### Version 1.3.13 - October 22 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Changed the index.html example files to use YouTube's new embedded link format.
|
||||||
|
* By default, ColorBox returns focus to the element it was launched from once it closes. This can now be disabled by setting the 'returnFocus' property to false. Focus was causing problems for some users who had their anchor elements inside animated containers.
|
||||||
|
* Minor bug fix involved in using a combination of slideshow and non-slideshow content.
|
||||||
|
|
||||||
|
### Version 1.3.12 - October 20 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Minor bug fix involved in preloading images when using a function as a value for the href property.
|
||||||
|
|
||||||
|
### Version 1.3.11 - October 19 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed the slideshow functionality that broke with 1.3.10
|
||||||
|
* The slideshow now respects the loop property.
|
||||||
|
|
||||||
|
### Version 1.3.10 - October 16 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed compatibility with jQuery 1.4.3
|
||||||
|
* The 'open' property now accepts a function as a value, like all of the other properties.
|
||||||
|
* Preloading now loads the correct href for images when using a dynamic (function) value for the href property.
|
||||||
|
* Fixed bug in Safari 3 for Win where ColorBox centered on the document, rather than the visitor's viewport.
|
||||||
|
* May have fixed an issue in Opera 10.6+ where ColorBox would rarely/randomly freeze up while switching between photos in a group.
|
||||||
|
* Some functionality better encapsulated & minor performance improvements.
|
||||||
|
|
||||||
|
### Version 1.3.9 - July 7 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/ all colorbox.css (the core styles)
|
||||||
|
|
||||||
|
* Fixed a problem where iframed youtube videos would cause a security alert in IE.
|
||||||
|
* More code is event driven now, making the source easier to grasp.
|
||||||
|
* Removed some unnecessary style from the core CSS.
|
||||||
|
|
||||||
|
### Version 1.3.8 - June 21 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed a bug in Chrome where it would sometimes render photos at 0 by 0 width and height (behavior introduced in recent update to Chrome).
|
||||||
|
* Fixed a bug where the onClosed callback would fire twice (only affected 1.3.7).
|
||||||
|
* Fixed a bug in IE7 that existed with some iframed websites that use JS to reposition the viewport caused ColorBox to move out of position.
|
||||||
|
* Abstracted the identifiers (HTML ids & classes, and JS plugin name, method, and events) so that the plugin can be easily rebranded.
|
||||||
|
* Small changes to improve either code readability or compression.
|
||||||
|
|
||||||
|
### Version 1.3.7 - June 13 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/index.html
|
||||||
|
|
||||||
|
* $.colorbox can now be used for direct calls and accessing public methods. Example: $.colorbox.close();
|
||||||
|
* Resize now accepts 'width', 'innerWidth', 'height' and 'innerHeight'. Example: $.colorbox.resize({width:"100%"})
|
||||||
|
* Added option (loop:false) to disable looping in a group.
|
||||||
|
* Added options (escKey:false, arrowKey:false) to disable esc-key and arrow-key bindings.
|
||||||
|
* Added method for removing ColorBox from a document: $.colorbox.remove();
|
||||||
|
* Fixed a bug where iframed URLs would be truncated if they contained an unencoded apostrophe.
|
||||||
|
* Now uses the exact href specified on an anchor, rather than the version returned by 'this.href'. This was causing "#example" to be normalized to "http://domain/#example" which interfered with how some users were setting up links to inline content.
|
||||||
|
* Changed example documents over to HTML5.
|
||||||
|
|
||||||
|
### Version 1.3.6 - Jan 13 2010
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Small change to make ColorBox compatible with jQuery 1.4
|
||||||
|
|
||||||
|
### Version 1.3.5 - December 15 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed a bug introduced in 1.3.4 with IE7's display of example 2 and 3, and auto-width in Opera.
|
||||||
|
* Fixed a bug introduced in 1.3.4 where colorbox could not be launched by triggering an element's click event through JavaScript.
|
||||||
|
* Minor refinements.
|
||||||
|
|
||||||
|
### Version 1.3.4 - December 5 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Event delegation is now used for elements that ColorBox is assigned to, rather than individual click events.
|
||||||
|
* Additional callbacks have been added to represent other stages of ColorBox's lifecycle. Available callbacks, in order of their execution: onOpen, onLoad, onComplete, onCleanup, onClosed These take place at the same time as the event hooks, but will be better suited than the hooks for targeting specific instances of ColorBox.
|
||||||
|
* Ajax content is now immediately added to the DOM to be more compatible if that content contains script tags.
|
||||||
|
* Focus is now returned to the calling element on closing.
|
||||||
|
* Fixed a bug where maxHeight and maxWidth did not work for non-photo content.
|
||||||
|
* Direct calls no longer need 'open:true', it is assumed. Example: `$.fn.colorbox({html:'<p>Hi</p>'});`
|
||||||
|
|
||||||
|
### Version 1.3.3 - November 7 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Changed $.fn.colorbox.element() to return a jQuery object rather the DOM element.
|
||||||
|
* jQuery.colorbox-min.js is compressed with Google's Closure Compiler rather than YUI Compressor.
|
||||||
|
|
||||||
|
### Version 1.3.2 - October 27 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Added 'innerWidth' and 'innerHeight' options to allow people to easily set the size dimensions for ColorBox, without having to anticipate the size of the borders and buttons.
|
||||||
|
* Renamed 'scrollbars' option to 'scrolling' to be in keeping with the existing HTML attribute. The option now also applies to iframes.
|
||||||
|
* Bug fix: In Safari, positioning occassionally incorrect when using '100%' dimensions.
|
||||||
|
* Bug fix: In IE6, the background overlay is briefly not full size when first viewing.
|
||||||
|
* Bug fix: In Firefox, opening ColorBox causes a split second shift with a small minority of webpage layouts.
|
||||||
|
* Simplified code in a few areas.
|
||||||
|
|
||||||
|
### Version 1.3.1 - September 16 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css/colorbox-ie.css(removed)
|
||||||
|
|
||||||
|
* Removed the IE-only stylesheets and conditional comments for example styles 1 & 4. All CSS is handled by a single CSS file for all examples.
|
||||||
|
* Removed user-agent sniffing from the js and replaced it with feature detection. This will allow correct rendering for visitors masking their agent type.
|
||||||
|
|
||||||
|
### Version 1.3.0 - September 15 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js/colorbox.css
|
||||||
|
|
||||||
|
* Added $.fn.colorbox.resize() method to allow ColorBox to resize it's height if it's contents change.
|
||||||
|
* Added 'scrollbars' option to allow users to turn off scrollbars when using the resize() method.
|
||||||
|
* Renamed the 'resize' option to be less ambiguous. It's now 'scalePhotos'.
|
||||||
|
* Renamed the 'cbox_close' event to be less ambiguous. It's now 'cbox_cleanup'. It is the first thing to happen in the close method while the 'cbox_closed' event is the last to happen.
|
||||||
|
* Fixed a bug with the slideshow mouseover graphics that appeared after ColorBox is opened a 2nd time.
|
||||||
|
* Fixed a bug where ClearType may not work in IE6&7 if using the fade transition.
|
||||||
|
* Minor code optimizations to increase compression.
|
||||||
|
|
||||||
|
### Version 1.2.9 - August 7 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Minor change to enable use with $.getScript();
|
||||||
|
* Minor change to the timing of the 'cbox_load' event so that it is more useful.
|
||||||
|
* Added a direct link to a YouTube video to the examples.
|
||||||
|
|
||||||
|
### Version 1.2.8 - August 5 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed a bug with the overlay in IE6
|
||||||
|
* Fixed a bug where left & right keypress events might be prematurely unbound.
|
||||||
|
|
||||||
|
### Version 1.2.7 - July 31 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js, example stylesheets and background images (core styles have not changed and the updates will not affect existing user themes / old example themes)
|
||||||
|
|
||||||
|
* Code cleanup and reduction, better organization and documentation in the full source.
|
||||||
|
* Added ability to use functions in place of static values for ColorBox's options (thanks Ken!).
|
||||||
|
* Added an option for straight HTML. Example: `$.fn.colorbox({html:'<p>Howdy</p>', open:true})`
|
||||||
|
* Added an event for the beginning of the closing process. This is in addition to the event that already existed for when ColorBox had completely closed. 'cbox_close' and 'cbox_closed' respectively.
|
||||||
|
* Fixed a minor bug in IE6 that would cause a brief content shift in the parent document when opening ColorBox.
|
||||||
|
* Fixed a minor bug in IE6 that would reveal select elements that had a hidden visibility after closing ColorBox.
|
||||||
|
* The 'esc' key is unbound now when ColorBox is not open, to avoid any potential conflicts.
|
||||||
|
* Used background sprites for examples 1 & 4. Put IE-only (non-sprite) background images in a separate folder.
|
||||||
|
* Example themes 1, 3, & 4 received slight visual tweaks.
|
||||||
|
* Optimized pngs for smaller file size.
|
||||||
|
* Added slices, grid, and correct sizing to the Adobe Illustrator file, all theme files are now export ready!
|
||||||
|
|
||||||
|
### Version 1.2.6 - July 15 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed a bug with fixed width/height images in Opera 9.64.
|
||||||
|
* Fixed a bug with trying to set a value for rel during a direct call to ColorBox. Example: `$.fn.colorbox({rel:'foo', open:true});`
|
||||||
|
* Changed how href/rel/title settings are determined to avoid users having to manually update ColorBox settings if they use JavaScript to update any of those attributes, after ColorBox has been defined.
|
||||||
|
* Fixed a FF3 bug where the back button was disabled after closing an iframe.
|
||||||
|
|
||||||
|
### Version 1.2.5 - June 23 2009
|
||||||
|
Files Changed: jquery.colorbox.js/jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Changed the point at which iframe srcs are set (to eliminate the need to refresh the iframe once it has been added to the DOM).
|
||||||
|
* Removed unnecessary return values for a very slight code reduction.
|
||||||
|
|
||||||
|
### Version 1.2.4 - June 9 2009
|
||||||
|
Files Changed: jquery.colorbox.js, jquery.colorbox-min.js
|
||||||
|
|
||||||
|
* Fixed an issue where ColorBox may not close completely if it is closed during a transition animation.
|
||||||
|
* Minor code reduction.
|
||||||
|
|
||||||
|
### Version 1.2.3 - June 4 2009
|
||||||
|
* Fixed a png transparency stacking issue in IE.
|
||||||
|
* More accurate Ajax auto-sizing if the user was depending on the #cboxLoadedContent ID for CSS styling.
|
||||||
|
* Added a public function for returning the current html element that ColorBox is associated with. Example use: var that = $.fn.colorbox.element();
|
||||||
|
* Added bicubic scaling for resized images in the original IE7.
|
||||||
|
* Removed the IE6 stylesheet and png files from Example 3. It now uses the same png file for the controls that the rest of the browsers use (an alpha transparency PNG8). This example now only has 2 graphics files and 1 stylesheet.
|
||||||
|
|
||||||
|
### Version 1.2.2 - May 28 2009
|
||||||
|
* Fixed an issue with the 'resize' option.
|
||||||
|
|
||||||
|
### Version 1.2.1 - May 28 2009
|
||||||
|
* Note: If you are upgrading, update your jquery.colorbox.js and colorbox.css files.
|
||||||
|
* Added photo resizing.
|
||||||
|
* Added a maximum width and maximum height. Example: {height:800, maxHeight:'100%'}, would allow the box to be a maximum potential height of 800px, instead of a fixed height of 800px. With maxHeight of 100% the height of ColorBox cannot exceed the height of the browser window.
|
||||||
|
* Added 'rel' setting to add the ability to set an alternative rel for any ColorBox call. This allows the user to group any combination of elements together for a gallery, or to override an existing rel. attribute so those element are not grouped together, without having to alter their rel in the HTML.
|
||||||
|
* Added a 'photo' setting to force ColorBox to display a link as a photo. Use this when automatic photo detection fails (such as using a url like 'photo.php' instead of 'photo.jpg', 'photo.jpg#1', or 'photo.jpg?pic=1')
|
||||||
|
* Removed the need to ever create disposable elements to call colorbox on. ColorBox can now be called directly, without being associated with any existing element, by using the following format:
|
||||||
|
`$.fn.colorbox({open:true, href:'yourLink.xxx'});`
|
||||||
|
* ColorBox settings are now persistent and unique for each element. This allows for extremely flexible options for individual elements. You could use this to create a gallery in which each page in the gallery has different settings. One could be a photo with a fade transition, next could be an inline element with an elastic transition with a set width and height, etc.
|
||||||
|
* For user callbacks, 'this' now refers to the element colorbox was opened from.
|
||||||
|
* Fixed a minor grouping issue with IE6, when transition type is set to 'none'.
|
||||||
|
* Added an Adobe Illustrator file that contains the borders and buttons used in the various examples.
|
||||||
|
|
||||||
|
### Version 1.2 - May 13 2009
|
||||||
|
* Added a slideshow feature.
|
||||||
|
* Added re-positioning on browser resize. If the browser is resized, ColorBox will recenter itself onscreen.
|
||||||
|
* Added hooks for key events: cbox_open, cbox_load, cbox_complete, cbox_closed.
|
||||||
|
* Fixed an IE transparency-stacking problem, where transparent PNGs would show through to the background overlay.
|
||||||
|
* Fixed an IE iframe issue where the ifame might shift up and to the left under certain circumstances.
|
||||||
|
* Fixed an IE6 bug where the loading overlay was not at full height.
|
||||||
|
* Removed the delay in switching between same-sized gallery content when using transitions.
|
||||||
|
* Changed how iframes are loaded to make it more compatible with iframed pages that use DOM dependent JavaScript.
|
||||||
|
* Changed how the JS is structured to be better organized and increase compression. Increased documentation.
|
||||||
|
* Changed CSS :hover states to a .hover class. This sidesteps a minor IE8 bug with css hover states and allows easier access to hover state user styles from the JavaScript.
|
||||||
|
* Changed: elements added to the DOM have new ID's. The naming is more consistent and less likely to cause conflicts with existing website stylesheets. All stylesheets have been updated.
|
||||||
|
* Changed the behavior for prev/next links so that ColorBox does not get hung up on broken links. A visitor can now skip through broken or long-loading links by clicking prev/next buttons.
|
||||||
|
* Changed the naming of variables in the parameter map to be more concise and intuitive.
|
||||||
|
* Removed colorbox.css. Combined the colorbox.css styles with jquery.colorbox.js: the css file was not large enough to warrant being a separate file.
|
||||||
|
|
||||||
|
### Version 1.1.6 - April 28 2009
|
||||||
|
* Prevented the default action of the next & previous anchors and the left and right keys for gallery mode.
|
||||||
|
* Fixed a bug where the title element was being added back to the DOM when closing ColorBox while using inline content.
|
||||||
|
* Fixed a bug where IE7 would crash for example 2.
|
||||||
|
* Smaller filesize: removed a small amount of unused code and rewrote the HTML injection with less syntax.
|
||||||
|
* Added a public method for closing ColorBox: $.fn.colorbox.close(). This will allow iframe users to add an event to close ColorBox without having to create an additional function.
|
||||||
|
|
||||||
|
### Version 1.1.5 - April 11 2009
|
||||||
|
* Fixed minor issues with exiting ColorBox.
|
||||||
|
|
||||||
|
### Version 1.1.4 - April 08 2009
|
||||||
|
* Fixed a bug in the fade transition where ColorBox not close completely if instructed to close during the fade-in portion of the transition.
|
||||||
|
|
||||||
|
### Version 1.1.3 - April 06 2009
|
||||||
|
* Fixed an IE6&7 issue with using ColorBox to display animated GIFs.
|
||||||
|
|
||||||
|
### Version 1.1.2 - April 05 2009
|
||||||
|
* Added ability to change content when ColorBox is already open.
|
||||||
|
* Added vertical photo centering now works for all browsers (this feature previously excluded IE6&7).
|
||||||
|
* Added namespacing to the esc-key keydown event for people who want to disable it: "keydown.colorClose"
|
||||||
|
* Added 'title' setting to add the ability to set an alternative title for any ColorBox call.
|
||||||
|
* Fixed rollover navigation issue with IE8. (Added JS-based rollover state due to a browser-bug.)
|
||||||
|
* Fixed an overflow issue for when the fixed width/height is smaller than the size of a photo.
|
||||||
|
* Fixed a bug in the fade transition where the border would still come up if ColorBox was closed mid-transition.
|
||||||
|
* Switch from JSMin to Yui Compressor for minification. Minified code now under 7KB.
|
||||||
|
|
||||||
|
### Version 1.1.1 - March 31 2009
|
||||||
|
* More robust image detection regex. Now detects image file types with url fragments and/or query strings.
|
||||||
|
* Added 'nofollow' exception to rel grouping.
|
||||||
|
* Changed how images are loaded into the DOM to prevent premature size calculation by ColorBox.
|
||||||
|
* Added timestamp to iframe name to prevent caching - this was a problem in some browsers if the user had multiple iframes and the visitor left the page and came back, or if they refreshed the page.
|
||||||
|
|
||||||
|
### Version 1.1.0 - March 21 2009
|
||||||
|
* Animation is now much smoother and less resource intensive.
|
||||||
|
* Added support for % sizing.
|
||||||
|
* Callback option added.
|
||||||
|
* Inline content now preserves JavaScript events, and changes made while ColorBox is open are also preserved.
|
||||||
|
* Added 'href' setting to add the ability to set an alternative href for any anchor, or to assign the ColorBox event to non-anchors.
|
||||||
|
Example: $('button').colorbox({'href':'process.php'})
|
||||||
|
Example: $('a[href='http://msn.com']).colorbox({'href':'http://google.com', iframe:true});
|
||||||
|
* Photos are now horizontally centered if they are smaller than the lightbox size. Also vertically centered for browsers newer than IE7.
|
||||||
|
* Buttons in the examples are now included in the 'protected zone'. The lightbox will never expand it's borders or buttons beyond an accessible area of the screen.
|
||||||
|
* Keypress events don't queue up by holding down the arrow keys.
|
||||||
|
* Added option to close ColorBox by clicking on the background overlay.
|
||||||
|
* Added 'none' transition setting.
|
||||||
|
* Changed 'contentIframe' and 'contentInline' to 'inline' and 'iframe'. Removed 'contentAjax' because it is automatically assumed for non-image file types.
|
||||||
|
* Changed 'contentWidth' and 'contentHeight' to 'fixedWidth' and 'fixedHeight'. These sizes now reflect the total size of the lightbox, not just the inner content. This is so users can accurately anticipate % sizes without fear of creating scrollbars.
|
||||||
|
* Clicking on a photo will now switch to the next photo in a set.
|
||||||
|
* Loading.gif is more stable in it's position.
|
||||||
|
* Added a minified version.
|
||||||
|
* Code passes JSLint.
|
||||||
|
|
||||||
|
### Version 1.0.5 - March 11 2009
|
||||||
|
* Redo: Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
|
||||||
|
|
||||||
|
### Version 1.0.4 - March 10 2009
|
||||||
|
* Added an option to allow users to automatically open the lightbox. Example usage: $(".colorbox").colorbox({open:true});
|
||||||
|
* Fixed a bug where IE would cut off the bottom portion of a photo, if the photo was larger than the document dimensions.
|
||||||
|
|
||||||
|
### Version 1.0.3 - March 09 2009
|
||||||
|
* Fixed vertical centering for Safari 3.0.x.
|
||||||
|
|
||||||
|
### Version 1.0.2 - March 06 2009
|
||||||
|
* Corrected a typo.
|
||||||
|
* Changed the content-type check so that it does not assume all links to photos should actually display photos. This allows for Ajax/inline/and iframe calls on anchors linking to picture file types.
|
||||||
|
|
||||||
|
### Version 1.0.1 - March 05 2009
|
||||||
|
* Fixed keydown events (esc, left arrow, right arrow) for Webkit browsers.
|
||||||
|
|
||||||
|
### Version 1.0 - March 03 2009
|
||||||
|
* First release
|
1811
library/colorbox/colorbox.ai
Normal file
52
library/colorbox/colorbox.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#cboxTitle{margin:0;}
|
||||||
|
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||||
|
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||||
|
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#000;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxTopLeft{width:14px; height:14px; background:url(images/controls.png) no-repeat 0 0;}
|
||||||
|
#cboxTopCenter{height:14px; background:url(images/border.png) repeat-x top left;}
|
||||||
|
#cboxTopRight{width:14px; height:14px; background:url(images/controls.png) no-repeat -36px 0;}
|
||||||
|
#cboxBottomLeft{width:14px; height:43px; background:url(images/controls.png) no-repeat 0 -32px;}
|
||||||
|
#cboxBottomCenter{height:43px; background:url(images/border.png) repeat-x bottom left;}
|
||||||
|
#cboxBottomRight{width:14px; height:43px; background:url(images/controls.png) no-repeat -36px -32px;}
|
||||||
|
#cboxMiddleLeft{width:14px; background:url(images/controls.png) repeat-y -175px 0;}
|
||||||
|
#cboxMiddleRight{width:14px; background:url(images/controls.png) repeat-y -211px 0;}
|
||||||
|
#cboxContent{background:#fff; overflow:visible;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{margin-bottom:5px;}
|
||||||
|
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
|
||||||
|
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
|
||||||
|
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
||||||
|
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
||||||
|
#cboxPrevious:hover{background-position:-51px 0px;}
|
||||||
|
#cboxNext{left:27px; background-position:-75px -25px;}
|
||||||
|
#cboxNext:hover{background-position:-75px 0px;}
|
||||||
|
#cboxClose{right:0; background-position:-100px -25px;}
|
||||||
|
#cboxClose:hover{background-position:-100px 0px;}
|
||||||
|
|
||||||
|
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
|
30
library/colorbox/colorbox.jquery.json
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"name": "colorbox",
|
||||||
|
"title": "ColorBox",
|
||||||
|
"description": "A lightweight customizable lightbox plugin",
|
||||||
|
"keywords": [
|
||||||
|
"modal",
|
||||||
|
"lightbox",
|
||||||
|
"window",
|
||||||
|
"popup",
|
||||||
|
"ui"
|
||||||
|
],
|
||||||
|
"version": "1.3.32",
|
||||||
|
"author": {
|
||||||
|
"name": "Jack Moore",
|
||||||
|
"url": "http://www.jacklmoore.com",
|
||||||
|
"email": "jack@colorpowered.com"
|
||||||
|
},
|
||||||
|
"licenses": [
|
||||||
|
{
|
||||||
|
"type": "MIT",
|
||||||
|
"url": "http://www.opensource.org/licenses/mit-license.php"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"homepage": "http://jacklmoore.com/colorbox",
|
||||||
|
"demo": "http://jacklmoore.com/colorbox",
|
||||||
|
"download": "http://jacklmoore.com/colorbox/colorbox.zip",
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">=1.3.2"
|
||||||
|
}
|
||||||
|
}
|
8
library/colorbox/component.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "jquery-autosize",
|
||||||
|
"version": "1.3.32",
|
||||||
|
"main": "./jquery.autosize.js",
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">=1.3.2"
|
||||||
|
}
|
||||||
|
}
|
11
library/colorbox/content/ajax.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<div id='homer' style="background:url(../content/homer.jpg) right center no-repeat #ececec; height:135px; width:280px; padding:30px 10px;">
|
||||||
|
<strong>Homer</strong><br/>
|
||||||
|
<em>\noun\</em><br/>
|
||||||
|
<strong>1.</strong> American bonehead<br/>
|
||||||
|
<strong>2. Pull a Homer-</strong><br/>
|
||||||
|
to succeed despite<br/>
|
||||||
|
idiocy
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$('#homer strong').css({color:'red'});
|
||||||
|
</script>
|
BIN
library/colorbox/content/homer.jpg
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
library/colorbox/content/marylou.jpg
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
library/colorbox/content/ohoopee1.jpg
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
library/colorbox/content/ohoopee2.jpg
Normal file
After Width: | Height: | Size: 115 KiB |
BIN
library/colorbox/content/ohoopee3.jpg
Normal file
After Width: | Height: | Size: 70 KiB |
86
library/colorbox/example1/colorbox.css
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#cboxTitle{margin:0;}
|
||||||
|
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||||
|
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||||
|
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:url(images/overlay.png) repeat 0 0;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;}
|
||||||
|
#cboxTopRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px 0;}
|
||||||
|
#cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px -29px;}
|
||||||
|
#cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px -29px;}
|
||||||
|
#cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
|
||||||
|
#cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
|
||||||
|
#cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
|
||||||
|
#cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
|
||||||
|
#cboxContent{background:#fff; overflow:hidden;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{margin-bottom:28px;}
|
||||||
|
#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
|
||||||
|
#cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
|
||||||
|
#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
|
||||||
|
#cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||||
|
#cboxPrevious:hover{background-position:-75px -25px;}
|
||||||
|
#cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||||
|
#cboxNext:hover{background-position:-50px -25px;}
|
||||||
|
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
|
||||||
|
#cboxClose:hover{background-position:-25px -25px;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
||||||
|
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
||||||
|
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
||||||
|
*/
|
||||||
|
.cboxIE #cboxTopLeft,
|
||||||
|
.cboxIE #cboxTopCenter,
|
||||||
|
.cboxIE #cboxTopRight,
|
||||||
|
.cboxIE #cboxBottomLeft,
|
||||||
|
.cboxIE #cboxBottomCenter,
|
||||||
|
.cboxIE #cboxBottomRight,
|
||||||
|
.cboxIE #cboxMiddleLeft,
|
||||||
|
.cboxIE #cboxMiddleRight {
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following provides PNG transparency support for IE6
|
||||||
|
Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
|
||||||
|
*/
|
||||||
|
.cboxIE6 #cboxTopLeft{background:url(images/ie6/borderTopLeft.png);}
|
||||||
|
.cboxIE6 #cboxTopCenter{background:url(images/ie6/borderTopCenter.png);}
|
||||||
|
.cboxIE6 #cboxTopRight{background:url(images/ie6/borderTopRight.png);}
|
||||||
|
.cboxIE6 #cboxBottomLeft{background:url(images/ie6/borderBottomLeft.png);}
|
||||||
|
.cboxIE6 #cboxBottomCenter{background:url(images/ie6/borderBottomCenter.png);}
|
||||||
|
.cboxIE6 #cboxBottomRight{background:url(images/ie6/borderBottomRight.png);}
|
||||||
|
.cboxIE6 #cboxMiddleLeft{background:url(images/ie6/borderMiddleLeft.png);}
|
||||||
|
.cboxIE6 #cboxMiddleRight{background:url(images/ie6/borderMiddleRight.png);}
|
||||||
|
|
||||||
|
.cboxIE6 #cboxTopLeft,
|
||||||
|
.cboxIE6 #cboxTopCenter,
|
||||||
|
.cboxIE6 #cboxTopRight,
|
||||||
|
.cboxIE6 #cboxBottomLeft,
|
||||||
|
.cboxIE6 #cboxBottomCenter,
|
||||||
|
.cboxIE6 #cboxBottomRight,
|
||||||
|
.cboxIE6 #cboxMiddleLeft,
|
||||||
|
.cboxIE6 #cboxMiddleRight {
|
||||||
|
_behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
|
||||||
|
}
|
BIN
library/colorbox/example1/images/border.png
Normal file
After Width: | Height: | Size: 112 B |
BIN
library/colorbox/example1/images/controls.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
library/colorbox/example1/images/ie6/borderBottomCenter.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
library/colorbox/example1/images/ie6/borderBottomLeft.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
library/colorbox/example1/images/ie6/borderBottomRight.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
library/colorbox/example1/images/ie6/borderMiddleLeft.png
Normal file
After Width: | Height: | Size: 108 B |
BIN
library/colorbox/example1/images/ie6/borderMiddleRight.png
Normal file
After Width: | Height: | Size: 108 B |
BIN
library/colorbox/example1/images/ie6/borderTopCenter.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
library/colorbox/example1/images/ie6/borderTopLeft.png
Normal file
After Width: | Height: | Size: 216 B |
BIN
library/colorbox/example1/images/ie6/borderTopRight.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
library/colorbox/example1/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
library/colorbox/example1/images/loading_background.png
Normal file
After Width: | Height: | Size: 157 B |
BIN
library/colorbox/example1/images/overlay.png
Normal file
After Width: | Height: | Size: 182 B |
87
library/colorbox/example1/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<title>ColorBox Examples</title>
|
||||||
|
<style>
|
||||||
|
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||||
|
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||||
|
h2{font-size:13px; margin:15px 0 0 0;}
|
||||||
|
</style>
|
||||||
|
<link rel="stylesheet" href="colorbox.css" />
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||||
|
<script src="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//Examples of how to assign the ColorBox event to elements
|
||||||
|
$(".group1").colorbox({rel:'group1'});
|
||||||
|
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||||
|
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||||
|
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||||
|
$(".ajax").colorbox();
|
||||||
|
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//Example of preserving a JavaScript event for inline calls.
|
||||||
|
$("#click").click(function(){
|
||||||
|
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>ColorBox Demonstration</h1>
|
||||||
|
<h2>Elastic Transition</h2>
|
||||||
|
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Other Content Types</h2>
|
||||||
|
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||||
|
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||||
|
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||||
|
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||||
|
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||||
|
|
||||||
|
<h2>Demonstration of using callbacks</h2>
|
||||||
|
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||||
|
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||||
|
|
||||||
|
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||||
|
<p>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
43
library/colorbox/example2/colorbox.css
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#cboxTitle{margin:0;}
|
||||||
|
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||||
|
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||||
|
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#fff;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxContent{margin-top:32px; overflow:visible;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{background:#000; padding:1px;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#cboxLoadingOverlay{background:#000;}
|
||||||
|
#cboxTitle{position:absolute; top:-22px; left:0; color:#000;}
|
||||||
|
#cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
|
||||||
|
#cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(images/controls.png) no-repeat 0 0;}
|
||||||
|
#cboxPrevious{background-position:0px 0px; right:44px;}
|
||||||
|
#cboxPrevious:hover{background-position:0px -25px;}
|
||||||
|
#cboxNext{background-position:-25px 0px; right:22px;}
|
||||||
|
#cboxNext:hover{background-position:-25px -25px;}
|
||||||
|
#cboxClose{background-position:-50px 0px; right:0;}
|
||||||
|
#cboxClose:hover{background-position:-50px -25px;}
|
||||||
|
.cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}
|
BIN
library/colorbox/example2/images/controls.png
Normal file
After Width: | Height: | Size: 570 B |
BIN
library/colorbox/example2/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
87
library/colorbox/example2/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<title>ColorBox Examples</title>
|
||||||
|
<style>
|
||||||
|
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||||
|
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||||
|
h2{font-size:13px; margin:15px 0 0 0;}
|
||||||
|
</style>
|
||||||
|
<link rel="stylesheet" href="colorbox.css" />
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||||
|
<script src="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//Examples of how to assign the ColorBox event to elements
|
||||||
|
$(".group1").colorbox({rel:'group1'});
|
||||||
|
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||||
|
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||||
|
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||||
|
$(".ajax").colorbox();
|
||||||
|
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//Example of preserving a JavaScript event for inline calls.
|
||||||
|
$("#click").click(function(){
|
||||||
|
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>ColorBox Demonstration</h1>
|
||||||
|
<h2>Elastic Transition</h2>
|
||||||
|
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Other Content Types</h2>
|
||||||
|
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||||
|
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||||
|
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||||
|
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||||
|
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||||
|
|
||||||
|
<h2>Demonstration of using callbacks</h2>
|
||||||
|
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||||
|
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||||
|
|
||||||
|
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||||
|
<p>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
38
library/colorbox/example3/colorbox.css
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#cboxTitle{margin:0;}
|
||||||
|
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||||
|
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||||
|
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#000;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxContent{margin-top:20px;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{border:5px solid #000; background:#fff;}
|
||||||
|
#cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
|
||||||
|
#cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;}
|
||||||
|
#cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
|
||||||
|
#cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(images/controls.png) no-repeat top left; width:28px; height:65px; text-indent:-9999px;}
|
||||||
|
#cboxPrevious:hover{background-position:bottom left;}
|
||||||
|
#cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(images/controls.png) no-repeat top right; width:28px; height:65px; text-indent:-9999px;}
|
||||||
|
#cboxNext:hover{background-position:bottom right;}
|
||||||
|
#cboxLoadingOverlay{background:#000;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) no-repeat top center; width:38px; height:19px; text-indent:-9999px;}
|
||||||
|
#cboxClose:hover{background-position:bottom center;}
|
BIN
library/colorbox/example3/images/controls.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
library/colorbox/example3/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
87
library/colorbox/example3/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<title>ColorBox Examples</title>
|
||||||
|
<style>
|
||||||
|
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||||
|
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||||
|
h2{font-size:13px; margin:15px 0 0 0;}
|
||||||
|
</style>
|
||||||
|
<link rel="stylesheet" href="colorbox.css" />
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||||
|
<script src="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//Examples of how to assign the ColorBox event to elements
|
||||||
|
$(".group1").colorbox({rel:'group1'});
|
||||||
|
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||||
|
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||||
|
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||||
|
$(".ajax").colorbox();
|
||||||
|
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//Example of preserving a JavaScript event for inline calls.
|
||||||
|
$("#click").click(function(){
|
||||||
|
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>ColorBox Demonstration</h1>
|
||||||
|
<h2>Elastic Transition</h2>
|
||||||
|
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Other Content Types</h2>
|
||||||
|
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||||
|
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||||
|
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||||
|
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||||
|
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||||
|
|
||||||
|
<h2>Demonstration of using callbacks</h2>
|
||||||
|
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||||
|
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||||
|
|
||||||
|
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||||
|
<p>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
82
library/colorbox/example4/colorbox.css
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#cboxTitle{margin:0;}
|
||||||
|
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||||
|
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||||
|
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#fff;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxTopLeft{width:25px; height:25px; background:url(images/border1.png) no-repeat 0 0;}
|
||||||
|
#cboxTopCenter{height:25px; background:url(images/border1.png) repeat-x 0 -50px;}
|
||||||
|
#cboxTopRight{width:25px; height:25px; background:url(images/border1.png) no-repeat -25px 0;}
|
||||||
|
#cboxBottomLeft{width:25px; height:25px; background:url(images/border1.png) no-repeat 0 -25px;}
|
||||||
|
#cboxBottomCenter{height:25px; background:url(images/border1.png) repeat-x 0 -75px;}
|
||||||
|
#cboxBottomRight{width:25px; height:25px; background:url(images/border1.png) no-repeat -25px -25px;}
|
||||||
|
#cboxMiddleLeft{width:25px; background:url(images/border2.png) repeat-y 0 0;}
|
||||||
|
#cboxMiddleRight{width:25px; background:url(images/border2.png) repeat-y -25px 0;}
|
||||||
|
#cboxContent{background:#fff; overflow:hidden;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{margin-bottom:20px;}
|
||||||
|
#cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;}
|
||||||
|
#cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;}
|
||||||
|
#cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;}
|
||||||
|
#cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;}
|
||||||
|
#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;}
|
||||||
|
#cboxLoadingOverlay{background:#fff url(images/loading.gif) no-repeat 5px 5px;}
|
||||||
|
#cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
|
||||||
|
when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
|
||||||
|
See: http://jacklmoore.com/notes/ie-transparency-problems/
|
||||||
|
*/
|
||||||
|
.cboxIE #cboxTopLeft,
|
||||||
|
.cboxIE #cboxTopCenter,
|
||||||
|
.cboxIE #cboxTopRight,
|
||||||
|
.cboxIE #cboxBottomLeft,
|
||||||
|
.cboxIE #cboxBottomCenter,
|
||||||
|
.cboxIE #cboxBottomRight,
|
||||||
|
.cboxIE #cboxMiddleLeft,
|
||||||
|
.cboxIE #cboxMiddleRight {
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following provides PNG transparency support for IE6
|
||||||
|
Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
|
||||||
|
*/
|
||||||
|
.cboxIE6 #cboxTopLeft{background:url(images/ie6/borderTopLeft.png);}
|
||||||
|
.cboxIE6 #cboxTopCenter{background:url(images/ie6/borderTopCenter.png);}
|
||||||
|
.cboxIE6 #cboxTopRight{background:url(images/ie6/borderTopRight.png);}
|
||||||
|
.cboxIE6 #cboxBottomLeft{background:url(images/ie6/borderBottomLeft.png);}
|
||||||
|
.cboxIE6 #cboxBottomCenter{background:url(images/ie6/borderBottomCenter.png);}
|
||||||
|
.cboxIE6 #cboxBottomRight{background:url(images/ie6/borderBottomRight.png);}
|
||||||
|
.cboxIE6 #cboxMiddleLeft{background:url(images/ie6/borderMiddleLeft.png);}
|
||||||
|
.cboxIE6 #cboxMiddleRight{background:url(images/ie6/borderMiddleRight.png);}
|
||||||
|
|
||||||
|
.cboxIE6 #cboxTopLeft,
|
||||||
|
.cboxIE6 #cboxTopCenter,
|
||||||
|
.cboxIE6 #cboxTopRight,
|
||||||
|
.cboxIE6 #cboxBottomLeft,
|
||||||
|
.cboxIE6 #cboxBottomCenter,
|
||||||
|
.cboxIE6 #cboxBottomRight,
|
||||||
|
.cboxIE6 #cboxMiddleLeft,
|
||||||
|
.cboxIE6 #cboxMiddleRight {
|
||||||
|
_behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
|
||||||
|
}
|
BIN
library/colorbox/example4/images/border1.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
library/colorbox/example4/images/border2.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
library/colorbox/example4/images/ie6/borderBottomCenter.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
library/colorbox/example4/images/ie6/borderBottomLeft.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
library/colorbox/example4/images/ie6/borderBottomRight.png
Normal file
After Width: | Height: | Size: 470 B |
BIN
library/colorbox/example4/images/ie6/borderMiddleLeft.png
Normal file
After Width: | Height: | Size: 148 B |
BIN
library/colorbox/example4/images/ie6/borderMiddleRight.png
Normal file
After Width: | Height: | Size: 139 B |
BIN
library/colorbox/example4/images/ie6/borderTopCenter.png
Normal file
After Width: | Height: | Size: 153 B |
BIN
library/colorbox/example4/images/ie6/borderTopLeft.png
Normal file
After Width: | Height: | Size: 359 B |
BIN
library/colorbox/example4/images/ie6/borderTopRight.png
Normal file
After Width: | Height: | Size: 465 B |
BIN
library/colorbox/example4/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
87
library/colorbox/example4/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<title>ColorBox Examples</title>
|
||||||
|
<style>
|
||||||
|
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||||
|
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||||
|
h2{font-size:13px; margin:15px 0 0 0;}
|
||||||
|
</style>
|
||||||
|
<link rel="stylesheet" href="colorbox.css" />
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||||
|
<script src="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//Examples of how to assign the ColorBox event to elements
|
||||||
|
$(".group1").colorbox({rel:'group1'});
|
||||||
|
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||||
|
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||||
|
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||||
|
$(".ajax").colorbox();
|
||||||
|
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//Example of preserving a JavaScript event for inline calls.
|
||||||
|
$("#click").click(function(){
|
||||||
|
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>ColorBox Demonstration</h1>
|
||||||
|
<h2>Elastic Transition</h2>
|
||||||
|
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Other Content Types</h2>
|
||||||
|
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||||
|
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||||
|
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||||
|
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||||
|
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||||
|
|
||||||
|
<h2>Demonstration of using callbacks</h2>
|
||||||
|
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||||
|
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||||
|
|
||||||
|
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||||
|
<p>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
52
library/colorbox/example5/colorbox.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/*
|
||||||
|
ColorBox Core Style:
|
||||||
|
The following CSS is consistent between example themes and should not be altered.
|
||||||
|
*/
|
||||||
|
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
||||||
|
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
||||||
|
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
||||||
|
#cboxContent{position:relative;}
|
||||||
|
#cboxLoadedContent{overflow:auto;}
|
||||||
|
#cboxTitle{margin:0;}
|
||||||
|
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
||||||
|
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
|
||||||
|
.cboxIframe{width:100%; height:100%; display:block; border:0;}
|
||||||
|
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
|
||||||
|
|
||||||
|
/*
|
||||||
|
User Style:
|
||||||
|
Change the following styles to modify the appearance of ColorBox. They are
|
||||||
|
ordered & tabbed in a way that represents the nesting of the generated HTML.
|
||||||
|
*/
|
||||||
|
#cboxOverlay{background:#000;}
|
||||||
|
#colorbox{}
|
||||||
|
#cboxTopLeft{width:14px; height:14px; background:url(images/controls.png) no-repeat 0 0;}
|
||||||
|
#cboxTopCenter{height:14px; background:url(images/border.png) repeat-x top left;}
|
||||||
|
#cboxTopRight{width:14px; height:14px; background:url(images/controls.png) no-repeat -36px 0;}
|
||||||
|
#cboxBottomLeft{width:14px; height:43px; background:url(images/controls.png) no-repeat 0 -32px;}
|
||||||
|
#cboxBottomCenter{height:43px; background:url(images/border.png) repeat-x bottom left;}
|
||||||
|
#cboxBottomRight{width:14px; height:43px; background:url(images/controls.png) no-repeat -36px -32px;}
|
||||||
|
#cboxMiddleLeft{width:14px; background:url(images/controls.png) repeat-y -175px 0;}
|
||||||
|
#cboxMiddleRight{width:14px; background:url(images/controls.png) repeat-y -211px 0;}
|
||||||
|
#cboxContent{background:#fff; overflow:visible;}
|
||||||
|
.cboxIframe{background:#fff;}
|
||||||
|
#cboxError{padding:50px; border:1px solid #ccc;}
|
||||||
|
#cboxLoadedContent{margin-bottom:5px;}
|
||||||
|
#cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
|
||||||
|
#cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
|
||||||
|
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
|
||||||
|
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
|
||||||
|
|
||||||
|
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(images/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
|
||||||
|
#cboxPrevious{left:0px; background-position: -51px -25px;}
|
||||||
|
#cboxPrevious:hover{background-position:-51px 0px;}
|
||||||
|
#cboxNext{left:27px; background-position:-75px -25px;}
|
||||||
|
#cboxNext:hover{background-position:-75px 0px;}
|
||||||
|
#cboxClose{right:0; background-position:-100px -25px;}
|
||||||
|
#cboxClose:hover{background-position:-100px 0px;}
|
||||||
|
|
||||||
|
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
|
||||||
|
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
|
||||||
|
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
|
BIN
library/colorbox/example5/images/border.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
library/colorbox/example5/images/controls.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
library/colorbox/example5/images/loading.gif
Normal file
After Width: | Height: | Size: 9.2 KiB |
BIN
library/colorbox/example5/images/loading_background.png
Normal file
After Width: | Height: | Size: 166 B |
87
library/colorbox/example5/index.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'/>
|
||||||
|
<title>ColorBox Examples</title>
|
||||||
|
<style>
|
||||||
|
body{font:12px/1.2 Verdana, sans-serif; padding:0 10px;}
|
||||||
|
a:link, a:visited{text-decoration:none; color:#416CE5; border-bottom:1px solid #416CE5;}
|
||||||
|
h2{font-size:13px; margin:15px 0 0 0;}
|
||||||
|
</style>
|
||||||
|
<link rel="stylesheet" href="colorbox.css" />
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||||
|
<script src="../jquery.colorbox.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
//Examples of how to assign the ColorBox event to elements
|
||||||
|
$(".group1").colorbox({rel:'group1'});
|
||||||
|
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
||||||
|
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
||||||
|
$(".group4").colorbox({rel:'group4', slideshow:true});
|
||||||
|
$(".ajax").colorbox();
|
||||||
|
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
||||||
|
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
||||||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||||
|
$(".inline").colorbox({inline:true, width:"50%"});
|
||||||
|
$(".callbacks").colorbox({
|
||||||
|
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
||||||
|
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
||||||
|
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
||||||
|
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
||||||
|
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
||||||
|
});
|
||||||
|
|
||||||
|
//Example of preserving a JavaScript event for inline calls.
|
||||||
|
$("#click").click(function(){
|
||||||
|
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>ColorBox Demonstration</h1>
|
||||||
|
<h2>Elastic Transition</h2>
|
||||||
|
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Fade Transition</h2>
|
||||||
|
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
||||||
|
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Slideshow</h2>
|
||||||
|
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
||||||
|
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
||||||
|
|
||||||
|
<h2>Other Content Types</h2>
|
||||||
|
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
||||||
|
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
||||||
|
<p><a class='vimeo' href="http://player.vimeo.com/video/2285902" title="Röyksopp: Remind Me">Flash / Video (Iframe/Direct Link To Vimeo)</a></p>
|
||||||
|
<p><a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a></p>
|
||||||
|
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
||||||
|
|
||||||
|
<h2>Demonstration of using callbacks</h2>
|
||||||
|
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
||||||
|
|
||||||
|
<!-- This contains the hidden content for inline calls -->
|
||||||
|
<div style='display:none'>
|
||||||
|
<div id='inline_content' style='padding:10px; background:#fff;'>
|
||||||
|
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
||||||
|
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
||||||
|
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
||||||
|
|
||||||
|
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
||||||
|
<p>Updating Content Example:<br />
|
||||||
|
<a class="ajax" href="../content/ajax.html">Click here to load new content</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
14
library/colorbox/i18n/jquery.colorbox-cs.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
jQuery ColorBox language configuration
|
||||||
|
language: Czech (cs)
|
||||||
|
translated by: Filip Novak
|
||||||
|
site: mame.napilno.cz/filip-novak
|
||||||
|
*/
|
||||||
|
jQuery.extend(jQuery.colorbox.settings, {
|
||||||
|
current: "{current}. obrázek z {total}",
|
||||||
|
previous: "Předchozí",
|
||||||
|
next: "Následující",
|
||||||
|
close: "Zavřít",
|
||||||
|
xhrError: "Obsah se nepodařilo načíst.",
|
||||||
|
imgError: "Obrázek se nepodařilo načíst."
|
||||||
|
});
|