- {GALLERY_THUMB=w=300&h=200}
-
{GALLERY_CAPTION}
+$GALLERY_TEMPLATE['list_start'] = '{GALLERY_BREADCRUMB}
+
+';
+
+$GALLERY_TEMPLATE['list_item'] = '
+
+
+ {GALLERY_THUMB=w=300&h=200}
+
{GALLERY_CAPTION}
+
-
';
+';
-$GALLERY_TEMPLATE['list_end'] =
- "
+';
+// Bootstrap3 Compatible.
$GALLERY_TEMPLATE['cat_caption'] = LAN_PLUGIN_GALLERY_TITLE;
-$GALLERY_TEMPLATE['cat_start'] =
- '{GALLERY_BREADCRUMB}
-
';
-
-
+$GALLERY_TEMPLATE['cat_start'] = '{GALLERY_BREADCRUMB}
+
+';
+
$GALLERY_TEMPLATE['cat_item'] = '
-
-
- {GALLERY_CAT_THUMB}
-
{GALLERY_CAT_TITLE}
+
+
+ {GALLERY_CAT_THUMB}
+
{GALLERY_CAT_TITLE}
+
-
';
+';
-
-$GALLERY_TEMPLATE['cat_end'] =
- "
- ";
-
-
+$GALLERY_TEMPLATE['cat_end'] = '
+
+';
// {GALLERY_SLIDESHOW=X} X = Gallery Category. Default: 1 (ie. 'gallery_1') Overrides preference in admin.
// {GALLERY_SLIDES=X} X = number of items per slide.
// {GALLERY_JUMPER=space} will remove numbers and just leave spaces.
$GALLERY_TEMPLATE['slideshow_wrapper'] = '
-
-
-
- {GALLERY_SLIDES=4}
-
-
-
-
-
-
- ';
+
+
+ {GALLERY_SLIDES=4}
+
+
+
+
+';
$GALLERY_TEMPLATE['slideshow_slide_item'] = '
{GALLERY_THUMB: w=150&h=120} ';
-
+$GALLERY_TEMPLATE['prettyphoto']['content'] = '
+
+
+';
-?>
\ No newline at end of file
+$GALLERY_TEMPLATE['prettyphoto']['gallery_item'] = '
+
+';
+
+$GALLERY_TEMPLATE['prettyphoto']['image_item'] = '
+
+';
+
+$GALLERY_TEMPLATE['prettyphoto']['flash_item'] = '
+
+
+
+
+
+
+
+';
+
+$GALLERY_TEMPLATE['prettyphoto']['quicktime_item'] = '
+
+
+
+
+
+
+';
+
+$GALLERY_TEMPLATE['prettyphoto']['iframe_item'] = '
+
+';
+
+$GALLERY_TEMPLATE['prettyphoto']['inline_item'] = '
+
{content}
+';
+
+$GALLERY_TEMPLATE['prettyphoto']['custom_item'] = '';
+
+$GALLERY_TEMPLATE['prettyphoto']['social_item'] = '
+
+';
diff --git a/e107_plugins/gallery/url/rewrite_url.php b/e107_plugins/gallery/url/rewrite_url.php
index 055c93a36..1899cef6d 100644
--- a/e107_plugins/gallery/url/rewrite_url.php
+++ b/e107_plugins/gallery/url/rewrite_url.php
@@ -1,37 +1,42 @@
array(
- 'allowMain' => true,
- 'format' => 'path',
- 'defaultRoute' => 'index/category',
-
+ 'allowMain' => true,
+ 'format' => 'path',
+ 'defaultRoute' => 'index/category',
+
// false - disable all parameters passed to assemble method by default
- 'allowVars' => array('cat', 'frm'),
-
+ 'allowVars' => array('cat', 'frm'),
+
// custom assemble/parse URL regex template
'varTemplates' => array('galleryCat' => '[\w\pL\s\-+.,]+'),
),
-
+
// rule set array
- 'rules' => array(
- '/' => 'index/category',
- // allow only mapped vars - cat and frm parameters to be passed
- '
' => array('index/list', 'mapVars' => array('media_cat_sef' => 'cat', 'from' => 'frm')),
- )
+ 'rules' => array(
+ '/' => 'index/category',
+ // allow only mapped vars - cat and frm parameters to be passed
+ '' => array('index/list', 'mapVars' => array('media_cat_sef' => 'cat', 'from' => 'frm')),
+ )
);
}
-
+
/**
* Admin callback
* Language file not loaded as all language data is inside the lan_eurl.php (loaded by default on administration URL page)
@@ -40,16 +45,16 @@ class plugin_gallery_rewrite_url extends eUrlConfig
{
// static may be used for performance - XXX LANS
static $admin = array(
- 'labels' => array(
- 'name' => 'Gallery', // Module name
- 'label' => 'Gallery SEF', // Current profile name
- 'description' => 'SEF URLs enabled.',
- 'examples' => array('{SITEURL}gallery/my-gallery-title'), //
+ 'labels' => array(
+ 'name' => LAN_PLUGIN_GALLERY_TITLE, // Module name
+ 'label' => LAN_PLUGIN_GALLERY_SEF_01, // Current profile name
+ 'description' => LAN_PLUGIN_GALLERY_SEF_02,
+ 'examples' => array('{SITEURL}gallery/my-gallery-title'), //
),
- 'form' => array(), // Under construction - additional configuration options
+ 'form' => array(), // Under construction - additional configuration options
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
);
-
+
return $admin;
}
}
diff --git a/e107_plugins/gallery/url/url.php b/e107_plugins/gallery/url/url.php
index 7e123b3ad..0704cb1f4 100644
--- a/e107_plugins/gallery/url/url.php
+++ b/e107_plugins/gallery/url/url.php
@@ -1,33 +1,38 @@
array(
- 'allowMain' => true,
- 'format' => 'path', // get|path - notify core for the current URL format, if set to 'get' rules will be ignored
- 'defaultRoute' => 'index/category', // [optional] default empty; route (no leading module) used when module is found with no additional controller/action information e.g. /news/
-
+ 'allowMain' => true,
+ 'format' => 'path', // get|path - notify core for the current URL format, if set to 'get' rules will be ignored
+ 'defaultRoute' => 'index/category', // [optional] default empty; route (no leading module) used when module is found with no additional controller/action information e.g. /news/
+
// false - disable all parameters passed to assemble method by default
- 'allowVars' => array('cat', 'frm'),
- ),
-
+ 'allowVars' => array('cat', 'frm'),
+ ),
+
// rule set array
- 'rules' => array(
- '/' => 'index/category',
- 'list' => array('index/list', 'mapVars' => array('media_cat_sef' => 'cat', 'from' => 'frm'), 'allowVars' => array('cat', 'frm'),),
- )
+ 'rules' => array(
+ '/' => 'index/category',
+ 'list' => array('index/list', 'mapVars' => array('media_cat_sef' => 'cat', 'from' => 'frm'), 'allowVars' => array('cat', 'frm'),),
+ )
);
}
-
+
/**
* Admin callback
* Language file not loaded as all language data is inside the lan_eurl.php (loaded by default on administration URL page)
@@ -36,16 +41,16 @@ class plugin_gallery_url extends eUrlConfig
{
// static may be used for performance - XXX LANS
static $admin = array(
- 'labels' => array(
- 'name' => 'Gallery', // Module name
- 'label' => 'Gallery default', // Current profile name
- 'description' => 'SEF URLs disabled.', //
- 'examples' => array("{e_PLUGIN_ABS}gallery/?cat=gallery_1")
+ 'labels' => array(
+ 'name' => LAN_PLUGIN_GALLERY_TITLE, // Module name
+ 'label' => LAN_PLUGIN_GALLERY_SEF_04, // Current profile name
+ 'description' => LAN_PLUGIN_GALLERY_SEF_03,
+ 'examples' => array("{e_PLUGIN_ABS}gallery/?cat=gallery_1")
),
- 'form' => array(), // Under construction - additional configuration options
+ 'form' => array(), // Under construction - additional configuration options
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
);
-
+
return $admin;
}
}
diff --git a/e107_web/js/core/all.jquery.js b/e107_web/js/core/all.jquery.js
index ccd33cb09..023387c26 100644
--- a/e107_web/js/core/all.jquery.js
+++ b/e107_web/js/core/all.jquery.js
@@ -251,6 +251,24 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
}
};
+ /**
+ * Check if the selector is valid.
+ *
+ * @param selector
+ * @returns {boolean}
+ */
+ e107.callbacks.isValidSelector = function (selector)
+ {
+ try
+ {
+ var $element = $(selector);
+ } catch(error)
+ {
+ return false;
+ }
+ return true;
+ };
+
/**
* Dynamic next/prev.
*
diff --git a/e107_web/js/core/front.jquery.js b/e107_web/js/core/front.jquery.js
index 03e9efe4b..dfbf2e616 100644
--- a/e107_web/js/core/front.jquery.js
+++ b/e107_web/js/core/front.jquery.js
@@ -23,7 +23,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
e107.behaviors.initializeSmoothScrolling = {
attach: function (context, settings)
{
- if(window.location.hash)
+ if(window.location.hash && e107.callbacks.isValidSelector(window.location.hash))
{
$(context).find('body').once('initialize-smooth-scrolling').each(function ()
{
diff --git a/e107_plugins/gallery/jslib/jquery.cycle.all.js b/e107_web/lib/jquery.cycle/jquery.cycle.all.js
similarity index 100%
rename from e107_plugins/gallery/jslib/jquery.cycle.all.js
rename to e107_web/lib/jquery.cycle/jquery.cycle.all.js
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/css/prettyPhoto.css b/e107_web/lib/jquery.prettyPhoto/css/prettyPhoto.css
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/css/prettyPhoto.css
rename to e107_web/lib/jquery.prettyPhoto/css/prettyPhoto.css
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png
new file mode 100755
index 000000000..b28c1ef3d
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/btnNext.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png
new file mode 100755
index 000000000..e0cd9c49a
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/btnPrevious.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png
new file mode 100755
index 000000000..e5a047c3a
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/contentPattern.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif
new file mode 100755
index 000000000..2b1280f32
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/default_thumbnail.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif
new file mode 100755
index 000000000..50820eedd
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/loader.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png
new file mode 100755
index 000000000..fb8c0f83d
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_rounded/sprite.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/btnNext.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/btnNext.png
new file mode 100755
index 000000000..b28c1ef3d
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/btnNext.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png
new file mode 100755
index 000000000..e0cd9c49a
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/btnPrevious.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png
new file mode 100755
index 000000000..7b50aff88
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/contentPattern.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif
new file mode 100755
index 000000000..2b1280f32
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/default_thumbnail.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/loader.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/loader.gif
new file mode 100755
index 000000000..50820eedd
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/loader.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/sprite.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/sprite.png
new file mode 100755
index 000000000..4fe354752
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/dark_square/sprite.png differ
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/default_thumb.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/default_thumb.png
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/default_thumb.png
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/default_thumb.png
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/loader.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/loader.gif
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/loader.gif
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/loader.gif
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite.png
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite.png
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite.png
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_next.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_next.png
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_next.png
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_next.png
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_prev.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_prev.png
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_prev.png
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_prev.png
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_x.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_x.png
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_x.png
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_x.png
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_y.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_y.png
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/images/prettyPhoto/default/sprite_y.png
rename to e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/default/sprite_y.png
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/btnNext.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/btnNext.png
new file mode 100755
index 000000000..e809c3b64
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/btnNext.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png
new file mode 100755
index 000000000..0812542cc
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png
new file mode 100755
index 000000000..a9be3b2ca
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternBottom.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png
new file mode 100755
index 000000000..277c87a5b
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternLeft.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png
new file mode 100755
index 000000000..76e50d0f5
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternRight.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png
new file mode 100755
index 000000000..8b110bac6
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/contentPatternTop.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif
new file mode 100755
index 000000000..2b1280f32
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/default_thumbnail.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/loader.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/loader.gif
new file mode 100755
index 000000000..7ac990cf0
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/loader.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/sprite.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/sprite.png
new file mode 100755
index 000000000..660a254f1
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/facebook/sprite.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png
new file mode 100755
index 000000000..b28c1ef3d
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/btnNext.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png
new file mode 100755
index 000000000..e0cd9c49a
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/btnPrevious.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif
new file mode 100755
index 000000000..2b1280f32
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/default_thumbnail.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/loader.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/loader.gif
new file mode 100755
index 000000000..7ac990cf0
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/loader.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/sprite.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/sprite.png
new file mode 100755
index 000000000..7f2837981
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_rounded/sprite.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/btnNext.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/btnNext.png
new file mode 100755
index 000000000..b28c1ef3d
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/btnNext.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png
new file mode 100755
index 000000000..e0cd9c49a
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/btnPrevious.png differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif
new file mode 100755
index 000000000..2b1280f32
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/default_thumbnail.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/loader.gif b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/loader.gif
new file mode 100755
index 000000000..7ac990cf0
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/loader.gif differ
diff --git a/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/sprite.png b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/sprite.png
new file mode 100755
index 000000000..4fe354752
Binary files /dev/null and b/e107_web/lib/jquery.prettyPhoto/images/prettyPhoto/light_square/sprite.png differ
diff --git a/e107_plugins/gallery/jslib/prettyPhoto/js/jquery.prettyPhoto.js b/e107_web/lib/jquery.prettyPhoto/js/jquery.prettyPhoto.js
similarity index 100%
rename from e107_plugins/gallery/jslib/prettyPhoto/js/jquery.prettyPhoto.js
rename to e107_web/lib/jquery.prettyPhoto/js/jquery.prettyPhoto.js
diff --git a/user.php b/user.php
index a5262a4b7..847a6f219 100644
--- a/user.php
+++ b/user.php
@@ -47,10 +47,11 @@ if(e_AJAX_REQUEST)
{
if(vartrue($_POST['q']))
{
- $q = filter_var($_POST['q'], FILTER_SANITIZE_STRING);
- $l = vartrue($_POST['l']) ? intval($_POST['l']) : 10;
-
$db = e107::getDb();
+ $tp = e107::getParser();
+
+ $q = $tp->filter($_POST['q']);
+ $l = vartrue($_POST['l']) ? intval($_POST['l']) : 10;
$where = "user_name LIKE '". $q."%' ";
@@ -70,8 +71,8 @@ if(e_AJAX_REQUEST)
if(count($data))
{
- header('Content-type: application/json');
- echo json_encode($data);
+ $ajax = e107::getAjax();
+ $ajax->response($data);
}
}
}