| Current Path : /home/bonneesp/www/administrator/components/com_gallery_wd/models/fields/ |
| Current File : /home/bonneesp/www/administrator/components/com_gallery_wd/models/fields/setparams.php |
<?php
/**
* @package Gallery WD
* @author Web-Dorado
* @copyright (C) 2014 Web-Dorado. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die('Restricted access');
class JFormFieldsetparams extends JFormField
{
var $_name = 'setparams';
function getInput()
{
ob_start();
static $embedded;
if(!$embedded)
{
$embedded=true;
}
define('WD_BWG_DIR', JPATH_COMPONENT_SITE);
define('WD_BWG_URL', JURI::root().'components/com_gallery_wd');
$db =JFactory::getDBO();
$value=$this->value;
$name=$this->name;
if($value!='')
{
$values= explode('**PARAM**',$value);
$params=array();
foreach($values as $param)
{
$par_s=explode('=',$param);
$params[$par_s[0]]=$par_s[1];
}
}
$query = "SELECT * FROM #__bwg_gallery WHERE published=1 ORDER BY name";
$db->setQuery($query);
$gallery_rows = $db->loadObjectList();
$query = "SELECT * FROM #__bwg_album WHERE published=1 ORDER BY name";
$db->setQuery($query);
$album_rows = $db->loadObjectList();
$query = "SELECT * FROM #__bwg_option WHERE id=1";
$db->setQuery($query);
$option_row = $db->loadObject();
$query = "SELECT * FROM #__bwg_theme ORDER BY name";
$db->setQuery($query);
$theme_rows = $db->loadObjectList();
$album_type='compuct_album';
if(isset( $params["gallery_type"]))
{
switch ($params["gallery_type"])
{
case 'album_extended_preview':
$album_type='extended_album';
break;
case 'album_compact_preview':
$album_type='compuct_album';
break;
}
}
foreach($option_row as $key=>$opt_row)
{
if(isset( $params[$key]))
$option_row->$key=$params[$key];
if( isset( $params["image_title"]) and $key=="image_title_show_hover")
$option_row->$key=$params["image_title"];
if( isset( $params["masonry_hor_ver"]) and $key=="masonry")
$option_row->masonry=$params["masonry_hor_ver"];
if( isset( $params["mosaic_hor_ver"]) and $key=="mosaic")
$option_row->mosaic=$params["mosaic_hor_ver"];
if( isset( $params["slideshow_effect"]) and $key=="slideshow_type")
$option_row->slideshow_type=$params["slideshow_effect"];
if( isset( $params["enable_slideshow_autoplay"]) and $key=="slideshow_enable_autoplay")
$option_row->slideshow_enable_autoplay=$params["enable_slideshow_autoplay"];
if( isset( $params["enable_slideshow_shuffle"]) and $key=="slideshow_enable_shuffle")
$option_row->slideshow_enable_shuffle=$params["enable_slideshow_shuffle"];
if( isset( $params["enable_slideshow_ctrl"]) and $key=="slideshow_enable_ctrl")
$option_row->slideshow_enable_ctrl=$params["enable_slideshow_ctrl"];
if( isset( $params["enable_slideshow_filmstrip"]) and $key=="slideshow_enable_filmstrip")
$option_row->slideshow_enable_filmstrip=$params["enable_slideshow_filmstrip"];
/////////////////compuct//////////////////
if( isset( $params[$album_type."_title"]) and $key=="album_title_show_hover")
$option_row->album_title_show_hover=$params[$album_type."_title"];
if( isset( $params[$album_type."_view_type"]) and $key=="album_view_type")
$option_row->album_view_type=$params[$album_type."_view_type"];
if( isset( $params[$album_type."_thumb_width"]) and $key=="album_thumb_width")
$option_row->album_thumb_width=$params[$album_type."_thumb_width"];
if( isset( $params[$album_type."_thumb_height"]) and $key=="album_thumb_height")
$option_row->album_thumb_height=$params[$album_type."_thumb_height"];
if( isset( $params[$album_type."_view_type"]) and $key=="album_view_type")
$option_row->album_view_type=$params[$album_type."_view_type"];
if( isset( $params[$album_type."_image_column_number"]) and $key=="image_column_number")
$option_row->image_column_number=$params[$album_type."_image_column_number"];
if( isset( $params[$album_type."_images_per_page"]) and $key=="images_per_page")
$option_row->images_per_page=$params[$album_type."_images_per_page"];
if( isset( $params[$album_type."_image_title"]) and $key=="image_title_show_hover")
$option_row->image_title_show_hover=$params[$album_type."_image_title"];
if( isset( $params[$album_type."_image_thumb_width"]) and $key=="thumb_width")
$option_row->thumb_width=$params[$album_type."_image_thumb_width"];
if( isset( $params[$album_type."_image_thumb_height"]) and $key=="thumb_height")
$option_row->thumb_height=$params[$album_type."_image_thumb_height"];
if( isset( $params[$album_type."_enable_page"]) and $key=="album_enable_page")
$option_row->album_enable_page=$params[$album_type."_enable_page"];
if( isset( $params[$album_type."_mosaic_hor_ver"]) and $key=="mosaic")
$option_row->mosaic=$params[$album_type."_mosaic_hor_ver"];
if( isset( $params[$album_type."_resizable_mosaic"]) and $key=="resizable_mosaic")
$option_row->resizable_mosaic=$params[$album_type."_resizable_mosaic"];
if( isset( $params[$album_type."_mosaic_total_width"]) and $key=="mosaic_total_width")
$option_row->mosaic_total_width=$params[$album_type."_mosaic_total_width"];
if( isset( $params[$album_type."_mosaic_total_height"]) and $key=="mosaic_total_height")
$option_row->mosaic_total_height=$params[$album_type."_mosaic_total_height"];
///////////////////masonry
if( isset( $params["masonry_album_column_number"]) and $key=="album_column_number")
$option_row->album_column_number=$params["masonry_album_column_number"];
if( isset( $params["masonry_albums_per_page"]) and $key=="albums_per_page")
$option_row->albums_per_page=$params["masonry_albums_per_page"];
if( isset( $params["masonry_album_thumb_width"]) and $key=="album_thumb_width")
$option_row->album_thumb_width=$params["masonry_album_thumb_width"];
if( isset( $params["masonry_album_image_column_number"]) and $key=="image_column_number")
$option_row->image_column_number=$params["masonry_album_image_column_number"];
if( isset( $params["masonry_album_images_per_page"]) and $key=="images_per_page")
$option_row->images_per_page=$params["masonry_album_images_per_page"];
if( isset( $params["masonry_album_enable_page"]) and $key=="album_enable_page")
$option_row->album_enable_page=$params["masonry_album_enable_page"];
}
if(isset($params['popup_effect']))
$option_row->popup_type=$params['popup_effect'];
$from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
$effects = array(
'none' => 'None',
'cubeH' => 'Cube Horizontal',
'cubeV' => 'Cube Vertical',
'fade' => 'Fade',
'sliceH' => 'Slice Horizontal',
'sliceV' => 'Slice Vertical',
'slideH' => 'Slide Horizontal',
'slideV' => 'Slide Vertical',
'scaleOut' => 'Scale Out',
'scaleIn' => 'Scale In',
'blockScale' => 'Block Scale',
'kaleidoscope' => 'Kaleidoscope',
'fan' => 'Fan',
'blindH' => 'Blind Horizontal',
'blindV' => 'Blind Vertical',
'random' => 'Random',
);
$watermark_fonts = array(
'arial' => 'Arial',
'Lucida grande' => 'Lucida grande',
'segoe ui' => 'Segoe ui',
'tahoma' => 'Tahoma',
'trebuchet ms' => 'Trebuchet ms',
'verdana' => 'Verdana',
'cursive' =>'Cursive',
'fantasy' => 'Fantasy',
'monospace' => 'Monospace',
'serif' => 'Serif',
);
?>
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/bwg_shortcode.css?ver='; ?>">
<link rel="stylesheet" href="<?php echo WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/bwg_shortcode.js?ver='; ?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo WD_BWG_URL . '/js/jscolor/jscolor.js'; ?>"></script>
<div id="display_panel" style="width: 100%">
<style>
input[type="radio"], input[type="checkbox"]
{
margin:0;
}
label {
display: inline-block;
}
.ctrl
{
margin-left: 0px !important;
}
</style>
<div style="text-align:center; height:100px;">
<span class="gallery_type" onClick="bwg_gallery_type('thumbnails')">
<div style="text-align: center;"><input type="radio" id="thumbnails" name="gallery_type" value="thumbnails" /><label for="thumbnails">Thumbnails</label></div>
<label for="thumbnails"><img src="<?php echo WD_BWG_URL . '/images/thumbnails.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('thumbnails_masonry')">
<div style="text-align: center;"><input type="radio" id="thumbnails_masonry" name="gallery_type" value="thumbnails_masonry" /><label for="thumbnails_masonry">Masonry</label></div>
<label for="thumbnails_masonry"><img src="<?php echo WD_BWG_URL . '/images/thumbnails_masonry.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('thumbnails_mosaic')">
<div style="text-align: center;"><input type="radio" id="thumbnails_mosaic" name="gallery_type" value="thumbnails_mosaic" /><label for="thumbnails_mosaic">Mosaic</label></div>
<label for="thumbnails_mosaic"><img src="<?php echo WD_BWG_URL . '/images/thumbnails_mosaic.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('slideshow')">
<div style="text-align: center;"><input type="radio" id="slideshow" name="gallery_type" value="slideshow" /><label for="slideshow">Slideshow</label></div>
<label for="slideshow"><img src="<?php echo WD_BWG_URL . '/images/slideshow.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('image_browser')">
<div style="text-align: center;"><input type="radio" id="image_browser" name="gallery_type" value="image_browser" /><label for="image_browser">Image Browser</label></div>
<label for="image_browser"><img src="<?php echo WD_BWG_URL . '/images/image_browser.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('album_compact_preview')">
<div style="text-align: center;"><input type="radio" id="album_compact_preview" name="gallery_type" value="album_compact_preview" /><label for="album_compact_preview">Compact Album</label></div>
<label for="album_compact_preview"><img src="<?php echo WD_BWG_URL . '/images/album_compact_preview.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('album_masonry_preview')">
<div style="text-align: center;"><input type="radio" id="album_masonry_preview" name="gallery_type" value="album_masonry_preview" /><label for="album_masonry_preview">Masonry Album</label></div>
<label for="album_masonry_preview"><img src="<?php echo WD_BWG_URL . '/images/thumbnails_masonry.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('album_extended_preview')">
<div style="text-align: center;"><input type="radio" id="album_extended_preview" name="gallery_type" value="album_extended_preview" /><label for="album_extended_preview">Extended Album</label></div>
<label for="album_extended_preview"><img src="<?php echo WD_BWG_URL . '/images/album_extended_preview.jpg'; ?>" /></label>
</span>
<span class="gallery_type" onClick="bwg_gallery_type('blog_style')">
<div style="text-align: center;"><input type="radio" id="blog_style" name="gallery_type" value="blog_style" /><label for="blog_style">Blog Style</label></div>
<label for="blog_style"><img src="<?php echo WD_BWG_URL . '/images/blog_style.jpg'; ?>" /></label>
</span>
</div>
<hr />
<div class="bwg_short_div" style="border-right: 1px solid #000000;">
<table>
<tbody>
<tr id="tr_theme">
<td class="spider_label"><label for="theme">Theme: </label></td>
<td>
<select name="theme" id="theme" style="width:150px;">
<option value="0" selected="selected">Select Theme</option>
<?php
foreach ($theme_rows as $theme_row) {
if(!isset($params['theme_id']) or (isset($params['theme_id']) and $params['theme_id']==0))
{
$params['theme_id']=$theme_row->default_theme;
}
?>
<option <?php
if(isset($params['theme_id']) AND $theme_row->id==$params['theme_id']) echo 'selected="selected"'
?> value="<?php echo $theme_row->id; ?>"><?php echo $theme_row->name; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr id="tr_gallery">
<td class="spider_label"><label for="gallery">Gallery: </label></td>
<td>
<select name="gallery" id="gallery" style="width:150px;">
<option value="0" selected="selected">Select Gallery</option>
<?php
foreach ($gallery_rows as $gallery_row) {
?>
<option <?php if(isset($params['gallery_id']) AND $gallery_row->id==$params['gallery_id']) echo 'selected="selected"' ?> value="<?php echo $gallery_row->id; ?>"><?php echo $gallery_row->name; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr id="tr_album">
<td title="The selected album expanded content will be displayed." class="spider_label"><label for="album">Album: </label></td>
<td>
<select name="album" id="album" style="width:150px;">
<option value="0" selected="selected">Select Album</option>
<?php
foreach ($album_rows as $album_row) {
?>
<option <?php if(isset($params['album_id']) AND $album_row->id==$params['album_id']) echo 'selected="selected"' ?> value="<?php echo $album_row->id; ?>"><?php echo $album_row->name; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr id="tr_sort_by">
<td class="spider_label"><label for="sort_by">Sort images by: </label></td>
<td>
<select name="sort_by" id="sort_by" style="width:150px;">
<option value="order" <?php if(isset($params['sort_by']) and $params['sort_by']=='order') echo 'selected="selected"'; ?> selected="selected">Order</option>
<option <?php if(isset($params['sort_by']) and $params['sort_by']=='alt') echo 'selected="selected"'; ?> value="alt">Title</option>
<option <?php if(isset($params['sort_by']) and $params['sort_by']=='date') echo 'selected="selected"'; ?> value="date">Date</option>
<option <?php if(isset($params['sort_by']) and $params['sort_by']=='filename') echo 'selected="selected"'; ?> value="filename">Filename</option>
<option <?php if(isset($params['sort_by']) and $params['sort_by']=='size') echo 'selected="selected"'; ?> value="size">Size</option>
<option <?php if(isset($params['sort_by']) and $params['sort_by']=='filetype') echo 'selected="selected"'; ?> value="filetype">Type</option>
<option <?php if(isset($params['sort_by']) and $params['sort_by']=='resolution') echo 'selected="selected"'; ?> value="resolution">Resolution</option>
</select>
</td>
</tr>
<tr id="tr_order_by">
<td class="spider_label"><label>Order images: </label></td>
<td>
<input type="radio" name="order_by" id="order_by_1" value="asc" <?php if(isset($params['order_by']) and $params['order_by']=='asc') echo 'checked="checked"'; ?> checked="checked" /><label for="order_by_1">Ascending</label>
<input type="radio" name="order_by" id="order_by_0" <?php if(isset($params['order_by']) and $params['order_by']=='desc') echo 'checked="checked"'; ?> value="desc" /><label for="order_by_0">Descending</label>
</td>
</tr>
<tr id="tr_show_search_box">
<td class="spider_label"><label>Show search box: </label></td>
<td>
<input type="radio" name="show_search_box" id="show_search_box_1" value="1" <?php if ($option_row->show_search_box) echo 'checked="checked"'; ?> onchange="bwg_show_search_box()" /><label for="show_search_box_1">Yes</label>
<input type="radio" name="show_search_box" id="show_search_box_0" value="0" <?php if (!$option_row->show_search_box) echo 'checked="checked"'; ?> onchange="bwg_show_search_box()" /><label for="show_search_box_0">No</label>
</td>
</tr>
<tr id="tr_show_sort_images">
<td class="spider_label"><label>Show "Order by" dropdown list: </label></td>
<td>
<input type="radio" name="show_sort_images" id="show_sort_images_1" value="1" <?php if ($option_row->show_sort_images) echo 'checked="checked"'; ?> onchange="" /><label for="show_sort_images_1">Yes</label>
<input type="radio" name="show_sort_images" id="show_sort_images_0" value="0" <?php if (!$option_row->show_sort_images) echo 'checked="checked"'; ?> onchange="" /><label for="show_sort_images_0">No</label>
</td>
</tr>
<tr id="tr_search_box_width">
<td class="spider_label"><label for="search_box_width">Search box width: </label></td>
<td><input type="text" name="search_box_width" id="search_box_width" value="<?php echo $option_row->search_box_width; ?>" class="spider_int_input" /> px</td>
</tr>
<!--Thumbnails, Masonry viewies-->
<tr id="tr_masonry_hor_ver">
<td class="spider_label"><label>Masonry: </label></td>
<td>
<input type="radio" name="masonry_hor_ver" id="masonry_ver" value="vertical" onclick="bwg_change_label('image_column_number_label', 'Number of image rows: ');
bwg_change_label('thumb_width_height_label', 'Image thumbnail width: ');
jQuery('#thumb_width').show();
jQuery('#thumb_height').hide();
jQuery('#thumb_width_height_separator').hide();" <?php echo ($option_row->masonry == 'vertical') ? 'checked' : ''; ?> /><label for="masonry_ver">Vertical</label>
<input type="radio" name="masonry_hor_ver" id="masonry_hor" value="horizontal" onclick="bwg_change_label('image_column_number_label', 'Max. number of image columns: ');
bwg_change_label('thumb_width_height_label', 'Image Thumbnail Height: ');
jQuery('#thumb_width').hide();
jQuery('#thumb_height').show();
jQuery('#thumb_width_height_separator').hide();" <?php echo ($option_row->masonry == 'horizontal') ? 'checked' : ''; ?> /><label for="masonry_hor">Horizontal</label>
</td>
</tr>
<!--Thumbnails, Mosaic viewies-->
<tr id="tr_mosaic_hor_ver">
<td class="spider_label"><label>Mosaic: </label></td>
<td>
<input type="radio" name="mosaic_hor_ver" id="mosaic_ver" value="vertical" onclick="bwg_change_label('image_column_number_label', 'Number of image rows: ');
bwg_change_label('thumb_width_height_label', 'Image thumbnail width: ');
jQuery('#thumb_width').show();
jQuery('#thumb_height').hide();
jQuery('#thumb_width_height_separator').hide();" <?php echo ($option_row->mosaic == 'vertical') ? 'checked' : ''; ?> /><label for="mosaic_ver">Vertical</label>
<input type="radio" name="mosaic_hor_ver" id="mosaic_hor" value="horizontal" onclick="bwg_change_label('image_column_number_label', 'Max. number of image columns: ');
bwg_change_label('thumb_width_height_label', 'Image Thumbnail Height: ');
jQuery('#thumb_width').hide();
jQuery('#thumb_height').show();
jQuery('#thumb_width_height_separator').hide();" <?php echo ($option_row->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="mosaic_hor">Horizontal</label>
</td>
</tr>
<tr id="tr_resizable_mosaic">
<td title="Mosaic thumbnails do not have fixed size, but are proportional to the width of the parent container. This option keeps thumbs to look nice when viewed with very large or very small screen. Prevents zooming of thumbs." class="spider_label"><label for="resizable_mosaic">Resizable mosaic</label></td>
<td>
<input type="radio" name="resizable_mosaic" id="resizable_mosaic_1" value="1" <?php echo ($option_row->resizable_mosaic == 1) ? 'checked' : ''; ?> /><label for="resizable_mosaic_1">Yes</label>
<input type="radio" name="resizable_mosaic" id="resizable_mosaic_0" value="0" <?php echo ($option_row->resizable_mosaic == 0) ? 'checked' : ''; ?> /><label for="resizable_mosaic_0">No</label>
<br />
</td>
</tr>
<tr id="tr_mosaic_total_width">
<td title="Percentage of container's width" class="spider_label"><label for="mosaic_total_width">Total width of mosaic: </label></td>
<td><input type="text" name="mosaic_total_width" id="mosaic_total_width" value="<?php echo $option_row->mosaic_total_width; ?>" class="spider_int_input" /> %</td>
</tr>
<!--Thumbnails, Masonry and Mosaic viewies-->
<tr id="tr_image_column_number">
<td class="spider_label"><label id="image_column_number_label" for="image_column_number">Max. number of image columns: </label></td>
<td><input type="text" name="image_column_number" id="image_column_number" value="<?php echo $option_row->image_column_number; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_images_per_page">
<td title="If you want to display all images you should leave it blank or insert 0." class="spider_label"><label for="images_per_page">Images per page: </label></td>
<td><input type="text" name="images_per_page" id="images_per_page" value="<?php echo $option_row->images_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_image_title_hover">
<td class="spider_label"><label>Image title: </label></td>
<td>
<input type="radio" name="image_title" id="image_title_hover" value="hover" <?php echo ($option_row->image_title_show_hover == 'hover') ? 'checked' : ''; ?> /><label for="image_title_hover">Show on hover</label><br />
<input type="radio" name="image_title" id="image_title_show" value="show" <?php echo ($option_row->image_title_show_hover == 'show') ? 'checked' : ''; ?> /><label for="image_title_show">Always show</label><br />
<input type="radio" name="image_title" id="image_title_none" value="none" <?php echo ($option_row->image_title_show_hover == 'none') ? 'checked' : ''; ?> /><label for="image_title_none">Don't show</label>
</td>
</tr>
<tr id="tr_image_enable_page">
<td class="spider_label"><label>Enable pagination: </label></td>
<td>
<input type="radio" name="image_enable_page" id="image_page_yes" value="1" <?php echo ($option_row->image_enable_page) ? 'checked' : ''; ?> /><label for="image_page_yes">Yes</label>
<input type="radio" name="image_enable_page" id="image_page_no" value="0" <?php echo ($option_row->image_enable_page) ? '' : 'checked'; ?> /><label for="image_page_no">No</label>
</td>
</tr>
<tr id="tr_thumb_width_height">
<td title="Maximum values for thumbnail dimension." class="spider_label"><label id="thumb_width_height_label" for="thumb_width">Image Thumbnail dimensions: </label></td>
<td>
<input type="text" name="thumb_width" id="thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="thumb_width_height_separator"> x </span>
<input type="text" name="thumb_height" id="thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<!--Compact Album view-->
<tr id="tr_compuct_album_column_number">
<td class="spider_label"><label for="compuct_album_column_number">Max. number of album columns: </label></td>
<td><input type="text" name="compuct_album_column_number" id="compuct_album_column_number" value="<?php echo $option_row->album_column_number; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_compuct_albums_per_page">
<td title="If you want to display all albums you should leave it blank or insert 0." class="spider_label"><label for="compuct_albums_per_page">Albums per page: </label></td>
<td><input type="text" name="compuct_albums_per_page" id="compuct_albums_per_page" value="<?php echo $option_row->albums_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_compuct_album_title_hover">
<td class="spider_label"><label>Album title: </label></td>
<td>
<input type="radio" name="compuct_album_title" id="compuct_album_title_hover" value="hover" <?php echo ($option_row->album_title_show_hover == 'hover') ? 'checked' : ''; ?> /><label for="compuct_album_title_hover">Show on hover</label><br />
<input type="radio" name="compuct_album_title" id="compuct_album_title_show" value="show" <?php echo ($option_row->album_title_show_hover == 'show') ? 'checked' : ''; ?> /><label for="compuct_album_title_show">Always show</label><br />
<input type="radio" name="compuct_album_title" id="compuct_album_title_none" value="none" <?php echo ($option_row->album_title_show_hover == 'none') ? 'checked' : ''; ?> /><label for="compuct_album_title_none">Don't show</label>
</td>
</tr>
<tr id="tr_compuct_album_thumb_width_height">
<td title="Maximum values for album thumb width and height." class="spider_label"><label for="compuct_album_thumb_width">Album Thumbnail dimensions: </label></td>
<td>
<input type="text" name="compuct_album_thumb_width" id="compuct_album_thumb_width" value="<?php echo $option_row->album_thumb_width; ?>" class="spider_int_input" /> x
<input type="text" name="compuct_album_thumb_height" id="compuct_album_thumb_height" value="<?php echo $option_row->album_thumb_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_compuct_album_view_type">
<td title="The gallery images view type in the album." class="spider_label"><label>Album view type: </label></td>
<td>
<input type="radio" name="compuct_album_view_type" id="compuct_album_view_type_1" value="thumbnail" <?php if ($option_row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> onchange="bwg_change_compuct_album_view_type()" /><label for="compuct_album_view_type_1">Thumbnail</label>
<input type="radio" name="compuct_album_view_type" id="compuct_album_view_type_0" value="masonry" <?php if ($option_row->album_view_type == "masonry") echo 'checked="checked"'; ?> onchange="bwg_change_compuct_album_view_type()" /><label for="compuct_album_view_type_0">Masonry</label>
<input type="radio" name="compuct_album_view_type" id="compuct_album_view_type_2" value="mosaic" <?php if ($option_row->album_view_type == "mosaic") echo 'checked="checked"'; ?> onchange="bwg_change_compuct_album_view_type()" /><label for="compuct_album_view_type_2">Mosaic</label>
</td>
</tr>
<tr id="tr_compuct_album_mosaic_hor_ver">
<td class="spider_label"><label>Mosaic: </label></td>
<td>
<input type="radio" name="compuct_album_mosaic_hor_ver" id="compuct_album_mosaic_ver" value="vertical" onclick="bwg_change_label('compuct_album_image_column_number', 'Number of image rows: ');
bwg_change_label('compuct_album_image_thumb_dimensions', 'Image thumbnail width: ');
jQuery('#compuct_album_image_thumb_width').show();
jQuery('#compuct_album_image_thumb_height').hide();
jQuery('#compuct_album_image_thumb_dimensions_x').hide();" <?php echo ($option_row->mosaic == 'vertical') ? 'checked' : ''; ?> /><label for="compuct_album_mosaic_ver">Vertical</label>
<input type="radio" name="compuct_album_mosaic_hor_ver" id="compuct_album_mosaic_hor" value="horizontal" onclick="bwg_change_label('compuct_album_image_column_number', 'Max. number of image columns: ');
bwg_change_label('compuct_album_image_thumb_dimensions', 'Image thumbnail height: ');
jQuery('#compuct_album_image_thumb_width').hide();
jQuery('#compuct_album_image_thumb_height').show();
jQuery('#compuct_album_image_thumb_dimensions_x').hide();" <?php echo ($option_row->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="compuct_album_mosaic_hor">Horizontal</label>
</td>
</tr>
<tr id="tr_compuct_album_resizable_mosaic">
<td title="Mosaic thumbnails do not have fixed size, but are proportional to the width of the parent container. This option keeps thumbs to look nice when viewed with very large or very small screen. Prevents zooming of thumbs." class="spider_label"><label for="compuct_album_resizable_mosaic">Resizable mosaic</label></td>
<td>
<input type="radio" name="compuct_album_resizable_mosaic" id="compuct_album_resizable_mosaic_1" value="1" <?php echo ($option_row->resizable_mosaic == 1) ? 'checked' : ''; ?> /><label for="compuct_album_resizable_mosaic_1">Yes</label>
<input type="radio" name="compuct_album_resizable_mosaic" id="compuct_album_resizable_mosaic_0" value="0" <?php echo ($option_row->resizable_mosaic == 0) ? 'checked' : ''; ?> /><label for="compuct_album_resizable_mosaic_0">No</label>
<br />
</td>
</tr>
<tr id="tr_compuct_album_mosaic_total_width">
<td title="Percentage of container's width" class="spider_label"><label for="compuct_album_mosaic_total_width">Total width of mosaic: </label></td>
<td><input type="text" name="compuct_album_mosaic_total_width" id="compuct_album_mosaic_total_width" value="<?php echo $option_row->mosaic_total_width; ?>" class="spider_int_input" /> percent</td>
</tr>
<tr id="tr_compuct_album_image_column_number">
<td class="spider_label"><label for="compuct_album_image_column_number">Max. number of image columns: </label></td>
<td><input type="text" name="compuct_album_image_column_number" id="compuct_album_image_column_number" value="<?php echo $option_row->image_column_number; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_compuct_album_images_per_page">
<td title="If you want to display all images you should leave it blank or insert 0." class="spider_label"><label for="compuct_album_images_per_page">Images per page: </label></td>
<td><input type="text" name="compuct_album_images_per_page" id="compuct_album_images_per_page" value="<?php echo $option_row->images_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_compuct_album_image_title">
<td class="spider_label"><label>Image title: </label></td>
<td>
<input type="radio" name="compuct_album_image_title" id="compuct_album_image_title_hover" value="hover" <?php echo ($option_row->image_title_show_hover == 'hover') ? 'checked' : ''; ?> /><label for="compuct_album_image_title_hover">Show on hover</label><br />
<input type="radio" name="compuct_album_image_title" id="compuct_album_image_title_show" value="show" <?php echo ($option_row->image_title_show_hover == 'show') ? 'checked' : ''; ?> /><label for="compuct_album_image_title_show">Always show</label><br />
<input type="radio" name="compuct_album_image_title" id="compuct_album_image_title_none" value="none" <?php echo ($option_row->image_title_show_hover == 'none') ? 'checked' : ''; ?> /><label for="compuct_album_image_title_none">Don't show</label>
</td>
</tr>
<tr id="tr_compuct_album_image_thumb_width_height">
<td title="Maximum values for thumbnail width and height." class="spider_label"><label for="compuct_album_image_thumb_width" id="compuct_album_image_thumb_dimensions">Image thumbnail dimensions: </label></td>
<td>
<input type="text" name="compuct_album_image_thumb_width" id="compuct_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="compuct_album_image_thumb_dimensions_x" > x </span>
<input type="text" name="compuct_album_image_thumb_height" id="compuct_album_image_thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_compuct_album_enable_page">
<td class="spider_label"><label>Enable pagination: </label></td>
<td>
<input type="radio" name="compuct_album_enable_page" id="compuct_album_page_yes" value="1" <?php echo ($option_row->album_enable_page) ? 'checked' : ''; ?> /><label for="compuct_album_page_yes">Yes</label>
<input type="radio" name="compuct_album_enable_page" id="compuct_album_page_no" value="0" <?php echo ($option_row->album_enable_page) ? '' : 'checked'; ?> /><label for="compuct_album_page_no">No</label>
</td>
</tr>
<!-- Masonry Album view -->
<tr id="tr_masonry_album_column_number">
<td class="spider_label"><label for="masonry_album_column_number">Max. number of album columns: </label></td>
<td><input type="text" name="masonry_album_column_number" id="masonry_album_column_number" value="<?php echo $option_row->album_column_number; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_masonry_albums_per_page">
<td title="If you want to display all albums you should leave it blank or insert 0." class="spider_label"><label for="masonry_albums_per_page">Albums per page: </label></td>
<td><input type="text" name="masonry_albums_per_page" id="masonry_albums_per_page" value="<?php echo $option_row->albums_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_masonry_album_thumb_width_height">
<td title="Maximum value for album thumbnail width." class="spider_label"><label for="masonry_album_thumb_width">Album Thumbnail width: </label></td>
<td><input type="text" name="masonry_album_thumb_width" id="masonry_album_thumb_width" value="<?php echo $option_row->album_thumb_width; ?>" class="spider_int_input" /> px</td>
</tr>
<tr id="tr_masonry_album_image_column_number">
<td class="spider_label"><label for="masonry_album_image_column_number">Max. number of image columns: </label></td>
<td><input type="text" name="masonry_album_image_column_number" id="masonry_album_image_column_number" value="<?php echo $option_row->image_column_number; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_masonry_album_images_per_page">
<td title="If you want to display all images you should leave it blank or insert 0." class="spider_label"><label for="masonry_album_images_per_page">Images per page: </label></td>
<td><input type="text" name="masonry_album_images_per_page" id="masonry_album_images_per_page" value="<?php echo $option_row->images_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_masonry_album_image_thumb_width_height">
<td title="Maximum value for thumbnail width." class="spider_label"><label for="masonry_album_image_thumb_width" id="masonry_album_image_thumb_dimensions">Image thumbnail width: </label></td>
<td><input type="text" name="masonry_album_image_thumb_width" id="masonry_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /> px</td>
</tr>
<tr id="tr_masonry_album_enable_page">
<td class="spider_label"><label>Enable pagination: </label></td>
<td>
<input type="radio" name="masonry_album_enable_page" id="masonry_album_page_yes" value="1" <?php echo ($option_row->album_enable_page) ? 'checked' : ''; ?> /><label for="masonry_album_page_yes">Yes</label>
<input type="radio" name="masonry_album_enable_page" id="masonry_album_page_no" value="0" <?php echo ($option_row->album_enable_page) ? '' : 'checked'; ?> /><label for="masonry_album_page_no">No</label>
</td>
</tr>
<!--Extended Album view-->
<tr id="tr_extended_albums_per_page">
<td title="If you want to display all albums you should leave it blank or insert 0." class="spider_label"><label for="extended_albums_per_page">Albums per page: </label></td>
<td><input type="text" name="extended_albums_per_page" id="extended_albums_per_page" value="<?php echo $option_row->albums_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_extended_album_height">
<td class="spider_label"><label for="extended_album_height">Album row height: </label></td>
<td><input type="text" name="extended_album_height" id="extended_album_height" value="<?php echo $option_row->extended_album_height; ?>" class="spider_int_input" /> px</td>
</tr>
<tr id="tr_extended_album_description_enable">
<td title="If you disable description only the title of the album will be displayed." class="spider_label"><label>Enable album description: </label></td>
<td>
<input type="radio" name="extended_album_description_enable" id="extended_album_description_yes" value="1" <?php echo ($option_row->extended_album_description_enable) ? 'checked' : ''; ?> /><label for="extended_album_description_yes">Yes</label>
<input type="radio" name="extended_album_description_enable" id="extended_album_description_no" value="0" <?php echo ($option_row->extended_album_description_enable) ? '' : 'checked'; ?> /><label for="extended_album_description_no">No</label>
</td>
</tr>
<tr id="tr_extended_album_thumb_width_height">
<td title="Maximum values for album thumb width and height." class="spider_label"><label for="extended_album_thumb_width">Album thumbnail dimensions: </label></td>
<td>
<input type="text" name="extended_album_thumb_width" id="extended_album_thumb_width" value="<?php echo $option_row->album_thumb_width; ?>" class="spider_int_input" /> x
<input type="text" name="extended_album_thumb_height" id="extended_album_thumb_height" value="<?php echo $option_row->album_thumb_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_extended_album_view_type">
<td title="The gallery images view type in the album." class="spider_label"><label>Album view type: </label></td>
<td>
<input type="radio" name="extended_album_view_type" id="extended_album_view_type_1" value="thumbnail" <?php if ($option_row->album_view_type == "thumbnail") echo 'checked="checked"'; ?> onchange="bwg_change_extended_album_view_type()" /><label for="extended_album_view_type_1">Thumbnail</label>
<input type="radio" name="extended_album_view_type" id="extended_album_view_type_0" value="masonry" <?php if ($option_row->album_view_type == "masonry") echo 'checked="checked"'; ?> onchange="bwg_change_extended_album_view_type()" /><label for="extended_album_view_type_0">Masonry</label>
<input type="radio" name="extended_album_view_type" id="extended_album_view_type_2" value="mosaic" <?php if ($option_row->album_view_type == "mosaic") echo 'checked="checked"'; ?> onchange="bwg_change_extended_album_view_type()" /><label for="extended_album_view_type_2">Mosaic</label>
</td>
</tr>
<tr id="tr_extended_album_mosaic_hor_ver">
<td class="spider_label"><label>Mosaic: </label></td>
<td>
<input type="radio" name="extended_album_mosaic_hor_ver" id="extended_album_mosaic_ver" value="vertical" onclick="bwg_change_label('extended_album_image_column_number', 'Number of image rows: ');
bwg_change_label('extended_album_image_thumb_dimensions', 'Image thumbnail width: ');
jQuery('#extended_album_image_thumb_width').show();
jQuery('#extended_album_image_thumb_height').hide();
jQuery('#extended_album_image_thumb_dimensions_x').hide();" <?php echo ($option_row->mosaic == 'vertical') ? 'checked' : ''; ?> /><label for="extended_album_mosaic_ver">Vertical</label>
<input type="radio" name="extended_album_mosaic_hor_ver" id="extended_album_mosaic_hor" value="horizontal" onclick="bwg_change_label('extended_album_image_column_number', 'Max. number of image columns: ');
bwg_change_label('extended_album_image_thumb_dimensions', 'Image thumbnail height: ');
jQuery('#extended_album_image_thumb_width').hide();
jQuery('#extended_album_image_thumb_height').show();
jQuery('#extended_album_image_thumb_dimensions_x').hide();" <?php echo ($option_row->mosaic == 'horizontal') ? 'checked' : ''; ?> /><label for="extended_album_mosaic_hor">Horizontal</label>
</td>
</tr>
<tr id="tr_extended_album_resizable_mosaic">
<td title="Mosaic thumbnails do not have fixed size, but are proportional to the width of the parent container. This option keeps thumbs to look nice when viewed with very large or very small screen. Prevents zooming of thumbs." class="spider_label"><label for="extended_album_resizable_mosaic">Resizable mosaic: </label></td>
<td>
<input type="radio" name="extended_album_resizable_mosaic" id="extended_album_resizable_mosaic_1" value="1" <?php echo ($option_row->resizable_mosaic == 1) ? 'checked' : ''; ?> /><label for="extended_album_resizable_mosaic_1">Yes</label>
<input type="radio" name="extended_album_resizable_mosaic" id="extended_album_resizable_mosaic_0" value="0" <?php echo ($option_row->resizable_mosaic == 0) ? 'checked' : ''; ?> /><label for="extended_album_resizable_mosaic_0">No</label>
<br />
</td>
</tr>
<tr id="tr_extended_album_mosaic_total_width">
<td title="Percentage of container's width" class="spider_label"><label for="extended_album_mosaic_total_width">Total width of mosaic: </label></td>
<td><input type="text" name="extended_album_mosaic_total_width" id="extended_album_mosaic_total_width" value="<?php echo $option_row->mosaic_total_width; ?>" class="spider_int_input" /> percent</td>
</tr>
<tr id="tr_extended_album_image_column_number">
<td class="spider_label"><label for="extended_album_image_column_number">Max. number of image columns: </label></td>
<td><input type="text" name="extended_album_image_column_number" id="extended_album_image_column_number" value="<?php echo $option_row->image_column_number; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_extended_album_images_per_page">
<td title="If you want to display all images you should leave it blank or insert 0." class="spider_label"><label for="extended_album_images_per_page">Images per page: </label></td>
<td><input type="text" name="extended_album_images_per_page" id="extended_album_images_per_page" value="<?php echo $option_row->images_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_extended_album_image_title">
<td class="spider_label"><label>Image title: </label></td>
<td>
<input type="radio" name="extended_album_image_title" id="extended_album_image_title_hover" value="hover" <?php echo ($option_row->image_title_show_hover == 'hover') ? 'checked' : ''; ?> /><label for="extended_album_image_title_hover">Show on hover</label><br />
<input type="radio" name="extended_album_image_title" id="extended_album_image_title_show" value="show" <?php echo ($option_row->image_title_show_hover == 'show') ? 'checked' : ''; ?> /><label for="extended_album_image_title_show">Always show</label><br />
<input type="radio" name="extended_album_image_title" id="extended_album_image_title_none" value="none" <?php echo ($option_row->image_title_show_hover == 'none') ? 'checked' : ''; ?> /><label for="extended_album_image_title_none">Don't show</label>
</td>
</tr>
<tr id="tr_extended_album_image_thumb_width_height">
<td title="Maximum values for thumbnail width and height." class="spider_label"><label for="extended_album_image_thumb_width" id="extended_album_image_thumb_dimensions">Image Thumbnail dimensions: </label></td>
<td>
<input type="text" name="extended_album_image_thumb_width" id="extended_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="extended_album_image_thumb_dimensions_x" > x </span>
<input type="text" name="extended_album_image_thumb_height" id="extended_album_image_thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_extended_album_enable_page">
<td class="spider_label"><label>Enable pagination: </label></td>
<td>
<input type="radio" name="extended_album_enable_page" id="extended_album_page_yes" value="1" <?php echo ($option_row->album_enable_page) ? 'checked' : ''; ?> /><label for="extended_album_page_yes">Yes</label>
<input type="radio" name="extended_album_enable_page" id="extended_album_page_no" value="0" <?php echo ($option_row->album_enable_page) ? '' : 'checked'; ?> /><label for="extended_album_page_no">No</label>
</td>
</tr>
<!--Image Browser view-->
<tr id="tr_image_browser_width_height">
<td title="Maximum value for image width." class="spider_label"><label for="image_browser_width">Image width: </label></td>
<td>
<input type="text" name="image_browser_width" id="image_browser_width" value="<?php echo $option_row->image_browser_width; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_image_browser_title_enable">
<td class="spider_label"><label>Enable image title: </label></td>
<td>
<input type="radio" name="image_browser_title_enable" id="image_browser_title_yes" value="1" <?php echo ($option_row->image_browser_title_enable) ? 'checked' : ''; ?> /><label for="image_browser_title_es">Yes</label>
<input type="radio" name="image_browser_title_enable" id="image_browser_title_no" value="0" <?php echo ($option_row->image_browser_title_enable) ? '' : 'checked'; ?> /><label for="image_browser_title_no">No</label>
</td>
</tr>
<tr id="tr_image_browser_description_enable">
<td class="spider_label"><label>Enable image description: </label></td>
<td>
<input type="radio" name="image_browser_description_enable" id="image_browser_description_yes" value="1" <?php echo ($option_row->image_browser_description_enable) ? 'checked' : ''; ?> /><label for="image_browser_description_yes">Yes</label>
<input type="radio" name="image_browser_description_enable" id="image_browser_description_no" value="0" <?php echo ($option_row->image_browser_description_enable) ? '' : 'checked'; ?> /><label for="image_browser_description_no">No</label>
</td>
</tr>
<!--Blog Style view-->
<tr id="tr_blog_style_width_height">
<td title="Maximum value for image width." class="spider_label"><label for="blog_style_width">Image width: </label></td>
<td>
<input type="text" name="blog_style_width" id="blog_style_width" value="<?php echo $option_row->blog_style_width; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_blog_style_title_enable">
<td class="spider_label"><label>Enable image title: </label></td>
<td>
<input type="radio" name="blog_style_title_enable" id="blog_style_title_yes" value="1" <?php echo ($option_row->blog_style_title_enable) ? 'checked' : ''; ?> /><label for="blog_style_title_es">Yes</label>
<input type="radio" name="blog_style_title_enable" id="blog_style_title_no" value="0" <?php echo ($option_row->blog_style_title_enable) ? '' : 'checked'; ?> /><label for="blog_style_title_no">No</label>
</td>
</tr>
<tr id="tr_blog_style_images_per_page">
<td title="If you want to display all images you should leave it blank or insert 0." class="spider_label"><label for="blog_style_images_per_page">Images per page: </label></td>
<td><input type="text" name="blog_style_images_per_page" id="blog_style_images_per_page" value="<?php echo $option_row->blog_style_images_per_page; ?>" class="spider_int_input" /></td>
</tr>
<tr id="tr_blog_style_enable_page">
<td class="spider_label"><label>Enable pagination: </label></td>
<td>
<input type="radio" name="blog_style_enable_page" id="blog_style_page_yes" value="1" <?php echo ($option_row->blog_style_enable_page) ? 'checked' : ''; ?> /><label for="blog_style_page_yes">Yes</label>
<input type="radio" name="blog_style_enable_page" id="blog_style_page_no" value="0" <?php echo ($option_row->blog_style_enable_page) ? '' : 'checked'; ?> /><label for="blog_style_page_no">No</label>
</td>
</tr>
<!--Slideshow view-->
<tr id="tr_slideshow_effect">
<td class="spider_label"><label for="slideshow_effect">Slideshow Effect: </label></td>
<td>
<select name="slideshow_effect" id="slideshow_effect" style="width:150px;">
<?php
foreach ($effects as $key => $effect) {
?>
<option value="<?php echo $key; ?>" <?php echo ($option_row->slideshow_type == $key) ? 'selected' : ''; ?>><?php echo $effect; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr id="tr_slideshow_interval">
<td title="Interval between two images." class="spider_label"><label for="slideshow_interval">Time interval: </label></td>
<td><input type="text" name="slideshow_interval" id="slideshow_interval" value="<?php echo $option_row->slideshow_interval; ?>" class="spider_int_input" /> sec.</td>
</tr>
<tr id="tr_slideshow_width_height">
<td title="Maximum values for slideshow width and height." class="spider_label"><label for="slideshow_width">Slideshow dimensions: </label></td>
<td>
<input type="text" name="slideshow_width" id="slideshow_width" value="<?php echo $option_row->slideshow_width; ?>" class="spider_int_input" /> x
<input type="text" name="slideshow_height" id="slideshow_height" value="<?php echo $option_row->slideshow_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_enable_slideshow_autoplay">
<td class="spider_label"><label>Enable Autoplay: </label></td>
<td>
<input type="radio" name="enable_slideshow_autoplay" id="slideshow_autoplay_yes" value="1" <?php echo ($option_row->slideshow_enable_autoplay) ? 'checked' : ''; ?> /><label for="slideshow_autoplay_yes">Yes</label>
<input type="radio" name="enable_slideshow_autoplay" id="slideshow_autoplay_no" value="0" <?php echo ($option_row->slideshow_enable_autoplay) ? '' : 'checked'; ?> /><label for="slideshow_autoplay_no">No</label>
</td>
</tr>
<tr id="tr_enable_slideshow_shuffle">
<td class="spider_label"><label>Enable Shuffle: </label></td>
<td>
<input type="radio" name="enable_slideshow_shuffle" id="slideshow_shuffle_yes" value="1" <?php echo ($option_row->slideshow_enable_shuffle) ? 'checked' : ''; ?> /><label for="slideshow_shuffle_yes">Yes</label>
<input type="radio" name="enable_slideshow_shuffle" id="slideshow_shuffle_no" value="0" <?php echo ($option_row->slideshow_enable_shuffle) ? '' : 'checked'; ?> /><label for="slideshow_shuffle_no">No</label>
</td>
</tr>
<tr id="tr_enable_slideshow_ctrl">
<td class="spider_label"><label>Enable control buttons: </label></td>
<td>
<input type="radio" name="enable_slideshow_ctrl" id="slideshow_ctrl_yes" value="1" <?php echo ($option_row->slideshow_enable_ctrl) ? 'checked' : ''; ?> /><label for="slideshow_ctrl_yes">Yes</label>
<input type="radio" name="enable_slideshow_ctrl" id="slideshow_ctrl_no" value="0" <?php echo ($option_row->slideshow_enable_ctrl) ? '' : 'checked'; ?> /><label for="slideshow_ctrl_no">No</label>
</td>
</tr>
<tr id="tr_enable_slideshow_filmstrip">
<td title="Enable slideshow filmstrip view" class="spider_label"><label>Enable slideshow filmstrip: </label></td>
<td>
<input type="radio" name="enable_slideshow_filmstrip" id="slideshow_filmstrip_yes" value="1" onClick="bwg_enable_disable('', 'tr_slideshow_filmstrip_height', 'slideshow_filmstrip_yes')" <?php echo ($option_row->slideshow_enable_filmstrip) ? 'checked' : ''; ?> /><label for="slideshow_filmstrip_yes">Yes</label>
<input type="radio" name="enable_slideshow_filmstrip" id="slideshow_filmstrip_no" value="0" onClick="bwg_enable_disable('none', 'tr_slideshow_filmstrip_height', 'slideshow_filmstrip_no')" <?php echo ($option_row->slideshow_enable_filmstrip) ? '' : 'checked'; ?> /><label for="slideshow_filmstrip_no">No</label>
</td>
</tr>
<tr id="tr_slideshow_filmstrip_height">
<td class="spider_label"><label for="slideshow_filmstrip_height">Slideshow Filmstrip size: </label></td>
<td><input type="text" name="slideshow_filmstrip_height" id="slideshow_filmstrip_height" value="<?php echo $option_row->slideshow_filmstrip_height; ?>" class="spider_int_input" /> px</td>
</tr>
</tbody>
</table>
</div>
<div class="bwg_short_div" style="border-right: 1px solid #000000;">
<table>
<!--Slideshow view-->
<tbody id="tbody_slideshow">
<tr id="tr_slideshow_enable_title">
<td class="spider_label"><label>Enable Image Title: </label></td>
<td>
<input type="radio" name="slideshow_enable_title" id="slideshow_title_yes" value="1" <?php echo ($option_row->slideshow_enable_title) ? 'checked' : ''; ?> onClick="bwg_enable_disable('', 'tr_slideshow_title_position', 'slideshow_title_yes')" /><label for="slideshow_title_yes">Yes</label>
<input type="radio" name="slideshow_enable_title" id="slideshow_title_no" value="0" <?php echo ($option_row->slideshow_enable_title) ? '' : 'checked'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_title_position', 'slideshow_title_no')" /><label for="slideshow_title_no">No</label>
</td>
</tr>
<tr id="tr_slideshow_title_position">
<td title="Image title position on slideshow" class="spider_label"><label>Title Position: </label></td>
<td>
<table class="bws_position_table">
<tbody>
<tr>
<td><input type="radio" value="top-left" id="slideshow_title_top-left" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'top-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="top-center" id="slideshow_title_top-center" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'top-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="top-right" id="slideshow_title_top-right" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'top-right') ? 'checked' : ''; ?>></td>
</tr>
<tr>
<td><input type="radio" value="middle-left" id="slideshow_title_middle-left" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'middle-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="middle-center" id="slideshow_title_middle-center" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'middle-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="middle-right" id="slideshow_title_middle-right" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'middle-right') ? 'checked' : ''; ?>></td>
</tr>
<tr>
<td><input type="radio" value="bottom-left" id="slideshow_title_bottom-left" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'bottom-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="bottom-center" id="slideshow_title_bottom-center" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'bottom-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="bottom-right" id="slideshow_title_bottom-right" name="slideshow_title_position" <?php echo ($option_row->slideshow_title_position == 'bottom-right') ? 'checked' : ''; ?>></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr id="tr_slideshow_full_width_title">
<td title="Display image title based on the slideshow dimensions." class="spider_label">
<label>Full width title:</label>
</td>
<td>
<input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_1" value="1" <?php if ($option_row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_1">Yes</label>
<input type="radio" name="slideshow_title_full_width" id="slideshow_title_full_width_0" value="0" <?php if (!$option_row->slideshow_title_full_width) echo 'checked="checked"'; ?> /><label for="slideshow_title_full_width_0">No</label>
</td>
</tr>
<tr id="tr_slideshow_enable_description">
<td class="spider_label"><label>Enable Image Description: </label></td>
<td>
<input type="radio" name="slideshow_enable_description" id="slideshow_description_yes" value="1" <?php echo ($option_row->slideshow_enable_description) ? 'checked' : ''; ?> onClick="bwg_enable_disable('', 'tr_slideshow_description_position', 'slideshow_description_yes')" /><label for="slideshow_description_yes">Yes</label>
<input type="radio" name="slideshow_enable_description" id="slideshow_description_no" value="0" <?php echo ($option_row->slideshow_enable_description) ? '' : 'checked'; ?> onClick="bwg_enable_disable('none', 'tr_slideshow_description_position', 'slideshow_description_no')" /><label for="slideshow_description_no">No</label>
</td>
</tr>
<tr id="tr_slideshow_description_position">
<td title="Image description position on slideshow" class="spider_label"><label>Description Position: </label></td>
<td>
<table class="bws_position_table">
<tbody>
<tr>
<td><input type="radio" value="top-left" id="slideshow_description_top-left" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'top-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="top-center" id="slideshow_description_top-center" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'top-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="top-right" id="slideshow_description_top-right" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'top-right') ? 'checked' : ''; ?>></td>
</tr>
<tr>
<td><input type="radio" value="middle-left" id="slideshow_description_middle-left" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'middle-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="middle-center" id="slideshow_description_middle-center" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'middle-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="middle-right" id="slideshow_description_middle-right" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'middle-right') ? 'checked' : ''; ?>></td>
</tr>
<tr>
<td><input type="radio" value="bottom-left" id="slideshow_description_bottm-Left" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'bottom-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="bottom-center" id="slideshow_description_bottom-center" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'bottom-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="bottom-right" id="slideshow_description_bottm-right" name="slideshow_description_position" <?php echo ($option_row->slideshow_description_position == 'bottom-right') ? 'checked' : ''; ?>></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr id="tr_enable_slideshow_music">
<td class="spider_label"><label>Enable Slideshow Music: </label></td>
<td>
<input type="radio" name="enable_slideshow_music" id="slideshow_music_yes" value="1" onClick="bwg_enable_disable('', 'tr_slideshow_music_url', 'slideshow_music_yes')" <?php echo ($option_row->slideshow_enable_music) ? 'checked' : ''; ?> /><label for="slideshow_music_yes">Yes</label>
<input type="radio" name="enable_slideshow_music" id="slideshow_music_no" value="0" onClick="bwg_enable_disable('none', 'tr_slideshow_music_url', 'slideshow_music_no')" <?php echo ($option_row->slideshow_enable_music) ? '' : 'checked'; ?> /><label for="slideshow_music_no">No</label>
</td>
</tr>
<tr id="tr_slideshow_music_url">
<td title="Enter absolute audio file url or add file from Options page." class="spider_label">
<label for="slideshow_music_url">Music url: </label>
</td>
<td>
<input type="text" id="slideshow_music_url" name="slideshow_music_url" value="<?php echo $option_row->slideshow_audio_url; ?>" style="display:inline-block;" />
</td>
</tr>
</tbody>
<!--Lightbox view-->
<?php //if ($option_row->thumb_click_action != 'open_lightbox') { ?>
<tbody id="tbody_popup_other">
<tr id="tr_thumb_click_action">
<td class="spider_label"><label>Thumb click action: </label></td>
<td>
<input type="radio" name="thumb_click_action" id="thumb_click_action_1" value="open_lightbox" <?php if ($option_row->thumb_click_action == 'open_lightbox') echo 'checked="checked"'; ?> onchange="bwg_thumb_click_action()" /><label for="thumb_click_action_1">Open lightbox</label><br />
<input type="radio" name="thumb_click_action" id="thumb_click_action_2" value="redirect_to_url" <?php if ($option_row->thumb_click_action == 'redirect_to_url') echo 'checked="checked"'; ?> onchange="bwg_thumb_click_action()" /><label for="thumb_click_action_2">Redirect to url</label>
</td>
</tr>
<tr id="tr_thumb_link_target">
<td title="Open new window when redirecting." class="spider_label"><label>Open in new window: </label></td>
<td>
<input type="radio" name="thumb_link_target" id="thumb_link_target_yes" value="1" <?php if ($option_row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_yes">Yes</label>
<input type="radio" name="thumb_link_target" id="thumb_link_target_no" value="0" <?php if (!$option_row->thumb_link_target) echo 'checked="checked"'; ?> /><label for="thumb_link_target_no">No</label>
</td>
</tr>
</tbody>
<?php //} ?>
<tbody id="tbody_popup">
<tr id="tr_popup_fullscreen">
<td title="Enable full width feature for the lightbox." class="spider_label">
<label>Full width lightbox:</label>
</td>
<td>
<input type="radio" name="popup_fullscreen" id="popup_fullscreen_1" value="1" <?php if ($option_row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen()" /><label for="popup_fullscreen_1">Yes</label>
<input type="radio" name="popup_fullscreen" id="popup_fullscreen_0" value="0" <?php if (!$option_row->popup_fullscreen) echo 'checked="checked"'; ?> onchange="bwg_popup_fullscreen()" /><label for="popup_fullscreen_0">No</label>
</td>
</tr>
<tr id="tr_popup_width_height">
<td title="Maximum values for lightbox width and height." class="spider_label"><label for="popup_width">Lightbox dimensions: </label></td>
<td>
<input type="text" name="popup_width" id="popup_width" value="<?php echo $option_row->popup_width; ?>" class="spider_int_input" /> x
<input type="text" name="popup_height" id="popup_height" value="<?php echo $option_row->popup_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_popup_effect">
<td title="Lightbox slideshow effect." class="spider_label"><label for="popup_effect">Lightbox effect: </label></td>
<td>
<select name="popup_effect" id="popup_effect" style="width:150px;">
<?php
foreach ($effects as $key => $effect) {
?>
<option value="<?php echo $key; ?>" <?php echo ($option_row->popup_type == $key) ? 'selected' : ''; ?>><?php echo $effect; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr id="tr_popup_autoplay">
<td class="spider_label">
<label>Lightbox autoplay: </label>
</td>
<td>
<input type="radio" name="popup_autoplay" id="popup_autoplay_1" value="1" <?php if ($option_row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_1">Yes</label>
<input type="radio" name="popup_autoplay" id="popup_autoplay_0" value="0" <?php if (!$option_row->popup_autoplay) echo 'checked="checked"'; ?> /><label for="popup_autoplay_0">No</label>
</td>
</tr>
<tr id="tr_popup_interval">
<td title="Interval between two images." class="spider_label"><label for="popup_interval">Time interval: </label></td>
<td><input type="text" name="popup_interval" id="popup_interval" value="<?php echo $option_row->popup_interval; ?>" class="spider_int_input" /> sec.</td>
</tr>
<tr id="tr_popup_enable_filmstrip">
<td title="Enable filmstrip view for images" class="spider_label"><label>Enable filmstrip in lightbox: </label></td>
<td>
<input type="radio" name="popup_enable_filmstrip" id="popup_filmstrip_yes" value="1" onClick="bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_filmstrip_yes')" <?php echo ($option_row->popup_enable_filmstrip) ? 'checked' : ''; ?> /><label for="popup_filmstrip_yes">Yes</label>
<input type="radio" name="popup_enable_filmstrip" id="popup_filmstrip_no" value="0" onClick="bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_filmstrip_no')" <?php echo ($option_row->popup_enable_filmstrip) ? '' : 'checked'; ?> /><label for="popup_filmstrip_no">No</label>
</td>
</tr>
<tr id="tr_popup_filmstrip_height">
<td class="spider_label"><label for="popup_filmstrip_height">Filmstrip size: </label></td>
<td><input type="text" name="popup_filmstrip_height" id="popup_filmstrip_height" value="<?php echo $option_row->popup_filmstrip_height; ?>" class="spider_int_input" /> px</td>
</tr>
<tr id="tr_popup_hit_counter">
<td class="spider_label"><label>Display hit counter: </label></td>
<td>
<input type="radio" name="popup_hit_counter" id="popup_hit_counter_yes" value="1" <?php echo ($option_row->popup_hit_counter) ? 'checked' : ''; ?> /><label for="popup_hit_counter_yes">Yes</label>
<input type="radio" name="popup_hit_counter" id="popup_hit_counter_no" value="0" <?php echo ($option_row->popup_hit_counter) ? '' : 'checked'; ?> /><label for="popup_hit_counter_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_ctrl_btn">
<td title="Enable control buttons in lightbox" class="spider_label"><label>Enable control buttons: </label></td>
<td>
<input type="radio" name="popup_enable_ctrl_btn" id="popup_ctrl_btn_yes" value="1" onClick="bwg_enable_disable('', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_yes');" <?php echo ($option_row->popup_enable_ctrl_btn) ? 'checked' : ''; ?> /><label for="popup_ctrl_btn_yes">Yes</label>
<input type="radio" name="popup_enable_ctrl_btn" id="popup_ctrl_btn_no" value="0" onClick="bwg_enable_disable('none', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_no');" <?php echo ($option_row->popup_enable_ctrl_btn) ? '' : 'checked'; ?> /><label for="popup_ctrl_btn_no">No</label>
</td>
</tr>
</tbody>
<tbody id="tbody_popup_ctrl_btn">
<tr id="tr_popup_enable_fullscreen">
<td title="Enable fullscreen view for images" class="spider_label"><label>Enable fullscreen: </label></td>
<td>
<input type="radio" name="popup_enable_fullscreen" id="popup_fullscreen_yes" value="1" <?php echo ($option_row->popup_enable_fullscreen) ? 'checked' : ''; ?> /><label for="popup_fullscreen_yes">Yes</label>
<input type="radio" name="popup_enable_fullscreen" id="popup_fullscreen_no" value="0" <?php echo ($option_row->popup_enable_fullscreen) ? '' : 'checked'; ?> /><label for="popup_fullscreen_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_info">
<td title="Enable title, description for images" class="spider_label"><label>Enable info: </label></td>
<td>
<input type="radio" name="popup_enable_info" id="popup_info_yes" value="1" <?php echo ($option_row->popup_enable_info) ? 'checked="checked"' : ''; ?> /><label for="popup_info_yes">Yes</label>
<input type="radio" name="popup_enable_info" id="popup_info_no" value="0" <?php echo ($option_row->popup_enable_info) ? '' : 'checked="checked"'; ?> /><label for="popup_info_no">No</label>
</td>
</tr>
<tr id="tr_popup_info_always_show">
<td class="spider_label"><label>Display info by default: </label></td>
<td>
<input type="radio" name="popup_info_always_show" id="popup_info_always_show_yes" value="1" <?php echo ($option_row->popup_info_always_show) ? 'checked="checked"' : ''; ?> /><label for="popup_info_always_show_yes">Yes</label>
<input type="radio" name="popup_info_always_show" id="popup_info_always_show_no" value="0" <?php echo ($option_row->popup_info_always_show) ? '' : 'checked="checked"'; ?> /><label for="popup_info_always_show_no">No</label>
</td>
</tr>
<tr id="tr_popup_info_full_width">
<td title="Display image information based on the lightbox dimensions." class="spider_label"><label>Full width info:</label></td>
<td>
<input type="radio" name="popup_info_full_width" id="popup_info_full_width_1" value="1" <?php if ($option_row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_1">Yes</label>
<input type="radio" name="popup_info_full_width" id="popup_info_full_width_0" value="0" <?php if (!$option_row->popup_info_full_width) echo 'checked="checked"'; ?> /><label for="popup_info_full_width_0">No</label>
</td>
</tr>
<tr id="tr_popup_enable_rate">
<td title="Enable rating for images" class="spider_label"><label>Enable rating: </label></td>
<td>
<input type="radio" name="popup_enable_rate" id="popup_rate_yes" value="1" <?php echo ($option_row->popup_enable_rate) ? 'checked="checked"' : ''; ?> /><label for="popup_rate_yes">Yes</label>
<input type="radio" name="popup_enable_rate" id="popup_rate_no" value="0" <?php echo ($option_row->popup_enable_rate) ? '' : 'checked="checked"'; ?> /><label for="popup_rate_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_comment">
<td title="Enable comments for images" class="spider_label"><label>Enable comments: </label></td>
<td>
<input type="radio" name="popup_enable_comment" id="popup_comment_yes" value="1" <?php echo ($option_row->popup_enable_comment) ? 'checked' : ''; ?> /><label for="popup_comment_yes">Yes</label>
<input type="radio" name="popup_enable_comment" id="popup_comment_no" value="0" <?php echo ($option_row->popup_enable_comment) ? '' : 'checked'; ?> /><label for="popup_comment_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_facebook">
<td title="Enable Facebook share button for images" class="spider_label"><label>Enable Facebook button: </label></td>
<td>
<input type="radio" name="popup_enable_facebook" id="popup_facebook_yes" value="1" <?php echo ($option_row->popup_enable_facebook) ? 'checked' : ''; ?> /><label for="popup_facebook_yes">Yes</label>
<input type="radio" name="popup_enable_facebook" id="popup_facebook_no" value="0" <?php echo ($option_row->popup_enable_facebook) ? '' : 'checked'; ?> /><label for="popup_facebook_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_twitter">
<td title="Enable Twitter share button for images" class="spider_label"><label>Enable Twitter button: </label></td>
<td>
<input type="radio" name="popup_enable_twitter" id="popup_twitter_yes" value="1" <?php echo ($option_row->popup_enable_twitter) ? 'checked' : ''; ?> /><label for="popup_twitter_yes">Yes</label>
<input type="radio" name="popup_enable_twitter" id="popup_twitter_no" value="0" <?php echo ($option_row->popup_enable_twitter) ? '' : 'checked'; ?> /><label for="popup_twitter_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_google">
<td title="Enable Google+ share button for images" class="spider_label"><label>Enable Google+ button: </label></td>
<td>
<input type="radio" name="popup_enable_google" id="popup_google_yes" value="1" <?php echo ($option_row->popup_enable_google) ? 'checked' : ''; ?> /><label for="popup_google_yes">Yes</label>
<input type="radio" name="popup_enable_google" id="popup_google_no" value="0" <?php echo ($option_row->popup_enable_google) ? '' : 'checked'; ?> /><label for="popup_google_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_pinterest">
<td title="Enable Pinterest share button for images" class="spider_label"><label>Enable Pinterest button: </label></td>
<td>
<input type="radio" name="popup_enable_pinterest" id="popup_pinterest_yes" value="1" <?php echo ($option_row->popup_enable_pinterest) ? 'checked' : ''; ?> /><label for="popup_pinterest_yes">Yes</label>
<input type="radio" name="popup_enable_pinterest" id="popup_pinterest_no" value="0" <?php echo ($option_row->popup_enable_pinterest) ? '' : 'checked'; ?> /><label for="popup_pinterest_no">No</label>
</td>
</tr>
<tr id="tr_popup_enable_tumblr">
<td title="Enable Tumblr share button for images" class="spider_label"><label>Enable Tumblr button: </label></td>
<td>
<input type="radio" name="popup_enable_tumblr" id="popup_tumblr_yes" value="1" <?php echo ($option_row->popup_enable_tumblr) ? 'checked' : ''; ?> /><label for="popup_tumblr_yes">Yes</label>
<input type="radio" name="popup_enable_tumblr" id="popup_tumblr_no" value="0" <?php echo ($option_row->popup_enable_tumblr) ? '' : 'checked'; ?> /><label for="popup_tumblr_no">No</label>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bwg_short_div">
<table>
<tbody>
<tr id="tr_watermark_type">
<td class="spider_label"><label>Advertisement Type: </label></td>
<td>
<input type="radio" name="watermark_type" id="watermark_type_none" value="none" onClick="bwg_watermark('watermark_type_none')" <?php echo ($option_row->watermark_type == 'none') ? 'checked' : ''; ?> /><label for="watermark_type_none">None</label>
<input type="radio" name="watermark_type" id="watermark_type_text" value="text" onClick="bwg_watermark('watermark_type_text')" <?php echo ($option_row->watermark_type == 'text') ? 'checked' : ''; ?> /><label for="watermark_type_text">Text</label>
<input type="radio" name="watermark_type" id="watermark_type_image" value="image" onClick="bwg_watermark('watermark_type_image')" <?php echo ($option_row->watermark_type == 'image') ? 'checked' : ''; ?> /><label for="watermark_type_image">Image</label>
</td>
</tr>
<tr id="tr_watermark_link">
<td title="Enter absolute url, e.g. http://www.example.com" class="spider_label">
<label for="watermark_link">Advertisement link: </label>
</td>
<td>
<input type="text" id="watermark_link" name="watermark_link" value="<?php echo urldecode($option_row->watermark_link); ?>" style="display:inline-block;" />
</td>
</tr>
<tr id="tr_watermark_url">
<td title="Enter absolute image file url or add file from Options page." class="spider_label">
<label for="watermark_url">Advertisement url: </label>
</td>
<td>
<input type="text" id="watermark_url" name="watermark_url" value="<?php echo $option_row->watermark_url; ?>" style="display:inline-block;" />
</td>
</tr>
<tr id="tr_watermark_width_height">
<td title="Maximum values for watermark image width and height." class="spider_label"><label for="watermark_width">Advertisement dimensions: </label></td>
<td>
<input type="text" name="watermark_width" id="watermark_width" value="<?php echo $option_row->watermark_width; ?>" class="spider_int_input" /> x
<input type="text" name="watermark_height" id="watermark_height" value="<?php echo $option_row->watermark_height; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_watermark_text">
<td class="spider_label"><label for="watermark_text">Advertisement text: </label></td>
<td>
<input type="text" name="watermark_text" id="watermark_text" value="<?php echo $option_row->watermark_text; ?>" />
</td>
</tr>
<tr id="tr_watermark_font_size">
<td class="spider_label"><label for="watermark_font_size">Advertisement font size: </label></td>
<td>
<input type="text" name="watermark_font_size" id="watermark_font_size" value="<?php echo $option_row->watermark_font_size; ?>" class="spider_int_input" /> px
</td>
</tr>
<tr id="tr_watermark_font">
<td class="spider_label"><label for="watermark_font">Advertisement font style: </label></td>
<td>
<select name="watermark_font" id="watermark_font" style="width:150px;">
<?php
foreach ($watermark_fonts as $watermark_font) {
?>
<option value="<?php echo $watermark_font; ?>" <?php echo ($option_row->watermark_font == $watermark_font) ? 'selected' : ''; ?>><?php echo $watermark_font; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr id="tr_watermark_color">
<td class="spider_label"><label for="watermark_color">Advertisement color: </label></td>
<td>
<input type="text" name="watermark_color" id="watermark_color" value="<?php echo $option_row->watermark_color; ?>" class="color" />
</td>
</tr>
<tr id="tr_watermark_opacity">
<td title="Value must be between 0 to 100." class="spider_label"><label for="watermark_opacity">Advertisement opacity: </label></td>
<td>
<input type="text" name="watermark_opacity" id="watermark_opacity" value="<?php echo $option_row->watermark_opacity; ?>" class="spider_int_input" /> %
</td>
</tr>
<tr id="tr_watermark_position">
<td class="spider_label"><label>Advertisement Position: </label></td>
<td>
<table class="bws_position_table">
<tbody>
<tr>
<td><input type="radio" value="top-left" id="watermark_top-left" name="watermark_position" <?php echo ($option_row->watermark_position == 'top-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="top-center" id="watermark_top-center" name="watermark_position" <?php echo ($option_row->watermark_position == 'top-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="top-right" id="watermark_top-right" name="watermark_position" <?php echo ($option_row->watermark_position == 'top-right') ? 'checked' : ''; ?>></td>
</tr>
<tr>
<td><input type="radio" value="middle-left" id="watermark_middle-left" name="watermark_position" <?php echo ($option_row->watermark_position == 'middle-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="middle-center" id="watermark_middle-center" name="watermark_position" <?php echo ($option_row->watermark_position == 'middle-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="middle-right" id="watermark_middle-right" name="watermark_position" <?php echo ($option_row->watermark_position == 'middle-right') ? 'checked' : ''; ?>></td>
</tr>
<tr>
<td><input type="radio" value="bottom-left" id="watermark_bottom-left" name="watermark_position" <?php echo ($option_row->watermark_position == 'bottom-left') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="bottom-center" id="watermark_bottom-center" name="watermark_position" <?php echo ($option_row->watermark_position == 'bottom-center') ? 'checked' : ''; ?>></td>
<td><input type="radio" value="bottom-right" id="watermark_bottom-right" name="watermark_position" <?php echo ($option_row->watermark_position == 'bottom-right') ? 'checked' : ''; ?>></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<span style="float: left; width: 100%;">
<!-- <textarea style="width: 100%; resize: vertical" id="bwg_shortcode" rows="4" onkeydown="bwg_onKeyDown(event)"></textarea> -->
<input type="hidden" id="bwg_shortcode" name="<?php echo $name?>" value="<?php echo $value ?>" onkeydown="bwg_onKeyDown(event)" />
</span>
</div>
<script type="text/javascript">
window.onload = bwg_shortcode_load;
//var params = get_params("Load_gallery_wd");
// var bwg_insert = 1;
bwg_update_shortcode();
var content = jQuery("#bwg_shortcode").val();
function bwg_update_shortcode() {
//params = get_params("Load_gallery_wd");
var short_code = get_params("Loadgallery_wd");
if (!short_code) { // Insert.
bwg_gallery_type('thumbnails');
}
else {
content = jQuery("#bwg_shortcode").val();
jQuery('#insert').attr('onclick', "bwg_insert_shortcode(content)");
jQuery("select[id=theme] option[value='" + short_code['theme_id'] + "']").attr('selected', 'selected');
switch (short_code['gallery_type']) {
case 'thumbnails': {
jQuery("select[id=gallery] option[value='" + short_code['gallery_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
jQuery("#image_column_number").val(short_code['image_column_number']);
jQuery("#images_per_page").val(short_code['images_per_page']);
jQuery("#image_title_" + short_code['image_title']).attr('checked', 'checked');
if (short_code['image_enable_page'] == 1) {
jQuery("#image_page_yes").attr('checked', 'checked');
}
else {
jQuery("#image_page_no").attr('checked', 'checked');
}
jQuery("#thumb_width").val(short_code['thumb_width']);
jQuery("#thumb_height").val(short_code['thumb_height']);
break;
}
case 'thumbnails_masonry': {
jQuery("select[id=gallery] option[value='" + short_code['gallery_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
if (short_code['masonry_hor_ver'] == 'horizontal') {
jQuery("#masonry_hor").attr('checked', 'checked');
}
else {
jQuery("#masonry_ver").attr('checked', 'checked');
}
jQuery("#image_column_number").val(short_code['image_column_number']);
jQuery("#images_per_page").val(short_code['images_per_page']);
if (short_code['image_enable_page'] == 1) {
jQuery("#image_page_yes").attr('checked', 'checked');
}
else {
jQuery("#image_page_no").attr('checked', 'checked');
}
jQuery("#thumb_width").val(short_code['thumb_width']);
jQuery("#thumb_height").val(short_code['thumb_height']);
break;
}
case 'thumbnails_mosaic': {
jQuery("select[id=gallery] option[value='" + short_code['gallery_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['mosaic_hor_ver'] == 'horizontal') {
jQuery("#mosaic_hor").attr('checked', 'checked');
}
else {
jQuery("#mosaic_ver").attr('checked', 'checked');
}
if (short_code['resizable_mosaic'] == 1) {
jQuery("#resizable_mosaic_1").attr('checked', 'checked');
}
else {
jQuery("#resizable_mosaic_0").attr('checked', 'checked');
}
jQuery("#mosaic_total_width").val(short_code['mosaic_total_width']);
jQuery("#image_title_" + short_code['image_title']).attr('checked', 'checked');
jQuery("#images_per_page").val(short_code['images_per_page']);
if (short_code['image_enable_page'] == 1) {
jQuery("#image_page_yes").attr('checked', 'checked');
}
else {
jQuery("#image_page_no").attr('checked', 'checked');
}
jQuery("#thumb_width").val(short_code['thumb_width']);
jQuery("#thumb_height").val(short_code['thumb_height']);
break;
}
case 'slideshow': {
jQuery("select[id=gallery] option[value='" + short_code['gallery_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
jQuery("select[id=slideshow_effect] option[value='" + short_code['slideshow_effect'] + "']").attr('selected', 'selected');
jQuery("#slideshow_interval").val(short_code['slideshow_interval']);
jQuery("#slideshow_width").val(short_code['slideshow_width']);
jQuery("#slideshow_height").val(short_code['slideshow_height']);
if (short_code['enable_slideshow_autoplay'] == 1) {
jQuery("#slideshow_autoplay_yes").attr('checked', 'checked');
}
else {
jQuery("#slideshow_autoplay_no").attr('checked', 'checked');
}
if (short_code['enable_slideshow_shuffle'] == 1) {
jQuery("#slideshow_shuffle_yes").attr('checked', 'checked');
}
else {
jQuery("#slideshow_shuffle_no").attr('checked', 'checked');
}
if (short_code['enable_slideshow_ctrl'] == 1) {
jQuery("#slideshow_ctrl_yes").attr('checked', 'checked');
}
else {
jQuery("#slideshow_ctrl_no").attr('checked', 'checked');
}
if (short_code['enable_slideshow_filmstrip'] == 1) {
jQuery("#slideshow_filmstrip_yes").attr('checked', 'checked');
jQuery("#slideshow_filmstrip_height").val(short_code['slideshow_filmstrip_height']);
bwg_enable_disable('', 'tr_slideshow_filmstrip_height', 'slideshow_filmstrip_yes');
}
else {
jQuery("#slideshow_filmstrip_no").attr('checked', 'checked');
}
if (short_code['slideshow_enable_title'] == 1) {
jQuery("#slideshow_title_yes").attr('checked', 'checked');
jQuery("#slideshow_title_" + short_code['slideshow_title_position']).attr('checked', 'checked');
bwg_enable_disable('', 'tr_slideshow_title_position', 'slideshow_title_yes');
}
else {
jQuery("#slideshow_title_no").attr('checked', 'checked');
}
if (short_code['slideshow_enable_description'] == 1) {
jQuery("#slideshow_description_yes").attr('checked', 'checked');
jQuery("#slideshow_description_" + short_code['slideshow_description_position']).attr('checked', 'checked');
bwg_enable_disable('', 'tr_slideshow_description_position', 'slideshow_description_yes');
}
else {
jQuery("#slideshow_description_no").attr('checked', 'checked');
}
if (short_code['enable_slideshow_music'] == 1) {
jQuery("#slideshow_music_yes").attr('checked', 'checked');
jQuery("#slideshow_music_url").val(short_code['slideshow_music_url']);
bwg_enable_disable('', 'tr_slideshow_music_url', 'slideshow_music_yes');
}
else {
jQuery("#slideshow_music_no").attr('checked', 'checked');
}
break;
}
case 'image_browser': {
jQuery("select[id=gallery] option[value='" + short_code['gallery_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
jQuery("#image_browser_width").val(short_code['image_browser_width']);
if (short_code['image_browser_title_enable'] == 1) {
jQuery("#image_browser_title_yes").attr('checked', 'checked');
}
else {
jQuery("#image_browser_title_no").attr('checked', 'checked');
}
if (short_code['image_browser_description_enable'] == 1) {
jQuery("#image_browser_description_yes").attr('checked', 'checked');
}
else {
jQuery("#image_browser_description_no").attr('checked', 'checked');
}
break;
}
case 'album_compact_preview': {
jQuery("select[id=album] option[value='" + short_code['album_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
jQuery("#compuct_album_column_number").val(short_code['compuct_album_column_number']);
jQuery("#compuct_albums_per_page").val(short_code['compuct_albums_per_page']);
jQuery("#compuct_album_title_" + short_code['compuct_album_title']).attr('checked', 'checked');
jQuery("#compuct_album_thumb_width").val(short_code['compuct_album_thumb_width']);
jQuery("#compuct_album_thumb_height").val(short_code['compuct_album_thumb_height']);
jQuery("#compuct_album_image_column_number").val(short_code['compuct_album_image_column_number']);
jQuery("#compuct_album_images_per_page").val(short_code['compuct_album_images_per_page']);
jQuery("#compuct_album_image_title_" + short_code['compuct_album_image_title']).attr('checked', 'checked');
jQuery("#compuct_album_image_thumb_width").val(short_code['compuct_album_image_thumb_width']);
jQuery("#compuct_album_image_thumb_height").val(short_code['compuct_album_image_thumb_height']);
if (short_code['compuct_album_enable_page'] == 1) {
jQuery("#compuct_album_page_yes").attr('checked', 'checked');
}
else {
jQuery("#compuct_album_page_no").attr('checked', 'checked');
}
if (short_code['compuct_album_view_type'] == 'thumbnail') {
jQuery("#compuct_album_view_type_1").attr('checked', 'checked');
}
else if (short_code['compuct_album_view_type'] == 'masonry'){
jQuery("#compuct_album_view_type_0").attr('checked', 'checked');
}
else{
jQuery("#compuct_album_view_type_2").attr('checked', 'checked');
}
if (short_code['compuct_album_mosaic_hor_ver'] == "vertical") {
jQuery("#compuct_album_mosaic_ver").attr('checked', 'checked');
}
else {
jQuery("#compuct_album_mosaic_hor").attr('checked', 'checked');
}
if (short_code['compuct_album_resizable_mosaic'] == 1) {
jQuery("#compuct_album_resizable_mosaic_1").attr('checked', 'checked');
}
else {
jQuery("#compuct_album_resizable_mosaic_0").attr('checked', 'checked');
}
jQuery("#compuct_album_mosaic_total_width").val(short_code['compuct_album_mosaic_total_width']);
break;
}
case 'album_extended_preview': {
jQuery("select[id=album] option[value='" + short_code['album_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
jQuery("#extended_albums_per_page").val(short_code['extended_albums_per_page']);
jQuery("#extended_album_height").val(short_code['extended_album_height']);
if (short_code['extended_album_description_enable'] == 1) {
jQuery("#extended_album_description_yes").attr('checked', 'checked');
}
else {
jQuery("#extended_album_description_no").attr('checked', 'checked');
}
jQuery("#extended_album_thumb_width").val(short_code['extended_album_thumb_width']);
jQuery("#extended_album_thumb_height").val(short_code['extended_album_thumb_height']);
jQuery("#extended_album_image_column_number").val(short_code['extended_album_image_column_number']);
jQuery("#extended_album_images_per_page").val(short_code['extended_album_images_per_page']);
jQuery("#extended_album_image_title_" + short_code['extended_album_image_title']).attr('checked', 'checked');
jQuery("#extended_album_image_thumb_width").val(short_code['extended_album_image_thumb_width']);
jQuery("#extended_album_image_thumb_height").val(short_code['extended_album_image_thumb_height']);
if (short_code['extended_album_enable_page'] == 1) {
jQuery("#extended_album_page_yes").attr('checked', 'checked');
}
else {
jQuery("#extended_album_page_no").attr('checked', 'checked');
}
if (short_code['extended_album_view_type'] == 'thumbnail') {
jQuery("#extended_album_view_type_1").attr('checked', 'checked');
}
else if(short_code['extended_album_view_type'] == 'masonry'){
jQuery("#extended_album_view_type_0").attr('checked', 'checked');
}
else{
jQuery("#extended_album_view_type_2").attr('checked', 'checked');
}
if (short_code['extended_album_mosaic_hor_ver'] == "vertical") {
jQuery("#extended_album_mosaic_ver").attr('checked', 'checked');
}
else {
jQuery("#extended_album_mosaic_hor").attr('checked', 'checked');
}
if (short_code['extended_album_resizable_mosaic'] == 1) {
jQuery("#extended_album_resizable_mosaic_1").attr('checked', 'checked');
}
else {
jQuery("#extended_album_resizable_mosaic_0").attr('checked', 'checked');
}
jQuery("#extended_album_mosaic_total_width").val(short_code['extended_album_mosaic_total_width']);
break;
}
case 'album_masonry_preview': {
jQuery("select[id=album] option[value='" + short_code['album_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
jQuery("#masonry_album_column_number").val(short_code['masonry_album_column_number']);
jQuery("#masonry_albums_per_page").val(short_code['masonry_albums_per_page']);
jQuery("#masonry_album_title_" + short_code['masonry_album_title']).attr('checked', 'checked');
jQuery("#masonry_album_thumb_width").val(short_code['masonry_album_thumb_width']);
jQuery("#masonry_album_thumb_height").val(short_code['masonry_album_thumb_height']);
jQuery("#masonry_album_image_column_number").val(short_code['masonry_album_image_column_number']);
jQuery("#masonry_album_images_per_page").val(short_code['masonry_album_images_per_page']);
jQuery("#masonry_album_image_title_" + short_code['masonry_album_image_title']).attr('checked', 'checked');
jQuery("#masonry_album_image_thumb_width").val(short_code['masonry_album_image_thumb_width']);
jQuery("#masonry_album_image_thumb_height").val(short_code['masonry_album_image_thumb_height']);
if (short_code['masonry_album_enable_page'] == 1) {
jQuery("#masonry_album_page_yes").attr('checked', 'checked');
}
else {
jQuery("#masonry_album_page_no").attr('checked', 'checked');
}
break;
}
case 'blog_style': {
jQuery("select[id=gallery] option[value='" + short_code['gallery_id'] + "']").attr('selected', 'selected');
jQuery("select[id=sort_by] option[value='" + short_code['sort_by'] + "']").attr('selected', 'selected');
if (short_code['order_by'] == 'asc') {
jQuery("#order_by_1").attr('checked', 'checked');
}
else {
jQuery("#order_by_0").attr('checked', 'checked');
}
if (short_code['show_search_box'] == 1) {
jQuery("#show_search_box_1").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', '');
}
else {
jQuery("#show_search_box_0").attr('checked', 'checked');
jQuery("#tr_search_box_width").css('display', 'none');
}
if (short_code['show_sort_images'] == 1) {
jQuery("#show_sort_images_1").attr('checked', 'checked');
}
else {
jQuery("#show_sort_images_0").attr('checked', 'checked');
}
if (short_code['search_box_width']) {
jQuery("#search_box_width").val(short_code['search_box_width']);
}
jQuery("#blog_style_width").val(short_code['blog_style_width']);
if (short_code['blog_style_title_enable'] == 1) {
jQuery("#blog_style_title_yes").attr('checked', 'checked');
}
else {
jQuery("#blog_style_title_no").attr('checked', 'checked');
}
jQuery("#blog_style_images_per_page").val(short_code['blog_style_images_per_page']);
if (short_code['blog_style_enable_page'] == 1) {
jQuery("#blog_style_page_yes").attr('checked', 'checked');
}
else {
jQuery("#blog_style_page_yes").attr('checked', 'checked');
}
break;
}
}
// Lightbox.
if (short_code['gallery_type'] != 'slideshow') {
jQuery("#popup_width").val(short_code['popup_width']);
jQuery("#popup_height").val(short_code['popup_height']);
jQuery("select[id=popup_effect] option[value='" + short_code['popup_effect'] + "']").attr('selected', 'selected');
jQuery("#popup_interval").val(short_code['popup_interval']);
if (short_code['popup_fullscreen'] == 1) {
jQuery("#popup_fullscreen_1").attr('checked', 'checked');
jQuery("#tr_popup_width_height").css('display', 'none');
}
else {
jQuery("#popup_fullscreen_0").attr('checked', 'checked');
jQuery("#tr_popup_width_height").css('display', '');
}
if (short_code['popup_autoplay'] == 1) {
jQuery("#popup_autoplay_1").attr('checked', 'checked');
}
else {
jQuery("#popup_autoplay_0").attr('checked', 'checked');
}
if (short_code['popup_enable_filmstrip'] == 1) {
jQuery("#popup_filmstrip_yes").attr('checked', 'checked');
jQuery("#popup_filmstrip_height").val(short_code['popup_filmstrip_height']);
bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_filmstrip_yes');
}
else {
jQuery("#popup_filmstrip_no").attr('checked', 'checked');
}
if (short_code['popup_enable_ctrl_btn'] == 1) {
jQuery("#popup_ctrl_btn_yes").attr('checked', 'checked');
bwg_enable_disable('', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_yes');
if (short_code['popup_enable_fullscreen'] == 1) {
jQuery("#popup_fullscreen_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_fullscreen_no").attr('checked', 'checked');
}
if (short_code['popup_enable_info'] == 1 || !short_code['popup_enable_info']) {
jQuery("#popup_info_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_info_no").attr('checked', 'checked');
}
if (short_code['popup_info_full_width'] == 1) {
jQuery("#popup_info_full_width_1").attr('checked', 'checked');
}
else {
jQuery("#popup_info_full_width_0").attr('checked', 'checked');
}
if (short_code['popup_info_always_show'] == 1 && short_code['popup_info_always_show']) {
jQuery("#popup_info_always_show_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_info_always_show_no").attr('checked', 'checked');
}
if (short_code['popup_enable_rate'] == 1 && short_code['popup_enable_rate']) {
jQuery("#popup_rate_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_rate_no").attr('checked', 'checked');
}
if (short_code['popup_enable_comment'] == 1) {
jQuery("#popup_comment_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_comment_no").attr('checked', 'checked');
}
if (short_code['popup_hit_counter'] == 1 && short_code['popup_hit_counter']) {
jQuery("#popup_hit_counter_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_hit_counter_no").attr('checked', 'checked');
}
if (short_code['popup_enable_facebook'] == 1) {
jQuery("#popup_facebook_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_facebook_no").attr('checked', 'checked');
}
if (short_code['popup_enable_twitter'] == 1) {
jQuery("#popup_twitter_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_twitter_no").attr('checked', 'checked');
}
if (short_code['popup_enable_google'] == 1) {
jQuery("#popup_google_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_google_no").attr('checked', 'checked');
}
if (short_code['popup_enable_pinterest'] == 1) {
jQuery("#popup_pinterest_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_pinterest_no").attr('checked', 'checked');
}
if (short_code['popup_enable_tumblr'] == 1) {
jQuery("#popup_tumblr_yes").attr('checked', 'checked');
}
else {
jQuery("#popup_tumblr_no").attr('checked', 'checked');
}
}
else {
jQuery("#popup_ctrl_btn_no").attr('checked', 'checked');
}
if (short_code['thumb_click_action'] != 'redirect_to_url' || !short_code['thumb_click_action']) {
jQuery("#thumb_click_action_1").attr('checked', 'checked');
}
else {
jQuery("#thumb_click_action_2").attr('checked', 'checked');
}
if (short_code['thumb_link_target'] == 1 || !short_code['thumb_link_target']) {
jQuery("#thumb_link_target_yes").attr('checked', 'checked');
}
else {
jQuery("#thumb_link_target_no").attr('checked', 'checked');
}
bwg_thumb_click_action();
}
// Watermark.
if (short_code['watermark_type'] == 'text') {
jQuery("#watermark_type_text").attr('checked', 'checked');
jQuery("#watermark_link").val(decodeURIComponent(short_code['watermark_link']));
jQuery("#watermark_text").val(short_code['watermark_text']);
jQuery("#watermark_font_size").val(short_code['watermark_font_size']);
jQuery("select[id=watermark_font] option[value='" + short_code['watermark_font'] + "']").attr('selected', 'selected');
jQuery("#watermark_color").val(short_code['watermark_color']);
jQuery("#watermark_opacity").val(short_code['watermark_opacity']);
jQuery("#watermark_type_text").attr('checked', 'checked');
jQuery("#watermark_" + short_code['watermark_position']).attr('checked', 'checked');
}
else if (short_code['watermark_type'] == 'image') {
jQuery("#watermark_type_image").attr('checked', 'checked');
jQuery("#watermark_link").val(decodeURIComponent(short_code['watermark_link']));
jQuery("#watermark_url").val(short_code['watermark_url']);
jQuery("#watermark_width").val(short_code['watermark_width']);
jQuery("#watermark_height").val(short_code['watermark_height']);
jQuery("#watermark_opacity").val(short_code['watermark_opacity']);
jQuery("#watermark_type_image").attr('checked', 'checked');
jQuery("#watermark_" + short_code['watermark_position']).attr('checked', 'checked');
}
else {
jQuery("#watermark_type_none").attr('checked', 'checked');
}
bwg_watermark('watermark_type_' + short_code['watermark_type']);
bwg_gallery_type(short_code['gallery_type']);
}
}
// Get shortcodes attributes.
function get_params(module_name) {
var selected_text = jQuery("#bwg_shortcode").val();
var module_start_index = selected_text.indexOf("{" + module_name);
var module_end_index = selected_text.indexOf("}", module_start_index);
var module_str = "";
if ((module_start_index >= 0) && (module_end_index >= 0)) {
module_str = selected_text.substring(module_start_index + 1, module_end_index);
}
else {
return false;
}
var params_str = module_str.substring(module_str.indexOf(" ") + 2);
var key_values = params_str.split(' ');
var short_code_attr = new Array();
for (var key in key_values) {
var short_code_index = key_values[key].split('=')[0];
var short_code_value = key_values[key].split('=')[1];
short_code_value = short_code_value.replace(/\"/g, '');
short_code_attr[short_code_index] = short_code_value;
}
return short_code_attr;
}
function get_short_params(tagtext) {
var params_str = tagtext.substring(tagtext.indexOf(" ") + 1);
var key_values = params_str.split(' ');
var short_code_attr = new Array();
for (var key in key_values) {
var short_code_index = key_values[key].split('=')[0];
var short_code_value = key_values[key].split('=')[1];
short_code_value = short_code_value.replace(/\"/g, '');
short_code_attr[short_code_index] = short_code_value;
}
return short_code_attr;
}
function bwg_insert_shortcode(content) {
var gallery_type = jQuery("input[name=gallery_type]:checked").val();
var theme = jQuery("#theme").val();
var title = "";
var short_code = '{Loadgallery_wd';
var tagtext = 'gallery_type=' + gallery_type + '**PARAM**theme_id=' + theme + '';
switch (gallery_type) {
case 'thumbnails': {
tagtext += '**PARAM**gallery_id='+ jQuery("#gallery").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**image_column_number='+ jQuery("#image_column_number").val() + '';
tagtext += '**PARAM**images_per_page='+ jQuery("#images_per_page").val() + '';
tagtext += '**PARAM**image_title='+ jQuery("input[name=image_title]:checked").val() + '';
tagtext += '**PARAM**image_enable_page='+ jQuery("input[name=image_enable_page]:checked").val() + '';
tagtext += '**PARAM**thumb_width='+ jQuery("#thumb_width").val() + '';
tagtext += '**PARAM**thumb_height='+ jQuery("#thumb_height").val() + '';
break;
}
case 'thumbnails_masonry': {
tagtext += '**PARAM**gallery_id='+ jQuery("#gallery").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**masonry_hor_ver='+ jQuery("input[name=masonry_hor_ver]:checked").val() + '';
tagtext += '**PARAM**image_column_number='+ jQuery("#image_column_number").val() + '';
tagtext += '**PARAM**images_per_page='+ jQuery("#images_per_page").val() + '';
tagtext += '**PARAM**image_enable_page='+ jQuery("input[name=image_enable_page]:checked").val() + '';
tagtext += '**PARAM**thumb_width='+ jQuery("#thumb_width").val() + '';
tagtext += '**PARAM**thumb_height='+ jQuery("#thumb_height").val() + '';
break;
}
case 'thumbnails_mosaic': {
tagtext += '**PARAM**gallery_id='+ jQuery("#gallery").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**mosaic_hor_ver='+ jQuery("input[name=mosaic_hor_ver]:checked").val() + '';
tagtext += '**PARAM**resizable_mosaic='+ jQuery("input[name=resizable_mosaic]:checked").val() + '';
tagtext += '**PARAM**mosaic_total_width='+ jQuery("#mosaic_total_width").val() + '';
tagtext += '**PARAM**image_title='+ jQuery("input[name=image_title]:checked").val() + '';
tagtext += '**PARAM**images_per_page='+ jQuery("#images_per_page").val() + '';
tagtext += '**PARAM**image_enable_page='+ jQuery("input[name=image_enable_page]:checked").val() + '';
tagtext += '**PARAM**thumb_width='+ jQuery("#thumb_width").val() + '';
tagtext += '**PARAM**thumb_height='+ jQuery("#thumb_height").val() + '';
break;
}
case 'slideshow': {
tagtext += '**PARAM**gallery_id='+ jQuery("#gallery").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**slideshow_effect='+ jQuery("#slideshow_effect").val() + '';
tagtext += '**PARAM**slideshow_interval='+ jQuery("#slideshow_interval").val() + '';
tagtext += '**PARAM**slideshow_width='+ jQuery("#slideshow_width").val() + '';
tagtext += '**PARAM**slideshow_height='+ jQuery("#slideshow_height").val() + '';
tagtext += '**PARAM**enable_slideshow_autoplay='+ jQuery("input[name=enable_slideshow_autoplay]:checked").val() + '';
tagtext += '**PARAM**enable_slideshow_shuffle='+ jQuery("input[name=enable_slideshow_shuffle]:checked").val() + '';
tagtext += '**PARAM**enable_slideshow_ctrl='+ jQuery("input[name=enable_slideshow_ctrl]:checked").val() + '';
tagtext += '**PARAM**enable_slideshow_filmstrip='+ jQuery("input[name=enable_slideshow_filmstrip]:checked").val() + '';
tagtext += '**PARAM**slideshow_filmstrip_height='+ jQuery("#slideshow_filmstrip_height").val() + '';
tagtext += '**PARAM**slideshow_enable_title='+ jQuery("input[name=slideshow_enable_title]:checked").val() + '';
tagtext += '**PARAM**slideshow_title_position='+ jQuery("input[name=slideshow_title_position]:checked").val() + '';
tagtext += '**PARAM**slideshow_title_full_width='+ jQuery("input[name=slideshow_title_full_width]:checked").val() + '';
tagtext += '**PARAM**slideshow_enable_description='+ jQuery("input[name=slideshow_enable_description]:checked").val() + '';
tagtext += '**PARAM**slideshow_description_position='+ jQuery("input[name=slideshow_description_position]:checked").val() + '';
tagtext += '**PARAM**enable_slideshow_music='+ jQuery("input[name=enable_slideshow_music]:checked").val() + '';
tagtext += '**PARAM**slideshow_music_url='+ jQuery("#slideshow_music_url").val() + '';
break;
}
case 'image_browser': {
tagtext += '**PARAM**gallery_id='+ jQuery("#gallery").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**image_browser_width='+ jQuery("#image_browser_width").val() + '';
tagtext += '**PARAM**image_browser_title_enable='+ jQuery("input[name=image_browser_title_enable]:checked").val() + '';
tagtext += '**PARAM**image_browser_description_enable='+ jQuery("input[name=image_browser_description_enable]:checked").val() + '';
break;
}
case 'album_compact_preview': {
tagtext += '**PARAM**album_id='+ jQuery("#album").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**compuct_album_column_number='+ jQuery("#compuct_album_column_number").val() + '';
tagtext += '**PARAM**compuct_albums_per_page='+ jQuery("#compuct_albums_per_page").val() + '';
tagtext += '**PARAM**compuct_album_title='+ jQuery("input[name=compuct_album_title]:checked").val() + '';
tagtext += '**PARAM**compuct_album_view_type='+ jQuery("input[name=compuct_album_view_type]:checked").val() + '';
tagtext += '**PARAM**compuct_album_mosaic_hor_ver='+ jQuery("input[name=compuct_album_mosaic_hor_ver]:checked").val() + '';
tagtext += '**PARAM**compuct_album_resizable_mosaic='+ jQuery("input[name=compuct_album_resizable_mosaic]:checked").val() + '';
tagtext += '**PARAM**compuct_album_mosaic_total_width='+ jQuery("#compuct_album_mosaic_total_width").val() + '';
tagtext += '**PARAM**compuct_album_thumb_width='+ jQuery("#compuct_album_thumb_width").val() + '';
tagtext += '**PARAM**compuct_album_thumb_height='+ jQuery("#compuct_album_thumb_height").val() + '';
tagtext += '**PARAM**compuct_album_image_column_number='+ jQuery("#compuct_album_image_column_number").val() + '';
tagtext += '**PARAM**compuct_album_images_per_page='+ jQuery("#compuct_album_images_per_page").val() + '';
tagtext += '**PARAM**compuct_album_image_title='+ jQuery("input[name=compuct_album_image_title]:checked").val() + '';
tagtext += '**PARAM**compuct_album_image_thumb_width='+ jQuery("#compuct_album_image_thumb_width").val() + '';
tagtext += '**PARAM**compuct_album_image_thumb_height='+ jQuery("#compuct_album_image_thumb_height").val() + '';
tagtext += '**PARAM**compuct_album_enable_page='+ jQuery("input[name=compuct_album_enable_page]:checked").val() + '';
break;
}
case 'album_extended_preview': {
tagtext += '**PARAM**album_id='+ jQuery("#album").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**extended_albums_per_page='+ jQuery("#extended_albums_per_page").val() + '';
tagtext += '**PARAM**extended_album_height='+ jQuery("#extended_album_height").val() + '';
tagtext += '**PARAM**extended_album_description_enable='+ jQuery("input[name=extended_album_description_enable]:checked").val() + '';
tagtext += '**PARAM**extended_album_view_type='+ jQuery("input[name=extended_album_view_type]:checked").val() + '';
tagtext += '**PARAM**extended_album_mosaic_hor_ver='+ jQuery("input[name=extended_album_mosaic_hor_ver]:checked").val() + '';
tagtext += '**PARAM**extended_album_resizable_mosaic='+ jQuery("input[name=extended_album_resizable_mosaic]:checked").val() + '';
tagtext += '**PARAM**extended_album_mosaic_total_width='+ jQuery("#extended_album_mosaic_total_width").val() + '';
tagtext += '**PARAM**extended_album_thumb_width='+ jQuery("#extended_album_thumb_width").val() + '';
tagtext += '**PARAM**extended_album_thumb_height='+ jQuery("#extended_album_thumb_height").val() + '';
tagtext += '**PARAM**extended_album_image_column_number='+ jQuery("#extended_album_image_column_number").val() + '';
tagtext += '**PARAM**extended_album_images_per_page='+ jQuery("#extended_album_images_per_page").val() + '';
tagtext += '**PARAM**extended_album_image_title='+ jQuery("input[name=extended_album_image_title]:checked").val() + '';
tagtext += '**PARAM**extended_album_image_thumb_width='+ jQuery("#extended_album_image_thumb_width").val() + '';
tagtext += '**PARAM**extended_album_image_thumb_height='+ jQuery("#extended_album_image_thumb_height").val() + '';
tagtext += '**PARAM**extended_album_enable_page='+ jQuery("input[name=extended_album_enable_page]:checked").val() + '';
break;
}
case 'album_masonry_preview' : {
tagtext += '**PARAM**album_id='+ jQuery("#album").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**masonry_album_column_number='+ jQuery("#masonry_album_column_number").val() + '';
tagtext += '**PARAM**masonry_albums_per_page='+ jQuery("#masonry_albums_per_page").val() + '';
tagtext += '**PARAM**masonry_album_title='+ jQuery("input[name=masonry_album_title]:checked").val() + '';
tagtext += '**PARAM**masonry_album_thumb_width='+ jQuery("#masonry_album_thumb_width").val() + '';
tagtext += '**PARAM**masonry_album_thumb_height='+ jQuery("#masonry_album_thumb_height").val() + '';
tagtext += '**PARAM**masonry_album_image_column_number='+ jQuery("#masonry_album_image_column_number").val() + '';
tagtext += '**PARAM**masonry_album_images_per_page='+ jQuery("#masonry_album_images_per_page").val() + '';
tagtext += '**PARAM**masonry_album_image_title='+ jQuery("input[name=masonry_album_image_title]:checked").val() + '';
tagtext += '**PARAM**masonry_album_image_thumb_width='+ jQuery("#masonry_album_image_thumb_width").val() + '';
tagtext += '**PARAM**masonry_album_image_thumb_height='+ jQuery("#masonry_album_image_thumb_height").val() + '';
tagtext += '**PARAM**masonry_album_enable_page='+ jQuery("input[name=masonry_album_enable_page]:checked").val() + '';
break;
}
case 'blog_style': {
tagtext += '**PARAM**gallery_id='+ jQuery("#gallery").val() + '';
tagtext += '**PARAM**sort_by='+ jQuery("#sort_by").val() + '';
tagtext += '**PARAM**order_by='+ jQuery("input[name=order_by]:checked").val() + '';
tagtext += '**PARAM**show_search_box='+ jQuery("input[name=show_search_box]:checked").val() + '';
tagtext += '**PARAM**show_sort_images='+ jQuery("input[name=show_sort_images]:checked").val() + '';
tagtext += '**PARAM**search_box_width='+ jQuery("#search_box_width").val() + '';
tagtext += '**PARAM**blog_style_width='+ jQuery("#blog_style_width").val() + '';
tagtext += '**PARAM**blog_style_title_enable='+ jQuery("input[name=blog_style_title_enable]:checked").val() + '';
tagtext += '**PARAM**blog_style_images_per_page='+ jQuery("#blog_style_images_per_page").val() + '';
tagtext += '**PARAM**blog_style_enable_page='+ jQuery("input[name=blog_style_enable_page]:checked").val() + '';
break;
}
}
// Lightbox paramteres.
if (gallery_type != 'slideshow') {
tagtext += '**PARAM**thumb_click_action='+ jQuery("input[name=thumb_click_action]:checked").val() + '';
tagtext += '**PARAM**thumb_link_target='+ jQuery("input[name=thumb_link_target]:checked").val() + '';
tagtext += '**PARAM**popup_fullscreen='+ jQuery("input[name=popup_fullscreen]:checked").val() + '';
tagtext += '**PARAM**popup_autoplay='+ jQuery("input[name=popup_autoplay]:checked").val() + '';
tagtext += '**PARAM**popup_width='+ jQuery("#popup_width").val() + '';
tagtext += '**PARAM**popup_height='+ jQuery("#popup_height").val() + '';
tagtext += '**PARAM**popup_effect='+ jQuery("#popup_effect").val() + '';
tagtext += '**PARAM**popup_interval='+ jQuery("#popup_interval").val() + '';
tagtext += '**PARAM**popup_enable_filmstrip='+ jQuery("input[name=popup_enable_filmstrip]:checked").val() + '';
tagtext += '**PARAM**popup_filmstrip_height='+ jQuery("#popup_filmstrip_height").val() + '';
tagtext += '**PARAM**popup_enable_ctrl_btn='+ jQuery("input[name=popup_enable_ctrl_btn]:checked").val() + '';
tagtext += '**PARAM**popup_enable_fullscreen='+ jQuery("input[name=popup_enable_fullscreen]:checked").val() + '';
tagtext += '**PARAM**popup_enable_info='+ jQuery("input[name=popup_enable_info]:checked").val() + '';
tagtext += '**PARAM**popup_info_always_show='+ jQuery("input[name=popup_info_always_show]:checked").val() + '';
tagtext += '**PARAM**popup_info_full_width='+ jQuery("input[name=popup_info_full_width]:checked").val() + '';
tagtext += '**PARAM**popup_enable_rate='+ jQuery("input[name=popup_enable_rate]:checked").val() + '';
tagtext += '**PARAM**popup_enable_comment='+ jQuery("input[name=popup_enable_comment]:checked").val() + '';
tagtext += '**PARAM**popup_hit_counter='+ jQuery("input[name=popup_hit_counter]:checked").val() + '';
tagtext += '**PARAM**popup_enable_facebook='+ jQuery("input[name=popup_enable_facebook]:checked").val() + '';
tagtext += '**PARAM**popup_enable_twitter='+ jQuery("input[name=popup_enable_twitter]:checked").val() + '';
tagtext += '**PARAM**popup_enable_google='+ jQuery("input[name=popup_enable_google]:checked").val() + '';
tagtext += '**PARAM**popup_enable_pinterest='+ jQuery("input[name=popup_enable_pinterest]:checked").val() + '';
tagtext += '**PARAM**popup_enable_tumblr='+ jQuery("input[name=popup_enable_tumblr]:checked").val() + '';
}
// Watermark parameters.
tagtext += '**PARAM**watermark_type='+ jQuery("input[name=watermark_type]:checked").val() + '';
tagtext += '**PARAM**watermark_link='+ encodeURIComponent(jQuery("#watermark_link").val()) + '';
if (jQuery("input[name=watermark_type]:checked").val() == 'text') {
tagtext += '**PARAM**watermark_text='+ jQuery("#watermark_text").val() + '';
tagtext += '**PARAM**watermark_font_size='+ jQuery("#watermark_font_size").val() + '';
tagtext += '**PARAM**watermark_font='+ jQuery("#watermark_font").val() + '';
tagtext += '**PARAM**watermark_color='+ jQuery("#watermark_color").val() + '';
tagtext += '**PARAM**watermark_opacity='+ jQuery("#watermark_opacity").val() + '';
tagtext += '**PARAM**watermark_position='+ jQuery("input[name=watermark_position]:checked").val() + '';
}
else if (jQuery("input[name=watermark_type]:checked").val() == 'image') {
tagtext += '**PARAM**watermark_url='+ jQuery("#watermark_url").val() + '';
tagtext += '**PARAM**watermark_width='+ jQuery("#watermark_width").val() + '';
tagtext += '**PARAM**watermark_height='+ jQuery("#watermark_height").val() + '';
tagtext += '**PARAM**watermark_opacity='+ jQuery("#watermark_opacity").val() + '';
tagtext += '**PARAM**watermark_position='+ jQuery("input[name=watermark_position]:checked").val() + '';
}
short_code += tagtext + '}';
short_code = short_code.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function(d, c) {
return "<img src='<?php echo WD_BWG_URL; ?>/images/bwg_shortcode.png' class='bwg_shortcode mceItem' title='Best_Wordpress_Gallery" + tagtext + "' />";
});
jQuery("#bwg_shortcode").val(tagtext);
}
jQuery("#item-form :input").change(function() {bwg_insert_shortcode('<?php echo $value; ?>');})
jQuery('.gallery_type').each(function(){jQuery(this).click(function(){bwg_insert_shortcode('<?php echo $value; ?>')})})
<?php if(isset($params['gallery_type'])){ ?>
bwg_gallery_type('<?php echo $params['gallery_type'] ?>')
<?php } ?>
jQuery('#display_panel').parent().addClass('ctrl')
</script>
<?php
$content=ob_get_contents();
ob_end_clean();
return $content;
}
}
?>