New images and lightbox
|
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '5c776e25eb32cf7e159836b709b8cca9');
|
||||
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '5e138a2740c4e0d57ffd78b45873cf68');
|
||||
|
|
@ -536,7 +536,10 @@ class Jetpack_Cxn_Test_Base {
|
|||
);
|
||||
}
|
||||
|
||||
openssl_free_key( $public_key );
|
||||
// openssl_free_key was deprecated as no longer needed in PHP 8.0+. Can remove when PHP 8.0 is our minimum. (lol).
|
||||
if ( PHP_VERSION_ID < 80000 ) {
|
||||
openssl_free_key( $public_key ); // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.openssl_free_keyDeprecated
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,21 @@
|
|||
|
||||
**This is a list detailing changes for all Jetpack releases.**
|
||||
|
||||
= 9.2.1 =
|
||||
|
||||
* Release date: December 10, 2020
|
||||
|
||||
**Improved compatibility**
|
||||
|
||||
* Site Health Tools: improve PHP 8 compatibility.
|
||||
* Twenty Twenty One: add support for Jetpack's Content Options.
|
||||
|
||||
**Bug fixes**
|
||||
|
||||
* Instant Search: fix layout issues with filtering checkboxes with some themes.
|
||||
* WordPress.com Toolbar: avoid Fatal errors when the feature is not active.
|
||||
* WordPress.com Toolbar: avoid 404 errors when loading the toolbar.
|
||||
|
||||
= 9.2 =
|
||||
|
||||
* Release date: December 1, 2020
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Plugin URI: https://jetpack.com
|
||||
* Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
|
||||
* Author: Automattic
|
||||
* Version: 9.2
|
||||
* Version: 9.2.1
|
||||
* Author URI: https://jetpack.com
|
||||
* License: GPL2+
|
||||
* Text Domain: jetpack
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
define( 'JETPACK__MINIMUM_WP_VERSION', '5.5' );
|
||||
define( 'JETPACK__MINIMUM_PHP_VERSION', '5.6' );
|
||||
define( 'JETPACK__VERSION', '9.2' );
|
||||
define( 'JETPACK__VERSION', '9.2.1' );
|
||||
|
||||
/**
|
||||
* Constant used to fetch the connection owner token
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
* Ported from an internal Automattic plugin.
|
||||
*/
|
||||
|
||||
use Automattic\Jetpack\Dashboard_Customizations\Masterbar;
|
||||
use Automattic\Jetpack\Redirect;
|
||||
use Automattic\Jetpack\Status;
|
||||
|
||||
|
|
@ -76,8 +77,8 @@ class Jetpack_Calypsoify {
|
|||
}
|
||||
|
||||
public function mock_masterbar_activation() {
|
||||
include_once JETPACK__PLUGIN_DIR . 'modules/masterbar/masterbar.php';
|
||||
new A8C_WPCOM_Masterbar;
|
||||
include_once JETPACK__PLUGIN_DIR . 'modules/masterbar/masterbar/class-masterbar.php';
|
||||
new Masterbar();
|
||||
}
|
||||
|
||||
public function remove_core_menus() {
|
||||
|
|
|
|||
|
|
@ -288,8 +288,8 @@ class Masterbar {
|
|||
wp_enqueue_script(
|
||||
'a8c_wpcom_masterbar_tracks_events',
|
||||
Assets::get_file_url_for_environment(
|
||||
'_inc/build/masterbar/tracks-events.min.js',
|
||||
'modules/masterbar/tracks-events.js'
|
||||
'_inc/build/masterbar/masterbar/tracks-events.min.js',
|
||||
'modules/masterbar/masterbar/tracks-events.js'
|
||||
),
|
||||
array( 'jquery' ),
|
||||
JETPACK__VERSION,
|
||||
|
|
|
|||
|
|
@ -183,8 +183,8 @@ $assets = array (
|
|||
178 => '_inc/build/custom-post-types/js/nova-drag-drop.min.js',
|
||||
179 => '_inc/build/custom-post-types/js/many-items.min.js',
|
||||
180 => '_inc/build/custom-post-types/js/menu-checkboxes.min.js',
|
||||
181 => '_inc/build/instant-search/jp-search.chunk-1-26fd3bc862e3521d00a8.js',
|
||||
182 => '_inc/build/instant-search/jp-search.bundle.js',
|
||||
181 => '_inc/build/instant-search/jp-search.bundle.js',
|
||||
182 => '_inc/build/instant-search/jp-search.chunk-1-e052740f2f86553f7f9c.js',
|
||||
183 => '_inc/build/instant-search/jp-search.bundle.rtl.css',
|
||||
184 => '_inc/build/instant-search/jp-search.bundle.css',
|
||||
185 => '_inc/build/jquery.jetpack-resize.min.js',
|
||||
|
|
|
|||
|
|
@ -14,6 +14,26 @@ function twentytwentyone_jetpack_setup() {
|
|||
* Add theme support for geo-location.
|
||||
*/
|
||||
add_theme_support( 'jetpack-geo-location' );
|
||||
|
||||
/**
|
||||
* Add theme support for Content Options.
|
||||
*/
|
||||
add_theme_support(
|
||||
'jetpack-content-options',
|
||||
array(
|
||||
'blog-display' => array( 'content', 'excerpt' ),
|
||||
'post-details' => array(
|
||||
'stylesheet' => 'twenty-twenty-one-style',
|
||||
'date' => '.posted-on',
|
||||
'categories' => '.cat-links',
|
||||
),
|
||||
'featured-images' => array(
|
||||
'archive' => true,
|
||||
'post' => true,
|
||||
'page' => true,
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentytwentyone_jetpack_setup' );
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
=== Jetpack - WP Security, Backup, Speed, & Growth ===
|
||||
Contributors: automattic, adamkheckler, aduth, akirk, allendav, alternatekev, andy, annezazu, apeatling, azaozz, batmoo, barry, beaulebens, biskobe, blobaugh, brbrr, cainm, cena, cfinke, chaselivingston, chellycat, clickysteve, csonnek, danielbachhuber, davoraltman, daniloercoli, delawski, designsimply, dllh, drawmyface, dsmart, dzver, ebinnion, egregor, eliorivero, enej, eoigal, erania-pinnera, ethitter, fgiannar, gcorne, georgestephanis, gibrown, goldsounds, hew, hugobaeta, hypertextranch, iammattthomas, iandunn, jblz, jasmussen, jeffgolenski, jeherve, jenhooks, jenia, jessefriedman, jgs, jkudish, jmdodd, joanrho, johnjamesjacoby, jshreve, kbrownkd, keoshi, koke, kraftbj, lancewillett, leogermani, lschuyler, macmanx, martinremy, matt, matveb, mattwiebe, maverick3x6, mcsf, mdawaffe, mdbitz, MichaelArestad, migueluy, mikeyarce, mkaz, nancythanki, nickmomrik, obenland, oskosk, pento, professor44, rachelsquirrel, rdcoll, ryancowles, richardmuscat, richardmtl, robertbpugh, roccotripaldi, samhotchkiss, scarstocea, scottsweb, sdquirk, sermitr, simison, stephdau, tmoorewp, tyxla, Viper007Bond, westi, yoavf, zinigor
|
||||
Tags: WP, backup, social, AMP, WooCommerce, malware, scan, spam, CDN, social
|
||||
Stable tag: 9.1
|
||||
Stable tag: 9.2.1
|
||||
Requires at least: 5.5
|
||||
Requires PHP: 5.6
|
||||
Tested up to: 5.6
|
||||
|
|
@ -243,6 +243,21 @@ Our Cookie and Consent Banner can help you comply with GDPR. The European Union
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 9.2.1 =
|
||||
|
||||
* Release date: December 10, 2020
|
||||
|
||||
**Improved compatibility**
|
||||
|
||||
* Site Health Tools: improve PHP 8 compatibility.
|
||||
* Twenty Twenty One: add support for Jetpack's Content Options.
|
||||
|
||||
**Bug fixes**
|
||||
|
||||
* Instant Search: fix layout issues with filtering checkboxes with some themes.
|
||||
* WordPress.com Toolbar: avoid Fatal errors when the feature is not active.
|
||||
* WordPress.com Toolbar: avoid 404 errors when loading the toolbar.
|
||||
|
||||
= 9.2 =
|
||||
|
||||
* Release date: December 1, 2020
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit7d7a83344d3b2ded1a3491aa12e59d99::getLoader();
|
||||
return ComposerAutoloaderInit2aa52323e0b287da03f99e87bcdacaad::getLoader();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ private static $installed = array (
|
|||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '5687756eda3d6efef7b439f432c90abadcb28987',
|
||||
'reference' => '05791160868513583fb03b109b1d6ae9ea513e0c',
|
||||
'name' => 'automattic/jetpack',
|
||||
),
|
||||
'versions' =>
|
||||
|
|
@ -31,7 +31,7 @@ private static $installed = array (
|
|||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '5687756eda3d6efef7b439f432c90abadcb28987',
|
||||
'reference' => '05791160868513583fb03b109b1d6ae9ea513e0c',
|
||||
),
|
||||
'automattic/jetpack-a8c-mc-stats' =>
|
||||
array (
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit7d7a83344d3b2ded1a3491aa12e59d99
|
||||
class ComposerAutoloaderInit2aa52323e0b287da03f99e87bcdacaad
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
|
@ -24,15 +24,15 @@ class ComposerAutoloaderInit7d7a83344d3b2ded1a3491aa12e59d99
|
|||
|
||||
require __DIR__ . '/platform_check.php';
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit7d7a83344d3b2ded1a3491aa12e59d99', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2aa52323e0b287da03f99e87bcdacaad', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit7d7a83344d3b2ded1a3491aa12e59d99', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2aa52323e0b287da03f99e87bcdacaad', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
|
@ -44,19 +44,19 @@ class ComposerAutoloaderInit7d7a83344d3b2ded1a3491aa12e59d99
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire7d7a83344d3b2ded1a3491aa12e59d99($fileIdentifier, $file);
|
||||
composerRequire2aa52323e0b287da03f99e87bcdacaad($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire7d7a83344d3b2ded1a3491aa12e59d99($fileIdentifier, $file)
|
||||
function composerRequire2aa52323e0b287da03f99e87bcdacaad($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99
|
||||
class ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad
|
||||
{
|
||||
public static $files = array (
|
||||
'bce4ecd6aabb2a2948e06d0e2c4ea9a6' => __DIR__ . '/..' . '/automattic/jetpack-connection/legacy/load-ixr.php',
|
||||
|
|
@ -148,10 +148,10 @@ class ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99::$prefixDirsPsr4;
|
||||
$loader->prefixesPsr0 = ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99::$prefixesPsr0;
|
||||
$loader->classMap = ComposerStaticInit7d7a83344d3b2ded1a3491aa12e59d99::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad::$prefixDirsPsr4;
|
||||
$loader->prefixesPsr0 = ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad::$prefixesPsr0;
|
||||
$loader->classMap = ComposerStaticInit2aa52323e0b287da03f99e87bcdacaad::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '5687756eda3d6efef7b439f432c90abadcb28987',
|
||||
'reference' => '05791160868513583fb03b109b1d6ae9ea513e0c',
|
||||
'name' => 'automattic/jetpack',
|
||||
),
|
||||
'versions' =>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
'aliases' =>
|
||||
array (
|
||||
),
|
||||
'reference' => '5687756eda3d6efef7b439f432c90abadcb28987',
|
||||
'reference' => '05791160868513583fb03b109b1d6ae9ea513e0c',
|
||||
),
|
||||
'automattic/jetpack-a8c-mc-stats' =>
|
||||
array (
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* @package automattic/jetpack-autoloader
|
||||
*/
|
||||
|
||||
namespace Automattic\Jetpack\Autoloader\jp7d7a83344d3b2ded1a3491aa12e59d99;
|
||||
namespace Automattic\Jetpack\Autoloader\jp2aa52323e0b287da03f99e87bcdacaad;
|
||||
|
||||
// phpcs:ignore
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
<ol>
|
||||
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
||||
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
||||
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
||||
<em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
|
||||
</li>
|
||||
<li>If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
|
||||
<pre><code> <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
|
||||
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
|
||||
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
||||
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
|
||||
<li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
|
||||
</ol>
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright (C) 2010
|
||||
# This file is distributed under the same license as the package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-lightbox-2\n"
|
||||
"POT-Creation-Date: 2011-11-27 17:40:12+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
#: options.php:17
|
||||
msgid "WP Lightbox 2 Options"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:22
|
||||
msgid "Lightbox Appearance"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:54
|
||||
msgid "If in doubt, try the Black theme"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:58
|
||||
msgid "Auto-lightbox image links"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:68
|
||||
msgid "Let the plugin add necessary html to image links"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:71
|
||||
msgid "Shrink large images to fit smaller screens"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:81
|
||||
msgid ""
|
||||
"Note: <u>Excessively large images</u> waste bandwidth and slow browsing!"
|
||||
msgstr ""
|
||||
|
||||
#: options.php:87
|
||||
msgid "Save Changes"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,339 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# wp-lightbox-2
|
||||
Repository for the WP Lightbox 2 WordPress plugin.
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
require_once($this->plugin_path.'admin/general_settings.php');
|
||||
|
||||
class wp_lightbox_admin_menu{
|
||||
|
||||
private $menu_name;
|
||||
|
||||
private $databese_parametrs;
|
||||
|
||||
private $plugin_url;
|
||||
|
||||
private $plugin_path;
|
||||
|
||||
private $text_parametrs;
|
||||
|
||||
public $wp_lightbox_2_general_settings_page;
|
||||
|
||||
function __construct($param){
|
||||
$this->menu_name='WP Lightbox 2';
|
||||
$this->databese_parametrs=$param['databese_parametrs']->get_general_settings;
|
||||
|
||||
$this->wp_lightbox_2_general_settings_page =new wp_lightbox_2_general_settings_page( array( 'plugin_url'=> $this->plugin_url, 'plugin_path' => $this->plugin_path,'databese_settings' =>$this->databese_parametrs));
|
||||
|
||||
// set plugin url
|
||||
if(isset($param['plugin_url']))
|
||||
$this->plugin_url=$param['plugin_url'];
|
||||
else
|
||||
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
|
||||
// set plugin path
|
||||
if(isset($param['plugin_path']))
|
||||
$this->plugin_path=$param['plugin_path'];
|
||||
else
|
||||
$this->plugin_path=trailingslashit(dirname(plugin_dir_path(__FILE__)));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// function for registr new button
|
||||
function poll_button_register($plugin_array)
|
||||
{
|
||||
$url = $this->plugin_url.'admin/scripts/editor_plugin.js';
|
||||
$plugin_array["poll_mce"] = $url;
|
||||
return $plugin_array;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function window_for_inserting_contentt(){}
|
||||
public function create_menu(){
|
||||
|
||||
$manage_page_main = add_menu_page( $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this->wp_lightbox_2_general_settings_page, 'controller_page'),$this->plugin_url.'admin/images/icon_lightboxx2.png');
|
||||
add_submenu_page( str_replace( ' ', '-', $this->menu_name), 'General settings', 'General settings', 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this->wp_lightbox_2_general_settings_page, 'controller_page'));
|
||||
add_action('admin_print_styles-' .$manage_page_main, array($this,'menu_requeried_scripts'));
|
||||
}
|
||||
public function menu_requeried_scripts(){
|
||||
wp_enqueue_script('jquery-ui-style');
|
||||
wp_enqueue_script('jquery');
|
||||
wp_enqueue_script('jquery-ui-core');
|
||||
wp_enqueue_script("jquery-ui-widget");
|
||||
wp_enqueue_script("jquery-ui-mouse");
|
||||
wp_enqueue_script("jquery-ui-slider");
|
||||
wp_enqueue_script("jquery-ui-sortable");
|
||||
wp_enqueue_script('wp-color-picker');
|
||||
wp_enqueue_style("jquery-ui-style");
|
||||
wp_enqueue_style("admin_style_wp_lightbox");
|
||||
wp_enqueue_style( 'wp-color-picker' );
|
||||
add_thickbox();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,243 @@
|
|||
<?php
|
||||
class wp_lightbox_2_general_settings_page{
|
||||
private $menu_name;
|
||||
private $databese_settings;
|
||||
public $initial_values;
|
||||
|
||||
|
||||
function __construct($params){
|
||||
// set plugin url
|
||||
if(isset($params['plugin_url']))
|
||||
$this->plugin_url=$params['plugin_url'];
|
||||
else
|
||||
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
|
||||
// set plugin path
|
||||
if(isset($params['plugin_path']))
|
||||
$this->plugin_path=$params['plugin_path'];
|
||||
else
|
||||
$this->plugin_path=trailingslashit(dirname(plugin_dir_path('',__FILE__)));
|
||||
|
||||
$this->databese_settings=$params['databese_settings'];
|
||||
|
||||
/*ajax parametrs*/
|
||||
add_action( 'wp_ajax_save_in_databese_lightbox2', array($this,'save_parametrs') );
|
||||
|
||||
}
|
||||
public function save_parametrs(){
|
||||
$initial_values= $this->databese_settings;
|
||||
$kk=1;
|
||||
if(isset($_POST['wp_lightbox_2_general_settings_page']) && wp_verify_nonce( $_POST['wp_lightbox_2_general_settings_page'],'wp_lightbox_2_general_settings_page')){
|
||||
|
||||
foreach($initial_values as $key => $value){
|
||||
if(isset($_POST[$key])){
|
||||
update_option($key,stripslashes($_POST[$key]));
|
||||
}
|
||||
else{
|
||||
$kk=0;
|
||||
printf('error saving %s <br>',$key);
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
die('Authorization Problem ');
|
||||
}
|
||||
if($kk==0){
|
||||
exit;
|
||||
}
|
||||
die('sax_normala');
|
||||
}
|
||||
/*#################### CONTROLERRR ########################*/
|
||||
/*#################### CONTROLERRR ########################*/
|
||||
/*#################### CONTROLERRR ########################*/
|
||||
public function controller_page(){
|
||||
|
||||
$this->display_table_list_answers();
|
||||
}
|
||||
|
||||
|
||||
private function display_table_list_answers(){
|
||||
|
||||
$initial_values= $this->databese_settings;
|
||||
foreach($initial_values as $key => $value){
|
||||
$$key=$value;
|
||||
}
|
||||
?>
|
||||
|
||||
<style>
|
||||
.popup_settings{
|
||||
<?php echo $youtube_plus_show_popup?'':'display:none;'; ?>
|
||||
}
|
||||
</style>
|
||||
<h2>Lightbox General Settings</h2>
|
||||
<div class="main_yutube_plus_params">
|
||||
<table class="wp-list-table widefat fixed posts wp_lightbox2_settings_table" style="width: 900px; min-width:320px !important;table-layout: fixed;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="50%">
|
||||
<span> Lightbox General Settings </span>
|
||||
</th>
|
||||
<th width="50%">
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="parametr_chechbox">
|
||||
<td>
|
||||
Use Lightbox for all image links: <span title="Enable or disable the lightbox." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="jqlb_automate_checkbox" id="jqlb_automate_checkbox" <?php checked($jqlb_automate,'1'); ?> value="1">
|
||||
<input type="hidden" name="jqlb_automate" id="jqlb_automate" value="<?php echo $jqlb_automate; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="parametr_chechbox">
|
||||
<td>
|
||||
Enable lightbox in comments: <span title="This feature will enable lightbox for your comments. " class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="jqlb_comments_checkbox" id="jqlb_comments_checkbox" <?php checked($jqlb_comments,'1'); ?> value="1">
|
||||
<input type="hidden" name="jqlb_comments" id="jqlb_comments" value="<?php echo $jqlb_comments; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="parametr_chechbox">
|
||||
<td>
|
||||
Show download link: <span title="You can display download link." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="jqlb_show_download_checkbox" id="jqlb_show_download_checkbox" <?php checked($jqlb_show_download,'1'); ?> value="1">
|
||||
<input type="hidden" name="jqlb_show_download" id="jqlb_show_download" value="<?php echo $jqlb_show_download; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Overlay opacity: <span title="Set overlay opacity for lightbox." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="100" step="1" name="jqlb_overlay_opacity" id="jqlb_overlay_opacity" value="<?php echo $jqlb_overlay_opacity; ?>"><span class="befor_input_small_desc">%</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="parametr_chechbox">
|
||||
<td>
|
||||
Show image info on top: <span title="Choose image info position." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="jqlb_navbarOnTop_checkbox" id="jqlb_navbarOnTop_checkbox" <?php checked($jqlb_navbarOnTop,'1'); ?> value="1">
|
||||
<input type="hidden" name="jqlb_navbarOnTop" id="jqlb_navbarOnTop" value="<?php echo $jqlb_navbarOnTop; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="parametr_chechbox">
|
||||
<td>
|
||||
Reduce large images to fit smaller screens: <span title="We recommend to enable this option, it will reduce large images to fit smaller screens." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="jqlb_resize_on_demand_checkbox" id="jqlb_resize_on_demand_checkbox" <?php checked($jqlb_resize_on_demand,'1'); ?> value="1">
|
||||
<input type="hidden" name="jqlb_resize_on_demand" id="jqlb_resize_on_demand" value="<?php echo $jqlb_resize_on_demand; ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Minimum margin from top: <span title="You can change image position from top." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="999" step="1" name="jqlb_margin_size" id="jqlb_margin_size" value="<?php echo $jqlb_margin_size; ?>"><span class="befor_input_small_desc">(default: 0)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Lightbox Animation duration: <span title="Type here animation duration for lightbox." class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" min="0" max="9999999" step="1" name="jqlb_resize_speed" id="jqlb_resize_speed" value="<?php echo $jqlb_resize_speed; ?>"><span class="befor_input_small_desc">(milliseconds)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Additional text below image info: <span title="Type here text, and it will appear below images. " class="desription_class">?</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="jqlb_help_text" id="jqlb_help_text" value="<?php echo $jqlb_help_text; ?>"><span class="befor_input_small_desc">(default: none)</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="2" width="100%"><button type="button" id="save_button_general" class="save_button button button-primary"><span class="save_button_span">Save Settings</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<ol>
|
||||
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
||||
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
||||
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
||||
<em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
|
||||
</li>
|
||||
<li>If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
|
||||
<pre><code> <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
|
||||
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
|
||||
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
||||
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
|
||||
<li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
|
||||
</ol>
|
||||
|
||||
<?php wp_nonce_field('wp_lightbox_2_general_settings_page','wp_lightbox_2_general_settings_page'); ?>
|
||||
</div><br /><br /><span class="error_massage"></span>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
jQuery(document).ready(function(e) {
|
||||
|
||||
jQuery('#save_button_general').click(function(){
|
||||
|
||||
jQuery('#save_button_general').addClass('padding_loading');
|
||||
jQuery("#save_button_general").prop('disabled', true);
|
||||
jQuery('.saving_in_progress').css('display','inline-block');
|
||||
generete_checkbox('parametr_chechbox');
|
||||
|
||||
jQuery.ajax({
|
||||
type:'POST',
|
||||
url: "<?php echo admin_url( 'admin-ajax.php?action=save_in_databese_lightbox2' ); ?>",
|
||||
data: {wp_lightbox_2_general_settings_page:jQuery('#wp_lightbox_2_general_settings_page').val()<?php foreach($initial_values as $key => $value){echo ','.$key.':jQuery("#'.$key.'").val()';} ?>},
|
||||
}).done(function(date) {
|
||||
if(date=='sax_normala'){
|
||||
console.log
|
||||
jQuery('.saving_in_progress').css('display','none');
|
||||
jQuery('.sucsses_save').css('display','inline-block');
|
||||
setTimeout(function(){jQuery('.sucsses_save').css('display','none');jQuery('#save_button_general').removeClass('padding_loading');jQuery("#save_button_general").prop('disabled', false);},2500);
|
||||
}else{
|
||||
jQuery('.saving_in_progress').css('display','none');
|
||||
jQuery('.error_in_saving').css('display','inline-block');
|
||||
jQuery('.error_massage').css('display','inline-block');
|
||||
jQuery('.error_massage').html(date);
|
||||
setTimeout(function(){jQuery('#save_button_general').removeClass('padding_loading');jQuery("#save_button_general").prop('disabled', false);},5000);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
function generete_radio_input(radio_class){
|
||||
jQuery('.'+radio_class).each(function(index, element) {
|
||||
jQuery(this).find('input[type=hidden]').val(jQuery(this).find('input[type=radio]:checked').val())
|
||||
});
|
||||
}
|
||||
function generete_checkbox(checkbox_class){
|
||||
jQuery('.'+checkbox_class).each(function(index, element) {
|
||||
if(jQuery(this).find('input[type=checkbox]').prop('checked'))
|
||||
jQuery(this).find('input[type=hidden]').val(jQuery(this).find('input[type=checkbox]:checked').val());
|
||||
else
|
||||
jQuery(this).find('input[type=hidden]').val(0);
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
|
@ -0,0 +1,216 @@
|
|||
/*
|
||||
AngularJS v1.2.26
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
*/
|
||||
(function(W,X,t){'use strict';function C(b){return function(){var a=arguments[0],c,a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.2.26/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURIComponent("function"==typeof arguments[c]?arguments[c].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[c]?"undefined":"string"!=typeof arguments[c]?JSON.stringify(arguments[c]):arguments[c]);return Error(a)}}function Pa(b){if(null==b||Ga(b))return!1;
|
||||
var a=b.length;return 1===b.nodeType&&a?!0:v(b)||J(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function r(b,a,c){var d;if(b)if(P(b))for(d in b)"prototype"==d||("length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d))||a.call(c,b[d],d);else if(J(b)||Pa(b))for(d=0;d<b.length;d++)a.call(c,b[d],d);else if(b.forEach&&b.forEach!==r)b.forEach(a,c);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function Zb(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}function Tc(b,
|
||||
a,c){for(var d=Zb(b),e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function $b(b){return function(a,c){b(c,a)}}function hb(){for(var b=ma.length,a;b;){b--;a=ma[b].charCodeAt(0);if(57==a)return ma[b]="A",ma.join("");if(90==a)ma[b]="0";else return ma[b]=String.fromCharCode(a+1),ma.join("")}ma.unshift("0");return ma.join("")}function ac(b,a){a?b.$$hashKey=a:delete b.$$hashKey}function D(b){var a=b.$$hashKey;r(arguments,function(a){a!==b&&r(a,function(a,c){b[c]=a})});ac(b,a);return b}function U(b){return parseInt(b,
|
||||
10)}function bc(b,a){return D(new (D(function(){},{prototype:b})),a)}function E(){}function Qa(b){return b}function ba(b){return function(){return b}}function x(b){return"undefined"===typeof b}function y(b){return"undefined"!==typeof b}function T(b){return null!=b&&"object"===typeof b}function v(b){return"string"===typeof b}function ib(b){return"number"===typeof b}function ta(b){return"[object Date]"===za.call(b)}function P(b){return"function"===typeof b}function jb(b){return"[object RegExp]"===za.call(b)}
|
||||
function Ga(b){return b&&b.document&&b.location&&b.alert&&b.setInterval}function Uc(b){return!(!b||!(b.nodeName||b.prop&&b.attr&&b.find))}function Vc(b,a,c){var d=[];r(b,function(b,f,g){d.push(a.call(c,b,f,g))});return d}function Ra(b,a){if(b.indexOf)return b.indexOf(a);for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}function Sa(b,a){var c=Ra(b,a);0<=c&&b.splice(c,1);return a}function Ha(b,a,c,d){if(Ga(b)||b&&b.$evalAsync&&b.$watch)throw Ta("cpws");if(a){if(b===a)throw Ta("cpi");c=c||[];
|
||||
d=d||[];if(T(b)){var e=Ra(c,b);if(-1!==e)return d[e];c.push(b);d.push(a)}if(J(b))for(var f=a.length=0;f<b.length;f++)e=Ha(b[f],null,c,d),T(b[f])&&(c.push(b[f]),d.push(e)),a.push(e);else{var g=a.$$hashKey;J(a)?a.length=0:r(a,function(b,c){delete a[c]});for(f in b)e=Ha(b[f],null,c,d),T(b[f])&&(c.push(b[f]),d.push(e)),a[f]=e;ac(a,g)}}else if(a=b)J(b)?a=Ha(b,[],c,d):ta(b)?a=new Date(b.getTime()):jb(b)?(a=RegExp(b.source,b.toString().match(/[^\/]*$/)[0]),a.lastIndex=b.lastIndex):T(b)&&(a=Ha(b,{},c,d));
|
||||
return a}function ha(b,a){if(J(b)){a=a||[];for(var c=0;c<b.length;c++)a[c]=b[c]}else if(T(b))for(c in a=a||{},b)!kb.call(b,c)||"$"===c.charAt(0)&&"$"===c.charAt(1)||(a[c]=b[c]);return a||b}function Aa(b,a){if(b===a)return!0;if(null===b||null===a)return!1;if(b!==b&&a!==a)return!0;var c=typeof b,d;if(c==typeof a&&"object"==c)if(J(b)){if(!J(a))return!1;if((c=b.length)==a.length){for(d=0;d<c;d++)if(!Aa(b[d],a[d]))return!1;return!0}}else{if(ta(b))return ta(a)?isNaN(b.getTime())&&isNaN(a.getTime())||b.getTime()===
|
||||
a.getTime():!1;if(jb(b)&&jb(a))return b.toString()==a.toString();if(b&&b.$evalAsync&&b.$watch||a&&a.$evalAsync&&a.$watch||Ga(b)||Ga(a)||J(a))return!1;c={};for(d in b)if("$"!==d.charAt(0)&&!P(b[d])){if(!Aa(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&a[d]!==t&&!P(a[d]))return!1;return!0}return!1}function Bb(b,a){var c=2<arguments.length?Ba.call(arguments,2):[];return!P(a)||a instanceof RegExp?a:c.length?function(){return arguments.length?a.apply(b,c.concat(Ba.call(arguments,
|
||||
0))):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}}function Wc(b,a){var c=a;"string"===typeof b&&"$"===b.charAt(0)?c=t:Ga(a)?c="$WINDOW":a&&X===a?c="$DOCUMENT":a&&(a.$evalAsync&&a.$watch)&&(c="$SCOPE");return c}function na(b,a){return"undefined"===typeof b?t:JSON.stringify(b,Wc,a?" ":null)}function cc(b){return v(b)?JSON.parse(b):b}function Ua(b){"function"===typeof b?b=!0:b&&0!==b.length?(b=K(""+b),b=!("f"==b||"0"==b||"false"==b||"no"==b||"n"==b||"[]"==b)):b=!1;
|
||||
return b}function ia(b){b=w(b).clone();try{b.empty()}catch(a){}var c=w("<div>").append(b).html();try{return 3===b[0].nodeType?K(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+K(b)})}catch(d){return K(c)}}function dc(b){try{return decodeURIComponent(b)}catch(a){}}function ec(b){var a={},c,d;r((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,"%20").split("="),d=dc(c[0]),y(d)&&(b=y(c[1])?dc(c[1]):!0,kb.call(a,d)?J(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Cb(b){var a=
|
||||
[];r(b,function(b,d){J(b)?r(b,function(b){a.push(Ca(d,!0)+(!0===b?"":"="+Ca(b,!0)))}):a.push(Ca(d,!0)+(!0===b?"":"="+Ca(b,!0)))});return a.length?a.join("&"):""}function lb(b){return Ca(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ca(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,a?"%20":"+")}function Xc(b,a){function c(a){a&&d.push(a)}var d=[b],e,f,g=["ng:app","ng-app","x-ng-app",
|
||||
"data-ng-app"],k=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;r(g,function(a){g[a]=!0;c(X.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(r(b.querySelectorAll("."+a),c),r(b.querySelectorAll("."+a+"\\:"),c),r(b.querySelectorAll("["+a+"]"),c))});r(d,function(a){if(!e){var b=k.exec(" "+a.className+" ");b?(e=a,f=(b[2]||"").replace(/\s+/g,",")):r(a.attributes,function(b){!e&&g[b.name]&&(e=a,f=b.value)})}});e&&a(e,f?[f]:[])}function fc(b,a){var c=function(){b=w(b);if(b.injector()){var c=b[0]===X?
|
||||
"document":ia(b);throw Ta("btstrpd",c.replace(/</,"<").replace(/>/,">"));}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);a.unshift("ng");c=gc(a);c.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(a,b,c,d,e){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},d=/^NG_DEFER_BOOTSTRAP!/;if(W&&!d.test(W.name))return c();W.name=W.name.replace(d,"");Va.resumeBootstrap=function(b){r(b,function(b){a.push(b)});c()}}function mb(b,a){a=
|
||||
a||"_";return b.replace(Yc,function(b,d){return(d?a:"")+b.toLowerCase()})}function Db(b,a,c){if(!b)throw Ta("areq",a||"?",c||"required");return b}function Wa(b,a,c){c&&J(b)&&(b=b[b.length-1]);Db(P(b),a,"not a function, got "+(b&&"object"===typeof b?b.constructor.name||"Object":typeof b));return b}function Da(b,a){if("hasOwnProperty"===b)throw Ta("badname",a);}function hc(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,f=a.length,g=0;g<f;g++)d=a[g],b&&(b=(e=b)[d]);return!c&&P(b)?Bb(e,b):b}function Eb(b){var a=
|
||||
b[0];b=b[b.length-1];if(a===b)return w(a);var c=[a];do{a=a.nextSibling;if(!a)break;c.push(a)}while(a!==b);return w(c)}function Zc(b){var a=C("$injector"),c=C("ng");b=b.angular||(b.angular={});b.$$minErr=b.$$minErr||C;return b.module||(b.module=function(){var b={};return function(e,f,g){if("hasOwnProperty"===e)throw c("badname","module");f&&b.hasOwnProperty(e)&&(b[e]=null);return b[e]||(b[e]=function(){function b(a,d,e){return function(){c[e||"push"]([a,d,arguments]);return n}}if(!f)throw a("nomod",
|
||||
e);var c=[],d=[],l=b("$injector","invoke"),n={_invokeQueue:c,_runBlocks:d,requires:f,name:e,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:b("$provide","value"),constant:b("$provide","constant","unshift"),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),config:l,run:function(a){d.push(a);return this}};g&&l(g);return n}())}}())}
|
||||
function $c(b){D(b,{bootstrap:fc,copy:Ha,extend:D,equals:Aa,element:w,forEach:r,injector:gc,noop:E,bind:Bb,toJson:na,fromJson:cc,identity:Qa,isUndefined:x,isDefined:y,isString:v,isFunction:P,isObject:T,isNumber:ib,isElement:Uc,isArray:J,version:ad,isDate:ta,lowercase:K,uppercase:Ia,callbacks:{counter:0},$$minErr:C,$$csp:Xa});Ya=Zc(W);try{Ya("ngLocale")}catch(a){Ya("ngLocale",[]).provider("$locale",bd)}Ya("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:cd});a.provider("$compile",
|
||||
ic).directive({a:dd,input:jc,textarea:jc,form:ed,script:fd,select:gd,style:hd,option:id,ngBind:jd,ngBindHtml:kd,ngBindTemplate:ld,ngClass:md,ngClassEven:nd,ngClassOdd:od,ngCloak:pd,ngController:qd,ngForm:rd,ngHide:sd,ngIf:td,ngInclude:ud,ngInit:vd,ngNonBindable:wd,ngPluralize:xd,ngRepeat:yd,ngShow:zd,ngStyle:Ad,ngSwitch:Bd,ngSwitchWhen:Cd,ngSwitchDefault:Dd,ngOptions:Ed,ngTransclude:Fd,ngModel:Gd,ngList:Hd,ngChange:Id,required:kc,ngRequired:kc,ngValue:Jd}).directive({ngInclude:Kd}).directive(Fb).directive(lc);
|
||||
a.provider({$anchorScroll:Ld,$animate:Md,$browser:Nd,$cacheFactory:Od,$controller:Pd,$document:Qd,$exceptionHandler:Rd,$filter:mc,$interpolate:Sd,$interval:Td,$http:Ud,$httpBackend:Vd,$location:Wd,$log:Xd,$parse:Yd,$rootScope:Zd,$q:$d,$sce:ae,$sceDelegate:be,$sniffer:ce,$templateCache:de,$timeout:ee,$window:fe,$$rAF:ge,$$asyncCallback:he})}])}function Za(b){return b.replace(ie,function(a,b,d,e){return e?d.toUpperCase():d}).replace(je,"Moz$1")}function Gb(b,a,c,d){function e(b){var e=c&&b?[this.filter(b)]:
|
||||
[this],m=a,h,l,n,p,q,s;if(!d||null!=b)for(;e.length;)for(h=e.shift(),l=0,n=h.length;l<n;l++)for(p=w(h[l]),m?p.triggerHandler("$destroy"):m=!m,q=0,p=(s=p.children()).length;q<p;q++)e.push(Ea(s[q]));return f.apply(this,arguments)}var f=Ea.fn[b],f=f.$original||f;e.$original=f;Ea.fn[b]=e}function S(b){if(b instanceof S)return b;v(b)&&(b=aa(b));if(!(this instanceof S)){if(v(b)&&"<"!=b.charAt(0))throw Hb("nosel");return new S(b)}if(v(b)){var a=b;b=X;var c;if(c=ke.exec(a))b=[b.createElement(c[1])];else{var d=
|
||||
b,e;b=d.createDocumentFragment();c=[];if(Ib.test(a)){d=b.appendChild(d.createElement("div"));e=(le.exec(a)||["",""])[1].toLowerCase();e=ea[e]||ea._default;d.innerHTML="<div> </div>"+e[1]+a.replace(me,"<$1></$2>")+e[2];d.removeChild(d.firstChild);for(a=e[0];a--;)d=d.lastChild;a=0;for(e=d.childNodes.length;a<e;++a)c.push(d.childNodes[a]);d=b.firstChild;d.textContent=""}else c.push(d.createTextNode(a));b.textContent="";b.innerHTML="";b=c}Jb(this,b);w(X.createDocumentFragment()).append(this)}else Jb(this,
|
||||
b)}function Kb(b){return b.cloneNode(!0)}function Ja(b){Lb(b);var a=0;for(b=b.childNodes||[];a<b.length;a++)Ja(b[a])}function nc(b,a,c,d){if(y(d))throw Hb("offargs");var e=oa(b,"events");oa(b,"handle")&&(x(a)?r(e,function(a,c){$a(b,c,a);delete e[c]}):r(a.split(" "),function(a){x(c)?($a(b,a,e[a]),delete e[a]):Sa(e[a]||[],c)}))}function Lb(b,a){var c=b.ng339,d=ab[c];d&&(a?delete ab[c].data[a]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),nc(b)),delete ab[c],b.ng339=t))}function oa(b,a,c){var d=
|
||||
b.ng339,d=ab[d||-1];if(y(c))d||(b.ng339=d=++ne,d=ab[d]={}),d[a]=c;else return d&&d[a]}function Mb(b,a,c){var d=oa(b,"data"),e=y(c),f=!e&&y(a),g=f&&!T(a);d||g||oa(b,"data",d={});if(e)d[a]=c;else if(f){if(g)return d&&d[a];D(d,a)}else return d}function Nb(b,a){return b.getAttribute?-1<(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" "):!1}function nb(b,a){a&&b.setAttribute&&r(a.split(" "),function(a){b.setAttribute("class",aa((" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g,
|
||||
" ").replace(" "+aa(a)+" "," ")))})}function ob(b,a){if(a&&b.setAttribute){var c=(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(a.split(" "),function(a){a=aa(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});b.setAttribute("class",aa(c))}}function Jb(b,a){if(a){a=a.nodeName||!y(a.length)||Ga(a)?[a]:a;for(var c=0;c<a.length;c++)b.push(a[c])}}function oc(b,a){return pb(b,"$"+(a||"ngController")+"Controller")}function pb(b,a,c){9==b.nodeType&&(b=b.documentElement);for(a=J(a)?a:[a];b;){for(var d=
|
||||
0,e=a.length;d<e;d++)if((c=w.data(b,a[d]))!==t)return c;b=b.parentNode||11===b.nodeType&&b.host}}function pc(b){for(var a=0,c=b.childNodes;a<c.length;a++)Ja(c[a]);for(;b.firstChild;)b.removeChild(b.firstChild)}function qc(b,a){var c=qb[a.toLowerCase()];return c&&rc[b.nodeName]&&c}function oe(b,a){var c=function(c,e){c.preventDefault||(c.preventDefault=function(){c.returnValue=!1});c.stopPropagation||(c.stopPropagation=function(){c.cancelBubble=!0});c.target||(c.target=c.srcElement||X);if(x(c.defaultPrevented)){var f=
|
||||
c.preventDefault;c.preventDefault=function(){c.defaultPrevented=!0;f.call(c)};c.defaultPrevented=!1}c.isDefaultPrevented=function(){return c.defaultPrevented||!1===c.returnValue};var g=ha(a[e||c.type]||[]);r(g,function(a){a.call(b,c)});8>=Q?(c.preventDefault=null,c.stopPropagation=null,c.isDefaultPrevented=null):(delete c.preventDefault,delete c.stopPropagation,delete c.isDefaultPrevented)};c.elem=b;return c}function Ka(b,a){var c=typeof b,d;"function"==c||"object"==c&&null!==b?"function"==typeof(d=
|
||||
b.$$hashKey)?d=b.$$hashKey():d===t&&(d=b.$$hashKey=(a||hb)()):d=b;return c+":"+d}function bb(b,a){if(a){var c=0;this.nextUid=function(){return++c}}r(b,this.put,this)}function sc(b){var a,c;"function"===typeof b?(a=b.$inject)||(a=[],b.length&&(c=b.toString().replace(pe,""),c=c.match(qe),r(c[1].split(re),function(b){b.replace(se,function(b,c,d){a.push(d)})})),b.$inject=a):J(b)?(c=b.length-1,Wa(b[c],"fn"),a=b.slice(0,c)):Wa(b,"fn",!0);return a}function gc(b){function a(a){return function(b,c){if(T(b))r(b,
|
||||
$b(a));else return a(b,c)}}function c(a,b){Da(a,"service");if(P(b)||J(b))b=n.instantiate(b);if(!b.$get)throw cb("pget",a);return l[a+k]=b}function d(a,b){return c(a,{$get:b})}function e(a){var b=[],c,d,f,k;r(a,function(a){if(!h.get(a)){h.put(a,!0);try{if(v(a))for(c=Ya(a),b=b.concat(e(c.requires)).concat(c._runBlocks),d=c._invokeQueue,f=0,k=d.length;f<k;f++){var g=d[f],m=n.get(g[0]);m[g[1]].apply(m,g[2])}else P(a)?b.push(n.invoke(a)):J(a)?b.push(n.invoke(a)):Wa(a,"module")}catch(l){throw J(a)&&(a=
|
||||
a[a.length-1]),l.message&&(l.stack&&-1==l.stack.indexOf(l.message))&&(l=l.message+"\n"+l.stack),cb("modulerr",a,l.stack||l.message||l);}}});return b}function f(a,b){function c(d){if(a.hasOwnProperty(d)){if(a[d]===g)throw cb("cdep",d+" <- "+m.join(" <- "));return a[d]}try{return m.unshift(d),a[d]=g,a[d]=b(d)}catch(e){throw a[d]===g&&delete a[d],e;}finally{m.shift()}}function d(a,b,e){var f=[],k=sc(a),g,m,h;m=0;for(g=k.length;m<g;m++){h=k[m];if("string"!==typeof h)throw cb("itkn",h);f.push(e&&e.hasOwnProperty(h)?
|
||||
e[h]:c(h))}J(a)&&(a=a[g]);return a.apply(b,f)}return{invoke:d,instantiate:function(a,b){var c=function(){},e;c.prototype=(J(a)?a[a.length-1]:a).prototype;c=new c;e=d(a,c,b);return T(e)||P(e)?e:c},get:c,annotate:sc,has:function(b){return l.hasOwnProperty(b+k)||a.hasOwnProperty(b)}}}var g={},k="Provider",m=[],h=new bb([],!0),l={$provide:{provider:a(c),factory:a(d),service:a(function(a,b){return d(a,["$injector",function(a){return a.instantiate(b)}])}),value:a(function(a,b){return d(a,ba(b))}),constant:a(function(a,
|
||||
b){Da(a,"constant");l[a]=b;p[a]=b}),decorator:function(a,b){var c=n.get(a+k),d=c.$get;c.$get=function(){var a=q.invoke(d,c);return q.invoke(b,null,{$delegate:a})}}}},n=l.$injector=f(l,function(){throw cb("unpr",m.join(" <- "));}),p={},q=p.$injector=f(p,function(a){a=n.get(a+k);return q.invoke(a.$get,a)});r(e(b),function(a){q.invoke(a||E)});return q}function Ld(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;
|
||||
r(a,function(a){b||"a"!==K(a.nodeName)||(b=a)});return b}function f(){var b=c.hash(),d;b?(d=g.getElementById(b))?d.scrollIntoView():(d=e(g.getElementsByName(b)))?d.scrollIntoView():"top"===b&&a.scrollTo(0,0):a.scrollTo(0,0)}var g=a.document;b&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(f)});return f}]}function he(){this.$get=["$$rAF","$timeout",function(b,a){return b.supported?function(a){return b(a)}:function(b){return a(b,0,!1)}}]}function te(b,a,c,d){function e(a){try{a.apply(null,
|
||||
Ba.call(arguments,1))}finally{if(s--,0===s)for(;F.length;)try{F.pop()()}catch(b){c.error(b)}}}function f(a,b){(function fa(){r(u,function(a){a()});A=b(fa,a)})()}function g(){z=null;N!=k.url()&&(N=k.url(),r(ca,function(a){a(k.url())}))}var k=this,m=a[0],h=b.location,l=b.history,n=b.setTimeout,p=b.clearTimeout,q={};k.isMock=!1;var s=0,F=[];k.$$completeOutstandingRequest=e;k.$$incOutstandingRequestCount=function(){s++};k.notifyWhenNoOutstandingRequests=function(a){r(u,function(a){a()});0===s?a():F.push(a)};
|
||||
var u=[],A;k.addPollFn=function(a){x(A)&&f(100,n);u.push(a);return a};var N=h.href,R=a.find("base"),z=null;k.url=function(a,c){h!==b.location&&(h=b.location);l!==b.history&&(l=b.history);if(a){if(N!=a)return N=a,d.history?c?l.replaceState(null,"",a):(l.pushState(null,"",a),R.attr("href",R.attr("href"))):(z=a,c?h.replace(a):h.href=a),k}else return z||h.href.replace(/%27/g,"'")};var ca=[],L=!1;k.onUrlChange=function(a){if(!L){if(d.history)w(b).on("popstate",g);if(d.hashchange)w(b).on("hashchange",g);
|
||||
else k.addPollFn(g);L=!0}ca.push(a);return a};k.$$checkUrlChange=g;k.baseHref=function(){var a=R.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var O={},da="",B=k.baseHref();k.cookies=function(a,b){var d,e,f,k;if(a)b===t?m.cookie=escape(a)+"=;path="+B+";expires=Thu, 01 Jan 1970 00:00:00 GMT":v(b)&&(d=(m.cookie=escape(a)+"="+escape(b)+";path="+B).length+1,4096<d&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"));else{if(m.cookie!==
|
||||
da)for(da=m.cookie,d=da.split("; "),O={},f=0;f<d.length;f++)e=d[f],k=e.indexOf("="),0<k&&(a=unescape(e.substring(0,k)),O[a]===t&&(O[a]=unescape(e.substring(k+1))));return O}};k.defer=function(a,b){var c;s++;c=n(function(){delete q[c];e(a)},b||0);q[c]=!0;return c};k.defer.cancel=function(a){return q[a]?(delete q[a],p(a),e(E),!0):!1}}function Nd(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new te(b,d,a,c)}]}function Od(){this.$get=function(){function b(b,d){function e(a){a!=
|
||||
n&&(p?p==a&&(p=a.n):p=a,f(a.n,a.p),f(a,n),n=a,n.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(b in a)throw C("$cacheFactory")("iid",b);var g=0,k=D({},d,{id:b}),m={},h=d&&d.capacity||Number.MAX_VALUE,l={},n=null,p=null;return a[b]={put:function(a,b){if(h<Number.MAX_VALUE){var c=l[a]||(l[a]={key:a});e(c)}if(!x(b))return a in m||g++,m[a]=b,g>h&&this.remove(p.key),b},get:function(a){if(h<Number.MAX_VALUE){var b=l[a];if(!b)return;e(b)}return m[a]},remove:function(a){if(h<Number.MAX_VALUE){var b=
|
||||
l[a];if(!b)return;b==n&&(n=b.p);b==p&&(p=b.n);f(b.n,b.p);delete l[a]}delete m[a];g--},removeAll:function(){m={};g=0;l={};n=p=null},destroy:function(){l=k=m=null;delete a[b]},info:function(){return D({},k,{size:g})}}}var a={};b.info=function(){var b={};r(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function de(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function ic(b,a){var c={},d="Directive",e=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,f=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,
|
||||
g=/^(on[a-z]+|formaction)$/;this.directive=function m(a,e){Da(a,"directive");v(a)?(Db(e,"directiveFactory"),c.hasOwnProperty(a)||(c[a]=[],b.factory(a+d,["$injector","$exceptionHandler",function(b,d){var e=[];r(c[a],function(c,f){try{var g=b.invoke(c);P(g)?g={compile:ba(g)}:!g.compile&&g.link&&(g.compile=ba(g.link));g.priority=g.priority||0;g.index=f;g.name=g.name||a;g.require=g.require||g.controller&&g.name;g.restrict=g.restrict||"A";e.push(g)}catch(m){d(m)}});return e}])),c[a].push(e)):r(a,$b(m));
|
||||
return this};this.aHrefSanitizationWhitelist=function(b){return y(b)?(a.aHrefSanitizationWhitelist(b),this):a.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(b){return y(b)?(a.imgSrcSanitizationWhitelist(b),this):a.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,b,l,n,p,q,s,F,u,A,N,R){function z(a,b,c,d,e){a instanceof
|
||||
w||(a=w(a));r(a,function(b,c){3==b.nodeType&&b.nodeValue.match(/\S+/)&&(a[c]=w(b).wrap("<span></span>").parent()[0])});var f=L(a,b,a,c,d,e);ca(a,"ng-scope");return function(b,c,d,e){Db(b,"scope");var g=c?La.clone.call(a):a;r(d,function(a,b){g.data("$"+b+"Controller",a)});d=0;for(var m=g.length;d<m;d++){var h=g[d].nodeType;1!==h&&9!==h||g.eq(d).data("$scope",b)}c&&c(g,b);f&&f(b,g,g,e);return g}}function ca(a,b){try{a.addClass(b)}catch(c){}}function L(a,b,c,d,e,f){function g(a,c,d,e){var f,h,l,q,n,
|
||||
p,s;f=c.length;var M=Array(f);for(q=0;q<f;q++)M[q]=c[q];p=q=0;for(n=m.length;q<n;p++)h=M[p],c=m[q++],f=m[q++],c?(c.scope?(l=a.$new(),w.data(h,"$scope",l)):l=a,s=c.transcludeOnThisElement?O(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?O(a,b):null,c(f,l,h,d,s)):f&&f(a,h.childNodes,t,e)}for(var m=[],h,l,q,n,p=0;p<a.length;p++)h=new Ob,l=da(a[p],[],h,0===p?d:t,e),(f=l.length?H(l,a[p],h,b,c,null,[],[],f):null)&&f.scope&&ca(h.$$element,"ng-scope"),h=f&&f.terminal||!(q=a[p].childNodes)||!q.length?
|
||||
null:L(q,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b),m.push(f,h),n=n||f||h,f=null;return n?g:null}function O(a,b,c){return function(d,e,f){var g=!1;d||(d=a.$new(),g=d.$$transcluded=!0);e=b(d,e,f,c);if(g)e.on("$destroy",function(){d.$destroy()});return e}}function da(a,b,c,d,g){var m=c.$attr,h;switch(a.nodeType){case 1:fa(b,pa(Ma(a).toLowerCase()),"E",d,g);for(var l,q,n,p=a.attributes,s=0,F=p&&p.length;s<F;s++){var A=!1,N=!1;l=p[s];if(!Q||8<=Q||l.specified){h=l.name;q=
|
||||
aa(l.value);l=pa(h);if(n=U.test(l))h=mb(l.substr(6),"-");var u=l.replace(/(Start|End)$/,"");l===u+"Start"&&(A=h,N=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6));l=pa(h.toLowerCase());m[l]=h;if(n||!c.hasOwnProperty(l))c[l]=q,qc(a,l)&&(c[l]=!0);S(a,b,q,l);fa(b,l,"A",d,g,A,N)}}a=a.className;if(v(a)&&""!==a)for(;h=f.exec(a);)l=pa(h[2]),fa(b,l,"C",d,g)&&(c[l]=aa(h[3])),a=a.substr(h.index+h[0].length);break;case 3:K(b,a.nodeValue);break;case 8:try{if(h=e.exec(a.nodeValue))l=pa(h[1]),fa(b,l,"M",
|
||||
d,g)&&(c[l]=aa(h[2]))}catch(z){}}b.sort(x);return b}function B(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ja("uterdir",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return w(d)}function I(a,b,c){return function(d,e,f,g,h){e=B(e[0],b,c);return a(d,e,f,g,h)}}function H(a,c,d,e,f,g,m,n,p){function F(a,b,c,d){if(a){c&&(a=I(a,c,d));a.require=G.require;a.directiveName=C;if(L===G||G.$$isolateScope)a=
|
||||
tc(a,{isolateScope:!0});m.push(a)}if(b){c&&(b=I(b,c,d));b.require=G.require;b.directiveName=C;if(L===G||G.$$isolateScope)b=tc(b,{isolateScope:!0});n.push(b)}}function A(a,b,c,d){var e,f="data",g=!1;if(v(b)){for(;"^"==(e=b.charAt(0))||"?"==e;)b=b.substr(1),"^"==e&&(f="inheritedData"),g=g||"?"==e;e=null;d&&"data"===f&&(e=d[b]);e=e||c[f]("$"+b+"Controller");if(!e&&!g)throw ja("ctreq",b,a);}else J(b)&&(e=[],r(b,function(b){e.push(A(a,b,c,d))}));return e}function N(a,e,f,g,p){function F(a,b){var c;2>arguments.length&&
|
||||
(b=a,a=t);K&&(c=da);return p(a,b,c)}var u,M,z,O,I,B,da={},rb;u=c===f?d:ha(d,new Ob(w(f),d.$attr));M=u.$$element;if(L){var Na=/^\s*([@=&])(\??)\s*(\w*)\s*$/;B=e.$new(!0);!H||H!==L&&H!==L.$$originalDirective?M.data("$isolateScopeNoTemplate",B):M.data("$isolateScope",B);ca(M,"ng-isolate-scope");r(L.scope,function(a,c){var d=a.match(Na)||[],f=d[3]||c,g="?"==d[2],d=d[1],m,l,n,p;B.$$isolateBindings[c]=d+f;switch(d){case "@":u.$observe(f,function(a){B[c]=a});u.$$observers[f].$$scope=e;u[f]&&(B[c]=b(u[f])(e));
|
||||
break;case "=":if(g&&!u[f])break;l=q(u[f]);p=l.literal?Aa:function(a,b){return a===b||a!==a&&b!==b};n=l.assign||function(){m=B[c]=l(e);throw ja("nonassign",u[f],L.name);};m=B[c]=l(e);B.$watch(function(){var a=l(e);p(a,B[c])||(p(a,m)?n(e,a=B[c]):B[c]=a);return m=a},null,l.literal);break;case "&":l=q(u[f]);B[c]=function(a){return l(e,a)};break;default:throw ja("iscp",L.name,c,a);}})}rb=p&&F;R&&r(R,function(a){var b={$scope:a===L||a.$$isolateScope?B:e,$element:M,$attrs:u,$transclude:rb},c;I=a.controller;
|
||||
"@"==I&&(I=u[a.name]);c=s(I,b);da[a.name]=c;K||M.data("$"+a.name+"Controller",c);a.controllerAs&&(b.$scope[a.controllerAs]=c)});g=0;for(z=m.length;g<z;g++)try{O=m[g],O(O.isolateScope?B:e,M,u,O.require&&A(O.directiveName,O.require,M,da),rb)}catch(G){l(G,ia(M))}g=e;L&&(L.template||null===L.templateUrl)&&(g=B);a&&a(g,f.childNodes,t,p);for(g=n.length-1;0<=g;g--)try{O=n[g],O(O.isolateScope?B:e,M,u,O.require&&A(O.directiveName,O.require,M,da),rb)}catch(y){l(y,ia(M))}}p=p||{};for(var u=-Number.MAX_VALUE,
|
||||
O,R=p.controllerDirectives,L=p.newIsolateScopeDirective,H=p.templateDirective,fa=p.nonTlbTranscludeDirective,x=!1,D=!1,K=p.hasElementTranscludeDirective,Z=d.$$element=w(c),G,C,V,S=e,Q,Fa=0,qa=a.length;Fa<qa;Fa++){G=a[Fa];var U=G.$$start,Y=G.$$end;U&&(Z=B(c,U,Y));V=t;if(u>G.priority)break;if(V=G.scope)O=O||G,G.templateUrl||(db("new/isolated scope",L,G,Z),T(V)&&(L=G));C=G.name;!G.templateUrl&&G.controller&&(V=G.controller,R=R||{},db("'"+C+"' controller",R[C],G,Z),R[C]=G);if(V=G.transclude)x=!0,G.$$tlb||
|
||||
(db("transclusion",fa,G,Z),fa=G),"element"==V?(K=!0,u=G.priority,V=Z,Z=d.$$element=w(X.createComment(" "+C+": "+d[C]+" ")),c=Z[0],Na(f,Ba.call(V,0),c),S=z(V,e,u,g&&g.name,{nonTlbTranscludeDirective:fa})):(V=w(Kb(c)).contents(),Z.empty(),S=z(V,e));if(G.template)if(D=!0,db("template",H,G,Z),H=G,V=P(G.template)?G.template(Z,d):G.template,V=W(V),G.replace){g=G;V=Ib.test(V)?w(aa(V)):[];c=V[0];if(1!=V.length||1!==c.nodeType)throw ja("tplrt",C,"");Na(f,Z,c);qa={$attr:{}};V=da(c,[],qa);var $=a.splice(Fa+
|
||||
1,a.length-(Fa+1));L&&y(V);a=a.concat(V).concat($);E(d,qa);qa=a.length}else Z.html(V);if(G.templateUrl)D=!0,db("template",H,G,Z),H=G,G.replace&&(g=G),N=ue(a.splice(Fa,a.length-Fa),Z,d,f,x&&S,m,n,{controllerDirectives:R,newIsolateScopeDirective:L,templateDirective:H,nonTlbTranscludeDirective:fa}),qa=a.length;else if(G.compile)try{Q=G.compile(Z,d,S),P(Q)?F(null,Q,U,Y):Q&&F(Q.pre,Q.post,U,Y)}catch(ve){l(ve,ia(Z))}G.terminal&&(N.terminal=!0,u=Math.max(u,G.priority))}N.scope=O&&!0===O.scope;N.transcludeOnThisElement=
|
||||
x;N.templateOnThisElement=D;N.transclude=S;p.hasElementTranscludeDirective=K;return N}function y(a){for(var b=0,c=a.length;b<c;b++)a[b]=bc(a[b],{$$isolateScope:!0})}function fa(b,e,f,g,h,q,n){if(e===h)return null;h=null;if(c.hasOwnProperty(e)){var p;e=a.get(e+d);for(var s=0,u=e.length;s<u;s++)try{p=e[s],(g===t||g>p.priority)&&-1!=p.restrict.indexOf(f)&&(q&&(p=bc(p,{$$start:q,$$end:n})),b.push(p),h=p)}catch(F){l(F)}}return h}function E(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;r(a,function(d,e){"$"!=
|
||||
e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});r(b,function(b,f){"class"==f?(ca(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function ue(a,b,c,d,e,f,g,h){var m=[],l,q,s=b[0],u=a.shift(),F=D({},u,{templateUrl:null,transclude:null,replace:null,$$originalDirective:u}),N=P(u.templateUrl)?u.templateUrl(b,c):u.templateUrl;
|
||||
b.empty();n.get(A.getTrustedResourceUrl(N),{cache:p}).success(function(n){var p,A;n=W(n);if(u.replace){n=Ib.test(n)?w(aa(n)):[];p=n[0];if(1!=n.length||1!==p.nodeType)throw ja("tplrt",u.name,N);n={$attr:{}};Na(d,b,p);var z=da(p,[],n);T(u.scope)&&y(z);a=z.concat(a);E(c,n)}else p=s,b.html(n);a.unshift(F);l=H(a,p,c,e,b,u,f,g,h);r(d,function(a,c){a==p&&(d[c]=b[0])});for(q=L(b[0].childNodes,e);m.length;){n=m.shift();A=m.shift();var R=m.shift(),I=m.shift(),z=b[0];if(A!==s){var B=A.className;h.hasElementTranscludeDirective&&
|
||||
u.replace||(z=Kb(p));Na(R,w(A),z);ca(w(z),B)}A=l.transcludeOnThisElement?O(n,l.transclude,I):I;l(q,n,z,d,A)}m=null}).error(function(a,b,c,d){throw ja("tpload",d.url);});return function(a,b,c,d,e){a=e;m?(m.push(b),m.push(c),m.push(d),m.push(a)):(l.transcludeOnThisElement&&(a=O(b,l.transclude,e)),l(q,b,c,d,a))}}function x(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function db(a,b,c,d){if(b)throw ja("multidir",b.name,c.name,a,ia(d));}function K(a,
|
||||
c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){var b=a.parent().length;b&&ca(a.parent(),"ng-binding");return function(a,c){var e=c.parent(),f=e.data("$binding")||[];f.push(d);e.data("$binding",f);b||ca(e,"ng-binding");a.$watch(d,function(a){c[0].nodeValue=a})}}})}function C(a,b){if("srcdoc"==b)return A.HTML;var c=Ma(a);if("xlinkHref"==b||"FORM"==c&&"action"==b||"IMG"!=c&&("src"==b||"ngSrc"==b))return A.RESOURCE_URL}function S(a,c,d,e){var f=b(d,!0);if(f){if("multiple"===e&&"SELECT"===
|
||||
Ma(a))throw ja("selmulti",ia(a));c.push({priority:100,compile:function(){return{pre:function(c,d,m){d=m.$$observers||(m.$$observers={});if(g.test(e))throw ja("nodomevents");if(f=b(m[e],!0,C(a,e)))m[e]=f(c),(d[e]||(d[e]=[])).$$inter=!0,(m.$$observers&&m.$$observers[e].$$scope||c).$watch(f,function(a,b){"class"===e&&a!=b?m.$updateClass(a,b):m.$set(e,a)})}}}})}}function Na(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,m;if(a)for(g=0,m=a.length;g<m;g++)if(a[g]==d){a[g++]=c;m=g+e-1;for(var h=a.length;g<
|
||||
h;g++,m++)m<h?a[g]=a[m]:delete a[g];a.length-=e-1;break}f&&f.replaceChild(c,d);a=X.createDocumentFragment();a.appendChild(d);c[w.expando]=d[w.expando];d=1;for(e=b.length;d<e;d++)f=b[d],w(f).remove(),a.appendChild(f),delete b[d];b[0]=c;b.length=1}function tc(a,b){return D(function(){return a.apply(null,arguments)},a,b)}var Ob=function(a,b){this.$$element=a;this.$attr=b||{}};Ob.prototype={$normalize:pa,$addClass:function(a){a&&0<a.length&&N.addClass(this.$$element,a)},$removeClass:function(a){a&&0<
|
||||
a.length&&N.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=uc(a,b),d=uc(b,a);0===c.length?N.removeClass(this.$$element,d):0===d.length?N.addClass(this.$$element,c):N.setClass(this.$$element,c,d)},$set:function(a,b,c,d){var e=qc(this.$$element[0],a);e&&(this.$$element.prop(a,b),d=e);this[a]=b;d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=mb(a,"-"));e=Ma(this.$$element);if("A"===e&&"href"===a||"IMG"===e&&"src"===a)this[a]=b=R(b,"src"===a);!1!==c&&(null===b||b===t?this.$$element.removeAttr(d):
|
||||
this.$$element.attr(d,b));(c=this.$$observers)&&r(c[a],function(a){try{a(b)}catch(c){l(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers={}),e=d[a]||(d[a]=[]);e.push(b);F.$evalAsync(function(){e.$$inter||b(c[a])});return b}};var qa=b.startSymbol(),Z=b.endSymbol(),W="{{"==qa||"}}"==Z?Qa:function(a){return a.replace(/\{\{/g,qa).replace(/}}/g,Z)},U=/^ngAttr[A-Z]/;return z}]}function pa(b){return Za(b.replace(we,""))}function uc(b,a){var c="",d=b.split(/\s+/),e=a.split(/\s+/),f=
|
||||
0;a:for(;f<d.length;f++){for(var g=d[f],k=0;k<e.length;k++)if(g==e[k])continue a;c+=(0<c.length?" ":"")+g}return c}function Pd(){var b={},a=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(a,d){Da(a,"controller");T(a)?D(b,a):b[a]=d};this.$get=["$injector","$window",function(c,d){return function(e,f){var g,k,m;v(e)&&(g=e.match(a),k=g[1],m=g[3],e=b.hasOwnProperty(k)?b[k]:hc(f.$scope,k,!0)||hc(d,k,!0),Wa(e,k,!0));g=c.instantiate(e,f);if(m){if(!f||"object"!==typeof f.$scope)throw C("$controller")("noscp",
|
||||
k||e.name,m);f.$scope[m]=g}return g}}]}function Qd(){this.$get=["$window",function(b){return w(b.document)}]}function Rd(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function vc(b){var a={},c,d,e;if(!b)return a;r(b.split("\n"),function(b){e=b.indexOf(":");c=K(aa(b.substr(0,e)));d=aa(b.substr(e+1));c&&(a[c]=a[c]?a[c]+", "+d:d)});return a}function wc(b){var a=T(b)?b:t;return function(c){a||(a=vc(b));return c?a[K(c)]||null:a}}function xc(b,a,c){if(P(c))return c(b,
|
||||
a);r(c,function(c){b=c(b,a)});return b}function Ud(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d={"Content-Type":"application/json;charset=utf-8"},e=this.defaults={transformResponse:[function(d){v(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=cc(d)));return d}],transformRequest:[function(a){return T(a)&&"[object File]"!==za.call(a)&&"[object Blob]"!==za.call(a)?na(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ha(d),put:ha(d),patch:ha(d)},xsrfCookieName:"XSRF-TOKEN",
|
||||
xsrfHeaderName:"X-XSRF-TOKEN"},f=this.interceptors=[],g=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,d,n,p){function q(a){function b(a){var d=D({},a,{data:xc(a.data,a.headers,c.transformResponse)});return 200<=a.status&&300>a.status?d:n.reject(d)}var c={method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse},d=function(a){var b=e.headers,c=D({},a.headers),d,f,b=D({},b.common,b[K(a.method)]);
|
||||
a:for(d in b){a=K(d);for(f in c)if(K(f)===a)continue a;c[d]=b[d]}(function(a){var b;r(a,function(c,d){P(c)&&(b=c(),null!=b?a[d]=b:delete a[d])})})(c);return c}(a);D(c,a);c.headers=d;c.method=Ia(c.method);var f=[function(a){d=a.headers;var c=xc(a.data,wc(d),a.transformRequest);x(c)&&r(d,function(a,b){"content-type"===K(b)&&delete d[b]});x(a.withCredentials)&&!x(e.withCredentials)&&(a.withCredentials=e.withCredentials);return s(a,c,d).then(b,b)},t],g=n.when(c);for(r(A,function(a){(a.request||a.requestError)&&
|
||||
f.unshift(a.request,a.requestError);(a.response||a.responseError)&&f.push(a.response,a.responseError)});f.length;){a=f.shift();var m=f.shift(),g=g.then(a,m)}g.success=function(a){g.then(function(b){a(b.data,b.status,b.headers,c)});return g};g.error=function(a){g.then(null,function(b){a(b.data,b.status,b.headers,c)});return g};return g}function s(c,f,g){function h(a,b,c,e){I&&(200<=a&&300>a?I.put(w,[a,b,vc(c),e]):I.remove(w));p(b,a,c,e);d.$$phase||d.$apply()}function p(a,b,d,e){b=Math.max(b,0);(200<=
|
||||
b&&300>b?A.resolve:A.reject)({data:a,status:b,headers:wc(d),config:c,statusText:e})}function s(){var a=Ra(q.pendingRequests,c);-1!==a&&q.pendingRequests.splice(a,1)}var A=n.defer(),r=A.promise,I,H,w=F(c.url,c.params);q.pendingRequests.push(c);r.then(s,s);!c.cache&&!e.cache||(!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method)||(I=T(c.cache)?c.cache:T(e.cache)?e.cache:u);if(I)if(H=I.get(w),y(H)){if(H&&P(H.then))return H.then(s,s),H;J(H)?p(H[1],H[0],ha(H[2]),H[3]):p(H,200,{},"OK")}else I.put(w,r);x(H)&&
|
||||
((H=Pb(c.url)?b.cookies()[c.xsrfCookieName||e.xsrfCookieName]:t)&&(g[c.xsrfHeaderName||e.xsrfHeaderName]=H),a(c.method,w,f,h,g,c.timeout,c.withCredentials,c.responseType));return r}function F(a,b){if(!b)return a;var c=[];Tc(b,function(a,b){null===a||x(a)||(J(a)||(a=[a]),r(a,function(a){T(a)&&(a=ta(a)?a.toISOString():na(a));c.push(Ca(b)+"="+Ca(a))}))});0<c.length&&(a+=(-1==a.indexOf("?")?"?":"&")+c.join("&"));return a}var u=c("$http"),A=[];r(f,function(a){A.unshift(v(a)?p.get(a):p.invoke(a))});r(g,
|
||||
function(a,b){var c=v(a)?p.get(a):p.invoke(a);A.splice(b,0,{response:function(a){return c(n.when(a))},responseError:function(a){return c(n.reject(a))}})});q.pendingRequests=[];(function(a){r(arguments,function(a){q[a]=function(b,c){return q(D(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){r(arguments,function(a){q[a]=function(b,c,d){return q(D(d||{},{method:a,url:b,data:c}))}})})("post","put");q.defaults=e;return q}]}function xe(b){if(8>=Q&&(!b.match(/^(get|post|head|put|delete|options)$/i)||
|
||||
!W.XMLHttpRequest))return new W.ActiveXObject("Microsoft.XMLHTTP");if(W.XMLHttpRequest)return new W.XMLHttpRequest;throw C("$httpBackend")("noxhr");}function Vd(){this.$get=["$browser","$window","$document",function(b,a,c){return ye(b,xe,b.defer,a.angular.callbacks,c[0])}]}function ye(b,a,c,d,e){function f(a,b,c){var f=e.createElement("script"),g=null;f.type="text/javascript";f.src=a;f.async=!0;g=function(a){$a(f,"load",g);$a(f,"error",g);e.body.removeChild(f);f=null;var k=-1,s="unknown";a&&("load"!==
|
||||
a.type||d[b].called||(a={type:"error"}),s=a.type,k="error"===a.type?404:200);c&&c(k,s)};sb(f,"load",g);sb(f,"error",g);8>=Q&&(f.onreadystatechange=function(){v(f.readyState)&&/loaded|complete/.test(f.readyState)&&(f.onreadystatechange=null,g({type:"load"}))});e.body.appendChild(f);return g}var g=-1;return function(e,m,h,l,n,p,q,s){function F(){A=g;R&&R();z&&z.abort()}function u(a,d,e,f,g){L&&c.cancel(L);R=z=null;0===d&&(d=e?200:"file"==ua(m).protocol?404:0);a(1223===d?204:d,e,f,g||"");b.$$completeOutstandingRequest(E)}
|
||||
var A;b.$$incOutstandingRequestCount();m=m||b.url();if("jsonp"==K(e)){var N="_"+(d.counter++).toString(36);d[N]=function(a){d[N].data=a;d[N].called=!0};var R=f(m.replace("JSON_CALLBACK","angular.callbacks."+N),N,function(a,b){u(l,a,d[N].data,"",b);d[N]=E})}else{var z=a(e);z.open(e,m,!0);r(n,function(a,b){y(a)&&z.setRequestHeader(b,a)});z.onreadystatechange=function(){if(z&&4==z.readyState){var a=null,b=null,c="";A!==g&&(a=z.getAllResponseHeaders(),b="response"in z?z.response:z.responseText);A===g&&
|
||||
10>Q||(c=z.statusText);u(l,A||z.status,b,a,c)}};q&&(z.withCredentials=!0);if(s)try{z.responseType=s}catch(ca){if("json"!==s)throw ca;}z.send(h||null)}if(0<p)var L=c(F,p);else p&&P(p.then)&&p.then(F)}}function Sd(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(b){return b?(a=b,this):a};this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(f,h,l){for(var n,p,q=0,s=[],F=f.length,u=!1,A=[];q<F;)-1!=(n=f.indexOf(b,q))&&-1!=(p=f.indexOf(a,
|
||||
n+g))?(q!=n&&s.push(f.substring(q,n)),s.push(q=c(u=f.substring(n+g,p))),q.exp=u,q=p+k,u=!0):(q!=F&&s.push(f.substring(q)),q=F);(F=s.length)||(s.push(""),F=1);if(l&&1<s.length)throw yc("noconcat",f);if(!h||u)return A.length=F,q=function(a){try{for(var b=0,c=F,g;b<c;b++){if("function"==typeof(g=s[b]))if(g=g(a),g=l?e.getTrusted(l,g):e.valueOf(g),null==g)g="";else switch(typeof g){case "string":break;case "number":g=""+g;break;default:g=na(g)}A[b]=g}return A.join("")}catch(k){a=yc("interr",f,k.toString()),
|
||||
d(a)}},q.exp=f,q.parts=s,q}var g=b.length,k=a.length;f.startSymbol=function(){return b};f.endSymbol=function(){return a};return f}]}function Td(){this.$get=["$rootScope","$window","$q",function(b,a,c){function d(d,g,k,m){var h=a.setInterval,l=a.clearInterval,n=c.defer(),p=n.promise,q=0,s=y(m)&&!m;k=y(k)?k:0;p.then(null,null,d);p.$$intervalId=h(function(){n.notify(q++);0<k&&q>=k&&(n.resolve(q),l(p.$$intervalId),delete e[p.$$intervalId]);s||b.$apply()},g);e[p.$$intervalId]=n;return p}var e={};d.cancel=
|
||||
function(b){return b&&b.$$intervalId in e?(e[b.$$intervalId].reject("canceled"),a.clearInterval(b.$$intervalId),delete e[b.$$intervalId],!0):!1};return d}]}function bd(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00a4",posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),
|
||||
SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(b){return 1===b?"one":"other"}}}}function Qb(b){b=b.split("/");for(var a=b.length;a--;)b[a]=
|
||||
lb(b[a]);return b.join("/")}function zc(b,a,c){b=ua(b,c);a.$$protocol=b.protocol;a.$$host=b.hostname;a.$$port=U(b.port)||ze[b.protocol]||null}function Ac(b,a,c){var d="/"!==b.charAt(0);d&&(b="/"+b);b=ua(b,c);a.$$path=decodeURIComponent(d&&"/"===b.pathname.charAt(0)?b.pathname.substring(1):b.pathname);a.$$search=ec(b.search);a.$$hash=decodeURIComponent(b.hash);a.$$path&&"/"!=a.$$path.charAt(0)&&(a.$$path="/"+a.$$path)}function ra(b,a){if(0===a.indexOf(b))return a.substr(b.length)}function eb(b){var a=
|
||||
b.indexOf("#");return-1==a?b:b.substr(0,a)}function Rb(b){return b.substr(0,eb(b).lastIndexOf("/")+1)}function Bc(b,a){this.$$html5=!0;a=a||"";var c=Rb(b);zc(b,this,b);this.$$parse=function(a){var e=ra(c,a);if(!v(e))throw Sb("ipthprfx",a,c);Ac(e,this,b);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Cb(this.$$search),b=this.$$hash?"#"+lb(this.$$hash):"";this.$$url=Qb(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$rewrite=function(d){var e;
|
||||
if((e=ra(b,d))!==t)return d=e,(e=ra(a,e))!==t?c+(ra("/",e)||e):b+d;if((e=ra(c,d))!==t)return c+e;if(c==d+"/")return c}}function Tb(b,a){var c=Rb(b);zc(b,this,b);this.$$parse=function(d){var e=ra(b,d)||ra(c,d),e="#"==e.charAt(0)?ra(a,e):this.$$html5?e:"";if(!v(e))throw Sb("ihshprfx",d,a);Ac(e,this,b);d=this.$$path;var f=/^\/[A-Z]:(\/.*)/;0===e.indexOf(b)&&(e=e.replace(b,""));f.exec(e)||(d=(e=f.exec(d))?e[1]:d);this.$$path=d;this.$$compose()};this.$$compose=function(){var c=Cb(this.$$search),e=this.$$hash?
|
||||
"#"+lb(this.$$hash):"";this.$$url=Qb(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+(this.$$url?a+this.$$url:"")};this.$$rewrite=function(a){if(eb(b)==eb(a))return a}}function Ub(b,a){this.$$html5=!0;Tb.apply(this,arguments);var c=Rb(b);this.$$rewrite=function(d){var e;if(b==eb(d))return d;if(e=ra(c,d))return b+a+e;if(c===d+"/")return c};this.$$compose=function(){var c=Cb(this.$$search),e=this.$$hash?"#"+lb(this.$$hash):"";this.$$url=Qb(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+a+this.$$url}}function tb(b){return function(){return this[b]}}
|
||||
function Cc(b,a){return function(c){if(x(c))return this[b];this[b]=a(c);this.$$compose();return this}}function Wd(){var b="",a=!1;this.hashPrefix=function(a){return y(a)?(b=a,this):b};this.html5Mode=function(b){return y(b)?(a=b,this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(c,d,e,f){function g(a){c.$broadcast("$locationChangeSuccess",k.absUrl(),a)}var k,m,h=d.baseHref(),l=d.url(),n;a?(n=l.substring(0,l.indexOf("/",l.indexOf("//")+2))+(h||"/"),m=e.history?Bc:Ub):(n=
|
||||
eb(l),m=Tb);k=new m(n,"#"+b);k.$$parse(k.$$rewrite(l));var p=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(!a.ctrlKey&&!a.metaKey&&2!=a.which){for(var e=w(a.target);"a"!==K(e[0].nodeName);)if(e[0]===f[0]||!(e=e.parent())[0])return;var g=e.prop("href");T(g)&&"[object SVGAnimatedString]"===g.toString()&&(g=ua(g.animVal).href);if(!p.test(g)){if(m===Ub){var h=e.attr("href")||e.attr("xlink:href");if(h&&0>h.indexOf("://"))if(g="#"+b,"/"==h[0])g=n+g+h;else if("#"==h[0])g=n+g+(k.path()||"/")+h;
|
||||
else{var l=k.path().split("/"),h=h.split("/");2!==l.length||l[1]||(l.length=1);for(var q=0;q<h.length;q++)"."!=h[q]&&(".."==h[q]?l.pop():h[q].length&&l.push(h[q]));g=n+g+l.join("/")}}l=k.$$rewrite(g);g&&(!e.attr("target")&&l&&!a.isDefaultPrevented())&&(a.preventDefault(),l!=d.url()&&(k.$$parse(l),c.$apply(),W.angular["ff-684208-preventDefault"]=!0))}}});k.absUrl()!=l&&d.url(k.absUrl(),!0);d.onUrlChange(function(a){k.absUrl()!=a&&(c.$evalAsync(function(){var b=k.absUrl();k.$$parse(a);c.$broadcast("$locationChangeStart",
|
||||
a,b).defaultPrevented?(k.$$parse(b),d.url(b)):g(b)}),c.$$phase||c.$digest())});var q=0;c.$watch(function(){var a=d.url(),b=k.$$replace;q&&a==k.absUrl()||(q++,c.$evalAsync(function(){c.$broadcast("$locationChangeStart",k.absUrl(),a).defaultPrevented?k.$$parse(a):(d.url(k.absUrl(),b),g(a))}));k.$$replace=!1;return q});return k}]}function Xd(){var b=!0,a=this;this.debugEnabled=function(a){return y(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&&
|
||||
-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||E;a=!1;try{a=!!e.apply}catch(m){}return a?function(){var a=[];r(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function ka(b,
|
||||
a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter__"===b||"__lookupSetter__"===b||"__proto__"===b)throw la("isecfld",a);return b}function va(b,a){if(b){if(b.constructor===b)throw la("isecfn",a);if(b.document&&b.location&&b.alert&&b.setInterval)throw la("isecwindow",a);if(b.children&&(b.nodeName||b.prop&&b.attr&&b.find))throw la("isecdom",a);if(b===Object)throw la("isecobj",a);}return b}function ub(b,a,c,d,e){va(b,d);e=e||{};a=a.split(".");for(var f,g=0;1<a.length;g++){f=ka(a.shift(),
|
||||
d);var k=va(b[f],d);k||(k={},b[f]=k);b=k;b.then&&e.unwrapPromises&&(wa(d),"$$v"in b||function(a){a.then(function(b){a.$$v=b})}(b),b.$$v===t&&(b.$$v={}),b=b.$$v)}f=ka(a.shift(),d);va(b[f],d);return b[f]=c}function Dc(b,a,c,d,e,f,g){ka(b,f);ka(a,f);ka(c,f);ka(d,f);ka(e,f);return g.unwrapPromises?function(g,m){var h=m&&m.hasOwnProperty(b)?m:g,l;if(null==h)return h;(h=h[b])&&h.then&&(wa(f),"$$v"in h||(l=h,l.$$v=t,l.then(function(a){l.$$v=a})),h=h.$$v);if(!a)return h;if(null==h)return t;(h=h[a])&&h.then&&
|
||||
(wa(f),"$$v"in h||(l=h,l.$$v=t,l.then(function(a){l.$$v=a})),h=h.$$v);if(!c)return h;if(null==h)return t;(h=h[c])&&h.then&&(wa(f),"$$v"in h||(l=h,l.$$v=t,l.then(function(a){l.$$v=a})),h=h.$$v);if(!d)return h;if(null==h)return t;(h=h[d])&&h.then&&(wa(f),"$$v"in h||(l=h,l.$$v=t,l.then(function(a){l.$$v=a})),h=h.$$v);if(!e)return h;if(null==h)return t;(h=h[e])&&h.then&&(wa(f),"$$v"in h||(l=h,l.$$v=t,l.then(function(a){l.$$v=a})),h=h.$$v);return h}:function(f,g){var h=g&&g.hasOwnProperty(b)?g:f;if(null==
|
||||
h)return h;h=h[b];if(!a)return h;if(null==h)return t;h=h[a];if(!c)return h;if(null==h)return t;h=h[c];if(!d)return h;if(null==h)return t;h=h[d];return e?null==h?t:h=h[e]:h}}function Ec(b,a,c){if(Vb.hasOwnProperty(b))return Vb[b];var d=b.split("."),e=d.length,f;if(a.csp)f=6>e?Dc(d[0],d[1],d[2],d[3],d[4],c,a):function(b,f){var g=0,k;do k=Dc(d[g++],d[g++],d[g++],d[g++],d[g++],c,a)(b,f),f=t,b=k;while(g<e);return k};else{var g="var p;\n";r(d,function(b,d){ka(b,c);g+="if(s == null) return undefined;\ns="+
|
||||
(d?"s":'((k&&k.hasOwnProperty("'+b+'"))?k:s)')+'["'+b+'"];\n'+(a.unwrapPromises?'if (s && s.then) {\n pw("'+c.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")});var g=g+"return s;",k=new Function("s","k","pw",g);k.toString=ba(g);f=a.unwrapPromises?function(a,b){return k(a,b,wa)}:k}"hasOwnProperty"!==b&&(Vb[b]=f);return f}function Yd(){var b={},a={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=
|
||||
function(b){return y(b)?(a.unwrapPromises=!!b,this):a.unwrapPromises};this.logPromiseWarnings=function(b){return y(b)?(a.logPromiseWarnings=b,this):a.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(c,d,e){a.csp=d.csp;wa=function(b){a.logPromiseWarnings&&!Fc.hasOwnProperty(b)&&(Fc[b]=!0,e.warn("[$parse] Promise found in the expression `"+b+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))};return function(d){var e;switch(typeof d){case "string":if(b.hasOwnProperty(d))return b[d];
|
||||
e=new Wb(a);e=(new fb(e,c,a)).parse(d);"hasOwnProperty"!==d&&(b[d]=e);return e;case "function":return d;default:return E}}}]}function $d(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return Ae(function(a){b.$evalAsync(a)},a)}]}function Ae(b,a){function c(a){return a}function d(a){return g(a)}var e=function(){var g=[],h,l;return l={resolve:function(a){if(g){var c=g;g=t;h=f(a);c.length&&b(function(){for(var a,b=0,d=c.length;b<d;b++)a=c[b],h.then(a[0],a[1],a[2])})}},reject:function(a){l.resolve(k(a))},
|
||||
notify:function(a){if(g){var c=g;g.length&&b(function(){for(var b,d=0,e=c.length;d<e;d++)b=c[d],b[2](a)})}},promise:{then:function(b,f,k){var l=e(),F=function(d){try{l.resolve((P(b)?b:c)(d))}catch(e){l.reject(e),a(e)}},u=function(b){try{l.resolve((P(f)?f:d)(b))}catch(c){l.reject(c),a(c)}},A=function(b){try{l.notify((P(k)?k:c)(b))}catch(d){a(d)}};g?g.push([F,u,A]):h.then(F,u,A);return l.promise},"catch":function(a){return this.then(null,a)},"finally":function(a){function b(a,c){var d=e();c?d.resolve(a):
|
||||
d.reject(a);return d.promise}function d(e,f){var g=null;try{g=(a||c)()}catch(k){return b(k,!1)}return g&&P(g.then)?g.then(function(){return b(e,f)},function(a){return b(a,!1)}):b(e,f)}return this.then(function(a){return d(a,!0)},function(a){return d(a,!1)})}}}},f=function(a){return a&&P(a.then)?a:{then:function(c){var d=e();b(function(){d.resolve(c(a))});return d.promise}}},g=function(a){var b=e();b.reject(a);return b.promise},k=function(c){return{then:function(f,g){var k=e();b(function(){try{k.resolve((P(g)?
|
||||
g:d)(c))}catch(b){k.reject(b),a(b)}});return k.promise}}};return{defer:e,reject:g,when:function(k,h,l,n){var p=e(),q,s=function(b){try{return(P(h)?h:c)(b)}catch(d){return a(d),g(d)}},F=function(b){try{return(P(l)?l:d)(b)}catch(c){return a(c),g(c)}},u=function(b){try{return(P(n)?n:c)(b)}catch(d){a(d)}};b(function(){f(k).then(function(a){q||(q=!0,p.resolve(f(a).then(s,F,u)))},function(a){q||(q=!0,p.resolve(F(a)))},function(a){q||p.notify(u(a))})});return p.promise},all:function(a){var b=e(),c=0,d=J(a)?
|
||||
[]:{};r(a,function(a,e){c++;f(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise}}}function ge(){this.$get=["$window","$timeout",function(b,a){var c=b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame,d=b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.mozCancelAnimationFrame||b.webkitCancelRequestAnimationFrame,e=!!c,f=e?function(a){var b=c(a);return function(){d(b)}}:
|
||||
function(b){var c=a(b,16.66,!1);return function(){a.cancel(c)}};f.supported=e;return f}]}function Zd(){var b=10,a=C("$rootScope"),c=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(d,e,f,g){function k(){this.$id=hb();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=
|
||||
[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function m(b){if(p.$$phase)throw a("inprog",p.$$phase);p.$$phase=b}function h(a,b){var c=f(a);Wa(c,b);return c}function l(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function n(){}k.prototype={constructor:k,$new:function(a){a?(a=new k,a.$root=this.$root,a.$$asyncQueue=this.$$asyncQueue,a.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=
|
||||
function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=hb();this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),a=new this.$$childScopeClass);a["this"]=a;a.$parent=this;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=a:this.$$childHead=this.$$childTail=a;return a},$watch:function(a,b,d){var e=h(a,"watch"),f=this.$$watchers,g={fn:b,last:n,get:e,exp:a,
|
||||
eq:!!d};c=null;if(!P(b)){var k=h(b||E,"listener");g.fn=function(a,b,c){k(c)}}if("string"==typeof a&&e.constant){var l=g.fn;g.fn=function(a,b,c){l.call(this,a,b,c);Sa(f,g)}}f||(f=this.$$watchers=[]);f.unshift(g);return function(){Sa(f,g);c=null}},$watchCollection:function(a,b){var c=this,d,e,g,k=1<b.length,h=0,l=f(a),m=[],p={},n=!0,r=0;return this.$watch(function(){d=l(c);var a,b,f;if(T(d))if(Pa(d))for(e!==m&&(e=m,r=e.length=0,h++),a=d.length,r!==a&&(h++,e.length=r=a),b=0;b<a;b++)f=e[b]!==e[b]&&d[b]!==
|
||||
d[b],f||e[b]===d[b]||(h++,e[b]=d[b]);else{e!==p&&(e=p={},r=0,h++);a=0;for(b in d)d.hasOwnProperty(b)&&(a++,e.hasOwnProperty(b)?(f=e[b]!==e[b]&&d[b]!==d[b],f||e[b]===d[b]||(h++,e[b]=d[b])):(r++,e[b]=d[b],h++));if(r>a)for(b in h++,e)e.hasOwnProperty(b)&&!d.hasOwnProperty(b)&&(r--,delete e[b])}else e!==d&&(e=d,h++);return h},function(){n?(n=!1,b(d,d,c)):b(d,g,c);if(k)if(T(d))if(Pa(d)){g=Array(d.length);for(var a=0;a<d.length;a++)g[a]=d[a]}else for(a in g={},d)kb.call(d,a)&&(g[a]=d[a]);else g=d})},$digest:function(){var d,
|
||||
f,k,h,l=this.$$asyncQueue,r=this.$$postDigestQueue,R,z,t=b,L,O=[],w,B,I;m("$digest");g.$$checkUrlChange();c=null;do{z=!1;for(L=this;l.length;){try{I=l.shift(),I.scope.$eval(I.expression)}catch(H){p.$$phase=null,e(H)}c=null}a:do{if(h=L.$$watchers)for(R=h.length;R--;)try{if(d=h[R])if((f=d.get(L))!==(k=d.last)&&!(d.eq?Aa(f,k):"number"===typeof f&&"number"===typeof k&&isNaN(f)&&isNaN(k)))z=!0,c=d,d.last=d.eq?Ha(f,null):f,d.fn(f,k===n?f:k,L),5>t&&(w=4-t,O[w]||(O[w]=[]),B=P(d.exp)?"fn: "+(d.exp.name||d.exp.toString()):
|
||||
d.exp,B+="; newVal: "+na(f)+"; oldVal: "+na(k),O[w].push(B));else if(d===c){z=!1;break a}}catch(y){p.$$phase=null,e(y)}if(!(h=L.$$childHead||L!==this&&L.$$nextSibling))for(;L!==this&&!(h=L.$$nextSibling);)L=L.$parent}while(L=h);if((z||l.length)&&!t--)throw p.$$phase=null,a("infdig",b,na(O));}while(z||l.length);for(p.$$phase=null;r.length;)try{r.shift()()}catch(v){e(v)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==p&&(r(this.$$listenerCount,
|
||||
Bb(null,l,this)),a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a.$$childTail==this&&(a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=E,this.$on=
|
||||
this.$watch=function(){return E})}},$eval:function(a,b){return f(a)(this,b)},$evalAsync:function(a){p.$$phase||p.$$asyncQueue.length||g.defer(function(){p.$$asyncQueue.length&&p.$digest()});this.$$asyncQueue.push({scope:this,expression:a})},$$postDigest:function(a){this.$$postDigestQueue.push(a)},$apply:function(a){try{return m("$apply"),this.$eval(a)}catch(b){e(b)}finally{p.$$phase=null;try{p.$digest()}catch(c){throw e(c),c;}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=
|
||||
c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){c[Ra(c,b)]=null;l(e,1,a)}},$emit:function(a,b){var c=[],d,f=this,g=!1,k={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){k.defaultPrevented=!0},defaultPrevented:!1},h=[k].concat(Ba.call(arguments,1)),l,m;do{d=f.$$listeners[a]||c;k.currentScope=f;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,h)}catch(p){e(p)}else d.splice(l,
|
||||
1),l--,m--;if(g)break;f=f.$parent}while(f);return k},$broadcast:function(a,b){for(var c=this,d=this,f={name:a,targetScope:this,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},g=[f].concat(Ba.call(arguments,1)),k,h;c=d;){f.currentScope=c;d=c.$$listeners[a]||[];k=0;for(h=d.length;k<h;k++)if(d[k])try{d[k].apply(null,g)}catch(l){e(l)}else d.splice(k,1),k--,h--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}return f}};
|
||||
var p=new k;return p}]}function cd(){var b=/^\s*(https?|ftp|mailto|tel|file):/,a=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(a){return y(a)?(b=a,this):b};this.imgSrcSanitizationWhitelist=function(b){return y(b)?(a=b,this):a};this.$get=function(){return function(c,d){var e=d?a:b,f;if(!Q||8<=Q)if(f=ua(c).href,""!==f&&!f.match(e))return"unsafe:"+f;return c}}}function Be(b){if("self"===b)return b;if(v(b)){if(-1<b.indexOf("***"))throw xa("iwcard",b);b=b.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,
|
||||
"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return RegExp("^"+b+"$")}if(jb(b))return RegExp("^"+b.source+"$");throw xa("imatcher");}function Gc(b){var a=[];y(b)&&r(b,function(b){a.push(Be(b))});return a}function be(){this.SCE_CONTEXTS=ga;var b=["self"],a=[];this.resourceUrlWhitelist=function(a){arguments.length&&(b=Gc(a));return b};this.resourceUrlBlacklist=function(b){arguments.length&&(a=Gc(b));return a};this.$get=["$injector",function(c){function d(a){var b=
|
||||
function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var e=function(a){throw xa("unsafe");};c.has("$sanitize")&&(e=c.get("$sanitize"));var f=d(),g={};g[ga.HTML]=d(f);g[ga.CSS]=d(f);g[ga.URL]=d(f);g[ga.JS]=d(f);g[ga.RESOURCE_URL]=d(g[ga.URL]);return{trustAs:function(a,b){var c=g.hasOwnProperty(a)?g[a]:null;if(!c)throw xa("icontext",
|
||||
a,b);if(null===b||b===t||""===b)return b;if("string"!==typeof b)throw xa("itype",a);return new c(b)},getTrusted:function(c,d){if(null===d||d===t||""===d)return d;var f=g.hasOwnProperty(c)?g[c]:null;if(f&&d instanceof f)return d.$$unwrapTrustedValue();if(c===ga.RESOURCE_URL){var f=ua(d.toString()),l,n,p=!1;l=0;for(n=b.length;l<n;l++)if("self"===b[l]?Pb(f):b[l].exec(f.href)){p=!0;break}if(p)for(l=0,n=a.length;l<n;l++)if("self"===a[l]?Pb(f):a[l].exec(f.href)){p=!1;break}if(p)return d;throw xa("insecurl",
|
||||
d.toString());}if(c===ga.HTML)return e(d);throw xa("unsafe");},valueOf:function(a){return a instanceof f?a.$$unwrapTrustedValue():a}}}]}function ae(){var b=!0;this.enabled=function(a){arguments.length&&(b=!!a);return b};this.$get=["$parse","$sniffer","$sceDelegate",function(a,c,d){if(b&&c.msie&&8>c.msieDocumentMode)throw xa("iequirks");var e=ha(ga);e.isEnabled=function(){return b};e.trustAs=d.trustAs;e.getTrusted=d.getTrusted;e.valueOf=d.valueOf;b||(e.trustAs=e.getTrusted=function(a,b){return b},
|
||||
e.valueOf=Qa);e.parseAs=function(b,c){var d=a(c);return d.literal&&d.constant?d:function(a,c){return e.getTrusted(b,d(a,c))}};var f=e.parseAs,g=e.getTrusted,k=e.trustAs;r(ga,function(a,b){var c=K(b);e[Za("parse_as_"+c)]=function(b){return f(a,b)};e[Za("get_trusted_"+c)]=function(b){return g(a,b)};e[Za("trust_as_"+c)]=function(b){return k(a,b)}});return e}]}function ce(){this.$get=["$window","$document",function(b,a){var c={},d=U((/android (\d+)/.exec(K((b.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((b.navigator||
|
||||
{}).userAgent),f=a[0]||{},g=f.documentMode,k,m=/^(Moz|webkit|O|ms)(?=[A-Z])/,h=f.body&&f.body.style,l=!1,n=!1;if(h){for(var p in h)if(l=m.exec(p)){k=l[0];k=k.substr(0,1).toUpperCase()+k.substr(1);break}k||(k="WebkitOpacity"in h&&"webkit");l=!!("transition"in h||k+"Transition"in h);n=!!("animation"in h||k+"Animation"in h);!d||l&&n||(l=v(f.body.style.webkitTransition),n=v(f.body.style.webkitAnimation))}return{history:!(!b.history||!b.history.pushState||4>d||e),hashchange:"onhashchange"in b&&(!g||7<
|
||||
g),hasEvent:function(a){if("input"==a&&9==Q)return!1;if(x(c[a])){var b=f.createElement("div");c[a]="on"+a in b}return c[a]},csp:Xa(),vendorPrefix:k,transitions:l,animations:n,android:d,msie:Q,msieDocumentMode:g}}]}function ee(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,k,m){var h=c.defer(),l=h.promise,n=y(m)&&!m;k=a.defer(function(){try{h.resolve(e())}catch(a){h.reject(a),d(a)}finally{delete f[l.$$timeoutId]}n||b.$apply()},k);l.$$timeoutId=k;f[k]=h;
|
||||
return l}var f={};e.cancel=function(b){return b&&b.$$timeoutId in f?(f[b.$$timeoutId].reject("canceled"),delete f[b.$$timeoutId],a.defer.cancel(b.$$timeoutId)):!1};return e}]}function ua(b,a){var c=b;Q&&(Y.setAttribute("href",c),c=Y.href);Y.setAttribute("href",c);return{href:Y.href,protocol:Y.protocol?Y.protocol.replace(/:$/,""):"",host:Y.host,search:Y.search?Y.search.replace(/^\?/,""):"",hash:Y.hash?Y.hash.replace(/^#/,""):"",hostname:Y.hostname,port:Y.port,pathname:"/"===Y.pathname.charAt(0)?Y.pathname:
|
||||
"/"+Y.pathname}}function Pb(b){b=v(b)?ua(b):b;return b.protocol===Hc.protocol&&b.host===Hc.host}function fe(){this.$get=ba(W)}function mc(b){function a(d,e){if(T(d)){var f={};r(d,function(b,c){f[c]=a(c,b)});return f}return b.factory(d+c,e)}var c="Filter";this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}];a("currency",Ic);a("date",Jc);a("filter",Ce);a("json",De);a("limitTo",Ee);a("lowercase",Fe);a("number",Kc);a("orderBy",Lc);a("uppercase",Ge)}function Ce(){return function(b,
|
||||
a,c){if(!J(b))return b;var d=typeof c,e=[];e.check=function(a){for(var b=0;b<e.length;b++)if(!e[b](a))return!1;return!0};"function"!==d&&(c="boolean"===d&&c?function(a,b){return Va.equals(a,b)}:function(a,b){if(a&&b&&"object"===typeof a&&"object"===typeof b){for(var d in a)if("$"!==d.charAt(0)&&kb.call(a,d)&&c(a[d],b[d]))return!0;return!1}b=(""+b).toLowerCase();return-1<(""+a).toLowerCase().indexOf(b)});var f=function(a,b){if("string"==typeof b&&"!"===b.charAt(0))return!f(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return c(a,
|
||||
b);case "object":switch(typeof b){case "object":return c(a,b);default:for(var d in a)if("$"!==d.charAt(0)&&f(a[d],b))return!0}return!1;case "array":for(d=0;d<a.length;d++)if(f(a[d],b))return!0;return!1;default:return!1}};switch(typeof a){case "boolean":case "number":case "string":a={$:a};case "object":for(var g in a)(function(b){"undefined"!==typeof a[b]&&e.push(function(c){return f("$"==b?c:c&&c[b],a[b])})})(g);break;case "function":e.push(a);break;default:return b}d=[];for(g=0;g<b.length;g++){var k=
|
||||
b[g];e.check(k)&&d.push(k)}return d}}function Ic(b){var a=b.NUMBER_FORMATS;return function(b,d){x(d)&&(d=a.CURRENCY_SYM);return Mc(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,2).replace(/\u00A4/g,d)}}function Kc(b){var a=b.NUMBER_FORMATS;return function(b,d){return Mc(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function Mc(b,a,c,d,e){if(null==b||!isFinite(b)||T(b))return"";var f=0>b;b=Math.abs(b);var g=b+"",k="",m=[],h=!1;if(-1!==g.indexOf("e")){var l=g.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&
|
||||
l[3]>e+1?(g="0",b=0):(k=g,h=!0)}if(h)0<e&&(-1<b&&1>b)&&(k=b.toFixed(e));else{g=(g.split(Nc)[1]||"").length;x(e)&&(e=Math.min(Math.max(a.minFrac,g),a.maxFrac));b=+(Math.round(+(b.toString()+"e"+e)).toString()+"e"+-e);0===b&&(f=!1);b=(""+b).split(Nc);g=b[0];b=b[1]||"";var l=0,n=a.lgSize,p=a.gSize;if(g.length>=n+p)for(l=g.length-n,h=0;h<l;h++)0===(l-h)%p&&0!==h&&(k+=c),k+=g.charAt(h);for(h=l;h<g.length;h++)0===(g.length-h)%n&&0!==h&&(k+=c),k+=g.charAt(h);for(;b.length<e;)b+="0";e&&"0"!==e&&(k+=d+b.substr(0,
|
||||
e))}m.push(f?a.negPre:a.posPre);m.push(k);m.push(f?a.negSuf:a.posSuf);return m.join("")}function Xb(b,a,c){var d="";0>b&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));return d+b}function $(b,a,c,d){c=c||0;return function(e){e=e["get"+b]();if(0<c||e>-c)e+=c;0===e&&-12==c&&(e=12);return Xb(e,a,d)}}function vb(b,a){return function(c,d){var e=c["get"+b](),f=Ia(a?"SHORT"+b:b);return d[f][e]}}function Jc(b){function a(a){var b;if(b=a.match(c)){a=new Date(0);var f=0,g=0,k=b[8]?
|
||||
a.setUTCFullYear:a.setFullYear,m=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=U(b[9]+b[10]),g=U(b[9]+b[11]));k.call(a,U(b[1]),U(b[2])-1,U(b[3]));f=U(b[4]||0)-f;g=U(b[5]||0)-g;k=U(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));m.call(a,f,g,k,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e){var f="",g=[],k,m;e=e||"mediumDate";e=b.DATETIME_FORMATS[e]||e;v(c)&&(c=He.test(c)?U(c):a(c));ib(c)&&(c=new Date(c));
|
||||
if(!ta(c))return c;for(;e;)(m=Ie.exec(e))?(g=g.concat(Ba.call(m,1)),e=g.pop()):(g.push(e),e=null);r(g,function(a){k=Je[a];f+=k?k(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return f}}function De(){return function(b){return na(b,!0)}}function Ee(){return function(b,a){if(!J(b)&&!v(b))return b;a=Infinity===Math.abs(Number(a))?Number(a):U(a);if(v(b))return a?0<=a?b.slice(0,a):b.slice(a,b.length):"";var c=[],d,e;a>b.length?a=b.length:a<-b.length&&(a=-b.length);0<a?(d=0,e=a):(d=
|
||||
b.length+a,e=b.length);for(;d<e;d++)c.push(b[d]);return c}}function Lc(b){return function(a,c,d){function e(a,b){return Ua(b)?function(b,c){return a(c,b)}:a}function f(a,b){var c=typeof a,d=typeof b;return c==d?(ta(a)&&ta(b)&&(a=a.valueOf(),b=b.valueOf()),"string"==c&&(a=a.toLowerCase(),b=b.toLowerCase()),a===b?0:a<b?-1:1):c<d?-1:1}if(!Pa(a)||!c)return a;c=J(c)?c:[c];c=Vc(c,function(a){var c=!1,d=a||Qa;if(v(a)){if("+"==a.charAt(0)||"-"==a.charAt(0))c="-"==a.charAt(0),a=a.substring(1);d=b(a);if(d.constant){var g=
|
||||
d();return e(function(a,b){return f(a[g],b[g])},c)}}return e(function(a,b){return f(d(a),d(b))},c)});for(var g=[],k=0;k<a.length;k++)g.push(a[k]);return g.sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},d))}}function ya(b){P(b)&&(b={link:b});b.restrict=b.restrict||"AC";return ba(b)}function Oc(b,a,c,d){function e(a,c){c=c?"-"+mb(c,"-"):"";d.setClass(b,(a?wb:xb)+c,(a?xb:wb)+c)}var f=this,g=b.parent().controller("form")||yb,k=0,m=f.$error={},h=[];f.$name=
|
||||
a.name||a.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;g.$addControl(f);b.addClass(Oa);e(!0);f.$addControl=function(a){Da(a.$name,"input");h.push(a);a.$name&&(f[a.$name]=a)};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];r(m,function(b,c){f.$setValidity(c,!0,a)});Sa(h,a)};f.$setValidity=function(a,b,c){var d=m[a];if(b)d&&(Sa(d,c),d.length||(k--,k||(e(b),f.$valid=!0,f.$invalid=!1),m[a]=!1,e(!0,a),g.$setValidity(a,!0,f)));else{k||e(b);if(d){if(-1!=Ra(d,c))return}else m[a]=
|
||||
d=[],k++,e(!1,a),g.$setValidity(a,!1,f);d.push(c);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){d.removeClass(b,Oa);d.addClass(b,zb);f.$dirty=!0;f.$pristine=!1;g.$setDirty()};f.$setPristine=function(){d.removeClass(b,zb);d.addClass(b,Oa);f.$dirty=!1;f.$pristine=!0;r(h,function(a){a.$setPristine()})}}function sa(b,a,c,d){b.$setValidity(a,c);return c?d:t}function Pc(b,a){var c,d;if(a)for(c=0;c<a.length;++c)if(d=a[c],b[d])return!0;return!1}function Ke(b,a,c,d,e){T(e)&&(b.$$hasNativeValidators=!0,
|
||||
b.$parsers.push(function(f){if(b.$error[a]||Pc(e,d)||!Pc(e,c))return f;b.$setValidity(a,!1)}))}function Ab(b,a,c,d,e,f){var g=a.prop(Le),k=a[0].placeholder,m={},h=K(a[0].type);d.$$validityState=g;if(!e.android){var l=!1;a.on("compositionstart",function(a){l=!0});a.on("compositionend",function(){l=!1;n()})}var n=function(e){if(!l){var f=a.val();if(Q&&"input"===(e||m).type&&a[0].placeholder!==k)k=a[0].placeholder;else if("password"!==h&&Ua(c.ngTrim||"T")&&(f=aa(f)),e=g&&d.$$hasNativeValidators,d.$viewValue!==
|
||||
f||""===f&&e)b.$root.$$phase?d.$setViewValue(f):b.$apply(function(){d.$setViewValue(f)})}};if(e.hasEvent("input"))a.on("input",n);else{var p,q=function(){p||(p=f.defer(function(){n();p=null}))};a.on("keydown",function(a){a=a.keyCode;91===a||(15<a&&19>a||37<=a&&40>=a)||q()});if(e.hasEvent("paste"))a.on("paste cut",q)}a.on("change",n);d.$render=function(){a.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)};var s=c.ngPattern;s&&((e=s.match(/^\/(.*)\/([gim]*)$/))?(s=RegExp(e[1],e[2]),e=function(a){return sa(d,
|
||||
"pattern",d.$isEmpty(a)||s.test(a),a)}):e=function(c){var e=b.$eval(s);if(!e||!e.test)throw C("ngPattern")("noregexp",s,e,ia(a));return sa(d,"pattern",d.$isEmpty(c)||e.test(c),c)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var r=U(c.ngMinlength);e=function(a){return sa(d,"minlength",d.$isEmpty(a)||a.length>=r,a)};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var u=U(c.ngMaxlength);e=function(a){return sa(d,"maxlength",d.$isEmpty(a)||a.length<=u,a)};d.$parsers.push(e);
|
||||
d.$formatters.push(e)}}function Yb(b,a){b="ngClass"+b;return["$animate",function(c){function d(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],l=0;l<b.length;l++)if(e==b[l])continue a;c.push(e)}return c}function e(a){if(!J(a)){if(v(a))return a.split(" ");if(T(a)){var b=[];r(a,function(a,c){a&&(b=b.concat(c.split(" ")))});return b}}return a}return{restrict:"AC",link:function(f,g,k){function m(a,b){var c=g.data("$classCounts")||{},d=[];r(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<
|
||||
b)&&d.push(a)});g.data("$classCounts",c);return d.join(" ")}function h(b){if(!0===a||f.$index%2===a){var h=e(b||[]);if(!l){var q=m(h,1);k.$addClass(q)}else if(!Aa(b,l)){var s=e(l),q=d(h,s),h=d(s,h),h=m(h,-1),q=m(q,1);0===q.length?c.removeClass(g,h):0===h.length?c.addClass(g,q):c.setClass(g,q,h)}}l=ha(b)}var l;f.$watch(k[b],h,!0);k.$observe("class",function(a){h(f.$eval(k[b]))});"ngClass"!==b&&f.$watch("$index",function(c,d){var g=c&1;if(g!==(d&1)){var h=e(f.$eval(k[b]));g===a?(g=m(h,1),k.$addClass(g)):
|
||||
(g=m(h,-1),k.$removeClass(g))}})}}}]}var Le="validity",K=function(b){return v(b)?b.toLowerCase():b},kb=Object.prototype.hasOwnProperty,Ia=function(b){return v(b)?b.toUpperCase():b},Q,w,Ea,Ba=[].slice,Me=[].push,za=Object.prototype.toString,Ta=C("ng"),Va=W.angular||(W.angular={}),Ya,Ma,ma=["0","0","0"];Q=U((/msie (\d+)/.exec(K(navigator.userAgent))||[])[1]);isNaN(Q)&&(Q=U((/trident\/.*; rv:(\d+)/.exec(K(navigator.userAgent))||[])[1]));E.$inject=[];Qa.$inject=[];var J=function(){return P(Array.isArray)?
|
||||
Array.isArray:function(b){return"[object Array]"===za.call(b)}}(),aa=function(){return String.prototype.trim?function(b){return v(b)?b.trim():b}:function(b){return v(b)?b.replace(/^\s\s*/,"").replace(/\s\s*$/,""):b}}();Ma=9>Q?function(b){b=b.nodeName?b:b[0];return b.scopeName&&"HTML"!=b.scopeName?Ia(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName?b.nodeName:b[0].nodeName};var Xa=function(){if(y(Xa.isActive_))return Xa.isActive_;var b=!(!X.querySelector("[ng-csp]")&&!X.querySelector("[data-ng-csp]"));
|
||||
if(!b)try{new Function("")}catch(a){b=!0}return Xa.isActive_=b},Yc=/[A-Z]/g,ad={full:"1.2.26",major:1,minor:2,dot:26,codeName:"captivating-disinterest"};S.expando="ng339";var ab=S.cache={},ne=1,sb=W.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},$a=W.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+a,c)};S._data=function(b){return this.cache[b[this.expando]]||{}};var ie=/([\:\-\_]+(.))/g,
|
||||
je=/^moz([A-Z])/,Hb=C("jqLite"),ke=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Ib=/<|&#?\w+;/,le=/<([\w:]+)/,me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ea={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ea.optgroup=ea.option;ea.tbody=ea.tfoot=ea.colgroup=ea.caption=ea.thead;ea.th=
|
||||
ea.td;var La=S.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;"complete"===X.readyState?setTimeout(a):(this.on("DOMContentLoaded",a),S(W).on("load",a))},toString:function(){var b=[];r(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return 0<=b?w(this[b]):w(this[this.length+b])},length:0,push:Me,sort:[].sort,splice:[].splice},qb={};r("multiple selected checked disabled readOnly required open".split(" "),function(b){qb[K(b)]=b});var rc={};r("input select option textarea button form details".split(" "),
|
||||
function(b){rc[Ia(b)]=!0});r({data:Mb,removeData:Lb},function(b,a){S[a]=b});r({data:Mb,inheritedData:pb,scope:function(b){return w.data(b,"$scope")||pb(b.parentNode||b,["$isolateScope","$scope"])},isolateScope:function(b){return w.data(b,"$isolateScope")||w.data(b,"$isolateScopeNoTemplate")},controller:oc,injector:function(b){return pb(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:Nb,css:function(b,a,c){a=Za(a);if(y(c))b.style[a]=c;else{var d;8>=Q&&(d=b.currentStyle&&b.currentStyle[a],
|
||||
""===d&&(d="auto"));d=d||b.style[a];8>=Q&&(d=""===d?t:d);return d}},attr:function(b,a,c){var d=K(a);if(qb[d])if(y(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||E).specified?d:t;else if(y(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),null===b?t:b},prop:function(b,a,c){if(y(c))b[a]=c;else return b[a]},text:function(){function b(b,d){var e=a[b.nodeType];if(x(d))return e?b[e]:"";b[e]=d}var a=[];9>Q?(a[1]=
|
||||
"innerText",a[3]="nodeValue"):a[1]=a[3]="textContent";b.$dv="";return b}(),val:function(b,a){if(x(a)){if("SELECT"===Ma(b)&&b.multiple){var c=[];r(b.options,function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return b.value}b.value=a},html:function(b,a){if(x(a))return b.innerHTML;for(var c=0,d=b.childNodes;c<d.length;c++)Ja(d[c]);b.innerHTML=a},empty:pc},function(b,a){S.prototype[a]=function(a,d){var e,f,g=this.length;if(b!==pc&&(2==b.length&&b!==Nb&&b!==oc?a:d)===t){if(T(a)){for(e=
|
||||
0;e<g;e++)if(b===Mb)b(this[e],a);else for(f in a)b(this[e],f,a[f]);return this}e=b.$dv;g=e===t?Math.min(g,1):g;for(f=0;f<g;f++){var k=b(this[f],a,d);e=e?e+k:k}return e}for(e=0;e<g;e++)b(this[e],a,d);return this}});r({removeData:Lb,dealoc:Ja,on:function a(c,d,e,f){if(y(f))throw Hb("onargs");var g=oa(c,"events"),k=oa(c,"handle");g||oa(c,"events",g={});k||oa(c,"handle",k=oe(c,g));r(d.split(" "),function(d){var f=g[d];if(!f){if("mouseenter"==d||"mouseleave"==d){var l=X.body.contains||X.body.compareDocumentPosition?
|
||||
function(a,c){var d=9===a.nodeType?a.documentElement:a,e=c&&c.parentNode;return a===e||!!(e&&1===e.nodeType&&(d.contains?d.contains(e):a.compareDocumentPosition&&a.compareDocumentPosition(e)&16))}:function(a,c){if(c)for(;c=c.parentNode;)if(c===a)return!0;return!1};g[d]=[];a(c,{mouseleave:"mouseout",mouseenter:"mouseover"}[d],function(a){var c=a.relatedTarget;c&&(c===this||l(this,c))||k(a,d)})}else sb(c,d,k),g[d]=[];f=g[d]}f.push(e)})},off:nc,one:function(a,c,d){a=w(a);a.on(c,function f(){a.off(c,
|
||||
d);a.off(c,f)});a.on(c,d)},replaceWith:function(a,c){var d,e=a.parentNode;Ja(a);r(new S(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];r(a.childNodes,function(a){1===a.nodeType&&c.push(a)});return c},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,c){r(new S(c),function(c){1!==a.nodeType&&11!==a.nodeType||a.appendChild(c)})},prepend:function(a,c){if(1===a.nodeType){var d=a.firstChild;r(new S(c),function(c){a.insertBefore(c,
|
||||
d)})}},wrap:function(a,c){c=w(c)[0];var d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:function(a){Ja(a);var c=a.parentNode;c&&c.removeChild(a)},after:function(a,c){var d=a,e=a.parentNode;r(new S(c),function(a){e.insertBefore(a,d.nextSibling);d=a})},addClass:ob,removeClass:nb,toggleClass:function(a,c,d){c&&r(c.split(" "),function(c){var f=d;x(f)&&(f=!Nb(a,c));(f?ob:nb)(a,c)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){if(a.nextElementSibling)return a.nextElementSibling;
|
||||
for(a=a.nextSibling;null!=a&&1!==a.nodeType;)a=a.nextSibling;return a},find:function(a,c){return a.getElementsByTagName?a.getElementsByTagName(c):[]},clone:Kb,triggerHandler:function(a,c,d){var e,f;e=c.type||c;var g=(oa(a,"events")||{})[e];g&&(e={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:E,type:e,target:a},c.type&&(e=D(e,c)),c=ha(g),f=d?[e].concat(d):[e],r(c,function(c){c.apply(a,f)}))}},function(a,c){S.prototype[c]=
|
||||
function(c,e,f){for(var g,k=0;k<this.length;k++)x(g)?(g=a(this[k],c,e,f),y(g)&&(g=w(g))):Jb(g,a(this[k],c,e,f));return y(g)?g:this};S.prototype.bind=S.prototype.on;S.prototype.unbind=S.prototype.off});bb.prototype={put:function(a,c){this[Ka(a,this.nextUid)]=c},get:function(a){return this[Ka(a,this.nextUid)]},remove:function(a){var c=this[a=Ka(a,this.nextUid)];delete this[a];return c}};var qe=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,re=/,/,se=/^\s*(_?)(\S+?)\1\s*$/,pe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,
|
||||
cb=C("$injector"),Ne=C("$animate"),Md=["$provide",function(a){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw Ne("notcsel",c);this.$$selectors[c.substr(1)]=e;a.factory(e,d)};this.classNameFilter=function(a){1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null);return this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(a,d){return{enter:function(a,c,g,k){g?g.after(a):(c&&c[0]||(c=g.parent()),c.append(a));k&&
|
||||
d(k)},leave:function(a,c){a.remove();c&&d(c)},move:function(a,c,d,k){this.enter(a,c,d,k)},addClass:function(a,c,g){c=v(c)?c:J(c)?c.join(" "):"";r(a,function(a){ob(a,c)});g&&d(g)},removeClass:function(a,c,g){c=v(c)?c:J(c)?c.join(" "):"";r(a,function(a){nb(a,c)});g&&d(g)},setClass:function(a,c,g,k){r(a,function(a){ob(a,c);nb(a,g)});k&&d(k)},enabled:E}}]}],ja=C("$compile");ic.$inject=["$provide","$$sanitizeUriProvider"];var we=/^(x[\:\-_]|data[\:\-_])/i,yc=C("$interpolate"),Oe=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,
|
||||
ze={http:80,https:443,ftp:21},Sb=C("$location");Ub.prototype=Tb.prototype=Bc.prototype={$$html5:!1,$$replace:!1,absUrl:tb("$$absUrl"),url:function(a){if(x(a))return this.$$url;a=Oe.exec(a);a[1]&&this.path(decodeURIComponent(a[1]));(a[2]||a[1])&&this.search(a[3]||"");this.hash(a[5]||"");return this},protocol:tb("$$protocol"),host:tb("$$host"),port:tb("$$port"),path:Cc("$$path",function(a){a=a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,c){switch(arguments.length){case 0:return this.$$search;
|
||||
case 1:if(v(a)||ib(a))a=a.toString(),this.$$search=ec(a);else if(T(a))r(a,function(c,e){null==c&&delete a[e]}),this.$$search=a;else throw Sb("isrcharg");break;default:x(c)||null===c?delete this.$$search[a]:this.$$search[a]=c}this.$$compose();return this},hash:Cc("$$hash",function(a){return a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};var la=C("$parse"),Fc={},wa,Pe=Function.prototype.call,Qe=Function.prototype.apply,Qc=Function.prototype.bind,gb={"null":function(){return null},
|
||||
"true":function(){return!0},"false":function(){return!1},undefined:E,"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return y(d)?y(e)?d+e:d:y(e)?e:t},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(y(d)?d:0)-(y(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,c)/e(a,c)},"%":function(a,c,d,e){return d(a,c)%e(a,c)},"^":function(a,c,d,e){return d(a,c)^e(a,c)},"=":E,"===":function(a,c,d,e){return d(a,c)===e(a,c)},"!==":function(a,c,d,e){return d(a,c)!==e(a,c)},"==":function(a,
|
||||
c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)<e(a,c)},">":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,c)||e(a,c)},"&":function(a,c,d,e){return d(a,c)&e(a,c)},"|":function(a,c,d,e){return e(a,c)(a,c,d(a,c))},"!":function(a,c,d){return!d(a,c)}},Re={n:"\n",f:"\f",r:"\r",
|
||||
t:"\t",v:"\v","'":"'",'"':'"'},Wb=function(a){this.options=a};Wb.prototype={constructor:Wb,lex:function(a){this.text=a;this.index=0;this.ch=t;this.lastCh=":";for(this.tokens=[];this.index<this.text.length;){this.ch=this.text.charAt(this.index);if(this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),
|
||||
this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{a=this.ch+this.peek();var c=a+this.peek(2),d=gb[this.ch],e=gb[a],f=gb[c];f?(this.tokens.push({index:this.index,text:c,fn:f}),this.index+=3):e?(this.tokens.push({index:this.index,text:a,fn:e}),this.index+=2):d?(this.tokens.push({index:this.index,text:this.ch,fn:d}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(a){return-1!==a.indexOf(this.ch)},
|
||||
was:function(a){return-1!==a.indexOf(this.lastCh)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=y(c)?"s "+c+"-"+this.index+" ["+
|
||||
this.text.substring(c,d)+"]":" "+d;throw la("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=K(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var e=this.peek();if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}a*=
|
||||
1;this.tokens.push({index:c,text:a,literal:!0,constant:!0,fn:function(){return a}})},readIdent:function(){for(var a=this,c="",d=this.index,e,f,g,k;this.index<this.text.length;){k=this.text.charAt(this.index);if("."===k||this.isIdent(k)||this.isNumber(k))"."===k&&(e=this.index),c+=k;else break;this.index++}if(e)for(f=this.index;f<this.text.length;){k=this.text.charAt(f);if("("===k){g=c.substr(e-d+1);c=c.substr(0,e-d);this.index=f;break}if(this.isWhitespace(k))f++;else break}d={index:d,text:c};if(gb.hasOwnProperty(c))d.fn=
|
||||
gb[c],d.literal=!0,d.constant=!0;else{var m=Ec(c,this.options,this.text);d.fn=D(function(a,c){return m(a,c)},{assign:function(d,e){return ub(d,c,e,a.text,a.options)}})}this.tokens.push(d);g&&(this.tokens.push({index:e,text:"."}),this.tokens.push({index:e+1,text:g}))},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,f=!1;this.index<this.text.length;){var g=this.text.charAt(this.index),e=e+g;if(f)"u"===g?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||
|
||||
this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d+=Re[g]||g,f=!1;else if("\\"===g)f=!0;else{if(g===a){this.index++;this.tokens.push({index:c,text:e,string:d,literal:!0,constant:!0,fn:function(){return d}});return}d+=g}this.index++}this.throwError("Unterminated quote",c)}};var fb=function(a,c,d){this.lexer=a;this.$filter=c;this.options=d};fb.ZERO=D(function(){return 0},{constant:!0});fb.prototype={constructor:fb,parse:function(a){this.text=
|
||||
a;this.tokens=this.lexer.lex(a);a=this.statements();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);a.literal=!!a.literal;a.constant=!!a.constant;return a},primary:function(){var a;if(this.expect("("))a=this.filterChain(),this.consume(")");else if(this.expect("["))a=this.arrayDeclaration();else if(this.expect("{"))a=this.object();else{var c=this.expect();(a=c.fn)||this.throwError("not a primary expression",c);a.literal=!!c.literal;a.constant=!!c.constant}for(var d;c=
|
||||
this.expect("(","[",".");)"("===c.text?(a=this.functionCall(a,d),d=null):"["===c.text?(d=a,a=this.objectIndex(a)):"."===c.text?(d=a,a=this.fieldAccess(a)):this.throwError("IMPOSSIBLE");return a},throwError:function(a,c){throw la("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},peekToken:function(){if(0===this.tokens.length)throw la("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){if(0<this.tokens.length){var f=this.tokens[0],g=f.text;if(g===a||g===c||g===d||g===
|
||||
e||!(a||c||d||e))return f}return!1},expect:function(a,c,d,e){return(a=this.peek(a,c,d,e))?(this.tokens.shift(),a):!1},consume:function(a){this.expect(a)||this.throwError("is unexpected, expecting ["+a+"]",this.peek())},unaryFn:function(a,c){return D(function(d,e){return a(d,e,c)},{constant:c.constant})},ternaryFn:function(a,c,d){return D(function(e,f){return a(e,f)?c(e,f):d(e,f)},{constant:a.constant&&c.constant&&d.constant})},binaryFn:function(a,c,d){return D(function(e,f){return c(e,f,a,d)},{constant:a.constant&&
|
||||
d.constant})},statements:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.filterChain()),!this.expect(";"))return 1===a.length?a[0]:function(c,d){for(var e,f=0;f<a.length;f++){var g=a[f];g&&(e=g(c,d))}return e}},filterChain:function(){for(var a=this.expression(),c;;)if(c=this.expect("|"))a=this.binaryFn(a,c.fn,this.filter());else return a},filter:function(){for(var a=this.expect(),c=this.$filter(a.text),d=[];;)if(a=this.expect(":"))d.push(this.expression());
|
||||
else{var e=function(a,e,k){k=[k];for(var m=0;m<d.length;m++)k.push(d[m](a,e));return c.apply(a,k)};return function(){return e}}},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary(),c,d;return(d=this.expect("="))?(a.assign||this.throwError("implies assignment but ["+this.text.substring(0,d.index)+"] can not be assigned to",d),c=this.ternary(),function(d,f){return a.assign(d,c(d,f),f)}):a},ternary:function(){var a=this.logicalOR(),c,d;if(this.expect("?")){c=this.assignment();
|
||||
if(d=this.expect(":"))return this.ternaryFn(a,c,this.assignment());this.throwError("expected :",d)}else return a},logicalOR:function(){for(var a=this.logicalAND(),c;;)if(c=this.expect("||"))a=this.binaryFn(a,c.fn,this.logicalAND());else return a},logicalAND:function(){var a=this.equality(),c;if(c=this.expect("&&"))a=this.binaryFn(a,c.fn,this.logicalAND());return a},equality:function(){var a=this.relational(),c;if(c=this.expect("==","!=","===","!=="))a=this.binaryFn(a,c.fn,this.equality());return a},
|
||||
relational:function(){var a=this.additive(),c;if(c=this.expect("<",">","<=",">="))a=this.binaryFn(a,c.fn,this.relational());return a},additive:function(){for(var a=this.multiplicative(),c;c=this.expect("+","-");)a=this.binaryFn(a,c.fn,this.multiplicative());return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a=this.binaryFn(a,c.fn,this.unary());return a},unary:function(){var a;return this.expect("+")?this.primary():(a=this.expect("-"))?this.binaryFn(fb.ZERO,a.fn,
|
||||
this.unary()):(a=this.expect("!"))?this.unaryFn(a.fn,this.unary()):this.primary()},fieldAccess:function(a){var c=this,d=this.expect().text,e=Ec(d,this.options,this.text);return D(function(c,d,k){return e(k||a(c,d))},{assign:function(e,g,k){(k=a(e,k))||a.assign(e,k={});return ub(k,d,g,c.text,c.options)}})},objectIndex:function(a){var c=this,d=this.expression();this.consume("]");return D(function(e,f){var g=a(e,f),k=d(e,f),m;ka(k,c.text);if(!g)return t;(g=va(g[k],c.text))&&(g.then&&c.options.unwrapPromises)&&
|
||||
(m=g,"$$v"in g||(m.$$v=t,m.then(function(a){m.$$v=a})),g=g.$$v);return g},{assign:function(e,f,g){var k=ka(d(e,g),c.text);(g=va(a(e,g),c.text))||a.assign(e,g={});return g[k]=f}})},functionCall:function(a,c){var d=[];if(")"!==this.peekToken().text){do d.push(this.expression());while(this.expect(","))}this.consume(")");var e=this;return function(f,g){for(var k=[],m=c?c(f,g):f,h=0;h<d.length;h++)k.push(va(d[h](f,g),e.text));h=a(f,g,m)||E;va(m,e.text);var l=e.text;if(h){if(h.constructor===h)throw la("isecfn",
|
||||
l);if(h===Pe||h===Qe||Qc&&h===Qc)throw la("isecff",l);}k=h.apply?h.apply(m,k):h(k[0],k[1],k[2],k[3],k[4]);return va(k,e.text)}},arrayDeclaration:function(){var a=[],c=!0;if("]"!==this.peekToken().text){do{if(this.peek("]"))break;var d=this.expression();a.push(d);d.constant||(c=!1)}while(this.expect(","))}this.consume("]");return D(function(c,d){for(var g=[],k=0;k<a.length;k++)g.push(a[k](c,d));return g},{literal:!0,constant:c})},object:function(){var a=[],c=!0;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;
|
||||
var d=this.expect(),d=d.string||d.text;this.consume(":");var e=this.expression();a.push({key:d,value:e});e.constant||(c=!1)}while(this.expect(","))}this.consume("}");return D(function(c,d){for(var e={},m=0;m<a.length;m++){var h=a[m];e[h.key]=h.value(c,d)}return e},{literal:!0,constant:c})}};var Vb={},xa=C("$sce"),ga={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Y=X.createElement("a"),Hc=ua(W.location.href,!0);mc.$inject=["$provide"];Ic.$inject=["$locale"];Kc.$inject=["$locale"];
|
||||
var Nc=".",Je={yyyy:$("FullYear",4),yy:$("FullYear",2,0,!0),y:$("FullYear",1),MMMM:vb("Month"),MMM:vb("Month",!0),MM:$("Month",2,1),M:$("Month",1,1),dd:$("Date",2),d:$("Date",1),HH:$("Hours",2),H:$("Hours",1),hh:$("Hours",2,-12),h:$("Hours",1,-12),mm:$("Minutes",2),m:$("Minutes",1),ss:$("Seconds",2),s:$("Seconds",1),sss:$("Milliseconds",3),EEEE:vb("Day"),EEE:vb("Day",!0),a:function(a,c){return 12>a.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){a=-1*a.getTimezoneOffset();return a=(0<=a?"+":"")+(Xb(Math[0<
|
||||
a?"floor":"ceil"](a/60),2)+Xb(Math.abs(a%60),2))}},Ie=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,He=/^\-?\d+$/;Jc.$inject=["$locale"];var Fe=ba(K),Ge=ba(Ia);Lc.$inject=["$parse"];var dd=ba({restrict:"E",compile:function(a,c){8>=Q&&(c.href||c.name||c.$set("href",""),a.append(X.createComment("IE fix")));if(!c.href&&!c.xlinkHref&&!c.name)return function(a,c){var f="[object SVGAnimatedString]"===za.call(c.prop("href"))?"xlink:href":"href";c.on("click",function(a){c.attr(f)||
|
||||
a.preventDefault()})}}}),Fb={};r(qb,function(a,c){if("multiple"!=a){var d=pa("ng-"+c);Fb[d]=function(){return{priority:100,link:function(a,f,g){a.$watch(g[d],function(a){g.$set(c,!!a)})}}}}});r(["src","srcset","href"],function(a){var c=pa("ng-"+a);Fb[c]=function(){return{priority:99,link:function(d,e,f){var g=a,k=a;"href"===a&&"[object SVGAnimatedString]"===za.call(e.prop("href"))&&(k="xlinkHref",f.$attr[k]="xlink:href",g=null);f.$observe(c,function(c){c?(f.$set(k,c),Q&&g&&e.prop(g,f[k])):"href"===
|
||||
a&&f.$set(k,null)})}}}});var yb={$addControl:E,$removeControl:E,$setValidity:E,$setDirty:E,$setPristine:E};Oc.$inject=["$element","$attrs","$scope","$animate"];var Rc=function(a){return["$timeout",function(c){return{name:"form",restrict:a?"EAC":"E",controller:Oc,compile:function(){return{pre:function(a,e,f,g){if(!f.action){var k=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1};sb(e[0],"submit",k);e.on("$destroy",function(){c(function(){$a(e[0],"submit",k)},0,!1)})}var m=e.parent().controller("form"),
|
||||
h=f.name||f.ngForm;h&&ub(a,h,g,h);if(m)e.on("$destroy",function(){m.$removeControl(g);h&&ub(a,h,t,h);D(g,yb)})}}}}}]},ed=Rc(),rd=Rc(!0),Se=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Te=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ue=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Sc={text:Ab,number:function(a,c,d,e,f,g){Ab(a,c,d,e,f,g);e.$parsers.push(function(a){var c=e.$isEmpty(a);if(c||Ue.test(a))return e.$setValidity("number",
|
||||
!0),""===a?null:c?a:parseFloat(a);e.$setValidity("number",!1);return t});Ke(e,"number",Ve,null,e.$$validityState);e.$formatters.push(function(a){return e.$isEmpty(a)?"":""+a});d.min&&(a=function(a){var c=parseFloat(d.min);return sa(e,"min",e.$isEmpty(a)||a>=c,a)},e.$parsers.push(a),e.$formatters.push(a));d.max&&(a=function(a){var c=parseFloat(d.max);return sa(e,"max",e.$isEmpty(a)||a<=c,a)},e.$parsers.push(a),e.$formatters.push(a));e.$formatters.push(function(a){return sa(e,"number",e.$isEmpty(a)||
|
||||
ib(a),a)})},url:function(a,c,d,e,f,g){Ab(a,c,d,e,f,g);a=function(a){return sa(e,"url",e.$isEmpty(a)||Se.test(a),a)};e.$formatters.push(a);e.$parsers.push(a)},email:function(a,c,d,e,f,g){Ab(a,c,d,e,f,g);a=function(a){return sa(e,"email",e.$isEmpty(a)||Te.test(a),a)};e.$formatters.push(a);e.$parsers.push(a)},radio:function(a,c,d,e){x(d.name)&&c.attr("name",hb());c.on("click",function(){c[0].checked&&a.$apply(function(){e.$setViewValue(d.value)})});e.$render=function(){c[0].checked=d.value==e.$viewValue};
|
||||
d.$observe("value",e.$render)},checkbox:function(a,c,d,e){var f=d.ngTrueValue,g=d.ngFalseValue;v(f)||(f=!0);v(g)||(g=!1);c.on("click",function(){a.$apply(function(){e.$setViewValue(c[0].checked)})});e.$render=function(){c[0].checked=e.$viewValue};e.$isEmpty=function(a){return a!==f};e.$formatters.push(function(a){return a===f});e.$parsers.push(function(a){return a?f:g})},hidden:E,button:E,submit:E,reset:E,file:E},Ve=["badInput"],jc=["$browser","$sniffer",function(a,c){return{restrict:"E",require:"?ngModel",
|
||||
link:function(d,e,f,g){g&&(Sc[K(f.type)]||Sc.text)(d,e,f,g,c,a)}}}],wb="ng-valid",xb="ng-invalid",Oa="ng-pristine",zb="ng-dirty",We=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(a,c,d,e,f,g){function k(a,c){c=c?"-"+mb(c,"-"):"";g.removeClass(e,(a?xb:wb)+c);g.addClass(e,(a?wb:xb)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=
|
||||
d.name;var m=f(d.ngModel),h=m.assign;if(!h)throw C("ngModel")("nonassign",d.ngModel,ia(e));this.$render=E;this.$isEmpty=function(a){return x(a)||""===a||null===a||a!==a};var l=e.inheritedData("$formController")||yb,n=0,p=this.$error={};e.addClass(Oa);k(!0);this.$setValidity=function(a,c){p[a]!==!c&&(c?(p[a]&&n--,n||(k(!0),this.$valid=!0,this.$invalid=!1)):(k(!1),this.$invalid=!0,this.$valid=!1,n++),p[a]=!c,k(c,a),l.$setValidity(a,c,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=
|
||||
!0;g.removeClass(e,zb);g.addClass(e,Oa)};this.$setViewValue=function(d){this.$viewValue=d;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,g.removeClass(e,Oa),g.addClass(e,zb),l.$setDirty());r(this.$parsers,function(a){d=a(d)});this.$modelValue!==d&&(this.$modelValue=d,h(a,d),r(this.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}}))};var q=this;a.$watch(function(){var c=m(a);if(q.$modelValue!==c){var d=q.$formatters,e=d.length;for(q.$modelValue=c;e--;)c=d[e](c);q.$viewValue!==c&&(q.$viewValue=
|
||||
c,q.$render())}return c})}],Gd=function(){return{require:["ngModel","^?form"],controller:We,link:function(a,c,d,e){var f=e[0],g=e[1]||yb;g.$addControl(f);a.$on("$destroy",function(){g.$removeControl(f)})}}},Id=ba({require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),kc=function(){return{require:"?ngModel",link:function(a,c,d,e){if(e){d.required=!0;var f=function(a){if(d.required&&e.$isEmpty(a))e.$setValidity("required",!1);else return e.$setValidity("required",
|
||||
!0),a};e.$formatters.push(f);e.$parsers.unshift(f);d.$observe("required",function(){f(e.$viewValue)})}}}},Hd=function(){return{require:"ngModel",link:function(a,c,d,e){var f=(a=/\/(.*)\//.exec(d.ngList))&&RegExp(a[1])||d.ngList||",";e.$parsers.push(function(a){if(!x(a)){var c=[];a&&r(a.split(f),function(a){a&&c.push(aa(a))});return c}});e.$formatters.push(function(a){return J(a)?a.join(", "):t});e.$isEmpty=function(a){return!a||!a.length}}}},Xe=/^(true|false|\d+)$/,Jd=function(){return{priority:100,
|
||||
compile:function(a,c){return Xe.test(c.ngValue)?function(a,c,f){f.$set("value",a.$eval(f.ngValue))}:function(a,c,f){a.$watch(f.ngValue,function(a){f.$set("value",a)})}}}},jd=ya({compile:function(a){a.addClass("ng-binding");return function(a,d,e){d.data("$binding",e.ngBind);a.$watch(e.ngBind,function(a){d.text(a==t?"":a)})}}}),ld=["$interpolate",function(a){return function(c,d,e){c=a(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding",c);e.$observe("ngBindTemplate",function(a){d.text(a)})}}],
|
||||
kd=["$sce","$parse",function(a,c){return{compile:function(d){d.addClass("ng-binding");return function(d,f,g){f.data("$binding",g.ngBindHtml);var k=c(g.ngBindHtml);d.$watch(function(){return(k(d)||"").toString()},function(c){f.html(a.getTrustedHtml(k(d))||"")})}}}}],md=Yb("",!0),od=Yb("Odd",0),nd=Yb("Even",1),pd=ya({compile:function(a,c){c.$set("ngCloak",t);a.removeClass("ng-cloak")}}),qd=[function(){return{scope:!0,controller:"@",priority:500}}],lc={},Ye={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),
|
||||
function(a){var c=pa("ng-"+a);lc[c]=["$parse","$rootScope",function(d,e){return{compile:function(f,g){var k=d(g[c]);return function(c,d){d.on(a,function(d){var f=function(){k(c,{$event:d})};Ye[a]&&e.$$phase?c.$evalAsync(f):c.$apply(f)})}}}}]});var td=["$animate",function(a){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var k,m,h;c.$watch(e.ngIf,function(f){Ua(f)?m||(m=c.$new(),g(m,function(c){c[c.length++]=X.createComment(" end ngIf: "+e.ngIf+
|
||||
" ");k={clone:c};a.enter(c,d.parent(),d)})):(h&&(h.remove(),h=null),m&&(m.$destroy(),m=null),k&&(h=Eb(k.clone),a.leave(h,function(){h=null}),k=null))})}}}],ud=["$http","$templateCache","$anchorScroll","$animate","$sce",function(a,c,d,e,f){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Va.noop,compile:function(g,k){var m=k.ngInclude||k.src,h=k.onload||"",l=k.autoscroll;return function(g,k,q,r,F){var u=0,t,w,R,z=function(){w&&(w.remove(),w=null);t&&(t.$destroy(),t=null);
|
||||
R&&(e.leave(R,function(){w=null}),w=R,R=null)};g.$watch(f.parseAsResourceUrl(m),function(f){var m=function(){!y(l)||l&&!g.$eval(l)||d()},q=++u;f?(a.get(f,{cache:c}).success(function(a){if(q===u){var c=g.$new();r.template=a;a=F(c,function(a){z();e.enter(a,null,k,m)});t=c;R=a;t.$emit("$includeContentLoaded");g.$eval(h)}}).error(function(){q===u&&z()}),g.$emit("$includeContentRequested")):(z(),r.template=null)})}}}}],Kd=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",
|
||||
link:function(c,d,e,f){d.html(f.template);a(d.contents())(c)}}}],vd=ya({priority:450,compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),wd=ya({terminal:!0,priority:1E3}),xd=["$locale","$interpolate",function(a,c){var d=/{}/g;return{restrict:"EA",link:function(e,f,g){var k=g.count,m=g.$attr.when&&f.attr(g.$attr.when),h=g.offset||0,l=e.$eval(m)||{},n={},p=c.startSymbol(),q=c.endSymbol(),s=/^when(Minus)?(.+)$/;r(g,function(a,c){s.test(c)&&(l[K(c.replace("when","").replace("Minus","-"))]=
|
||||
f.attr(g.$attr[c]))});r(l,function(a,e){n[e]=c(a.replace(d,p+k+"-"+h+q))});e.$watch(function(){var c=parseFloat(e.$eval(k));if(isNaN(c))return"";c in l||(c=a.pluralCat(c-h));return n[c](e,f,!0)},function(a){f.text(a)})}}}],yd=["$parse","$animate",function(a,c){var d=C("ngRepeat");return{transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,link:function(e,f,g,k,m){var h=g.ngRepeat,l=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),n,p,q,s,t,u,A={$id:Ka};if(!l)throw d("iexp",
|
||||
h);g=l[1];k=l[2];(l=l[3])?(n=a(l),p=function(a,c,d){u&&(A[u]=a);A[t]=c;A.$index=d;return n(e,A)}):(q=function(a,c){return Ka(c)},s=function(a){return a});l=g.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!l)throw d("iidexp",g);t=l[3]||l[1];u=l[2];var y={};e.$watchCollection(k,function(a){var g,k,l=f[0],n,A={},B,I,H,v,E,C,x,J=[];if(Pa(a))C=a,E=p||q;else{E=p||s;C=[];for(H in a)a.hasOwnProperty(H)&&"$"!=H.charAt(0)&&C.push(H);C.sort()}B=C.length;k=J.length=C.length;for(g=0;g<k;g++)if(H=a===
|
||||
C?g:C[g],v=a[H],n=E(H,v,g),Da(n,"`track by` id"),y.hasOwnProperty(n))x=y[n],delete y[n],A[n]=x,J[g]=x;else{if(A.hasOwnProperty(n))throw r(J,function(a){a&&a.scope&&(y[a.id]=a)}),d("dupes",h,n,na(v));J[g]={id:n};A[n]=!1}for(H in y)y.hasOwnProperty(H)&&(x=y[H],g=Eb(x.clone),c.leave(g),r(g,function(a){a.$$NG_REMOVED=!0}),x.scope.$destroy());g=0;for(k=C.length;g<k;g++){H=a===C?g:C[g];v=a[H];x=J[g];J[g-1]&&(l=J[g-1].clone[J[g-1].clone.length-1]);if(x.scope){I=x.scope;n=l;do n=n.nextSibling;while(n&&n.$$NG_REMOVED);
|
||||
x.clone[0]!=n&&c.move(Eb(x.clone),null,w(l));l=x.clone[x.clone.length-1]}else I=e.$new();I[t]=v;u&&(I[u]=H);I.$index=g;I.$first=0===g;I.$last=g===B-1;I.$middle=!(I.$first||I.$last);I.$odd=!(I.$even=0===(g&1));x.scope||m(I,function(a){a[a.length++]=X.createComment(" end ngRepeat: "+h+" ");c.enter(a,null,w(l));l=a;x.scope=I;x.clone=a;A[x.id]=x})}y=A})}}}],zd=["$animate",function(a){return function(c,d,e){c.$watch(e.ngShow,function(c){a[Ua(c)?"removeClass":"addClass"](d,"ng-hide")})}}],sd=["$animate",
|
||||
function(a){return function(c,d,e){c.$watch(e.ngHide,function(c){a[Ua(c)?"addClass":"removeClass"](d,"ng-hide")})}}],Ad=ya(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&r(d,function(a,d){c.css(d,"")});a&&c.css(a)},!0)}),Bd=["$animate",function(a){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,f){var g=[],k=[],m=[],h=[];c.$watch(e.ngSwitch||e.on,function(d){var n,p;n=0;for(p=m.length;n<p;++n)m[n].remove();n=m.length=0;for(p=
|
||||
h.length;n<p;++n){var q=k[n];h[n].$destroy();m[n]=q;a.leave(q,function(){m.splice(n,1)})}k.length=0;h.length=0;if(g=f.cases["!"+d]||f.cases["?"])c.$eval(e.change),r(g,function(d){var e=c.$new();h.push(e);d.transclude(e,function(c){var e=d.element;k.push(c);a.enter(c,e.parent(),e)})})})}}}],Cd=ya({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,c,d,e,f){e.cases["!"+d.ngSwitchWhen]=e.cases["!"+d.ngSwitchWhen]||[];e.cases["!"+d.ngSwitchWhen].push({transclude:f,element:c})}}),Dd=
|
||||
ya({transclude:"element",priority:800,require:"^ngSwitch",link:function(a,c,d,e,f){e.cases["?"]=e.cases["?"]||[];e.cases["?"].push({transclude:f,element:c})}}),Fd=ya({link:function(a,c,d,e,f){if(!f)throw C("ngTransclude")("orphan",ia(c));f(function(a){c.empty();c.append(a)})}}),fd=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==d.type&&a.put(d.id,c[0].text)}}}],Ze=C("ngOptions"),Ed=ba({terminal:!0}),gd=["$compile","$parse",function(a,c){var d=
|
||||
/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,e={$setViewValue:E};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,c,d){var m=this,h={},l=e,n;m.databound=d.ngModel;m.init=function(a,c,d){l=a;n=d};m.addOption=function(c){Da(c,'"option value"');h[c]=!0;l.$viewValue==c&&(a.val(c),n.parent()&&n.remove())};
|
||||
m.removeOption=function(a){this.hasOption(a)&&(delete h[a],l.$viewValue==a&&this.renderUnknownOption(a))};m.renderUnknownOption=function(c){c="? "+Ka(c)+" ?";n.val(c);a.prepend(n);a.val(c);n.prop("selected",!0)};m.hasOption=function(a){return h.hasOwnProperty(a)};c.$on("$destroy",function(){m.renderUnknownOption=E})}],link:function(e,g,k,m){function h(a,c,d,e){d.$render=function(){var a=d.$viewValue;e.hasOption(a)?(v.parent()&&v.remove(),c.val(a),""===a&&u.prop("selected",!0)):x(a)&&u?c.val(""):e.renderUnknownOption(a)};
|
||||
c.on("change",function(){a.$apply(function(){v.parent()&&v.remove();d.$setViewValue(c.val())})})}function l(a,c,d){var e;d.$render=function(){var a=new bb(d.$viewValue);r(c.find("option"),function(c){c.selected=y(a.get(c.value))})};a.$watch(function(){Aa(e,d.$viewValue)||(e=ha(d.$viewValue),d.$render())});c.on("change",function(){a.$apply(function(){var a=[];r(c.find("option"),function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}function n(e,f,g){function k(){var a={"":[]},c=[""],d,h,
|
||||
s,t,v;s=g.$modelValue;t=w(e)||[];var E=n?Zb(t):t,I,M,B;M={};B=!1;if(q)if(h=g.$modelValue,x&&J(h))for(B=new bb([]),d={},v=0;v<h.length;v++)d[m]=h[v],B.put(x(e,d),h[v]);else B=new bb(h);v=B;var D,K;for(B=0;I=E.length,B<I;B++){h=B;if(n){h=E[B];if("$"===h.charAt(0))continue;M[n]=h}M[m]=t[h];d=r(e,M)||"";(h=a[d])||(h=a[d]=[],c.push(d));q?d=y(v.remove(x?x(e,M):u(e,M))):(x?(d={},d[m]=s,d=x(e,d)===x(e,M)):d=s===u(e,M),v=v||d);D=l(e,M);D=y(D)?D:"";h.push({id:x?x(e,M):n?E[B]:B,label:D,selected:d})}q||(F||null===
|
||||
s?a[""].unshift({id:"",label:"",selected:!v}):v||a[""].unshift({id:"?",label:"",selected:!0}));M=0;for(E=c.length;M<E;M++){d=c[M];h=a[d];z.length<=M?(s={element:C.clone().attr("label",d),label:h.label},t=[s],z.push(t),f.append(s.element)):(t=z[M],s=t[0],s.label!=d&&s.element.attr("label",s.label=d));D=null;B=0;for(I=h.length;B<I;B++)d=h[B],(v=t[B+1])?(D=v.element,v.label!==d.label&&D.text(v.label=d.label),v.id!==d.id&&D.val(v.id=d.id),D[0].selected!==d.selected&&(D.prop("selected",v.selected=d.selected),
|
||||
Q&&D.prop("selected",v.selected))):(""===d.id&&F?K=F:(K=A.clone()).val(d.id).prop("selected",d.selected).attr("selected",d.selected).text(d.label),t.push({element:K,label:d.label,id:d.id,selected:d.selected}),p.addOption(d.label,K),D?D.after(K):s.element.append(K),D=K);for(B++;t.length>B;)d=t.pop(),p.removeOption(d.label),d.element.remove()}for(;z.length>M;)z.pop()[0].element.remove()}var h;if(!(h=s.match(d)))throw Ze("iexp",s,ia(f));var l=c(h[2]||h[1]),m=h[4]||h[6],n=h[5],r=c(h[3]||""),u=c(h[2]?
|
||||
h[1]:m),w=c(h[7]),x=h[8]?c(h[8]):null,z=[[{element:f,label:""}]];F&&(a(F)(e),F.removeClass("ng-scope"),F.remove());f.empty();f.on("change",function(){e.$apply(function(){var a,c=w(e)||[],d={},h,l,p,r,s,v,y;if(q)for(l=[],r=0,v=z.length;r<v;r++)for(a=z[r],p=1,s=a.length;p<s;p++){if((h=a[p].element)[0].selected){h=h.val();n&&(d[n]=h);if(x)for(y=0;y<c.length&&(d[m]=c[y],x(e,d)!=h);y++);else d[m]=c[h];l.push(u(e,d))}}else if(h=f.val(),"?"==h)l=t;else if(""===h)l=null;else if(x)for(y=0;y<c.length;y++){if(d[m]=
|
||||
c[y],x(e,d)==h){l=u(e,d);break}}else d[m]=c[h],n&&(d[n]=h),l=u(e,d);g.$setViewValue(l);k()})});g.$render=k;e.$watchCollection(w,k);e.$watchCollection(function(){var a={},c=w(e);if(c){for(var d=Array(c.length),f=0,g=c.length;f<g;f++)a[m]=c[f],d[f]=l(e,a);return d}},k);q&&e.$watchCollection(function(){return g.$modelValue},k)}if(m[1]){var p=m[0];m=m[1];var q=k.multiple,s=k.ngOptions,F=!1,u,A=w(X.createElement("option")),C=w(X.createElement("optgroup")),v=A.clone();k=0;for(var z=g.children(),E=z.length;k<
|
||||
E;k++)if(""===z[k].value){u=F=z.eq(k);break}p.init(m,F,v);q&&(m.$isEmpty=function(a){return!a||0===a.length});s?n(e,g,m):q?l(e,g,m):h(e,g,m,p)}}}}],id=["$interpolate",function(a){var c={addOption:E,removeOption:E};return{restrict:"E",priority:100,compile:function(d,e){if(x(e.value)){var f=a(d.text(),!0);f||e.$set("value",d.text())}return function(a,d,e){var h=d.parent(),l=h.data("$selectController")||h.parent().data("$selectController");l&&l.databound?d.prop("selected",!1):l=c;f?a.$watch(f,function(a,
|
||||
c){e.$set("value",a);a!==c&&l.removeOption(c);l.addOption(a)}):l.addOption(e.value);d.on("$destroy",function(){l.removeOption(e.value)})}}}}],hd=ba({restrict:"E",terminal:!0});W.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):((Ea=W.jQuery)&&Ea.fn.on?(w=Ea,D(Ea.fn,{scope:La.scope,isolateScope:La.isolateScope,controller:La.controller,injector:La.injector,inheritedData:La.inheritedData}),Gb("remove",!0,!0,!1),Gb("empty",!1,!1,!1),Gb("html",!1,!1,!0)):w=S,Va.element=w,
|
||||
$c(Va),w(X).ready(function(){Xc(X,fc)}))})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>');
|
||||
//# sourceMappingURL=angular.min.js.map
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
(function() {
|
||||
tinymce.create('tinymce.plugins.poll_mce', {
|
||||
|
||||
init : function(ed, url){
|
||||
|
||||
ed.addCommand('mcepoll_mce', function() {
|
||||
ed.windowManager.open({
|
||||
file : poll_admin_ajax+'?action=poll_window_manager',
|
||||
width : 350 + ed.getLang('poll_mce.delta_width', 0),
|
||||
height : 150 + ed.getLang('poll_mce.delta_height', 0),
|
||||
inline : 1
|
||||
}, {
|
||||
plugin_url : url // Plugin absolute URL
|
||||
});
|
||||
});
|
||||
ed.addButton('poll_mce', {
|
||||
title : 'Insert Poll',
|
||||
cmd : 'mcepoll_mce',
|
||||
image: poll_admin_url + 'admin/images/icon-polling.png'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
tinymce.PluginManager.add('poll_mce', tinymce.plugins.poll_mce);
|
||||
|
||||
})();
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
.div_included_slider{
|
||||
padding-top:3px;
|
||||
}
|
||||
.slider_parametrs{
|
||||
padding-left:5px;
|
||||
width:180px;
|
||||
float:left;
|
||||
margin-top:2px;
|
||||
}
|
||||
.slider_input{
|
||||
display:none;
|
||||
}
|
||||
wp_lightbox2_settings_table > tbody >tr:nth-child(odd){
|
||||
background-color:#000000;
|
||||
}
|
||||
.slider_span{
|
||||
margin-left: 13px;
|
||||
}
|
||||
.desription_class{
|
||||
float:right;
|
||||
cursor:default;
|
||||
color:#0074a2;
|
||||
font-size:18px;
|
||||
font-weight:bold;
|
||||
border:1px solid #000000;
|
||||
border-radius:200px;
|
||||
height:20px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
margin-left:15px;
|
||||
}
|
||||
|
||||
.wp-picker-holder{
|
||||
position:absolute;
|
||||
z-index:999999;
|
||||
}
|
||||
|
||||
.not_paramter{
|
||||
color:#B33F41;
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
/* SAVE BUTTON*/
|
||||
button{
|
||||
webkit-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
|
||||
-moz-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
|
||||
-ms-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
|
||||
-o-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
|
||||
transition:0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
|
||||
}
|
||||
#save_button,#save_button_general{
|
||||
width: 100px;
|
||||
text-align: left;
|
||||
overflow:hidden;
|
||||
}
|
||||
#save_button_general{
|
||||
width: 100px;
|
||||
}
|
||||
.padding_loading{
|
||||
width: 130px !important;
|
||||
}
|
||||
#save_button_general.padding_loading{
|
||||
width: 130px !important;
|
||||
|
||||
}
|
||||
.saving_in_progress{
|
||||
position: relative;
|
||||
display:none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-left: 12px;
|
||||
top: 4px;
|
||||
background-image: url(../images/loading.gif);
|
||||
background-size:100% 100%;
|
||||
}
|
||||
.sucsses_save{
|
||||
position: relative;
|
||||
display:none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-left: 12px;
|
||||
top: 4px;
|
||||
background-image: url(../images/success.png);
|
||||
background-size:100% 100%;
|
||||
}
|
||||
.error_in_saving{
|
||||
position: relative;
|
||||
display:none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-left: 12px;
|
||||
top: 4px;
|
||||
background-image: url(../images/remove_element.png);
|
||||
background-size:100% 100%;
|
||||
}
|
||||
.error_massage{
|
||||
color: #BB1E1E;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
padding-left: 21px;
|
||||
}
|
||||
|
After Width: | Height: | Size: 457 B |
|
After Width: | Height: | Size: 351 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 301 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
class wp_lightbox2_database_params{
|
||||
|
||||
public $installed_options; // all standart_options
|
||||
private $plugin_url;
|
||||
public $get_general_settings;
|
||||
public $get_design_settings;
|
||||
function __construct(){
|
||||
|
||||
if(isset($params['plugin_url']))
|
||||
$this->plugin_url=$params['plugin_url'];
|
||||
else
|
||||
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
|
||||
$general_settings=array(
|
||||
'jqlb_overlay_opacity'=>'80',
|
||||
'jqlb_help_text'=>'',
|
||||
'jqlb_margin_size'=>0,
|
||||
'jqlb_automate'=>1,
|
||||
'jqlb_comments'=>1,
|
||||
'jqlb_resize_on_demand'=>0,
|
||||
'jqlb_show_download'=>0,
|
||||
'jqlb_navbarOnTop'=>0,
|
||||
'jqlb_resize_speed'=>400,
|
||||
);
|
||||
foreach($general_settings as $key => $value){
|
||||
if(!(get_option($key,12365498798465132148947984651)==12365498798465132148947984651)){
|
||||
$general_settings[$key]=get_option($key);
|
||||
}
|
||||
else{
|
||||
$general_settings[$key]=$value;
|
||||
}
|
||||
}
|
||||
$this->get_general_settings=$general_settings;
|
||||
$locale = jqlb_get_locale();
|
||||
$folder='';
|
||||
switch($locale){
|
||||
case 'cs_CZ':
|
||||
$folder='cs_CZ/';
|
||||
break;
|
||||
case 'ru_RU':
|
||||
$folder='ru_RU/';
|
||||
break;
|
||||
case 'pl_PL':
|
||||
$folder='pl_PL/';
|
||||
break;
|
||||
case 'he_IL':
|
||||
$folder='he_IL/';
|
||||
break;
|
||||
}
|
||||
|
||||
// Note: Deprecated 3.0.5+
|
||||
$design_settings=array(
|
||||
'jqlb_overlay_opacity'=>'80',
|
||||
'jqlb_overlay_color'=>'#000000',
|
||||
'jqlb_overlay_close'=>'1',
|
||||
'jqlb_border_width'=>'10',
|
||||
'jqlb_border_color'=>'#ffffff',
|
||||
'jqlb_border_radius'=>'0',
|
||||
'jqlb_image_info_background_transparency'=>'100',
|
||||
'jqlb_image_info_bg_color'=>'#ffffff',
|
||||
'jqlb_image_info_text_color'=>'#000000',
|
||||
'jqlb_image_info_text_fontsize'=>'10',
|
||||
'jqlb_show_text_for_image'=>'1',
|
||||
'jqlb_next_image_title'=> __('next image', 'jqlb'),
|
||||
'jqlb_previous_image_title'=>__('previous image', 'jqlb'),
|
||||
'jqlb_next_button_image'=>$this->plugin_url.'styles/images/'.$folder.'next.gif',
|
||||
'jqlb_previous_button_image'=>$this->plugin_url.'styles/images/'.$folder.'prev.gif',
|
||||
'jqlb_maximum_width'=>'',
|
||||
'jqlb_maximum_height'=>'',
|
||||
'jqlb_show_close_button'=>'1',
|
||||
'jqlb_close_image_title'=>__('close image gallery', 'jqlb'),
|
||||
'jqlb_close_image_max_heght'=>'22',
|
||||
'jqlb_image_for_close_lightbox'=>$this->plugin_url.'styles/images/'.$folder.'closelabel.gif',
|
||||
'jqlb_keyboard_navigation'=>'1',
|
||||
'jqlb_popup_size_fix'=>'0',
|
||||
);
|
||||
foreach($design_settings as $key => $value){
|
||||
if(!(get_option($key,12365498798465132148947984651)==12365498798465132148947984651)){
|
||||
$design_settings[$key]=get_option($key);
|
||||
}
|
||||
else{
|
||||
$design_settings[$key]=$value;
|
||||
}
|
||||
}
|
||||
$this->get_design_settings=$design_settings;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"presets": [
|
||||
"@babel/preset-env",
|
||||
"minify"
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,666 @@
|
|||
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||
const Lightbox = require("./lightbox");
|
||||
|
||||
},{"./lightbox":2}],2:[function(require,module,exports){
|
||||
const Lightbox = require("./lightbox/Lightbox");
|
||||
|
||||
(function($){
|
||||
$.fn.lightbox = {};
|
||||
$.fn.lightbox.parseJsonData = function(data) {
|
||||
var imageArray = [];
|
||||
$.each(data, function () {
|
||||
imageArray.push(new Array(this.url, this.title));
|
||||
});
|
||||
return imageArray;
|
||||
};
|
||||
$.fn.lightbox.defaults = {
|
||||
adminBarHeight:28,
|
||||
overlayOpacity: 0.8,
|
||||
borderSize: 10,
|
||||
imageArray: new Array,
|
||||
activeImage: null,
|
||||
inprogress: false, //this is an internal state variable. don't touch.
|
||||
widthCurrent: 250,
|
||||
heightCurrent: 250,
|
||||
xScale: 1,
|
||||
yScale: 1,
|
||||
displayTitle: true,
|
||||
disableNavbarLinks: true,
|
||||
loopImages: true,
|
||||
imageClickClose: true,
|
||||
jsonData: null,
|
||||
jsonDataParser: null,
|
||||
followScroll: false,
|
||||
isIE8: false //toyNN:internal value only
|
||||
};
|
||||
$(document).ready(function($){
|
||||
var haveConf = (typeof JQLBSettings == 'object');
|
||||
if(haveConf && JQLBSettings.resizeSpeed) {
|
||||
JQLBSettings.resizeSpeed = parseInt(JQLBSettings.resizeSpeed);
|
||||
}
|
||||
if(haveConf && JQLBSettings.marginSize){
|
||||
JQLBSettings.marginSize = parseInt(JQLBSettings.marginSize);
|
||||
}
|
||||
var default_strings = {
|
||||
help: ' Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.',
|
||||
prevLinkTitle: 'previous image',
|
||||
nextLinkTitle: 'next image',
|
||||
prevLinkText: '« Previous',
|
||||
nextLinkText: 'Next »',
|
||||
closeTitle: 'close image gallery',
|
||||
image: 'Image ',
|
||||
of: ' of ',
|
||||
download: 'Download'
|
||||
};
|
||||
new Lightbox($('a[rel^="lightbox"]'), {
|
||||
adminBarHeight: $('#wpadminbar').height() || 0,
|
||||
linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
|
||||
displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
|
||||
marginSize: (haveConf && JQLBSettings.marginSize) ? JQLBSettings.marginSize : 0,
|
||||
fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
|
||||
resizeSpeed: (haveConf && JQLBSettings.resizeSpeed >= 0) ? JQLBSettings.resizeSpeed : 400,
|
||||
displayDownloadLink: (haveConf && JQLBSettings.displayDownloadLink == '0') ? false : true,
|
||||
navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true,
|
||||
//followScroll: (haveConf && JQLBSettings.followScroll == '0') ? false : true,
|
||||
strings: (haveConf && typeof JQLBSettings.help == 'string') ? JQLBSettings : default_strings
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
},{"./lightbox/Lightbox":6}],3:[function(require,module,exports){
|
||||
const $ = window.jQuery;
|
||||
|
||||
|
||||
class Display {
|
||||
constructor(config, helper) {
|
||||
this.config = config;
|
||||
this.helper = helper;
|
||||
}
|
||||
changeImage(imageNum) {
|
||||
if (this.config.inprogress == false) {
|
||||
this.config.inprogress = true;
|
||||
this.config.activeImage = imageNum;
|
||||
// hide elements during transition
|
||||
const loading = document.getElementById('loading');
|
||||
const lightboxImage = document.getElementById('lightboxImage');
|
||||
const hoverNav = document.getElementById('hoverNav');
|
||||
const prevLink = document.getElementById('prevLink');
|
||||
const nextLink = document.getElementById('nextLink');
|
||||
if (loading) {
|
||||
this.helper.show(loading);
|
||||
}
|
||||
if (lightboxImage) {
|
||||
this.helper.hide(lightboxImage);
|
||||
}
|
||||
if (hoverNav) {
|
||||
this.helper.hide(hoverNav);
|
||||
}
|
||||
if (prevLink) {
|
||||
this.helper.hide(prevLink);
|
||||
}
|
||||
if (nextLink) {
|
||||
this.helper.hide(nextLink);
|
||||
}
|
||||
this.doChangeImage();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
doChangeImage() {
|
||||
this.config.imgPreloader = new Image();
|
||||
this.config.imgPreloader.onload = _ => {
|
||||
const lightboxImage = document.getElementById('lightboxImage');
|
||||
if (lightboxImage) {
|
||||
lightboxImage.src = this.config.imageArray[this.config.activeImage][0];
|
||||
}
|
||||
this.doScale(); // once image is preloaded, resize image container
|
||||
this.preloadNeighborImages();
|
||||
};
|
||||
this.config.imgPreloader.src = this.config.imageArray[this.config.activeImage][0];
|
||||
};
|
||||
|
||||
doScale() {
|
||||
const overlay = document.getElementById('overlay');
|
||||
if (!overlay || !this.config.imgPreloader) {
|
||||
return;
|
||||
}
|
||||
var newWidth = this.config.imgPreloader.width;
|
||||
var newHeight = this.config.imgPreloader.height;
|
||||
var arrayPageSize = this.helper.getPageSize();
|
||||
var noScrollWidth = (arrayPageSize[2] < arrayPageSize[0]) ? arrayPageSize[0] : arrayPageSize[2]; //if viewport is smaller than page, use page width.
|
||||
overlay.style.width = noScrollWidth + 'px';
|
||||
overlay.style.height = arrayPageSize[1] + 'px';
|
||||
const imageDataContainer = document.getElementById('imageDataContainer');
|
||||
var maxHeight = (arrayPageSize[3]) - (imageDataContainer.style.height + (2 * this.config.borderSize));
|
||||
var maxWidth = (arrayPageSize[2]) - (2 * this.config.borderSize);
|
||||
if (this.config.fitToScreen) {
|
||||
var displayHeight = maxHeight - this.config.marginSize;
|
||||
var displayWidth = maxWidth - this.config.marginSize;
|
||||
var ratio = 1;
|
||||
if (newHeight > displayHeight) {
|
||||
ratio = displayHeight / newHeight; //ex. 600/1024 = 0.58
|
||||
}
|
||||
newWidth = newWidth * ratio;
|
||||
newHeight = newHeight * ratio;
|
||||
ratio = 1;
|
||||
if (newWidth > displayWidth) {
|
||||
ratio = displayWidth / newWidth; //ex. 800/1280 == 0.62
|
||||
}
|
||||
newWidth = Math.round(newWidth * ratio);
|
||||
newHeight = Math.round(newHeight * ratio);
|
||||
}
|
||||
var arrayPageScroll = this.helper.getPageScroll();
|
||||
var centerY = arrayPageScroll[1] + (maxHeight * 0.5);
|
||||
var newTop = centerY - newHeight * 0.5;
|
||||
var newLeft = arrayPageScroll[0];
|
||||
const lightbox = document.getElementById('lightboxImage');
|
||||
lightbox.style.width = newWidth;
|
||||
lightbox.style.height = newHeight;
|
||||
this.resizeImageContainer(newWidth, newHeight, newTop, newLeft);
|
||||
}
|
||||
/*2.28.4 - Compatible with wordpress 3.6.*/
|
||||
resizeImageContainer(imgWidth, imgHeight, lightboxTop, lightboxLeft) {
|
||||
const outerImageContainer = document.getElementById("outerImageContainer");
|
||||
const imageDataContainer = document.getElementById("imageDataContainer");
|
||||
if (!outerImageContainer || !imageDataContainer) {
|
||||
return;
|
||||
}
|
||||
this.config.widthCurrent = outerImageContainer.offsetWidth;
|
||||
this.config.heightCurrent = outerImageContainer.offsetHeight;
|
||||
var widthNew = Math.max(350, imgWidth + ((this.config.borderSize || 0) * 2));
|
||||
var heightNew = (imgHeight + ((this.config.borderSize || 0) * 2));
|
||||
// scalars based on change from old to new
|
||||
this.config.xScale = (widthNew / this.config.widthCurrent) * 100;
|
||||
this.config.yScale = (heightNew / this.config.heightCurrent) * 100;
|
||||
this.helper.setLightBoxPos(lightboxTop, lightboxLeft);
|
||||
this.updateDetails(); //toyNN: moved updateDetails() here, seems to work fine.
|
||||
|
||||
|
||||
$('#imageDataContainer').animate({ width: widthNew }, this.config.resizeSpeed, 'linear');
|
||||
$('#outerImageContainer').animate({ width: widthNew }, this.config.resizeSpeed, 'linear', _ => {
|
||||
$('#outerImageContainer').animate({ height: heightNew }, this.config.resizeSpeed, 'linear', _=> {
|
||||
this.showImage();
|
||||
});
|
||||
});
|
||||
|
||||
this.showNavigationElements();
|
||||
if (document.getElementById("prevLink"))
|
||||
document.getElementById("prevLink").style.height = imgHeight;
|
||||
if (document.getElementById("nextLink"))
|
||||
document.getElementById("nextLink").style.height = imgHeight;
|
||||
};
|
||||
|
||||
showImage() {
|
||||
//assumes updateDetails have been called earlier!
|
||||
this.helper.show(document.getElementById("imageData"));
|
||||
this.helper.show(document.getElementById('caption'));
|
||||
//$('#imageDataContainer').slideDown(400);
|
||||
//$("#imageDetails").hide().fadeIn(400);
|
||||
this.helper.hide(document.getElementById("loading"));
|
||||
if (this.config.resizeSpeed > 0) {
|
||||
$('#lightboxImage').fadeIn("fast");
|
||||
} else {
|
||||
this.helper.show(document.getElementById("lightboxImage"));
|
||||
}
|
||||
this.config.inprogress = false;
|
||||
};
|
||||
|
||||
preloadNeighborImages() {
|
||||
if (this.config.loopImages && this.config.imageArray.length > 1) {
|
||||
let preloadNextImage = new Image();
|
||||
preloadNextImage.src = this.config.imageArray[(this.config.activeImage == (this.config.imageArray.length - 1)) ? 0 : this.config.activeImage + 1][0]
|
||||
let preloadPrevImage = new Image();
|
||||
preloadPrevImage.src = this.config.imageArray[(this.config.activeImage == 0) ? (this.config.imageArray.length - 1) : this.config.activeImage - 1][0]
|
||||
} else {
|
||||
if ((this.config.imageArray.length - 1) > this.config.activeImage) {
|
||||
let preloadNextImage = new Image();
|
||||
preloadNextImage.src = this.config.imageArray[this.config.activeImage + 1][0];
|
||||
}
|
||||
if (this.config.activeImage > 0) {
|
||||
let preloadPrevImage = new Image();
|
||||
preloadPrevImage.src = this.config.imageArray[this.config.activeImage - 1][0];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
updateDetails() {
|
||||
const numberDisplay = document.getElementById('numberDisplay');
|
||||
if (numberDisplay) {
|
||||
numberDisplay.innerHTML = '';
|
||||
}
|
||||
const caption = document.getElementById('caption');
|
||||
if (caption) {
|
||||
caption.innerHTML = '';
|
||||
this.helper.hide(caption);
|
||||
if (this.config.imageArray[this.config.activeImage][1]) {
|
||||
caption.innerHTML = this.config.imageArray[this.config.activeImage][1];
|
||||
this.helper.show();
|
||||
}
|
||||
}
|
||||
var nav_html = '';
|
||||
var prev = '';
|
||||
var pos = (this.config.imageArray.length > 1) ? this.config.strings.image + (this.config.activeImage + 1) + this.config.strings.of + this.config.imageArray.length : '';
|
||||
var link = (this.config.displayDownloadLink) ? '<a href="' + this.config.imageArray[this.config.activeImage][0] + '" id="downloadLink" target="' + this.config.linkTarget + '">' + this.config.strings.download + '</a>' : '';
|
||||
var next = '';
|
||||
if (this.config.imageArray.length > 1 && !this.config.disableNavbarLinks) { // display previous / next text links
|
||||
if ((this.config.activeImage) > 0 || this.config.loopImages) {
|
||||
prev = '<a title="' + this.config.strings.prevLinkTitle + '" href="#" id="prevLinkText">' + this.config.strings.prevLinkText + "</a>";
|
||||
}
|
||||
if (((this.config.activeImage + 1) < this.config.imageArray.length) || this.config.loopImages) {
|
||||
next += '<a title="' + this.config.strings.nextLinkTitle + '" href="#" id="nextLinkText">' + this.config.strings.nextLinkText + "</a>";
|
||||
}
|
||||
}
|
||||
nav_html = prev + nav_html + pos + link + next;
|
||||
if (nav_html != '') {
|
||||
if (document.getElementById("numberDisplay")) {
|
||||
document.getElementById("numberDisplay").innerHTML = nav_html;
|
||||
this.helper.show(document.getElementById("numberDisplay"));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
showNavigationElements() {
|
||||
const prevLink = document.getElementById("prevLink");
|
||||
const prevLinkText = document.getElementById("prevLinkText");
|
||||
const nextLink = document.getElementById("nextLink");
|
||||
const nextLinkText = document.getElementById("nextLinkText");
|
||||
if (this.config.imageArray.length > 1) {
|
||||
this.helper.show(document.getElementById("hoverNav"));
|
||||
// if loopImages is true, always show next and prev image buttons
|
||||
if (this.config.loopImages) {
|
||||
this.helper.show(prevLink);
|
||||
this.helper.show(prevLinkText);
|
||||
this.helper.show(nextLink);
|
||||
this.helper.show(nextLinkText);
|
||||
|
||||
} else {
|
||||
// if not first image in set, display prev image button
|
||||
if (this.config.activeImage != 0) {
|
||||
this.helper.show(prevLink);
|
||||
this.helper.show(prevLinkText);
|
||||
}
|
||||
// if not last image in set, display next image button
|
||||
if (this.config.activeImage != (this.config.imageArray.length - 1)) {
|
||||
this.helper.show(nextLink);
|
||||
this.helper.show(nextLink);
|
||||
}
|
||||
}
|
||||
//this.enableKeyboardNav();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = Display;
|
||||
},{}],4:[function(require,module,exports){
|
||||
class Events {
|
||||
constructor(config, parent) {
|
||||
this.config = config;
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
bindNavigationButtons(callback) {
|
||||
const prevLink = document.getElementById("prevLink");
|
||||
const prevLinkText = document.getElementById("prevLinkText");
|
||||
const nextLink = document.getElementById("nextLink");
|
||||
const nextLinkText = document.getElementById("nextLinkText");
|
||||
if(prevLink) {
|
||||
prevLink.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'prev'));
|
||||
}
|
||||
if(prevLinkText) {
|
||||
prevLinkText.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'prev'));
|
||||
}
|
||||
if(nextLink) {
|
||||
nextLink.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'next'));
|
||||
}
|
||||
if(nextLinkText) {
|
||||
nextLinkText.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'next'));
|
||||
}
|
||||
}
|
||||
|
||||
onNavigationButtonClick(callback, direction, e) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault();
|
||||
if(direction === 'prev') {
|
||||
const index = (this.config.activeImage == 0) ? (this.config.imageArray.length - 1) : this.config.activeImage - 1;
|
||||
callback(index);
|
||||
}
|
||||
if(direction === 'next') {
|
||||
const index = (this.config.activeImage == (this.config.imageArray.length - 1)) ? 0 : this.config.activeImage + 1;
|
||||
callback(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
enableKeyboardNav(callback) {
|
||||
document.addEventListener('keydown', this.keyboardAction.bind(this, callback));
|
||||
}
|
||||
|
||||
keyboardAction(callback, e) {
|
||||
var config = this.config;
|
||||
var keycode = e.keyCode;
|
||||
var escapeKey = 27;
|
||||
var key = String.fromCharCode(keycode).toLowerCase();
|
||||
if ((key == 'x') || (key == 'o') || (key == 'c') || (keycode == escapeKey)) { // close lightbox
|
||||
this.parent.end();
|
||||
} else if ((key == 'p') || (keycode == 37)) { // display previous image
|
||||
if (config.loopImages) {
|
||||
callback((config.activeImage == 0) ? (config.imageArray.length - 1) : config.activeImage - 1);
|
||||
}
|
||||
else if (config.activeImage != 0) {
|
||||
callback(config.activeImage - 1);
|
||||
}
|
||||
} else if ((key == 'n') || (keycode == 39)) { // display next image
|
||||
if (this.config.loopImages) {
|
||||
callback((config.activeImage == (config.imageArray.length - 1)) ? 0 : config.activeImage + 1);
|
||||
}
|
||||
else if (config.activeImage != (config.imageArray.length - 1)) {
|
||||
callback(config.activeImage + 1);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
module.exports = Events;
|
||||
},{}],5:[function(require,module,exports){
|
||||
const $ = window.jQuery;
|
||||
|
||||
class Helper {
|
||||
constructor(config) {
|
||||
this.config = config;
|
||||
}
|
||||
hide(element) {
|
||||
if (element) {
|
||||
element.style.display = 'none';
|
||||
}
|
||||
};
|
||||
show(element) {
|
||||
if (element) {
|
||||
element.style.display = 'block';
|
||||
}
|
||||
};
|
||||
getPageSize() {
|
||||
const pageDocumentHeight = document.documentElement.scrollHeight;
|
||||
const pageDocumentWidth = document.documentElement.scrollWidth;
|
||||
if (this.config.isIE8 && pageDocumentHeight > 4096) {
|
||||
pageDocumentHeight = 4096;
|
||||
}
|
||||
var viewportHeight = document.documentElement.clientHeight - this.config.adminBarHeight;
|
||||
var pageWindowWidth = document.documentElement.clientWidth;
|
||||
const pageSize = [
|
||||
pageDocumentWidth,
|
||||
pageDocumentHeight,
|
||||
pageWindowWidth,
|
||||
viewportHeight,
|
||||
document.documentElement.scrollHeight
|
||||
];
|
||||
return pageSize;
|
||||
};
|
||||
isIE8() {
|
||||
var isBuggy = false;
|
||||
if (document.createElement) {
|
||||
var el = document.createElement("div");
|
||||
if (el && el.querySelectorAll) {
|
||||
el.innerHTML = "<object><param name=\"\"></object>";
|
||||
isBuggy = el.querySelectorAll("param").length != 1;
|
||||
}
|
||||
el = null;
|
||||
}
|
||||
return isBuggy;
|
||||
};
|
||||
getPageScroll() {
|
||||
var xScroll = 0; var yScroll = 0;
|
||||
if (self.pageYOffset) {
|
||||
yScroll = self.pageYOffset;
|
||||
xScroll = self.pageXOffset;
|
||||
} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
|
||||
yScroll = document.documentElement.scrollTop;
|
||||
xScroll = document.documentElement.scrollLeft;
|
||||
} else if (document.body) {// all other Explorers
|
||||
yScroll = document.body.scrollTop;
|
||||
xScroll = document.body.scrollLeft;
|
||||
}
|
||||
const wpadminbar = document.getElementById("wpadminbar");
|
||||
if (wpadminbar) {
|
||||
const style = window.getComputedStyle(wpadminbar);
|
||||
const top = style.getPropertyValue('top');
|
||||
if (this.config.adminBarHeight && parseInt(top, 10) === 0) {
|
||||
yScroll += this.config.adminBarHeight;
|
||||
}
|
||||
}
|
||||
return [xScroll, yScroll];
|
||||
};
|
||||
setLightBoxPos(newTop, newLeft) {
|
||||
if (this.config.resizeSpeed > 0) {
|
||||
$('#lightbox').animate({ top: newTop }, 250, 'linear');
|
||||
return $('#lightbox').animate({ left: newLeft }, 250, 'linear').show();
|
||||
}
|
||||
return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' }).show();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Helper;
|
||||
},{}],6:[function(require,module,exports){
|
||||
const $ = window.jQuery;
|
||||
const Helper = require("./Helper");
|
||||
const Display = require("./Display");
|
||||
const Events = require("./Events");
|
||||
|
||||
class Lightbox {
|
||||
constructor(element, config) {
|
||||
this.config = $.extend({}, $.fn.lightbox.defaults, config);
|
||||
this.helper = new Helper(this.config);
|
||||
this.display = new Display(this.config, this.helper);
|
||||
this.events = new Events(this.config, this);
|
||||
this.loader(element);
|
||||
}
|
||||
loader(element) {
|
||||
for (let i = 0; i < element.length; i++) {
|
||||
element[i].addEventListener('click', this.onClick.bind(this, element[i]));
|
||||
}
|
||||
}
|
||||
onClick(element, event) {
|
||||
event.preventDefault();
|
||||
this.initialize();
|
||||
this.start(element);
|
||||
}
|
||||
initialize() {
|
||||
window.addEventListener('orientationchange', this.resizeListener.bind(this));
|
||||
window.addEventListener('resize', this.resizeListener.bind(this));
|
||||
// $(window).bind('orientationchange', resizeListener);
|
||||
// $(window).bind('resize', resizeListener);
|
||||
// if (opts.followScroll) { $(window).bind('scroll', orientListener); }
|
||||
document.getElementById('overlay') ? document.getElementById('overlay').remove() : false;
|
||||
document.getElementById('lightbox') ? document.getElementById('lightbox').remove() : false;
|
||||
this.config.isIE8 = this.helper.isIE8(); // //http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/
|
||||
this.config.inprogress = false;
|
||||
// if jsonData, build the imageArray from data provided in JSON format
|
||||
if (this.config.jsonData && this.config.jsonData.length > 0) {
|
||||
var parser = this.config.jsonDataParser ? this.config.jsonDataParser : $.fn.lightbox.parseJsonData;
|
||||
this.config.imageArray = [];
|
||||
this.config.imageArray = parser(this.config.jsonData);
|
||||
}
|
||||
var outerImage = '<div id="outerImageContainer"><div id="imageContainer"><img id="lightboxImage"><div id="hoverNav"><a href="javascript:void(0);" title="' + this.config.strings.prevLinkTitle + '" id="prevLink"></a><a href="javascript:void(0);" id="nextLink" title="' + this.config.strings.nextLinkTitle + '"></a></div><div id="loading"><a href="javascript:void(0);" id="loadingLink"><div id="jqlb_loading"></div></a></div></div></div>';
|
||||
var imageData = '<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';
|
||||
if (this.config.displayHelp) {
|
||||
imageData += '<span id="helpDisplay">' + this.config.strings.help + '</span>';
|
||||
}
|
||||
imageData += '<a href="javascript:void(0);" id="bottomNavClose" title="' + this.config.strings.closeTitle + '"><div id="jqlb_closelabel"></div></a></div></div></div>';
|
||||
var string;
|
||||
if (this.config.navbarOnTop) {
|
||||
string = '<div id="overlay"></div><div id="lightbox">' + imageData + outerImage + '</div>';
|
||||
$("body").append(string);
|
||||
$("#imageDataContainer").addClass('ontop');
|
||||
} else {
|
||||
string = '<div id="overlay"></div><div id="lightbox">' + outerImage + imageData + '</div>';
|
||||
$("body").append(string);
|
||||
}
|
||||
const overlay = document.getElementById('overlay');
|
||||
const lightbox = document.getElementById('lightbox');
|
||||
const loadingLink = document.getElementById('loadingLink');
|
||||
const bottomNavClose = document.getElementById('bottomNavClose');
|
||||
const outerImageContainer = document.getElementById('outerImageContainer');
|
||||
const imageDataContainer = document.getElementById('imageDataContainer');
|
||||
const lightboxImage = document.getElementById('lightboxImage');
|
||||
const hoverNav = document.getElementById('hoverNav');
|
||||
|
||||
if (overlay) {
|
||||
overlay.addEventListener('click', _ => this.end());
|
||||
this.helper.hide(overlay);
|
||||
}
|
||||
if (lightbox) {
|
||||
lightbox.addEventListener('click', _ => this.end());
|
||||
this.helper.hide(lightbox);
|
||||
}
|
||||
if (loadingLink) {
|
||||
loadingLink.addEventListener('click', _ => this.end());
|
||||
}
|
||||
if (bottomNavClose) {
|
||||
bottomNavClose.addEventListener('click', _ => this.end());
|
||||
}
|
||||
|
||||
this.events.bindNavigationButtons(this.display.changeImage.bind(this.display));
|
||||
this.events.enableKeyboardNav(this.display.changeImage.bind(this.display));
|
||||
|
||||
if (outerImageContainer) {
|
||||
outerImageContainer.style.width = this.config.widthCurrent + "px";
|
||||
outerImageContainer.style.height = this.config.heightCurrent + "px";
|
||||
}
|
||||
if (imageDataContainer) {
|
||||
imageDataContainer.style.width = this.config.widthCurrent + "px";
|
||||
}
|
||||
/*
|
||||
if (!opts.imageClickClose) {
|
||||
if(lightboxImage) {
|
||||
lightboxImage.addEventListener('click', _ => end());
|
||||
}
|
||||
if(hoverNav) {
|
||||
hoverNav.addEventListener('click', _ => end());
|
||||
}
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
resizeListener(e) {
|
||||
if (this.config.resizeTimeout) {
|
||||
clearTimeout(this.config.resizeTimeout);
|
||||
this.config.resizeTimeout = false;
|
||||
}
|
||||
this.config.resizeTimeout = setTimeout(_ => { this.display.doScale(false); }, 50); //a delay to avoid duplicate event calls.
|
||||
}
|
||||
|
||||
//code for IE8 check provided by http://kangax.github.com/cft/
|
||||
|
||||
// JQuery Call
|
||||
start(imageLink) {
|
||||
document.querySelectorAll("select, embed, object").forEach(element => {
|
||||
this.helper.hide(element);
|
||||
});
|
||||
var arrayPageSize = this.helper.getPageSize();
|
||||
var arrayPagePos = this.helper.getPageScroll();
|
||||
var newTop = 0;
|
||||
const overlay = document.getElementById("overlay");
|
||||
$("#overlay").hide().css({ width: arrayPageSize[0] + 'px', height: arrayPageSize[1] + 'px', opacity: this.config.overlayOpacity }).fadeIn(400);
|
||||
if (this.config.isIE8 && arrayPageSize[1] == 4096) {
|
||||
if (arrayPagePos[1] >= 1000) {
|
||||
newTop = arrayPagePos[1] - 1000;
|
||||
if ((arrayPageSize[4] - (arrayPagePos[1] + 3096)) < 0) {
|
||||
newTop -= (arrayPagePos[1] + 3096) - arrayPageSize[4];
|
||||
}
|
||||
overlay.style.top = newTop + 'px';
|
||||
}
|
||||
}
|
||||
let imageNum = 0;
|
||||
// if data is not provided by jsonData parameter
|
||||
if (!this.config.jsonData) {
|
||||
this.config.imageArray = [];
|
||||
// if image is NOT part of a set..
|
||||
if (!imageLink.rel || (imageLink.rel == '')) {
|
||||
// add single image to Lightbox.imageArray
|
||||
var s = imageLink.title || imageLink.parentElement.firstChild.title || '';
|
||||
/*
|
||||
if (imageLink.title) {
|
||||
s = imageLink.title;
|
||||
} else if ($(this).children(':first-child').attr('title')) {
|
||||
s = $(this).children(':first-child').attr('title');
|
||||
}
|
||||
*/
|
||||
console.log(imageLink);
|
||||
this.config.imageArray.push([imageLink.href, this.config.displayTitle ? s : '']);
|
||||
} else {
|
||||
document.querySelectorAll("a").forEach(a => {
|
||||
if (a.href && (a.rel === imageLink.rel)) {
|
||||
let title = '';
|
||||
let alternative_title = a.parentElement.querySelector("img:first-of-type");
|
||||
if (a.title) {
|
||||
title = a.title;
|
||||
} else if (alternative_title) {
|
||||
title = alternative_title.title;
|
||||
}
|
||||
|
||||
let caption = '';
|
||||
let captionText = '';
|
||||
const galleryCaptionElement = a.parentElement.parentElement.querySelector('.gallery-caption');
|
||||
const captionElement = a.parentElement.querySelector('.wp-caption-text');
|
||||
if (galleryCaptionElement) {
|
||||
caption = galleryCaptionElement.textContent;
|
||||
captionText = galleryCaptionElement.innerHTML;
|
||||
} else if (captionElement) {
|
||||
caption = captionElement.textContent;
|
||||
captionText = captionElement.innerHTML;
|
||||
}
|
||||
title = title.trim();
|
||||
captionText = captionText.trim();
|
||||
if (title.toLowerCase() === captionText.toLowerCase()) {
|
||||
title = captionText;
|
||||
caption = '';
|
||||
}
|
||||
let s = '';
|
||||
if (title != '') {
|
||||
s = '<span id="titleText">' + title + '</span>';
|
||||
}
|
||||
if (caption != '') {
|
||||
if (title != '') {
|
||||
s += '<br />';
|
||||
}
|
||||
s += '<span id="captionText">' + caption + '</span>';
|
||||
}
|
||||
this.config.imageArray.push([
|
||||
a.href,
|
||||
this.config.displayTitle ? s : ''
|
||||
]);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (this.config.imageArray.length > 1) {
|
||||
for (let i = 0; i < this.config.imageArray.length; i++) {
|
||||
for (let j = this.config.imageArray.length - 1; j > i; j--) {
|
||||
if (this.config.imageArray[i][0] == this.config.imageArray[j][0]) {
|
||||
this.config.imageArray.splice(j, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
while (this.config.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
|
||||
}
|
||||
// calculate top and left offset for the lightbox
|
||||
this.helper.setLightBoxPos(arrayPagePos[1], arrayPagePos[0]);
|
||||
this.display.changeImage(imageNum);
|
||||
};
|
||||
|
||||
end() {
|
||||
document.getElementById("lightbox").remove();
|
||||
$('#overlay').fadeOut(_ => {
|
||||
document.getElementById("overlay").remove();
|
||||
});
|
||||
document.querySelectorAll("select, embed, object").forEach(element => {
|
||||
this.helper.show(element);
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
module.exports = Lightbox;
|
||||
},{"./Display":3,"./Events":4,"./Helper":5}]},{},[1]);
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "lightbox",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"compile": "browserify src/index.js -o dist/wp-lightbox-2.js",
|
||||
"babel": "babel dist/wp-lightbox-2.js --out-file dist/wp-lightbox-2.min.js --no-comments",
|
||||
"build": "npm run compile && npm run babel",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.11.6",
|
||||
"@babel/core": "^7.11.6",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
|
||||
"@babel/preset-env": "^7.11.5",
|
||||
"babel-preset-minify": "^0.5.1",
|
||||
"browserify": "^16.5.2"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
const Lightbox = require("./lightbox");
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
const Lightbox = require("./lightbox/Lightbox");
|
||||
|
||||
(function($){
|
||||
$.fn.lightbox = {};
|
||||
$.fn.lightbox.parseJsonData = function(data) {
|
||||
var imageArray = [];
|
||||
$.each(data, function () {
|
||||
imageArray.push(new Array(this.url, this.title));
|
||||
});
|
||||
return imageArray;
|
||||
};
|
||||
$.fn.lightbox.defaults = {
|
||||
adminBarHeight:28,
|
||||
overlayOpacity: 0.8,
|
||||
borderSize: 10,
|
||||
imageArray: new Array,
|
||||
activeImage: null,
|
||||
inprogress: false, //this is an internal state variable. don't touch.
|
||||
widthCurrent: 250,
|
||||
heightCurrent: 250,
|
||||
xScale: 1,
|
||||
yScale: 1,
|
||||
displayTitle: true,
|
||||
disableNavbarLinks: true,
|
||||
loopImages: true,
|
||||
imageClickClose: true,
|
||||
jsonData: null,
|
||||
jsonDataParser: null,
|
||||
followScroll: false,
|
||||
isIE8: false //toyNN:internal value only
|
||||
};
|
||||
$(document).ready(function($){
|
||||
var haveConf = (typeof JQLBSettings == 'object');
|
||||
if(haveConf && JQLBSettings.resizeSpeed) {
|
||||
JQLBSettings.resizeSpeed = parseInt(JQLBSettings.resizeSpeed);
|
||||
}
|
||||
if(haveConf && JQLBSettings.marginSize){
|
||||
JQLBSettings.marginSize = parseInt(JQLBSettings.marginSize);
|
||||
}
|
||||
var default_strings = {
|
||||
help: ' Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.',
|
||||
prevLinkTitle: 'previous image',
|
||||
nextLinkTitle: 'next image',
|
||||
prevLinkText: '« Previous',
|
||||
nextLinkText: 'Next »',
|
||||
closeTitle: 'close image gallery',
|
||||
image: 'Image ',
|
||||
of: ' of ',
|
||||
download: 'Download'
|
||||
};
|
||||
new Lightbox($('a[rel^="lightbox"]'), {
|
||||
adminBarHeight: $('#wpadminbar').height() || 0,
|
||||
linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
|
||||
displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
|
||||
marginSize: (haveConf && JQLBSettings.marginSize) ? JQLBSettings.marginSize : 0,
|
||||
fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
|
||||
resizeSpeed: (haveConf && JQLBSettings.resizeSpeed >= 0) ? JQLBSettings.resizeSpeed : 400,
|
||||
displayDownloadLink: (haveConf && JQLBSettings.displayDownloadLink == '0') ? false : true,
|
||||
navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true,
|
||||
//followScroll: (haveConf && JQLBSettings.followScroll == '0') ? false : true,
|
||||
strings: (haveConf && typeof JQLBSettings.help == 'string') ? JQLBSettings : default_strings
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
@ -0,0 +1,225 @@
|
|||
const $ = window.jQuery;
|
||||
|
||||
|
||||
class Display {
|
||||
constructor(config, helper) {
|
||||
this.config = config;
|
||||
this.helper = helper;
|
||||
}
|
||||
changeImage(imageNum) {
|
||||
if (this.config.inprogress == false) {
|
||||
this.config.inprogress = true;
|
||||
this.config.activeImage = imageNum;
|
||||
// hide elements during transition
|
||||
const loading = document.getElementById('loading');
|
||||
const lightboxImage = document.getElementById('lightboxImage');
|
||||
const hoverNav = document.getElementById('hoverNav');
|
||||
const prevLink = document.getElementById('prevLink');
|
||||
const nextLink = document.getElementById('nextLink');
|
||||
if (loading) {
|
||||
this.helper.show(loading);
|
||||
}
|
||||
if (lightboxImage) {
|
||||
this.helper.hide(lightboxImage);
|
||||
}
|
||||
if (hoverNav) {
|
||||
this.helper.hide(hoverNav);
|
||||
}
|
||||
if (prevLink) {
|
||||
this.helper.hide(prevLink);
|
||||
}
|
||||
if (nextLink) {
|
||||
this.helper.hide(nextLink);
|
||||
}
|
||||
this.doChangeImage();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
doChangeImage() {
|
||||
this.config.imgPreloader = new Image();
|
||||
this.config.imgPreloader.onload = _ => {
|
||||
const lightboxImage = document.getElementById('lightboxImage');
|
||||
if (lightboxImage) {
|
||||
lightboxImage.src = this.config.imageArray[this.config.activeImage][0];
|
||||
}
|
||||
this.doScale(); // once image is preloaded, resize image container
|
||||
this.preloadNeighborImages();
|
||||
};
|
||||
this.config.imgPreloader.src = this.config.imageArray[this.config.activeImage][0];
|
||||
};
|
||||
|
||||
doScale() {
|
||||
const overlay = document.getElementById('overlay');
|
||||
if (!overlay || !this.config.imgPreloader) {
|
||||
return;
|
||||
}
|
||||
var newWidth = this.config.imgPreloader.width;
|
||||
var newHeight = this.config.imgPreloader.height;
|
||||
var arrayPageSize = this.helper.getPageSize();
|
||||
var noScrollWidth = (arrayPageSize[2] < arrayPageSize[0]) ? arrayPageSize[0] : arrayPageSize[2]; //if viewport is smaller than page, use page width.
|
||||
overlay.style.width = noScrollWidth + 'px';
|
||||
overlay.style.height = arrayPageSize[1] + 'px';
|
||||
const imageDataContainer = document.getElementById('imageDataContainer');
|
||||
var maxHeight = (arrayPageSize[3]) - (imageDataContainer.style.height + (2 * this.config.borderSize));
|
||||
var maxWidth = (arrayPageSize[2]) - (2 * this.config.borderSize);
|
||||
if (this.config.fitToScreen) {
|
||||
var displayHeight = maxHeight - this.config.marginSize;
|
||||
var displayWidth = maxWidth - this.config.marginSize;
|
||||
var ratio = 1;
|
||||
if (newHeight > displayHeight) {
|
||||
ratio = displayHeight / newHeight; //ex. 600/1024 = 0.58
|
||||
}
|
||||
newWidth = newWidth * ratio;
|
||||
newHeight = newHeight * ratio;
|
||||
ratio = 1;
|
||||
if (newWidth > displayWidth) {
|
||||
ratio = displayWidth / newWidth; //ex. 800/1280 == 0.62
|
||||
}
|
||||
newWidth = Math.round(newWidth * ratio);
|
||||
newHeight = Math.round(newHeight * ratio);
|
||||
}
|
||||
var arrayPageScroll = this.helper.getPageScroll();
|
||||
var centerY = arrayPageScroll[1] + (maxHeight * 0.5);
|
||||
var newTop = centerY - newHeight * 0.5;
|
||||
var newLeft = arrayPageScroll[0];
|
||||
const lightbox = document.getElementById('lightboxImage');
|
||||
lightbox.style.width = newWidth;
|
||||
lightbox.style.height = newHeight;
|
||||
this.resizeImageContainer(newWidth, newHeight, newTop, newLeft);
|
||||
}
|
||||
/*2.28.4 - Compatible with wordpress 3.6.*/
|
||||
resizeImageContainer(imgWidth, imgHeight, lightboxTop, lightboxLeft) {
|
||||
const outerImageContainer = document.getElementById("outerImageContainer");
|
||||
const imageDataContainer = document.getElementById("imageDataContainer");
|
||||
if (!outerImageContainer || !imageDataContainer) {
|
||||
return;
|
||||
}
|
||||
this.config.widthCurrent = outerImageContainer.offsetWidth;
|
||||
this.config.heightCurrent = outerImageContainer.offsetHeight;
|
||||
var widthNew = Math.max(350, imgWidth + ((this.config.borderSize || 0) * 2));
|
||||
var heightNew = (imgHeight + ((this.config.borderSize || 0) * 2));
|
||||
// scalars based on change from old to new
|
||||
this.config.xScale = (widthNew / this.config.widthCurrent) * 100;
|
||||
this.config.yScale = (heightNew / this.config.heightCurrent) * 100;
|
||||
this.helper.setLightBoxPos(lightboxTop, lightboxLeft);
|
||||
this.updateDetails(); //toyNN: moved updateDetails() here, seems to work fine.
|
||||
|
||||
|
||||
$('#imageDataContainer').animate({ width: widthNew }, this.config.resizeSpeed, 'linear');
|
||||
$('#outerImageContainer').animate({ width: widthNew }, this.config.resizeSpeed, 'linear', _ => {
|
||||
$('#outerImageContainer').animate({ height: heightNew }, this.config.resizeSpeed, 'linear', _=> {
|
||||
this.showImage();
|
||||
});
|
||||
});
|
||||
|
||||
this.showNavigationElements();
|
||||
if (document.getElementById("prevLink"))
|
||||
document.getElementById("prevLink").style.height = imgHeight;
|
||||
if (document.getElementById("nextLink"))
|
||||
document.getElementById("nextLink").style.height = imgHeight;
|
||||
};
|
||||
|
||||
showImage() {
|
||||
//assumes updateDetails have been called earlier!
|
||||
this.helper.show(document.getElementById("imageData"));
|
||||
this.helper.show(document.getElementById('caption'));
|
||||
//$('#imageDataContainer').slideDown(400);
|
||||
//$("#imageDetails").hide().fadeIn(400);
|
||||
this.helper.hide(document.getElementById("loading"));
|
||||
if (this.config.resizeSpeed > 0) {
|
||||
$('#lightboxImage').fadeIn("fast");
|
||||
} else {
|
||||
this.helper.show(document.getElementById("lightboxImage"));
|
||||
}
|
||||
this.config.inprogress = false;
|
||||
};
|
||||
|
||||
preloadNeighborImages() {
|
||||
if (this.config.loopImages && this.config.imageArray.length > 1) {
|
||||
let preloadNextImage = new Image();
|
||||
preloadNextImage.src = this.config.imageArray[(this.config.activeImage == (this.config.imageArray.length - 1)) ? 0 : this.config.activeImage + 1][0]
|
||||
let preloadPrevImage = new Image();
|
||||
preloadPrevImage.src = this.config.imageArray[(this.config.activeImage == 0) ? (this.config.imageArray.length - 1) : this.config.activeImage - 1][0]
|
||||
} else {
|
||||
if ((this.config.imageArray.length - 1) > this.config.activeImage) {
|
||||
let preloadNextImage = new Image();
|
||||
preloadNextImage.src = this.config.imageArray[this.config.activeImage + 1][0];
|
||||
}
|
||||
if (this.config.activeImage > 0) {
|
||||
let preloadPrevImage = new Image();
|
||||
preloadPrevImage.src = this.config.imageArray[this.config.activeImage - 1][0];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
updateDetails() {
|
||||
const numberDisplay = document.getElementById('numberDisplay');
|
||||
if (numberDisplay) {
|
||||
numberDisplay.innerHTML = '';
|
||||
}
|
||||
const caption = document.getElementById('caption');
|
||||
if (caption) {
|
||||
caption.innerHTML = '';
|
||||
this.helper.hide(caption);
|
||||
if (this.config.imageArray[this.config.activeImage][1]) {
|
||||
caption.innerHTML = this.config.imageArray[this.config.activeImage][1];
|
||||
this.helper.show();
|
||||
}
|
||||
}
|
||||
var nav_html = '';
|
||||
var prev = '';
|
||||
var pos = (this.config.imageArray.length > 1) ? this.config.strings.image + (this.config.activeImage + 1) + this.config.strings.of + this.config.imageArray.length : '';
|
||||
var link = (this.config.displayDownloadLink) ? '<a href="' + this.config.imageArray[this.config.activeImage][0] + '" id="downloadLink" target="' + this.config.linkTarget + '">' + this.config.strings.download + '</a>' : '';
|
||||
var next = '';
|
||||
if (this.config.imageArray.length > 1 && !this.config.disableNavbarLinks) { // display previous / next text links
|
||||
if ((this.config.activeImage) > 0 || this.config.loopImages) {
|
||||
prev = '<a title="' + this.config.strings.prevLinkTitle + '" href="#" id="prevLinkText">' + this.config.strings.prevLinkText + "</a>";
|
||||
}
|
||||
if (((this.config.activeImage + 1) < this.config.imageArray.length) || this.config.loopImages) {
|
||||
next += '<a title="' + this.config.strings.nextLinkTitle + '" href="#" id="nextLinkText">' + this.config.strings.nextLinkText + "</a>";
|
||||
}
|
||||
}
|
||||
nav_html = prev + nav_html + pos + link + next;
|
||||
if (nav_html != '') {
|
||||
if (document.getElementById("numberDisplay")) {
|
||||
document.getElementById("numberDisplay").innerHTML = nav_html;
|
||||
this.helper.show(document.getElementById("numberDisplay"));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
showNavigationElements() {
|
||||
const prevLink = document.getElementById("prevLink");
|
||||
const prevLinkText = document.getElementById("prevLinkText");
|
||||
const nextLink = document.getElementById("nextLink");
|
||||
const nextLinkText = document.getElementById("nextLinkText");
|
||||
if (this.config.imageArray.length > 1) {
|
||||
this.helper.show(document.getElementById("hoverNav"));
|
||||
// if loopImages is true, always show next and prev image buttons
|
||||
if (this.config.loopImages) {
|
||||
this.helper.show(prevLink);
|
||||
this.helper.show(prevLinkText);
|
||||
this.helper.show(nextLink);
|
||||
this.helper.show(nextLinkText);
|
||||
|
||||
} else {
|
||||
// if not first image in set, display prev image button
|
||||
if (this.config.activeImage != 0) {
|
||||
this.helper.show(prevLink);
|
||||
this.helper.show(prevLinkText);
|
||||
}
|
||||
// if not last image in set, display next image button
|
||||
if (this.config.activeImage != (this.config.imageArray.length - 1)) {
|
||||
this.helper.show(nextLink);
|
||||
this.helper.show(nextLink);
|
||||
}
|
||||
}
|
||||
//this.enableKeyboardNav();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = Display;
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
class Events {
|
||||
constructor(config, parent) {
|
||||
this.config = config;
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
bindNavigationButtons(callback) {
|
||||
const prevLink = document.getElementById("prevLink");
|
||||
const prevLinkText = document.getElementById("prevLinkText");
|
||||
const nextLink = document.getElementById("nextLink");
|
||||
const nextLinkText = document.getElementById("nextLinkText");
|
||||
if(prevLink) {
|
||||
prevLink.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'prev'));
|
||||
}
|
||||
if(prevLinkText) {
|
||||
prevLinkText.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'prev'));
|
||||
}
|
||||
if(nextLink) {
|
||||
nextLink.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'next'));
|
||||
}
|
||||
if(nextLinkText) {
|
||||
nextLinkText.addEventListener('click', this.onNavigationButtonClick.bind(this, callback, 'next'));
|
||||
}
|
||||
}
|
||||
|
||||
onNavigationButtonClick(callback, direction, e) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault();
|
||||
if(direction === 'prev') {
|
||||
const index = (this.config.activeImage == 0) ? (this.config.imageArray.length - 1) : this.config.activeImage - 1;
|
||||
callback(index);
|
||||
}
|
||||
if(direction === 'next') {
|
||||
const index = (this.config.activeImage == (this.config.imageArray.length - 1)) ? 0 : this.config.activeImage + 1;
|
||||
callback(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
enableKeyboardNav(callback) {
|
||||
document.addEventListener('keydown', this.keyboardAction.bind(this, callback));
|
||||
}
|
||||
|
||||
keyboardAction(callback, e) {
|
||||
var config = this.config;
|
||||
var keycode = e.keyCode;
|
||||
var escapeKey = 27;
|
||||
var key = String.fromCharCode(keycode).toLowerCase();
|
||||
if ((key == 'x') || (key == 'o') || (key == 'c') || (keycode == escapeKey)) { // close lightbox
|
||||
this.parent.end();
|
||||
} else if ((key == 'p') || (keycode == 37)) { // display previous image
|
||||
if (config.loopImages) {
|
||||
callback((config.activeImage == 0) ? (config.imageArray.length - 1) : config.activeImage - 1);
|
||||
}
|
||||
else if (config.activeImage != 0) {
|
||||
callback(config.activeImage - 1);
|
||||
}
|
||||
} else if ((key == 'n') || (keycode == 39)) { // display next image
|
||||
if (this.config.loopImages) {
|
||||
callback((config.activeImage == (config.imageArray.length - 1)) ? 0 : config.activeImage + 1);
|
||||
}
|
||||
else if (config.activeImage != (config.imageArray.length - 1)) {
|
||||
callback(config.activeImage + 1);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
module.exports = Events;
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
const $ = window.jQuery;
|
||||
|
||||
class Helper {
|
||||
constructor(config) {
|
||||
this.config = config;
|
||||
}
|
||||
hide(element) {
|
||||
if (element) {
|
||||
element.style.display = 'none';
|
||||
}
|
||||
};
|
||||
show(element) {
|
||||
if (element) {
|
||||
element.style.display = 'block';
|
||||
}
|
||||
};
|
||||
getPageSize() {
|
||||
const pageDocumentHeight = document.documentElement.scrollHeight;
|
||||
const pageDocumentWidth = document.documentElement.scrollWidth;
|
||||
if (this.config.isIE8 && pageDocumentHeight > 4096) {
|
||||
pageDocumentHeight = 4096;
|
||||
}
|
||||
var viewportHeight = document.documentElement.clientHeight - this.config.adminBarHeight;
|
||||
var pageWindowWidth = document.documentElement.clientWidth;
|
||||
const pageSize = [
|
||||
pageDocumentWidth,
|
||||
pageDocumentHeight,
|
||||
pageWindowWidth,
|
||||
viewportHeight,
|
||||
document.documentElement.scrollHeight
|
||||
];
|
||||
return pageSize;
|
||||
};
|
||||
isIE8() {
|
||||
var isBuggy = false;
|
||||
if (document.createElement) {
|
||||
var el = document.createElement("div");
|
||||
if (el && el.querySelectorAll) {
|
||||
el.innerHTML = "<object><param name=\"\"></object>";
|
||||
isBuggy = el.querySelectorAll("param").length != 1;
|
||||
}
|
||||
el = null;
|
||||
}
|
||||
return isBuggy;
|
||||
};
|
||||
getPageScroll() {
|
||||
var xScroll = 0; var yScroll = 0;
|
||||
if (self.pageYOffset) {
|
||||
yScroll = self.pageYOffset;
|
||||
xScroll = self.pageXOffset;
|
||||
} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
|
||||
yScroll = document.documentElement.scrollTop;
|
||||
xScroll = document.documentElement.scrollLeft;
|
||||
} else if (document.body) {// all other Explorers
|
||||
yScroll = document.body.scrollTop;
|
||||
xScroll = document.body.scrollLeft;
|
||||
}
|
||||
const wpadminbar = document.getElementById("wpadminbar");
|
||||
if (wpadminbar) {
|
||||
const style = window.getComputedStyle(wpadminbar);
|
||||
const top = style.getPropertyValue('top');
|
||||
if (this.config.adminBarHeight && parseInt(top, 10) === 0) {
|
||||
yScroll += this.config.adminBarHeight;
|
||||
}
|
||||
}
|
||||
return [xScroll, yScroll];
|
||||
};
|
||||
setLightBoxPos(newTop, newLeft) {
|
||||
if (this.config.resizeSpeed > 0) {
|
||||
$('#lightbox').animate({ top: newTop }, 250, 'linear');
|
||||
return $('#lightbox').animate({ left: newLeft }, 250, 'linear').show();
|
||||
}
|
||||
return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' }).show();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Helper;
|
||||
|
|
@ -0,0 +1,220 @@
|
|||
const $ = window.jQuery;
|
||||
const Helper = require("./Helper");
|
||||
const Display = require("./Display");
|
||||
const Events = require("./Events");
|
||||
|
||||
class Lightbox {
|
||||
constructor(element, config) {
|
||||
this.config = $.extend({}, $.fn.lightbox.defaults, config);
|
||||
this.helper = new Helper(this.config);
|
||||
this.display = new Display(this.config, this.helper);
|
||||
this.events = new Events(this.config, this);
|
||||
this.loader(element);
|
||||
}
|
||||
loader(element) {
|
||||
for (let i = 0; i < element.length; i++) {
|
||||
element[i].addEventListener('click', this.onClick.bind(this, element[i]));
|
||||
}
|
||||
}
|
||||
onClick(element, event) {
|
||||
event.preventDefault();
|
||||
this.initialize();
|
||||
this.start(element);
|
||||
}
|
||||
initialize() {
|
||||
window.addEventListener('orientationchange', this.resizeListener.bind(this));
|
||||
window.addEventListener('resize', this.resizeListener.bind(this));
|
||||
// $(window).bind('orientationchange', resizeListener);
|
||||
// $(window).bind('resize', resizeListener);
|
||||
// if (opts.followScroll) { $(window).bind('scroll', orientListener); }
|
||||
document.getElementById('overlay') ? document.getElementById('overlay').remove() : false;
|
||||
document.getElementById('lightbox') ? document.getElementById('lightbox').remove() : false;
|
||||
this.config.isIE8 = this.helper.isIE8(); // //http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/
|
||||
this.config.inprogress = false;
|
||||
// if jsonData, build the imageArray from data provided in JSON format
|
||||
if (this.config.jsonData && this.config.jsonData.length > 0) {
|
||||
var parser = this.config.jsonDataParser ? this.config.jsonDataParser : $.fn.lightbox.parseJsonData;
|
||||
this.config.imageArray = [];
|
||||
this.config.imageArray = parser(this.config.jsonData);
|
||||
}
|
||||
var outerImage = '<div id="outerImageContainer"><div id="imageContainer"><img id="lightboxImage"><div id="hoverNav"><a href="javascript:void(0);" title="' + this.config.strings.prevLinkTitle + '" id="prevLink"></a><a href="javascript:void(0);" id="nextLink" title="' + this.config.strings.nextLinkTitle + '"></a></div><div id="loading"><a href="javascript:void(0);" id="loadingLink"><div id="jqlb_loading"></div></a></div></div></div>';
|
||||
var imageData = '<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';
|
||||
if (this.config.displayHelp) {
|
||||
imageData += '<span id="helpDisplay">' + this.config.strings.help + '</span>';
|
||||
}
|
||||
imageData += '<a href="javascript:void(0);" id="bottomNavClose" title="' + this.config.strings.closeTitle + '"><div id="jqlb_closelabel"></div></a></div></div></div>';
|
||||
var string;
|
||||
if (this.config.navbarOnTop) {
|
||||
string = '<div id="overlay"></div><div id="lightbox">' + imageData + outerImage + '</div>';
|
||||
$("body").append(string);
|
||||
$("#imageDataContainer").addClass('ontop');
|
||||
} else {
|
||||
string = '<div id="overlay"></div><div id="lightbox">' + outerImage + imageData + '</div>';
|
||||
$("body").append(string);
|
||||
}
|
||||
const overlay = document.getElementById('overlay');
|
||||
const lightbox = document.getElementById('lightbox');
|
||||
const loadingLink = document.getElementById('loadingLink');
|
||||
const bottomNavClose = document.getElementById('bottomNavClose');
|
||||
const outerImageContainer = document.getElementById('outerImageContainer');
|
||||
const imageDataContainer = document.getElementById('imageDataContainer');
|
||||
const lightboxImage = document.getElementById('lightboxImage');
|
||||
const hoverNav = document.getElementById('hoverNav');
|
||||
|
||||
if (overlay) {
|
||||
overlay.addEventListener('click', _ => this.end());
|
||||
this.helper.hide(overlay);
|
||||
}
|
||||
if (lightbox) {
|
||||
lightbox.addEventListener('click', _ => this.end());
|
||||
this.helper.hide(lightbox);
|
||||
}
|
||||
if (loadingLink) {
|
||||
loadingLink.addEventListener('click', _ => this.end());
|
||||
}
|
||||
if (bottomNavClose) {
|
||||
bottomNavClose.addEventListener('click', _ => this.end());
|
||||
}
|
||||
|
||||
this.events.bindNavigationButtons(this.display.changeImage.bind(this.display));
|
||||
this.events.enableKeyboardNav(this.display.changeImage.bind(this.display));
|
||||
|
||||
if (outerImageContainer) {
|
||||
outerImageContainer.style.width = this.config.widthCurrent + "px";
|
||||
outerImageContainer.style.height = this.config.heightCurrent + "px";
|
||||
}
|
||||
if (imageDataContainer) {
|
||||
imageDataContainer.style.width = this.config.widthCurrent + "px";
|
||||
}
|
||||
/*
|
||||
if (!opts.imageClickClose) {
|
||||
if(lightboxImage) {
|
||||
lightboxImage.addEventListener('click', _ => end());
|
||||
}
|
||||
if(hoverNav) {
|
||||
hoverNav.addEventListener('click', _ => end());
|
||||
}
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
resizeListener(e) {
|
||||
if (this.config.resizeTimeout) {
|
||||
clearTimeout(this.config.resizeTimeout);
|
||||
this.config.resizeTimeout = false;
|
||||
}
|
||||
this.config.resizeTimeout = setTimeout(_ => { this.display.doScale(false); }, 50); //a delay to avoid duplicate event calls.
|
||||
}
|
||||
|
||||
//code for IE8 check provided by http://kangax.github.com/cft/
|
||||
|
||||
// JQuery Call
|
||||
start(imageLink) {
|
||||
document.querySelectorAll("select, embed, object").forEach(element => {
|
||||
this.helper.hide(element);
|
||||
});
|
||||
var arrayPageSize = this.helper.getPageSize();
|
||||
var arrayPagePos = this.helper.getPageScroll();
|
||||
var newTop = 0;
|
||||
const overlay = document.getElementById("overlay");
|
||||
$("#overlay").hide().css({ width: arrayPageSize[0] + 'px', height: arrayPageSize[1] + 'px', opacity: this.config.overlayOpacity }).fadeIn(400);
|
||||
if (this.config.isIE8 && arrayPageSize[1] == 4096) {
|
||||
if (arrayPagePos[1] >= 1000) {
|
||||
newTop = arrayPagePos[1] - 1000;
|
||||
if ((arrayPageSize[4] - (arrayPagePos[1] + 3096)) < 0) {
|
||||
newTop -= (arrayPagePos[1] + 3096) - arrayPageSize[4];
|
||||
}
|
||||
overlay.style.top = newTop + 'px';
|
||||
}
|
||||
}
|
||||
let imageNum = 0;
|
||||
// if data is not provided by jsonData parameter
|
||||
if (!this.config.jsonData) {
|
||||
this.config.imageArray = [];
|
||||
// if image is NOT part of a set..
|
||||
if (!imageLink.rel || (imageLink.rel == '')) {
|
||||
// add single image to Lightbox.imageArray
|
||||
var s = imageLink.title || imageLink.parentElement.firstChild.title || '';
|
||||
/*
|
||||
if (imageLink.title) {
|
||||
s = imageLink.title;
|
||||
} else if ($(this).children(':first-child').attr('title')) {
|
||||
s = $(this).children(':first-child').attr('title');
|
||||
}
|
||||
*/
|
||||
console.log(imageLink);
|
||||
this.config.imageArray.push([imageLink.href, this.config.displayTitle ? s : '']);
|
||||
} else {
|
||||
document.querySelectorAll("a").forEach(a => {
|
||||
if (a.href && (a.rel === imageLink.rel)) {
|
||||
let title = '';
|
||||
let alternative_title = a.parentElement.querySelector("img:first-of-type");
|
||||
if (a.title) {
|
||||
title = a.title;
|
||||
} else if (alternative_title) {
|
||||
title = alternative_title.title;
|
||||
}
|
||||
|
||||
let caption = '';
|
||||
let captionText = '';
|
||||
const galleryCaptionElement = a.parentElement.parentElement.querySelector('.gallery-caption');
|
||||
const captionElement = a.parentElement.querySelector('.wp-caption-text');
|
||||
if (galleryCaptionElement) {
|
||||
caption = galleryCaptionElement.textContent;
|
||||
captionText = galleryCaptionElement.innerHTML;
|
||||
} else if (captionElement) {
|
||||
caption = captionElement.textContent;
|
||||
captionText = captionElement.innerHTML;
|
||||
}
|
||||
title = title.trim();
|
||||
captionText = captionText.trim();
|
||||
if (title.toLowerCase() === captionText.toLowerCase()) {
|
||||
title = captionText;
|
||||
caption = '';
|
||||
}
|
||||
let s = '';
|
||||
if (title != '') {
|
||||
s = '<span id="titleText">' + title + '</span>';
|
||||
}
|
||||
if (caption != '') {
|
||||
if (title != '') {
|
||||
s += '<br />';
|
||||
}
|
||||
s += '<span id="captionText">' + caption + '</span>';
|
||||
}
|
||||
this.config.imageArray.push([
|
||||
a.href,
|
||||
this.config.displayTitle ? s : ''
|
||||
]);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (this.config.imageArray.length > 1) {
|
||||
for (let i = 0; i < this.config.imageArray.length; i++) {
|
||||
for (let j = this.config.imageArray.length - 1; j > i; j--) {
|
||||
if (this.config.imageArray[i][0] == this.config.imageArray[j][0]) {
|
||||
this.config.imageArray.splice(j, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
while (this.config.imageArray[imageNum][0] != imageLink.href) { imageNum++; }
|
||||
}
|
||||
// calculate top and left offset for the lightbox
|
||||
this.helper.setLightBoxPos(arrayPagePos[1], arrayPagePos[0]);
|
||||
this.display.changeImage(imageNum);
|
||||
};
|
||||
|
||||
end() {
|
||||
document.getElementById("lightbox").remove();
|
||||
$('#overlay').fadeOut(_ => {
|
||||
document.getElementById("overlay").remove();
|
||||
});
|
||||
document.querySelectorAll("select, embed, object").forEach(element => {
|
||||
this.helper.show(element);
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
module.exports = Lightbox;
|
||||
|
|
@ -0,0 +1,296 @@
|
|||
=== WP Lightbox 2 ===
|
||||
Contributors: smub, griffinjt, csskevin, chuck1982
|
||||
Plugin Site: http://www.wpbeginner.com/
|
||||
Donate link: http://www.wpbeginner.com/
|
||||
Tags: lightbox, image, gallery, photo gallery, lightbox popup, responsive lightbox, wordpress lightbox, lightbox gallery, gallery lightbox, wordpress image lightbox, image lightbox, popup lightbox, wordpress slideshow lightbox, lightbox image, popup images, popup image, wordpress video gallery lightbox, google map lightbox popup, swipe, google map lightbox, popup bar, popup block
|
||||
Requires at least: 3.0
|
||||
Tested up to: 5.5
|
||||
Stable tag: trunk
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
WP Lightbox 2 is awesome tool for adding responsive lightbox effect for images and also create lightbox for photo album/gallery on your WordPress blog. WordPress Lightbox is one of the most useful plugins for your website.
|
||||
|
||||
== Description ==
|
||||
|
||||
WP Lightbox 2 is an WordPress lightbox tool for adding responsive lightbox effect for your website images and also create lightbox effect for album/gallery photos on your WordPress blog.
|
||||
Just install and sit back. This plugin enable image overlay Lightbox effect for all the images in your WordPress website.
|
||||
Also our WP Lightbox 2 plugin allow you to configure the lightbox settings.
|
||||
There are a lot of useful setting for this lightbox, that will help you to display lightbox effect in different ways.
|
||||
|
||||
This plugin used to add the lightbox (overlay) effect to the current page images on your WordPress blog.
|
||||
|
||||
WP Lightbox 2 have a lot of useful features. WP Lightbox 2 features:
|
||||
|
||||
### Features of WP Lightbox 2 plugin
|
||||
|
||||
* **Fully Responsive WordPress Lightbox**
|
||||
* **Easy install and use**
|
||||
* **Works on all modern browsers**
|
||||
* **WP Lightbox 2 works perfectly with all versions of WordPress**
|
||||
* **Group related images in post and navigate through them with ease**
|
||||
* **Ability to use lightbox in comments**
|
||||
* **Ability to display download link for images**
|
||||
* **Ability to change image info position**
|
||||
* **Ability to reduce large images to fit smaller screens**
|
||||
* **Ability to set Animation duration**
|
||||
* **Ability to to type additional text below image info**
|
||||
* **Ability to change Lightbox Overlay opacity**
|
||||
* **Lightbox effect for WordPress Galleries**
|
||||
* **User friendly back-end for WP Lightbox 2 plugin**
|
||||
* **Tested on popular WordPress themes**
|
||||
|
||||
This plugin was created by <a href="https://syedbalkhi.com" rel="friend" title="Syed Balkhi">Syed Balkhi</a> and <a href="http://thomasgriffin.io" rel="me" title="WordPress Developer - Thomas Griffin">Thomas Griffin</a>. Check out some of our other products, including <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy - the best responsive WordPress slider plugin">Soliloquy - the best responsive WordPress slider plugin</a>, <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery - the best responsive WordPress gallery plugin">Envira Gallery - the best responsive WordPress gallery plugin</a> and <a href="http://optinmonster.com/" rel="friend" title="OptinMonster">OptinMonster</a>.
|
||||
|
||||
== Installation ==
|
||||
|
||||
### First download the WP Lightbox 2 plugin ZIP file.
|
||||
For installing the **WP Lightbox 2**, please follow these steps
|
||||
|
||||
1. Log in to your WordPress website admin panel.
|
||||
2. Then go to Plugins page Add New > Upload Plugin .
|
||||
3. Click "Choose file" then select the - WP Lightbox 2 zip file.
|
||||
4. Then Install and activate the plugin.
|
||||
5. Then, from the left panel of Dashboard, click on the **WP Lightbox 2** icon to edit WP Lightbox 2 options.
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
Our WP Lightbox 2 is user friendly plugin, but here you can see some frequently asked questions that can help you.
|
||||
|
||||
= How should I enable WP Lightbox 2 =
|
||||
|
||||
By default the option "Use Lightbox for all image links" is enabled, that's means all the images in your website will display in overlay lightbox.
|
||||
|
||||
= How can I disable WP Lightbox 2 for certain images =
|
||||
|
||||
You just need to add rel="nobox" to your image link.
|
||||
Example - <a href="image-link.html" rel="nobox"><img src="image-link.html" width="772" height="250" /></a>
|
||||
|
||||
= How can I display caption in lightbox =
|
||||
|
||||
Use the title attribute if you want to show a caption.
|
||||
|
||||
= Why plugin doesn't work for me =
|
||||
|
||||
Check the following reasons:
|
||||
|
||||
- You have changed the plugin folder name to something other than wp-lightbox-2.
|
||||
- The problem is in your WordPress theme. Use another theme, that does not interfere with post/pages images.
|
||||
- You have other plugins that conflict with WP Lightbox 2. Disable your other plugins and see if that helps. If it does, re-enable each plugin, one at a time to see which one is causing the conflict.
|
||||
|
||||
= Does WP Lightbox 2 work properly in all Browser(Chrome, Firefox, Explorer, etc) =
|
||||
|
||||
Yes, it does. The problem is in your WordPress theme, mangling image display properties.
|
||||
Use another theme, or change your theme Cascading Style Sheets (CSS).
|
||||
|
||||
This plugin was created by <a href="https://syedbalkhi.com" rel="friend" title="Syed Balkhi">Syed Balkhi</a> and <a href="http://thomasgriffin.io" rel="me" title="WordPress Developer - Thomas Griffin">Thomas Griffin</a>. Check out some of our other products, including <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy - the best responsive WordPress slider plugin">Soliloquy - the best responsive WordPress slider plugin</a>, <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery - the best responsive WordPress gallery plugin">Envira Gallery - the best responsive WordPress gallery plugin</a> and <a href="http://optinmonster.com/" rel="friend" title="OptinMonster">OptinMonster</a>.
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
1. **WP Lightbox 2** Front-end
|
||||
2. **WP Lightbox 2** Back-end
|
||||
3. **WP Lightbox 2** Back-end
|
||||
4. **WP Lightbox 2** Front-end
|
||||
5. [WordPress Lightbox](https://wordpress.org/plugins/wp-lightbox-2) Front-end
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 3.0.6.4 =
|
||||
* Fix: Library was broken, if a user had a select box on their website.
|
||||
|
||||
= 3.0.6.3 =
|
||||
* Code Rewrite
|
||||
* Added NodeJs and Babel for minifiying the script to reduce script size
|
||||
* Fix: Wordpress 5.5 compatibility
|
||||
|
||||
= 3.0.6.2 =
|
||||
* Add checks for images without rel tags and fix all the things.
|
||||
|
||||
= 3.0.6.1 =
|
||||
* Prevent double quotes on automatic rel attributes
|
||||
|
||||
= 3.0.6 =
|
||||
* Fix: WordPress 4.4 compatibility
|
||||
|
||||
= 3.0.5 =
|
||||
* Fix: WordPress 4.3 compatibility
|
||||
|
||||
= 3.0.0 =
|
||||
|
||||
* Created some important changes for Lightbox.
|
||||
|
||||
= 2.28.9.2.1 =
|
||||
|
||||
* Fixed: Broken shortcodes with WordPress 4.1 for Lightbox.
|
||||
|
||||
= 2.28.9.2 =
|
||||
|
||||
* Compatible Lightbox with wordpress 4.1.
|
||||
|
||||
= 2.28.9.1 =
|
||||
|
||||
* Compatible Lightbox with wordpress 4.0.1.
|
||||
|
||||
= 2.28.9.0 =
|
||||
|
||||
* Optimize Lightbox: content grouping support and exclusion performance .
|
||||
|
||||
= 2.28.8.9 =
|
||||
|
||||
* Compatible Lightbox with wordpress 4.0.
|
||||
|
||||
= 2.28.8.8 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.9.2
|
||||
|
||||
= 2.28.8.7 =
|
||||
|
||||
* Fixed Image Galary and other HTML issue minor for Lightbox .
|
||||
|
||||
= 2.28.8.6 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.9.1
|
||||
|
||||
= 2.28.8.5 =
|
||||
|
||||
* Fixed Lightbox Responsiveness Issue .
|
||||
|
||||
= 2.28.8.4 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.9.
|
||||
|
||||
= 2.28.8.3 =
|
||||
|
||||
* Fixed full screen image close issue for Lightbox.
|
||||
|
||||
= 2.28.8.2 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.8.1
|
||||
|
||||
= 2.28.8.1 =
|
||||
|
||||
* Fixed navigation Issue for Lightbox.
|
||||
|
||||
= 2.28.8 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.8 .
|
||||
|
||||
= 2.28.7 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.7.1.
|
||||
|
||||
= 2.28.6.1 =
|
||||
|
||||
* Fixed navigation issue (minor release) for Lightbox.
|
||||
|
||||
= 2.28.5 =
|
||||
|
||||
*Compatible Lightbox with wordpress 3.6.1.
|
||||
|
||||
= 2.28.4 =
|
||||
|
||||
*Compatible Lightbox with wordpress 3.6.
|
||||
|
||||
= 2.28.3 =
|
||||
|
||||
* Fixed HTML5 Themes support issues fro Lightbox.
|
||||
|
||||
= 2.28.2 =
|
||||
|
||||
* Compatible Lightbox with wordpress HTML5 Themes.
|
||||
|
||||
= 2.28.1 =
|
||||
|
||||
Fixed PHP 5 comment bug that got reintroduced into plugin.
|
||||
|
||||
= 2.28 =
|
||||
|
||||
*Use wp_enqueue_scripts instead. [Check support thread](http://wordpress.org/support/topic/please-stop-using-the-wp_print_scripts-action-hook-to-load-your-javascript).
|
||||
|
||||
= 2.27 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.5.1.
|
||||
|
||||
= 2.26 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.5.
|
||||
|
||||
= 2.25 =
|
||||
|
||||
* Compatible Lightboxwith wordpress 3.4.2 (Fixed PHP 5 bug)
|
||||
* Fixed Bug Stopped Working with W3 Total Cache
|
||||
|
||||
= 2.24 =
|
||||
|
||||
* Compatible Lightbox with wordpress 3.4.2
|
||||
|
||||
= 2.23 =
|
||||
|
||||
* Updated jQuery calls for [WordPress Lightbox](https://wordpress.org/plugins/wp-lightbox-2).
|
||||
|
||||
= 2.22 =
|
||||
|
||||
* Fixed one's, that caused a fatal error.
|
||||
|
||||
= 2.21 =
|
||||
|
||||
* Image Map fro Lightbox.
|
||||
* Shrink large images to fit smaller screens.
|
||||
|
||||
= 2.2 =
|
||||
|
||||
* Bug Fixed [Can't install update](http://wordpress.org/support/topic/plugin-wp-lightbox-2-cant-installa-update).
|
||||
|
||||
= 2.1 =
|
||||
|
||||
* Default view changed to Colorbox due to the license regulation by the plugin directory.
|
||||
|
||||
= 2.0 =
|
||||
|
||||
* List versions.
|
||||
* Works on all modern browsers.
|
||||
* Group related images in post and navigate through them with ease.
|
||||
* Backwards Compatibility.
|
||||
* No configuration required.
|
||||
* 5 Inbuilt theme.
|
||||
* Lightbox display of Gallery.
|
||||
|
||||
== Other Notes ==
|
||||
|
||||
### WP Lightbox 2 General Settings
|
||||
|
||||
* Use Lightbox for all image links - Enable or disable the lightbox.
|
||||
* Enable lightbox in comments - This feature will enable lightbox for your comments.
|
||||
* Show download link - You can display download link.
|
||||
* Show image info on top - Choose image info position.
|
||||
* Reduce large images to fit smaller screens - We recommend to enable this option, it will reduce large images to fit smaller screens.
|
||||
* Minimum margin from top - You can change image position from top.
|
||||
* Lightbox Animation duration - Type here animation duration for lightbox.
|
||||
* Additional text below image info - Type here text, and it will appear below images.
|
||||
|
||||
### WP Lightbox 2 Design Settings
|
||||
|
||||
* Overlay opacity - Set overlay opacity for lightbox.
|
||||
* Overlay color - Choose overlay opacity for lightbox.
|
||||
* Overlay close function - This function will close the lightbox when you click on overlay.
|
||||
* Lightbox image Border width - Type here Lightbox image Border width.
|
||||
* Lightbox image Border color - Choose Border color for Lightbox image.
|
||||
* Lightbox image Border radius - Type here Lightbox image Border radius.
|
||||
* Show/Hide image numbers(ex. Image 1 of 3) - Choose to show or hide numbers for images.
|
||||
* Image info and close button background opacity - Set image info and close button background.
|
||||
* Image info and close button background color - Set Image info and close button background color
|
||||
* Image info text color(includ download link and other text) - Set Image info text color.
|
||||
* Image info text font-size (include download link and other text) - Type Image info text font-size (include download link and other text)
|
||||
* Next image title tag - Type here next image title tag.
|
||||
* Previous image title tag - Type here previous image title tag.
|
||||
* Choose Next/Previous button image - Choose Next/Previous button for lightbox.
|
||||
* Maximum Width - Type maximum width for lightbox images.
|
||||
* Maximum Height - Type maximum height for lightbox images.
|
||||
* Show/Hide close button - Choose to show or hide close buttons for [WordPress Lightbox](https://wordpress.org/plugins/wp-lightbox-2).
|
||||
* Close button max height - Type here close button max height for Wp Lightbox 2.
|
||||
* Close button image title tag - Type here close button image title tag for Wp Lightbox 2.
|
||||
* Lightbox close button image - Choose one, or upload your own image for close button for Wp Lightbox 2.
|
||||
* Keyboard navigation - With this feature users also can change images with keyboard.
|
||||
* Fix position for lightbox - That's mean your lightbox shouldn't change position when users scroll up or down.
|
||||
|
||||
This plugin was created by <a href="https://syedbalkhi.com" rel="friend" title="Syed Balkhi">Syed Balkhi</a> and <a href="http://thomasgriffin.io" rel="me" title="WordPress Developer - Thomas Griffin">Thomas Griffin</a>. Check out some of our other products, including <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy - the best responsive WordPress slider plugin">Soliloquy - the best responsive WordPress slider plugin</a>, <a href="http://enviragallery.com/" rel="friend" title="Envira Gallery - the best responsive WordPress gallery plugin">Envira Gallery - the best responsive WordPress gallery plugin</a> and <a href="http://optinmonster.com/" rel="friend" title="OptinMonster">OptinMonster</a>.
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 373 KiB |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 979 B |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 333 B |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 622 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 359 B |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 305 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 715 B |
|
After Width: | Height: | Size: 307 B |
|
After Width: | Height: | Size: 1.2 KiB |