Version Description
- After plugin update go to Skins page and update skins with 'Update skins' button.
- If you use Facebook template and copied it in the root directory, then after each plugin update click 'Copy facebook.php file to root directory'.
- If GRAND FlAGallery displays an error message after upgrade, go to FlAGallery Overview page and press 'Reset settings'.
- Have some troubles with plugin? Try first reseting settings, deactivate and reactivate plugin.
Download this release
Release Info
Developer | pasyuk |
Plugin | Gallery – Flagallery Photo Portfolio |
Version | 2.51 |
Comparing to | |
See all releases |
Code changes from version 2.50 to 2.51
- admin/banner-box.php +12 -12
- admin/flv_preview.php +2 -1
- admin/jgallery.php +2 -2
- admin/music-box.php +8 -10
- admin/skins.php +15 -4
- changelog.txt +8 -0
- flag.php +2 -2
- lib/media-rss.php +1 -1
- lib/shortcodes.php +1 -1
- lib/swfobject.php +3 -3
- readme.txt +9 -1
- skins/banner_default/banner_default.php +5 -4
- skins/banner_default/settings/settings.xml +1 -1
- skins/banner_widget_default/banner_widget_default.php +2 -2
- skins/banner_widget_default/gallery.php +1 -1
- skins/banner_widget_default/settings/constructor.php +0 -68
- skins/banner_widget_default/settings/settings.xml +1 -1
- skins/compact_music_player/compact_music_player.php +2 -2
- skins/compact_music_player/settings/constructor.php +0 -202
- skins/compact_music_player/settings/settings.xml +15 -15
- skins/music_default/music_default.php +2 -2
- skins/music_default/settings/constructor.php +0 -68
- skins/music_default/settings/settings.xml +15 -101
- skins/video_default/settings/constructor.php +0 -68
- skins/video_default/settings/settings.xml +1 -1
- skins/video_default/video_default.php +2 -2
- widgets/widgets.php +2 -2
admin/banner-box.php
CHANGED
@@ -273,18 +273,18 @@ function showDialog( windowId, height ) {
|
|
273 |
<script type="text/javascript" src="<?php echo FLAG_URLPATH; ?>admin/js/jqueryFileTree/jqueryFileTree.js"></script>
|
274 |
<script type="text/javascript">
|
275 |
/* <![CDATA[ */
|
276 |
-
jQuery(function() {
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
});
|
289 |
/* ]]> */
|
290 |
</script>
|
273 |
<script type="text/javascript" src="<?php echo FLAG_URLPATH; ?>admin/js/jqueryFileTree/jqueryFileTree.js"></script>
|
274 |
<script type="text/javascript">
|
275 |
/* <![CDATA[ */
|
276 |
+
jQuery(function() {
|
277 |
+
jQuery("span.browsefiles").show().click(function(){
|
278 |
+
jQuery("#file_browser").fileTree({
|
279 |
+
script: "admin-ajax.php?action=flag_file_browser&nonce=<?php echo wp_create_nonce( 'flag-ajax' ) ;?>",
|
280 |
+
root: jQuery("#bannerfolder").val()
|
281 |
+
}, function(file) {
|
282 |
+
//var path = file.replace("<?php echo WINABSPATH; ?>", "");
|
283 |
+
jQuery("#bannerfolder").val(file);
|
284 |
+
});
|
285 |
+
|
286 |
+
jQuery("#file_browser").show("slide");
|
287 |
+
});
|
288 |
});
|
289 |
/* ]]> */
|
290 |
</script>
|
admin/flv_preview.php
CHANGED
@@ -11,7 +11,8 @@ if ( !current_user_can('FlAG Manage video') )
|
|
11 |
<html>
|
12 |
<head>
|
13 |
<title>Preview Video</title>
|
14 |
-
|
|
|
15 |
</head>
|
16 |
<body style="margin: 0; padding: 0; background: #555555; overflow: hidden;">
|
17 |
<?php echo flagShowVmPlayer($_GET['vid'], $w='520', $h='304', $autoplay=true); ?>
|
11 |
<html>
|
12 |
<head>
|
13 |
<title>Preview Video</title>
|
14 |
+
<script type="text/javascript" src="<?php echo plugins_url('/'.FLAGFOLDER.'/'); ?>admin/js/jquery.js"></script>
|
15 |
+
<script type="text/javascript" src="<?php echo plugins_url('/'.FLAGFOLDER.'/'); ?>admin/js/swfobject.js"></script>
|
16 |
</head>
|
17 |
<body style="margin: 0; padding: 0; background: #555555; overflow: hidden;">
|
18 |
<?php echo flagShowVmPlayer($_GET['vid'], $w='520', $h='304', $autoplay=true); ?>
|
admin/jgallery.php
CHANGED
@@ -7,9 +7,9 @@ extract($altColors);
|
|
7 |
$bg = ($wmode == 'window')? '#'.$Background : 'transparent';
|
8 |
$xml['alt'] .= '<style type="text/css">'.PHP_EOL;
|
9 |
if(!$isCrawler) {
|
10 |
-
$xml['alt'] .= '@import url("'.
|
11 |
}
|
12 |
-
$xml['alt'] .= '@import url("'.
|
13 |
if($isCrawler) {
|
14 |
$xml['alt'] .= '.flag_alternate .flagCatMeta h4 { padding: 4px 10px; margin: 7px 0; border: none; font: 14px Tahoma; text-decoration: none; background:#292929 none; color: #ffffff; }
|
15 |
.flag_alternate .flagCatMeta p { font-size: 12px; }'.PHP_EOL;
|
7 |
$bg = ($wmode == 'window')? '#'.$Background : 'transparent';
|
8 |
$xml['alt'] .= '<style type="text/css">'.PHP_EOL;
|
9 |
if(!$isCrawler) {
|
10 |
+
$xml['alt'] .= '@import url("'.plugins_url('/admin/css/flagallery_nocrawler.css', dirname(__FILE__)).'");'.PHP_EOL;
|
11 |
}
|
12 |
+
$xml['alt'] .= '@import url("'.plugins_url('/admin/css/flagallery_noflash.css', dirname(__FILE__)).'");'.PHP_EOL;
|
13 |
if($isCrawler) {
|
14 |
$xml['alt'] .= '.flag_alternate .flagCatMeta h4 { padding: 4px 10px; margin: 7px 0; border: none; font: 14px Tahoma; text-decoration: none; background:#292929 none; color: #ffffff; }
|
15 |
.flag_alternate .flagCatMeta p { font-size: 12px; }'.PHP_EOL;
|
admin/music-box.php
CHANGED
@@ -243,17 +243,15 @@ function send_to_editor(html) {
|
|
243 |
<script type="text/javascript">
|
244 |
/* <![CDATA[ */
|
245 |
jQuery(function() {
|
246 |
-
jQuery("
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
jQuery("#mp3folder").val(file);
|
253 |
-
});
|
254 |
-
|
255 |
-
jQuery("#file_browser").show("slide");
|
256 |
});
|
|
|
|
|
257 |
});
|
258 |
/* ]]> */
|
259 |
</script>
|
243 |
<script type="text/javascript">
|
244 |
/* <![CDATA[ */
|
245 |
jQuery(function() {
|
246 |
+
jQuery("#file_browser").fileTree({
|
247 |
+
script: "admin-ajax.php?action=flag_file_browser&nonce=<?php echo wp_create_nonce( 'flag-ajax' ) ;?>",
|
248 |
+
root: jQuery("#mp3folder").val()
|
249 |
+
}, function(file) {
|
250 |
+
//var path = file.replace("<?php echo WINABSPATH; ?>", "");
|
251 |
+
jQuery("#mp3folder").val(file);
|
|
|
|
|
|
|
|
|
252 |
});
|
253 |
+
|
254 |
+
jQuery("#file_browser").show("slide");
|
255 |
});
|
256 |
/* ]]> */
|
257 |
</script>
|
admin/skins.php
CHANGED
@@ -286,6 +286,7 @@ if( isset($_GET['skins_refresh']) ) {
|
|
286 |
|
287 |
<script type="text/javascript">
|
288 |
/* <![CDATA[ */
|
|
|
289 |
var cptabs=new ddtabcontent("tabs");
|
290 |
cptabs.setpersist(false);
|
291 |
cptabs.setselectedClassTarget("linkparent");
|
@@ -320,10 +321,19 @@ if( isset($_GET['skins_refresh']) ) {
|
|
320 |
$all_skins = get_skins(false,$type);
|
321 |
$total_all_skins = count($all_skins);
|
322 |
|
|
|
323 |
// not installed skins
|
324 |
-
$skins_xml = @simplexml_load_file(
|
325 |
$all_skins_arr = $skins_by_type = array();
|
326 |
$skins_xml_error = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
if(!empty($skins_xml)) {
|
328 |
foreach($skins_xml as $skin){
|
329 |
$suid = (string) $skin->uid;
|
@@ -332,7 +342,8 @@ $total_all_skins = count($all_skins);
|
|
332 |
$skins_by_type[$skintype][$suid] = $all_skins_arr[$suid];
|
333 |
}
|
334 |
} else {
|
335 |
-
|
|
|
336 |
}
|
337 |
|
338 |
|
@@ -441,10 +452,10 @@ $total_all_skins = count($all_skins);
|
|
441 |
if(isset($skins_by_type[$stype]) && !empty($skins_by_type[$stype])) {
|
442 |
foreach($skins_by_type[$stype] as $skin) { ?>
|
443 |
<div class="skin <?php echo $skin['type'].' '.$skin['status']; ?>" id="uid-<?php echo $skin['uid']; ?>" style="padding: 10px; float:left;">
|
444 |
-
<center>
|
445 |
<p><strong style="font-size: 120%;"><?php echo $skin['title']; ?></strong> <span class="version"><?php echo 'v'.$skin['version']; ?></span></p>
|
446 |
<div class="screenshot"><img src="<?php echo $skin['screenshot']; ?>" width="200" height="184" alt=""/></div>
|
447 |
-
</
|
448 |
<div class="content">
|
449 |
<div class="links" style="text-align: center;">
|
450 |
<form action="<?php echo admin_url('admin.php?page=flag-skins').'&type='.$type; ?>" method="post">
|
286 |
|
287 |
<script type="text/javascript">
|
288 |
/* <![CDATA[ */
|
289 |
+
//noinspection JSPotentiallyInvalidConstructorUsage
|
290 |
var cptabs=new ddtabcontent("tabs");
|
291 |
cptabs.setpersist(false);
|
292 |
cptabs.setselectedClassTarget("linkparent");
|
321 |
$all_skins = get_skins(false,$type);
|
322 |
$total_all_skins = count($all_skins);
|
323 |
|
324 |
+
$skins_remote_xml = 'https://dl.dropbox.com/u/104873029/flagallery_skins/skins_v2.xml';
|
325 |
// not installed skins
|
326 |
+
$skins_xml = @simplexml_load_file($skins_remote_xml, 'SimpleXMLElement', LIBXML_NOCDATA);
|
327 |
$all_skins_arr = $skins_by_type = array();
|
328 |
$skins_xml_error = false;
|
329 |
+
if(empty($skins_xml)){
|
330 |
+
$ch = curl_init($skins_remote_xml);
|
331 |
+
curl_setopt($ch, CURLOPT_HEADER, 0);
|
332 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
333 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
334 |
+
$skins_xml = @simplexml_load_string(curl_exec($ch));
|
335 |
+
curl_close ($ch);
|
336 |
+
}
|
337 |
if(!empty($skins_xml)) {
|
338 |
foreach($skins_xml as $skin){
|
339 |
$suid = (string) $skin->uid;
|
342 |
$skins_by_type[$skintype][$suid] = $all_skins_arr[$suid];
|
343 |
}
|
344 |
} else {
|
345 |
+
//$skins_xml_error = __('URL file-access is disabled in the server configuration.', 'flag');
|
346 |
+
$skins_xml_error = __('cURL library is not installed on your server.','flag');
|
347 |
}
|
348 |
|
349 |
|
452 |
if(isset($skins_by_type[$stype]) && !empty($skins_by_type[$stype])) {
|
453 |
foreach($skins_by_type[$stype] as $skin) { ?>
|
454 |
<div class="skin <?php echo $skin['type'].' '.$skin['status']; ?>" id="uid-<?php echo $skin['uid']; ?>" style="padding: 10px; float:left;">
|
455 |
+
<div style="text-align: center;">
|
456 |
<p><strong style="font-size: 120%;"><?php echo $skin['title']; ?></strong> <span class="version"><?php echo 'v'.$skin['version']; ?></span></p>
|
457 |
<div class="screenshot"><img src="<?php echo $skin['screenshot']; ?>" width="200" height="184" alt=""/></div>
|
458 |
+
</div>
|
459 |
<div class="content">
|
460 |
<div class="links" style="text-align: center;">
|
461 |
<form action="<?php echo admin_url('admin.php?page=flag-skins').'&type='.$type; ?>" method="post">
|
changelog.txt
CHANGED
@@ -1,6 +1,14 @@
|
|
1 |
GRAND FlAGallery
|
2 |
by Rattus & CodEasily DEV Team
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
= v2.50 - 05.02.2013 =
|
5 |
* Added: New Default 'Minima' skin - better, faster, nicer.
|
6 |
* Added: Image views and likes now visible in alternative gallery
|
1 |
GRAND FlAGallery
|
2 |
by Rattus & CodEasily DEV Team
|
3 |
|
4 |
+
= v2.51 - 19.02.2013 =
|
5 |
+
* Fixed: 'Import folder' for Banner Box
|
6 |
+
* Fixed: Video preview in admin area
|
7 |
+
* Fixed: https support for CSS and JS includes
|
8 |
+
* Fixed: Error 'URL file-access is disabled in the server configuration.'
|
9 |
+
* Updated: bundled skins
|
10 |
+
* Added: License for Banners and Video Blog
|
11 |
+
|
12 |
= v2.50 - 05.02.2013 =
|
13 |
* Added: New Default 'Minima' skin - better, faster, nicer.
|
14 |
* Added: Image views and likes now visible in alternative gallery
|
flag.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GRAND Flash Album Gallery
|
4 |
Plugin URI: http://codeasily.com/wordpress-plugins/flash-album-gallery/flag/
|
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: 2.
|
7 |
Author: Rattus
|
8 |
Author URI: http://codeasily.com/
|
9 |
|
@@ -23,7 +23,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
|
|
23 |
if (!class_exists('flagLoad')) {
|
24 |
class flagLoad {
|
25 |
|
26 |
-
var $version = '2.
|
27 |
var $dbversion = '1.24';
|
28 |
var $minium_WP = '3.0';
|
29 |
var $minium_WPMU = '3.0';
|
3 |
Plugin Name: GRAND Flash Album Gallery
|
4 |
Plugin URI: http://codeasily.com/wordpress-plugins/flash-album-gallery/flag/
|
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: 2.51
|
7 |
Author: Rattus
|
8 |
Author URI: http://codeasily.com/
|
9 |
|
23 |
if (!class_exists('flagLoad')) {
|
24 |
class flagLoad {
|
25 |
|
26 |
+
var $version = '2.51';
|
27 |
var $dbversion = '1.24';
|
28 |
var $minium_WP = '3.0';
|
29 |
var $minium_WPMU = '3.0';
|
lib/media-rss.php
CHANGED
@@ -21,7 +21,7 @@ class flagMediaRss {
|
|
21 |
* Get the URL of the general media RSS
|
22 |
*/
|
23 |
function get_mrss_url() {
|
24 |
-
return
|
25 |
}
|
26 |
|
27 |
/**
|
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 |
/**
|
lib/shortcodes.php
CHANGED
@@ -173,7 +173,7 @@ class FlAG_shortcodes {
|
|
173 |
$url = wp_get_attachment_url($id);
|
174 |
$url = str_replace(array('.mp3'), array(''), $url);
|
175 |
if( ! flagGallery::getUserNow($_SERVER['HTTP_USER_AGENT']) ){
|
176 |
-
$out = '<script type="text/javascript">swfobject.embedSWF("'.
|
177 |
}
|
178 |
$out .= '<div id="c-'.$id.'" class="grandmp3"><audio src="'.$url.'.mp3" controls preload="none" autobuffer="false"></audio></div>';
|
179 |
}
|
173 |
$url = wp_get_attachment_url($id);
|
174 |
$url = str_replace(array('.mp3'), array(''), $url);
|
175 |
if( ! flagGallery::getUserNow($_SERVER['HTTP_USER_AGENT']) ){
|
176 |
+
$out = '<script type="text/javascript">swfobject.embedSWF("'.plugins_url('/lib/mini.swf', dirname(__FILE__)).'", "c-'.$id.'", "250", "20", "10.1.52", "expressInstall.swf", {path:"'.$url.'",bgcolor:"'.$flag_options["mpBG"].'",color1:"'.$flag_options["mpColor1"].'",color2:"'.$flag_options["mpColor2"].'",autoplay:"'.$autoplay.'"}, {wmode:"transparent"}, {id:"f-'.$id.'",name:"f-'.$id.'"});</script>';
|
177 |
}
|
178 |
$out .= '<div id="c-'.$id.'" class="grandmp3"><audio src="'.$url.'.mp3" controls preload="none" autobuffer="false"></audio></div>';
|
179 |
}
|
lib/swfobject.php
CHANGED
@@ -84,7 +84,7 @@ function flagShowFlashAlbum($galleryID, $name='', $width='', $height='', $skin='
|
|
84 |
else
|
85 |
$height = 'auto';
|
86 |
// init the flash output
|
87 |
-
$swfobject = new flag_swfobject( plugins_url('flagallery-skins/'.$skin.'/gallery.swf') , $skinID, '100%', '100%', '11.0.0',
|
88 |
|
89 |
$swfobject->add_params('wmode', $wmode);
|
90 |
$swfobject->add_params('allowfullscreen', 'true');
|
@@ -212,7 +212,7 @@ function flagShowVmPlayer($id, $w, $h, $autoplay) {
|
|
212 |
if (empty($autoplay)) $autoplay = $flag_options['vAutoplay'];
|
213 |
|
214 |
// init the flash output
|
215 |
-
$swfobject = new flag_swfobject(
|
216 |
|
217 |
$videoObject = get_post($id);
|
218 |
$url = wp_get_attachment_url($videoObject->ID);
|
@@ -233,7 +233,7 @@ function flagShowVmPlayer($id, $w, $h, $autoplay) {
|
|
233 |
$swfobject->add_attributes('id', $vID);
|
234 |
|
235 |
// adding the flash parameter
|
236 |
-
$swfobject->add_flashvars( 'path',
|
237 |
$swfobject->add_flashvars( 'vID', $id );
|
238 |
$swfobject->add_flashvars( 'flashID', $vID );
|
239 |
$swfobject->add_flashvars( 'autoplay', $autoplay );
|
84 |
else
|
85 |
$height = 'auto';
|
86 |
// init the flash output
|
87 |
+
$swfobject = new flag_swfobject( plugins_url('flagallery-skins/'.$skin.'/gallery.swf') , $skinID, '100%', '100%', '11.0.0', plugins_url('/skins/expressInstall.swf', dirname(__FILE__)));
|
88 |
|
89 |
$swfobject->add_params('wmode', $wmode);
|
90 |
$swfobject->add_params('allowfullscreen', 'true');
|
212 |
if (empty($autoplay)) $autoplay = $flag_options['vAutoplay'];
|
213 |
|
214 |
// init the flash output
|
215 |
+
$swfobject = new flag_swfobject( plugins_url('/lib/video_mini.swf', dirname(__FILE__)) , $vID, $w, $h, '10.1.52', plugins_url('/skins/expressInstall.swf', dirname(__FILE__)));
|
216 |
|
217 |
$videoObject = get_post($id);
|
218 |
$url = wp_get_attachment_url($videoObject->ID);
|
233 |
$swfobject->add_attributes('id', $vID);
|
234 |
|
235 |
// adding the flash parameter
|
236 |
+
$swfobject->add_flashvars( 'path', plugins_url('/lib/', dirname(__FILE__)) );
|
237 |
$swfobject->add_flashvars( 'vID', $id );
|
238 |
$swfobject->add_flashvars( 'flashID', $vID );
|
239 |
$swfobject->add_flashvars( 'autoplay', $autoplay );
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Rattus
|
|
3 |
Donate link: http://photogallerycreator.com/grand-flagallery/
|
4 |
Tags: admin, flash, fullscreen gallery, gallery, image, images, image gallery, mp3, music, page, photo, slider, plugin, Post, posts, slideshow, video, widget, iOS gallery, iphone gallery
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.
|
7 |
Stable tag: trunk
|
8 |
|
9 |
GRAND Flash Album Gallery is a Photo Gallery, Video Gallery, Music Album & Banner Rotator plugin with powerfull admin to manage your media content
|
@@ -41,6 +41,14 @@ Now you can see "Views" of each photo in the gallery and visitors can "Like" ima
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
= v2.50 - 05.02.2013 =
|
45 |
* Added: New Default 'Minima' skin - better, faster, nicer.
|
46 |
* Added: Image views and likes now visible in alternative gallery
|
3 |
Donate link: http://photogallerycreator.com/grand-flagallery/
|
4 |
Tags: admin, flash, fullscreen gallery, gallery, image, images, image gallery, mp3, music, page, photo, slider, plugin, Post, posts, slideshow, video, widget, iOS gallery, iphone gallery
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 3.5.1
|
7 |
Stable tag: trunk
|
8 |
|
9 |
GRAND Flash Album Gallery is a Photo Gallery, Video Gallery, Music Album & Banner Rotator plugin with powerfull admin to manage your media content
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= v2.51 - 19.02.2013 =
|
45 |
+
* Fixed: 'Import folder' for Banner Box
|
46 |
+
* Fixed: Video preview in admin area
|
47 |
+
* Fixed: https support for CSS and JS includes
|
48 |
+
* Fixed: Error 'URL file-access is disabled in the server configuration.'
|
49 |
+
* Updated: bundled skins
|
50 |
+
* Added: License for Banners and Video Blog
|
51 |
+
|
52 |
= v2.50 - 05.02.2013 =
|
53 |
* Added: New Default 'Minima' skin - better, faster, nicer.
|
54 |
* Added: Image views and likes now visible in alternative gallery
|
skins/banner_default/banner_default.php
CHANGED
@@ -5,7 +5,7 @@ Skin URI:
|
|
5 |
Description: New version! Responsive layout. Themes available.
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
-
Version: 2.
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_banner_default($args) {
|
@@ -39,9 +39,9 @@ function flagShowSkin_banner_default($args) {
|
|
39 |
$out = '';
|
40 |
|
41 |
if(count($items)) {
|
42 |
-
$out .= '<link rel="stylesheet" href="'.
|
43 |
-
<link rel="stylesheet" href="'.
|
44 |
-
<script src="'.
|
45 |
<script type="text/javascript">
|
46 |
jQuery(window).load(function() {
|
47 |
jQuery("#slider_'.$skinID.'").nivoSlider({
|
@@ -96,6 +96,7 @@ jQuery(window).load(function() {
|
|
96 |
}
|
97 |
$out .= '
|
98 |
</div>
|
|
|
99 |
</div>';
|
100 |
|
101 |
$out = apply_filters('flag_show_flash_b_content', $out);
|
5 |
Description: New version! Responsive layout. Themes available.
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
+
Version: 2.1
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_banner_default($args) {
|
39 |
$out = '';
|
40 |
|
41 |
if(count($items)) {
|
42 |
+
$out .= '<link rel="stylesheet" href="'.plugins_url('/'.FLAGFOLDER.'/').'admin/js/themes/'.$theme.'/styles.css" type="text/css" media="screen" />
|
43 |
+
<link rel="stylesheet" href="'.plugins_url('/'.FLAGFOLDER.'/').'admin/js/nivo-slider.css" type="text/css" media="screen" />
|
44 |
+
<script src="'.plugins_url('/'.FLAGFOLDER.'/').'admin/js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
|
45 |
<script type="text/javascript">
|
46 |
jQuery(window).load(function() {
|
47 |
jQuery("#slider_'.$skinID.'").nivoSlider({
|
96 |
}
|
97 |
$out .= '
|
98 |
</div>
|
99 |
+
<div class="grandlovelink"><a href="http://wordpress.org/extend/plugins/flash-album-gallery/">GRAND FlAGallery WordPress plugin</a></div>
|
100 |
</div>';
|
101 |
|
102 |
$out = apply_filters('flag_show_flash_b_content', $out);
|
skins/banner_default/settings/settings.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<panel title="Banner Box Skin 1
|
3 |
<item type="comboBox" name="theme">
|
4 |
<title><![CDATA[Choose theme]]></title>
|
5 |
<data>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<panel title="Banner Box Skin 2.1">
|
3 |
<item type="comboBox" name="theme">
|
4 |
<title><![CDATA[Choose theme]]></title>
|
5 |
<data>
|
skins/banner_widget_default/banner_widget_default.php
CHANGED
@@ -5,7 +5,7 @@ Skin URI:
|
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
-
Version: 1.
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_banner_widget_default($args) {
|
@@ -35,7 +35,7 @@ function flagShowSkin_banner_widget_default($args) {
|
|
35 |
|
36 |
$alternate = get_include_contents($skinpath . "/jgallery.php", $playlistpath, $skin, $skinID, $width, $height, $params);
|
37 |
// init the flash output
|
38 |
-
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52',
|
39 |
global $swfCounter;
|
40 |
|
41 |
$swfobject->add_params('wmode', $wmode);
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
+
Version: 1.1
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_banner_widget_default($args) {
|
35 |
|
36 |
$alternate = get_include_contents($skinpath . "/jgallery.php", $playlistpath, $skin, $skinID, $width, $height, $params);
|
37 |
// init the flash output
|
38 |
+
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52', plugins_url('/'.FLAGFOLDER.'/') .'skins/expressInstall.swf');
|
39 |
global $swfCounter;
|
40 |
|
41 |
$swfobject->add_params('wmode', $wmode);
|
skins/banner_widget_default/gallery.php
CHANGED
@@ -39,6 +39,6 @@ if(file_exists($playlistPath)) {
|
|
39 |
$newXML = preg_replace("|<properties>.*?<category|si", $properties, $newXML);
|
40 |
echo $newXML;
|
41 |
} else {
|
42 |
-
echo 'no such file or directory';
|
43 |
}
|
44 |
?>
|
39 |
$newXML = preg_replace("|<properties>.*?<category|si", $properties, $newXML);
|
40 |
echo $newXML;
|
41 |
} else {
|
42 |
+
echo 'no such file or directory:'.$playlistPath;
|
43 |
}
|
44 |
?>
|
skins/banner_widget_default/settings/constructor.php
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
preg_match('|^(.*?/)(wp-content)/|i', str_replace('\\', '/', __FILE__), $_m);
|
3 |
-
require_once( $_m[1] . 'wp-load.php');
|
4 |
-
if ( !current_user_can('FlAG Change skin') ) die(0);
|
5 |
-
|
6 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
7 |
-
|
8 |
-
if (isset($HTTP_RAW_POST_DATA) ) {
|
9 |
-
$flashPost = $HTTP_RAW_POST_DATA;
|
10 |
-
} else {
|
11 |
-
$flashPost = implode("\r\n", file('php://input'));
|
12 |
-
}
|
13 |
-
if($flashPost) {
|
14 |
-
$fp = fopen($settingsXML, "r");
|
15 |
-
if(!$fp) {
|
16 |
-
exit( "2");//Failure - not read;
|
17 |
-
}
|
18 |
-
while(!feof($fp)) {
|
19 |
-
$mainXML .= fgetc($fp);
|
20 |
-
}
|
21 |
-
$fp = fopen($settingsXML, "w");
|
22 |
-
if(!$fp)
|
23 |
-
exit("0");//Failure
|
24 |
-
$newProperties = preg_replace("|<properties>.*?</properties>|si", $flashPost, $mainXML);
|
25 |
-
fwrite($fp, $newProperties);
|
26 |
-
fclose($fp);
|
27 |
-
echo "1";//Save
|
28 |
-
}
|
29 |
-
if(isset($_GET['show_options'])) {
|
30 |
-
flag_skin_options();
|
31 |
-
}
|
32 |
-
|
33 |
-
function flag_skin_options() {
|
34 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
35 |
-
$fp = fopen($settingsXML, "r");
|
36 |
-
if(!$fp) {
|
37 |
-
echo '<p style="color:#ff0000;"><b>Error! The configuration file not be found. You need to reinstall this skin.</b></p>';
|
38 |
-
} else {
|
39 |
-
$flag_options = get_option('flag_options');
|
40 |
-
$settingsPath = $flag_options['skinsDirURL'].basename( dirname(dirname(__FILE__)) ).'/settings';
|
41 |
-
$cPanel = $settingsPath."/cpanel.swf";
|
42 |
-
$swfObject = FLAG_URLPATH."admin/js/swfobject.js?ver=2.2";
|
43 |
-
?>
|
44 |
-
<div id="skinOptions">
|
45 |
-
<script type="text/javascript" src="<?php echo $swfObject ?>"></script>
|
46 |
-
<script type="text/javascript">
|
47 |
-
var flashvars = {
|
48 |
-
path : "<?php echo $settingsPath; ?>",
|
49 |
-
};
|
50 |
-
var params = {
|
51 |
-
wmode : "transparent",
|
52 |
-
scale : "noScale",
|
53 |
-
saling : "lt",
|
54 |
-
allowfullscreen : "false",
|
55 |
-
menu : "false"
|
56 |
-
};
|
57 |
-
var attributes = {};
|
58 |
-
swfobject.embedSWF("<?php echo $cPanel; ?>", "myContent", "600", "550", "9.0.0", "<?php echo FLAG_URLPATH; ?>skins/expressInstall.swf", flashvars, params, attributes);
|
59 |
-
</script>
|
60 |
-
<div id="myContent"><a href="http://www.adobe.com/go/getflash"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
|
61 |
-
<p>This page requires Flash Player version 10.1.52 or higher.</p>
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
<?php
|
65 |
-
}
|
66 |
-
fclose($fp);
|
67 |
-
}
|
68 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skins/banner_widget_default/settings/settings.xml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<item type="checkBox" name="autoPlay">
|
3 |
<item type="numericSteper" name="slideshowDelay">
|
4 |
<title><![CDATA[Slideshow Delay]]></title>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<item type="checkBox" name="autoPlay">
|
3 |
<item type="numericSteper" name="slideshowDelay">
|
4 |
<title><![CDATA[Slideshow Delay]]></title>
|
skins/compact_music_player/compact_music_player.php
CHANGED
@@ -5,7 +5,7 @@ Skin URI:
|
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
-
Version: 1.
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_music_compact($args) {
|
@@ -52,7 +52,7 @@ function flagShowSkin_music_compact($args) {
|
|
52 |
}
|
53 |
|
54 |
// init the flash output
|
55 |
-
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52',
|
56 |
global $swfCounter;
|
57 |
|
58 |
$swfobject->add_params('wmode', $wmode);
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
+
Version: 1.1
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_music_compact($args) {
|
52 |
}
|
53 |
|
54 |
// init the flash output
|
55 |
+
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52', plugins_url('/'.FLAGFOLDER.'/') .'skins/expressInstall.swf');
|
56 |
global $swfCounter;
|
57 |
|
58 |
$swfobject->add_params('wmode', $wmode);
|
skins/compact_music_player/settings/constructor.php
DELETED
@@ -1,202 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
preg_match('|^(.*?/)(wp-content)/|i', str_replace('\\', '/', __FILE__), $_m);
|
5 |
-
|
6 |
-
|
7 |
-
require_once( $_m[1] . 'wp-load.php');
|
8 |
-
|
9 |
-
|
10 |
-
if ( !current_user_can('FlAG Change skin') ) die(0);
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
if (isset($HTTP_RAW_POST_DATA) ) {
|
23 |
-
|
24 |
-
|
25 |
-
$flashPost = $HTTP_RAW_POST_DATA;
|
26 |
-
|
27 |
-
|
28 |
-
} else {
|
29 |
-
|
30 |
-
|
31 |
-
$flashPost = implode("\r\n", file('php://input'));
|
32 |
-
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
|
37 |
-
if($flashPost) {
|
38 |
-
|
39 |
-
|
40 |
-
$fp = fopen($settingsXML, "r");
|
41 |
-
|
42 |
-
|
43 |
-
if(!$fp) {
|
44 |
-
|
45 |
-
|
46 |
-
exit( "2");//Failure - not read;
|
47 |
-
|
48 |
-
|
49 |
-
}
|
50 |
-
|
51 |
-
|
52 |
-
while(!feof($fp)) {
|
53 |
-
|
54 |
-
|
55 |
-
$mainXML .= fgetc($fp);
|
56 |
-
|
57 |
-
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
$fp = fopen($settingsXML, "w");
|
62 |
-
|
63 |
-
|
64 |
-
if(!$fp)
|
65 |
-
|
66 |
-
|
67 |
-
exit("0");//Failure
|
68 |
-
|
69 |
-
|
70 |
-
$newProperties = preg_replace("|<properties>.*?</properties>|si", $flashPost, $mainXML);
|
71 |
-
|
72 |
-
|
73 |
-
fwrite($fp, $newProperties);
|
74 |
-
|
75 |
-
|
76 |
-
fclose($fp);
|
77 |
-
|
78 |
-
|
79 |
-
echo "1";//Save
|
80 |
-
|
81 |
-
|
82 |
-
}
|
83 |
-
|
84 |
-
|
85 |
-
if(isset($_GET['show_options'])) {
|
86 |
-
|
87 |
-
|
88 |
-
flag_skin_options();
|
89 |
-
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
function flag_skin_options() {
|
98 |
-
|
99 |
-
|
100 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
101 |
-
|
102 |
-
|
103 |
-
$fp = fopen($settingsXML, "r");
|
104 |
-
|
105 |
-
|
106 |
-
if(!$fp) {
|
107 |
-
|
108 |
-
|
109 |
-
echo '<p style="color:#ff0000;"><b>Error! The configuration file not be found. You need to reinstall this skin.</b></p>';
|
110 |
-
|
111 |
-
|
112 |
-
} else {
|
113 |
-
|
114 |
-
|
115 |
-
$flag_options = get_option('flag_options');
|
116 |
-
|
117 |
-
|
118 |
-
$settingsPath = $flag_options['skinsDirURL'].basename( dirname(dirname(__FILE__)) ).'/settings';
|
119 |
-
|
120 |
-
|
121 |
-
$cPanel = $settingsPath."/cpanel.swf";
|
122 |
-
|
123 |
-
|
124 |
-
$swfObject = FLAG_URLPATH."admin/js/swfobject.js?ver=2.2";
|
125 |
-
|
126 |
-
|
127 |
-
?>
|
128 |
-
|
129 |
-
|
130 |
-
<div id="skinOptions">
|
131 |
-
|
132 |
-
|
133 |
-
<script type="text/javascript" src="<?php echo $swfObject ?>"></script>
|
134 |
-
|
135 |
-
|
136 |
-
<script type="text/javascript">
|
137 |
-
|
138 |
-
|
139 |
-
var flashvars = {
|
140 |
-
|
141 |
-
|
142 |
-
path : "<?php echo $settingsPath; ?>",
|
143 |
-
|
144 |
-
|
145 |
-
};
|
146 |
-
|
147 |
-
|
148 |
-
var params = {
|
149 |
-
|
150 |
-
|
151 |
-
wmode : "transparent",
|
152 |
-
|
153 |
-
|
154 |
-
scale : "noScale",
|
155 |
-
|
156 |
-
|
157 |
-
saling : "lt",
|
158 |
-
|
159 |
-
|
160 |
-
allowfullscreen : "false",
|
161 |
-
|
162 |
-
|
163 |
-
menu : "false"
|
164 |
-
|
165 |
-
|
166 |
-
};
|
167 |
-
|
168 |
-
|
169 |
-
var attributes = {};
|
170 |
-
|
171 |
-
|
172 |
-
swfobject.embedSWF("<?php echo $cPanel; ?>", "myContent", "600", "550", "9.0.0", "<?php echo FLAG_URLPATH; ?>skins/expressInstall.swf", flashvars, params, attributes);
|
173 |
-
|
174 |
-
|
175 |
-
</script>
|
176 |
-
|
177 |
-
|
178 |
-
<div id="myContent"><a href="http://www.adobe.com/go/getflash"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
|
179 |
-
|
180 |
-
|
181 |
-
<p>This page requires Flash Player version 10.1.52 or higher.</p>
|
182 |
-
|
183 |
-
|
184 |
-
</div>
|
185 |
-
|
186 |
-
|
187 |
-
</div>
|
188 |
-
|
189 |
-
|
190 |
-
<?php
|
191 |
-
|
192 |
-
|
193 |
-
}
|
194 |
-
|
195 |
-
|
196 |
-
fclose($fp);
|
197 |
-
|
198 |
-
|
199 |
-
}
|
200 |
-
|
201 |
-
|
202 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skins/compact_music_player/settings/settings.xml
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<item type="colorPicker" name="property2">
|
3 |
-
<property0><![CDATA[transparent]]></property0>
|
4 |
-
<property1>0xffffff</property1>
|
5 |
-
<property2>0x3383a7</property2>
|
6 |
-
<property3>0xffffff</property3>
|
7 |
-
<property4>0x143646</property4>
|
8 |
-
<property5>0x77b3ce</property5>
|
9 |
-
<property6>0x5e8ca1</property6>
|
10 |
-
<property7>0xffffff</property7>
|
11 |
-
<property8>0x000000</property8>
|
12 |
-
<property9><![CDATA[INFO]]></property9>
|
13 |
-
<width><![CDATA[240]]></width>
|
14 |
-
<height><![CDATA[90]]></height>
|
15 |
-
<autoPlay>
|
16 |
</properties>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<item type="colorPicker" name="property2">
|
3 |
+
<property0><![CDATA[transparent]]></property0>
|
4 |
+
<property1>0xffffff</property1>
|
5 |
+
<property2>0x3383a7</property2>
|
6 |
+
<property3>0xffffff</property3>
|
7 |
+
<property4>0x143646</property4>
|
8 |
+
<property5>0x77b3ce</property5>
|
9 |
+
<property6>0x5e8ca1</property6>
|
10 |
+
<property7>0xffffff</property7>
|
11 |
+
<property8>0x000000</property8>
|
12 |
+
<property9><![CDATA[INFO]]></property9>
|
13 |
+
<width><![CDATA[240]]></width>
|
14 |
+
<height><![CDATA[90]]></height>
|
15 |
+
<autoPlay>false</autoPlay>
|
16 |
</properties>
|
skins/music_default/music_default.php
CHANGED
@@ -5,7 +5,7 @@ Skin URI:
|
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
-
Version: 1.
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_music_default($args) {
|
@@ -52,7 +52,7 @@ function flagShowSkin_music_default($args) {
|
|
52 |
}
|
53 |
|
54 |
// init the flash output
|
55 |
-
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52',
|
56 |
global $swfCounter;
|
57 |
|
58 |
$swfobject->add_params('wmode', $wmode);
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
+
Version: 1.3
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_music_default($args) {
|
52 |
}
|
53 |
|
54 |
// init the flash output
|
55 |
+
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52', plugins_url('/'.FLAGFOLDER.'/') .'skins/expressInstall.swf');
|
56 |
global $swfCounter;
|
57 |
|
58 |
$swfobject->add_params('wmode', $wmode);
|
skins/music_default/settings/constructor.php
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
preg_match('|^(.*?/)(wp-content)/|i', str_replace('\\', '/', __FILE__), $_m);
|
3 |
-
require_once( $_m[1] . 'wp-load.php');
|
4 |
-
if ( !current_user_can('FlAG Change skin') ) die(0);
|
5 |
-
|
6 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
7 |
-
|
8 |
-
if (isset($HTTP_RAW_POST_DATA) ) {
|
9 |
-
$flashPost = $HTTP_RAW_POST_DATA;
|
10 |
-
} else {
|
11 |
-
$flashPost = implode("\r\n", file('php://input'));
|
12 |
-
}
|
13 |
-
if($flashPost) {
|
14 |
-
$fp = fopen($settingsXML, "r");
|
15 |
-
if(!$fp) {
|
16 |
-
exit( "2");//Failure - not read;
|
17 |
-
}
|
18 |
-
while(!feof($fp)) {
|
19 |
-
$mainXML .= fgetc($fp);
|
20 |
-
}
|
21 |
-
$fp = fopen($settingsXML, "w");
|
22 |
-
if(!$fp)
|
23 |
-
exit("0");//Failure
|
24 |
-
$newProperties = preg_replace("|<properties>.*?</properties>|si", $flashPost, $mainXML);
|
25 |
-
fwrite($fp, $newProperties);
|
26 |
-
fclose($fp);
|
27 |
-
echo "1";//Save
|
28 |
-
}
|
29 |
-
if(isset($_GET['show_options'])) {
|
30 |
-
flag_skin_options();
|
31 |
-
}
|
32 |
-
|
33 |
-
function flag_skin_options() {
|
34 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
35 |
-
$fp = fopen($settingsXML, "r");
|
36 |
-
if(!$fp) {
|
37 |
-
echo '<p style="color:#ff0000;"><b>Error! The configuration file not be found. You need to reinstall this skin.</b></p>';
|
38 |
-
} else {
|
39 |
-
$flag_options = get_option('flag_options');
|
40 |
-
$settingsPath = $flag_options['skinsDirURL'].basename( dirname(dirname(__FILE__)) ).'/settings';
|
41 |
-
$cPanel = $settingsPath."/cpanel.swf";
|
42 |
-
$swfObject = FLAG_URLPATH."admin/js/swfobject.js?ver=2.2";
|
43 |
-
?>
|
44 |
-
<div id="skinOptions">
|
45 |
-
<script type="text/javascript" src="<?php echo $swfObject ?>"></script>
|
46 |
-
<script type="text/javascript">
|
47 |
-
var flashvars = {
|
48 |
-
path : "<?php echo $settingsPath; ?>",
|
49 |
-
};
|
50 |
-
var params = {
|
51 |
-
wmode : "transparent",
|
52 |
-
scale : "noScale",
|
53 |
-
saling : "lt",
|
54 |
-
allowfullscreen : "false",
|
55 |
-
menu : "false"
|
56 |
-
};
|
57 |
-
var attributes = {};
|
58 |
-
swfobject.embedSWF("<?php echo $cPanel; ?>", "myContent", "600", "550", "9.0.0", "<?php echo FLAG_URLPATH; ?>skins/expressInstall.swf", flashvars, params, attributes);
|
59 |
-
</script>
|
60 |
-
<div id="myContent"><a href="http://www.adobe.com/go/getflash"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
|
61 |
-
<p>This page requires Flash Player version 10.1.52 or higher.</p>
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
<?php
|
65 |
-
}
|
66 |
-
fclose($fp);
|
67 |
-
}
|
68 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skins/music_default/settings/settings.xml
CHANGED
@@ -1,101 +1,15 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
<title><![CDATA[Flash Object WMode]]></title>
|
17 |
-
<description><![CDATA[If 'transparent' - "Background Color" option is ignored, but you can position the absolute elements over the flash.]]></description>
|
18 |
-
<data>
|
19 |
-
<label name="Window"><![CDATA[window]]></label>
|
20 |
-
<label name="Transparent"><![CDATA[transparent]]></label>
|
21 |
-
<label name="Opaque"><![CDATA[opaque]]></label>
|
22 |
-
</data>
|
23 |
-
<prompt><![CDATA[]]></prompt>
|
24 |
-
<rowCount>2</rowCount>
|
25 |
-
<value><![CDATA[opaque]]></value>
|
26 |
-
</item>
|
27 |
-
<item type="checkBox" name="autoPlay">
|
28 |
-
<title><![CDATA[AutoPlay option]]></title>
|
29 |
-
<description><![CDATA[]]></description>
|
30 |
-
<selected>true</selected>
|
31 |
-
</item>
|
32 |
-
<item type="colorPicker" name="property1">
|
33 |
-
<title><![CDATA[Background Color]]></title>
|
34 |
-
<description><![CDATA[]]></description>
|
35 |
-
<showTextField>true</showTextField>
|
36 |
-
<selectedColor>0xffffff</selectedColor>
|
37 |
-
</item>
|
38 |
-
<item type="colorPicker" name="property2">
|
39 |
-
<title><![CDATA[Bars Background Color]]></title>
|
40 |
-
<description><![CDATA[Background color for Header bar, Control bar and Spectrum Analyzer bar.]]></description>
|
41 |
-
<showTextField>true</showTextField>
|
42 |
-
<selectedColor>0x3383a7</selectedColor>
|
43 |
-
</item>
|
44 |
-
<item type="colorPicker" name="property3">
|
45 |
-
<title><![CDATA[Main Content Color]]></title>
|
46 |
-
<description><![CDATA[Text, Buttons color.]]></description>
|
47 |
-
<showTextField>true</showTextField>
|
48 |
-
<selectedColor>0xffffff</selectedColor>
|
49 |
-
</item>
|
50 |
-
<item type="colorPicker" name="property4">
|
51 |
-
<title><![CDATA[Buttons Over Color]]></title>
|
52 |
-
<description><![CDATA[]]></description>
|
53 |
-
<showTextField>true</showTextField>
|
54 |
-
<selectedColor>0x143646</selectedColor>
|
55 |
-
</item>
|
56 |
-
<item type="colorPicker" name="property5">
|
57 |
-
<title><![CDATA[Track Bg Color]]></title>
|
58 |
-
<description><![CDATA[Play List Track Bg Color]]></description>
|
59 |
-
<showTextField>true</showTextField>
|
60 |
-
<selectedColor>0x77b3ce</selectedColor>
|
61 |
-
</item>
|
62 |
-
<item type="colorPicker" name="property6">
|
63 |
-
<title><![CDATA[Track Bg Over Color]]></title>
|
64 |
-
<description><![CDATA[Play List Track Bg Over Color]]></description>
|
65 |
-
<showTextField>true</showTextField>
|
66 |
-
<selectedColor>0x5e8ca1</selectedColor>
|
67 |
-
</item>
|
68 |
-
<item type="textInput" name="property9">
|
69 |
-
<title><![CDATA[Description Button Text]]></title>
|
70 |
-
<maxChars>0</maxChars>
|
71 |
-
<restrict><![CDATA[]]></restrict>
|
72 |
-
<text><![CDATA[INFO]]></text>
|
73 |
-
</item>
|
74 |
-
<item type="colorPicker" name="property7">
|
75 |
-
<title><![CDATA[Description Part Bg Color]]></title>
|
76 |
-
<description><![CDATA[]]></description>
|
77 |
-
<showTextField>true</showTextField>
|
78 |
-
<selectedColor>0xffffff</selectedColor>
|
79 |
-
</item>
|
80 |
-
<item type="colorPicker" name="property8">
|
81 |
-
<title><![CDATA[Description Part Text Color]]></title>
|
82 |
-
<description><![CDATA[]]></description>
|
83 |
-
<showTextField>true</showTextField>
|
84 |
-
<selectedColor>0x000000</selectedColor>
|
85 |
-
</item>
|
86 |
-
<properties>
|
87 |
-
<property0><![CDATA[opaque]]></property0>
|
88 |
-
<property1>0xffffff</property1>
|
89 |
-
<property2>0x3383a7</property2>
|
90 |
-
<property3>0xffffff</property3>
|
91 |
-
<property4>0x143646</property4>
|
92 |
-
<property5>0x77b3ce</property5>
|
93 |
-
<property6>0x5e8ca1</property6>
|
94 |
-
<property7>0xffffff</property7>
|
95 |
-
<property8>0x000000</property8>
|
96 |
-
<property9><![CDATA[INFO]]></property9>
|
97 |
-
<width><![CDATA[400]]></width>
|
98 |
-
<height><![CDATA[144]]></height>
|
99 |
-
<autoPlay>true</autoPlay>
|
100 |
-
</properties>
|
101 |
-
</panel>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<property0><![CDATA[opaque]]></property0>
|
3 |
+
<property1>0xffffff</property1>
|
4 |
+
<property2>0x3383a7</property2>
|
5 |
+
<property3>0xffffff</property3>
|
6 |
+
<property4>0x143646</property4>
|
7 |
+
<property5>0x77b3ce</property5>
|
8 |
+
<property6>0x5e8ca1</property6>
|
9 |
+
<property7>0xffffff</property7>
|
10 |
+
<property8>0x000000</property8>
|
11 |
+
<property9><![CDATA[INFO]]></property9>
|
12 |
+
<width><![CDATA[400]]></width>
|
13 |
+
<height><![CDATA[144]]></height>
|
14 |
+
<autoPlay>false</autoPlay>
|
15 |
+
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skins/video_default/settings/constructor.php
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
preg_match('|^(.*?/)(wp-content)/|i', str_replace('\\', '/', __FILE__), $_m);
|
3 |
-
require_once( $_m[1] . 'wp-load.php');
|
4 |
-
if ( !current_user_can('FlAG Change skin') ) die(0);
|
5 |
-
|
6 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
7 |
-
|
8 |
-
if (isset($HTTP_RAW_POST_DATA) ) {
|
9 |
-
$flashPost = $HTTP_RAW_POST_DATA;
|
10 |
-
} else {
|
11 |
-
$flashPost = implode("\r\n", file('php://input'));
|
12 |
-
}
|
13 |
-
if($flashPost) {
|
14 |
-
$fp = fopen($settingsXML, "r");
|
15 |
-
if(!$fp) {
|
16 |
-
exit( "2");//Failure - not read;
|
17 |
-
}
|
18 |
-
while(!feof($fp)) {
|
19 |
-
$mainXML .= fgetc($fp);
|
20 |
-
}
|
21 |
-
$fp = fopen($settingsXML, "w");
|
22 |
-
if(!$fp)
|
23 |
-
exit("0");//Failure
|
24 |
-
$newProperties = preg_replace("|<properties>.*?</properties>|si", $flashPost, $mainXML);
|
25 |
-
fwrite($fp, $newProperties);
|
26 |
-
fclose($fp);
|
27 |
-
echo "1";//Save
|
28 |
-
}
|
29 |
-
if(isset($_GET['show_options'])) {
|
30 |
-
flag_skin_options();
|
31 |
-
}
|
32 |
-
|
33 |
-
function flag_skin_options() {
|
34 |
-
$settingsXML = str_replace("\\","/", dirname(__FILE__).'/settings.xml');
|
35 |
-
$fp = fopen($settingsXML, "r");
|
36 |
-
if(!$fp) {
|
37 |
-
echo '<p style="color:#ff0000;"><b>Error! The configuration file not be found. You need to reinstall this skin.</b></p>';
|
38 |
-
} else {
|
39 |
-
$flag_options = get_option('flag_options');
|
40 |
-
$settingsPath = $flag_options['skinsDirURL'].basename( dirname(dirname(__FILE__)) ).'/settings';
|
41 |
-
$cPanel = $settingsPath."/cpanel.swf";
|
42 |
-
$swfObject = FLAG_URLPATH."admin/js/swfobject.js?ver=2.2";
|
43 |
-
?>
|
44 |
-
<div id="skinOptions">
|
45 |
-
<script type="text/javascript" src="<?php echo $swfObject ?>"></script>
|
46 |
-
<script type="text/javascript">
|
47 |
-
var flashvars = {
|
48 |
-
path : "<?php echo $settingsPath; ?>",
|
49 |
-
};
|
50 |
-
var params = {
|
51 |
-
wmode : "transparent",
|
52 |
-
scale : "noScale",
|
53 |
-
saling : "lt",
|
54 |
-
allowfullscreen : "false",
|
55 |
-
menu : "false"
|
56 |
-
};
|
57 |
-
var attributes = {};
|
58 |
-
swfobject.embedSWF("<?php echo $cPanel; ?>", "myContent", "600", "550", "9.0.0", "<?php echo FLAG_URLPATH; ?>skins/expressInstall.swf", flashvars, params, attributes);
|
59 |
-
</script>
|
60 |
-
<div id="myContent"><a href="http://www.adobe.com/go/getflash"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
|
61 |
-
<p>This page requires Flash Player version 10.1.52 or higher.</p>
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
<?php
|
65 |
-
}
|
66 |
-
fclose($fp);
|
67 |
-
}
|
68 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skins/video_default/settings/settings.xml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<item type="checkBox" name="swfmousewheel">
|
3 |
<title><![CDATA[SWF Mouse Wheel]]></title>
|
4 |
<description><![CDATA[Turn On/Off mouse wheel detection over Gallery.]]></description>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<item type="checkBox" name="swfmousewheel">
|
3 |
<title><![CDATA[SWF Mouse Wheel]]></title>
|
4 |
<description><![CDATA[Turn On/Off mouse wheel detection over Gallery.]]></description>
|
skins/video_default/video_default.php
CHANGED
@@ -5,7 +5,7 @@ Skin URI:
|
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
-
Version: 1.
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_video_default($args) {
|
@@ -47,7 +47,7 @@ function flagShowSkin_video_default($args) {
|
|
47 |
}
|
48 |
|
49 |
// init the flash output
|
50 |
-
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52',
|
51 |
global $swfCounter;
|
52 |
|
53 |
$swfobject->add_params('wmode', $wmode);
|
5 |
Description:
|
6 |
Author: PGC
|
7 |
Author URI: http://PhotoGalleryCreator.com
|
8 |
+
Version: 1.1
|
9 |
*/
|
10 |
|
11 |
function flagShowSkin_video_default($args) {
|
47 |
}
|
48 |
|
49 |
// init the flash output
|
50 |
+
$swfobject = new flag_swfobject( $flag_options['skinsDirURL'].$skin.'/gallery.swf' , $skinID, $width, $height, '10.1.52', plugins_url('/'.FLAGFOLDER.'/') .'skins/expressInstall.swf');
|
51 |
global $swfCounter;
|
52 |
|
53 |
$swfobject->add_params('wmode', $wmode);
|
widgets/widgets.php
CHANGED
@@ -406,7 +406,7 @@ class flagWidget extends WP_Widget {
|
|
406 |
|
407 |
echo '</div>'."\n";
|
408 |
echo '<style type="text/css">.flag_fancybox img, .flag_newbox img { border: 1px solid #A9A9A9; margin: 0 2px 2px 0; padding: 1px; }</style>'."\n";
|
409 |
-
echo '<script type="text/javascript">var fbVar = "'.
|
410 |
echo $after_widget;
|
411 |
|
412 |
}
|
@@ -554,7 +554,7 @@ class flagVideoWidget extends WP_Widget {
|
|
554 |
|
555 |
echo '</div>'."\n";
|
556 |
echo '<style type="text/css">.flag_fancyvid img { border: 1px solid #A9A9A9; margin: 0 2px 2px 0; padding: 1px; }</style>'."\n";
|
557 |
-
echo '<script type="text/javascript">var fvVar = "'.
|
558 |
echo $after_widget;
|
559 |
}
|
560 |
|
406 |
|
407 |
echo '</div>'."\n";
|
408 |
echo '<style type="text/css">.flag_fancybox img, .flag_newbox img { border: 1px solid #A9A9A9; margin: 0 2px 2px 0; padding: 1px; }</style>'."\n";
|
409 |
+
echo '<script type="text/javascript">var fbVar = "'.plugins_url('/', dirname(__FILE__)).'"; var fbW = '.$instance['fwidth'].', fbH = '.$instance['fheight'].'; waitJQ(fbVar,fbW,fbH);</script>'."\n";
|
410 |
echo $after_widget;
|
411 |
|
412 |
}
|
554 |
|
555 |
echo '</div>'."\n";
|
556 |
echo '<style type="text/css">.flag_fancyvid img { border: 1px solid #A9A9A9; margin: 0 2px 2px 0; padding: 1px; }</style>'."\n";
|
557 |
+
echo '<script type="text/javascript">var fvVar = "'.plugins_url('/', dirname(__FILE__)).'"; var fvW = '.$instance['fwidth'].', fvH = '.$instance['fheight'].'; waitJQv(fvVar,fvW,fvH);</script>'."\n";
|
558 |
echo $after_widget;
|
559 |
}
|
560 |
|