: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
description: '<?php esc_html_e( 'Caption title goes here', $themename ); ?>',
name: '<?php esc_html_e( 'State', $themename ); ?>',
description: '<?php esc_html_e( 'Select between expanded and closed state', $themename ); ?>',
name: '<?php esc_html_e( 'Content', $themename ); ?>',
defaultvalue: '<?php esc_html_e( 'Content goes here', $themename ); ?>',
description: '<?php esc_html_e( 'Content text or html', $themename ); ?>',
defaultSettings['box'] = {
name: '<?php esc_html_e( 'Type', $themename ); ?>',
description: '<?php esc_html_e( 'Type of the box', $themename ); ?>',
options: 'info|warning|download|bio|shadow'
name: '<?php esc_html_e( 'Content', $themename ); ?>',
defaultvalue: '<?php esc_html_e( 'Content goes here', $themename ); ?>',
description: '<?php esc_html_e( 'Content text or html', $themename ); ?>',
defaultSettings['button'] = {
name: '<?php esc_html_e( 'Link', $themename ); ?>',
description: '<?php esc_html_e( 'URL', $themename ); ?>',
name: '<?php esc_html_e( 'Type', $themename ); ?>',
description: '<?php esc_html_e( 'Choose button type', $themename ); ?>',
options: 'small|big|icon'
name: '<?php esc_html_e( 'Color', $themename ); ?>',
description: '<?php esc_html_e( 'Choose button color', $themename ); ?>',
options: 'blue|lightblue|teal|silver|black|pink|purple|orange|green|red'
name: '<?php esc_html_e( 'Content', $themename ); ?>',
defaultvalue: '<?php esc_html_e( 'Link text', $themename ); ?>',
description: '<?php esc_html_e( 'Content text or html', $themename ); ?>',
name: '<?php esc_html_e( 'Icon', $themename ); ?>',
defaultvalue: 'download',
description: '<?php esc_html_e( 'Used for icon button type', $themename ); ?>',
options: 'download|search|refresh|question|people|warning|mail|heart|paper|notice|stats|rss'
name: '<?php esc_html_e( 'Open link in new window', $themename ); ?>',
description: '<?php esc_html_e( 'Select yes if the link should be opened in a new window', $themename ); ?>',
defaultSettings['tabs'] = {
name: '<?php esc_html_e( 'Slider Type', $themename ); ?>',
description: '<?php esc_html_e( 'Select Slider Type here', $themename ); ?>',
options: 'top tabs|left tabs|simple|images'
name: '<?php esc_html_e( 'Effect', $themename ); ?>',
description: '<?php esc_html_e( 'Select Animation Effect', $themename ); ?>',
name: '<?php esc_html_e( 'Auto', $themename ); ?>',
description: '<?php esc_html_e( 'Choose yes if you want for automatic slider animation', $themename ); ?>',
name: '<?php esc_html_e( 'Auto Speed', $themename ); ?>',
description: '<?php esc_html_e( 'Automattic slider speed (works only if Auto is set to yes)', $themename ); ?>',
name: '<?php esc_html_e( 'Tab Text', $themename ); ?>',
name: '<?php esc_html_e( 'Tab Content', $themename ); ?>',
defaultvalue: '<?php esc_html_e( 'Content goes here', $themename ); ?>',
description: '<?php esc_html_e( 'Paste image url here, if you chose "images" slider type', $themename ); ?>',
defaultSettings['author'] = {
name: '<?php esc_html_e( 'Image Url', $themename ); ?>',
description: '<?php esc_html_e( 'Author Image URL', $themename ); ?>',
name: '<?php esc_html_e( 'Use resizing', $themename ); ?>',
name: '<?php esc_html_e( 'Content', $themename ); ?>',
defaultvalue: '<?php esc_html_e( 'Content goes here', $themename ); ?>',
function CustomButtonClick(tag){
for (var index2 in defaultSettings[index]) {
if (defaultSettings[index][index2]['clone'] === 'cloned')
outputOptions += '<tr class="cloned">\n';
else if (index === 'button' && index2 === 'icon')
outputOptions += '<tr class="hidden">\n';
outputOptions += '<tr>\n';
outputOptions += '<th><label for="et-' + index2 + '">'+ defaultSettings[index][index2]['name'] +'</label></th>\n';
if (defaultSettings[index][index2]['type'] === 'select') {
var optionsArray = defaultSettings[index][index2]['options'].split('|');
outputOptions += '\n<select name="et-'+index2+'" id="et-'+index2+'">\n';
for (var index3 in optionsArray) {
selected = (optionsArray[index3] === defaultSettings[index][index2]['defaultvalue']) ? ' selected="selected"' : '';
outputOptions += '<option value="'+optionsArray[index3]+'"'+ selected +'>'+optionsArray[index3]+'</option>\n';
outputOptions += '</select>\n';
if (defaultSettings[index][index2]['type'] === 'text') {
if (defaultSettings[index][index2]['clone'] === 'cloned') cloned = "[]";
outputOptions += '\n<input type="text" name="et-'+index2+cloned+'" id="et-'+index2+'" value="'+defaultSettings[index][index2]['defaultvalue']+'" />\n';
if (defaultSettings[index][index2]['type'] === 'textarea') {
if (defaultSettings[index][index2]['clone'] === 'cloned') cloned = "[]";
outputOptions += '<textarea name="et-'+index2+cloned+'" id="et-'+index2+'" cols="40" rows="10">'+defaultSettings[index][index2]['defaultvalue']+'</textarea>';
outputOptions += '\n<br/><small>'+ defaultSettings[index][index2]['description'] +'</small>';
outputOptions += '\n</td>';
var width = jQuery(window).width(),
tbHeight = jQuery(window).height(),
tbWidth = ( 720 < width ) ? 720 : width;
tbHeight = tbHeight - 84;
var tbOptions = "<div id='et_shortcodes_div'><form id='et_shortcodes'><table id='shortcodes_table' class='form-table et-"+ tag +"'>";
tbOptions += outputOptions;
tbOptions += '</table>\n<p class="submit">\n<input type="button" id="shortcodes-submit" class="button-primary" value="Ok" name="submit" /></p>\n</form></div>';
var form = jQuery(tbOptions);
var table = form.find('table');
form.appendTo('body').hide();
$moreTabs = jQuery('<p><a href="#" id="et_add_more_tabs"><?php esc_html_e( '+ Add One More Tab', $themename ); ?></a></p>').appendTo('form#et_shortcodes tbody');
$moreTabsLink = jQuery('a#et_add_more_tabs');
$moreTabsLink.bind('click',function() {
var clonedElements = jQuery('form#et_shortcodes .cloned');
newElements = clonedElements.slice(0,2).clone();
var cloneNumber = clonedElements.length,
labelNum = cloneNumber / 2;
newElements.each(function(index){
if ( index === 0 ) jQuery(this).css({'border-top':'1px solid #eeeeee'});
var label = jQuery(this).find('label').attr('for'),
newLabel = label + labelNum;
jQuery(this).find('label').attr('for',newLabel);
jQuery(this).find('input, textarea').attr('id',newLabel);
newElements.appendTo('form#et_shortcodes tbody');
$moreTabs.appendTo('form#et_shortcodes tbody');
form.find('#shortcodes-submit').click(function(){
for( var index in defaultSettings[tag]) {
var value = table.find('#et-' + index).val();
if (index === 'content') {
if (defaultSettings[tag][index]['clone'] !== undefined) {
if ( value !== defaultSettings[tag][index]['defaultvalue'] )
shortcode += ' ' + index + '="' + value + '"';
var $et_slidertype = jQuery('#et-slidertype').val();
shortcode += '] ' + "\n";
var $et_form = jQuery('form#et_shortcodes'),
$et_slidertype = jQuery('#et-slidertype').val();
if ($et_slidertype === 'images') {
dimensions = ' width="' + jQuery('#et-imagewidth').val() + '"'+' height="' + jQuery('#et-imageheight').val() + '"';
tabsOutput += '['+prefix+'tabcontainer]\n';
$et_form.find("input[name='et-tabtext[]']").each(function(){
tabsOutput += '['+prefix+'tabtext]'+jQuery(this).val()+'[/'+prefix+'tabtext]\n';
tabsOutput += '[/'+prefix+'tabcontainer]\n';
if ($et_slidertype === 'simple' || $et_slidertype === 'images') tabsOutput = '';
if ($et_slidertype != 'simple' && $et_slidertype != 'images') tabsOutput += '[tabcontent]\n';
$et_form.find("textarea[name='et-tabcontent[]']").each(function(){
tabsOutput += '['+prefix+'tab'+dimensions+']'+jQuery(this).val()+'[/'+prefix+'tab]'+"\n";
if ($et_slidertype != 'simple' && $et_slidertype != 'images') tabsOutput += '[/tabcontent]\n';
var $et_form = jQuery('form#et_shortcodes');
imageurl = $et_form.find('#et-imageurl').val();
timthumb = $et_form.find('#et-timthumb').val();
content = $et_form.find('#et-content').val();
shortcode = "[author]\n[author_image timthumb='"+timthumb+"']"+imageurl+"[/author_image]\n[author_info]"+content+"[/author_info]\n";
shortcode += '[/'+tag+'] ' + "\n";
tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode + ' ');
tb_show( 'ET ' + tag + ' Shortcode', '#TB_inline?width=' + tbWidth + '&height=' + tbHeight + '&inlineId=et_shortcodes_div' );
jQuery('#et_shortcodes_div').remove();
jQuery(document).ready(function(){
var buttonTypeField = jQuery('table.et-button select#et-type');
buttonTypeField.on('change',function() {
var optionsSmallButton = ['blue','lightblue','teal','silver','black','pink','purple','orange','green','red'],
optionsBigButton = ['blue','purple','orange','green','red','teal'],
if (jQuery(this).val() === 'big') {
for (var i = 0; i < optionsBigButton.length; i++) {
options += '<option value="' + optionsBigButton[i] + '">' + optionsBigButton[i] + '</option>';
if (!jQuery('select#et-icon').parents('tr.hidden').length) jQuery('select#et-icon').parents('tr').addClass('hidden');
if (jQuery('select#et-color').parents('tr.hidden').length) jQuery('select#et-color').parents('tr').removeClass('hidden');
if (jQuery(this).val() === 'small') {
for (var i = 0; i < optionsSmallButton.length; i++) {
options += '<option value="' + optionsSmallButton[i] + '">' + optionsSmallButton[i] + '</option>';
if (!jQuery('select#et-icon').parents('tr.hidden').length) jQuery('select#et-icon').parents('tr').addClass('hidden');
if (jQuery('select#et-color').parents('tr.hidden').length) jQuery('select#et-color').parents('tr').removeClass('hidden');
if (jQuery(this).val() === 'icon') {
if (jQuery('select#et-icon').parents('tr.hidden').length) jQuery('select#et-icon').parents('tr').removeClass('hidden');
if (!jQuery('select#et-color').parents('tr.hidden').length) jQuery('select#et-color').parents('tr').addClass('hidden');
if (options !== '') jQuery(this).parents('tbody').find('select#et-color').html(options);
var tabTypeField = jQuery('table.et-tabs select#et-slidertype');
tabTypeField.on('change',function() {
if (jQuery(this).val() === 'images') {
if (!jQuery('.et-tabs #et-imagewidth').length) {
$heightImage = jQuery('<tr><th><label for="et-imageheight"><?php esc_html_e( 'Image Height', $themename ); ?></label></th><td><input type="text" value="" id="et-imageheight" name="et-imageheight"><br><small></small></td></tr>').prependTo('form#et_shortcodes tbody');
$widthImage = jQuery('<tr><th><label for="et-imagewidth"><?php esc_html_e( 'Image Width', $themename ); ?></label></th><td><input type="text" value="" id="et-imagewidth" name="et-imagewidth"><br><small></small></td></tr>').prependTo('form#et_shortcodes tbody');
if (typeof $heightImage != 'undefined') $heightImage.show();
if (typeof $widthImage != 'undefined') $widthImage.show();
jQuery('input[name^="et-tabtext"]').parents('tr.cloned').hide(); //hide tab text
if (typeof $heightImage != 'undefined') $heightImage.hide();
if (typeof $widthImage != 'undefined') $widthImage.hide();
if(jQuery(this).val() != 'simple') jQuery('input[name^="et-tabtext"]').parents('tr.cloned:hidden').show(); //show tab text
else jQuery('input[name^="et-tabtext"]').parents('tr.cloned').hide();