Version Description
Download this release
Release Info
Developer | pasyuk |
Plugin | Gallery – Flagallery Photo Portfolio |
Version | 5.4.0 |
Comparing to | |
See all releases |
Code changes from version 5.3.0 to 5.4.0
- admin/ajax.php +4 -6
- admin/banner.functions.php +1 -1
- admin/flag_install.php +1 -1
- admin/get_skin.php +1 -1
- admin/js/flagallery-block.js +11 -7
- admin/manage-galleries.php +1 -1
- admin/meta_box.php +172 -81
- admin/overview.php +2 -14
- admin/playlist.functions.php +1 -1
- admin/skin_install.php +2 -2
- admin/skin_options.php +2 -1
- admin/upgrade.php +1 -1
- admin/video.functions.php +1 -1
- assets/script.js +3 -1
- flag.php +79 -30
- flagframe.php +2 -2
- full_window_template.php +2 -1
- lib/core.php +1 -1
- lib/flag-db.php +2 -2
- lib/media-rss.php +16 -16
- lib/skinobject.php +31 -2
- readme.txt +40 -4
- skins/amron/amron.php +11 -0
- skins/amron/css/amron.css +464 -0
- skins/amron/css/fla_vit_itemMenu.css +29 -0
- skins/amron/css/fla_vit_modalWin.css +290 -0
- skins/amron/css/fla_vit_slider.css +400 -0
- skins/amron/index.php +3 -0
- skins/amron/init.php +20 -0
- skins/amron/js/amron.js +85 -0
- skins/amron/js/module/fla_vit_itemMenu.js +18 -0
- skins/amron/js/module/fla_vit_modalWin.js +25 -0
- skins/amron/js/module/fla_vit_slider.js +91 -0
- skins/amron/screenshot.png +0 -0
- skins/amron/settings.php +325 -0
- skins/nivogallery/init.php +2 -2
- skins/nivoslider/init.php +2 -2
- skins/phantom/css/phantom.css +2 -3
- skins/phantom/js/phantom.js +4 -9
- skins/phantom/phantom.php +1 -1
- skins/photomania/css/photomania.css +0 -4
- skins/photomania/init.php +0 -2
- skins/photomania/js/photomania.js +0 -4
- widgets/widgets.php +1 -1
admin/ajax.php
CHANGED
@@ -121,15 +121,13 @@ function flag_save_album() {
|
|
121 |
die( '-1' );
|
122 |
}
|
123 |
|
124 |
-
$g = array();
|
125 |
-
$album_id = 0;
|
126 |
-
$album_name = '';
|
127 |
if ( isset( $_POST['form'] ) ) {
|
128 |
-
parse_str( $_POST['form'] );
|
129 |
}
|
130 |
$result = false;
|
131 |
-
$album_id = intval( $album_id );
|
132 |
-
$album_name = wp_check_invalid_utf8(wp_strip_all_tags( $album_name ));
|
|
|
133 |
if ( $album_name && $album_id ) {
|
134 |
if ( count( $g ) ) {
|
135 |
$galstring = implode( ',', $g );
|
121 |
die( '-1' );
|
122 |
}
|
123 |
|
|
|
|
|
|
|
124 |
if ( isset( $_POST['form'] ) ) {
|
125 |
+
parse_str( $_POST['form'], $output );
|
126 |
}
|
127 |
$result = false;
|
128 |
+
$album_id = isset($output['album_id'])? intval( $output['album_id'] ) : 0;
|
129 |
+
$album_name = wp_check_invalid_utf8(wp_strip_all_tags( $output['album_name'] ));
|
130 |
+
$g = isset($output['g'])? (array) $output['g'] : array();
|
131 |
if ( $album_name && $album_id ) {
|
132 |
if ( count( $g ) ) {
|
133 |
$galstring = implode( ',', $g );
|
admin/banner.functions.php
CHANGED
@@ -62,7 +62,7 @@ function get_b_playlists($playlist_folder = ''){
|
|
62 |
|
63 |
$flag_playlists[ basename($playlist_file, ".xml") ] = $playlist_data;
|
64 |
}
|
65 |
-
uasort($flag_playlists,
|
66 |
|
67 |
return $flag_playlists;
|
68 |
}
|
62 |
|
63 |
$flag_playlists[ basename($playlist_file, ".xml") ] = $playlist_data;
|
64 |
}
|
65 |
+
uasort($flag_playlists, function($a, $b){ return strnatcasecmp( $a["title"], $b["title"] ); });
|
66 |
|
67 |
return $flag_playlists;
|
68 |
}
|
admin/flag_install.php
CHANGED
@@ -226,7 +226,7 @@ function flag_list_options(){
|
|
226 |
// Flash settings
|
227 |
$flag_options['skinsDirABS'] = str_replace("\\", "/", WP_PLUGIN_DIR . '/flagallery-skins/');
|
228 |
$flag_options['skinsDirURL'] = WP_PLUGIN_URL . '/flagallery-skins/';
|
229 |
-
$flag_options['flashSkin'] = '
|
230 |
$flag_options['flashWidth'] = '100%';
|
231 |
$flag_options['flashHeight'] = '500';
|
232 |
|
226 |
// Flash settings
|
227 |
$flag_options['skinsDirABS'] = str_replace("\\", "/", WP_PLUGIN_DIR . '/flagallery-skins/');
|
228 |
$flag_options['skinsDirURL'] = WP_PLUGIN_URL . '/flagallery-skins/';
|
229 |
+
$flag_options['flashSkin'] = 'amron';
|
230 |
$flag_options['flashWidth'] = '100%';
|
231 |
$flag_options['flashHeight'] = '500';
|
232 |
|
admin/get_skin.php
CHANGED
@@ -135,7 +135,7 @@ function get_skins($skin_folder='', $type='') {
|
|
135 |
$flag_skins[skin_basename( $skin_file )] = $skin_data;
|
136 |
}
|
137 |
|
138 |
-
uasort( $flag_skins,
|
139 |
|
140 |
return $flag_skins;
|
141 |
}
|
135 |
$flag_skins[skin_basename( $skin_file )] = $skin_data;
|
136 |
}
|
137 |
|
138 |
+
uasort( $flag_skins, function( $a, $b ){ return strnatcasecmp( $a["Name"], $b["Name"] ); } );
|
139 |
|
140 |
return $flag_skins;
|
141 |
}
|
admin/js/flagallery-block.js
CHANGED
@@ -78,9 +78,8 @@
|
|
78 |
},
|
79 |
|
80 |
edit: function(props) {
|
81 |
-
console.log(flagallery_data);
|
82 |
-
console.log(props);
|
83 |
var galleryname = props.attributes.galleryname;
|
|
|
84 |
var id = props.attributes.id;
|
85 |
var skin = props.attributes.skin;
|
86 |
var align = props.attributes.align;
|
@@ -93,8 +92,13 @@
|
|
93 |
|
94 |
function setGallery(event) {
|
95 |
var form = $(event.target).closest('form.flagallery-preview');
|
96 |
-
var
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
98 |
var galleryname = form.find('.flagallery-name').val();
|
99 |
if('album' == type && !galleryname) {
|
100 |
var key = parseInt(id, 10);
|
@@ -117,7 +121,7 @@
|
|
117 |
);
|
118 |
Object.keys(flagallery_data.albums).forEach(function(key) {
|
119 |
albums.push(
|
120 |
-
el('option', {value: flagallery_data.albums[key].id}, flagallery_data.albums[key].name),
|
121 |
);
|
122 |
});
|
123 |
galleries.push(
|
@@ -125,7 +129,7 @@
|
|
125 |
);
|
126 |
Object.keys(flagallery_data.galleries).forEach(function(key) {
|
127 |
galleries.push(
|
128 |
-
el('option', {value: flagallery_data.galleries[key].gid}, flagallery_data.galleries[key].
|
129 |
);
|
130 |
});
|
131 |
options.push(
|
@@ -141,7 +145,7 @@
|
|
141 |
elclass = 'flagallery-id flagallery-required';
|
142 |
}
|
143 |
children.push(
|
144 |
-
el('select', {className: elclass, value: id, onChange: setGallery}, options),
|
145 |
);
|
146 |
|
147 |
// skin
|
78 |
},
|
79 |
|
80 |
edit: function(props) {
|
|
|
|
|
81 |
var galleryname = props.attributes.galleryname;
|
82 |
+
var type = props.attributes.type;
|
83 |
var id = props.attributes.id;
|
84 |
var skin = props.attributes.skin;
|
85 |
var align = props.attributes.align;
|
92 |
|
93 |
function setGallery(event) {
|
94 |
var form = $(event.target).closest('form.flagallery-preview');
|
95 |
+
var type_id = form.find('.flagallery-id').val().split('-')
|
96 |
+
type = '',
|
97 |
+
id = '';
|
98 |
+
if(type_id.length === 2) {
|
99 |
+
type = type_id[0];
|
100 |
+
id = type_id[1];
|
101 |
+
}
|
102 |
var galleryname = form.find('.flagallery-name').val();
|
103 |
if('album' == type && !galleryname) {
|
104 |
var key = parseInt(id, 10);
|
121 |
);
|
122 |
Object.keys(flagallery_data.albums).forEach(function(key) {
|
123 |
albums.push(
|
124 |
+
el('option', {value: 'album-' + flagallery_data.albums[key].id}, flagallery_data.albums[key].name),
|
125 |
);
|
126 |
});
|
127 |
galleries.push(
|
129 |
);
|
130 |
Object.keys(flagallery_data.galleries).forEach(function(key) {
|
131 |
galleries.push(
|
132 |
+
el('option', {value: 'gallery-' + flagallery_data.galleries[key].gid}, flagallery_data.galleries[key].title),
|
133 |
);
|
134 |
});
|
135 |
options.push(
|
145 |
elclass = 'flagallery-id flagallery-required';
|
146 |
}
|
147 |
children.push(
|
148 |
+
el('select', {className: elclass, value: type + '-' + id, onChange: setGallery}, options),
|
149 |
);
|
150 |
|
151 |
// skin
|
admin/manage-galleries.php
CHANGED
@@ -313,7 +313,7 @@ function flag_manage_gallery_main(){
|
|
313 |
$acat = $flagdb->find_gallery($galid);
|
314 |
?>
|
315 |
|
316 |
-
<div class="acat" id="g_<?php echo $acat->gid; ?>"><?php echo esc_html($acat->title); ?>
|
317 |
<span class="drop">x</span></div>
|
318 |
<?php }
|
319 |
} else{
|
313 |
$acat = $flagdb->find_gallery($galid);
|
314 |
?>
|
315 |
|
316 |
+
<div class="acat" rel="<?php echo $acat->gid; ?>" id="g_<?php echo $acat->gid; ?>"><?php echo esc_html($acat->title); ?>
|
317 |
<span class="drop">x</span></div>
|
318 |
<?php }
|
319 |
} else{
|
admin/meta_box.php
CHANGED
@@ -4,9 +4,20 @@ global $flag, $flagdb, $post;
|
|
4 |
require_once (dirname(__FILE__) . '/get_skin.php');
|
5 |
$i_skins = get_skins();
|
6 |
$flag_custom = get_post_custom($post->ID);
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
$skinname = isset($flag_custom["mb_skinname"][0])? $flag_custom["mb_skinname"][0] : '';
|
9 |
$scode = isset($flag_custom["mb_scode"][0])? $flag_custom["mb_scode"][0] : '';
|
|
|
|
|
|
|
|
|
|
|
10 |
$button_text = isset($flag_custom["mb_button"][0])? $flag_custom["mb_button"][0] : '';
|
11 |
$button_link = isset($flag_custom["mb_button_link"][0])? $flag_custom["mb_button_link"][0] : '';
|
12 |
$bg_link = isset($flag_custom["mb_bg_link"][0])? $flag_custom["mb_bg_link"][0] : '';
|
@@ -14,97 +25,173 @@ $bg_pos = isset($flag_custom["mb_bg_pos"][0])? $flag_custom["mb_bg_pos"][0] : 'c
|
|
14 |
$bg_repeat = isset($flag_custom["mb_bg_repeat"][0])? $flag_custom["mb_bg_repeat"][0] : 'repeat';
|
15 |
$bg_size = isset($flag_custom["mb_bg_size"][0])? $flag_custom["mb_bg_size"][0] : 'auto';
|
16 |
?>
|
|
|
|
|
17 |
<script type="text/javascript">/*<![CDATA[*/
|
18 |
-
var i_arr = '<?php echo $items_array; ?>';
|
19 |
jQuery(document).ready(function() {
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
});
|
72 |
-
|
73 |
-
|
|
|
74 |
}
|
|
|
75 |
var current_image = '';
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
81 |
}
|
82 |
|
83 |
/*]]>*/</script>
|
84 |
<div class="wrap">
|
85 |
<form id="generator1">
|
86 |
<table border="0" cellpadding="4" cellspacing="0" style="width: 90%;">
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
<tr>
|
109 |
<td nowrap="nowrap" valign="top"><p style="padding-top:3px;"><label for="mb_skinname"><?php _e("Choose skin", 'flash-album-gallery'); ?>:</label></p></td>
|
110 |
<td valign="top"><p><select id="mb_skinname" name="mb_skinname">
|
@@ -115,9 +202,13 @@ function send_to_editor(html){
|
|
115 |
}
|
116 |
?>
|
117 |
</select></p>
|
118 |
-
<input id="mb_scode" name="mb_scode" type="
|
119 |
</td>
|
120 |
</tr>
|
|
|
|
|
|
|
|
|
121 |
<tr>
|
122 |
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Back Button Text", 'flash-album-gallery'); ?>: </div></td>
|
123 |
<td valign="top"><input id="mb_button" name="mb_button" type="text" style="width: 49%;" placeholder="<?php _e('Go Back', 'flash-album-gallery'); ?>" value="<?php echo $button_text; ?>" /></td>
|
4 |
require_once (dirname(__FILE__) . '/get_skin.php');
|
5 |
$i_skins = get_skins();
|
6 |
$flag_custom = get_post_custom($post->ID);
|
7 |
+
if(isset($flag_custom["mb_items_array"][0])){
|
8 |
+
$flag_custom["mb_items_array"][0] = maybe_unserialize($flag_custom["mb_items_array"][0]);
|
9 |
+
if(is_string($flag_custom["mb_items_array"][0])) {
|
10 |
+
$flag_custom["mb_items_array"][0] = array_map( 'intval', explode( ',', $flag_custom["mb_items_array"][0] ) );
|
11 |
+
}
|
12 |
+
}
|
13 |
+
$items_array = !empty($flag_custom["mb_items_array"][0])? array_unique( array_filter( $flag_custom["mb_items_array"][0] ) ) : array();
|
14 |
$skinname = isset($flag_custom["mb_skinname"][0])? $flag_custom["mb_skinname"][0] : '';
|
15 |
$scode = isset($flag_custom["mb_scode"][0])? $flag_custom["mb_scode"][0] : '';
|
16 |
+
$mb_galorderby = isset($flag_custom["mb_galorderby"][0])? $flag_custom["mb_galorderby"][0] : '';
|
17 |
+
$mb_galorder = isset($flag_custom["mb_galorder"][0])? $flag_custom["mb_galorder"][0] : '';
|
18 |
+
$flag_custom["mb_galexclude"][0] = isset($flag_custom["mb_galexclude"][0])? maybe_unserialize($flag_custom["mb_galexclude"][0]) : array();
|
19 |
+
$mb_galexclude = !empty($flag_custom["mb_galexclude"][0])? array_unique( array_filter( array_map( 'intval', $flag_custom["mb_galexclude"][0] ) ) ) : array();
|
20 |
+
$home_button_text = isset($flag_custom["mb_button_home"][0])? $flag_custom["mb_button_home"][0] : '';
|
21 |
$button_text = isset($flag_custom["mb_button"][0])? $flag_custom["mb_button"][0] : '';
|
22 |
$button_link = isset($flag_custom["mb_button_link"][0])? $flag_custom["mb_button_link"][0] : '';
|
23 |
$bg_link = isset($flag_custom["mb_bg_link"][0])? $flag_custom["mb_bg_link"][0] : '';
|
25 |
$bg_repeat = isset($flag_custom["mb_bg_repeat"][0])? $flag_custom["mb_bg_repeat"][0] : 'repeat';
|
26 |
$bg_size = isset($flag_custom["mb_bg_size"][0])? $flag_custom["mb_bg_size"][0] : 'auto';
|
27 |
?>
|
28 |
+
<link rel="stylesheet" type="text/css" href="<?php echo set_url_scheme( FLAG_URLPATH, 'admin'); ?>admin/js/selectize/selectize.css" />
|
29 |
+
<script language="javascript" type="text/javascript" src="<?php echo set_url_scheme( FLAG_URLPATH, 'admin'); ?>admin/js/selectize/selectize.min.js"></script>
|
30 |
<script type="text/javascript">/*<![CDATA[*/
|
|
|
31 |
jQuery(document).ready(function() {
|
32 |
+
var selected_galleries = jQuery('#mb_items_array').val();
|
33 |
+
var galleries = 'gid=' + (selected_galleries ? selected_galleries.join(',') : 'all');
|
34 |
+
var galorderby = jQuery('#mb_galorderby').val();
|
35 |
+
var galorder = jQuery('#mb_galorder').val();
|
36 |
+
var galexclude = jQuery('#mb_galexclude').val();
|
37 |
+
if(galexclude) {
|
38 |
+
galexclude = galexclude.join(',');
|
39 |
+
}
|
40 |
+
var skin = jQuery('#mb_skinname option:selected').val();
|
41 |
+
if(skin) {
|
42 |
+
skin = ' skin=' + skin;
|
43 |
+
} else {
|
44 |
+
skin = '';
|
45 |
+
}
|
46 |
+
if('gid=all' == galleries) {
|
47 |
+
if(galorderby) {
|
48 |
+
galorderby = ' orderby=' + galorderby;
|
49 |
+
}
|
50 |
+
if(galorder) {
|
51 |
+
galorder = ' order=' + galorder;
|
52 |
+
}
|
53 |
+
if(galexclude) {
|
54 |
+
galexclude = ' exclude=' + galexclude;
|
55 |
+
}
|
56 |
+
} else {
|
57 |
+
galorderby = '';
|
58 |
+
galorder = '';
|
59 |
+
galexclude = '';
|
60 |
+
jQuery('.sort_tab').css('display', 'none');
|
61 |
+
}
|
62 |
+
short_code(galleries, skin, galorderby, galorder, galexclude);
|
63 |
+
|
64 |
+
jQuery('#mb_items_array').selectize({
|
65 |
+
plugins: ['drag_drop', 'remove_button'],
|
66 |
+
create: false,
|
67 |
+
hideSelected: true,
|
68 |
+
onChange: function(value) {
|
69 |
+
if(value) {
|
70 |
+
jQuery('.sort_tab').css('display', 'none');
|
71 |
+
} else {
|
72 |
+
jQuery('.sort_tab').css('display', '');
|
73 |
+
}
|
74 |
+
selected_galleries = jQuery('#mb_items_array').val();
|
75 |
+
galleries = 'gid=' + (selected_galleries ? selected_galleries.join(',') : 'all');
|
76 |
+
if(selected_galleries) {
|
77 |
+
short_code(galleries, skin, '', '', '');
|
78 |
+
} else {
|
79 |
+
short_code(galleries, skin, galorderby, galorder, galexclude);
|
80 |
+
}
|
81 |
+
},
|
82 |
+
});
|
83 |
+
jQuery('#mb_skinname').change(function() {
|
84 |
+
skin = jQuery(this).val();
|
85 |
+
if(skin) {
|
86 |
+
skin = ' skin=' + skin;
|
87 |
+
} else {
|
88 |
+
skin = '';
|
89 |
+
}
|
90 |
+
short_code(galleries, skin, galorderby, galorder, galexclude);
|
91 |
+
});
|
92 |
+
jQuery('#mb_galorderby').change(function() {
|
93 |
+
galorderby = jQuery(this).val();
|
94 |
+
if(galorderby) {
|
95 |
+
galorderby = ' orderby=' + galorderby;
|
96 |
+
} else {
|
97 |
+
galorderby = '';
|
98 |
+
}
|
99 |
+
short_code(galleries, skin, galorderby, galorder, galexclude);
|
100 |
+
});
|
101 |
+
jQuery('#mb_galorder').change(function() {
|
102 |
+
galorder = jQuery(this).val();
|
103 |
+
if(galorder) {
|
104 |
+
galorder = ' order=' + galorder;
|
105 |
+
} else {
|
106 |
+
galorder = '';
|
107 |
+
}
|
108 |
+
short_code(galleries, skin, galorderby, galorder, galexclude);
|
109 |
+
});
|
110 |
+
jQuery('#mb_galexclude').selectize({
|
111 |
+
plugins: ['remove_button'],
|
112 |
+
create: false,
|
113 |
+
hideSelected: true,
|
114 |
+
onChange: function(value) {
|
115 |
+
var excluded_galleries = jQuery('#mb_galexclude').val();
|
116 |
+
galexclude = ' exclude=' + (excluded_galleries ? excluded_galleries.join(',') : '');
|
117 |
+
short_code(galleries, skin, galorderby, galorder, galexclude);
|
118 |
+
},
|
119 |
+
});
|
120 |
});
|
121 |
+
|
122 |
+
function short_code(galleries, skin, galorderby, galorder, galexclude) {
|
123 |
+
jQuery('#mb_scode').val('[flagallery ' + galleries + ' w=100% h=100%' + skin + galorderby + galorder + galexclude + ' fullwindow=true]');
|
124 |
}
|
125 |
+
|
126 |
var current_image = '';
|
127 |
+
|
128 |
+
function send_to_editor(html) {
|
129 |
+
var source = html.match(/src=\".*\" alt/);
|
130 |
+
source = source[0].replace(/^src=\"/, '').replace(/" alt$/, '');
|
131 |
+
jQuery('#mb_bg_link').val(source);
|
132 |
+
tb_remove();
|
133 |
}
|
134 |
|
135 |
/*]]>*/</script>
|
136 |
<div class="wrap">
|
137 |
<form id="generator1">
|
138 |
<table border="0" cellpadding="4" cellspacing="0" style="width: 90%;">
|
139 |
+
<tr>
|
140 |
+
<td nowrap="nowrap" valign="middle"><label for="mb_items_array"><?php _e("Select galleries", 'flash-album-gallery'); ?>:</label></td>
|
141 |
+
<td style="width: 100%;"><select id="mb_items_array" name="mb_items_array[]" size="6" multiple="multiple" placeholder="<?php _e("Leave blank for all galleries", 'flash-album-gallery'); ?>">
|
142 |
+
<option value=""><?php _e("Leave blank for all galleries", 'flash-album-gallery'); ?></option>
|
143 |
+
<?php
|
144 |
+
$gallerylist = $flagdb->find_all_galleries($flag->options['albSort'], $flag->options['albSortDir']);
|
145 |
+
if(is_array($gallerylist)) {
|
146 |
+
foreach($gallerylist as $gallery) {
|
147 |
+
$name = ( empty($gallery->title) ) ? $gallery->name : esc_html(stripslashes($gallery->title));
|
148 |
+
if($flag->options['albSort'] == 'gid'){ $name = $gallery->gid.' - '.$name; }
|
149 |
+
if($flag->options['albSort'] == 'title'){ $name = $name.' ('.$gallery->gid.')'; }
|
150 |
+
$selected = '';
|
151 |
+
if(in_array($gallery->gid, $items_array)){
|
152 |
+
$selected = ' selected="selected"';
|
153 |
+
}
|
154 |
+
echo '<option value="' . $gallery->gid . '" ' . $selected . '>' . $name . '</option>' . "\n";
|
155 |
+
}
|
156 |
}
|
157 |
+
?>
|
158 |
+
</select></td>
|
159 |
+
</tr>
|
160 |
+
<tr class="sort_tab">
|
161 |
+
<td nowrap="nowrap" valign="middle"><label for="mb_galorderby"><?php _e("Order galleries by", 'flash-album-gallery'); ?>:</label></td>
|
162 |
+
<td valign="middle"><select id="mb_galorderby" name="mb_galorderby">
|
163 |
+
<option value=""><?php _e("Gallery IDs (default)", 'flash-album-gallery'); ?></option>
|
164 |
+
<option value="title" <?php selected($mb_galorderby, 'title'); ?>><?php _e("Gallery Title", 'flash-album-gallery'); ?></option>
|
165 |
+
<option value="rand" <?php selected($mb_galorderby, 'rand'); ?>><?php _e("Randomly", 'flash-album-gallery'); ?></option>
|
166 |
+
</select></td>
|
167 |
+
</tr>
|
168 |
+
<tr class="sort_tab">
|
169 |
+
<td nowrap="nowrap" valign="middle"><label for="mb_galorder"><?php _e("Order", 'flash-album-gallery'); ?>:</label></td>
|
170 |
+
<td valign="middle"><select id="mb_galorder" name="mb_galorder">
|
171 |
+
<option value="" selected="selected"><?php _e("DESC (default)", 'flash-album-gallery'); ?></option>
|
172 |
+
<option value="ASC" <?php selected($mb_galorder, 'ASC'); ?>><?php _e("ASC", 'flash-album-gallery'); ?></option>
|
173 |
+
</select></td>
|
174 |
+
</tr>
|
175 |
+
<tr class="sort_tab">
|
176 |
+
<td nowrap="nowrap" valign="middle"><label for="mb_galexclude"><?php _e("Exclude Gallery", 'flash-album-gallery'); ?>:</label></td>
|
177 |
+
<td valign="middle"><select id="mb_galexclude" name="mb_galexclude[]" size="6" multiple="multiple">
|
178 |
+
<option value=""></option>
|
179 |
+
<?php
|
180 |
+
if(is_array($gallerylist)) {
|
181 |
+
foreach($gallerylist as $gallery) {
|
182 |
+
$name = ( empty($gallery->title) ) ? $gallery->name : esc_html(stripslashes($gallery->title));
|
183 |
+
if($flag->options['albSort'] == 'gid'){ $name = $gallery->gid.' - '.$name; }
|
184 |
+
if($flag->options['albSort'] == 'title'){ $name = $name.' ('.$gallery->gid.')'; }
|
185 |
+
$selected = '';
|
186 |
+
if(in_array($gallery->gid, $mb_galexclude)){
|
187 |
+
$selected = ' selected="selected"';
|
188 |
+
}
|
189 |
+
echo '<option value="' . $gallery->gid . '" ' . $selected . '>' . $name . '</option>' . "\n";
|
190 |
+
}
|
191 |
+
}
|
192 |
+
?>
|
193 |
+
</select></td>
|
194 |
+
</tr>
|
195 |
<tr>
|
196 |
<td nowrap="nowrap" valign="top"><p style="padding-top:3px;"><label for="mb_skinname"><?php _e("Choose skin", 'flash-album-gallery'); ?>:</label></p></td>
|
197 |
<td valign="top"><p><select id="mb_skinname" name="mb_skinname">
|
202 |
}
|
203 |
?>
|
204 |
</select></p>
|
205 |
+
<input id="mb_scode" name="mb_scode" type="text" style="width: 98%;" value="<?php echo $scode; ?>" />
|
206 |
</td>
|
207 |
</tr>
|
208 |
+
<tr>
|
209 |
+
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Home Button Text", 'flash-album-gallery'); ?>: </div></td>
|
210 |
+
<td valign="top"><input id="mb_button" name="mb_button_home" type="text" style="width: 49%;" placeholder="<?php _e('Home', 'flash-album-gallery'); ?>" value="<?php echo $home_button_text; ?>" /></td>
|
211 |
+
</tr>
|
212 |
<tr>
|
213 |
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Back Button Text", 'flash-album-gallery'); ?>: </div></td>
|
214 |
<td valign="top"><input id="mb_button" name="mb_button" type="text" style="width: 49%;" placeholder="<?php _e('Go Back', 'flash-album-gallery'); ?>" value="<?php echo $button_text; ?>" /></td>
|
admin/overview.php
CHANGED
@@ -280,15 +280,6 @@ function get_serverinfo() {
|
|
280 |
$mysqlinfo = $wpdb->get_results("SHOW VARIABLES LIKE 'sql_mode'");
|
281 |
if (is_array($mysqlinfo)) $sql_mode = $mysqlinfo[0]->Value;
|
282 |
if (empty($sql_mode)) $sql_mode = __('Not set', 'flash-album-gallery');
|
283 |
-
// Get PHP Safe Mode
|
284 |
-
$safe_mode = false;
|
285 |
-
if(version_compare('5.3', phpversion(), '>')){
|
286 |
-
if(ini_get('safe_mode')){
|
287 |
-
$safe_mode = __('On', 'flash-album-gallery');
|
288 |
-
} else{
|
289 |
-
$safe_mode = __('Off', 'flash-album-gallery');
|
290 |
-
}
|
291 |
-
}
|
292 |
// Get PHP allow_url_fopen
|
293 |
if(ini_get('allow_url_fopen')) $allow_url_fopen = __('On', 'flash-album-gallery');
|
294 |
else $allow_url_fopen = __('Off', 'flash-album-gallery');
|
@@ -326,9 +317,6 @@ function get_serverinfo() {
|
|
326 |
<li><?php _e('MYSQL Version', 'flash-album-gallery'); ?> : <span><?php echo $sqlversion; ?></span></li>
|
327 |
<li><?php _e('SQL Mode', 'flash-album-gallery'); ?> : <span><?php echo $sql_mode; ?></span></li>
|
328 |
<li><?php _e('PHP Version', 'flash-album-gallery'); ?> : <span><?php echo PHP_VERSION; ?></span></li>
|
329 |
-
<?php if($safe_mode){ ?>
|
330 |
-
<li><?php _e('PHP Safe Mode', 'flash-album-gallery'); ?> : <span><?php echo $safe_mode; ?></span></li>
|
331 |
-
<?php } ?>
|
332 |
<li><?php _e('PHP Allow URL fopen', 'flash-album-gallery'); ?> : <span><?php echo $allow_url_fopen; ?></span></li>
|
333 |
<li><?php _e('PHP Memory Limit', 'flash-album-gallery'); ?> : <span><?php echo $memory_limit; ?></span></li>
|
334 |
<li><?php _e('PHP Max Upload Size', 'flash-album-gallery'); ?> : <span><?php echo $upload_max; ?></span></li>
|
@@ -349,7 +337,7 @@ function get_serverinfo() {
|
|
349 |
*/
|
350 |
class flag_SpaceManager {
|
351 |
|
352 |
-
function getQuota() {
|
353 |
if (function_exists('get_space_allowed'))
|
354 |
$quota = get_space_allowed();
|
355 |
else
|
@@ -414,7 +402,7 @@ class flag_SpaceManager {
|
|
414 |
echo $out;
|
415 |
}
|
416 |
|
417 |
-
function buildGraph($settings, $size, $quota, $percent) {
|
418 |
$color_bar = $settings['color_bar'];
|
419 |
$color_bg = $settings['color_bg'];
|
420 |
$color_text = $settings['color_text'];
|
280 |
$mysqlinfo = $wpdb->get_results("SHOW VARIABLES LIKE 'sql_mode'");
|
281 |
if (is_array($mysqlinfo)) $sql_mode = $mysqlinfo[0]->Value;
|
282 |
if (empty($sql_mode)) $sql_mode = __('Not set', 'flash-album-gallery');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
// Get PHP allow_url_fopen
|
284 |
if(ini_get('allow_url_fopen')) $allow_url_fopen = __('On', 'flash-album-gallery');
|
285 |
else $allow_url_fopen = __('Off', 'flash-album-gallery');
|
317 |
<li><?php _e('MYSQL Version', 'flash-album-gallery'); ?> : <span><?php echo $sqlversion; ?></span></li>
|
318 |
<li><?php _e('SQL Mode', 'flash-album-gallery'); ?> : <span><?php echo $sql_mode; ?></span></li>
|
319 |
<li><?php _e('PHP Version', 'flash-album-gallery'); ?> : <span><?php echo PHP_VERSION; ?></span></li>
|
|
|
|
|
|
|
320 |
<li><?php _e('PHP Allow URL fopen', 'flash-album-gallery'); ?> : <span><?php echo $allow_url_fopen; ?></span></li>
|
321 |
<li><?php _e('PHP Memory Limit', 'flash-album-gallery'); ?> : <span><?php echo $memory_limit; ?></span></li>
|
322 |
<li><?php _e('PHP Max Upload Size', 'flash-album-gallery'); ?> : <span><?php echo $upload_max; ?></span></li>
|
337 |
*/
|
338 |
class flag_SpaceManager {
|
339 |
|
340 |
+
static function getQuota() {
|
341 |
if (function_exists('get_space_allowed'))
|
342 |
$quota = get_space_allowed();
|
343 |
else
|
402 |
echo $out;
|
403 |
}
|
404 |
|
405 |
+
static function buildGraph($settings, $size, $quota, $percent) {
|
406 |
$color_bar = $settings['color_bar'];
|
407 |
$color_bg = $settings['color_bg'];
|
408 |
$color_text = $settings['color_text'];
|
admin/playlist.functions.php
CHANGED
@@ -62,7 +62,7 @@ function get_playlists($playlist_folder = ''){
|
|
62 |
|
63 |
$flag_playlists[ basename($playlist_file, ".xml") ] = $playlist_data;
|
64 |
}
|
65 |
-
uasort($flag_playlists,
|
66 |
|
67 |
return $flag_playlists;
|
68 |
}
|
62 |
|
63 |
$flag_playlists[ basename($playlist_file, ".xml") ] = $playlist_data;
|
64 |
}
|
65 |
+
uasort($flag_playlists, function($a, $b) { return strnatcasecmp( $a["title"], $b["title"] ); } );
|
66 |
|
67 |
return $flag_playlists;
|
68 |
}
|
admin/skin_install.php
CHANGED
@@ -45,9 +45,9 @@ function do_skin_install_local_package($package, $filename = '') {
|
|
45 |
'activate_skin' => '<a href="'.admin_url('admin.php?page=flag-skins&skin='.$skin_file).'" title="' . __('Activate this skin', 'flash-album-gallery') . '" target="_parent">' . __('Activate Skin', 'flash-album-gallery') . '</a>',
|
46 |
'skins_page' => '<a href="#'.$skin_file.'" title="' . __('Goto skin overview', 'flash-album-gallery') . '" target="_parent">' . __('Skin overview', 'flash-album-gallery') . '</a>'
|
47 |
), array(), $skin_file);
|
48 |
-
if ( ! empty($install_actions) ) {
|
49 |
//show_message('<strong>' . __('Actions:', 'flash-album-gallery') . '</strong> ' . implode(' | ', (array)$install_actions));
|
50 |
-
}
|
51 |
return $result;
|
52 |
}
|
53 |
}
|
45 |
'activate_skin' => '<a href="'.admin_url('admin.php?page=flag-skins&skin='.$skin_file).'" title="' . __('Activate this skin', 'flash-album-gallery') . '" target="_parent">' . __('Activate Skin', 'flash-album-gallery') . '</a>',
|
46 |
'skins_page' => '<a href="#'.$skin_file.'" title="' . __('Goto skin overview', 'flash-album-gallery') . '" target="_parent">' . __('Skin overview', 'flash-album-gallery') . '</a>'
|
47 |
), array(), $skin_file);
|
48 |
+
//if ( ! empty($install_actions) ) {
|
49 |
//show_message('<strong>' . __('Actions:', 'flash-album-gallery') . '</strong> ' . implode(' | ', (array)$install_actions));
|
50 |
+
//}
|
51 |
return $result;
|
52 |
}
|
53 |
}
|
admin/skin_options.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
3 |
require_once(dirname(dirname(__FILE__)) . '/flag-config.php');
|
4 |
require_once(dirname(dirname(__FILE__)) . '/lib/core.php');
|
5 |
require_once(dirname(__FILE__) . '/skin_functions.php');
|
1 |
<?php
|
2 |
+
|
3 |
+
define('WP_INSTALLING', true);
|
4 |
require_once(dirname(dirname(__FILE__)) . '/flag-config.php');
|
5 |
require_once(dirname(dirname(__FILE__)) . '/lib/core.php');
|
6 |
require_once(dirname(__FILE__) . '/skin_functions.php');
|
admin/upgrade.php
CHANGED
@@ -68,7 +68,7 @@ function flag_upgrade() {
|
|
68 |
if (version_compare($installed_ver, '5.0', '<')) {
|
69 |
$flag_options = get_option('flag_options');
|
70 |
$flag_options['license_name'] = '';
|
71 |
-
$flag_options['flashSkin'] = '
|
72 |
$flag_options['imgWidth'] = 2200;
|
73 |
$flag_options['imgHeight'] = 2200;
|
74 |
$flag_options['imgQuality'] = 87;
|
68 |
if (version_compare($installed_ver, '5.0', '<')) {
|
69 |
$flag_options = get_option('flag_options');
|
70 |
$flag_options['license_name'] = '';
|
71 |
+
$flag_options['flashSkin'] = 'amron';
|
72 |
$flag_options['imgWidth'] = 2200;
|
73 |
$flag_options['imgHeight'] = 2200;
|
74 |
$flag_options['imgQuality'] = 87;
|
admin/video.functions.php
CHANGED
@@ -62,7 +62,7 @@ function get_v_playlists($playlist_folder = ''){
|
|
62 |
|
63 |
$flag_playlists[ basename($playlist_file, ".xml") ] = $playlist_data;
|
64 |
}
|
65 |
-
uasort($flag_playlists,
|
66 |
|
67 |
return $flag_playlists;
|
68 |
}
|
62 |
|
63 |
$flag_playlists[ basename($playlist_file, ".xml") ] = $playlist_data;
|
64 |
}
|
65 |
+
uasort($flag_playlists, function($a, $b){ return strnatcasecmp( $a["title"], $b["title"] ); } );
|
66 |
|
67 |
return $flag_playlists;
|
68 |
}
|
assets/script.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
jQuery(function($){
|
|
|
|
|
2 |
|
3 |
function waitJQv(fvVar, fvW, fvH){
|
4 |
if(typeof(jQuery) === 'undefined'){
|
1 |
+
jQuery(function($){
|
2 |
+
$('div.flagallery noscript').remove();
|
3 |
+
});
|
4 |
|
5 |
function waitJQv(fvVar, fvW, fvH){
|
6 |
if(typeof(jQuery) === 'undefined'){
|
flag.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GRAND FlaGallery
|
4 |
Plugin URI: https://mypgc.co/
|
5 |
Description: The Grand Flagallery plugin - provides a comprehensive interface for managing photos and images through a set of admin pages, and it displays photos in a way that makes your web site look very professional.
|
6 |
-
Version: 5.
|
7 |
Author: Rattus
|
8 |
Author URI: https://codeasily.com/
|
9 |
Text Domain: flash-album-gallery
|
@@ -24,7 +24,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
|
|
24 |
if (!class_exists('flagLoad')) {
|
25 |
class flagLoad {
|
26 |
|
27 |
-
var $version = '5.
|
28 |
var $dbversion = '5.0';
|
29 |
var $minium_WP = '3.7';
|
30 |
var $minium_WPMU = '3.7';
|
@@ -69,6 +69,7 @@ class flagLoad {
|
|
69 |
//add_action( 'after_plugin_row', array(&$this, 'flag_check_message_version') );
|
70 |
|
71 |
add_action( 'init', array(&$this, 'flag_fullwindow_page_init') );
|
|
|
72 |
add_action( 'add_meta_boxes', array(&$this, 'flag_fullwindow_page_add_meta_box') );
|
73 |
add_action( 'save_post', array(&$this, 'flag_fullwindow_page_save_meta_box') );
|
74 |
add_action( 'template_redirect', array(&$this, 'flag_fullwindow_page_template_redirect') );
|
@@ -83,7 +84,19 @@ class flagLoad {
|
|
83 |
add_filter( 'mime_types', array(&$this, 'mime_types') );
|
84 |
}
|
85 |
|
86 |
-
function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
$output['JPG'] = 'image/JPG';
|
88 |
$output['JPEG'] = 'image/JPEG';
|
89 |
$output['PNG'] = 'image/PNG';
|
@@ -106,7 +119,7 @@ class flagLoad {
|
|
106 |
|
107 |
// Pass the init check or show a message
|
108 |
if (get_option( "flag_init_check" ) != false )
|
109 |
-
add_action( 'admin_notices',
|
110 |
|
111 |
} else {
|
112 |
|
@@ -119,7 +132,7 @@ class flagLoad {
|
|
119 |
add_action( 'flag_footer_scripts', array( &$this, 'load_scripts' ) );
|
120 |
|
121 |
// Add a version number to the header
|
122 |
-
add_action('wp_head',
|
123 |
|
124 |
}
|
125 |
}
|
@@ -140,7 +153,7 @@ class flagLoad {
|
|
140 |
include_once ( dirname (__FILE__) . '/admin/functions.php' );
|
141 |
include_once ( dirname (__FILE__) . '/admin/upgrade.php' );
|
142 |
flag_upgrade();
|
143 |
-
add_action( 'admin_notices',
|
144 |
}
|
145 |
}
|
146 |
|
@@ -156,7 +169,7 @@ class flagLoad {
|
|
156 |
$wp_ok = version_compare($wp_version, $this->minium_WP, '>=');
|
157 |
|
158 |
if ( ($wp_ok == FALSE) and (IS_WPMU == FALSE) ) {
|
159 |
-
add_action('admin_notices',
|
160 |
return false;
|
161 |
}
|
162 |
|
@@ -169,7 +182,7 @@ class flagLoad {
|
|
169 |
$memory_limit = (int) substr( ini_get('memory_limit'), 0, -1);
|
170 |
//This works only with enough memory, 8MB is silly, wordpress requires already 7.9999
|
171 |
if ( ($memory_limit != 0) && ($memory_limit < 12 ) ) {
|
172 |
-
add_action('admin_notices',
|
173 |
return false;
|
174 |
}
|
175 |
|
@@ -207,20 +220,7 @@ class flagLoad {
|
|
207 |
|
208 |
// get value for safe mode
|
209 |
if ( !defined('FLAG_SAFE_MODE') ) {
|
210 |
-
|
211 |
-
if((gettype(ini_get('safe_mode')) == 'string')){
|
212 |
-
// if sever did in in a other way
|
213 |
-
if(ini_get('safe_mode') == 'off'){
|
214 |
-
define('FLAG_SAFE_MODE', false);
|
215 |
-
} else{
|
216 |
-
define('FLAG_SAFE_MODE', ini_get('safe_mode'));
|
217 |
-
}
|
218 |
-
} else{
|
219 |
-
define('FLAG_SAFE_MODE', ini_get('safe_mode'));
|
220 |
-
}
|
221 |
-
} else{
|
222 |
-
define('FLAG_SAFE_MODE', false);
|
223 |
-
}
|
224 |
}
|
225 |
|
226 |
}
|
@@ -259,10 +259,52 @@ class flagLoad {
|
|
259 |
} else {
|
260 |
require_once (dirname (__FILE__) . '/lib/skinobject.php');
|
261 |
require_once (dirname (__FILE__) . '/lib/shortcodes.php');
|
|
|
|
|
|
|
|
|
|
|
262 |
}
|
263 |
}
|
264 |
}
|
265 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
function load_textdomain() {
|
267 |
|
268 |
load_plugin_textdomain('flash-album-gallery', false, dirname( plugin_basename(__FILE__) ) . '/lang');
|
@@ -311,12 +353,8 @@ class flagLoad {
|
|
311 |
wp_register_script('photoswipe', plugins_url('/flash-album-gallery/assets/photoswipe/photoswipe.jquery.min.js'), array('jquery'), '3.0.5', true);
|
312 |
}
|
313 |
|
314 |
-
|
315 |
-
|
316 |
-
wp_deregister_script('nivo-slider');
|
317 |
-
wp_register_style('nivo-slider', plugins_url('/flash-album-gallery/assets/nivoslider/nivo-slider.css'), array(), '3.2', 'screen');
|
318 |
-
wp_register_script('nivo-slider', plugins_url('/flash-album-gallery/assets/nivoslider/jquery.nivo.slider.pack.js'), array('jquery'), '3.2', true);
|
319 |
-
}
|
320 |
|
321 |
if( !wp_script_is('easing', 'registered') || ($wp_scripts->registered['easing']->ver !== false && version_compare($wp_scripts->registered['easing']->ver, '1.3.0', '<'))){
|
322 |
wp_deregister_script('easing');
|
@@ -384,7 +422,7 @@ class flagLoad {
|
|
384 |
|
385 |
//Add a notice message
|
386 |
if ($this->add_PHP5_notice == false){
|
387 |
-
add_action( "in_plugin_update_message-$this->plugin_name",
|
388 |
$this->add_PHP5_notice = true;
|
389 |
}
|
390 |
}
|
@@ -500,9 +538,20 @@ class flagLoad {
|
|
500 |
return;
|
501 |
}
|
502 |
// OK, we're authenticated: we need to save the data
|
503 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
update_post_meta($post_id, "mb_skinname", $_POST["mb_skinname"]);
|
505 |
update_post_meta($post_id, "mb_scode", $_POST["mb_scode"]);
|
|
|
506 |
update_post_meta($post_id, "mb_button", $_POST["mb_button"]);
|
507 |
update_post_meta($post_id, "mb_button_link", $_POST["mb_button_link"]);
|
508 |
update_post_meta($post_id, "mb_bg_link", $_POST["mb_bg_link"]);
|
3 |
Plugin Name: GRAND FlaGallery
|
4 |
Plugin URI: https://mypgc.co/
|
5 |
Description: The Grand Flagallery plugin - provides a comprehensive interface for managing photos and images through a set of admin pages, and it displays photos in a way that makes your web site look very professional.
|
6 |
+
Version: 5.4.0
|
7 |
Author: Rattus
|
8 |
Author URI: https://codeasily.com/
|
9 |
Text Domain: flash-album-gallery
|
24 |
if (!class_exists('flagLoad')) {
|
25 |
class flagLoad {
|
26 |
|
27 |
+
var $version = '5.4.0';
|
28 |
var $dbversion = '5.0';
|
29 |
var $minium_WP = '3.7';
|
30 |
var $minium_WPMU = '3.7';
|
69 |
//add_action( 'after_plugin_row', array(&$this, 'flag_check_message_version') );
|
70 |
|
71 |
add_action( 'init', array(&$this, 'flag_fullwindow_page_init') );
|
72 |
+
add_action( 'init', array(&$this, 'compatibility'), 11 );
|
73 |
add_action( 'add_meta_boxes', array(&$this, 'flag_fullwindow_page_add_meta_box') );
|
74 |
add_action( 'save_post', array(&$this, 'flag_fullwindow_page_save_meta_box') );
|
75 |
add_action( 'template_redirect', array(&$this, 'flag_fullwindow_page_template_redirect') );
|
84 |
add_filter( 'mime_types', array(&$this, 'mime_types') );
|
85 |
}
|
86 |
|
87 |
+
function compatibility() {
|
88 |
+
add_filter( 'jetpack_lazy_images_skip_image_with_attributes', array( &$this, 'no_lazy' ), 10, 2 );
|
89 |
+
}
|
90 |
+
|
91 |
+
function no_lazy( $skip, $attributes ) {
|
92 |
+
if ( isset( $attributes['src'] ) && strpos( 'flagallery', $attributes['src'] ) ) {
|
93 |
+
return true;
|
94 |
+
}
|
95 |
+
|
96 |
+
return $skip;
|
97 |
+
}
|
98 |
+
|
99 |
+
function mime_types( $output ) {
|
100 |
$output['JPG'] = 'image/JPG';
|
101 |
$output['JPEG'] = 'image/JPEG';
|
102 |
$output['PNG'] = 'image/PNG';
|
119 |
|
120 |
// Pass the init check or show a message
|
121 |
if (get_option( "flag_init_check" ) != false )
|
122 |
+
add_action( 'admin_notices', function(){ echo '<div id="message" class="error"><p><strong>' . get_option( "flag_init_check" ) . '</strong></p></div>'; } );
|
123 |
|
124 |
} else {
|
125 |
|
132 |
add_action( 'flag_footer_scripts', array( &$this, 'load_scripts' ) );
|
133 |
|
134 |
// Add a version number to the header
|
135 |
+
add_action('wp_head', function(){ global $flag; echo "\n<!-- <meta name='Grand Flagallery' content='{$flag->version}' /> -->\n"; } );
|
136 |
|
137 |
}
|
138 |
}
|
153 |
include_once ( dirname (__FILE__) . '/admin/functions.php' );
|
154 |
include_once ( dirname (__FILE__) . '/admin/upgrade.php' );
|
155 |
flag_upgrade();
|
156 |
+
add_action( 'admin_notices', function(){ echo '<div id="message" class="updated"><p>' . __('Grand Flagallery database upgraded', "flash-album-gallery" ) . '</p></div>'; } );
|
157 |
}
|
158 |
}
|
159 |
|
169 |
$wp_ok = version_compare($wp_version, $this->minium_WP, '>=');
|
170 |
|
171 |
if ( ($wp_ok == FALSE) and (IS_WPMU == FALSE) ) {
|
172 |
+
add_action('admin_notices', function(){ global $flag; printf ('<div id="message" class="error"><p><strong>' . __('Sorry,GRAND FlaGallery works only under WordPress %s or higher', "flash-album-gallery" ) . '</strong></p></div>', $flag->minium_WP ); } );
|
173 |
return false;
|
174 |
}
|
175 |
|
182 |
$memory_limit = (int) substr( ini_get('memory_limit'), 0, -1);
|
183 |
//This works only with enough memory, 8MB is silly, wordpress requires already 7.9999
|
184 |
if ( ($memory_limit != 0) && ($memory_limit < 12 ) ) {
|
185 |
+
add_action('admin_notices', function(){ echo '<div id="message" class="error"><p><strong>' . __('Sorry, GRAND FlaGallery works only with a Memory Limit of 16 MB higher', 'flash-album-gallery') . '</strong></p></div>'; } );
|
186 |
return false;
|
187 |
}
|
188 |
|
220 |
|
221 |
// get value for safe mode
|
222 |
if ( !defined('FLAG_SAFE_MODE') ) {
|
223 |
+
define('FLAG_SAFE_MODE', false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
}
|
225 |
|
226 |
}
|
259 |
} else {
|
260 |
require_once (dirname (__FILE__) . '/lib/skinobject.php');
|
261 |
require_once (dirname (__FILE__) . '/lib/shortcodes.php');
|
262 |
+
|
263 |
+
// Compatibilbity.
|
264 |
+
add_filter( 'jetpack_lazy_images_skip_image_with_attributes', array( $this, 'jetpack_no_lazy_src' ), 10, 2 );
|
265 |
+
add_filter( 'jetpack_lazy_images_blacklisted_classes', array( $this, 'jetpack_no_lazy_classes' ), 10 );
|
266 |
+
add_filter( 'a3_lazy_load_skip_images_classes', array( $this, 'a3_no_lazy' ), 10 );
|
267 |
}
|
268 |
}
|
269 |
}
|
270 |
|
271 |
+
/**
|
272 |
+
* Skip Gmedia images for Jetpack lazy load.
|
273 |
+
* @param bool $skip
|
274 |
+
* @param array $attributes
|
275 |
+
*
|
276 |
+
* @return bool
|
277 |
+
*/
|
278 |
+
function jetpack_no_lazy_src( $skip, $attributes ) {
|
279 |
+
if ( isset( $attributes['src'] ) && strpos( $attributes['src'], 'flagallery' ) ) {
|
280 |
+
return true;
|
281 |
+
}
|
282 |
+
|
283 |
+
return $skip;
|
284 |
+
}
|
285 |
+
|
286 |
+
/**
|
287 |
+
* Skip Gmedia images for Jetpack lazy load.
|
288 |
+
* @param array $classes
|
289 |
+
*
|
290 |
+
* @return array
|
291 |
+
*/
|
292 |
+
function jetpack_no_lazy_classes( $classes ) {
|
293 |
+
$classes[] = 'noLazy';
|
294 |
+
|
295 |
+
return $classes;
|
296 |
+
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* Skip Gmedia images for a3 Lazy Load.
|
300 |
+
* @param string $classes
|
301 |
+
*
|
302 |
+
* @return string
|
303 |
+
*/
|
304 |
+
function a3_no_lazy( $classes ) {
|
305 |
+
return 'noLazy,' . $classes;
|
306 |
+
}
|
307 |
+
|
308 |
function load_textdomain() {
|
309 |
|
310 |
load_plugin_textdomain('flash-album-gallery', false, dirname( plugin_basename(__FILE__) ) . '/lang');
|
353 |
wp_register_script('photoswipe', plugins_url('/flash-album-gallery/assets/photoswipe/photoswipe.jquery.min.js'), array('jquery'), '3.0.5', true);
|
354 |
}
|
355 |
|
356 |
+
wp_register_style('flag-nivo-slider', plugins_url('/flash-album-gallery/assets/nivoslider/nivo-slider.css'), array(), '3.2', 'screen');
|
357 |
+
wp_register_script('flag-nivo-slider', plugins_url('/flash-album-gallery/assets/nivoslider/jquery.nivo.slider.pack.js'), array('jquery'), '3.2', true);
|
|
|
|
|
|
|
|
|
358 |
|
359 |
if( !wp_script_is('easing', 'registered') || ($wp_scripts->registered['easing']->ver !== false && version_compare($wp_scripts->registered['easing']->ver, '1.3.0', '<'))){
|
360 |
wp_deregister_script('easing');
|
422 |
|
423 |
//Add a notice message
|
424 |
if ($this->add_PHP5_notice == false){
|
425 |
+
add_action( "in_plugin_update_message-$this->plugin_name", function(){ echo '<br /><span style="color:red">Please update to PHP5.3 or newer as soon as possible, the plugin is not tested under PHP5.2 anymore</span>'; } );
|
426 |
$this->add_PHP5_notice = true;
|
427 |
}
|
428 |
}
|
538 |
return;
|
539 |
}
|
540 |
// OK, we're authenticated: we need to save the data
|
541 |
+
if(!empty($_POST["mb_items_array"])) {
|
542 |
+
update_post_meta( $post_id, "mb_items_array", $_POST["mb_items_array"] );
|
543 |
+
update_post_meta( $post_id, "mb_galorderby", '' );
|
544 |
+
update_post_meta( $post_id, "mb_galorder", '' );
|
545 |
+
update_post_meta( $post_id, "mb_galexclude", '' );
|
546 |
+
} else {
|
547 |
+
update_post_meta( $post_id, "mb_items_array", '' );
|
548 |
+
update_post_meta( $post_id, "mb_galorderby", $_POST["mb_galorderby"] );
|
549 |
+
update_post_meta( $post_id, "mb_galorder", $_POST["mb_galorder"] );
|
550 |
+
update_post_meta( $post_id, "mb_galexclude", $_POST["mb_galexclude"] );
|
551 |
+
}
|
552 |
update_post_meta($post_id, "mb_skinname", $_POST["mb_skinname"]);
|
553 |
update_post_meta($post_id, "mb_scode", $_POST["mb_scode"]);
|
554 |
+
update_post_meta($post_id, "mb_button_home", $_POST["mb_button_home"]);
|
555 |
update_post_meta($post_id, "mb_button", $_POST["mb_button"]);
|
556 |
update_post_meta($post_id, "mb_button_link", $_POST["mb_button_link"]);
|
557 |
update_post_meta($post_id, "mb_bg_link", $_POST["mb_bg_link"]);
|
flagframe.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
} else if(file_exists(dirname(__FILE__) . '/wp-load.php')){
|
4 |
require_once( dirname(__FILE__) . '/wp-load.php');
|
5 |
}
|
6 |
-
?><!DOCTYPE html
|
7 |
-
<html
|
8 |
<head profile="https://gmpg.org/xfn/11">
|
9 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
|
10 |
<title><?php $title = wp_title('', false, 'left');
|
3 |
} else if(file_exists(dirname(__FILE__) . '/wp-load.php')){
|
4 |
require_once( dirname(__FILE__) . '/wp-load.php');
|
5 |
}
|
6 |
+
?><!DOCTYPE html>
|
7 |
+
<html <?php language_attributes(); ?>>
|
8 |
<head profile="https://gmpg.org/xfn/11">
|
9 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
|
10 |
<title><?php $title = wp_title('', false, 'left');
|
full_window_template.php
CHANGED
@@ -48,6 +48,7 @@ body > .flagallery-wrapper > div.flagallery { overflow: auto; overflow-x:hidden;
|
|
48 |
<?php if(!isset($_GET['iframe'])){
|
49 |
global $gmedia;
|
50 |
|
|
|
51 |
$backlink_text = isset($flag_custom["mb_button"][0]) && !empty($flag_custom["mb_button"][0])? $flag_custom["mb_button"][0] : __('Go Back', 'flash-album-gallery');
|
52 |
$backlink = isset($flag_custom["mb_button_link"][0]) && !empty($flag_custom["mb_button_link"][0])? $flag_custom['mb_button_link'][0] : '';
|
53 |
if(!$backlink || $backlink == 'http://'){
|
@@ -59,7 +60,7 @@ body > .flagallery-wrapper > div.flagallery { overflow: auto; overflow-x:hidden;
|
|
59 |
<div class="flagallery-menu">
|
60 |
<?php $home_url = home_url(); ?>
|
61 |
<div class="flagallery-menu-items">
|
62 |
-
<a href="<?php echo $home_url; ?>" class="btn btn-homepage" title="<?php esc_attr_e(get_bloginfo('name')); ?>"><i class="fa fa-home"><span><?php
|
63 |
<?php if ($backlink && ($home_url != $backlink)) {
|
64 |
echo "<a href='{$backlink}' class='btn btn-goback'><i class='fa fa-arrow-left'><span>" . $backlink_text . "</span></i></a>";
|
65 |
} ?>
|
48 |
<?php if(!isset($_GET['iframe'])){
|
49 |
global $gmedia;
|
50 |
|
51 |
+
$home_text = isset($flag_custom["mb_button_home"][0]) && !empty($flag_custom["mb_button_home"][0])? $flag_custom["mb_button_home"][0] : __('Home', 'flash-album-gallery');
|
52 |
$backlink_text = isset($flag_custom["mb_button"][0]) && !empty($flag_custom["mb_button"][0])? $flag_custom["mb_button"][0] : __('Go Back', 'flash-album-gallery');
|
53 |
$backlink = isset($flag_custom["mb_button_link"][0]) && !empty($flag_custom["mb_button_link"][0])? $flag_custom['mb_button_link'][0] : '';
|
54 |
if(!$backlink || $backlink == 'http://'){
|
60 |
<div class="flagallery-menu">
|
61 |
<?php $home_url = home_url(); ?>
|
62 |
<div class="flagallery-menu-items">
|
63 |
+
<a href="<?php echo $home_url; ?>" class="btn btn-homepage" title="<?php esc_attr_e(get_bloginfo('name')); ?>"><i class="fa fa-home"><span><?php echo esc_html( $home_text ); ?></span></i></a>
|
64 |
<?php if ($backlink && ($home_url != $backlink)) {
|
65 |
echo "<a href='{$backlink}' class='btn btn-goback'><i class='fa fa-arrow-left'><span>" . $backlink_text . "</span></i></a>";
|
66 |
} ?>
|
lib/core.php
CHANGED
@@ -40,7 +40,7 @@ class flagGallery {
|
|
40 |
}
|
41 |
|
42 |
// set gallery url
|
43 |
-
$folder_url = get_option ('siteurl') . '/' . $picturepath.flagGallery::
|
44 |
$thumbnailURL = $folder_url . 'thumbs_' . $fileName;
|
45 |
|
46 |
return $thumbnailURL;
|
40 |
}
|
41 |
|
42 |
// set gallery url
|
43 |
+
$folder_url = get_option ('siteurl') . '/' . $picturepath.flagGallery::create_thumbnail_folder($picturepath, FALSE);
|
44 |
$thumbnailURL = $folder_url . 'thumbs_' . $fileName;
|
45 |
|
46 |
return $thumbnailURL;
|
lib/flag-db.php
CHANGED
@@ -493,7 +493,7 @@ class flagdb {
|
|
493 |
* @param string $orderby is one of "id" (default, order by pid), "date" (order by exif date), sort (order by user sort order)
|
494 |
* @return array
|
495 |
*/
|
496 |
-
function find_last_images($page = 0, $limit = 30, $exclude = 0, $galleryId = 0, $orderby = "id") {
|
497 |
/** @var $wpdb wpdb */
|
498 |
global $wpdb;
|
499 |
|
@@ -597,7 +597,7 @@ class flagdb {
|
|
597 |
|
598 |
// split the words it a array if seperated by a space or comma
|
599 |
preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $request, $matches);
|
600 |
-
$search_terms = array_map(
|
601 |
|
602 |
$n = '%';
|
603 |
$search = '';
|
493 |
* @param string $orderby is one of "id" (default, order by pid), "date" (order by exif date), sort (order by user sort order)
|
494 |
* @return array
|
495 |
*/
|
496 |
+
static function find_last_images($page = 0, $limit = 30, $exclude = 0, $galleryId = 0, $orderby = "id") {
|
497 |
/** @var $wpdb wpdb */
|
498 |
global $wpdb;
|
499 |
|
597 |
|
598 |
// split the words it a array if seperated by a space or comma
|
599 |
preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $request, $matches);
|
600 |
+
$search_terms = array_map(function($a){ return trim($a, "\"'\n\r ");}, $matches[0]);
|
601 |
|
602 |
$n = '%';
|
603 |
$search = '';
|
lib/media-rss.php
CHANGED
@@ -13,28 +13,28 @@ class flagMediaRss {
|
|
13 |
/**
|
14 |
* Function called by the wp_head action to output the RSS link for medias
|
15 |
*/
|
16 |
-
function add_mrss_alternate_link() {
|
17 |
echo "<link id='MediaRSS' rel='alternate' type='application/rss+xml' title='Grand Flagallery RSS Feed' href='" . flagMediaRss::get_mrss_url() . "' />\n";
|
18 |
}
|
19 |
|
20 |
/**
|
21 |
* Get the URL of the general media RSS
|
22 |
*/
|
23 |
-
function get_mrss_url() {
|
24 |
return plugins_url('/xml/media-rss.php', dirname(__FILE__));
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
* Get the URL of a gallery media RSS
|
29 |
*/
|
30 |
-
function get_gallery_mrss_url($gid, $prev_next = false) {
|
31 |
return flagMediaRss::get_mrss_url() . '?' . ('gid=' . $gid . ($prev_next ? '&prev_next=true' : '') . '&mode=gallery');
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
* Get the URL of the media RSS for last pictures
|
36 |
*/
|
37 |
-
function get_last_pictures_mrss_url($page = 0, $show = 30) {
|
38 |
return flagMediaRss::get_mrss_url() . '?' . ('show=' . $show . '&page=' . $page . '&mode=last_pictures');
|
39 |
}
|
40 |
|
@@ -45,7 +45,7 @@ class flagMediaRss {
|
|
45 |
* @param int $show The number of pictures to include in one field (default 30)
|
46 |
* @return string
|
47 |
*/
|
48 |
-
function get_last_pictures_mrss($page = 0, $show = 30) {
|
49 |
$images = flagdb::find_last_images($page, $show);
|
50 |
|
51 |
$title = stripslashes(get_option('blogname'));
|
@@ -65,8 +65,8 @@ class flagMediaRss {
|
|
65 |
* @param $next_gallery object The next gallery to link in RSS (null if none)
|
66 |
* @return string
|
67 |
*/
|
68 |
-
function get_gallery_mrss($gallery, $prev_gallery = null, $next_gallery = null) {
|
69 |
-
global $
|
70 |
|
71 |
$flag_options = get_option('flag_options');
|
72 |
//Set sort order value, if not used (upgrade issue)
|
@@ -78,7 +78,7 @@ class flagMediaRss {
|
|
78 |
$link = get_option('siteurl');
|
79 |
$prev_link = ( $prev_gallery != null) ? flagMediaRss::get_gallery_mrss_url($prev_gallery->gid, true) : '';
|
80 |
$next_link = ( $next_gallery != null) ? flagMediaRss::get_gallery_mrss_url($next_gallery->gid, true) : '';
|
81 |
-
$images = flagdb
|
82 |
|
83 |
return flagMediaRss::get_mrss_root_node($title, $description, $link, $prev_link, $next_link, $images);
|
84 |
}
|
@@ -86,7 +86,7 @@ class flagMediaRss {
|
|
86 |
/**
|
87 |
* Get the XML <rss> node
|
88 |
*/
|
89 |
-
function get_mrss_root_node($title, $description, $link, $prev_link, $next_link, $images) {
|
90 |
|
91 |
if ($prev_link != '' || $next_link != '')
|
92 |
$out = "<rss version='2.0' xmlns:media='http://search.yahoo.com/mrss' xmlns:atom='http://www.w3.org/2005/Atom'>\n" ;
|
@@ -120,42 +120,42 @@ class flagMediaRss {
|
|
120 |
/**
|
121 |
* Get the XML <generator> node
|
122 |
*/
|
123 |
-
function get_generator_mrss_node($indent = "\t\t") {
|
124 |
return $indent . "<generator><![CDATA[GRAND FlaGallery [http://mypgc.co]]]></generator>\n";
|
125 |
}
|
126 |
|
127 |
/**
|
128 |
* Get the XML <title> node
|
129 |
*/
|
130 |
-
function get_title_mrss_node($title, $indent = "\t\t") {
|
131 |
return $indent . "<title>" . $title . "</title>\n";
|
132 |
}
|
133 |
|
134 |
/**
|
135 |
* Get the XML <description> node
|
136 |
*/
|
137 |
-
function get_description_mrss_node($description, $indent = "\t\t") {
|
138 |
return $indent . "<description>" . $description . "</description>\n";
|
139 |
}
|
140 |
|
141 |
/**
|
142 |
* Get the XML <link> node
|
143 |
*/
|
144 |
-
function get_link_mrss_node($link, $indent = "\t\t") {
|
145 |
return $indent . "<link><![CDATA[" . htmlspecialchars($link) . "]]></link>\n";
|
146 |
}
|
147 |
|
148 |
/**
|
149 |
* Get the XML <atom:link previous> node
|
150 |
*/
|
151 |
-
function get_previous_link_mrss_node($link, $indent = "\t\t") {
|
152 |
return $indent . "<atom:link rel='previous' href='" . htmlspecialchars($link) . "' />\n";
|
153 |
}
|
154 |
|
155 |
/**
|
156 |
* Get the XML <atom:link next> node
|
157 |
*/
|
158 |
-
function get_next_link_mrss_node($link, $indent = "\t\t") {
|
159 |
return $indent . "<atom:link rel='next' href='" . htmlspecialchars($link) . "' />\n";
|
160 |
}
|
161 |
|
@@ -166,7 +166,7 @@ class flagMediaRss {
|
|
166 |
* @param string $indent
|
167 |
* @return string
|
168 |
*/
|
169 |
-
function get_image_mrss_node($image, $indent = "\t\t" ) {
|
170 |
|
171 |
$flag_options = get_option('flag_options');
|
172 |
|
13 |
/**
|
14 |
* Function called by the wp_head action to output the RSS link for medias
|
15 |
*/
|
16 |
+
static function add_mrss_alternate_link() {
|
17 |
echo "<link id='MediaRSS' rel='alternate' type='application/rss+xml' title='Grand Flagallery RSS Feed' href='" . flagMediaRss::get_mrss_url() . "' />\n";
|
18 |
}
|
19 |
|
20 |
/**
|
21 |
* Get the URL of the general media RSS
|
22 |
*/
|
23 |
+
static function get_mrss_url() {
|
24 |
return plugins_url('/xml/media-rss.php', dirname(__FILE__));
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
* Get the URL of a gallery media RSS
|
29 |
*/
|
30 |
+
static function get_gallery_mrss_url($gid, $prev_next = false) {
|
31 |
return flagMediaRss::get_mrss_url() . '?' . ('gid=' . $gid . ($prev_next ? '&prev_next=true' : '') . '&mode=gallery');
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
* Get the URL of the media RSS for last pictures
|
36 |
*/
|
37 |
+
static function get_last_pictures_mrss_url($page = 0, $show = 30) {
|
38 |
return flagMediaRss::get_mrss_url() . '?' . ('show=' . $show . '&page=' . $page . '&mode=last_pictures');
|
39 |
}
|
40 |
|
45 |
* @param int $show The number of pictures to include in one field (default 30)
|
46 |
* @return string
|
47 |
*/
|
48 |
+
static function get_last_pictures_mrss($page = 0, $show = 30) {
|
49 |
$images = flagdb::find_last_images($page, $show);
|
50 |
|
51 |
$title = stripslashes(get_option('blogname'));
|
65 |
* @param $next_gallery object The next gallery to link in RSS (null if none)
|
66 |
* @return string
|
67 |
*/
|
68 |
+
static function get_gallery_mrss($gallery, $prev_gallery = null, $next_gallery = null) {
|
69 |
+
global $flagdb;
|
70 |
|
71 |
$flag_options = get_option('flag_options');
|
72 |
//Set sort order value, if not used (upgrade issue)
|
78 |
$link = get_option('siteurl');
|
79 |
$prev_link = ( $prev_gallery != null) ? flagMediaRss::get_gallery_mrss_url($prev_gallery->gid, true) : '';
|
80 |
$next_link = ( $next_gallery != null) ? flagMediaRss::get_gallery_mrss_url($next_gallery->gid, true) : '';
|
81 |
+
$images = $flagdb->get_gallery($gallery->gid, $flag_options['galSort'], $flag_options['galSortDir']);
|
82 |
|
83 |
return flagMediaRss::get_mrss_root_node($title, $description, $link, $prev_link, $next_link, $images);
|
84 |
}
|
86 |
/**
|
87 |
* Get the XML <rss> node
|
88 |
*/
|
89 |
+
static function get_mrss_root_node($title, $description, $link, $prev_link, $next_link, $images) {
|
90 |
|
91 |
if ($prev_link != '' || $next_link != '')
|
92 |
$out = "<rss version='2.0' xmlns:media='http://search.yahoo.com/mrss' xmlns:atom='http://www.w3.org/2005/Atom'>\n" ;
|
120 |
/**
|
121 |
* Get the XML <generator> node
|
122 |
*/
|
123 |
+
static function get_generator_mrss_node($indent = "\t\t") {
|
124 |
return $indent . "<generator><![CDATA[GRAND FlaGallery [http://mypgc.co]]]></generator>\n";
|
125 |
}
|
126 |
|
127 |
/**
|
128 |
* Get the XML <title> node
|
129 |
*/
|
130 |
+
static function get_title_mrss_node($title, $indent = "\t\t") {
|
131 |
return $indent . "<title>" . $title . "</title>\n";
|
132 |
}
|
133 |
|
134 |
/**
|
135 |
* Get the XML <description> node
|
136 |
*/
|
137 |
+
static function get_description_mrss_node($description, $indent = "\t\t") {
|
138 |
return $indent . "<description>" . $description . "</description>\n";
|
139 |
}
|
140 |
|
141 |
/**
|
142 |
* Get the XML <link> node
|
143 |
*/
|
144 |
+
static function get_link_mrss_node($link, $indent = "\t\t") {
|
145 |
return $indent . "<link><![CDATA[" . htmlspecialchars($link) . "]]></link>\n";
|
146 |
}
|
147 |
|
148 |
/**
|
149 |
* Get the XML <atom:link previous> node
|
150 |
*/
|
151 |
+
static function get_previous_link_mrss_node($link, $indent = "\t\t") {
|
152 |
return $indent . "<atom:link rel='previous' href='" . htmlspecialchars($link) . "' />\n";
|
153 |
}
|
154 |
|
155 |
/**
|
156 |
* Get the XML <atom:link next> node
|
157 |
*/
|
158 |
+
static function get_next_link_mrss_node($link, $indent = "\t\t") {
|
159 |
return $indent . "<atom:link rel='next' href='" . htmlspecialchars($link) . "' />\n";
|
160 |
}
|
161 |
|
166 |
* @param string $indent
|
167 |
* @return string
|
168 |
*/
|
169 |
+
static function get_image_mrss_node($image, $indent = "\t\t" ) {
|
170 |
|
171 |
$flag_options = get_option('flag_options');
|
172 |
|
lib/skinobject.php
CHANGED
@@ -117,6 +117,8 @@ function flagShowFlashAlbum($galleryID, $name='', $width='', $skin='', $linkto='
|
|
117 |
$out = ob_get_contents();
|
118 |
ob_end_clean();
|
119 |
|
|
|
|
|
120 |
if(!empty($customCSS)){
|
121 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
122 |
}
|
@@ -217,7 +219,9 @@ function flagShowMPlayer($playlist, $width, $align = '') {
|
|
217 |
$out = ob_get_contents();
|
218 |
ob_end_clean();
|
219 |
|
220 |
-
|
|
|
|
|
221 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
222 |
}
|
223 |
if(!empty($out)){
|
@@ -317,7 +321,9 @@ function flagShowVPlayer($playlist, $width, $align = '') {
|
|
317 |
$out = ob_get_contents();
|
318 |
ob_end_clean();
|
319 |
|
320 |
-
|
|
|
|
|
321 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
322 |
}
|
323 |
if(!empty($out)){
|
@@ -465,6 +471,8 @@ function flagShowBanner($xml, $width, $align = '') {
|
|
465 |
$out = ob_get_contents();
|
466 |
ob_end_clean();
|
467 |
|
|
|
|
|
468 |
if(!empty($customCSS)){
|
469 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
470 |
}
|
@@ -511,3 +519,24 @@ function flagGetUserNow($userAgent) {
|
|
511 |
$isCrawler = (preg_match("/$crawlers/i", $userAgent) > 0);
|
512 |
return $isCrawler;
|
513 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
$out = ob_get_contents();
|
118 |
ob_end_clean();
|
119 |
|
120 |
+
$out = flagallery_img_nolazy( $out );
|
121 |
+
|
122 |
if(!empty($customCSS)){
|
123 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
124 |
}
|
219 |
$out = ob_get_contents();
|
220 |
ob_end_clean();
|
221 |
|
222 |
+
$out = flagallery_img_nolazy( $out );
|
223 |
+
|
224 |
+
if(!empty($customCSS)){
|
225 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
226 |
}
|
227 |
if(!empty($out)){
|
321 |
$out = ob_get_contents();
|
322 |
ob_end_clean();
|
323 |
|
324 |
+
$out = flagallery_img_nolazy( $out );
|
325 |
+
|
326 |
+
if(!empty($customCSS)){
|
327 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
328 |
}
|
329 |
if(!empty($out)){
|
471 |
$out = ob_get_contents();
|
472 |
ob_end_clean();
|
473 |
|
474 |
+
$out = flagallery_img_nolazy( $out );
|
475 |
+
|
476 |
if(!empty($customCSS)){
|
477 |
$customCSS = '<style type="text/css" class="flagallery_skin_style_import">' . $customCSS . '</style>';
|
478 |
}
|
519 |
$isCrawler = (preg_match("/$crawlers/i", $userAgent) > 0);
|
520 |
return $isCrawler;
|
521 |
}
|
522 |
+
|
523 |
+
function flagallery_img_nolazy( $content ) {
|
524 |
+
$matches = array();
|
525 |
+
preg_match_all( '/<img[\s\r\n]+.*?>/is', $content, $matches );
|
526 |
+
$search = array();
|
527 |
+
$replace = array();
|
528 |
+
foreach ( $matches[0] as $img_html ) {
|
529 |
+
// add the noLazy class to the img element.
|
530 |
+
if ( preg_match( '/class=["\']/i', $img_html ) ) {
|
531 |
+
$replace_html = preg_replace( '/class=(["\'])(.*?)["\']/is', 'class=$1noLazy $2$1', $img_html );
|
532 |
+
} else {
|
533 |
+
$replace_html = preg_replace( '/<img/is', '<img class="noLazy"', $img_html );
|
534 |
+
}
|
535 |
+
array_push( $search, $img_html );
|
536 |
+
array_push( $replace, $replace_html );
|
537 |
+
}
|
538 |
+
$search = array_unique( $search );
|
539 |
+
$replace = array_unique( $replace );
|
540 |
+
|
541 |
+
return str_replace( $search, $replace, $content );
|
542 |
+
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: pasyuk
|
|
3 |
Donate link: https://codeasily.com/donate/
|
4 |
Tags: album, gallery, image gallery, photo gallery, slider
|
5 |
Requires at least: 3.7
|
6 |
-
Tested up to:
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Gallery Portfolio, Photo Gallery, Photo Albums with Multi Galleries, Video Gallery, Music Album & Banner Rotator plugin with powerfull admin panel.
|
@@ -12,8 +12,16 @@ Gallery Portfolio, Photo Gallery, Photo Albums with Multi Galleries, Video Galle
|
|
12 |
|
13 |
Gallery Grand Flagallery - powerfull media and image gallery plugin. Easy interface for handling photos, image galleries, audio and video galleries.
|
14 |
|
15 |
-
**Demo:**
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
* [Grid](https://mypgc.co/portfolio-item/cicerone/)
|
18 |
* [Masonry Grid](https://mypgc.co/portfolio/cicerone-masonry/)
|
19 |
* [Justified Grid](https://mypgc.co/portfolio/cicerone-justified/)
|
@@ -26,8 +34,6 @@ Gallery Grand Flagallery - powerfull media and image gallery plugin. Easy interf
|
|
26 |
* [PhotoCluster](https://mypgc.co/portfolio-item/photocluster/)
|
27 |
* [AlbumsGrid](https://mypgc.co/portfolio-item/albumsgrid/)
|
28 |
* [FlipGrid](https://mypgc.co/portfolio-item/flipgrid/)
|
29 |
-
* [Phantom](https://mypgc.co/portfolio-item/phantom/)
|
30 |
-
* [PhotoMania](https://mypgc.co/portfolio-item/photomania/)
|
31 |
* [Mosaic](https://mypgc.co/portfolio-item/mosaic/)
|
32 |
* [PhotoBox](https://mypgc.co/portfolio-item/photobox/)
|
33 |
|
@@ -62,6 +68,36 @@ Designed to work for WordPress 5 (Gutenberg Block) and also the standard Gallery
|
|
62 |
|
63 |
== Changelog ==
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
= v5.3.0 - 20.11.2018 =
|
66 |
* Added Flagallery Gutenberg block (Gutenberg ready)
|
67 |
|
3 |
Donate link: https://codeasily.com/donate/
|
4 |
Tags: album, gallery, image gallery, photo gallery, slider
|
5 |
Requires at least: 3.7
|
6 |
+
Tested up to: 5.2
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Gallery Portfolio, Photo Gallery, Photo Albums with Multi Galleries, Video Gallery, Music Album & Banner Rotator plugin with powerfull admin panel.
|
12 |
|
13 |
Gallery Grand Flagallery - powerfull media and image gallery plugin. Easy interface for handling photos, image galleries, audio and video galleries.
|
14 |
|
15 |
+
**Demo FREE:**
|
16 |
|
17 |
+
* [Amron](https://mypgc.co/portfolio-item/amron/)
|
18 |
+
* [Phantom](https://mypgc.co/portfolio-item/phantom/)
|
19 |
+
* [PhotoMania](https://mypgc.co/portfolio-item/photomania/)
|
20 |
+
* NivoSlider
|
21 |
+
|
22 |
+
**Demo PREMIUM:**
|
23 |
+
|
24 |
+
* [FlaSlider](https://mypgc.co/portfolio-item/flaslider/)
|
25 |
* [Grid](https://mypgc.co/portfolio-item/cicerone/)
|
26 |
* [Masonry Grid](https://mypgc.co/portfolio/cicerone-masonry/)
|
27 |
* [Justified Grid](https://mypgc.co/portfolio/cicerone-justified/)
|
34 |
* [PhotoCluster](https://mypgc.co/portfolio-item/photocluster/)
|
35 |
* [AlbumsGrid](https://mypgc.co/portfolio-item/albumsgrid/)
|
36 |
* [FlipGrid](https://mypgc.co/portfolio-item/flipgrid/)
|
|
|
|
|
37 |
* [Mosaic](https://mypgc.co/portfolio-item/mosaic/)
|
38 |
* [PhotoBox](https://mypgc.co/portfolio-item/photobox/)
|
39 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= v5.4.0 - 10.04.2019 =
|
72 |
+
* Added new free module Amron
|
73 |
+
|
74 |
+
= v5.3.8 - 22.03.2019 =
|
75 |
+
* Added option to change home button text on GRANDPage
|
76 |
+
* Removed G+ share from skins
|
77 |
+
|
78 |
+
= v5.3.7 - 20.03.2019 =
|
79 |
+
* Fixed compatibility with some themes
|
80 |
+
|
81 |
+
= v5.3.6 - 07.02.2019 =
|
82 |
+
* Fixed Gutenberg selectbox shows gallery slug instead of titles
|
83 |
+
|
84 |
+
= v5.3.5 - 04.02.2019 =
|
85 |
+
* Fixed Phantom compatibility with some themes
|
86 |
+
|
87 |
+
= v5.3.4 - 29.01.2019 =
|
88 |
+
* Fixed Gutenberg blocks issue
|
89 |
+
* Fixed compatibility with Jetpack Lazy Load
|
90 |
+
|
91 |
+
= v5.3.3 - 05.12.2018 =
|
92 |
+
* Added more options to GrandPage: ability to sort galleries with drag and drop, exclude galleries
|
93 |
+
|
94 |
+
= v5.3.2 - 03.12.2018 =
|
95 |
+
* Fixed compatibility with PHP 5.3
|
96 |
+
|
97 |
+
= v5.3.1 - 30.11.2018 =
|
98 |
+
* Fixed compatibility with PHP 7.2
|
99 |
+
* Fixed Sort galleries in Album
|
100 |
+
|
101 |
= v5.3.0 - 20.11.2018 =
|
102 |
* Added Flagallery Gutenberg block (Gutenberg ready)
|
103 |
|
skins/amron/amron.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Skin Name: Amron
|
4 |
+
Version: 1.0
|
5 |
+
uid: amron
|
6 |
+
status: free
|
7 |
+
Skin URI: https://mypgc.co/portfolio-item/amron/
|
8 |
+
Description: Show your galleries as Masonry Grid. <ul><li>• Progressive Lightbox.</li><li>• Share Buttons.</li><li>• Download Button.</li><li>• Zoom.</li><li>• Lightweight and Fast.</li><li style=" color: green; font-weight: 600;">• Compatibility - Grand Flagallery v5.2.2 +</li></ul>
|
9 |
+
Author: PGC
|
10 |
+
Author URI: https://mypgc.co
|
11 |
+
*/
|
skins/amron/css/amron.css
ADDED
@@ -0,0 +1,464 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/********* GM Preloader *************/
|
2 |
+
.fla_v2_Preloader {
|
3 |
+
min-height: inherit;
|
4 |
+
position: absolute;
|
5 |
+
top: 0;
|
6 |
+
left: 0;
|
7 |
+
bottom: 0;
|
8 |
+
right: 0;
|
9 |
+
overflow: hidden;
|
10 |
+
z-index: 100;
|
11 |
+
}
|
12 |
+
@keyframes spinner {
|
13 |
+
0% { transform: rotate(-360deg); }
|
14 |
+
100% { transform: rotate(0deg); }
|
15 |
+
}
|
16 |
+
@keyframes _spinner {
|
17 |
+
to {
|
18 |
+
transform: rotate(-1440deg);
|
19 |
+
}
|
20 |
+
}
|
21 |
+
.fla_v2_Preloader .c-spinner {
|
22 |
+
/*animation: 2s _spinner ease-in-out infinite alternate;*/
|
23 |
+
animation: 1s spinner linear infinite;
|
24 |
+
}
|
25 |
+
@keyframes gmFadeIn {
|
26 |
+
from {
|
27 |
+
opacity: 0;
|
28 |
+
}
|
29 |
+
to {
|
30 |
+
opacity: 1;
|
31 |
+
}
|
32 |
+
}
|
33 |
+
.amron_skin *{
|
34 |
+
box-sizing: border-box;
|
35 |
+
line-height: 1.4;
|
36 |
+
}
|
37 |
+
/***************** Tags Cloud *********************/
|
38 |
+
.fla_amron_CollectionTagsCloud{
|
39 |
+
position: relative;
|
40 |
+
display: block;
|
41 |
+
margin-top: 10px;
|
42 |
+
margin-bottom: 2px;
|
43 |
+
text-align: center;
|
44 |
+
/*background-color: #eeeeee;*/
|
45 |
+
}
|
46 |
+
.fla_amron_CollectionTagsCloud ul {
|
47 |
+
margin: 0 !important;
|
48 |
+
padding: 0 !important;
|
49 |
+
list-style: none;
|
50 |
+
}
|
51 |
+
.fla_amron_CollectionTagsCloud ul li::before
|
52 |
+
{
|
53 |
+
display: none;
|
54 |
+
}
|
55 |
+
.fla_amron_CollectionTagsCloud ul li {
|
56 |
+
display: inline-block;
|
57 |
+
max-width: 200px;
|
58 |
+
padding: 5px 8px !important;
|
59 |
+
margin: 3px !important;
|
60 |
+
white-space: nowrap;
|
61 |
+
text-overflow: ellipsis;
|
62 |
+
overflow: hidden;
|
63 |
+
font-size: 15px !important;
|
64 |
+
border-radius: 2px;
|
65 |
+
text-decoration: none;
|
66 |
+
-webkit-touch-callout: none; /* iOS Safari */
|
67 |
+
-webkit-user-select: none; /* Safari */
|
68 |
+
-moz-user-select: none; /* Firefox */
|
69 |
+
-ms-user-select: none; /* Internet Explorer/Edge */
|
70 |
+
user-select: none;
|
71 |
+
cursor: pointer;
|
72 |
+
transition: 0.3s;
|
73 |
+
}
|
74 |
+
/******************************** Saved Button ****************************/
|
75 |
+
.fla_amron_BookmarkBox{
|
76 |
+
position: relative;
|
77 |
+
z-index: 1;
|
78 |
+
}
|
79 |
+
.fla_amron_BookmarkBox .fla_buttonHolder{
|
80 |
+
position: relative;
|
81 |
+
display: flex;
|
82 |
+
overflow: hidden;
|
83 |
+
height: 40px;
|
84 |
+
}
|
85 |
+
.fla_amron_BookmarkBox .fla_buttonHolder .fla_lineStyle
|
86 |
+
{
|
87 |
+
flex: auto;
|
88 |
+
height: 1px;
|
89 |
+
margin: auto 15px;
|
90 |
+
background-color: rgba(0, 0, 0, 0.11);
|
91 |
+
}
|
92 |
+
.fla_amron_BookmarkBox .fla_buttonHolder .fla_savedButton
|
93 |
+
{
|
94 |
+
flex: initial;
|
95 |
+
width: 40px;
|
96 |
+
height: 40px;
|
97 |
+
border-radius: 50%;
|
98 |
+
padding: 10px;
|
99 |
+
border: solid 1px rgba(0, 0, 0, 0.11);
|
100 |
+
cursor: pointer;
|
101 |
+
}
|
102 |
+
.fla_amron_BookmarkBox .fla_buttonHolder .fla_savedButton svg
|
103 |
+
{
|
104 |
+
width: 100%;
|
105 |
+
height: 100%;
|
106 |
+
vertical-align: baseline !important;
|
107 |
+
}
|
108 |
+
.fla_amron_BookmarkBox .fla_infoBox
|
109 |
+
{
|
110 |
+
position: relative;
|
111 |
+
text-align: center;
|
112 |
+
overflow: hidden;
|
113 |
+
transition: opacity 0.8s;
|
114 |
+
padding: 5px 15px 25px;
|
115 |
+
opacity: 0;
|
116 |
+
}
|
117 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_titleWrap
|
118 |
+
{
|
119 |
+
font-size: 20px;
|
120 |
+
height: 28px;
|
121 |
+
line-height: 28px;
|
122 |
+
display: inline-block;
|
123 |
+
text-align: center;
|
124 |
+
}
|
125 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_titleWrap .fla_title
|
126 |
+
{
|
127 |
+
display: inline-block;
|
128 |
+
float: left;
|
129 |
+
}
|
130 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_titleWrap .fla_title a
|
131 |
+
{
|
132 |
+
cursor: pointer;
|
133 |
+
}
|
134 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_description
|
135 |
+
{
|
136 |
+
font-size: 14px;
|
137 |
+
line-height: 1.5;
|
138 |
+
}
|
139 |
+
.fla_amron_SavedButton{
|
140 |
+
margin: 0 0 0 10px;
|
141 |
+
padding: 0 10px 0 0;
|
142 |
+
overflow: hidden;
|
143 |
+
height: 40px;
|
144 |
+
background-color: aliceblue;
|
145 |
+
}
|
146 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_titleWrap .fla_IconButton
|
147 |
+
{
|
148 |
+
height: 28px;
|
149 |
+
width: 28px;
|
150 |
+
padding: 3px;
|
151 |
+
display: inline-block;
|
152 |
+
margin: 0 5px;
|
153 |
+
cursor: pointer;
|
154 |
+
overflow: hidden;
|
155 |
+
transition: transform 0.3s;
|
156 |
+
}
|
157 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_titleWrap .fla_IconButton:hover{
|
158 |
+
transform: scale(1.1);
|
159 |
+
}
|
160 |
+
.fla_amron_BookmarkBox .fla_infoBox .fla_titleWrap .fla_IconButton svg
|
161 |
+
{
|
162 |
+
width: 100%;
|
163 |
+
height: 100%;
|
164 |
+
vertical-align: baseline !important;
|
165 |
+
}
|
166 |
+
/******************************** Search Form *****************************/
|
167 |
+
.fla_amron_Grid_SearchForm
|
168 |
+
{
|
169 |
+
position: relative;
|
170 |
+
display: flex;
|
171 |
+
flex-direction: row;
|
172 |
+
height: 40px;
|
173 |
+
margin-bottom: 10px;
|
174 |
+
}
|
175 |
+
.fla_amron_Grid_SearchForm .inputSearch
|
176 |
+
{
|
177 |
+
flex: 1 auto;
|
178 |
+
box-sizing: border-box;
|
179 |
+
height: 40px !important;
|
180 |
+
border-radius: 2px;
|
181 |
+
border: none !important;
|
182 |
+
font-size: 18px !important;
|
183 |
+
line-height: normal !important;
|
184 |
+
padding: 0 10px !important;
|
185 |
+
transition: background-color 0.3s;
|
186 |
+
}
|
187 |
+
.fla_amron_Grid_SearchForm .inputSearch:focus
|
188 |
+
{
|
189 |
+
outline: none !important;
|
190 |
+
}
|
191 |
+
.fla_amron_Grid_SearchForm .buttonSearch
|
192 |
+
{
|
193 |
+
display: flex;
|
194 |
+
padding: 8px !important;
|
195 |
+
height: 40px !important;
|
196 |
+
width: 60px !important;
|
197 |
+
border: none !important;
|
198 |
+
border-radius: 0 2px 2px 0 !important;
|
199 |
+
transition: background-color 0.3s;
|
200 |
+
cursor: pointer;
|
201 |
+
}
|
202 |
+
.fla_amron_Grid_SearchForm .buttonSearch svg
|
203 |
+
{
|
204 |
+
width: 100%;
|
205 |
+
height: 100%;
|
206 |
+
vertical-align: baseline !important;
|
207 |
+
}
|
208 |
+
/******************************** Masonry Collection *************************/
|
209 |
+
.fla_amron_MasonryCollection{
|
210 |
+
position: relative;
|
211 |
+
width: 100%;
|
212 |
+
overflow: hidden;
|
213 |
+
transition: transform 0.5s;
|
214 |
+
z-index: 2;
|
215 |
+
}
|
216 |
+
.fla_amron_MasonryCollection *{
|
217 |
+
box-sizing: border-box !important;
|
218 |
+
}
|
219 |
+
.fla_amron_MasonryCollection .gm_content .collectionColumn
|
220 |
+
{
|
221 |
+
position: relative;
|
222 |
+
float: left;
|
223 |
+
}
|
224 |
+
.fla_amron_MasonryCollection .gm_header, .fla_amron_MasonryCollection .gm_content, .fla_amron_MasonryCollection .gm_footer
|
225 |
+
{
|
226 |
+
position: relative;
|
227 |
+
width: 100%;
|
228 |
+
}
|
229 |
+
.fla_amron_MasonryCollection .gm_header .gm_navi
|
230 |
+
{
|
231 |
+
position: relative;
|
232 |
+
width: 100%;
|
233 |
+
overflow: hidden;
|
234 |
+
}
|
235 |
+
.fla_amron_MasonryCollection .gm_header .termTitle
|
236 |
+
{
|
237 |
+
position: relative;
|
238 |
+
display: inline-block;
|
239 |
+
font-size: 28px;
|
240 |
+
line-height: 34px;
|
241 |
+
}
|
242 |
+
.fla_amron_MasonryCollection .gm_header .backButton
|
243 |
+
{
|
244 |
+
position: relative;
|
245 |
+
float: left;
|
246 |
+
margin: 0 10px 0 0;
|
247 |
+
width: 54px;
|
248 |
+
height: 34px;
|
249 |
+
border-radius: 2px;
|
250 |
+
cursor: pointer;
|
251 |
+
}
|
252 |
+
.fla_amron_MasonryCollection .gm_header .backButton svg
|
253 |
+
{
|
254 |
+
width: 100%;
|
255 |
+
height: 100%;
|
256 |
+
vertical-align: baseline !important;
|
257 |
+
}
|
258 |
+
.fla_amron_MasonryCollection .gm_content{
|
259 |
+
min-height: 200px;
|
260 |
+
overflow: hidden;
|
261 |
+
}
|
262 |
+
/******************* Masonry Thumbnail PintStyle ***********************/
|
263 |
+
.fla_amron_MasonryThumbPint{
|
264 |
+
position: relative;
|
265 |
+
width: 100%;
|
266 |
+
opacity: 0;
|
267 |
+
transition: opacity 0.45s;
|
268 |
+
float: left;
|
269 |
+
box-sizing: border-box !important;
|
270 |
+
}
|
271 |
+
.fla_amron_MasonryThumbPint .fla_imageHolder
|
272 |
+
{
|
273 |
+
position: relative;
|
274 |
+
width: 100%;
|
275 |
+
overflow: hidden;
|
276 |
+
}
|
277 |
+
.fla_amron_MasonryThumbPint .fla_imageOver
|
278 |
+
{
|
279 |
+
position: absolute;
|
280 |
+
top:0;
|
281 |
+
width: 100%;
|
282 |
+
height: 100%;
|
283 |
+
transition: opacity 0.5s;
|
284 |
+
opacity: 0;
|
285 |
+
}
|
286 |
+
.fla_amron_MasonryThumbPint .fla_imageOver.hover
|
287 |
+
{
|
288 |
+
opacity: 1;
|
289 |
+
}
|
290 |
+
.fla_amron_MasonryThumbPint .fla_zoom
|
291 |
+
{
|
292 |
+
position: absolute;
|
293 |
+
width: 50px;
|
294 |
+
height: 50px;
|
295 |
+
padding: 15px !important;
|
296 |
+
right: 0;
|
297 |
+
bottom: 4px;
|
298 |
+
transform: translateX(100%);
|
299 |
+
margin: auto;
|
300 |
+
/*background-color: black;*/
|
301 |
+
cursor: pointer;
|
302 |
+
transition: transform 0.2s ;
|
303 |
+
}
|
304 |
+
.fla_amron_MasonryThumbPint .fla_zoom.media
|
305 |
+
{
|
306 |
+
width: 40px;
|
307 |
+
height: 40px;
|
308 |
+
background-color: rgba(255, 255, 255, 0.5);
|
309 |
+
border-radius: 50%;
|
310 |
+
padding: 5px !important;
|
311 |
+
transform: translateX(-10%);
|
312 |
+
}
|
313 |
+
.fla_amron_MasonryThumbPint .fla_zoom svg
|
314 |
+
{
|
315 |
+
width: 100%;
|
316 |
+
height: 100%;
|
317 |
+
stroke: white;
|
318 |
+
vertical-align: baseline !important;
|
319 |
+
}
|
320 |
+
.fla_amron_MasonryThumbPint .fla_zoom.media svg{
|
321 |
+
stroke: none;
|
322 |
+
}
|
323 |
+
.fla_amron_MasonryThumbPint .fla_hover .fla_zoom{
|
324 |
+
transform: translateX(-10%);
|
325 |
+
}
|
326 |
+
.fla_amron_MasonryThumbPint .fla_hover img{
|
327 |
+
transform: scale(1.1);
|
328 |
+
}
|
329 |
+
.fla_amron_MasonryThumbPint img
|
330 |
+
{
|
331 |
+
display: block;
|
332 |
+
border: 0 !important;
|
333 |
+
margin: 0 !important;
|
334 |
+
padding: 0 !important;
|
335 |
+
max-height: none !important;
|
336 |
+
max-width: none !important;
|
337 |
+
min-height: 0 !important;
|
338 |
+
min-width: 0 !important;
|
339 |
+
width: 100% !important;
|
340 |
+
height: auto !important;
|
341 |
+
-webkit-backface-visibility: hidden;
|
342 |
+
backface-visibility: hidden;
|
343 |
+
transition: 0.5s ease-out 0s;
|
344 |
+
opacity: 0;
|
345 |
+
}
|
346 |
+
.fla_amron_MasonryThumbPint .fla_itemContent
|
347 |
+
{
|
348 |
+
position: relative;
|
349 |
+
display: block;
|
350 |
+
padding: 7px 20px !important;
|
351 |
+
text-align: left;
|
352 |
+
background-color: white;
|
353 |
+
overflow: hidden;
|
354 |
+
width: 100%;
|
355 |
+
z-index: 1;
|
356 |
+
box-sizing: border-box;
|
357 |
+
}
|
358 |
+
.fla_amron_MasonryThumbPint .fla_itemTitle
|
359 |
+
{
|
360 |
+
position: relative;
|
361 |
+
margin: 10px 0 5px;
|
362 |
+
display: block;
|
363 |
+
font-size: 18px;
|
364 |
+
line-height: 1.1;
|
365 |
+
letter-spacing: 1px;
|
366 |
+
font-weight: 600;
|
367 |
+
}
|
368 |
+
.fla_amron_MasonryThumbPint .fla_itemDescription
|
369 |
+
{
|
370 |
+
position: relative;
|
371 |
+
display: block;
|
372 |
+
margin: 10px 0;
|
373 |
+
padding: 0;
|
374 |
+
font-size: 13px;
|
375 |
+
}
|
376 |
+
.fla_amron_MasonryThumbPint .fla_itemReadMore
|
377 |
+
{
|
378 |
+
text-decoration: none;
|
379 |
+
box-shadow: none;
|
380 |
+
position: relative;
|
381 |
+
cursor: pointer;
|
382 |
+
font-size: 10px;
|
383 |
+
border-radius: 2px;
|
384 |
+
text-transform: uppercase;
|
385 |
+
line-height: 38px;
|
386 |
+
padding: 0 15px;
|
387 |
+
font-weight: 700;
|
388 |
+
letter-spacing: 1px;
|
389 |
+
color: white;
|
390 |
+
display: inline-block;
|
391 |
+
background-color: rgba(0, 0, 0, 0.59);
|
392 |
+
transition: 0.5s;
|
393 |
+
}
|
394 |
+
.fla_amron_MasonryThumbPint a:hover, .fla_amron_MasonryThumbPint a:visited,
|
395 |
+
.fla_amron_MasonryThumbPint a:link, .fla_amron_MasonryThumbPint a:active
|
396 |
+
{
|
397 |
+
text-decoration: none;
|
398 |
+
box-shadow: none;
|
399 |
+
}
|
400 |
+
/*.fla_amron_MasonryThumbPint .itemReadMore:hover, .fla_amron_MasonryThumbPint .itemReadMore:visited,
|
401 |
+
.fla_amron_MasonryThumbPint .itemReadMore:link, .fla_amron_MasonryThumbPint .itemReadMore:active
|
402 |
+
{
|
403 |
+
text-decoration: none;
|
404 |
+
}*/
|
405 |
+
.fla_amron_MasonryThumbPint .tagsWrap, .fla_amron_MasonryThumbPint .catWrap
|
406 |
+
{
|
407 |
+
position: relative;
|
408 |
+
display: block;
|
409 |
+
margin: 5px 0;
|
410 |
+
overflow: hidden;
|
411 |
+
}
|
412 |
+
.fla_amron_MasonryThumbPint .tagsWrap .thumbTag, .fla_amron_MasonryThumbPint .catWrap .thumbCat
|
413 |
+
{
|
414 |
+
text-decoration: none;
|
415 |
+
box-shadow: none;
|
416 |
+
position: relative;
|
417 |
+
display: inline-block;
|
418 |
+
float: left;
|
419 |
+
font-size: 13px;
|
420 |
+
font-weight: 400;
|
421 |
+
line-height: 1.2;
|
422 |
+
cursor: pointer;
|
423 |
+
margin: 0 5px 0 0 !important;
|
424 |
+
}
|
425 |
+
/*.fla_amron_MasonryThumbPint .tagsWrap .thumbTag:hover, .fla_amron_MasonryThumbPint .tagsWrap .thumbTag:visited,
|
426 |
+
.fla_amron_MasonryThumbPint .tagsWrap .thumbTag:link, .fla_amron_MasonryThumbPint .tagsWrap .thumbTag:active
|
427 |
+
{
|
428 |
+
text-decoration: none;
|
429 |
+
box-shadow: none;
|
430 |
+
}
|
431 |
+
.fla_amron_MasonryThumbPint .catWrap .thumbCat:hover, .fla_amron_MasonryThumbPint .catWrap .thumbCat:visited,
|
432 |
+
.fla_amron_MasonryThumbPint .catWrap .thumbCat:link, .fla_amron_MasonryThumbPint .catWrap .thumbCat:active
|
433 |
+
{
|
434 |
+
text-decoration: none;
|
435 |
+
box-shadow: none;
|
436 |
+
}*/
|
437 |
+
.fla_amron_MasonryThumbPint .fla_itemMenuHolder{
|
438 |
+
position: relative;
|
439 |
+
display: block;
|
440 |
+
width: 100%;
|
441 |
+
margin: 15px 0;
|
442 |
+
overflow: hidden;
|
443 |
+
text-align: right;
|
444 |
+
}
|
445 |
+
.fla_amron_MasonryThumbPint .fla_itemMenuHolder .fla_itemsButtons
|
446 |
+
{
|
447 |
+
position: relative;
|
448 |
+
padding: 9px;
|
449 |
+
width: 36px;
|
450 |
+
height: 36px;
|
451 |
+
cursor: pointer;
|
452 |
+
float: right;
|
453 |
+
transition: .5s;
|
454 |
+
box-sizing: border-box;
|
455 |
+
margin: 0 1px;
|
456 |
+
border-radius: 2px;
|
457 |
+
}
|
458 |
+
.fla_amron_MasonryThumbPint .fla_itemMenuHolder .fla_itemsButtons svg
|
459 |
+
{
|
460 |
+
width: 100%;
|
461 |
+
height: 100%;
|
462 |
+
transition: fill .2s;
|
463 |
+
vertical-align: baseline !important;
|
464 |
+
}
|
skins/amron/css/fla_vit_itemMenu.css
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/****************** Item Menu ************/
|
2 |
+
.fla_v2_CollectionItemInfoMenu
|
3 |
+
{
|
4 |
+
position: relative;
|
5 |
+
overflow: hidden ;
|
6 |
+
float: left ;
|
7 |
+
}
|
8 |
+
.fla_v2_CollectionItemInfoMenu .itemsButtons
|
9 |
+
{
|
10 |
+
position: relative;
|
11 |
+
padding: 9px;
|
12 |
+
width: 38px;
|
13 |
+
height: 38px;
|
14 |
+
cursor: pointer;
|
15 |
+
float: left;
|
16 |
+
transition: background-color .2s, transform .4s ease-out;
|
17 |
+
border-radius: 2px;
|
18 |
+
}
|
19 |
+
.fla_v2_CollectionItemInfoMenu .lightbox
|
20 |
+
{
|
21 |
+
margin-right: 2px;
|
22 |
+
}
|
23 |
+
.fla_v2_CollectionItemInfoMenu .itemsButtons svg
|
24 |
+
{
|
25 |
+
width: 100%;
|
26 |
+
height: 100%;
|
27 |
+
transition: fill .2s, transform .4s ease-out;
|
28 |
+
vertical-align: baseline !important;
|
29 |
+
}
|
skins/amron/css/fla_vit_modalWin.css
ADDED
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.fla_v2_Modal * {
|
2 |
+
box-sizing: border-box;
|
3 |
+
}
|
4 |
+
.fla_v2_Modal
|
5 |
+
{
|
6 |
+
position: fixed;
|
7 |
+
-webkit-backface-visibility: hidden;
|
8 |
+
backface-visibility: hidden;
|
9 |
+
top: 0;
|
10 |
+
left: 0;
|
11 |
+
right: 0;
|
12 |
+
bottom: 0;
|
13 |
+
overflow: hidden;
|
14 |
+
opacity: 0;
|
15 |
+
will-change: opacity;
|
16 |
+
transition: opacity .4s;
|
17 |
+
text-align: center;
|
18 |
+
line-height: 1.4;
|
19 |
+
}
|
20 |
+
.fla_v2_Modal .fla_flexe
|
21 |
+
{
|
22 |
+
display: inline-block;
|
23 |
+
width: 0;
|
24 |
+
height: 100%;
|
25 |
+
vertical-align: middle;
|
26 |
+
}
|
27 |
+
.fla_v2_Modal .flaModalCloseButton{
|
28 |
+
position: absolute;
|
29 |
+
top: 0;
|
30 |
+
left: 0;
|
31 |
+
right: 0;
|
32 |
+
bottom: 0;
|
33 |
+
z-index: -100;
|
34 |
+
will-change: opacity;
|
35 |
+
}
|
36 |
+
.fla_v2_Modal .fla_v2_ItemShare
|
37 |
+
{
|
38 |
+
font-size: 14px;
|
39 |
+
/*line-height: 1.3;*/
|
40 |
+
margin: 0 10px;
|
41 |
+
padding-bottom: 10px;
|
42 |
+
max-width: 480px;
|
43 |
+
min-width: 260px;
|
44 |
+
background-color: white;
|
45 |
+
border-radius: 2px;
|
46 |
+
box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
|
47 |
+
vertical-align: middle;
|
48 |
+
display: inline-block ;
|
49 |
+
will-change: transform;
|
50 |
+
}
|
51 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemDescription
|
52 |
+
{
|
53 |
+
display: block;
|
54 |
+
margin: 0.5em 0 1em 0;
|
55 |
+
font-weight: 400;
|
56 |
+
font-size: 80%;
|
57 |
+
/*line-height: 1;*/
|
58 |
+
}
|
59 |
+
.fla_v2_ItemShare .fla_DescriptionWrap .fla_ItemTitle
|
60 |
+
{
|
61 |
+
display: block;
|
62 |
+
font-size: 130%;
|
63 |
+
font-weight: 600;
|
64 |
+
/*line-height: 1.3;*/
|
65 |
+
}
|
66 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButtonWrap
|
67 |
+
{
|
68 |
+
position: relative;
|
69 |
+
display: inline-block;
|
70 |
+
padding: 0 4px;
|
71 |
+
min-width: 130px;
|
72 |
+
width: 50%;
|
73 |
+
height: 42px;
|
74 |
+
}
|
75 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButtonWrap .fla_ItemCopyLink
|
76 |
+
{
|
77 |
+
background-color: rgb(250, 250, 250);
|
78 |
+
border: solid 1px rgba(0, 0, 0, 0.17);
|
79 |
+
width: 100%;
|
80 |
+
height: 100%;
|
81 |
+
border-radius: 2px;
|
82 |
+
overflow: hidden;
|
83 |
+
position: relative;
|
84 |
+
cursor: pointer;
|
85 |
+
transition: .4s;
|
86 |
+
}
|
87 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButtonWrap .fla_ItemCopyLink svg
|
88 |
+
{
|
89 |
+
width: 40px;
|
90 |
+
height: 40px;
|
91 |
+
padding: 4px;
|
92 |
+
float: left;
|
93 |
+
transition: fill .4s;
|
94 |
+
vertical-align: baseline !important;
|
95 |
+
}
|
96 |
+
.fla_ItemShareButtonWrap .fla_ItemCopyLink .fla_SH_title
|
97 |
+
{
|
98 |
+
position: absolute;
|
99 |
+
white-space: nowrap;
|
100 |
+
line-height: 41px;
|
101 |
+
left: 41px;
|
102 |
+
right: 10px;
|
103 |
+
overflow: hidden;
|
104 |
+
opacity: .7;
|
105 |
+
transition: .4s;
|
106 |
+
}
|
107 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemCopyLink:hover
|
108 |
+
{
|
109 |
+
box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
|
110 |
+
}
|
111 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemCopyLink:hover .fla_SH_title
|
112 |
+
{
|
113 |
+
opacity: 1;
|
114 |
+
}
|
115 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButton
|
116 |
+
{
|
117 |
+
border: 1px solid;
|
118 |
+
border-color: rgba(0, 0, 0, 0.18);
|
119 |
+
cursor: pointer;
|
120 |
+
width: 100%;
|
121 |
+
height: 100%;
|
122 |
+
border-radius: 2px;
|
123 |
+
background-color: rgb(250, 250, 250);
|
124 |
+
transition: .4s;
|
125 |
+
}
|
126 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButton:hover
|
127 |
+
{
|
128 |
+
box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
|
129 |
+
}
|
130 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButton:hover .fla_SH_title
|
131 |
+
{
|
132 |
+
opacity: 1;
|
133 |
+
}
|
134 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButton svg
|
135 |
+
{
|
136 |
+
width: 40px;
|
137 |
+
height: 40px;
|
138 |
+
float: left;
|
139 |
+
vertical-align: baseline !important;
|
140 |
+
}
|
141 |
+
.fla_v2_Modal .fla_v2_ItemShare .fla_ItemShareButton .fla_SH_title
|
142 |
+
{
|
143 |
+
white-space: nowrap;
|
144 |
+
position: absolute;
|
145 |
+
left: 30px;
|
146 |
+
right: 0;
|
147 |
+
font-size: 15px;
|
148 |
+
font-weight: 400;
|
149 |
+
line-height: 41px;
|
150 |
+
text-align: center;
|
151 |
+
opacity: 0.7;
|
152 |
+
transition: opacity .4s;
|
153 |
+
}
|
154 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar
|
155 |
+
{
|
156 |
+
font-size: 14px;
|
157 |
+
/*line-height: 1.3;*/
|
158 |
+
margin: 0 10px;
|
159 |
+
padding-bottom: 10px;
|
160 |
+
max-width: 820px;
|
161 |
+
/*min-width: 260px;*/
|
162 |
+
background-color: white;
|
163 |
+
border-radius: 2px;
|
164 |
+
box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
|
165 |
+
vertical-align: middle;
|
166 |
+
display: inline-block ;
|
167 |
+
will-change: transform;
|
168 |
+
}
|
169 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar .fla_InfoBarCloseButton, .fla_v2_Modal .fla_v2_ItemShare .fla_InfoBarCloseButton
|
170 |
+
{
|
171 |
+
position: relative;
|
172 |
+
z-index: 11;
|
173 |
+
margin: 10px;
|
174 |
+
width: 24px;
|
175 |
+
height: 24px;
|
176 |
+
display: inline-block;
|
177 |
+
float: right ;
|
178 |
+
cursor: pointer;
|
179 |
+
}
|
180 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar .fla_InfoBarCloseButton svg, .fla_v2_Modal .fla_v2_ItemShare .fla_InfoBarCloseButton svg
|
181 |
+
{
|
182 |
+
width: 100%;
|
183 |
+
height: 100%;
|
184 |
+
vertical-align: baseline !important;
|
185 |
+
}
|
186 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar .fla_DescriptionWrap, .fla_v2_Modal .fla_v2_ItemShare .fla_DescriptionWrap
|
187 |
+
{
|
188 |
+
/*min-width: 260px;*/
|
189 |
+
min-height: 44px;
|
190 |
+
padding: 10px 20px 0 20px;
|
191 |
+
float: left;
|
192 |
+
text-align: left;
|
193 |
+
}
|
194 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemTitle
|
195 |
+
{
|
196 |
+
font-size: 130%;
|
197 |
+
font-weight: 600;
|
198 |
+
}
|
199 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemDescription
|
200 |
+
{
|
201 |
+
font-size: 80%;
|
202 |
+
font-weight: 400;
|
203 |
+
}
|
204 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .termsTitle
|
205 |
+
{
|
206 |
+
display: inline-block;
|
207 |
+
line-height: 26px;
|
208 |
+
padding: 0 20px 0 3px;
|
209 |
+
position: relative;
|
210 |
+
text-decoration: none;
|
211 |
+
/*float: left;*/
|
212 |
+
}
|
213 |
+
/*--------------- TAGS ---------------------*/
|
214 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .tags
|
215 |
+
{
|
216 |
+
list-style: none;
|
217 |
+
margin: 0;
|
218 |
+
overflow: hidden;
|
219 |
+
padding: 0;
|
220 |
+
}
|
221 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .tags li {
|
222 |
+
float: left;
|
223 |
+
}
|
224 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .tag, .fla_v2_ItemInfoBar .fla_DescriptionWrap .album,
|
225 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .category
|
226 |
+
{
|
227 |
+
border-radius: 3px;
|
228 |
+
display: inline-block;
|
229 |
+
height: 26px;
|
230 |
+
line-height: 26px;
|
231 |
+
padding: 0 20px 0 23px;
|
232 |
+
position: relative;
|
233 |
+
margin: 0 7px 10px 0;
|
234 |
+
text-decoration: none;
|
235 |
+
cursor: pointer;
|
236 |
+
transition: .3s;
|
237 |
+
}
|
238 |
+
/*------------------------------------*/
|
239 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemMetaExifValue
|
240 |
+
{
|
241 |
+
line-height: 1.9;
|
242 |
+
}
|
243 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemsDate
|
244 |
+
{
|
245 |
+
font-size: 100%;
|
246 |
+
line-height: 1.9;
|
247 |
+
}
|
248 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemMetaKey
|
249 |
+
{
|
250 |
+
float: left;
|
251 |
+
width: 40%;
|
252 |
+
min-width: 80px;
|
253 |
+
}
|
254 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemMetaValue
|
255 |
+
{
|
256 |
+
float: left;
|
257 |
+
white-space: nowrap;
|
258 |
+
text-transform: capitalize;
|
259 |
+
}
|
260 |
+
.fla_v2_ItemInfoBar .fla_DescriptionWrap .fla_ItemMetaExifSeparator {
|
261 |
+
font-size: 100%;
|
262 |
+
margin: 0 2px;
|
263 |
+
opacity: .4;
|
264 |
+
}
|
265 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar .fla_DescriptionWrap .likesViewCom
|
266 |
+
{
|
267 |
+
position: relative;
|
268 |
+
float: left;
|
269 |
+
min-width: 68px;
|
270 |
+
min-height: 40px;
|
271 |
+
border: 1px solid;
|
272 |
+
border-color: rgba(0, 0, 0, 0.18);
|
273 |
+
border-radius: 2px;
|
274 |
+
background-color: rgb(250, 250, 250);
|
275 |
+
padding: 4px;
|
276 |
+
margin: 0 1%;
|
277 |
+
text-align: center;
|
278 |
+
}
|
279 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar .fla_DescriptionWrap .likesViewCom svg
|
280 |
+
{
|
281 |
+
display: inline-block;
|
282 |
+
width: 24px;
|
283 |
+
height: 24px;
|
284 |
+
vertical-align: baseline !important;
|
285 |
+
}
|
286 |
+
.fla_v2_Modal .fla_v2_ItemInfoBar .fla_DescriptionWrap .likesViewCom .counterTxt
|
287 |
+
{
|
288 |
+
font-size: 15px;
|
289 |
+
line-height: 1;
|
290 |
+
}
|
skins/amron/css/fla_vit_slider.css
ADDED
@@ -0,0 +1,400 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.fla_grabbable {
|
2 |
+
cursor: move; /* fallback if grab cursor is unsupported */
|
3 |
+
cursor: grab;
|
4 |
+
cursor: -moz-grab;
|
5 |
+
cursor: -webkit-grab;
|
6 |
+
}
|
7 |
+
|
8 |
+
/* (Optional) Apply a "closed-hand" cursor during drag operation. */
|
9 |
+
.fla_grabbable:active {
|
10 |
+
cursor: grabbing;
|
11 |
+
cursor: -moz-grabbing;
|
12 |
+
cursor: -webkit-grabbing;
|
13 |
+
}
|
14 |
+
/******************************** CollectionSlider View ********************/
|
15 |
+
.fla_v2_ColectionSlider *{
|
16 |
+
box-sizing: border-box !important;
|
17 |
+
line-height: 1.4;
|
18 |
+
}
|
19 |
+
.fla_v2_hints
|
20 |
+
{
|
21 |
+
position: absolute;
|
22 |
+
display: inline-block;
|
23 |
+
padding: 5px 10px;
|
24 |
+
font-size: 12px;
|
25 |
+
line-height: normal;
|
26 |
+
background-color: rgba(0,0,0,.8);
|
27 |
+
color: white;
|
28 |
+
transform: translateY(-100%);
|
29 |
+
border-radius: 2px;
|
30 |
+
transition: .4s;
|
31 |
+
}
|
32 |
+
.fla_v2_ColectionSlider
|
33 |
+
{
|
34 |
+
position: fixed;
|
35 |
+
z-index: 99999;
|
36 |
+
/*width: 100%;*/
|
37 |
+
/*height: 100vh;*/
|
38 |
+
left: 0;
|
39 |
+
right: 0;
|
40 |
+
top: 0;
|
41 |
+
bottom: 0;
|
42 |
+
visibility: hidden;
|
43 |
+
opacity: 0;
|
44 |
+
-ms-touch-action: none;
|
45 |
+
touch-action: none;
|
46 |
+
-webkit-text-size-adjust: 100%;
|
47 |
+
font-family: Arial, Helvetica, sans-serif;
|
48 |
+
-webkit-transition: opacity .4s ease;
|
49 |
+
transition: opacity .4s ease, visibility .4s ease
|
50 |
+
}
|
51 |
+
.fla_v2_ColectionSliderActivate
|
52 |
+
{
|
53 |
+
pointer-events: auto;
|
54 |
+
visibility: visible;
|
55 |
+
opacity: 1;
|
56 |
+
}
|
57 |
+
.fla_v2_ColectionSlider .fla_SliderBg
|
58 |
+
{
|
59 |
+
width: 100%;
|
60 |
+
height: 100%;
|
61 |
+
transform: translateZ(0);
|
62 |
+
}
|
63 |
+
.fla_v2_ColectionSlider .fla_v2_SlidesWrap
|
64 |
+
{
|
65 |
+
position: absolute;
|
66 |
+
/*will-change: transform;*/
|
67 |
+
width: 100%;
|
68 |
+
top:0;
|
69 |
+
bottom: 0;
|
70 |
+
}
|
71 |
+
.fla_v2_ColectionSlider .miniScreen
|
72 |
+
{
|
73 |
+
margin-top: 0;
|
74 |
+
margin-bottom: 0;
|
75 |
+
}
|
76 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage
|
77 |
+
{
|
78 |
+
position: absolute;
|
79 |
+
display: block;
|
80 |
+
transform: translate3d(0px,0px,0px);
|
81 |
+
width: 100%;
|
82 |
+
top:0;
|
83 |
+
bottom: 0;
|
84 |
+
left: 0;
|
85 |
+
-webkit-backface-visibility: hidden;
|
86 |
+
overflow: hidden;
|
87 |
+
}
|
88 |
+
.fla_v2_ColectionSlider .fla_v2_SliderPage .sliderItemsButtons
|
89 |
+
{
|
90 |
+
position: absolute;
|
91 |
+
top: 10px;
|
92 |
+
right: 10px;
|
93 |
+
transition: transform.5s;
|
94 |
+
}
|
95 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_iconHolder
|
96 |
+
{
|
97 |
+
position: absolute;
|
98 |
+
width: 140px;
|
99 |
+
height: 140px;
|
100 |
+
border-radius: 50%;
|
101 |
+
background-color: rgba(255, 255, 255, 0.6);
|
102 |
+
transform: translateY(-50%) translateX(-50%);
|
103 |
+
left: 50%;
|
104 |
+
top:50%;
|
105 |
+
padding: 30px;
|
106 |
+
visibility: hidden;
|
107 |
+
will-change: transform;
|
108 |
+
cursor: pointer;
|
109 |
+
}
|
110 |
+
.fla_v2_SliderPage .fla_iconHolder svg
|
111 |
+
{
|
112 |
+
width: 100%;
|
113 |
+
height: 100%;
|
114 |
+
fill: rgba(0, 0, 0, 0.4);
|
115 |
+
}
|
116 |
+
.fla_v2_SliderPage.info_icon .fla_iconHolder
|
117 |
+
{
|
118 |
+
visibility: visible;
|
119 |
+
}
|
120 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_sliderPage_inner
|
121 |
+
{
|
122 |
+
position: absolute;
|
123 |
+
display: block;
|
124 |
+
left: 0;
|
125 |
+
top: 0;
|
126 |
+
bottom: 0;
|
127 |
+
width: 100%;
|
128 |
+
overflow: hidden;
|
129 |
+
transform: translate3d(0,0,0);
|
130 |
+
backface-visibility: hidden;
|
131 |
+
-webkit-backface-visibility: hidden;
|
132 |
+
-webkit-transform-origin: left top;
|
133 |
+
transform-origin: left top;
|
134 |
+
}
|
135 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_sliderPage_inner img
|
136 |
+
{
|
137 |
+
/*will-change: opacity;*/
|
138 |
+
-webkit-backface-visibility: hidden;
|
139 |
+
backface-visibility: hidden;
|
140 |
+
position: absolute !important;
|
141 |
+
display: block !important;
|
142 |
+
border: none !important;
|
143 |
+
max-width: none !important;
|
144 |
+
/*transform-origin: 0 0 !important;*/
|
145 |
+
opacity: 0;
|
146 |
+
padding: 0 !important;
|
147 |
+
margin: 0 !important;
|
148 |
+
transform: translate3d(0,0,0);
|
149 |
+
transition: opacity .35s ease;
|
150 |
+
}
|
151 |
+
.fla_v2_SliderPage.video_play .fla_sliderPage_inner img{
|
152 |
+
visibility: hidden;
|
153 |
+
}
|
154 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_sliderPage_inner img.onLoad
|
155 |
+
{
|
156 |
+
opacity: 1;
|
157 |
+
}
|
158 |
+
.fla_v2_SliderPage .fla_sliderPage_inner .fla_video_wrap
|
159 |
+
{
|
160 |
+
position: absolute;
|
161 |
+
display: block;
|
162 |
+
border: none;
|
163 |
+
}
|
164 |
+
.fla_v2_SliderPage .fla_sliderPage_inner .fla_video_wrap iframe
|
165 |
+
{
|
166 |
+
width: 100% !important;
|
167 |
+
height: 100% !important;
|
168 |
+
top:0;
|
169 |
+
left: 0;
|
170 |
+
}
|
171 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_v2_ItemPage
|
172 |
+
{
|
173 |
+
position: absolute;
|
174 |
+
width: 100%;
|
175 |
+
height: 100%;
|
176 |
+
top:0;
|
177 |
+
left: 0;
|
178 |
+
overflow: hidden;
|
179 |
+
}
|
180 |
+
.fla_SliderImage {
|
181 |
+
position: absolute !important;
|
182 |
+
display: block !important;
|
183 |
+
border: none !important;
|
184 |
+
max-width: none !important;
|
185 |
+
transform-origin: 0 0 !important;
|
186 |
+
}
|
187 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_v2_ItemPage .fla_flexe
|
188 |
+
{
|
189 |
+
display: inline-block;
|
190 |
+
width: 0;
|
191 |
+
height: 100%;
|
192 |
+
vertical-align: middle;
|
193 |
+
}
|
194 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_v2_ItemPage img
|
195 |
+
{
|
196 |
+
position: absolute;
|
197 |
+
display: block;
|
198 |
+
border: none;
|
199 |
+
}
|
200 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_v2_ItemPage .fla_video_wrap
|
201 |
+
{
|
202 |
+
position: absolute;
|
203 |
+
display: block;
|
204 |
+
border: none;
|
205 |
+
}
|
206 |
+
.fla_v2_SlidesWrap .fla_v2_SliderPage .fla_v2_ItemPage .fla_video_wrap iframe
|
207 |
+
{
|
208 |
+
width: 100% !important;
|
209 |
+
height: 100% !important;
|
210 |
+
top:0;
|
211 |
+
left: 0;
|
212 |
+
}
|
213 |
+
.fla_v2_ColectionSlider .sliderNextPrevButtons
|
214 |
+
{
|
215 |
+
position: absolute;
|
216 |
+
width: 50px;
|
217 |
+
height: 34px;
|
218 |
+
top: 50%;
|
219 |
+
margin: 0 10px;
|
220 |
+
cursor: pointer;
|
221 |
+
transition: background-color .2s, transform .4s ease-out;
|
222 |
+
border-radius: 2px;
|
223 |
+
}
|
224 |
+
.fla_v2_ColectionSlider .sliderNextPrevButtonsMiniScreen
|
225 |
+
{
|
226 |
+
display: none;
|
227 |
+
}
|
228 |
+
.fla_v2_ColectionSlider .sliderNextPrevButtons svg
|
229 |
+
{
|
230 |
+
width: 100%;
|
231 |
+
height: 100%;
|
232 |
+
vertical-align: baseline !important;
|
233 |
+
}
|
234 |
+
.fla_v2_ColectionSlider .sliderItemsButtons
|
235 |
+
{
|
236 |
+
position: relative;
|
237 |
+
padding: 9px;
|
238 |
+
width: 38px;
|
239 |
+
height: 38px;
|
240 |
+
margin: 0 2px 2px 0;
|
241 |
+
cursor: pointer;
|
242 |
+
float: left;
|
243 |
+
background-color: rgba(0, 0, 0, 0.4);
|
244 |
+
transition: background-color .2s, transform .4s ease-out;
|
245 |
+
border-radius: 2px;
|
246 |
+
}
|
247 |
+
.fla_v2_ColectionSlider .sliderItemsButtons svg
|
248 |
+
{
|
249 |
+
width: 100%;
|
250 |
+
height: 100%;
|
251 |
+
transition: fill .2s, transform .4s ease-out;
|
252 |
+
vertical-align: baseline !important;
|
253 |
+
}
|
254 |
+
.fla_v2_ColectionSlider .fla_NoneTransition
|
255 |
+
{
|
256 |
+
transition: none;
|
257 |
+
}
|
258 |
+
.fla_v2_ColectionSlider .fla_v2_SlidesHeader
|
259 |
+
{
|
260 |
+
position: absolute;
|
261 |
+
height:auto;
|
262 |
+
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1));
|
263 |
+
width: 100%;
|
264 |
+
top: 0;
|
265 |
+
transform: translateY(-100%);
|
266 |
+
/*will-change: transform;*/
|
267 |
+
transition: transform .4s ease-out;
|
268 |
+
}
|
269 |
+
.fla_v2_ColectionSlider .fla_v2_SlidesHeaderMiniScreen
|
270 |
+
{
|
271 |
+
/*background-color: rgba(0, 0, 0, 0);
|
272 |
+
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1));*/
|
273 |
+
}
|
274 |
+
.fla_v2_ColectionSlider .fla_v2_SlidesHeaderActivate
|
275 |
+
{
|
276 |
+
transform: translateY(0);
|
277 |
+
}
|
278 |
+
.fla_v2_ColectionSlider .fla_v2_SlidesFooter
|
279 |
+
{
|
280 |
+
position: absolute;
|
281 |
+
width: 100%;
|
282 |
+
bottom: 0;
|
283 |
+
background-image: linear-gradient(180deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 1));
|
284 |
+
transform: translateY(100%);
|
285 |
+
/*will-change: transform;*/
|
286 |
+
transition: transform .4s ease-out;
|
287 |
+
}
|
288 |
+
.fla_v2_ColectionSlider .fla_v2_SlidesFooterActivate
|
289 |
+
{
|
290 |
+
transform: translateY(0);
|
291 |
+
}
|
292 |
+
.fla_v2_ColectionSlider .fla_InfoBox1
|
293 |
+
{
|
294 |
+
position: relative;
|
295 |
+
float: left;
|
296 |
+
margin: 10px 20px;
|
297 |
+
overflow: hidden;
|
298 |
+
}
|
299 |
+
.fla_v2_ColectionSliderItemTitle
|
300 |
+
{
|
301 |
+
text-rendering: auto;
|
302 |
+
color: #fff;
|
303 |
+
font-size: 36px;
|
304 |
+
width: 100%;
|
305 |
+
overflow: hidden;
|
306 |
+
white-space: nowrap;
|
307 |
+
text-overflow: ellipsis;
|
308 |
+
line-height: 1;
|
309 |
+
box-sizing: content-box;
|
310 |
+
letter-spacing: 0;
|
311 |
+
text-transform: capitalize;
|
312 |
+
margin-bottom: 5px;
|
313 |
+
}
|
314 |
+
.fla_v2_ColectionSliderItemTitleMiniScreen
|
315 |
+
{
|
316 |
+
padding-bottom: 10px;
|
317 |
+
}
|
318 |
+
.fla_v2_ColectionSliderTermTitle
|
319 |
+
{
|
320 |
+
|
321 |
+
}
|
322 |
+
.fla_v2_ColectionSliderTermTitleMiniScreen
|
323 |
+
{
|
324 |
+
|
325 |
+
}
|
326 |
+
/******************************** Slider ScrollBar *************************/
|
327 |
+
.fla_v2_TermScrollBarWrap
|
328 |
+
{
|
329 |
+
position: relative;
|
330 |
+
width: 100%;
|
331 |
+
margin: 10px 0;
|
332 |
+
overflow: hidden;
|
333 |
+
}
|
334 |
+
.fla_v2_TermScrollBarWrap .fla_v2_ScrollView
|
335 |
+
{
|
336 |
+
position: absolute;
|
337 |
+
overflow: hidden;
|
338 |
+
}
|
339 |
+
.fla_v2_ScrollBarItem
|
340 |
+
{
|
341 |
+
position: absolute;
|
342 |
+
height: 80px;
|
343 |
+
width: 100px;
|
344 |
+
overflow: hidden;
|
345 |
+
}
|
346 |
+
.fla_v2_TermScrollBarWrap .miniScreen
|
347 |
+
{
|
348 |
+
height: 50px;
|
349 |
+
width: 70px;
|
350 |
+
margin: 0 0;
|
351 |
+
}
|
352 |
+
.fla_v2_ScrollBarItem .fla_v2_ScrollBarItemBg
|
353 |
+
{
|
354 |
+
position: absolute;
|
355 |
+
left: 3px;
|
356 |
+
right: 3px;
|
357 |
+
top: 3px;
|
358 |
+
bottom: 3px;
|
359 |
+
background-position: center;
|
360 |
+
-webkit-background-size: cover;
|
361 |
+
background-size: cover;
|
362 |
+
background-repeat: no-repeat;
|
363 |
+
-webkit-backface-visibility: hidden;
|
364 |
+
backface-visibility: hidden;
|
365 |
+
}
|
366 |
+
.fla_v2_ScrollBarItem .fla_v2_ScrollBarItemHover
|
367 |
+
{
|
368 |
+
position: absolute;
|
369 |
+
opacity: 0;
|
370 |
+
transition: opacity .2s;
|
371 |
+
pointer-events: none;
|
372 |
+
top: 0;
|
373 |
+
left: 0;
|
374 |
+
right: 0;
|
375 |
+
bottom: 0;
|
376 |
+
border-style: solid;
|
377 |
+
border-width: 3px;
|
378 |
+
border-color: #fff;
|
379 |
+
}
|
380 |
+
.fla_v2_ScrollBarItem .fla_v2_ScrollBarItemLink
|
381 |
+
{
|
382 |
+
position: absolute;
|
383 |
+
width: 34px;
|
384 |
+
height: 34px;
|
385 |
+
padding: 6px;
|
386 |
+
border-radius: 50%;
|
387 |
+
left: 50%;
|
388 |
+
top: 50%;
|
389 |
+
transform: translateY(-50%) translateX(-50%);
|
390 |
+
}
|
391 |
+
.fla_v2_ScrollBarItemLink.rotate svg{
|
392 |
+
animation: 1s spinner linear infinite;
|
393 |
+
}
|
394 |
+
.fla_v2_ScrollBarItemLink svg
|
395 |
+
{
|
396 |
+
width: 100%;
|
397 |
+
height: 100%;
|
398 |
+
fill: rgba(0, 0, 0, 0.58);
|
399 |
+
vertical-align: baseline !important;
|
400 |
+
}
|
skins/amron/index.php
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Silence is golden.
|
3 |
+
?>
|
skins/amron/init.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$ver = '1.0';
|
3 |
+
|
4 |
+
global $wp;
|
5 |
+
$settings['galleryID'] = $galleryID;
|
6 |
+
$settings['post_url'] = add_query_arg($_SERVER['QUERY_STRING'], '', home_url($wp->request));
|
7 |
+
$settings['module_url'] = plugins_url('/', __FILE__);
|
8 |
+
|
9 |
+
wp_enqueue_style('flagallery-amron-skin', plugins_url('/css/amron.css', __FILE__), array(), $ver);
|
10 |
+
wp_enqueue_style('flagallery-amron-skin-slider', plugins_url('/css/fla_vit_slider.css', __FILE__), null, '2.0');
|
11 |
+
wp_enqueue_style('flagallery-amron-skin-itemMenu', plugins_url('/css/fla_vit_itemMenu.css', __FILE__), null, '2.0');
|
12 |
+
wp_enqueue_style('flagallery-amron-skin-modadalWin', plugins_url('/css/fla_vit_modalWin.css', __FILE__), null, '2.0');
|
13 |
+
wp_enqueue_script('flagallery-amron-skin', plugins_url('/js/amron.js', __FILE__), array(), $ver, true);
|
14 |
+
|
15 |
+
?>
|
16 |
+
<script type="text/javascript">
|
17 |
+
(function(){
|
18 |
+
this['<?php echo "FlaGallery_".esc_attr($galleryID); ?>']={'settings':<?php echo json_encode($settings);?>, 'data':<?php echo json_encode($data);?>, };
|
19 |
+
})();
|
20 |
+
</script>
|
skins/amron/js/amron.js
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function fla_amron_module(){function r(){this._device=function(){var a=window,b=a.navigator.userAgent,e={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:a.cordova||a.phonegap,phonegap:a.cordova||a.phonegap},d=b.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),f=b.match(/(Android);?[\s\/]+([\d.]+)?/),l=b.match(/(iPad).*OS\s([\d_]+)/),g=b.match(/(iPod)(.*OS\s([\d_]+))?/),h=!l&&b.match(/(iPhone\sOS|iOS)\s([\d_]+)/);d&&(e.os="windows",e.osVersion=d[2],e.windows=!0);
|
2 |
+
f&&!d&&(e.os="android",e.osVersion=f[2],e.android=!0,e.androidChrome=0<=b.toLowerCase().indexOf("chrome"));if(l||h||g)e.os="ios",e.ios=!0;h&&!g&&(e.osVersion=h[2].replace(/_/g,"."),e.iphone=!0);l&&(e.osVersion=l[2].replace(/_/g,"."),e.ipad=!0);g&&(e.osVersion=g[3]?g[3].replace(/_/g,"."):null,e.iphone=!0);e.ios&&e.osVersion&&0<=b.indexOf("Version/")&&"10"===e.osVersion.split(".")[0]&&(e.osVersion=b.toLowerCase().split("version/")[1].split(" ")[0]);e.desktop=!(e.os||e.android||e.webView);e.webView=
|
3 |
+
(h||l||g)&&b.match(/.*AppleWebKit(?!.*Safari)/i);e.os&&"ios"===e.os&&(b=e.osVersion.split("."),d=document.querySelector('meta[name="viewport"]'),e.minimalUi=!e.webView&&(g||h)&&(7===1*b[0]?1<=1*b[1]:7<1*b[0])&&d&&0<=d.getAttribute("content").indexOf("minimal-ui"));e.pixelRatio=a.devicePixelRatio||1;return e}();this._mouseDetected=!1;var a=function(c){window.removeEventListener("mousedown",a,!1);window.removeEventListener("touchstart",a,!1);"touchstart"==c.type?(c.stopPropagation(),this._mouseDetected=
|
4 |
+
!1):this._mouseDetected=!0};window.addEventListener("mousedown",a,!1);window.addEventListener("touchstart",a,!1);this.cacherItemsList=this.CacheItemsList()}function t(a){this.delegate=a;this.appName=a.appName;this.id=this.appName+"_tag_";this.view=document.createElement("div");this.view.className="fla_amron_CollectionTagsCloud";this.list=document.createElement("ul");this.view.appendChild(this.list)}function u(a,c){this.delegate=a;this.appName=a.appName;this.index=c;this.view=document.createElement("div");
|
5 |
+
this.view.className="fla_amron_MasonryThumbPint";this.view.style.padding=d(this.appName).thumbSpacing/2+"px";this.imageHolder=document.createElement("div");this.imageHolder.className="fla_imageHolder";this.view.appendChild(this.imageHolder);this._size=h.Size(1,1);this.item=void 0;this.imageRetio=1;this.opacityDelay=void 0;this._display="none"}function p(a,c){this.delegate=a;this.appName=c;this.properties=void 0;this.itemsList=[];this.filteredList=[];this.presentedList=[];this.page_Amount=0;this.scrollHandler=
|
6 |
+
this.cureantPage=void 0;this.terms=[];this.term=void 0;this.tagsCloud=d(this.appName).tagsFilter?[{name:d(this.appName).tagCloudAll,id:0}]:void 0;this._filter=0;this.view=document.createElement("div");this.header=document.createElement("div");this.headerNavi=document.createElement("div");this.content=document.createElement("div");this.footer=document.createElement("div");this.tagsCloudView=void 0;this.header.className="gm_header";this.content.className="gm_content";this.footer.className="gm_footer";
|
7 |
+
this.headerNavi.classList="gm_navi";this.header.appendChild(this.headerNavi);this.view.appendChild(this.header);this.view.appendChild(this.content);this.view.appendChild(this.footer);this.resizeTimeOut=void 0;this.viewWidth=0}function q(a,c){p.apply(this,arguments);this.view.className="fla_amron_MasonryCollection";this.header.style.padding="0 "+d(c).thumbSpacing/2+"px";this.content.style.paddingBottom=d(c).thumbSpacing+"px";this.columnsArr=[]}function v(a,c,b){h.copyProperties(a,this);FlaGallery&&
|
8 |
+
(this.appName=c,this.appDiv=b,this.modal=void 0,a=this.settings,d(this.appName).appEventManager=h.GMEventsManager(),a&&(d(this.appName).lightBoxEnable="1"==a.lightBoxEnable?!0:!1,d(this.appName).thumbSpacing=parseInt(a.thumbSpacing),d(this.appName).collectionPreloaderColor=a.collectionPreloaderColor,d(this.appName).linkTargetWindow=a.linkTargetWindow,d(this.appName).infoBarTermsClickNewPageEnable="1"==a.infoBarTermsClickNewPageEnable?!0:!1,d(this.appName).tagsFilter="1"==a.tagsFilter?!0:!1,d(this.appName).tagCloudAll=
|
9 |
+
a.tagCloudAll,d(this.appName).tagCloudTextColor=a.tagCloudTextColor,d(this.appName).tagCloudBgColor=a.tagCloudBgColor,d(this.appName).collectionThumbRecomendedWidth=parseInt(a.collectionThumbRecomendedWidth),d(this.appName).collectionThumbHoverColor=a.collectionThumbHoverColor,d(this.appName).collectionThumbContentBGColor="rgba(245,245,245,1)",d(this.appName).collectionThumbTitleShow="1"==a.collectionThumbTitleShow?!0:!1,d(this.appName).collectionThumbTitleColor=a.collectionThumbTitleColor,d(this.appName).collectionThumbFontSize=
|
10 |
+
parseInt(a.collectionThumbFontSize),d(this.appName).collectionThumbDescriptionShow="1"==a.collectionThumbDescriptionShow?!0:!1,d(this.appName).collectionThumbDescriptionColor=a.collectionThumbDescriptionColor,d(this.appName).collectionThumbDescriptionFontSize=parseInt(a.collectionThumbDescriptionFontSize),d(this.appName).collectionThumbSubMenuBackgroundColor=a.collectionThumbSubMenuBackgroundColor,d(this.appName).collectionThumbSubMenuBackgroundColorOver=a.collectionThumbSubMenuBackgroundColorOver,
|
11 |
+
d(this.appName).collectionThumbSubMenuIconColor=a.collectionThumbSubMenuIconColor,d(this.appName).collectionThumbSubMenuIconHoverColor=a.collectionThumbSubMenuIconHoverColor,d(this.appName).collectionReadMoreButtonBGColor=a.collectionReadMoreButtonBGColor,d(this.appName).collectionReadMoreButtonLabelColor=a.collectionReadMoreButtonLabelColor,d(this.appName).collectionReadMoreButtonBGColorHover=a.collectionReadMoreButtonBGColorHover,d(this.appName).collectionReadMoreButtonLabelColorHover=a.collectionReadMoreButtonLabelColorHover,
|
12 |
+
d(this.appName).collectionReadMoreButtonLabel=a.collectionReadMoreButtonLabel,d(this.appName).modaBgColor=a.modaBgColor,d(this.appName).modalInfoBoxBgColor=a.modalInfoBoxBgColor,d(this.appName).modalInfoBoxTitleTextColor=a.modalInfoBoxTitleTextColor,d(this.appName).modalInfoBoxTextColor=a.modalInfoBoxTextColor,d(this.appName).infoBarCountersEnable="1"==a.infoBarCountersEnable?!0:!1,d(this.appName).infoBarDateInfoEnable="1"==a.infoBarDateInfoEnable?!0:!1,d(this.appName).shareTitlePlaceHolder=a.shareTitlePlaceHolder,
|
13 |
+
d(this.appName).sliderThumbBarEnable=!1,d(this.appName).sliderThumbBarHoverColor="black",d(this.appName).sliderPreloaderColor=a.sliderPreloaderColor,d(this.appName).sliderBgColor=a.sliderBgColor,d(this.appName).sliderHeaderFooterBgColor=a.sliderHeaderFooterBgColor,d(this.appName).sliderNavigationColor=a.sliderNavigationColor,d(this.appName).sliderNavigationIconColor=a.sliderNavigationIconColor,d(this.appName).sliderItemTitleFontSize=parseInt(a.sliderItemTitleFontSize),d(this.appName).sliderItemTitleTextColor=
|
14 |
+
a.sliderItemTitleTextColor,d(this.appName).sliderThumbSubMenuBackgroundColor=a.sliderThumbSubMenuBackgroundColor,d(this.appName).sliderThumbSubMenuBackgroundColorOver=a.sliderThumbSubMenuBackgroundColorOver,d(this.appName).sliderThumbSubMenuIconColor=a.sliderThumbSubMenuIconColor,d(this.appName).sliderThumbSubMenuIconHoverColor=a.sliderThumbSubMenuIconHoverColor,d(this.appName).sliderInfoEnable="1"==a.sliderInfoEnable?!0:!1,d(this.appName).sliderItemDownload="1"==a.sliderItemDownload?!0:!1,d(this.appName).sliderItemDiscuss=
|
15 |
+
"1"==a.sliderItemDiscuss?!0:!1,d(this.appName).sliderSocialShareEnabled="1"==a.sliderSocialShareEnabled?!0:!1,d(this.appName).sliderLikesEnabled="1"==a.sliderLikesEnabled?!0:!1),d&&(this.terms={},this.collection=void 0,this.gallery=[],this.appDiv.style.position="relative",this.appDiv.style.height="auto",this.appDivWidth=this.appDiv.clientWidth,this.collection=new q(this,this.appName),this.appDiv.appendChild(this.collection.view),this.collection.init(),d(this.appName).appEventManager.addGMEventListener(m.EXT_SCRIPTS_READY,
|
16 |
+
this,"modulesReady"),h.loadExtScripts(w,this,m.EXT_SCRIPTS_READY)))}r.prototype={moduleSettings:function(a){return window[a]&&window[a].settings?window[a].settings:null},get passiveListener(){return this.isPassiveListener()?{passive:!1,capture:!1}:!1},isPassiveListener:function(){var a=!1;try{var c=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveListener",null,c)}catch(b){}return a},get requestAnimationFrame(){return window.requestAnimationFrame||window.mozRequestAnimationFrame||
|
17 |
+
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame},get cancelAnimationFrame(){return window.cancelAnimationFrame||window.mozCancelAnimationFrame},get whichTransitionEventEnd(){var a,c=document.createElement("fakeelement"),b={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(a in b)if(void 0!==c.style[a])return b[a]},get Device(){return this._device},get is_touch_device(){return navigator.maxTouchPoints||
|
18 |
+
"ontouchstart"in window},get getScrollbarWidth(){var a=document.createElement("div");a.style.visibility="hidden";a.style.width="100px";a.style.msOverflowStyle="scrollbar";document.body.appendChild(a);var c=a.offsetWidth;a.style.overflow="scroll";var b=document.createElement("div");b.style.width="100%";a.appendChild(b);b=b.offsetWidth;a.parentNode.removeChild(a);return c-b},get hasScrollbar(){if("number"===typeof window.innerWidth)return window.innerWidth>document.documentElement.clientWidth;var a=
|
19 |
+
document.documentElement||document.body;if("undefined"!==typeof a.currentStyle)var c=a.currentStyle.overflow;c=c||window.getComputedStyle(a,"").overflow;if("undefined"!==typeof a.currentStyle)var b=a.currentStyle.overflowY;b=b||window.getComputedStyle(a,"").overflowY;a=a.scrollHeight>a.clientHeight;var e=/^(visible|auto)$/.test(c)||/^(visible|auto)$/.test(b);return a&&e||"scroll"===c||"scroll"===b},get miniScreen(){return 500>window.screen.height||500>window.screen.width},get mouseDetected(){return this._mouseDetected},
|
20 |
+
get youTubeCode(){return'<iframe src="https://www.youtube.com/embed/%id%?rel=0&showinfo=0&autoplay=1&wmode=transparent" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},get vimeoCode(){return'<iframe src="https://player.vimeo.com/video/%id%?byline=0&portrait=0&autoplay=1" frameborder="no" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'},copyProperties:function(a,c){for(var b in a)c[b]=a[b]},shuffle:function(a){for(var c=a.length,b,e;0!==c;)e=
|
21 |
+
Math.floor(Math.random()*c),--c,b=a[c],a[c]=a[e],a[e]=b;return a},Rect:function(a,c,b,e){return{x:a,y:c,width:b,height:e}},Size:function(a,c){return{width:a,height:c}},Point:function(a,c){return{x:a,y:c}},findHighestZIndex:function(a){for(var c=99999,b=0;b<a.childNodes.length;b++){var e=a.childNodes[b];if(1==e.nodeType&&"SCRIPT"!=e.nodeName)var d=document.defaultView.getComputedStyle(e,null).getPropertyValue("z-index");d>c&&"auto"!=d&&(c=parseInt(d))}return c},timeConverter:function(a){a=new Date(1E3*
|
22 |
+
a);var c=new Date,b=new Date(Date.now()-864E5),e=a.getFullYear(),d="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[a.getMonth()],f=a.getDate(),l=a.getHours(),g=a.getMinutes();return a.setHours(0,0,0,0)==c.setHours(0,0,0,0)?"Today, "+l+":"+g:a.setHours(0,0,0,0)==b.setHours(0,0,0,0)?"Yesterday, "+l+":"+g:e==c.getFullYear()?f+" "+d+", "+e:f+" "+d+" "+e},createPreloaderView:function(a){var c=0,b=document.createElement("div");b.className="fla_v2_Preloader";var e=document.createElement("div");
|
23 |
+
e.style.position="absolute";e.style.width="8px";e.style.height="8px";e.style.margin="-4px";e.style.left="50%";e.style.top="50%";e.style.borderRadius="50%";e.style.backgroundColor=a;b.appendChild(e);e=document.createElement("div");e.className="c-spinner";e.style.position="absolute";e.style.width="36px";e.style.height="36px";e.style.margin="-18px";e.style.left="50%";e.style.top="50%";for(var d=0;8>d;d++){var f=document.createElement("div");f.style.position="absolute";f.style.top="50%";f.style.left=
|
24 |
+
"50%";f.style.marginTop="-4px";f.style.marginLeft="-4px";f.style.width="8px";f.style.height="8px";f.style.backgroundColor=a;f.style.borderRadius="100%";f.style.transform="rotate("+c+"deg) translate(18px)";c+=45;e.appendChild(f)}b.appendChild(e);return b},trace:function(a){if(1==arguments.length)console.log(a);else{for(var c="",b=0;b<arguments.length;b++)c+=arguments[b]+", ";c=c.slice(0,-2);console.log(c)}},preventDefaultForScrollKeys:function(a){if({37:1,38:1,39:1,40:1}[a.keyCode])return a.preventDefault(),
|
25 |
+
!1},preventDefault:function(a){a=a||window.event;a.preventDefault&&a.preventDefault();a.returnValue=!1},disableBodyScroll:function(){document.getElementsByTagName("html")[0].classList.add("fla_AlbumsListMasonry_PopUpActive")},enableBodyScroll:function(){document.getElementsByTagName("html")[0].classList.remove("fla_AlbumsListMasonry_PopUpActive")},disableBodyScrollSlider:function(){window.addEventListener&&(window.addEventListener("wheel",this.preventDefault,this.passiveListener),window.addEventListener("mousewheel",
|
26 |
+
this.preventDefault,this.passiveListener),window.addEventListener("touchmove",this.preventDefault,this.passiveListener));document.onkeydown=this.preventDefaultForScrollKeys},enableBodyScrollSlider:function(){window.removeEventListener&&(window.removeEventListener("wheel",this.preventDefault,this.passiveListener),window.removeEventListener("mousewheel",this.preventDefault,this.passiveListener),window.removeEventListener("touchmove",this.preventDefault,this.passiveListener));document.onkeydown=null},
|
27 |
+
collapseElementsInElemt:function(a,c){for(var b=[],e=0;e<a.childNodes.length;e++){var d={},f=a.childNodes[e];1==f.nodeType&&"SCRIPT"!=f.nodeName&&f!==c&&(d.element=f,d.height=null,d.overflow=null,""!=f.style.height&&(d.height=f.style.height),""!=f.style.overflow&&(d.overflow=f.style.overflow),b.push(d),f.style.overflow="hidden",f.style.height="0")}return b},recoverElements:function(a){if(0!=a.length)for(var c=0;c<a.length;c++){var b=a[c].element;b&&(a[c].overflow?b.style.overflow=a[c].overflow:b.style.removeProperty("overflow"),
|
28 |
+
a[c].height?b.style.height=a[c].height:b.style.removeProperty("height"))}},hexToRgbaStrin:function(a,c){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,d,f){return c+c+d+d+f+f});return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?"rgba("+parseInt(a[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+","+c+")":null},getFrameForBoxWithMode:function(a,c,b){var e=a.width,d=a.height;a=c.width;c=c.height;b?b=Math.max(a/e,c/d):(b=Math.min(a/e,c/d),b=1<b?1:b);e=Math.round(e*b);d=Math.round(d*
|
29 |
+
b);return this.Rect(Math.round((a-e)/2),Math.round((c-d)/2),e,d)},getItemFrameByIndexForBox:function(a,c,b,e,d,f){var k=1;f&&(k=f);d=Math.min(c,d);d=Math.floor(c/d);c=1<d?(c-(d-1)*b)/d:c;k*=c;f=Math.ceil((a+1)/d)-1;return this.Rect((a-f*d)*(c+b),f*(k+e),c,k)},fadeOut:function(a,c,b){function e(){var k=(new Date).getTime()-f,g=k/b;1>g?(g=1-d(g),a.style.opacity=String(g),setTimeout(e,Math.min(25,b-k))):(a.style.opacity="0",c&&c())}b||(b=500);var d=Math.sqrt,f=(new Date).getTime();e()},ellipsizeTextBoxToLine:function(a,
|
30 |
+
c){a.innerHTML=a.textContent||a.innerText||"";var b=a.innerHTML,e=a.innerHTML.split(" ");a.innerHTML=e[0].substring(0,3);c*=a.clientHeight;for(a.innerHTML=b;a.clientHeight>c;)e.pop(),a.innerHTML=e.join(" ")+" ..."},ellipsizeTextBox:function(a){a.innerHTML=a.textContent||a.innerText||"";for(var c=a.innerHTML.split(" ");a.scrollHeight>a.offsetHeight;)c.pop(),a.innerHTML=c.join(" ")+" ..."},scrollToY:function(a,c){var b=window.pageYOffset,e=Math.PI/(c/15),d=b/2,f=0,h,g=setInterval(function(){window.pageYOffset>
|
31 |
+
a?(f+=1,h=d-d*Math.cos(f*e),window.scrollTo(0,b-h)):clearInterval(g)},15)},toggleFullScreen:function(a){var c=document.webkitIsFullScreen||document.mozFullScreen||!1;a.requestFullScreen=a.requestFullScreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||function(){return!1};document.cancelFullScreen=document.cancelFullScreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||function(){return!1};c?document.cancelFullScreen():a.requestFullScreen()},CacheItemsList:function(){function a(){b.cached+=
|
32 |
+
1;c(b.lastIndex+1>=b.itemsList.length?0:b.lastIndex+1)}function c(e){!b.itemsList||b.cached==b.itemsList.length&&!b.amount||b.amount&&b.cached>=b.amount||(b.amount&&(b.amount=Math.min(b.amount,b.itemsList.length)),b.currentItem=b.itemsList[e].webView,b.lastIndex=e,b.currentItem.complete?(b.cached+=1,c(b.lastIndex+1>=b.itemsList.length?0:b.lastIndex+1)):b.currentItem.addEventListener("load",a,!1))}var b={cached:0,itemsList:void 0,currentItem:void 0,amount:void 0,lastIndex:void 0,init:function(e,d,
|
33 |
+
f){b.currentItem&&b.currentItem.removeEventListener("load",a,!1);b.amount=f;b.cached=0;b.currentItem=void 0;b.lastIndex=d;b.itemsList=e;void 0===d&&(d=0);c(d)},status:function(){return{list:b.itemsList,index:b.lastIndex}}};return b},GMEventsManager:function(){return{_listenerSet:{},addGMEventListener:function(a,c,b){this._listenerSet[a]||(this._listenerSet[a]=[]);this._listenerSet[a].push({listener:c,handler:b})},removeGMEventListener:function(a,c,b){if(this._listenerSet[a])for(var e=0;e<this._listenerSet[a].length;e++)this._listenerSet[a][e].listener==
|
34 |
+
c&&this._listenerSet[a][e].handler==b&&(this._listenerSet[a].splice(e,1),e=this._listenerSet[a].length)},dispatchGMEvent:function(a){if(this._listenerSet[a.type])for(var c=this._listenerSet[a.type],b=0;b<c.length;b++){var e=c[b];if(e&&e.listener&&"function"==typeof e.listener[e.handler])e.listener[e.handler](a)}}}},GMEvent:function(a,c,b){var e={};e.type=a;e.params=b;e.target=c;return e},loadExtScripts:function(a,c,b){for(var e=d(c.appName).module_url,k=0,f=0;f<a.length;f++){var l=document.createElement("script");
|
35 |
+
l.src=e+"js/module/"+a[f];l.async=!0;l.onload=l.onreadystatechange=function(){k+=1;k==a.length&&d(c.appName).appEventManager.dispatchGMEvent(h.GMEvent(b,c))};document.body.appendChild(l)}},request:function(a,c,b,e){if(FlaGallery&&FlaGallery.ajaxurl){var d=this,f=new XMLHttpRequest;f.open("POST",FlaGallery.ajaxurl,!0);f.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");f.setRequestHeader("X-Requested-With","XMLHttpRequest");f.setRequestHeader("Access-Control-Allow-Headers",
|
36 |
+
"Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");f.onreadystatechange=function(){4==this.readyState&&(200!=this.status?b&&d.moduleSettings(c.appName).appEventManager.dispatchGMEvent(d.GMEvent(b,c,{error:this.statusText,params:e})):b&&d.moduleSettings(c.appName).appEventManager.dispatchGMEvent(d.GMEvent(b,c,{data:this.responseText,params:e})))};f.onerror=function(d){1==confirm("Failed to load resource: The network connection was lost. Let's try again?")&&request(a,c,b,
|
37 |
+
e)};try{f.send(a),d.moduleSettings(c.appName).appEventManager.dispatchGMEvent(d.GMEvent(m.REQUEST_START,c,null))}catch(l){d.trace(l)}}},Item:function(a,c){var b={get webView(){if(this.webImg.src)return b.webImg;this.webImg.src=this.itemViewSrc;return this.webImg}};this.copyProperties(a,b);b.appName=c;b.idPrefix=void 0;b.albums=[];b.categories=[];b.tags=[];b.ID=b.pid;b.comment_status="close";b.title=b.alttext;b.user=void 0;b.webImg=new Image;b.webImgFrame=this.Rect(0,0,0,0);b.webImg.addEventListener("load",
|
38 |
+
function(){this.classList.add("onLoad")},!1);b.meta=function(){var a={};a.data=b.meta_data;a.mime=b.meta_data.webview.mime;a.likes=b.total_votes;a.views=b.hitcounter;a.original={};a.original.width=b.meta_data.width;a.original.height=b.meta_data.height;a.original.link=b.galleryURL+"/"+b.filename;a.thumb={};a.thumb.width=b.meta_data.thumbnail.width;a.thumb.height=b.meta_data.thumbnail.height;a.thumb.link=b.galleryURL+"/thumbs/thumbs_"+b.filename;a.web={};a.web.width=b.meta_data.webview["0"];a.web.height=
|
39 |
+
b.meta_data.webview["1"];a.web.link=b.galleryURL+"/webview/"+b.filename;return a}();if(b.link&&""!=b.link){a=b.link;var e;a.match(/youtu\.be/i)||a.match(/youtube\.com/i)?(c=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&\?]*).*/,(a=a.match(c))&&11==a[7].length&&(e=a[7]),void 0!==e&&(b.meta.mime="video/youtube",b.videoId=e,b.link=void 0)):a.match(/vimeo\.com/i)&&(c=/(www\.)?vimeo.com\/(\d+)($|\/)/,(a=a.match(c))&&(e=a[2]),void 0!==e&&(b.meta.mime="video/vimeo",b.videoId=e,b.link=
|
40 |
+
void 0))}b.mime_type=b.meta.mime;"audio/mpeg"==b.mime_type&&(b.type="audio");"image"==b.mime_type.split("/")[0]&&(b.type="image");"video"==b.mime_type.split("/")[0]&&(b.type="video");b.hasTag=function(a){if("all"==a)return!0;if(!b.tags||0==b.tags.length)return!1;for(var c=0;c<b.tags.length;c++)if(b.tags[c].term_id==a)return!0};b.itemViewSrc=b.meta?b.meta.web&&"gif"!=b.mime_type.split("/")[1]?b.meta.web.link:b.meta.original?b.meta.original.link:null:null;b.url=b.share_link=b.itemViewSrc;b.itemViewThumbSrc=
|
41 |
+
b.meta?b.meta.thumb?b.meta.thumb.link:b.meta.web?b.meta.web.link:null:null;b.itemViewSize=b.meta?b.meta.web?h.Size(b.meta.web.width,b.meta.web.height):b.meta.original?h.Size(b.meta.original.width,b.meta.original.height):h.Size(300,300):h.Size(300,300);b.itemViewThumbSize=b.meta?b.meta.thumb?h.Size(b.meta.thumb.width,b.meta.thumb.height):b.meta.web?h.Size(b.meta.web.width,b.meta.web.height):h.Size(300,300):h.Size(300,300);return b},Term:function(a,c){var b={indexByID:function(a){for(var b=0;b<this.itemsList.length;b++)if(this.itemsList[b].ID==
|
42 |
+
a)return b;return 0},taxony_type:"gallery"};b.appName=c;b.taxonomy="albums";b.itemsList=[];b.user=void 0;this.copyProperties(a,b);a=b.gallery.title?b.gallery.title:void 0;b.title=a;b.name=b.title;a=b.gallery.gid?b.gallery.gid:void 0;b.term_id=a;if(b.data&&0<b.data.length)for(a=0;a<b.data.length;a++){b.data[a].galleryURL=b.gallery.path;var e=this.Item(b.data[a],c);e.tags.push({name:b.name,term_id:b.term_id});e.index=a;b.itemsList.push(e)}b.meta||(a=this.Meta({},b.appName),a._cover=b.itemsList[0]?b.itemsList[0]:
|
43 |
+
void 0,b.meta=a);b.count=b.itemsList.length;a=b.gallery.galdesc?b.gallery.galdesc:void 0;b.description=a;c=this.moduleSettings(c).post_url?this.moduleSettings(c).post_url:void 0;b.sharelink=c;c=0<b.itemsList.length?b.itemsList[0].itemViewSrc:void 0;b.thumbnail=c;return b},Meta:function(a,c){var b={get cover(){return b._cover?b._cover:null}};this.copyProperties(a,b);b.appName=c;b._cover&&(b._cover=this.Item(a._cover,b.appName));return b}};var w=["fla_vit_slider.js","fla_vit_itemMenu.js","fla_vit_modalWin.js?ver=2.1.0"],
|
44 |
+
h=new r,x=h.trace,d=h.moduleSettings,m={REQUEST_START:"REQUEST_START",COLLECTION_DATA_REDY:"COLLECTION_DATA_REDY",COUNTERS_UPDATED:"COUNTERS_UPDATED",NEED_MODAL:"NEED_MODAL",NEED_LIGHTBOX:"NEED_LIGHTBOX",REMOVE_LIGHTBOX:"REMOVE_LIGHTBOX",NEED_NEW_COLLECTION:"NEED_NEW_COLLECTION",NEED_PREV_COLLECTION:"NEED_PREV_COLLECTION",NEED_NEW_COLLECTION_BY_TERM:"NEED_NEW_COLLECTION_BY_TERM",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"};t.prototype={updateView:function(){for(var a=this.delegate.tagsCloud,c=0;c<a.length;c++){var b=
|
45 |
+
a[c];document.getElementById(this.id+b.id)||(b=this.createTag(b.id,b.name),this.list.appendChild(b))}this.selectedTag=document.getElementById(this.id+this.delegate.filtredById);this.selectedTag.style.backgroundColor=d(this.appName).tagCloudTextColor;this.selectedTag.style.color=d(this.appName).tagCloudBgColor;this.selectedTag.style.cursor="default"},createTag:function(a,c){function b(a){var b=this.id.split("_")[this.id.split("_").length-1];if(e.selectedTag!=this)switch(a.type){case "click":e.selectedTag=
|
46 |
+
document.getElementById(e.id+e.delegate.filtredById);e.selectedTag.style.color=d(e.appName).tagCloudTextColor;e.selectedTag.style.backgroundColor=d(e.appName).tagCloudBgColor;e.selectedTag.style.cursor="pointer";e.delegate.filtred(b);e.selectedTag=document.getElementById(e.id+e.delegate.filtredById);e.selectedTag.style.cursor="default";break;case "mouseenter":this.style.backgroundColor=d(e.appName).tagCloudTextColor;this.style.color=d(e.appName).tagCloudBgColor;break;case "mouseleave":this!=e.selectedTag&&
|
47 |
+
(this.style.color=d(e.appName).tagCloudTextColor,this.style.backgroundColor=d(e.appName).tagCloudBgColor)}}var e=this,k=document.createElement("li");k.innerHTML=c;k.id=this.id+a;k.style.color=d(this.appName).tagCloudTextColor;k.style.backgroundColor=d(this.appName).tagCloudBgColor;k.addEventListener("click",b,!1);k.addEventListener("mouseenter",b,!1);k.addEventListener("mouseleave",b,!1);return k}};u.prototype={init:function(){function a(a){if(d(f.appName).lightBoxEnable)switch(a.type){case "mouseenter":this.classList.add("fla_hover");
|
48 |
+
h&&h.classList.add("fla_hover");break;case "mouseleave":this.classList.remove("fla_hover");h&&h.classList.remove("fla_hover");break;case "click":this.classList.remove("fla_hover"),h&&h.classList.remove("fla_hover"),f.delegate.itemAction(f.index,"lightBox")}}function c(a){a.classList.remove("fla_hover");"like"==a.getAttribute("type")&&a.getAttribute("like")||"bookmark"==a.getAttribute("type")&&a.getAttribute("mark")?a.style.backgroundColor=p:(a.style.backgroundColor=p,a.childNodes[0].style.fill=m)}
|
49 |
+
function b(a){"click"==a.type?e&&(f.delegate.itemAction(f.index,this.getAttribute("type")),miniScreen&&c(this)):"mouseenter"==a.type?(this.classList.add("fla_hover"),this.style.backgroundColor=q,"bookmark"==this.getAttribute("type")&&this.getAttribute("mark")||(this.childNodes[0].style.fill=r)):"mouseleave"==a.type&&c(this)}var e=this.delegate.itemsList[this.index];this.item=e;var k=this.delegate.itemWidth;this.type=e.type;this.itemViewSrc=!1;this.img=new Image;var f=this;this.img.onload=function(){this.setAttribute("alt",
|
50 |
+
e.title);1.1<f.view.clientWidth/this.naturalWidth&&e.itemViewSrc&&!f.itemViewSrc&&(this.src=e.itemViewSrc,f.itemViewSrc=!0);f.imageHolder.style.minHeight=null;this.style.opacity="1"};this.imageHolder.appendChild(this.img);if(d(this.appName).lightBoxEnable){var h=document.createElement("div");h.className="fla_imageOver";h.style.backgroundColor=d(this.appName).collectionThumbHoverColor;this.imageHolder.appendChild(h);var g=document.createElement("div");g.className="fla_zoom";switch(this.item.type){case "video":"vimeo"==
|
51 |
+
this.item.mime_type.split("/")[1]?(g.classList.add("media"),g.innerHTML='<svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="0 0 56.693 56.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997 c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256 c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928 c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>',
|
52 |
+
g.firstChild.style.fill="#00adef"):(g.classList.add("media"),g.innerHTML='<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>',
|
53 |
+
g.firstChild.style.fill="#e02f2f");break;case "audio":g.classList.add("media");g.innerHTML='<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
54 |
+
g.firstChild.style.fill="#7a7a7a";break;default:g.innerHTML='<svg fill="none" height="24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>'}this.imageHolder.appendChild(g)}this.imageHolder.addEventListener("mouseenter",a,!1);this.imageHolder.addEventListener("mouseleave",
|
55 |
+
a,!1);this.imageHolder.addEventListener("click",a,!1);this.img.src=1.1<k/e.itemViewThumbSize.width?e.itemViewSrc:e.itemViewThumbSrc;this.imageRetio=e.itemViewSize.height/e.itemViewSize.width;this.imageHolder.style.minHeight=this.imageRetio*k+"px";k=document.createElement("div");k.className="fla_itemContent";k.style.backgroundColor=d(this.appName).collectionThumbContentBGColor;this.view.appendChild(k);g=void 0;d(this.appName).collectionThumbTitleShow&&e.title&&""!=e.title&&(g=document.createElement("div"),
|
56 |
+
g.className="fla_itemTitle",g.style.fontSize=d(this.appName).collectionThumbFontSize+"px",g.style.color=d(this.appName).collectionThumbTitleColor,g.innerHTML=e.title,k.appendChild(g));d(this.appName).collectionThumbDescriptionShow&&e.description&&""!=e.description&&(g=document.createElement("div"),g.className="fla_itemDescription",g.style.fontSize=d(this.appName).collectionThumbDescriptionFontSize+"px",g.style.color=d(this.appName).collectionThumbDescriptionColor,g.innerHTML=e.description,k.appendChild(g));
|
57 |
+
g=document.createElement("div");g.className="fla_itemMenuHolder";var m=d(this.appName).collectionThumbSubMenuIconColor,p=d(this.appName).collectionThumbSubMenuBackgroundColor,q=d(this.appName).collectionThumbSubMenuBackgroundColorOver,r=d(this.appName).collectionThumbSubMenuIconHoverColor;if(e.link){var n=document.createElement("a");n.className="fla_itemReadMore";n.innerHTML=d(this.appName).collectionReadMoreButtonLabel;n.style.backgroundColor=d(this.appName).collectionReadMoreButtonBGColor;n.style.color=
|
58 |
+
d(this.appName).collectionReadMoreButtonLabelColor;n.setAttribute("target",d(this.appName).linkTargetWindow);n.setAttribute("href",e.link);n.onmouseenter=function(){this.style.backgroundColor=d(f.appName).collectionReadMoreButtonBGColorHover;this.style.color=d(f.appName).collectionReadMoreButtonLabelColorHover};n.onmouseleave=function(){this.style.backgroundColor=d(f.appName).collectionReadMoreButtonBGColor;this.style.color=d(f.appName).collectionReadMoreButtonLabelColor};n.addEventListener("click",
|
59 |
+
b,!1);g.appendChild(n)}0<g.childNodes.length&&k.appendChild(g);0==k.childNodes.length&&(k.style.display="none")},resize:function(a){return this.view.clientHeight},updateSomeData:function(){},set mark(a){this.bookmarkButton&&(a?(this.bookmarkButton.getElementsByTagName("svg")[0].style.fill="red",this.bookmarkButton.setAttribute("mark","true")):(this.bookmarkButton.getElementsByTagName("svg")[0].style.fill=this.bookmarkButton.classList.contains("fla_hover")?d(this.appName).collectionThumbSubMenuIconHoverColor:
|
60 |
+
d(this.appName).collectionThumbSubMenuIconColor,this.bookmarkButton.removeAttribute("mark")))},get mark(){return this.bookmarkButton?!0:!1},set like(a){this.likeButton&&(a?(this.likeButton.getElementsByTagName("svg")[0].style.fill="red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.setAttribute("like","true")):(this.likeButton.childNodes[0].style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",
|
61 |
+
this.likeButton.removeAttribute("like")))},get like(){return this.likeButton?!0:!1},set visibility(a){this.view.style.visibility=a},set display(a){"none"==a&&clearTimeout(this.opacityDelay);this._display=this.view.style.display=a;this.updateSomeData()},get display(){return this._display},set opacity(a){var c=this;a.delay?this.opacityDelay=setTimeout(function(){c.view.style.opacity=a.opacity},a.delay):(clearTimeout(this.opacityDelay),c.view.style.opacity=a.opacity)}};p.prototype={init:function(){this.showPreloader(!0)},
|
62 |
+
initData:function(){this.showPreloader(!1);var a={};a.backgroundColor=d(this.appName).collectionThumbSubMenuBackgroundColor;a.backgroundColorOver=d(this.appName).collectionThumbSubMenuBackgroundColorOver;a.iconColor=d(this.appName).collectionThumbSubMenuIconColor;a.iconColorOver=d(this.appName).collectionThumbSubMenuIconHoverColor;this.itemMenu=this.delegate.itemMenuConstructor(this.delegate,h,a,!1);this.gallery=this.delegate.gallery;this.dataLoaded()},showPreloader:function(a){var c=void 0;if(a)document.getElementById(this.appName+
|
63 |
+
"_preloader")||(c=h.createPreloaderView(h.hexToRgbaStrin(d(this.appName).collectionPreloaderColor,.7)),c.id=this.appName+"_preloader",this.view.appendChild(c));else if(document.getElementById(this.appName+"_preloader")){var b=this;c=document.getElementById(this.appName+"_preloader");h.fadeOut(c,function(){b.view&&b.view.removeChild(c)},500)}},dataLoaded:function(){this.addItemsToCollection(this.gallery);this.updateViewByData();d(this.appName).lightBoxEnable&&this.delegate.startItem&&this.tryOpenLightboxForID(this.delegate.startItem)},
|
64 |
+
tryOpenLightboxForID:function(a){if(this.filteredCollection)for(var c=0;c<this.filteredCollection.length;c++)if(this.filteredCollection[c].ID==a)return d(this.appName).appEventManager.dispatchGMEvent(h.GMEvent(m.NEED_LIGHTBOX,this,{collection:this,index:c})),!0;return!1},addItemsToCollection:function(a){this.createTagsCloud();for(var c=0;c<a.length;c++){var b=a[c];b.index=c;this.itemsList.push(b)}},trySortItemsByTerms:function(){this.queryTermsList=h.termsListFromAppQuery(this.query);if(this.itemsList&&
|
65 |
+
this.queryTermsList){for(var a=[],c=0;c<this.queryTermsList.length;c++)for(var b=this.queryTermsList[c],e=0;e<this.itemsList.length;e++){var d=this.itemsList[e];if(d[b.taxonomy_type]){var f=d[b.taxonomy_type],l;for(l in f)f[l].term_id==b.term_id&&(a.push(d),this.itemsList.splice(e,1),--e)}}this.itemsList=a.concat(this.itemsList)}},itemAction:function(a,c){if(!this.dragging){var b=this.filteredCollection[a];switch(c){case "lightBox":d(this.appName).appEventManager.dispatchGMEvent(h.GMEvent(m.NEED_LIGHTBOX,
|
66 |
+
this,{collection:this,index:a}));break;case "share":d(this.appName).appEventManager.dispatchGMEvent(h.GMEvent(m.NEED_MODAL,self,{type:"share",item:b}));break;case "link":b.link&&window.open(b.link,d(this.appName).linkTargetWindow);break;case "coments":window.open(b.sharelink+"/#comments",d(this.appName).linkTargetWindow);break;case "like":this.delegate.likeItem=b;break;case "bookmark":this.delegate.bookmarkItem=b}}},refteshDataInItem:function(){for(var a=0;a<this.filteredCollection.length;a++)this.filteredCollection[a].view.updateSomeData()},
|
67 |
+
activate:function(){this.updateLayout();(this.scrollHandler=this.scrollHandlerFunction())&&window.addEventListener("scroll",this.scrollHandler,!1)},deactivate:function(){d(this.appName).appEventManager.removeGMEventListener(m.COLLECTION_DATA_REDY,this,"dataLoaded");window.removeEventListener("scroll",this.scrollHandler,!1);this.scrollHandler=void 0;this.removePresentedItems()},removeItemViewFormStage:function(){this.removePresentedItems();this.presentedList=[];this.cureantPage=void 0},removePresentedItems:function(){for(var a=
|
68 |
+
0;a<this.presentedList.length;a++)this.presentedList[a].display="none"},showPresentedItems:function(){for(var a=0;a<this.presentedList.length;a++)this.presentedList[a].display="block"},createLayout:function(){this.scrollHandler||(this.scrollHandler=this.scrollHandlerFunction())&&window.addEventListener("scroll",this.scrollHandler,!1);this.page_Amount=Math.min(20,this.filteredCollection.length)},updateLayout:function(){},scrollHandlerFunction:function(){return!1},resize:function(){var a=this;clearTimeout(this.resizeTimeOut);
|
69 |
+
h.is_touch_device?this.resizeTimeOut=setTimeout(function(){a.resizeDelay()},150):this.resizeDelay()},resizeDelay:function(){this.viewWidth!=this.view.clientWidth&&(this.updateLayout(),this.viewWidth=this.view.clientWidth)},createTagsCloud:function(){if(this.tagsCloud){var a={},c=[];if(this.delegate.terms.albums.itemsList){var b;for(b=0;b<this.delegate.terms.albums.itemsList.length;b++){var e=this.delegate.terms.albums.itemsList[b];d(this.appName).tagsSortingByName?(c.push(e.name),a[e.name]=b):this.tagsCloud.push({name:e.name,
|
70 |
+
id:e.term_id})}if(d(this.appName).tagsSortingByName)for(c.sort(),b=0;b<c.length;b++)e=this.delegate.terms.albums.itemsList[a[c[b]]],this.tagsCloud.push({name:e.name,id:e.term_id})}}},set filtredById(a){if(this.itemsList&&(this.filteredList=[],this._filter=a,0!==a))for(var c=0;c<this.itemsList.length;c++){var b=this.itemsList[c];b.hasTag(a)&&this.filteredList.push(b)}},get filtredById(){return this._filter},get filteredCollection(){return 0<this.filteredList.length?this.filteredList:this.itemsList},
|
71 |
+
filtred:function(a){window.removeEventListener("scroll",this.scrollHandler,!1);this.scrollHandler=void 0;this.removeItemViewFormStage();this.filtredById=a;this.createLayout()},updateTagsCloud:function(){0!=this.filteredCollection.length&&(this.tagsCloudView||(this.tagsCloudView=new t(this),this.header.appendChild(this.tagsCloudView.view)),this.tagsCloud&&this.tagsCloudView.updateView())}};q.prototype=Object.create(p.prototype,{updateViewByData:{value:function(){if(this.itemsList)for(var a=0;a<this.itemsList.length;a++){var c=
|
72 |
+
new u(this,a);this.itemsList[a].view=c;c.init()}d(this.appName).tagsFilter&&this.updateTagsCloud();this.createLayout()}},createLayout:{value:function(){p.prototype.createLayout.apply(this,arguments);this.createColumns();this.addPageToStage()}},updateLayout:{value:function(){if(0==this.createColumns())this.presentedList&&this.presentedList[0]&&"none"==this.presentedList[0].display&&this.showPresentedItems();else{this.removePresentedItems();for(var a=0;a<this.presentedList.length;a++)this.arangeItemToColum(this.presentedList[a])}}},
|
73 |
+
createColumns:{value:function(){var a=Math.floor(this.content.clientWidth/Math.min(this.content.clientWidth,d(this.appName).collectionThumbRecomendedWidth));if(this.columnsArr.length!=a){for(var c=0;c<this.columnsArr.length;c++)this.content.removeChild(this.columnsArr[c]);this.columnsArr=[];for(c=0;c<a;c++){var b=document.createElement("div");b.className="collectionColumn";b.style.width=100/a+"%";this.columnsArr.push(b);this.content.appendChild(b)}return!0}return!1}},bottomSpace:{get:function(){return this.content.getBoundingClientRect().bottom-
|
74 |
+
window.innerHeight}},scrollHandlerFunction:{value:function(a){var c=this;return function(){200>c.bottomSpace&&c.addPageToStage()}}},addPageToStage:{value:function(){void 0===this.cureantPage&&(this.cureantPage=0);clearTimeout(this.layoutSizerDelay);if(!(this.cureantPage>=Math.ceil(this.filteredCollection.length/this.page_Amount))){for(var a=this.cureantPage*this.page_Amount,c=Math.min(a+this.page_Amount,this.filteredCollection.length),b=1;a<c;a++){var e=this.filteredCollection[a].view;e.index=a;e.opacity=
|
75 |
+
{opacity:0,delay:0};this.addItemToStage(e);e.opacity={opacity:1,delay:100*b};b+=1}this.cureantPage+=1;var d=this;this.layoutSizerDelay=setTimeout(function(){200>d.bottomSpace&&d.addPageToStage()},1E3)}}},getColumWithMinHeight:{value:function(){for(var a=this.columnsArr[0].clientHeight,c=0,b=1;b<this.columnsArr.length;b++)a!=Math.min(a,this.columnsArr[b].clientHeight)&&(a=Math.min(a,this.columnsArr[b].clientHeight),c=b);return c}},arangeItemToColum:{value:function(a){var c=a.view;this.columnsArr[this.getColumWithMinHeight()].appendChild(c);
|
76 |
+
a.display="block"}},addItemToStage:{value:function(a){this.arangeItemToColum(a);this.presentedList.push(a)}},itemWidth:{get:function(){var a=Math.floor(this.content.clientWidth/d(this.appName).collectionThumbRecomendedWidth);return this.content.clientWidth/a}}});q.prototype.constructor=q;v.prototype={modulesReady:function(a){"function"===typeof window.fla_v2_masonry_itemMenu&&(this.itemMenuConstructor=window.fla_v2_masonry_itemMenu);"function"===typeof window.fla_v2_masonry_slider&&(this.sliderConstructor=
|
77 |
+
window.fla_v2_masonry_slider);"function"===typeof window.fla_v2_masonry_modalWin&&(this.modalConstructor=window.fla_v2_masonry_modalWin);d(this.appName).appEventManager.removeGMEventListener(m.EXT_SCRIPTS_READY,this,"modulesReady");this.startApp()},get itemFromHash(){var a=window.location.hash.indexOf(this.appName),c=void 0;a+1&&(c=2<=window.location.hash.substr(a).split("-").length?parseInt(window.location.hash.substr(a).split("-")[1]):void 0);return c},itemHash:function(a){return"#"+this.appName+
|
78 |
+
"-"+a.ID},startApp:function(){var a=this;d(this.appName).key=!0;d(this.appName).appEventManager.addGMEventListener(m.NEED_NEW_COLLECTION,this,"pushNewCollectionByTermID");d(this.appName).appEventManager.addGMEventListener(m.NEED_NEW_COLLECTION_BY_TERM,this,"pushNewCollectionByTerm");d(this.appName).appEventManager.addGMEventListener(m.NEED_MODAL,this,"createModal");d(this.appName).lightBoxEnable&&(d(this.appName).appEventManager.addGMEventListener(m.NEED_LIGHTBOX,this,"createLightbox"),d(this.appName).appEventManager.addGMEventListener(m.REMOVE_LIGHTBOX,
|
79 |
+
this,"removeLightbox"));this.viewsSet={};d(this.appName).appEventManager.addGMEventListener(m.COUNTERS_UPDATED,this,"itemsCountersUpdateHandler");this.likesSet={};window.localStorage.getItem("fla_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("fla_likesSet")));window.addEventListener("resize",function(){a.windowResizeHandler(a)});this.popstateHandler=function(b){a.slider?a.slider.prepareToRemove():a.collection&&a.itemFromHash&&(a.collection.tryOpenLightboxForID(a.itemFromHash)||
|
80 |
+
window.history.replaceState("",document.title,window.location.pathname+window.location.search))};window.addEventListener("popstate",this.popstateHandler,!1);if(this.data&&0<this.data.length){this.terms.albums={};this.terms.albums.itemsList=[];for(var c=0;c<this.data.length;c++){var b=h.Term(this.data[c],this.appName);this.terms.albums.itemsList.push(b);this.gallery=this.gallery.concat(b.itemsList)}this.collection.initData();this.openItemFormHashStartApp()}else x("Error - data is empty")},openItemFormHashStartApp:function(){var a=
|
81 |
+
this.itemFromHash;a&&this.collection&&(window.history.replaceState("",document.title,window.location.pathname+window.location.search),this.collection.tryOpenLightboxForID(a))},set likeItem(a){a&&(a.meta.likes||(a.meta.likes=0),a.meta.likes=parseInt(a.meta.likes)+1,a=a.ID,this.likesSet[a]||(this.likesSet[a]="like",this.viewsSet[a]&&delete this.viewsSet[a],a="action=flagallery_update_counters&json="+JSON.stringify({likes:[a],views:[a]}),h.request(a,this,m.COUNTERS_UPDATED),window.localStorage.setItem("fla_likesSet",
|
82 |
+
JSON.stringify(this.likesSet))))},set viewItem(a){var c=a.ID;this.updateItemLink(a);this.viewsSet[c]="view"},itemsCountersUpdate:function(){if(this.viewsSet){var a=[];for(key in this.viewsSet)a.push(key);0<a.length&&(a="action=flagallery_update_counters&json="+JSON.stringify({likes:[],views:a}),h.request(a,this,m.COUNTERS_UPDATED),this.viewsSet={})}},itemsCountersUpdateHandler:function(a){},createLightbox:function(a){if(a.params||a.params.collection||this.sliderConstructor){var c=a.params.collection;
|
83 |
+
a=a.params.index;var b=c.filteredCollection[a];this.slider&&this.slider.prepareToRemove();window.localStorage.getItem("fla_likesSet")&&(this.likesSet=JSON.parse(window.localStorage.getItem("fla_likesSet")));this.slider=this.sliderConstructor(this,h);this.slider.initByList(c.filteredCollection,a);c="#"+this.appName+"-"+b.ID;window.location.hash!=c&&window.history.pushState(null,null,c)}},updateItemLink:function(a){window.history.replaceState(null,null,this.itemHash(a))},removeLightbox:function(a){var c=
|
84 |
+
this,b=a.target;setTimeout(function(){b.view&&b.view.parentNode&&b.view.parentNode.removeChild(b.view);c.slider&&(c.slider=void 0)},400);this.itemFromHash&&window.history.back()},createModal:function(a){if(a.params.type&&a.params.item&&this.modalConstructor){var c=a.params.item;this.modal||(this.modal=this.modalConstructor(this,h));this.modal.type=a.params.type;var b=void 0;switch(a.params.type){case "share":b=this.modal.shareBar;break;case "info":b=this.modal.infoBar}b.item=c;this.modal.pushPage(b.view)}},
|
85 |
+
deleteModal:function(){this.modal&&delete this.modal},windowResizeHandler:function(a){this.collection&&this.collection.resize();this.slider&&this.slider.resizeHandler()}};(function(){window.addEventListener("load",function(){for(var a=document.body.getElementsByClassName("amron_skin"),c=0;c<a.length;c++){var b=a[c].id;this[b]=new v(this[b],b,a[c])}})})()}fla_amron_module();
|
skins/amron/js/module/fla_vit_itemMenu.js
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function fla_v2_masonry_itemMenu(m,n,p,q){function l(a,h,d){function g(a){"like"==a.getAttribute("type")&&a.getAttribute("like")||("bookmark"==a.getAttribute("type")&&a.getAttribute("bookmark")?a.style.backgroundColor=c.backgroundColor:(a.style.backgroundColor=c.backgroundColor,a.childNodes[0].style.fill=c.iconColor))}function b(a){if("click"==a.type){if(a=c.item){switch(this.getAttribute("type")){case "info":e(c.appName).appEventManager.dispatchGMEvent(f.GMEvent(k.NEED_MODAL,c,{type:"info",item:a}));
|
2 |
+
break;case "link":a.link&&window.open(a.link,e(c.appName).linkTargetWindow);break;case "like":g(this);c.delegate.likeItem=c.item;this.setAttribute("like",c.item.ID);this.style.cursor="default";this.style.pointerEvents="none";this.getElementsByTagName("svg")[0].style.fill="red";break;case "bookmark":g(this);c.delegate.bookmarkItem=c.item;c.updateForItem(c.item);break;case "share":e(c.appName).appEventManager.dispatchGMEvent(f.GMEvent(k.NEED_MODAL,c,{type:"share",item:a}));break;case "download":a=a.url;
|
3 |
+
var b=document.createElement("A");b.href=a;b.download=a.substr(a.lastIndexOf("/")+1);document.body.appendChild(b);b.click();document.body.removeChild(b);break;case "coments":a=a.sharelink+"/#comments";window.open(a,"_self");break;case "fullscreen":e(c.appName).appEventManager.dispatchGMEvent(f.GMEvent(k.FULLSCREEN_SWITCH,c,null)),g(this)}f.Device.desktop||g(this)}}else"mouseenter"==a.type?"bookmark"==this.getAttribute("type")&&this.getAttribute("bookmark")?this.style.backgroundColor=c.backgroundColorOver:
|
4 |
+
(this.style.backgroundColor=c.backgroundColorOver,this.childNodes[0].style.fill=c.iconColorOver):"mouseleave"==a.type&&g(this)}var c=this;this.delegate=a;this.appName=a.appName;this.item=void 0;this.view=document.createElement("div");this.view.className="fla_v2_CollectionItemInfoMenu";this.backgroundColor=h.backgroundColor;this.backgroundColorOver=h.backgroundColorOver;this.iconColor=h.iconColor;this.iconColorOver=h.iconColorOver;a=void 0;a=document.createElement("div");a.className="itemsButtons";
|
5 |
+
d&&a.classList.add("lightbox");a.setAttribute("type","link");a.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg>';
|
6 |
+
a.style.backgroundColor=this.backgroundColor;a.childNodes[0].style.fill=this.iconColor;this.linkButton=a;a.addEventListener("click",b,!1);a.addEventListener("mouseenter",b,!1);a.addEventListener("mouseleave",b,!1);this.view.appendChild(a);if(!d&&e(this.appName).collectionInfoEnable||d&&e(this.appName).sliderInfoEnable)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","info"),a.innerHTML='<svg height="100px" id="Capa_1" style="enable-background:new 0 0 46 100;" version="1.1" viewBox="0 0 46 100" width="46px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M35.162,0c6.696,0,10.043,4.567,10.043,9.789c0,6.522-5.814,12.555-13.391,12.555c-6.344,0-10.045-3.752-9.869-9.947 C21.945,7.176,26.35,0,35.162,0z M14.543,100c-5.287,0-9.164-3.262-5.463-17.615l6.07-25.457c1.057-4.077,1.23-5.707,0-5.707 c-1.588,0-8.451,2.816-12.51,5.59L0,52.406C12.863,41.48,27.662,35.072,34.004,35.072c5.285,0,6.168,6.361,3.525,16.148 L30.58,77.98c-1.234,4.729-0.703,6.359,0.527,6.359c1.586,0,6.787-1.963,11.896-6.041L46,82.377C33.488,95.1,19.83,100,14.543,100z "/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>',
|
7 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.infoButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);if(!d&&e(this.appName).collectionItemDiscuss||d&&e(this.appName).sliderItemDiscuss)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","coments"),a.innerHTML='<svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,1H4C1.8,1,0,2.8,0,5v10c0,2.2,1.8,4,4,4v3c0,0.9,1.1,1.3,1.7,0.7L9.4,19H20c2.2,0,4-1.8,4-4V5 C24,2.8,22.2,1,20,1z M14,13H8c-0.6,0-1-0.4-1-1c0-0.6,0.4-1,1-1h6c0.6,0,1,0.4,1,1C15,12.6,14.6,13,14,13z M16,9H8 C7.4,9,7,8.6,7,8c0-0.6,0.4-1,1-1h8c0.6,0,1,0.4,1,1C17,8.6,16.6,9,16,9z" id="message"/></g></svg>',
|
8 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.commentsButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);if(!d&&e(this.appName).collectionItemDownload||d&&e(this.appName).sliderItemDownload)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","download"),a.innerHTML='<svg version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><g id="save"><path d="M11.2,16.6c0.4,0.5,1.2,0.5,1.6,0l6-6.3C19.3,9.8,18.8,9,18,9h-4c0,0,0.2-4.6,0-7c-0.1-1.1-0.9-2-2-2c-1.1,0-1.9,0.9-2,2 c-0.2,2.3,0,7,0,7H6c-0.8,0-1.3,0.8-0.8,1.4L11.2,16.6z"/><path d="M19,19H5c-1.1,0-2,0.9-2,2v0c0,0.6,0.4,1,1,1h16c0.6,0,1-0.4,1-1v0C21,19.9,20.1,19,19,19z"/></g></g></svg>',
|
9 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.downloadButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);if(!d&&e(this.appName).collectionSocialShareEnabled||d&&e(this.appName).sliderSocialShareEnabled)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","share"),a.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1344 1024q133 0 226.5 93.5t93.5 226.5-93.5 226.5-226.5 93.5-226.5-93.5-93.5-226.5q0-12 2-34l-360-180q-92 86-218 86-133 0-226.5-93.5t-93.5-226.5 93.5-226.5 226.5-93.5q126 0 218 86l360-180q-2-22-2-34 0-133 93.5-226.5t226.5-93.5 226.5 93.5 93.5 226.5-93.5 226.5-226.5 93.5q-126 0-218-86l-360 180q2 22 2 34t-2 34l360 180q92-86 218-86z"/></svg>',
|
10 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.shareButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);e(this.appName).bookmarkEnable&&(a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","bookmark"),a.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1420 128q23 0 44 9 33 13 52.5 41t19.5 62v1289q0 34-19.5 62t-52.5 41q-19 8-44 8-48 0-83-32l-441-424-441 424q-36 33-83 33-23 0-44-9-33-13-52.5-41t-19.5-62v-1289q0-34 19.5-62t52.5-41q21-9 44-9h1048z"/></svg>',
|
11 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.bookMarkButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a));if(!d&&e(this.appName).collectionLikesEnabled||d&&e(this.appName).sliderLikesEnabled)a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","like"),a.innerHTML='<svg enable-background="new 0 0 51 46" height="46px" id="Layer_1" version="1.1" viewBox="0 0 51 46" width="51px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0 C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766 l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg>',
|
12 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.likeButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a);d&&!f.Device.ios&&(a=document.createElement("div"),a.className="itemsButtons",d&&a.classList.add("lightbox"),a.setAttribute("type","fullscreen"),a.innerHTML='<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g id="fullscreen" transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',
|
13 |
+
a.style.backgroundColor=this.backgroundColor,a.childNodes[0].style.fill=this.iconColor,this.fullscreenButton=a,a.addEventListener("click",b,!1),a.addEventListener("mouseenter",b,!1),a.addEventListener("mouseleave",b,!1),this.view.appendChild(a))}var f=n,e=f.moduleSettings,k={NEED_MODAL:"NEED_MODAL",FULLSCREEN_SWITCH:"FULLSCREEN_SWITCH"};l.prototype={updateForItem:function(a){this.item=a;this.delegate.likesSet&&this.likeButton&&(this.delegate.likesSet[a.ID]?(this.likeButton.getElementsByTagName("svg")[0].style.fill=
|
14 |
+
"red",this.likeButton.style.cursor="default",this.likeButton.style.pointerEvents="none",this.likeButton.setAttribute("like",a.ID)):(this.likeButton.childNodes[0].style.fill=this.iconColor,this.likeButton.style.cursor="pointer",this.likeButton.style.pointerEvents="all",this.likeButton.removeAttribute("like")));this.bookMarkButton&&(this.delegate.is_containIdInBookmarkSet(this.item.ID)||0===this.delegate.is_containIdInBookmarkSet(this.item.ID)?(this.bookMarkButton.setAttribute("bookmark",a.ID),this.bookMarkButton.getElementsByTagName("svg")[0].style.fill=
|
15 |
+
"red"):(this.bookMarkButton.removeAttribute("bookmark"),this.bookMarkButton.getElementsByTagName("svg")[0].style.fill=this.iconColor));a.link?(this.linkButton.style.display="block",this.linkButton.style.opacity="1",this.linkButton.style.cursor="pointer",this.linkButton.style.pointerEvents="all"):(this.linkButton.style.opacity="0",this.linkButton.style.display="none",this.linkButton.style.cursor="default",this.linkButton.style.pointerEvents="none")},resizeHandler:function(){var a=document.webkitIsFullScreen||
|
16 |
+
document.mozFullScreen||!1;this.fullscreenButton&&(this.fullscreenButton.innerHTML=a?'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g id="Core" transform="translate(-257.000000, -257.000000)"><g id="fullscreen-exit" transform="translate(257.000000, 257.000000)"><path d="M0,11 L3,11 L3,14 L5,14 L5,9 L0,9 L0,11 L0,11 Z M3,3 L0,3 L0,5 L5,5 L5,0 L3,0 L3,3 L3,3 Z M9,14 L11,14 L11,11 L14,11 L14,9 L9,9 L9,14 L9,14 Z M11,3 L11,0 L9,0 L9,5 L14,5 L14,3 L11,3 L11,3 Z" id="Shape"/></g></g></g></svg>':
|
17 |
+
'<svg height="14px" version="1.1" viewBox="0 0 14 14" width="14px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g transform="translate(-215.000000, -257.000000)"><g id="fullscreen" transform="translate(215.000000, 257.000000)"><path d="M2,9 L0,9 L0,14 L5,14 L5,12 L2,12 L2,9 L2,9 Z M0,5 L2,5 L2,2 L5,2 L5,0 L0,0 L0,5 L0,5 Z M12,12 L9,12 L9,14 L14,14 L14,9 L12,9 L12,12 L12,12 Z M9,0 L9,2 L12,2 L12,5 L14,5 L14,0 L9,0 L9,0 Z" id="Shape"/></g></g></g></svg>',
|
18 |
+
this.fullscreenButton.childNodes[0].style.fill=this.iconColor)}};return new l(m,p,q)};
|
skins/amron/js/module/fla_vit_modalWin.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function fla_v2_masonry_modalWin(m,v){function r(a,e){this.appName=a;a=document.createElement("div");a.className="fla_v2_ItemInfoBar";a.style.backgroundColor=k(this.appName).modalInfoBoxBgColor;if(!f.is_touch_device||f.is_touch_device&&f.mouseDetected){var c=document.createElement("div");c.className="fla_InfoBarCloseButton";c.innerHTML='<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>';
|
2 |
+
c.childNodes[0].style.fill=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTitleTextColor,1);c.addEventListener("click",function(){e.prepareToRemove()},!1);a.appendChild(c)}this.view=a}function t(a,e){this.appName=a;this.modal=e;a=document.createElement("div");a.className="fla_v2_ItemShare";a.style.backgroundColor=k(this.appName).modalInfoBoxBgColor;if(!f.is_touch_device||f.is_touch_device&&f.mouseDetected){var c=document.createElement("div");c.className="fla_InfoBarCloseButton";c.innerHTML='<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>';
|
3 |
+
c.childNodes[0].style.fill=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTitleTextColor,1);c.addEventListener("click",function(){e.prepareToRemove()},!1);a.appendChild(c)}this.view=a}function u(a){var e=this;this.type=void 0;this.delegate=a;this.appName=a.appName;this.view=document.createElement("div");this.view.className="fla_v2_Modal";this.closeButton=document.createElement("div");this.closeButton.className="flaModalCloseButton";this.closeButton.style.backgroundColor=k(this.appName).modaBgColor;
|
4 |
+
this.closeButton.style.opacity=k(this.appName).modalBgAlpha;this.closeButton.addEventListener("click",function(a){e.prepareToRemove(a)},!1);this.view.appendChild(this.closeButton);a=document.createElement("div");a.className="fla_flexe";this.view.appendChild(a);this.scrollView=void 0;this.dragging=!1;this._scrollViewTranslateY=0;this.startDragHandler=void 0;this.viewCompleted=!1;this.addToStage()}var f=v,k=f.moduleSettings;r.prototype={set item(a){var e=this.view;var c='<div class="fla_ItemTitle" style="color: '+
|
5 |
+
k(this.appName).modalInfoBoxTitleTextColor+'">'+a.title+"<br>";c=a.description&&""!=a.description?c+('<div class="fla_ItemDescription" style="color: '+k(this.appName).modalInfoBoxTextColor+'">'+a.description+"</div></span>"):c+"</div>";if(""!=c){var b=document.createElement("div");b.className="fla_DescriptionWrap";b.style.float="none";b.innerHTML=c;e.appendChild(b)}if(k(this.appName).infoBarExifEnable){c="";a.meta.data&&a.meta.data.camera&&(c+="<span class=gmItemMetaExifValue>"+a.meta.data.camera+
|
6 |
+
"</span></br>");var l=[];a.meta.data&&a.meta.data.focal_length&&l.push("<span class=gmItemMetaExifValue>"+a.meta.data.focal_length+"</span>");a.meta.data&&a.meta.data.aperture&&l.push("<span class=gmItemMetaExifValue>"+a.meta.data.aperture+"</span>");a.meta.data&&a.meta.data.shutter_speed&&l.push("<span class=gmItemMetaExifValue>"+a.meta.data.shutter_speed+"</span>");a.meta.data&&a.meta.data.iso&&l.push("<span class=gmItemMetaExifValue>ISO "+a.meta.data.iso+"</span>");for(b=0;b<l.length;b++)c+=l[b],
|
7 |
+
b<l.length-1&&(c+='<span class="fla_ItemMetaExifSeparator"> / </span>');""!=c&&(b=document.createElement("div"),b.className="fla_DescriptionWrap",b.style.color=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTextColor,1),b.style.fontSize="100%",b.innerHTML=c,e.appendChild(b))}k(this.appName).infoBarCountersEnable&&(b=document.createElement("div"),b.className="fla_DescriptionWrap",b.style.color=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTextColor,1),b.style.fontSize="100%",b.style.minWidth="190px",
|
8 |
+
c=document.createElement("div"),c.className="likesViewCom",c.innerHTML='<svg enable-background="new 0 0 167 93" height="93px" id="Layer_1" version="1.1" viewBox="0 0 167 93" width="167px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M83.25,29.25c-9.649,0-17.5,7.851-17.5,17.5s7.851,17.5,17.5,17.5s17.5-7.851,17.5-17.5 S92.899,29.25,83.25,29.25z"/><path d="M83.25,0.75c-45.84,0-83,46-83,46s37.16,46,83,46s83-46,83-46S129.09,0.75,83.25,0.75z M83.25,81.25 c-19.054,0-34.5-15.445-34.5-34.5c0-19.054,15.446-34.5,34.5-34.5s34.5,15.446,34.5,34.5C117.75,65.805,102.304,81.25,83.25,81.25z "/></g></svg><div class="counterTxt">'+
|
9 |
+
(a.meta.views?a.meta.views:0)+"</div>",c.getElementsByTagName("svg")[0].style.fill=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTitleTextColor,1),b.appendChild(c),c=document.createElement("div"),c.className="likesViewCom",c.innerHTML='<svg enable-background="new 0 0 51 46" height="46px" id="Layer_1" version="1.1" viewBox="0 0 51 46" width="51px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M46.188,4.101c-5.529-5.53-14.495-5.53-20.023,0L25.39,4.875l-0.996-0.774c-5.529-5.53-14.715-5.53-20.245,0 C-1.38,9.63-1.27,18.595,4.26,24.125l18.753,18.643c0.671,0.671,1.4,1.258,2.376,1.766c0.76-0.508,1.483-1.095,2.155-1.766 l18.643-18.643C51.717,18.595,51.717,9.63,46.188,4.101z""/></svg><div class="counterTxt">'+
|
10 |
+
(a.meta.likes?a.meta.likes:0)+"</div>",c.getElementsByTagName("svg")[0].style.fill=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTitleTextColor,1),b.appendChild(c),e.appendChild(b));k(this.appName).infoBarDateInfoEnable&&(b=document.createElement("div"),b.className="fla_DescriptionWrap",b.style.color=f.hexToRgbaStrin(k(this.appName).modalInfoBoxTextColor,1),b.style.fontSize="100%",c="",a.meta.data&&a.meta.data.created_timestamp&&(a=a.meta.data.created_timestamp.split(" "),l="-- / --",0<a.length&&(l=
|
11 |
+
(a[0]?a[0]:"")+" "+(a[1]?a[1]:"")+" "+(a[1]?a[2]:"")),c+='<span class="fla_ItemMetaKey">Taken: </span><span class="fla_ItemMetaValue">'+l+"</span>"),b.innerHTML='<div class="fla_ItemsDate">'+c+"</div>",""!=c&&e.appendChild(b))}};t.prototype={set item(a){function e(c){if(!l.dragging){c=this.getAttribute("type");var d="menubar=no,toolbar=no,resizable=yes,scrollbars=yes, top=200, left="+(screen.width-600)/2+", height=450,width=600";switch(c){case "copy":p&&window.open(b,"_blank");c=document.getElementById("fla_SH_title_copy");
|
12 |
+
d=this.getElementsByClassName("fla_ItemCopyLink")[0].getElementsByTagName("svg")[0];window.getSelection().selectAllChildren(c);try{document.execCommand("copy"),window.getSelection().removeAllRanges(),d.style.fill="green",c.style.color="green",p=!0}catch(q){window.open(b,"_blank")}break;case "facebook":window.open("https://www.facebook.com/share.php?u="+b,"",d);break;case "twitter":window.open("https://twitter.com/intent/tweet?text="+encodeURI(a.title)+"&url="+b,"",d);break;case "pinterest":window.open("http://www.pinterest.com/pin/create/button/?url="+
|
13 |
+
b+"&media="+a.url+"&description="+encodeURI(a.title),"",d)}}}var c=this.view,b=a.share_link,l=this.modal;var d='<div class="fla_ItemTitle" style="color: '+k(this.appName).modalInfoBoxTitleTextColor+'">'+k(this.appName).shareTitlePlaceHolder+"<br>";d=a.title&&""!=a.title||a.name&&""!=a.nema?d+('<div class="fla_ItemDescription" style="color: '+k(this.appName).modalInfoBoxTextColor+'">'+(a.title?a.title:a.name)+"</div></span>"):d+"</div>";if(""!=d){var g=document.createElement("div");g.className="fla_DescriptionWrap";
|
14 |
+
g.style.float="none";g.innerHTML=d;c.appendChild(g)}g=document.createElement("div");g.className="fla_DescriptionWrap";g.style.float="none";g.style.padding="0px 20px";c.appendChild(g);var p=!1;d=document.createElement("div");d.setAttribute("type","facebook");d.className="fla_ItemShareButtonWrap";d.id="fla_edia_share_fb";var h=document.createElement("div");h.className="fla_ItemShareButton";h.innerHTML='<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg><div class="fla_SH_title" style="color: #3b5998">Facebook</div>';
|
15 |
+
h.getElementsByTagName("svg")[0].style.fill="#3b5998";d.appendChild(h);d.addEventListener("mouseup",e,!1);f.is_touch_device&&d.addEventListener("touchend",e,!1);g.appendChild(d);d=document.createElement("div");d.setAttribute("type","twitter");d.className="fla_ItemShareButtonWrap";d.id="fla_edia_share_tw";h=document.createElement("div");h.className="fla_ItemShareButton";h.innerHTML='<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M30 7.3c-1 .5-2.1.8-3.3.9 1.2-.7 2.1-1.8 2.5-3.2-1.1.7-2.3 1.1-3.6 1.4-1-1.1-2.5-1.8-4.2-1.8-3.2 0-5.7 2.6-5.7 5.7 0 .5.1.9.1 1.3-4.8-.2-9-2.5-11.8-6-.5.9-.8 1.9-.8 3 0 2 1 3.8 2.6 4.8-.9 0-1.8-.3-2.6-.7v.1c0 2.8 2 5.1 4.6 5.6-.5.1-1 .2-1.5.2-.4 0-.7 0-1.1-.1.7 2.3 2.9 3.9 5.4 4-2 1.5-4.4 2.5-7.1 2.5-.5 0-.9 0-1.4-.1 2.5 1.6 5.6 2.6 8.8 2.6 10.6 0 16.3-8.8 16.3-16.3v-.7c1.1-1 2-2 2.8-3.2z"></path></svg><div class="fla_SH_title" style="color: #00aced">Twitter</div>';
|
16 |
+
h.getElementsByTagName("svg")[0].style.fill="#00aced";d.appendChild(h);d.addEventListener("mouseup",e,!1);f.is_touch_device&&d.addEventListener("touchend",e,!1);g.appendChild(d);d=document.createElement("div");d.setAttribute("type","pinterest");d.className="fla_ItemShareButtonWrap";d.id="fla_edia_share_pin";h=document.createElement("div");h.className="fla_ItemShareButton";h.innerHTML='<svg version="1.1" viewBox="0 0 32 32" width="32" height="32" aria-hidden="false"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg><div class="fla_SH_title" style="color: #cc2127">Pinterest</div>';
|
17 |
+
h.getElementsByTagName("svg")[0].style.fill="#cc2127";d.appendChild(h);d.addEventListener("mouseup",e,!1);f.is_touch_device&&d.addEventListener("touchend",e,!1);g.appendChild(d);d=document.createElement("div");d.setAttribute("type","copy");d.className="fla_ItemShareButtonWrap";d.id="fla_edia_share_link";h=document.createElement("div");h.className="fla_ItemCopyLink";h.innerHTML='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"><path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/></svg><div id="fla_SH_title_copy" class="fla_SH_title" style="color: #7d7d7d">'+
|
18 |
+
b+"</div>";h.getElementsByTagName("svg")[0].style.fill="#7d7d7d";d.appendChild(h);d.addEventListener("mouseup",e,!1);f.is_touch_device&&d.addEventListener("touchend",e,!1);g.appendChild(d);c.appendChild(g)}};u.prototype={get infoBar(){return new r(this.appName,this)},get shareBar(){return new t(this.appName,this)},addToStage:function(){var a=this,e=document.getElementsByTagName("body")[0];document.getElementsByTagName("html");this.view.style.zIndex=f.findHighestZIndex(e)+1;f.disableBodyScrollSlider();
|
19 |
+
m.slider?m.slider.view.appendChild(this.view):e.appendChild(this.view);setTimeout(function(){a.view.style.opacity="1"},30);document.addEventListener("keydown",a.keydownHandler(),!1)},prepareToRemove:function(a){var e=this;document.removeEventListener("keydown",this.handlerKB,!1);this.scrollView.removeEventListener("touchstart",this.startDragHandler,f.passiveListener);this.scrollView.removeEventListener("mousedown",this.startDragHandler,!1);e.view.style.opacity="0";this.delegate.slider||f.enableBodyScrollSlider();
|
20 |
+
setTimeout(function(){e.view&&e.view.parentNode&&e.view.parentNode.removeChild(e.view);delete e.view;e.delegate.deleteModal()},400)},keydownHandler:function(a){var e=this;e.handlerKB=function(a){switch(a.keyCode){case 27:e.prepareToRemove()}};return e.handlerKB},pushPage:function(a){this.viewCompleted=!1;this.scrollView&&this.scrollView.parentNode&&this.scrollView.parentNode.removeChild(this.scrollView);this.view.appendChild(a);this.scrollView=a;this.updateControlls()},updateControlls:function(){this.scrollView&&
|
21 |
+
!this.viewCompleted&&(this.startDragHandler=this.startDrag(),this.scrollView.addEventListener("touchstart",this.startDragHandler,f.passiveListener),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0)},get bottom(){return this.view.clientHeight-this.scrollView.clientHeight-20},set scrollViewTranslateY(a){this._scrollViewTranslateY=a;this.scrollView.style.transform="translateY("+a+"px)";a=Math.max(k(this.appName).modalBgAlpha-Math.abs(a/200),0);this.closeButton.style.opacity=
|
22 |
+
a},get scrollViewTranslateY(){return this._scrollViewTranslateY},startDrag:function(){function a(){g=0<b.scrollViewTranslateY?.2*g+.1*(0-b.scrollViewTranslateY):b.scrollViewTranslateY<b.bottom?.2*g+.1*(b.bottom-b.scrollViewTranslateY):.95*g;b.scrollViewTranslateY+=g;.04>Math.abs(g)?(q(n),b.dragging=!1):n=m(a)}function e(a){a.preventDefault();if(a=k-(a.touches&&a.touches[0]?a.touches[0].pageY:a.pageY))b.dragging=!0;b.scrollViewTranslateY=d-a;p=h;h=b.scrollViewTranslateY;g=h-p}function c(d){d.preventDefault();
|
23 |
+
b.scrollView.style.transition="none";f.is_touch_device&&(document.removeEventListener("touchmove",e,f.passiveListener),document.removeEventListener("touchend",c,f.passiveListener),document.removeEventListener("touchcancel",c,!1));document.removeEventListener("mousemove",e,!1);document.removeEventListener("mouseup",c,!1);document.removeEventListener("oncontextmenu",c,!1);if(0>=b.bottom){if(b.scrollViewTranslateY<b.bottom-50||50<b.scrollViewTranslateY){b.prepareToRemove();return}}else if(-50>b.scrollViewTranslateY||
|
24 |
+
50<b.scrollViewTranslateY){b.prepareToRemove();return}(0!=g||0<b.scrollViewTranslateY||b.scrollViewTranslateY<b.bottom)&&b.dragging&&(n=m(a))}var b=this,k=void 0,d=0,g=0,p=0,h=0,n=void 0,m=f.requestAnimationFrame,q=f.cancelAnimationFrame;return function(a){a?(a.preventDefault(),a.originalEvent&&(a=a.originalEvent),g=0,h=b.scrollViewTranslateY,k=a.touches&&a.touches[0]?a.touches[0].pageY:a.pageY,d=b.scrollViewTranslateY,q(n),f.is_touch_device&&(document.addEventListener("touchmove",e,f.passiveListener),
|
25 |
+
document.addEventListener("touchend",c,f.passiveListener),document.addEventListener("touchcancel",c,!1)),document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",c,!1),document.addEventListener("oncontextmenu",c,!1)):(g=0,d=b.scrollViewTranslateY,q(n))}}};return new u(m)};
|
skins/amron/js/module/fla_vit_slider.js
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(l,r,k){l!=Array.prototype&&l!=Object.prototype&&(l[r]=k.value)};$jscomp.getGlobal=function(l){return"undefined"!=typeof window&&window===l?l:"undefined"!=typeof global&&null!=global?global:l};$jscomp.global=$jscomp.getGlobal(this);
|
2 |
+
$jscomp.polyfill=function(l,r,k,p){if(r){k=$jscomp.global;l=l.split(".");for(p=0;p<l.length-1;p++){var n=l[p];n in k||(k[n]={});k=k[n]}l=l[l.length-1];p=k[l];r=r(p);r!=p&&null!=r&&$jscomp.defineProperty(k,l,{configurable:!0,writable:!0,value:r})}};
|
3 |
+
$jscomp.polyfill("Math.hypot",function(l){return l?l:function(l,k,p){l=Number(l);k=Number(k);var n,m=Math.max(Math.abs(l),Math.abs(k));for(n=2;n<arguments.length;n++)m=Math.max(m,Math.abs(arguments[n]));if(1E100<m||1E-100>m){if(!m)return m;l/=m;k/=m;var e=l*l+k*k;for(n=2;n<arguments.length;n++){var f=Number(arguments[n])/m;e+=f*f}return Math.sqrt(e)*m}e=l*l+k*k;for(n=2;n<arguments.length;n++)f=Number(arguments[n]),e+=f*f;return Math.sqrt(e)}},"es6","es3");
|
4 |
+
function fla_v2_masonry_slider(l,r){function k(a){function b(a){switch(a.type){case "mouseenter":d.selector.style.opacity="1";break;case "mouseleave":d._selected||(d.selector.style.opacity="0")}}var d=this;this.delegate=a;this.appName=a.appName;this.item=void 0;this.view=document.createElement("div");this.view.className="fla_v2_ScrollBarItem";e.miniScreen&&this.view.classList.add("miniScreen");this.bgImg=document.createElement("div");this.bgImg.className="fla_v2_ScrollBarItemBg";this.view.appendChild(this.bgImg);
|
5 |
+
this.imgSRC=void 0;this.selector=document.createElement("div");this.selector.className="fla_v2_ScrollBarItemHover";this.selector.style.borderColor=f(this.appName).sliderThumbBarHoverColor;this.view.appendChild(this.selector);this._selected=!1;this.view.addEventListener("mouseenter",b,!1);this.view.addEventListener("mouseleave",b,!1)}function p(a){this.delegate=a;this.appName=a.appName;this.itemsList=[];this.thumbSize=e.Size(100,80);this.view=document.createElement("div");this.view.className="fla_v2_TermScrollBarWrap";
|
6 |
+
e.miniScreen&&this.view.classList.add("miniScreen");this.scrollView=document.createElement("div");this.scrollView.className="fla_v2_ScrollView";this.scrollView.style.width="0px";this.view.appendChild(this.scrollView);this.thumbsList=[];this._scrollWidth=this.itemsInStageCount=0;this.dragging=this.viewCompleted=!1;this.scrollViewTranslateX=0;this.activAudioIndex=this.activIndex=this.startDragHandler=void 0}function n(a){this.delegate=a;this.id=this.item=void 0;this.appName=a.appName;this.itemIndex=
|
7 |
+
void 0;this.positionIndex=0;this.view=document.createElement("div");this.view.className="fla_v2_SliderPage";this.itemInner=document.createElement("div");this.itemInner.className="fla_sliderPage_inner";this.view.appendChild(this.itemInner);this.iconHolder=document.createElement("div");this.iconHolder.className="fla_iconHolder";this.preloader=e.createPreloaderView(e.hexToRgbaStrin(f(this.appName).sliderPreloaderColor,1));this.preloader.style.display="none";this.view.appendChild(this.preloader);this.view.appendChild(this.iconHolder);
|
8 |
+
f(this.appName).key||(a=f(this.appName).tv.cloneNode(!0),a.style.left="50%",a.style.top="50%",a.style.transform="translateX(-50%) translateY(-50%)",a.style.transform="translateX(-50%) translateY(-50%)",a.style.zIndex="999999",this.view.appendChild(a));this.size=e.Size(0,0);this.imgSize=e.Size(0,0);this._imageFrame=e.Rect(0,0,0,0);this.maxYoffset=this.maxXoffset=this.height=this.width=0;this.MaxScale=4;this.newScaleMW=this.newScale=this.scale=this.imgScale=1;this._viewTranslate=e.Point(0,0);this.origin=
|
9 |
+
e.Point(0,0);this.animaSliderRender=this.boundingBoxScale=this.boundingBox=void 0;this.newY=this.oldY=this.newX=this.oldX=this.speedY=this.speedX=0;this.isBlockDragingMem=this.isBlockDraging=this.draging=!1;this.startDistForZoom=this.startGlobalPoint=this.startScale=void 0}function m(a){this.delegate=a;this.appName=this.delegate.appName;this.id=this.appName+"sliderAView_";this.itemsList=void 0;this.visibleBounds=e.Rect(0,0,0,0);this.needHideControlls=this.isControllsShow=!1;this.firsrTap=void 0;this.removing=
|
10 |
+
!1;this.intitByTermDelay=this.createlayoutDelay=void 0;this.view=document.createElement("div");this.view.className="fla_v2_ColectionSlider";e.Device.desktop||(this.view.style.height="100%");this.view.id=this.id+"main";this.resizeDelay=void 0;this.size=e.Size(0,0);a=document.createElement("div");a.className="fla_SliderBg";a.style.backgroundColor=f(this.appName).sliderBgColor;this.background=a;this.view.appendChild(a);this.sliderPages=[];this.zoomingDrag=this.dragging=!1;this._scrollViewTranslateY=
|
11 |
+
this._scrollViewTranslateX=this.speedY=this.speedX=0;this.currentItemIndex=this.startDragHandler=void 0;this.startItemIndex=0;this.items=[];this.itemsAmount=0;this.animaSliderRender=this.zoomingPage=this.pageInFocusPrev=this.pageInFocus=this._itemNum=void 0;this.slider=document.createElement("div");this.slider.className="fla_v2_SlidesWrap";this.view.appendChild(this.slider);this.footer=document.createElement("div");this.footer.className="fla_v2_SlidesFooter";this.footer.style.backgroundImage="linear-gradient(180deg,"+
|
12 |
+
e.hexToRgbaStrin(f(this.appName).sliderHeaderFooterBgColor,0)+","+e.hexToRgbaStrin(f(this.appName).sliderHeaderFooterBgColor,1)+")";this.view.appendChild(this.footer);this.header=document.createElement("div");this.header.className="fla_v2_SlidesHeader";this.header.style.backgroundImage="linear-gradient(0deg,"+e.hexToRgbaStrin(f(this.appName).sliderHeaderFooterBgColor,0)+","+e.hexToRgbaStrin(f(this.appName).sliderHeaderFooterBgColor,1)+")";e.miniScreen&&this.header.classList.add("fla_v2_SlidesHeaderMiniScreen");
|
13 |
+
this.view.appendChild(this.header);this.copyR=this.copyRight();this.createControlls();this.addToStage()}var e=r,f=e.moduleSettings,A=e.trace,q=e.cancelAnimationFrame,t=e.requestAnimationFrame,v=e.passiveListener;k.prototype={initByItem:function(a){this.item=a;this.imgSRC=a.itemViewThumbSrc;this.bgImg.style.backgroundImage="url("+this.imgSRC+")";this.type=a.type;if("audio"==this.type||"video"==this.type){this.hover=document.createElement("div");this.hover.className="fla_v2_ScrollBarItemLink";this.hover.style.backgroundColor=
|
14 |
+
e.hexToRgbaStrin("#ffffff",.6);switch(this.type){case "audio":this.hover.innerHTML='<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
15 |
+
break;case "video":"vimeo"==this.item.mime_type.split("/")[1]?this.hover.innerHTML='<svg enable-background="new 0 0 56.693 56.693" height="56.693px" id="Layer_1" version="1.1" viewBox="-5 -5 66.693 66.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M3.602,22.974l2.01,2.636c0,0,4.146-3.267,5.528-1.634c1.382,1.634,6.656,21.357,8.417,24.997 c1.537,3.192,5.777,7.413,10.426,4.397c4.646-3.014,20.098-16.205,22.863-31.781c2.764-15.574-18.594-12.313-20.854,1.256 c5.652-3.395,8.671,1.38,5.778,6.784c-2.889,5.399-5.527,8.921-6.908,8.921c-1.379,0-2.441-3.612-4.021-9.928 c-1.635-6.53-1.624-18.291-8.416-16.958C12.019,12.921,3.602,22.974,3.602,22.974z"/></svg>':
|
16 |
+
this.hover.innerHTML='<svg data-name="Layer 21" height="24" id="Layer_21" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title/><path d="M21.80731,7.805a2.79915,2.79915,0,0,0-2.54907-2.53906C17.69061,5.13586,15.36707,5,12.50012,5c-3.45251,0-6.05865.14105-7.74353.27332A2.79932,2.79932,0,0,0,2.1925,7.815C2.08936,8.90021,2,10.33344,2,12.0423c0,1.66632.08862,3.07422.19128,4.14594a2.79852,2.79852,0,0,0,2.56384,2.53833C6.43994,18.85883,9.04657,19,12.50012,19c2.86694,0,5.19049-.13586,6.75812-.266a2.799,2.799,0,0,0,2.54907-2.539C21.91052,15.11548,22,13.69189,22,12S21.91052,8.88452,21.80731,7.805ZM9.77594,14.93878V9.06122L15.574,12Z"/></svg>'}this.view.appendChild(this.hover)}},
|
17 |
+
set musicIdentifireStatus(a){},select:function(a){this.selector.style.opacity=a?"1":"0";this._selected=a}};p.prototype={initItemsList:function(a){this.itemsList=a;a=new k(this);this.scrollView.appendChild(a.view);this.thumbSize.width=a.view.clientWidth;this.thumbSize.height=a.view.clientHeight;this.scrollView.removeChild(a.view);this.prepare();this.view.style.height=this.scrollView.style.height=this.thumbSize.height+"px";this._scrollWidth=this.thumbSize.width*this.itemsList.length;this.scrollView.style.width=
|
18 |
+
this._scrollWidth+5+"px";this.scrollViewTranslateX=0;this.updateView()},addThumbByIndex:function(a){function b(a){"touchend"!=a.type&&"mouseup"!=a.type||d.dragging||(d.delegate.gotoPageByNum(parseInt(this.getAttribute("fla_Index"))),d.startDragHandler&&d.startDragHandler())}if(!this.thumbsList[a]){var d=this,c=new k(this);this.thumbsList[a]=c;this.itemsInStageCount+=1;e.is_touch_device&&c.view.addEventListener("touchend",b,!1);c.view.addEventListener("mouseup",b,!1);c.view.style.left=this.thumbSize.width*
|
19 |
+
a+"px";this.scrollView.appendChild(c.view);c.initByItem(this.itemsList[a]);c.view.setAttribute("fla_Index",a)}},changeAudioStatusForIndex:function(a,b){!this.activAudioIndex&&0!==this.activAudioIndex||a==this.activAudioIndex||(this.thumbsList[this.activAudioIndex].musicIdentifireStatus="ended");this.thumbsList[a].musicIdentifireStatus=b.type;this.activAudioIndex=a},prepare:function(){this._scrollWidth=0;this.scrollView.style.transform="translateX(0px)";this.scrollView.style.width="0px";this._scrollViewTranslateX=
|
20 |
+
0},resize:function(){this.updateView()},selectThumbByIndex:function(a){if(void 0!==a&&0!=this.itemsList.length){var b;(this.activIndex||0===this.activIndex)&&(b=this.thumbsList[this.activIndex])&&b.select(!1);this.thumbsList[a]||this.addThumbByIndex(a);if(b=this.thumbsList[a]){b.select(!0);b=this.thumbSize.width*a;var d=b+this.scrollViewTranslateX,c=d+this.thumbSize.width;this.scrollView.style.transition="none";if(0>d||0>c)this.scrollView.style.transition="transform .4s",this.scrollViewTranslateX=
|
21 |
+
-b;if(d>this.view.clientWidth||c>this.view.clientWidth)this.scrollView.style.transition="transform .4s",this.scrollViewTranslateX=this.view.clientWidth-this.thumbSize.width-b;this._scrollWidth>this.view.clientWidth&&(this.scrollViewTranslateX=Math.max(this.scrollViewTranslateX,-(this._scrollWidth-this.view.clientWidth)))}this.activIndex=a}},updateView:function(){this.selectThumbByIndex(this.activIndex);1>this.view.clientWidth/this._scrollWidth?(this.scrollViewTranslateX=this._scrollViewTranslateX,
|
22 |
+
this.viewCompleted||(this.scrollView.classList.add("fla_grabbable"),this.startDragHandler=this.startDrag(),e.is_touch_device&&this.scrollView.addEventListener("touchstart",this.startDragHandler,v),this.scrollView.addEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!0)):(this.scrollView.classList.remove("fla_grabbable"),this.scrollViewTranslateX=(this.view.clientWidth-this._scrollWidth)/2,this.viewCompleted&&(e.is_touch_device&&this.scrollView.removeEventListener("touchstart",
|
23 |
+
this.startDragHandler,v),this.scrollView.removeEventListener("mousedown",this.startDragHandler,!1),this.viewCompleted=!1))},set scrollViewTranslateX(a){this._scrollViewTranslateX=a;this.scrollView.style.transform="translateX("+a+"px)";if(this.itemsList.length!=this.itemsInStageCount){var b=Math.max(Math.floor(-a/this.thumbSize.width),0);for(a=Math.min(b+Math.ceil(this.view.clientWidth/this.thumbSize.width),this.itemsList.length-1);b<=a;b++)this.addThumbByIndex(b)}},get scrollViewTranslateX(){return this._scrollViewTranslateX},
|
24 |
+
startDrag:function(a){function b(){return-(h._scrollWidth-h.view.clientWidth+h.view.getBoundingClientRect().left)}function d(){u=0<h.scrollViewTranslateX?.2*u+.1*(0-h.scrollViewTranslateX):h.scrollViewTranslateX<b()?.2*u+.1*(b()-h.scrollViewTranslateX):.95*u;h.scrollViewTranslateX+=u;.04>Math.abs(u)?q(m):m=t(d)}function c(a){a.preventDefault();if(a=f-(a.touches&&a.touches[0]?a.touches[0].pageX:a.pageX))h.dragging=!0;h.scrollViewTranslateX=l-a;k=n;n=h.scrollViewTranslateX;u=n-k}function g(a){a.preventDefault();
|
25 |
+
h.scrollView.style.transition=null;e.is_touch_device&&(document.removeEventListener("touchmove",c,v),document.removeEventListener("touchend",g,v),document.removeEventListener("touchcancel",g,!1));document.removeEventListener("mousemove",c,!1);document.removeEventListener("mouseup",g,!1);document.removeEventListener("oncontextmenu",g,!1);if(0!=u||0<h.scrollViewTranslateX||h.scrollViewTranslateX<b())m=t(d);h.dragging=!1}var h=this,f=void 0,l=void 0,u=0,k=0,n=0,m=void 0;return function(a){a?(e.is_touch_device||
|
26 |
+
a.preventDefault(),a.button&&0!==a.button||(u=0,n=h.scrollViewTranslateX,f=a.touches&&a.touches[0]?a.touches[0].pageX:a.pageX,l=h.scrollViewTranslateX,q(m),e.is_touch_device&&(document.addEventListener("touchmove",c,v),document.addEventListener("touchend",g,v),document.addEventListener("touchcancel",g,!1)),document.addEventListener("mousemove",c,!1),document.addEventListener("mouseup",g,!1),document.addEventListener("oncontextmenu",g,!1))):(u=0,l=h.scrollViewTranslateX,q(m))}}};n.prototype={initByItem:function(a){if(this.id!=
|
27 |
+
a.ID){var b=this;this.item=a;this.id=a.ID;1!=this.scale&&(this.scale=1,this.viewTranslate=e.Point(0,0));this.itemInner.firstChild&&this.itemInner.removeChild(this.itemInner.firstChild);this.itemInner.appendChild(a.webView);this.itemImg=a.webView;a.webView.complete?(this.imgSize.width=this.itemImg.naturalWidth,this.imgSize.height=this.itemImg.naturalHeight,this.isInScale&&this.normalize(),this.fit(!1)):(this.preloader.style.display="block",a.webView.addEventListener("load",function(){b.preloader.style.display=
|
28 |
+
"none";b.imgSize.width=this.naturalWidth;b.imgSize.height=this.naturalHeight;b.isInScale&&b.normalize();b.fit(!1)},!1));switch(a.type){case "audio":this.iconHolder.innerHTML='<svg version="1.1" viewBox="0 0 58 94" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M37.992,0h-8.021v65.358c-4.435-1.706-10.174-1.73-15.835,0.328C3.994,69.377-2.049,78.355,0.638,85.736 c2.688,7.383,13.088,10.374,23.229,6.683c8.614-3.134,14.249-10.082,14.111-16.626l0.014-53.451 c13.986,2.204,14.943,19.884,13.268,24.842c-0.636,1.879,0.484,3.286,2.598,0C68.938,23.726,37.992,13.376,37.992,0z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
29 |
+
this.view.classList.add("info_icon");break;case "video":this.view.classList.add("info_icon");this.iconHolder.innerHTML='<svg version="1.1" viewBox="0 0 50 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M48.479,27.435L5.672,0.915C2.553-1.132,0,0.374,0,4.261v51.48c0,3.885,2.553,5.391,5.672,3.346l42.807-26.52 c0,0,1.521-1.07,1.521-2.566S48.479,27.435,48.479,27.435z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></svg>';
|
30 |
+
this.iconHolder.firstChild.style.marginLeft="7px";break;default:this.view.classList.remove("info_icon")}}},set posX(a){this.view.style.left=this.size.width*a+"px";this.positionIndex=a},resize:function(){this.size.width=this.view.clientWidth;this.size.height=this.view.clientHeight;this.posX=this.positionIndex;this.isInScale&&this.normalize();this.fit(!1)},fit:function(a){if(this.itemImg){a=0;f(this.appName).sliderThumbBarEnable&&700<this.size.height&&(a=100);!f(this.appName).sliderThumbBarEnable&&
|
31 |
+
700<this.size.height&&(a=48);"video"==this.item.type&&(a=40);var b=e.getFrameForBoxWithMode(this.imgSize,e.Size(this.size.width-4,this.size.height-2*a),!1,!1);b.x+=2;b.y+=a;this.imgScale=Math.min(this.imgSize.width/b.width,this.MaxScale);this.item.webImgFrame.x!=b.x||this.item.webImgFrame.y!=b.y||this.item.webImgFrame.width!=b.width||this.item.webImgFrame.height!=b.height?(this.imageFrame=b,this.item.webImgFrame=b):this._imageFrame=b;this.videoWrap&&(this.videoWrapFrame=b)}},set imageFrame(a){this.itemImg.style.left=
|
32 |
+
a.x+"px";this.itemImg.style.top=a.y+"px";this.itemImg.style.width=a.width+"px";this.itemImg.style.height=a.height+"px";this._imageFrame=a},get imageFrame(){return this._imageFrame},set videoWrapFrame(a){this.videoWrap.style.width=a.width+"px";this.videoWrap.style.height=a.height+"px";this.videoWrap.style.left=a.x+"px";this.videoWrap.style.top=a.y+"px"},checkOffset:function(a,b){if(b!==this.boundingBoxScale){var d=this.imageFrame.width*(b?b:1),c=this.imageFrame.height*(b?b:1),g=this.imageFrame.x*(b?
|
33 |
+
b:1),h=this.imageFrame.y*(b?b:1);this.boundingBox={left:d>this.size.width?-g:(this.size.width-this.size.width*b)/2,top:c>this.size.height?-h:(this.size.height-this.size.height*b)/2,right:d>this.size.width?this.size.width-(g+d):(this.size.width-this.size.width*b)/2,bottom:c>this.size.height?this.size.height-(h+c):(this.size.height-this.size.height*b)/2};this.boundingBoxScale=b}b=a.x>this.boundingBox.left?this.boundingBox.left:a.x;b=b<this.boundingBox.right?this.boundingBox.right:b;a=a.y>this.boundingBox.top?
|
34 |
+
this.boundingBox.top:a.y;a=a<this.boundingBox.bottom?this.boundingBox.bottom:a;return e.Point(b,a)},is_pointInItem:function(a){var b=this.viewTranslate.x+this.size.width/2*this.newScale-this.imageFrame.width/2*this.newScale,d=b+this.imageFrame.width*this.newScale,c=this.size.height/2*this.newScale+this.viewTranslate.y-this.imageFrame.height/2*this.newScale,e=c+this.imageFrame.height*this.scale;return a.x>b&&a.x<d&&a.y>c&&a.y<e?!0:!1},normalize:function(a){q(this.animaSliderRender);a?this.renderTransformTo(e.Point(0,
|
35 |
+
0),1):(this.scale=this.newScale=this.newScaleMW=1,this.viewTranslate=e.Point(0,0),this.origin=e.Point(0,0))},get isInScale(){return 1==this.newScale&&0==this.origin.x&&0==this.origin.y?!1:!0},zoomIn:function(a,b){"audio"!=this.item.type&&"video"!=this.item.type&&(q(this.animaSliderRender),b=e.Point(b.x-(b.x-this.viewTranslate.x)/this.scale*a,b.y-(b.y-this.viewTranslate.y)/this.scale*a),this.renderTransformTo(this.checkOffset(b,a),a))},zoomByScaleIter:function(a,b){"audio"!=this.item.type&&"video"!=
|
36 |
+
this.item.type&&(a=0>a?1.065:.935,q(this.animaSliderRender),this.newScale*a>this.MaxScale&&(a=this.MaxScale/this.newScale),1>this.newScale*a&&(a=1/this.newScale),this.newScale*=a,this.origin=e.Point(b.x-a*(b.x-this.origin.x),b.y-a*(b.y-this.origin.y)),this.renderTransformTo(this.checkOffset(this.origin,this.newScale),this.newScale))},zoomByScaleDeltaToPoint:function(a,b,d){if("audio"!=this.item.type&&"video"!=this.item.type){q(this.animaSliderRender);a=this.startDistForZoom/this.startScale*(a/this.startDistForZoom)/
|
37 |
+
(this.startDistForZoom/this.startScale)*this.startScale;d=0;a>this.MaxScale&&(d=.8*-(a-this.MaxScale));a+=d;d=this.startGlobalPoint.x-(this.startGlobalPoint.x-this.startTranslate.x)/this.newScale*a;var c=this.startGlobalPoint.y-(this.startGlobalPoint.y-this.startTranslate.y)/this.newScale*a;b=e.Point(d-b.x,c-b.y);this.scale=this.newScale=a;this.viewTranslate=b;this.startTranslate=e.Point(d,c)}},set viewTranslate(a){this._viewTranslate=a;this.itemInner.style.transform="matrix("+this.scale+", 0, 0, "+
|
38 |
+
this.scale+", "+a.x+", "+a.y+")"},get viewTranslate(){return this._viewTranslate},renderTransformTo:function(a,b){function d(){g=.05*g+.1*(a.x-c.viewTranslate.x);h=.05*h+.1*(a.y-c.viewTranslate.y);b&&(f=.05*f+.1*(b-c.scale));var l=c.viewTranslate.x;l+=g;var k=c.viewTranslate.y;k+=h;b&&(c.scale+=f);c.viewTranslate=e.Point(l,k);.02>Math.abs(g)&&.02>Math.abs(h)&&.02>Math.abs(f)?(q(c.animaSliderRender),b&&(c.scale=b),c.viewTranslate=e.Point(a.x,a.y)):c.animaSliderRender=t(d)}var c=this;q(c.animaSliderRender);
|
39 |
+
this.origin=a;this.newScale=b;var g=0,h=0,f=0;c.animaSliderRender=t(d)},renderGlidingTransform:function(){function a(){b.speedX*=d;b.speedY*=c;var g=b.viewTranslate.x;g+=b.speedX;var h=b.viewTranslate.y;h+=b.speedY;if(g>b.boundingBox.left||g<b.boundingBox.right)b.speedX*=-1,g=(g>b.boundingBox.left?b.boundingBox.left:g<b.boundingBox.right?b.boundingBox.right:g)+b.speedX,d=.75;if(h>b.boundingBox.top||h<b.boundingBox.bottom)b.speedY*=-1,h=(h>b.boundingBox.top?b.boundingBox.top:h<b.boundingBox.bottom?
|
40 |
+
b.boundingBox.bottom:h)+b.speedY,c=.75;b.origin=e.Point(g,h);b.viewTranslate=e.Point(g,h);.02>Math.abs(b.speedX)&&.02>Math.abs(b.speedY)?(q(b.animaSliderRender),b.speedX=0,b.speedY=0):b.animaSliderRender=t(a)}var b=this;q(b.animaSliderRender);var d=.95,c=.95;b.animaSliderRender=t(a)},renderStretchstretchTransform:function(){function a(){c=.2*c+.15*(d.x-b.viewTranslate.x);g=.2*g+.15*(d.y-b.viewTranslate.y);b.viewTranslate=e.Point(b.viewTranslate.x+c,b.viewTranslate.y+g);.02>Math.abs(c)&&.02>Math.abs(g)?
|
41 |
+
(q(b.animaSliderRender),b.viewTranslate=d):b.animaSliderRender=t(a)}var b=this;q(b.animaSliderRender);var d=this.checkOffset(e.Point(b.viewTranslate.x+b.speedX,b.viewTranslate.y+b.speedY),b.scale),c=0,g=0;b.animaSliderRender=t(a)},startDrag:function(a,b){q(this.animaSliderRender);"audio"!=this.item.type&&"video"!=this.item.type&&(this.startDistForZoom=b,this.startGlobalPoint=a,this.startTranslate=this.viewTranslate,this.speedY=this.speedX=0,this.newX=this.viewTranslate.x,this.newY=this.viewTranslate.y,
|
42 |
+
this.startScale=this.scale)},stopDrag:function(){if("audio"!=this.item.type&&"video"!=this.item.type){if(this.isInScale)if(1>this.scale)this.normalize(!0);else if(this.scale>this.MaxScale)this.zoomIn(this.MaxScale,this.startGlobalPoint);else{var a=this.checkOffset(this.origin,this.newScale);(this.isBlockDraging=a.x!=this.origin.x||a.y!=this.origin.y)&&this.renderStretchstretchTransform()}this.draging&&(this.isBlockDraging?this.renderStretchstretchTransform():this.renderGlidingTransform(),this.draging=
|
43 |
+
!1)}},dragin:function(a){if("audio"==this.item.type||"video"==this.item.type)return!1;var b=this.startTranslate.x-a.x;a=this.startTranslate.y-a.y;var d=this.checkOffset(e.Point(b,a),this.newScale);this.isBlockDraging=d.x!=b||d.y!=a;var c=a-d.y;b-=.7*(b-d.x);a-=.7*c;this.oldX=this.newX;this.newX=b;this.speedX=.7*(this.newX-this.oldX);this.oldY=this.newY;this.newY=a;this.speedY=.7*(this.newY-this.oldY);this.origin=e.Point(b,a);this.viewTranslate=e.Point(b,a);return this.draging=!0},get isSubContentActiv(){return this.videoWrap?
|
44 |
+
!0:!1},action:function(a){if(this.item)switch(a){case "click":if("video"==this.item.type){if(this.videoWrap)return this.removeVideoContent(),"videoStop";this.view.classList.add("video_play");this.view.classList.remove("info_icon");this.addVideoContent();return"videoPlay"}if("audio"==this.item.type)return this.tryPlayOrPauseMp3(),"audioPlay";break;case "removeSubContent":if("video"==this.item.type)return this.removeVideoContent(),"videoStop";"audio"==this.item.type&&this.audioPlayer&&!this.audioPlayer.paused&&
|
45 |
+
(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("fla_AlbusListRotate"))}},addVideoContent:function(){var a=this.item.mime_type.split("/")[1];if(a)switch(this.videoWrap||(this.videoWrap=document.createElement("div"),this.videoWrap.className="fla_video_wrap",this.videoWrapFrame=this.imageFrame,this.itemInner.appendChild(this.videoWrap),this.view.appendChild(this.delegate.closeButton)),a){case "youtube":this.videoWrap.innerHTML=e.youTubeCode.replace("%id%",this.item.videoId);break;
|
46 |
+
case "vimeo":this.videoWrap.innerHTML=e.vimeoCode.replace("%id%",this.item.videoId)}},removeVideoContent:function(){this.videoWrap&&(this.delegate.buttonsBox.appendChild(this.delegate.closeButton),this.view.classList.remove("video_play"),this.videoWrap.parentNode&&this.videoWrap.parentNode.removeChild(this.videoWrap),this.videoWrap=void 0,this.view.classList.remove("video_play"),"image"!=this.item.type&&this.view.classList.add("info_icon"))},tryPlayOrPauseMp3:function(){if("audio"==this.item.type){if(!this.audioPlayer){if(!document.getElementById("fla_AudioPlayer"))return;
|
47 |
+
this.audioPlayer=document.getElementById("fla_AudioPlayer")}this.audioPlayer.src==this.item.url?this.audioPlayer.paused?(this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("fla_AlbusListRotate")):(this.audioPlayer.pause(),this.iconHolder.firstChild.classList.remove("fla_AlbusListRotate")):(this.audioPlayer.src=this.item.url,this.audioPlayer.play(),this.iconHolder.firstChild.classList.add("fla_AlbusListRotate"))}}};m.prototype={get viewOfsetY(){return this.view.getBoundingClientRect().top-
|
48 |
+
document.body.getBoundingClientRect().top},get viewOfsetX(){return this.view.getBoundingClientRect().left-document.body.getBoundingClientRect().left},copyRight:function(a){var b=this,d=void 0;return function(a){if(!e.Device.ios||"mouseup"!=a.type){var c=void 0,h=void 0;a.changedTouches&&a.changedTouches[0]?(c=a.changedTouches[0].pageX,h=a.changedTouches[0].pageY):(c=a.pageX,h=a.pageY);c-=b.viewOfsetX;h-=b.viewOfsetY;var l=b.itemsList[b.itemIndex];if(l.webView&&l.webView==a.target){a.preventDefault();
|
49 |
+
var k=document.getElementById("fla_copyr");k&&(clearTimeout(d),k.parentNode.removeChild(k),k=null);k=document.createElement("div");k.id="fla_copyr";k.className="fla_v2_hints";k.innerHTML=f(b.appName).copyR_Alert;k.style.top=h+"px";k.style.left=c+"px";b.view.appendChild(k);d=setTimeout(function(){k.parentNode.removeChild(k)},1E3)}}}},addToStage:function(){var a=this,b=document.getElementsByTagName("body")[0];document.getElementsByTagName("html");this.view.style.zIndex=e.findHighestZIndex(b)+1;e.disableBodyScrollSlider();
|
50 |
+
document.addEventListener("keydown",a.deHandler(),!0);document.addEventListener("contextmenu",a.copyR,!1);f(this.appName).appEventManager.addGMEventListener("FULLSCREEN_SWITCH",this,"fullscreenSwitch");b.appendChild(this.view);setTimeout(function(){a.view.classList.add("fla_v2_ColectionSliderActivate")},30)},intitByTerm:function(a,b){b&&(this.startItemId=b);this.term=a;var d=this;f(d.appName).appEventManager.addGMEventListener("COLLECTION_DATA_REDY",d,"dataLoaded");this.intitByTermDelay=setTimeout(function(){d.showPreloader(!0);
|
51 |
+
e.request(JSON.stringify({library:a.query}),d,"COLLECTION_DATA_REDY")},300)},dataLoaded:function(a){if(a=a.params.data){try{var b=JSON.parse(a);b.key&&""!=b.key?f(this.appName).key=b.key:(f(this.appName).tv=document.createElement("div"),f(this.appName).tv.style.position="absolute",f(this.appName).tv.style.height="24px",f(this.appName).tv.innerHTML='<a href="http://bit.ly/2snVAca" style="background-color: rgba(0, 0, 0, 0.8) !important;position: relative !important;left: auto!important;right: auto!important;top: auto!important;bottom: auto!important;width:auto!important;height:auto!important;text-indent:0!important;overflow:visible!important;display:block!important;padding: 4px 10px!important;margin:0 0 -3em 0!important;font-size:14px!important;line-height:120%!important;color:#FFFFFF!important;font-weight:bold!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;">Trial version - Gmedia WP Plugin</a>');
|
52 |
+
b.data&&this.addItemsToCollection(b.data)}catch(d){A(d)}this.showPreloader(!1)}},addItemsToCollection:function(a){for(var b=[],d=0,c=0;c<a.length;c++){var g=e.Item(a[c],this.appName);this.startItemId&&g.ID==this.startItemId&&(d=c);b.push(g)}this.term.itemsList=b;this.initByList(this.term.itemsList,d)},initByList:function(a,b){if(a&&0<a.length){var d=this;this.currentItemIndex=b&&0!==b?0:void 0;this.startItemIndex=b?b:0;this.itemsList=a;this.createlayoutDelay=setTimeout(function(){d.createLayout()},
|
53 |
+
400)}},prepareToRemove:function(){if(!this.removing){clearTimeout(this.createlayoutDelay);clearTimeout(this.intitByTermDelay);var a=this.scrollViewTranslateY/(this.size.height/2);this.pageInFocus&&this.pageInFocus.isSubContentActiv&&.2>a?"videoStop"==this.pageInFocus.action("click")&&(this.switchShowControlls(),this.needHideControlls=!this.isControllsShow):(this.removing=!0,e.cacherItemsList.init(),f(this.appName).appEventManager.removeGMEventListener("COLLECTION_DATA_REDY",this,"dataLoaded"),window.removeEventListener("wheel",
|
54 |
+
this.handlerMWheel,!1),document.removeEventListener("keydown",this.handlerKB,!0),document.removeEventListener("contextmenu",this.copyR,!1),f(this.appName).appEventManager.removeGMEventListener("FULLSCREEN_SWITCH",this,"fullscreenSwitch"),this.delegate.itemsCountersUpdate(),this.subMenu&&this.showSubmenu&&(this.subMenu.style.transition="0s",this.needShowSubmenu(!1)),e.enableBodyScrollSlider(),this.view.classList.remove("fla_v2_ColectionSliderActivate"),document.getElementById("fla_AudioPlayer")&&document.getElementById("fla_AudioPlayer").pause(),
|
55 |
+
f(this.appName).appEventManager.dispatchGMEvent(e.GMEvent("REMOVE_LIGHTBOX",this)))}},deHandler:function(a){var b=this;b.handlerKB=function(a){if(b.startDragHandler||27==a.keyCode)switch(a.keyCode){case 37:b.gotoPrev();break;case 39:b.gotoNext();break;case 27:if(b.delegate.modal){b.delegate.modal.prepareToRemove();break}b.prepareToRemove();break;case 32:if(b.delegate.modal)b.delegate.modal.prepareToRemove();else return b.switchShowControlls(),b.needHideControlls=!b.isControllsShow,e.preventDefault(a),
|
56 |
+
!1}};return b.handlerKB},showPreloader:function(a){var b=void 0;a?document.getElementById(this.appName+"slider_preloader")||(b=e.createPreloaderView(e.hexToRgbaStrin(f(this.appName).sliderPreloaderColor,.7)),b.id=this.appName+"slider_preloader",this.view.appendChild(b)):(b=document.getElementById(this.appName+"slider_preloader"))&&e.fadeOut(b,function(){b&&b.parentNode&&b.parentNode.removeChild(b)},500)},createLayout:function(){var a=this;this.itemsAmount=this.itemsList.length;this.size=e.Size(a.view.clientWidth,
|
57 |
+
a.view.clientHeight);e.miniScreen&&this.slider.classList.add("miniScreen");500>a.size.width&&(this.prevButton.classList.add("sliderNextPrevButtonsMiniScreen"),this.nextButton.classList.add("sliderNextPrevButtonsMiniScreen"));this.initSlider();this.thumbsBar&&(this.thumbsBar.initItemsList(this.itemsList),this.thumbsBar.selectThumbByIndex(this.itemIndex));700>a.size.height&&this.slider.classList.add("miniScreen");window.addEventListener("wheel",a.mouseWheelHandler(),!1);setTimeout(function(){a.showControlls(!0)},
|
58 |
+
500)},set itemIndex(a){this._itemNum=a;this.updateControlls()},get itemIndex(){return this._itemNum},initSlider:function(){var a;if(0==this.sliderPages.length)for(a=0;3>a;a++){var b=new n(this);this.slider.appendChild(b.view);this.sliderPages.push(b);b.resize()}var d=2<this.itemsAmount?-1:0;for(a=0;3>a;a++)b=this.sliderPages[a],b.posX=d,b.itemIndex=void 0,d+=1;this.startDragHandler?this.gotoPageByNum(0):(this.startDragHandler=this.startDrag(),this.slider.addEventListener("touchstart",this.startDragHandler,
|
59 |
+
v),this.slider.addEventListener("mousedown",this.startDragHandler,!1),this.gotoPageByNum(this.startItemIndex))},set scrollViewTranslateY(a){this._scrollViewTranslateY=a;this.slider.style.transform="translate3d("+this.scrollViewTranslateX+"px,"+a+"px, 0px";0!=a&&this.sliderVerticalRender()},get scrollViewTranslateY(){return this._scrollViewTranslateY},set scrollViewTranslateX(a){this._scrollViewTranslateX=a;this.slider.style.transform="translate3d("+a+"px,"+this.scrollViewTranslateY+"px, 0px";this.pageRenderByIndex(-Math.round(a/
|
60 |
+
this.size.width))},get scrollViewTranslateX(){return this._scrollViewTranslateX},sliderVerticalRender:function(){var a=1-Math.abs(this.scrollViewTranslateY)/(this.size.height/2);this.background.style.opacity=a;this.needHideControlls||(.8>a?this.showControlls(!1):this.showControlls(!0))},tryOpenItemID:function(a){for(var b=0;b<this.term.itemsList.length;b++)if(this.term.itemsList[b].ID==a)return this.gotoPageByNum(b),!0;return!1},gotoPageByNum:function(a){!this.itemIndex&&0!==this.itemIndex||!this.currentItemIndex?
|
61 |
+
this.gotoPageByIndex(a,!0):this.gotoPageByIndex(this.currentItemIndex-(this.itemIndex-a))},gotoNext:function(){this.gotoPageByIndex(this.currentItemIndex+1)},gotoPrev:function(){this.gotoPageByIndex(this.currentItemIndex-1)},renderTransformTo:function(a){function b(){c=.2*c+.15*(a.x-d.scrollViewTranslateX);e=.2*e+.15*(a.y-d.scrollViewTranslateY);d.scrollViewTranslateX+=c;d.scrollViewTranslateY+=e;1>Math.abs(c)&&1>Math.abs(e)&&(d.dragging=!1);.1>Math.abs(c)&&.1>Math.abs(e)?(q(d.animaSliderRender),
|
62 |
+
d.scrollViewTranslateX=a.x,d.scrollViewTranslateY=a.y,d.sliderTransitionComplete({target:d.slider})):d.animaSliderRender=t(b)}var d=this;q(d.animaSliderRender);var c=5*d.speedX,e=5*d.speedY;d.animaSliderRender=t(b)},gotoPageByIndex:function(a,b){3>this.itemsAmount&&(a=Math.max(0,a),a=Math.min(this.itemsAmount-1,a));2<Math.abs(this.currentItemIndex-a)&&(b=!0);a=-a*this.size.width;b?(this.scrollViewTranslateX=a,this.sliderTransitionComplete({target:this.slider})):this.renderTransformTo(e.Point(a,this.scrollViewTranslateY))},
|
63 |
+
pageRenderByIndex:function(a){if(this.currentItemIndex!==a){void 0!==this.pageInFocus&&(this.pageInFocusPrev=this.pageInFocus,this.pageInFocus.isInScale&&(this.zoomingPage=this.pageInFocus));var b;if(3>this.itemsAmount){for(b=0;b<this.itemsAmount;b++)this.sliderPages[b].initByItem(this.itemsList[b]);this.pageInFocus=this.sliderPages[a];this.itemIndex=this.currentItemIndex=a}else{var d=(a+1)%3;0>d&&(d+=3);var c=0<=d-1?d-1:2,e=3>d+1?d+1:0,h=[c,d,e],f=[a-1,a,a+1];for(b=0;b<h.length;b++)this.sliderPages[h[b]].posX=
|
64 |
+
f[b];this.currentItemIndex=a;this.pageInFocus=this.sliderPages[d];this.itemIndex=0>a?this.itemsAmount+(0==a%this.itemsAmount?-this.itemsAmount:a%this.itemsAmount):a%this.itemsAmount;this.sliderPages[d].initByItem(this.itemsList[this.itemIndex]);this.sliderPages[e].initByItem(this.itemIndex+1<this.itemsAmount?this.itemsList[this.itemIndex+1]:this.itemsList[0]);this.sliderPages[c].initByItem(0>this.itemIndex-1?this.itemsList[this.itemsAmount-1]:this.itemsList[this.itemIndex-1])}}},sliderTransitionComplete:function(a){a.target==
|
65 |
+
this.slider&&(a=e.cacherItemsList.status(),(a.list!==this.itemsList||a.list===this.itemsList&&this.itemIndex>=a.index)&&e.cacherItemsList.init(this.itemsList,this.itemIndex,5),void 0!==this.pageInFocusPrev&&this.pageInFocusPrev.action("removeSubContent"),void 0!==this.zoomingPage&&this.zoomingPage!==this.pageInFocus&&this.zoomingPage.normalize())},mouseWheelHandler:function(a){var b=this,d=0,c=0,g=void 0;b.handlerMWheel=function(a){a.stopPropagation();var f=e.Point(0,0);if("deltaX"in a)1===a.deltaMode?
|
66 |
+
(f.x=18*a.deltaX,f.y=18*a.deltaY):(f.x=a.deltaX,f.y=a.deltaY);else if("wheelDelta"in a)a.wheelDeltaX&&(f.x=-.16*a.wheelDeltaX),f.y=a.wheelDeltaY?-.16*a.wheelDeltaY:-.16*a.wheelDelta;else if("detail"in a)f.y=a.detail;else return;var h=b.size.width/2,k=b.size.height/2;a.pageX&&(h=a.pageX,k=a.pageY);h-=b.viewOfsetX;k-=b.viewOfsetY;if(!b.dragging){g!==b.pageInFocus&&(g=void 0);b.zoomingPage&&b.zoomingPage!==b.pageInFocus&&(b.zoomingPage.normalize(),b.zoomingPage=void 0);g||(b.needHideControlls=b.isControllsShow,
|
67 |
+
g=b.zoomingPage=b.pageInFocus);if(h!=d||k!=c)g.startDrag(e.Point(h,k)),d=h,c=k;g.zoomByScaleIter(f.y,e.Point(h,k));g.isInScale?b.showControlls(!1):(b.showControlls(b.needHideControlls),g=void 0)}};return b.handlerMWheel},doubleClickController:function(a){if(!e.Device.ios||"mouseup"!=a.type){var b=void 0,d=void 0;a.changedTouches&&a.changedTouches[0]?(b=a.changedTouches[0].pageX,d=a.changedTouches[0].pageY):(b=a.pageX,d=a.pageY);b-=this.viewOfsetX;d-=this.viewOfsetY;var c=this.pageInFocus.is_pointInItem(e.Point(b,
|
68 |
+
d)),g=this;this.firsrTap?(clearTimeout(this.firsrTap),this.firsrTap=void 0,c&&(this.pageInFocus.isInScale?(g.showControlls(g.needHideControlls),this.pageInFocus.normalize(!0),this.zoomingPage=void 0):(this.zoomingPage&&this.zoomingPage.normalize(),this.zoomingPage=this.pageInFocus,this.zoomingPage.zoomIn(.3>Math.abs(this.zoomingPage.imgScale-1)?1.5:this.zoomingPage.imgScale,e.Point(b,d)),this.zoomingPage.isInScale&&(g.needHideControlls=g.isControllsShow,g.showControlls(!1))))):this.firsrTap=setTimeout(function(){g.firsrTap=
|
69 |
+
void 0;if(c||e.miniScreen)if(g.pageInFocus.isInScale)g.pageInFocus.normalize(!0),g.showControlls(g.needHideControlls),g.zoomingPage=void 0;else switch(g.pageInFocus.action("click")){case "videoPlay":g.showControlls(!1);g.needHideControlls=!g.isControllsShow;break;case "videoStop":g.switchShowControlls();g.needHideControlls=!g.isControllsShow;break;default:g.switchShowControlls(),g.needHideControlls=!g.isControllsShow}else g.prepareToRemove()},300)}},startDrag:function(a){function b(a){a.originalEvent&&
|
70 |
+
(a=a.originalEvent);a.preventDefault();if(a.touches)if(!c.dragging&&1<a.touches.length){p=!0;var b=a.touches[0].pageX;var d=a.touches[0].pageY;var g=a.touches[1].pageX;a=a.touches[1].pageY;var h=Math.hypot(b-g,d-a);b+=(g-b)/2;d+=(a-d)/2}else p=!1,b=a.touches[0].pageX,d=a.touches[0].pageY;else b=a.pageX,d=a.pageY;b-=z;d-=t;if(!(e.Device.ios&&20>=f))if(void 0===m&&(d===k?m=!1:(g=180*Math.atan2(Math.abs(d-k),Math.abs(b-f))/Math.PI,m=45<g)),!c.dragging&&c.zoomingPage){g=4<Math.abs(f-b)?f-b:0;a=4<Math.abs(k-
|
71 |
+
d)?k-d:0;if(g||a)c.zoomingDrag=!0;p?c.pageInFocus.zoomByScaleDeltaToPoint(h,e.Point(g,a),e.Point(b,d)):c.zoomingPage&&c.zoomingPage.dragin(e.Point(g,a))}else if(m){w=0;if(b=4<Math.abs(k-d)?k-d:0)c.dragging=!0;c.scrollViewTranslateY=n-b}else{c.transition=!0;if(b=4<Math.abs(f-b)?f-b:0)c.dragging=!0;c.scrollViewTranslateX=l-b;y=x;x=c.scrollViewTranslateX;w=x-y}}function d(a){a.preventDefault();m=void 0;e.is_touch_device&&(document.removeEventListener("touchmove",b,v),document.removeEventListener("touchend",
|
72 |
+
d,v));document.removeEventListener("mousemove",b,!1);document.removeEventListener("mouseup",d,!1);document.removeEventListener("oncontextmenu",d,!1);c.dragging||p||c.zoomingDrag?(c.zoomingPage?(c.zoomingPage.stopDrag(),p=!1):4>Math.abs(c.scrollViewTranslateY)?(a=c.currentItemIndex,Math.abs(w)>(e.is_touch_device?7:3)&&g==c.currentItemIndex&&(a=0<w?a-1:a+1),c.speedX=w,c.scrollViewTranslateY=0,c.gotoPageByIndex(a)):.2<Math.abs(c.scrollViewTranslateY/(c.size.height/2))?c.prepareToRemove():c.renderTransformTo(e.Point(c.scrollViewTranslateX,
|
73 |
+
0)),this.dragging=!1):c.doubleClickController(a);c.zoomingDrag=!1}var c=this,g=void 0,f=void 0,k=void 0,l=void 0,n=void 0,m=void 0,p=void 0,r=void 0,t=c.viewOfsetY,z=c.viewOfsetX,w=0,y=0,x=0;return function(a){c.zoomingPage=c.pageInFocus.isInScale?c.pageInFocus:void 0;q(c.animaSliderRender);g=c.currentItemIndex;a.preventDefault();a.originalEvent&&(a=a.originalEvent);if(!a.button||0===a.button){if(a.touches)if(!c.dragging&&1<a.touches.length){p=!0;var h=a.touches[0].pageX;var m=a.touches[0].pageY;
|
74 |
+
var u=a.touches[1].pageX;a=a.touches[1].pageY;r=Math.hypot(h-u,m-a);h+=(u-h)/2;m+=(a-m)/2;c.zoomingPage=c.pageInFocus;c.needHideControlls=c.isControllsShow;c.showControlls(!1)}else h=a.touches[0].pageX,m=a.touches[0].pageY;else h=a.pageX,m=a.pageY;h-=z;m-=t;y=w=c.speedX=c.speedY=0;x=c.scrollViewTranslateX;f=h;k=m;l=c.scrollViewTranslateX;n=c.scrollViewTranslateY;c.zoomingPage&&c.zoomingPage.startDrag(e.Point(f,k),r);e.is_touch_device&&(document.addEventListener("touchmove",b,v),document.addEventListener("touchend",
|
75 |
+
d,v));document.addEventListener("mousemove",b,!1);document.addEventListener("mouseup",d,!1);document.addEventListener("oncontextmenu",d,!1)}}},audioPlayerHandler:function(a){this.thumbsBar&&this.thumbsBar.changeAudioStatusForIndex(this.itemIndex,a)},createControlls:function(){function a(a){a.style.backgroundColor=f(d.appName).sliderNavigationIconColor;a.childNodes[0].style.stroke=f(d.appName).sliderNavigationColor}function b(a){a.style.backgroundColor=f(d.appName).sliderNavigationColor;a.childNodes[0].style.stroke=
|
76 |
+
f(d.appName).sliderNavigationIconColor}var d=this;this.prevButton=document.createElement("div");this.prevButton.className="sliderNextPrevButtons";this.prevButton.style.left="0px";this.prevButton.style.transform="translateX(-120%)";this.prevButton.style.backgroundColor=f(this.appName).sliderNavigationColor;this.prevButton.style.visibility="hidden";this.prevButton.innerHTML='<svg height="128px" id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 128 128" width="128px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="57.12" x2="17.787" y1="103.334" y2="64"/><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="17.787" x2="57.12" y1="64" y2="24.666"/></g><line style="stroke-width:12;stroke-miterlimit:10;" x1="17.787" x2="118.213" y1="64" y2="64"/></g></svg>';
|
77 |
+
this.prevButton.childNodes[0].style.stroke=f(this.appName).sliderNavigationIconColor;this.prevButton.onmouseover=function(){a(this)};this.prevButton.onmouseout=function(){b(this)};this.prevButton.onclick=function(){d.gotoPrev();e.Device.desktop||b(this)};this.view.appendChild(this.prevButton);this.nextButton=document.createElement("div");this.nextButton.className="sliderNextPrevButtons";this.nextButton.style.backgroundColor=f(this.appName).sliderNavigationColor;this.nextButton.style.right="0px";this.nextButton.style.transform=
|
78 |
+
"translateX(120%)";this.nextButton.style.visibility="hidden";this.nextButton.innerHTML='<svg height="128px" id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 128 128" width="128px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="70.88" x2="110.213" y1="24.666" y2="64"/><line style="stroke-width:12;stroke-linecap:square;stroke-miterlimit:10;" x1="110.213" x2="70.88" y1="64" y2="103.334"/></g><line style="stroke-width:12;stroke-miterlimit:10;" x1="110.213" x2="9.787" y1="64" y2="64"/></g></svg>';
|
79 |
+
this.nextButton.childNodes[0].style.stroke=f(this.appName).sliderNavigationIconColor;this.nextButton.onmouseover=function(){a(this)};this.nextButton.onmouseout=function(){b(this)};this.nextButton.onclick=function(){d.gotoNext();e.Device.desktop||b(this)};this.view.appendChild(this.nextButton);f(this.appName).sliderThumbBarEnable&&(this.thumbsBar=new p(this),this.footer.appendChild(this.thumbsBar.view));this.view.appendChild(this.footer);this.view.appendChild(this.header);this.infoBox1=document.createElement("div");
|
80 |
+
this.infoBox1.className="fla_InfoBox1";this.header.appendChild(this.infoBox1);if(this.delegate.itemMenuConstructor){var c={};c.backgroundColor=f(this.appName).sliderThumbSubMenuBackgroundColor;c.backgroundColorOver=f(this.appName).sliderThumbSubMenuBackgroundColorOver;c.iconColor=f(this.appName).sliderThumbSubMenuIconColor;c.iconColorOver=f(this.appName).sliderThumbSubMenuIconHoverColor;this.itemMenu=this.delegate.itemMenuConstructor(this.delegate,e,c,!0)}this.buttonsBox=document.createElement("div");
|
81 |
+
this.buttonsBox.className="fla_InfoBox1";this.buttonsBox.style.float="right";this.buttonsBox.appendChild(this.itemMenu.view);this.header.appendChild(this.buttonsBox);this.closeButton=document.createElement("div");this.closeButton.setAttribute("type","close");this.closeButton.className="sliderItemsButtons";this.closeButton.innerHTML='<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512;" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9 c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>';
|
82 |
+
this.closeButton.style.backgroundColor=f(this.appName).sliderNavigationColor;this.closeButton.childNodes[0].style.fill=f(this.appName).sliderNavigationIconColor;this.buttonsBox.appendChild(this.closeButton);this.closeButton.onmouseover=function(){this.style.backgroundColor=f(d.appName).sliderNavigationIconColor;this.childNodes[0].style.fill=f(d.appName).sliderNavigationColor};this.closeButton.onmouseout=function(){this.style.backgroundColor=f(d.appName).sliderNavigationColor;this.childNodes[0].style.fill=
|
83 |
+
f(d.appName).sliderNavigationIconColor};this.closeButton.addEventListener("click",function(){this.parentNode==d.buttonsBox&&d.prepareToRemove()},!1);e.miniScreen&&(this.infoBox2=document.createElement("div"),this.infoBox2.className="fla_InfoBox1",this.infoBox2.style.width="100%",this.footer.appendChild(this.infoBox2),this.header.appendChild(this.buttonsBox),this.buttonsBox.style.float="none",this.infoBox1.style.float="none");this.titleItem=document.createElement("div");this.titleItem.className="fla_v2_ColectionSliderItemTitle";
|
84 |
+
this.titleItem.style.fontSize=f(this.appName).sliderItemTitleFontSize+"px";this.titleItem.style.color=f(this.appName).sliderItemTitleTextColor;e.miniScreen&&(this.titleItem.classList.add("fla_v2_ColectionSliderItemTitleMiniScreen"),this.titleItem.style.fontSize="20px",this.titleItem.style.borderBottom="solid 1px "+e.hexToRgbaStrin(f(this.appName).sliderNavigationIconColor,.3));this.infoBox1.appendChild(this.titleItem);this.titleTerm=document.createElement("div");this.titleTerm.className="fla_v2_ColectionSliderItemTitle";
|
85 |
+
this.titleTerm.style.fontSize=f(this.appName).sliderItemTitleFontSize/2+"px";this.titleTerm.style.color=e.hexToRgbaStrin(f(this.appName).sliderItemTitleTextColor,.7);this.titleTerm.classList.add("fla_v2_ColectionSliderTermTitle");e.miniScreen?(this.titleTerm.classList.add("fla_v2_ColectionSliderTermTitleMiniScreen"),this.titleTerm.style.fontSize="15px",this.infoBox2.appendChild(this.titleTerm)):(this.titleTerm.style.fontSize=f(this.appName).sliderItemTitleFontSize/2+"px",this.infoBox1.appendChild(this.titleTerm))},
|
86 |
+
fullscreenSwitch:function(a){e.toggleFullScreen(this.view)},switchShowControlls:function(){this.showControlls(!this.isControllsShow)},showControlls:function(a,b){this.isControllsShow!=a&&(b?(this.header.classList.add("fla_NoneTransition"),this.footer.classList.add("fla_NoneTransition"),this.prevButton.classList.add("fla_NoneTransition"),this.nextButton.classList.add("fla_NoneTransition")):(this.header.classList.remove("fla_NoneTransition"),this.footer.classList.remove("fla_NoneTransition"),this.prevButton.classList.remove("fla_NoneTransition"),
|
87 |
+
this.nextButton.classList.remove("fla_NoneTransition")),a?(this.header.classList.add("fla_v2_SlidesHeaderActivate"),this.footer.classList.add("fla_v2_SlidesFooterActivate"),this.prevButton.style.transform="translateX(0%)",this.nextButton.style.transform="translateX(0%)"):(this.header.classList.remove("fla_v2_SlidesHeaderActivate"),this.footer.classList.remove("fla_v2_SlidesFooterActivate"),this.prevButton.style.transform="translateX(-120%)",this.nextButton.style.transform="translateX(120%)"),this.isControllsShow=
|
88 |
+
a)},updateControlls:function(){3>this.itemsAmount?(this.prevButton.style.visibility=0==this.itemIndex?"hidden":"visible",this.nextButton.style.visibility=this.itemIndex==this.itemsAmount-1?"hidden":"visible",1==this.itemsAmount&&(this.prevButton.style.visibility="hidden",this.nextButton.style.visibility="hidden")):(this.prevButton.style.visibility="visible",this.nextButton.style.visibility="visible");var a=this.itemsList[this.itemIndex];a&&(this.titleItem.innerHTML=a.title?a.title:"",this.titleTerm.textContent=
|
89 |
+
this.itemIndex+1+" / "+this.itemsAmount,this.itemMenu&&this.itemMenu.updateForItem(a),this.thumbsBar&&this.thumbsBar.selectThumbByIndex(this.itemIndex),this.delegate.modal&&("info"==this.delegate.modal.type?f(this.appName).appEventManager.dispatchGMEvent(e.GMEvent("NEED_MODAL",this,{type:"info",item:a})):this.delegate.modal.prepareToRemove()),this.delegate.viewItem=a)},resizeHandler:function(){var a=this;this.resizeDelay&&clearTimeout(this.resizeDelay);this.resizeDelay=setTimeout(function(){a.size=
|
90 |
+
e.Size(a.view.clientWidth,a.view.clientHeight);410>a.size.height&&(a.showControlls(!1,!0),a.needHideControlls=!0);500>a.size.width?(a.prevButton.classList.add("sliderNextPrevButtonsMiniScreen"),a.nextButton.classList.add("sliderNextPrevButtonsMiniScreen")):(a.prevButton.classList.remove("sliderNextPrevButtonsMiniScreen"),a.nextButton.classList.remove("sliderNextPrevButtonsMiniScreen"));a.itemMenu&&a.itemMenu.resizeHandler();for(var b=0;b<a.sliderPages.length;b++)a.sliderPages[b].resize();a.gotoPageByIndex(a.currentItemIndex,
|
91 |
+
!0);a.thumbsBar&&a.thumbsBar.updateView()},200)}};return new m(l)};
|
skins/amron/screenshot.png
ADDED
Binary file
|
skins/amron/settings.php
ADDED
@@ -0,0 +1,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$default_options = array(
|
3 |
+
//Main layout
|
4 |
+
'collectionThumbRecomendedWidth' => '260',
|
5 |
+
'collectionPreloaderColor' => '#333333',
|
6 |
+
'linkTargetWindow' => '_blank',
|
7 |
+
'thumbSpacing' => '10',
|
8 |
+
//Tags Cloud
|
9 |
+
'tagsFilter' => '1',
|
10 |
+
'tagCloudAll' => 'All',
|
11 |
+
'tagCloudTextColor' => '#000000',
|
12 |
+
'tagCloudBgColor' => '#eeeeee',
|
13 |
+
//Thumbnails
|
14 |
+
'collectionThumbHoverColor' => 'rgba(0, 0, 0, .7)',
|
15 |
+
'collectionThumbContentBGColor' => 'rgba(245,245,245,1)',
|
16 |
+
'collectionThumbTitleShow' => '1',
|
17 |
+
'collectionThumbTitleColor' => 'rgba(0,0,0,1)',
|
18 |
+
'collectionThumbFontSize' => '18',
|
19 |
+
'collectionThumbDescriptionShow' => '1',
|
20 |
+
'collectionThumbDescriptionColor' => 'rgba(0,0,0,1)',
|
21 |
+
'collectionThumbDescriptionFontSize' => '15',
|
22 |
+
'collectionReadMoreButtonLabel'=>'Read More',
|
23 |
+
'collectionReadMoreButtonLabelColor'=>'rgba(255, 255, 255, 1)',
|
24 |
+
'collectionReadMoreButtonBGColor'=>'rgba(0, 0, 0, 1)',
|
25 |
+
'collectionReadMoreButtonLabelColorHover'=>'rgba(0, 0, 0, 1)',
|
26 |
+
'collectionReadMoreButtonBGColorHover'=>'rgba(235,235,235,1)',
|
27 |
+
//Modal Window
|
28 |
+
'modaBgColor'=> 'rgba(0,0,0,0.9)',
|
29 |
+
'modalInfoBoxBgColor' => 'rgba(255,255,255,1)',
|
30 |
+
'modalInfoBoxTitleTextColor' => '#000000',
|
31 |
+
'shareTitlePlaceHolder' => 'Share',
|
32 |
+
'modalInfoBoxTextColor' => '#333333',
|
33 |
+
'infoBarCountersEnable'=> '1',
|
34 |
+
'infoBarDateInfoEnable'=> '1',
|
35 |
+
// Slider Page
|
36 |
+
'lightBoxEnable' => '1',
|
37 |
+
'sliderPreloaderColor' =>'#ffffff',
|
38 |
+
'sliderBgColor' => 'rgba(0,0,0,1)',
|
39 |
+
'sliderHeaderFooterBgColor' => '#000000',
|
40 |
+
'sliderNavigationColor' => 'rgba(0,0,0,1)',
|
41 |
+
'sliderNavigationIconColor' => 'rgba(255,255,255,1)',
|
42 |
+
'sliderItemTitleFontSize' => '24',
|
43 |
+
'sliderItemTitleTextColor' => '#ffffff',
|
44 |
+
'sliderThumbSubMenuBackgroundColor' => 'rgba(0,0,0,1)',
|
45 |
+
'sliderThumbSubMenuBackgroundColorOver' => 'rgba(255,255,255,1)',
|
46 |
+
'sliderThumbSubMenuIconColor' => 'rgba(255,255,255,1)',
|
47 |
+
'sliderThumbSubMenuIconHoverColor' => 'rgba(0,0,0,1)',
|
48 |
+
'sliderInfoEnable' => '1',
|
49 |
+
'sliderItemDownload' => '1',
|
50 |
+
'sliderItemDiscuss' => '1',
|
51 |
+
'sliderSocialShareEnabled' => '1',
|
52 |
+
'sliderLikesEnabled' => '1',
|
53 |
+
// Custom CSS
|
54 |
+
'customCSS' => ''
|
55 |
+
);
|
56 |
+
$options_tree = array(
|
57 |
+
array('label' => 'Common Settings',
|
58 |
+
'fields' => array(
|
59 |
+
'collectionThumbRecomendedWidth' => array('label' => 'Thumbnail - desired Width',
|
60 |
+
'tag' => 'input',
|
61 |
+
'attr' => 'type="number" min="100" max="500"',
|
62 |
+
'text' => ''
|
63 |
+
),
|
64 |
+
'thumbSpacing' => array('label' => 'Space between thumbnails',
|
65 |
+
'tag' => 'input',
|
66 |
+
'attr' => 'type="number" min="0" max="100"',
|
67 |
+
'text' => ''
|
68 |
+
),
|
69 |
+
'collectionPreloaderColor' => array('label' => 'Preloader Color',
|
70 |
+
'tag' => 'input',
|
71 |
+
'attr' => 'type="text" data-type="color"',
|
72 |
+
'text' => 'Set custom color for gallery'
|
73 |
+
),
|
74 |
+
'linkTargetWindow' => array(
|
75 |
+
'label' => 'Link target',
|
76 |
+
'tag' => 'select',
|
77 |
+
'attr' => '',
|
78 |
+
'text' => '',
|
79 |
+
'choices' => array(
|
80 |
+
array(
|
81 |
+
'label' => '_blank',
|
82 |
+
'value' => '_blank'
|
83 |
+
),
|
84 |
+
array(
|
85 |
+
'label' => '_self',
|
86 |
+
'value' => '_self'
|
87 |
+
)
|
88 |
+
)
|
89 |
+
),
|
90 |
+
)
|
91 |
+
),
|
92 |
+
array('label' => 'Tags Filter',
|
93 |
+
'fields' => array(
|
94 |
+
'tagsFilter' => array('label' => 'Tags Cloud enable',
|
95 |
+
'tag' => 'checkbox',
|
96 |
+
'attr' => 'data-watch="change"',
|
97 |
+
'text' => 'Add tags filter for selected collection'
|
98 |
+
),
|
99 |
+
'tagCloudAll' => array('label' => 'Tag ALL - name',
|
100 |
+
'tag' => 'input',
|
101 |
+
'attr' => '',
|
102 |
+
'text' => ''
|
103 |
+
),
|
104 |
+
'tagCloudTextColor' => array('label' => 'Text color',
|
105 |
+
'tag' => 'input',
|
106 |
+
'attr' => 'type="text" data-type="color"',
|
107 |
+
'text' => 'Tag button'
|
108 |
+
),
|
109 |
+
'tagCloudBgColor' => array('label' => 'Background color',
|
110 |
+
'tag' => 'input',
|
111 |
+
'attr' => 'type="text" data-type="color"',
|
112 |
+
'text' => 'Tag button'
|
113 |
+
)
|
114 |
+
)
|
115 |
+
),
|
116 |
+
array('label' => 'Thumbnails Settings',
|
117 |
+
'fields' => array(
|
118 |
+
'collectionThumbHoverColor' => array('label' => 'Hover color',
|
119 |
+
'tag' => 'input',
|
120 |
+
'attr' => 'type="text" data-type="rgba"',
|
121 |
+
'text' => ''
|
122 |
+
),
|
123 |
+
'collectionThumbTitleShow' => array('label' => 'Title',
|
124 |
+
'tag' => 'checkbox',
|
125 |
+
'attr' => 'data-watch="change"',
|
126 |
+
'text' => ''
|
127 |
+
),
|
128 |
+
'collectionThumbTitleColor' => array('label' => 'Title Text color',
|
129 |
+
'tag' => 'input',
|
130 |
+
'attr' => 'type="text" data-type="rgba"',
|
131 |
+
'text' => ''
|
132 |
+
),
|
133 |
+
'collectionThumbFontSize' => array('label' => 'Title Font size',
|
134 |
+
'tag' => 'input',
|
135 |
+
'attr' => 'type="number" min="11" max="24" step="1"',
|
136 |
+
'text' => ''
|
137 |
+
),
|
138 |
+
'collectionThumbDescriptionShow' => array('label' => 'Item Description',
|
139 |
+
'tag' => 'checkbox',
|
140 |
+
'attr' => 'data-watch="change"',
|
141 |
+
'text' => ''
|
142 |
+
),
|
143 |
+
'collectionThumbDescriptionColor' => array('label' => 'Description Text color',
|
144 |
+
'tag' => 'input',
|
145 |
+
'attr' => 'type="text" data-type="rgba"',
|
146 |
+
'text' => ''
|
147 |
+
),
|
148 |
+
'collectionThumbDescriptionFontSize' => array('label' => 'Description Font size',
|
149 |
+
'tag' => 'input',
|
150 |
+
'attr' => 'type="number" min="11" max="24" step="1"',
|
151 |
+
'text' => ''
|
152 |
+
),
|
153 |
+
'collectionReadMoreButtonLabel' => array('label' => 'Read More button Label Text',
|
154 |
+
'tag' => 'input',
|
155 |
+
'attr' => '',
|
156 |
+
'text' => 'Read More'
|
157 |
+
),
|
158 |
+
'collectionReadMoreButtonBGColor' => array('label' => 'Read More button color',
|
159 |
+
'tag' => 'input',
|
160 |
+
'attr' => 'type="text" data-type="rgba"',
|
161 |
+
'text' => ''
|
162 |
+
),
|
163 |
+
'collectionReadMoreButtonBGColorHover' => array('label' => 'Read More button Hover color',
|
164 |
+
'tag' => 'input',
|
165 |
+
'attr' => 'type="text" data-type="rgba"',
|
166 |
+
'text' => ''
|
167 |
+
),
|
168 |
+
'collectionReadMoreButtonLabelColor' => array('label' => 'Read More button Label color',
|
169 |
+
'tag' => 'input',
|
170 |
+
'attr' => 'type="text" data-type="rgba"',
|
171 |
+
'text' => ''
|
172 |
+
),
|
173 |
+
'collectionReadMoreButtonLabelColorHover' => array('label' => 'Read More button Label Hover color',
|
174 |
+
'tag' => 'input',
|
175 |
+
'attr' => 'type="text" data-type="rgba"',
|
176 |
+
'text' => ''
|
177 |
+
),
|
178 |
+
)
|
179 |
+
),
|
180 |
+
array('label' => 'Modal Window Settings (Item Info Bar)',
|
181 |
+
'fields' => array(
|
182 |
+
'modaBgColor' => array('label' => 'Overlap Color',
|
183 |
+
'tag' => 'input',
|
184 |
+
'attr' => 'type="text" data-type="rgba"',
|
185 |
+
'text' => ''
|
186 |
+
),
|
187 |
+
'modalInfoBoxBgColormodalInfoBoxBgColor' => array('label' => 'Info Bar Color',
|
188 |
+
'tag' => 'input',
|
189 |
+
'attr' => 'type="text" data-type="rgba"',
|
190 |
+
'text' => ''
|
191 |
+
),
|
192 |
+
'modalInfoBoxTitleTextColor' => array('label' => 'Info Bar Title text Color',
|
193 |
+
'tag' => 'input',
|
194 |
+
'attr' => 'type="text" data-type="color"',
|
195 |
+
'text' => ''
|
196 |
+
),
|
197 |
+
'shareTitlePlaceHolder' => array('label' => 'Share bar name',
|
198 |
+
'tag' => 'input',
|
199 |
+
'attr' => '',
|
200 |
+
'text' => ''
|
201 |
+
),
|
202 |
+
'modalInfoBoxTextColor' => array('label' => 'Info Bar Text Color',
|
203 |
+
'tag' => 'input',
|
204 |
+
'attr' => 'type="text" data-type="color"',
|
205 |
+
'text' => ''
|
206 |
+
),
|
207 |
+
'infoBarCountersEnable' => array('label' => 'Show View/Likes',
|
208 |
+
'tag' => 'checkbox',
|
209 |
+
'attr' => 'data-watch="change"',
|
210 |
+
'text' => ''
|
211 |
+
),
|
212 |
+
'infoBarDateInfoEnable' => array('label' => 'Show item date',
|
213 |
+
'tag' => 'checkbox',
|
214 |
+
'attr' => 'data-watch="change"',
|
215 |
+
'text' => ''
|
216 |
+
)
|
217 |
+
)
|
218 |
+
),
|
219 |
+
array('label' => 'Lightbox Settings',
|
220 |
+
'fields' => array(
|
221 |
+
'lightBoxEnable' => array('label' => 'Lightbox',
|
222 |
+
'tag' => 'checkbox',
|
223 |
+
'attr' => '',
|
224 |
+
'text' => 'Show the item in the Lightbox by clicking on the thumbnail'
|
225 |
+
),
|
226 |
+
'copyR_Alert' => array('label' => 'Copyright protection - Alert',
|
227 |
+
'tag' => 'input',
|
228 |
+
'attr' => 'type="text"',
|
229 |
+
'text' => 'This message is displayed when a visitor clicks the right mouse button on a photo in a lightbox.'
|
230 |
+
),
|
231 |
+
'sliderPreloaderColor' => array('label' => 'Preloader Color',
|
232 |
+
'tag' => 'input',
|
233 |
+
'attr' => 'type="text" data-type="color"',
|
234 |
+
'text' => ''
|
235 |
+
),
|
236 |
+
'sliderBgColor' => array('label' => 'Background color',
|
237 |
+
'tag' => 'input',
|
238 |
+
'attr' => 'type="text" data-type="rgba"',
|
239 |
+
'text' => ''
|
240 |
+
),
|
241 |
+
'sliderHeaderFooterBgColor' => array('label' => 'Header & Footer background color',
|
242 |
+
'tag' => 'input',
|
243 |
+
'attr' => 'type="text" data-type="color"',
|
244 |
+
'text' => 'Gradient color'
|
245 |
+
),
|
246 |
+
'sliderNavigationColor' => array('label' => 'Navigation button color',
|
247 |
+
'tag' => 'input',
|
248 |
+
'attr' => 'type="text" data-type="rgba"',
|
249 |
+
'text' => ''
|
250 |
+
),
|
251 |
+
'sliderNavigationIconColor' => array('label' => 'Navigation button Icons color',
|
252 |
+
'tag' => 'input',
|
253 |
+
'attr' => 'type="text" data-type="rgba"',
|
254 |
+
'text' => ''
|
255 |
+
),
|
256 |
+
'sliderItemTitleFontSize' => array('label' => 'Item Title - font Size',
|
257 |
+
'tag' => 'input',
|
258 |
+
'attr' => 'type="number" min="11" max="34" step="1"',
|
259 |
+
'text' => ''
|
260 |
+
),
|
261 |
+
'sliderItemTitleTextColor' => array('label' => 'Item Title text color',
|
262 |
+
'tag' => 'input',
|
263 |
+
'attr' => 'type="text" data-type="color"',
|
264 |
+
'text' => ''
|
265 |
+
),
|
266 |
+
'sliderThumbSubMenuBackgroundColor' => array('label' => 'Item Submenu Button color',
|
267 |
+
'tag' => 'input',
|
268 |
+
'attr' => 'type="text" data-type="rgba"',
|
269 |
+
'text' => ''
|
270 |
+
),
|
271 |
+
'sliderThumbSubMenuIconColor' => array('label' => 'Item Submenu Button Icon color',
|
272 |
+
'tag' => 'input',
|
273 |
+
'attr' => 'type="text" data-type="rgba"',
|
274 |
+
'text' => ''
|
275 |
+
),
|
276 |
+
'sliderThumbSubMenuBackgroundColorOver' => array('label' => 'Item Submenu Button color (over)',
|
277 |
+
'tag' => 'input',
|
278 |
+
'attr' => 'type="text" data-type="rgba"',
|
279 |
+
'text' => ''
|
280 |
+
),
|
281 |
+
'sliderThumbSubMenuIconHoverColor' => array('label' => 'Item Submenu Button Icon color (over)',
|
282 |
+
'tag' => 'input',
|
283 |
+
'attr' => 'type="text" data-type="rgba"',
|
284 |
+
'text' => ''
|
285 |
+
),
|
286 |
+
'sliderInfoEnable' => array('label' => 'Item Info button',
|
287 |
+
'tag' => 'checkbox',
|
288 |
+
'attr' => 'data-watch="change"',
|
289 |
+
'text' => ''
|
290 |
+
),
|
291 |
+
'sliderItemDownload' => array('label' => 'Item Download button',
|
292 |
+
'tag' => 'checkbox',
|
293 |
+
'attr' => 'data-watch="change"',
|
294 |
+
'text' => ''
|
295 |
+
),
|
296 |
+
'sliderSocialShareEnabled' => array('label' => 'Item Share button',
|
297 |
+
'tag' => 'checkbox',
|
298 |
+
'attr' => 'data-watch="change"',
|
299 |
+
'text' => ''
|
300 |
+
),
|
301 |
+
'sliderLikesEnabled' => array('label' => 'Item Like button',
|
302 |
+
'tag' => 'checkbox',
|
303 |
+
'attr' => 'data-watch="change"',
|
304 |
+
'text' => ''
|
305 |
+
)
|
306 |
+
)
|
307 |
+
),
|
308 |
+
array('label' => 'Advanced Settings',
|
309 |
+
'fields' => array('customCSS' => array('label' => 'Custom CSS',
|
310 |
+
'tag' => 'textarea',
|
311 |
+
'attr' => 'cols="20" rows="10"',
|
312 |
+
'text' => 'You can enter custom style rules into this box if you\'d like. IE: <i>a{color: red !important;}</i>
|
313 |
+
<br />This is an advanced option! This is not recommended for users not fluent in CSS... but if you do know CSS,
|
314 |
+
anything you add here will override the default styles'
|
315 |
+
)
|
316 |
+
/*,
|
317 |
+
'loveLink' => array(
|
318 |
+
'label' => 'Display LoveLink?',
|
319 |
+
'tag' => 'checkbox',
|
320 |
+
'attr' => '',
|
321 |
+
'text' => 'Selecting "Yes" will show the lovelink icon (codeasily.com) somewhere on the gallery'
|
322 |
+
)*/
|
323 |
+
)
|
324 |
+
)
|
325 |
+
);
|
skins/nivogallery/init.php
CHANGED
@@ -3,10 +3,10 @@ $ver = '1.1';
|
|
3 |
|
4 |
$base_url_host = parse_url(site_url(), PHP_URL_HOST);
|
5 |
|
6 |
-
wp_enqueue_style('flagallery-nivoslider-skin', plugins_url('/css/nivoslider.css', __FILE__), array('nivo-slider'), $ver);
|
7 |
wp_enqueue_script('flagallery-nivoslider-skin', plugins_url('/js/nivoslider.js', __FILE__), array(
|
8 |
'jquery',
|
9 |
-
'nivo-slider',
|
10 |
), $ver, true
|
11 |
);
|
12 |
|
3 |
|
4 |
$base_url_host = parse_url(site_url(), PHP_URL_HOST);
|
5 |
|
6 |
+
wp_enqueue_style('flagallery-nivoslider-skin', plugins_url('/css/nivoslider.css', __FILE__), array('flag-nivo-slider'), $ver);
|
7 |
wp_enqueue_script('flagallery-nivoslider-skin', plugins_url('/js/nivoslider.js', __FILE__), array(
|
8 |
'jquery',
|
9 |
+
'flag-nivo-slider',
|
10 |
), $ver, true
|
11 |
);
|
12 |
|
skins/nivoslider/init.php
CHANGED
@@ -3,8 +3,8 @@ $ver = '1.1';
|
|
3 |
|
4 |
$base_url_host = parse_url(site_url(), PHP_URL_HOST);
|
5 |
|
6 |
-
wp_enqueue_style('flagallery-nivoslider-skin', plugins_url('/css/nivoslider.css', __FILE__), array('nivo-slider'), $ver);
|
7 |
-
wp_enqueue_script('flagallery-nivoslider-skin', plugins_url('/js/nivoslider.js', __FILE__), array('jquery', 'nivo-slider'), $ver, true);
|
8 |
|
9 |
$settings['boxCols'] = 8;
|
10 |
$settings['boxRows'] = 4;
|
3 |
|
4 |
$base_url_host = parse_url(site_url(), PHP_URL_HOST);
|
5 |
|
6 |
+
wp_enqueue_style('flagallery-nivoslider-skin', plugins_url('/css/nivoslider.css', __FILE__), array('flag-nivo-slider'), $ver);
|
7 |
+
wp_enqueue_script('flagallery-nivoslider-skin', plugins_url('/js/nivoslider.js', __FILE__), array('jquery', 'flag-nivo-slider'), $ver, true);
|
8 |
|
9 |
$settings['boxCols'] = 8;
|
10 |
$settings['boxRows'] = 4;
|
skins/phantom/css/phantom.css
CHANGED
@@ -285,7 +285,8 @@ body .gmShowBuster { display:block !important; }
|
|
285 |
.flagallery-phantom .mfp-close.mfp-button,
|
286 |
.flagallery-phantom .mfp-arrow { overflow:visible; z-index:1046; }
|
287 |
.flagallery-phantom .mfp-close.mfp-button { right:auto; left:0; padding-right:10px; padding-left:0; }
|
288 |
-
.flagallery-phantom .mfp-arrow { bottom:50%; top:auto; margin-top:auto; margin-bottom:-55px; }
|
|
|
289 |
.flagallery-phantom .mfp-figure figure { min-width:308px; }
|
290 |
.flagallery-phantom img.mfp-img { width:auto; max-width:100%; height:auto; display:block; line-height:0; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; padding:40px 0 40px; margin:0 auto; }
|
291 |
.flagallery-phantom .mfp-prevent-click { pointer-events:none; }
|
@@ -308,8 +309,6 @@ body .gmShowBuster { display:block !important; }
|
|
308 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_twitter:hover { background-color:#00aced; }
|
309 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_pinterest { background-image:url('../img/pinterest@2x.png'); background-size:1em 1em; }
|
310 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_pinterest:hover { background-color:#cc2127; }
|
311 |
-
.flagallery-phantom .mfp-buttons-bar .mfp-share_google { background-image:url('../img/google@2x.png'); background-size:1em 1em; }
|
312 |
-
.flagallery-phantom .mfp-buttons-bar .mfp-share_google:hover { background-color:#d64a2d; }
|
313 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_stumbleupon { background-image:url('../img/stumbleupon@2x.png'); background-size:1em 1em; }
|
314 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_stumbleupon:hover { background-color:#ea4b24; }
|
315 |
.flagallery-phantom .mfp-likes { cursor:pointer; display:inline-block; text-align:center; opacity:0.65; filter:alpha(opacity=65); }
|
285 |
.flagallery-phantom .mfp-close.mfp-button,
|
286 |
.flagallery-phantom .mfp-arrow { overflow:visible; z-index:1046; }
|
287 |
.flagallery-phantom .mfp-close.mfp-button { right:auto; left:0; padding-right:10px; padding-left:0; }
|
288 |
+
.flagallery-phantom .mfp-arrow { bottom:50%; top:auto; margin-top:auto; margin-bottom:-55px; background: none; }
|
289 |
+
.flagallery-phantom .mfp-arrow:after { border-top-width: 13px !important; border-bottom-width: 13px !important; display: block !important; top: 8px; }
|
290 |
.flagallery-phantom .mfp-figure figure { min-width:308px; }
|
291 |
.flagallery-phantom img.mfp-img { width:auto; max-width:100%; height:auto; display:block; line-height:0; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; padding:40px 0 40px; margin:0 auto; }
|
292 |
.flagallery-phantom .mfp-prevent-click { pointer-events:none; }
|
309 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_twitter:hover { background-color:#00aced; }
|
310 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_pinterest { background-image:url('../img/pinterest@2x.png'); background-size:1em 1em; }
|
311 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_pinterest:hover { background-color:#cc2127; }
|
|
|
|
|
312 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_stumbleupon { background-image:url('../img/stumbleupon@2x.png'); background-size:1em 1em; }
|
313 |
.flagallery-phantom .mfp-buttons-bar .mfp-share_stumbleupon:hover { background-color:#ea4b24; }
|
314 |
.flagallery-phantom .mfp-likes { cursor:pointer; display:inline-block; text-align:center; opacity:0.65; filter:alpha(opacity=65); }
|
skins/phantom/js/phantom.js
CHANGED
@@ -272,10 +272,6 @@ if(typeof jQuery.fn.flagPhantom == 'undefined') {
|
|
272 |
sharelink = 'https://pinterest.com/pin/create/button/?url=' + encodeURIComponent(url) + '&media=' + encodeURIComponent(imgsrc) + '&description=' + encodeURIComponent(title);
|
273 |
window.open(sharelink, '_blank');
|
274 |
}
|
275 |
-
if($(this).hasClass('mfp-share_google')) {
|
276 |
-
sharelink = 'https://plus.google.com/share?url=' + encodeURIComponent(url);
|
277 |
-
window.open(sharelink, '_blank');
|
278 |
-
}
|
279 |
if($(this).hasClass('mfp-share_stumbleupon')) {
|
280 |
sharelink = 'http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
|
281 |
window.open(sharelink, '_blank');
|
@@ -405,7 +401,7 @@ if(typeof jQuery.fn.flagPhantom == 'undefined') {
|
|
405 |
},
|
406 |
gallery: {
|
407 |
enabled: true,
|
408 |
-
arrowMarkup: '<div title="%title%"
|
409 |
tCounter: '%curr% / %total%'
|
410 |
},
|
411 |
|
@@ -461,7 +457,6 @@ if(typeof jQuery.fn.flagPhantom == 'undefined') {
|
|
461 |
' <li><a class="mfp-share_facebook mfp-share_sharelizer">Facebook</a></li>' +
|
462 |
' <li><a class="mfp-share_twitter mfp-share_sharelizer">Twitter</a></li>' +
|
463 |
' <li><a class="mfp-share_pinterest mfp-share_sharelizer">Pinterest</a></li>' +
|
464 |
-
' <li><a class="mfp-share_google mfp-share_sharelizer">Google+</a></li>' +
|
465 |
' <li><a class="mfp-share_stumbleupon mfp-share_sharelizer">StumbleUpon</a></li>' +
|
466 |
' </ul>' +
|
467 |
'</div>';
|
@@ -767,9 +762,9 @@ if(typeof jQuery.fn.flagPhantom == 'undefined') {
|
|
767 |
var img = $('.flagPhantom_Thumb > img', this);
|
768 |
var thumb_ratio = $(this).data('ratio');
|
769 |
if(opt.ratio <= thumb_ratio) {
|
770 |
-
img.
|
771 |
} else {
|
772 |
-
|
773 |
if(1 != thumb_ratio) {
|
774 |
img.css('margin', Math.floor((opt.thumbWidth / thumb_ratio - opt.thumbHeight) / opt.thumbHeight * 10) + '% 0 0 0');
|
775 |
}
|
@@ -789,7 +784,7 @@ if(typeof jQuery.fn.flagPhantom == 'undefined') {
|
|
789 |
//var thumbH = opt.thumbHeight + opt.thumbBorderSize * 2 + opt.thumbPadding * 2,
|
790 |
// thumbs_el_height = thumbH * opt.thumbRows + opt.thumbRows * opt.thumbsSpacing;
|
791 |
//$('.flagPhantom_thumbsWrapper', Container).height(thumbs_el_height + scrollbar_width);
|
792 |
-
$('.
|
793 |
|
794 |
if(!prototypes.isTouchDevice()) {
|
795 |
if(opt.thumbsNavigation == 'scroll' && typeof(jQuery.fn.jScrollPane) != 'undefined') {
|
272 |
sharelink = 'https://pinterest.com/pin/create/button/?url=' + encodeURIComponent(url) + '&media=' + encodeURIComponent(imgsrc) + '&description=' + encodeURIComponent(title);
|
273 |
window.open(sharelink, '_blank');
|
274 |
}
|
|
|
|
|
|
|
|
|
275 |
if($(this).hasClass('mfp-share_stumbleupon')) {
|
276 |
sharelink = 'http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
|
277 |
window.open(sharelink, '_blank');
|
401 |
},
|
402 |
gallery: {
|
403 |
enabled: true,
|
404 |
+
arrowMarkup: '<div title="%title%" class="mfp-button mfp-arrow mfp-arrow-%dir%"></div>',
|
405 |
tCounter: '%curr% / %total%'
|
406 |
},
|
407 |
|
457 |
' <li><a class="mfp-share_facebook mfp-share_sharelizer">Facebook</a></li>' +
|
458 |
' <li><a class="mfp-share_twitter mfp-share_sharelizer">Twitter</a></li>' +
|
459 |
' <li><a class="mfp-share_pinterest mfp-share_sharelizer">Pinterest</a></li>' +
|
|
|
460 |
' <li><a class="mfp-share_stumbleupon mfp-share_sharelizer">StumbleUpon</a></li>' +
|
461 |
' </ul>' +
|
462 |
'</div>';
|
762 |
var img = $('.flagPhantom_Thumb > img', this);
|
763 |
var thumb_ratio = $(this).data('ratio');
|
764 |
if(opt.ratio <= thumb_ratio) {
|
765 |
+
img.removeClass('portrait').addClass('landscape');
|
766 |
} else {
|
767 |
+
img.removeClass('landscape').addClass('portrait');
|
768 |
if(1 != thumb_ratio) {
|
769 |
img.css('margin', Math.floor((opt.thumbWidth / thumb_ratio - opt.thumbHeight) / opt.thumbHeight * 10) + '% 0 0 0');
|
770 |
}
|
784 |
//var thumbH = opt.thumbHeight + opt.thumbBorderSize * 2 + opt.thumbPadding * 2,
|
785 |
// thumbs_el_height = thumbH * opt.thumbRows + opt.thumbRows * opt.thumbsSpacing;
|
786 |
//$('.flagPhantom_thumbsWrapper', Container).height(thumbs_el_height + scrollbar_width);
|
787 |
+
$('.flagPhantom_thumbsWrapper', Container).height(thumbs_el.height() - opt.thumbsSpacing);
|
788 |
|
789 |
if(!prototypes.isTouchDevice()) {
|
790 |
if(opt.thumbsNavigation == 'scroll' && typeof(jQuery.fn.jScrollPane) != 'undefined') {
|
skins/phantom/phantom.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Skin Name: Phantom
|
4 |
-
Version: 1.
|
5 |
uid: phantom
|
6 |
status: free
|
7 |
Skin URI: https://mypgc.co/portfolio-item/phantom/
|
1 |
<?php
|
2 |
/*
|
3 |
Skin Name: Phantom
|
4 |
+
Version: 1.2
|
5 |
uid: phantom
|
6 |
status: free
|
7 |
Skin URI: https://mypgc.co/portfolio-item/phantom/
|
skins/photomania/css/photomania.css
CHANGED
@@ -144,8 +144,6 @@
|
|
144 |
.flagpm_big_button_wrap ul .flagpm_twitter:hover { background-color:#00aced!important; }
|
145 |
.flagpm_big_button_wrap ul .flagpm_pinterest { background:#262626 url('../img/pinterest@2x.png')!important; background-size:22px 22px!important; }
|
146 |
.flagpm_big_button_wrap ul .flagpm_pinterest:hover { background-color:#cc2127!important; }
|
147 |
-
.flagpm_big_button_wrap ul .flagpm_google { background:#262626 url('../img/google@2x.png')!important; background-size:22px 22px!important; }
|
148 |
-
.flagpm_big_button_wrap ul .flagpm_google:hover { background-color:#d64a2d!important; }
|
149 |
.flagpm_big_button_wrap ul .flagpm_stumbleupon { background:#262626 url('../img/stumbleupon@2x.png')!important; background-size:22px 22px!important; }
|
150 |
.flagpm_big_button_wrap ul .flagpm_stumbleupon:hover { background-color:#ea4b24!important; }
|
151 |
.flagpm_big_button_wrap .flagpm_sharelizers:before { position:absolute; z-index:1; top:100%; right:9px; border-top:10px solid #aaa; border-left:10px solid transparent; border-right:10px solid transparent; content:""; display:block; }
|
@@ -182,8 +180,6 @@
|
|
182 |
.flagpm_focus_actions ul .flagpm_twitter:hover { background-color:#00aced; }
|
183 |
.flagpm_focus_actions ul .flagpm_pinterest { background:#262626 url('../img/pinterest@2x.png'); background-size:22px 22px; }
|
184 |
.flagpm_focus_actions ul .flagpm_pinterest:hover { background-color:#cc2127; }
|
185 |
-
.flagpm_focus_actions ul .flagpm_google { background:#262626 url('../img/google@2x.png'); background-size:22px 22px; }
|
186 |
-
.flagpm_focus_actions ul .flagpm_google:hover { background-color:#d64a2d; }
|
187 |
.flagpm_focus_actions ul .flagpm_stumbleupon { background:#262626 url('../img/stumbleupon@2x.png'); background-size:22px 22px; }
|
188 |
.flagpm_focus_actions ul .flagpm_stumbleupon:hover { background-color:#ea4b24; }
|
189 |
.flagpm_focus_actions .flagpm_focus_share .flagpm_sharelizers .flagpm_button { background-repeat:no-repeat; background-position:center center; }
|
144 |
.flagpm_big_button_wrap ul .flagpm_twitter:hover { background-color:#00aced!important; }
|
145 |
.flagpm_big_button_wrap ul .flagpm_pinterest { background:#262626 url('../img/pinterest@2x.png')!important; background-size:22px 22px!important; }
|
146 |
.flagpm_big_button_wrap ul .flagpm_pinterest:hover { background-color:#cc2127!important; }
|
|
|
|
|
147 |
.flagpm_big_button_wrap ul .flagpm_stumbleupon { background:#262626 url('../img/stumbleupon@2x.png')!important; background-size:22px 22px!important; }
|
148 |
.flagpm_big_button_wrap ul .flagpm_stumbleupon:hover { background-color:#ea4b24!important; }
|
149 |
.flagpm_big_button_wrap .flagpm_sharelizers:before { position:absolute; z-index:1; top:100%; right:9px; border-top:10px solid #aaa; border-left:10px solid transparent; border-right:10px solid transparent; content:""; display:block; }
|
180 |
.flagpm_focus_actions ul .flagpm_twitter:hover { background-color:#00aced; }
|
181 |
.flagpm_focus_actions ul .flagpm_pinterest { background:#262626 url('../img/pinterest@2x.png'); background-size:22px 22px; }
|
182 |
.flagpm_focus_actions ul .flagpm_pinterest:hover { background-color:#cc2127; }
|
|
|
|
|
183 |
.flagpm_focus_actions ul .flagpm_stumbleupon { background:#262626 url('../img/stumbleupon@2x.png'); background-size:22px 22px; }
|
184 |
.flagpm_focus_actions ul .flagpm_stumbleupon:hover { background-color:#ea4b24; }
|
185 |
.flagpm_focus_actions .flagpm_focus_share .flagpm_sharelizers .flagpm_button { background-repeat:no-repeat; background-position:center center; }
|
skins/photomania/init.php
CHANGED
@@ -144,7 +144,6 @@ $photo_show_class .= ' flagpm_preload';
|
|
144 |
<li style="list-style:none;"><a class="flagpm_button flagpm_facebook flagpm_sharelizer"><?php _e( 'Facebook', 'flash-album-gallery' ); ?></a></li>
|
145 |
<li style="list-style:none;"><a class="flagpm_button flagpm_twitter flagpm_sharelizer"><?php _e( 'Twitter', 'flash-album-gallery' ); ?></a></li>
|
146 |
<li style="list-style:none;"><a class="flagpm_button flagpm_pinterest flagpm_sharelizer"><?php _e( 'Pinterest', 'flash-album-gallery' ); ?></a></li>
|
147 |
-
<li style="list-style:none;"><a class="flagpm_button flagpm_google flagpm_sharelizer"><?php _e( 'Google+', 'flash-album-gallery' ); ?></a></li>
|
148 |
<li style="list-style:none;"><a class="flagpm_button flagpm_stumbleupon flagpm_sharelizer"><?php _e( 'StumbleUpon', 'flash-album-gallery' ); ?></a></li>
|
149 |
</ul>
|
150 |
</li>
|
@@ -191,7 +190,6 @@ $photo_show_class .= ' flagpm_preload';
|
|
191 |
<li style="list-style:none;"><a class="flagpm_button flagpm_facebook flagpm_sharelizer"><?php _e( 'Facebook', 'flash-album-gallery' ); ?></a></li>
|
192 |
<li style="list-style:none;"><a class="flagpm_button flagpm_twitter flagpm_sharelizer"><?php _e( 'Twitter', 'flash-album-gallery' ); ?></a></li>
|
193 |
<li style="list-style:none;"><a class="flagpm_button flagpm_pinterest flagpm_sharelizer"><?php _e( 'Pinterest', 'flash-album-gallery' ); ?></a></li>
|
194 |
-
<li style="list-style:none;"><a class="flagpm_button flagpm_google flagpm_sharelizer"><?php _e( 'Google+', 'flash-album-gallery' ); ?></a></li>
|
195 |
<li style="list-style:none;"><a class="flagpm_button flagpm_stumbleupon flagpm_sharelizer"><?php _e( 'StumbleUpon', 'flash-album-gallery' ); ?></a></li>
|
196 |
</ul>
|
197 |
</div>
|
144 |
<li style="list-style:none;"><a class="flagpm_button flagpm_facebook flagpm_sharelizer"><?php _e( 'Facebook', 'flash-album-gallery' ); ?></a></li>
|
145 |
<li style="list-style:none;"><a class="flagpm_button flagpm_twitter flagpm_sharelizer"><?php _e( 'Twitter', 'flash-album-gallery' ); ?></a></li>
|
146 |
<li style="list-style:none;"><a class="flagpm_button flagpm_pinterest flagpm_sharelizer"><?php _e( 'Pinterest', 'flash-album-gallery' ); ?></a></li>
|
|
|
147 |
<li style="list-style:none;"><a class="flagpm_button flagpm_stumbleupon flagpm_sharelizer"><?php _e( 'StumbleUpon', 'flash-album-gallery' ); ?></a></li>
|
148 |
</ul>
|
149 |
</li>
|
190 |
<li style="list-style:none;"><a class="flagpm_button flagpm_facebook flagpm_sharelizer"><?php _e( 'Facebook', 'flash-album-gallery' ); ?></a></li>
|
191 |
<li style="list-style:none;"><a class="flagpm_button flagpm_twitter flagpm_sharelizer"><?php _e( 'Twitter', 'flash-album-gallery' ); ?></a></li>
|
192 |
<li style="list-style:none;"><a class="flagpm_button flagpm_pinterest flagpm_sharelizer"><?php _e( 'Pinterest', 'flash-album-gallery' ); ?></a></li>
|
|
|
193 |
<li style="list-style:none;"><a class="flagpm_button flagpm_stumbleupon flagpm_sharelizer"><?php _e( 'StumbleUpon', 'flash-album-gallery' ); ?></a></li>
|
194 |
</ul>
|
195 |
</div>
|
skins/photomania/js/photomania.js
CHANGED
@@ -479,10 +479,6 @@
|
|
479 |
sharelink = 'https://pinterest.com/pin/create/button/?url=' + encodeURIComponent(url) + '&media=' + encodeURIComponent(imgsrc) + '&description=' + encodeURIComponent(title);
|
480 |
window.open(sharelink, '_blank');
|
481 |
}
|
482 |
-
if ($(this).hasClass('flagpm_google')) {
|
483 |
-
sharelink = 'https://plus.google.com/share?url=' + encodeURIComponent(url);
|
484 |
-
window.open(sharelink, '_blank');
|
485 |
-
}
|
486 |
if ($(this).hasClass('flagpm_stumbleupon')) {
|
487 |
sharelink = 'http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
|
488 |
window.open(sharelink, '_blank');
|
479 |
sharelink = 'https://pinterest.com/pin/create/button/?url=' + encodeURIComponent(url) + '&media=' + encodeURIComponent(imgsrc) + '&description=' + encodeURIComponent(title);
|
480 |
window.open(sharelink, '_blank');
|
481 |
}
|
|
|
|
|
|
|
|
|
482 |
if ($(this).hasClass('flagpm_stumbleupon')) {
|
483 |
sharelink = 'http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title);
|
484 |
window.open(sharelink, '_blank');
|
widgets/widgets.php
CHANGED
@@ -69,7 +69,7 @@ class flagSlideshowWidget extends WP_Widget {
|
|
69 |
|
70 |
// enable i18n support for alttext and description
|
71 |
$alttext = $imageList[$key]['title'];
|
72 |
-
$description = strip_tags( htmlspecialchars( stripslashes( flagGallery::i18n($image->description
|
73 |
|
74 |
$thumburl = $image->thumbURL;
|
75 |
$thumbinfo = @getimagesize($image->thumbPath);
|
69 |
|
70 |
// enable i18n support for alttext and description
|
71 |
$alttext = $imageList[$key]['title'];
|
72 |
+
$description = strip_tags( htmlspecialchars( stripslashes( flagGallery::i18n($image->description) )) );
|
73 |
|
74 |
$thumburl = $image->thumbURL;
|
75 |
$thumbinfo = @getimagesize($image->thumbPath);
|