Vous êtes sur la page 1sur 118

t, 'trx_blogger', $atts, $content);

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr_atts( arr$link) . '"' . (!empty($target) ? '
target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------
// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
vt, 'trx_blogger', $atts, $content);
}
function in_shortcode_blogger($from_blogger = false) {
if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');
/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------
// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => " "right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}
function in_shortcode_blogger($from_blogger = false) {
if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => " "right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');
/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------
// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => " "right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => " "right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------
add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}
function in_shortcode_blogger($from_blogger = false) {
if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------
// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => " "right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}
$output = '<div class="sc_button sc_button_style_' . $style . '
sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');
/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => ". '<a href="' . (empty($link) ? '#' : $link) . '"' . (!
empty($target) ? ' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' .
$rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------
// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------
// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');
/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------
add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr_atts( arr$link) . '"' . (!empty($target) ? '
target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
vt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------
add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------
add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atvts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');
/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : t, 'trx_blogger', $atts,
$content);
}

funugue a, in sit arcu augue, sit lectus, natoque montes odio, enim. Nec purus,
cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse cum magna.
[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcodet, 'trx_blogger', $atts, $content);
}
function in_shortcode_blogger($from_blogger = false) {
if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($attst, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------
// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');
//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}
// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------ction in_shortcode_blogger($from_blogger = false) {
if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}

// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid a------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arrt, 'trx_blogger', $atts, $content);
}

function in_shortcode_blogger($from_blogger = false) {


if (!$from_blogger) return false;
global $THEMEREX_sc_blogger_busy;
return $THEMEREX_sc_blogger_busy;
}
// ---------------------------------- [/trx_blogger]
---------------------------------------

// ---------------------------------- [trx_button]
---------------------------------------

add_shortcode('trx_button', 'sc_button');

/*
[trx_button id="unique_id" type="square|round" fullsize="0|1" style="global|light|
dark" size="mini|medium|big|huge|banner" icon="icon-name" link='#' target='']Button
caption[/trx_button]
*/
function sc_button($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"type" => "square",
"style" => "global",
"size" => "medium",
"fullsize" => "no",
"icon" => "",
"color" => "",
"link" => "",
"target" => "",
"align" => "",
"rel" => "",
"popup" => "no",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left);

// magnific & pretty


themerex_enqueue_script( 'magnific', themerex_get_file_url('/js/magnific-
popup/jquery.magnific-popup.min.js'), array('jquery'), null, true );
// Load PrettyPhoto if it selected in Theme Options
if (get_theme_option('popup_engine')=='pretty') {
themerex_enqueue_style( 'prettyphoto-style',
themerex_get_file_url('/js/prettyphoto/css/prettyPhoto.css'), array(), null );
themerex_enqueue_script( 'prettyphoto',
themerex_get_file_url('/js/prettyphoto/jquery.prettyPhoto.min.js'),
array('jquery'), 'no-compose', true );
}

$output = '<div class="sc_button sc_button_style_' . $style . '


sc_button_size_' . $size . ($align && $align!='none' ? ' align'.$align : '') . (!
empty($class) ? ' '.$class : '')
. ' ' . $type . 'Button' . (sc_param_is_on($fullsize) ? ' fullSize' : '') . ' ' .
$style . ' ' . $size . ($icon!='' ? ' ico' : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '') . '>'
. '<a href="' . (empty($link) ? '#' : $link) . '"' . (!empty($target) ?
' target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"title" => "",
"link" => "",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
$title = $title=='' ? $link : $title;
$content = do_shortcode($content);
if (themerex_substr($content, 0, 2)!='<p') $content = '<p>' . $content .
'</p>';
$output = '<div' . ($id ? ' id="' . $id . '"' : '') . ' class="sc_chat' . (!
empty($class) ? ' '.$class : '') . '"' . ($s ? ' style="'.$s.'"' : '') . '>'
. $content
. ($title == '' ? '' : ('<p class="sc_quote_title">' . ($link!='' ? '<a
href="'.$link.'">' : '') . $title . ($link!='' ? '</a>' : '') . '</p>'))
.'</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_chat', $atts,
$content);
}
// ---------------------------------- [/trx_chat]
---------------------------------------

// ---------------------------------- [trx_columns]
---------------------------------------

add_shortcode('trx_columns', 'sc_columns');

/*
[trx_columns id="unique_id" count="number"]
[trx_column_item id="unique_id" span="2 - number_columns"]Et adipiscing
integer, scelerisque pid, augue mus vel tincidunt porta, odio arcu vut natoque
dolor ut, enim etiam vut augue. Ac augue amet quis integer ut dictumst? Elit, augue
vut egestas! Tristique phasellus cursus egestas a nec a! Sociis et? Augue velit
natoque, amet, augue. Vel eu diam, facilisis arcu.[/trx_column_item]
[trx_column_item]A pulvinar ut, parturient enim porta ut sed, mus amet nunc,
in. Magna eros hac montes, et velit. Odio aliquam phasellus enim platea amet.
Turpis dictumst ultrices, rhoncus aenean pulvinar? Mus sed rhoncus et cras egestas,
non etiam a? Montes? Ac aliquam in nec nisi amet eros! Facilisis! Scelerisque in.
[/trx_column_item]
[trx_column_item]Duis sociis, elit odio dapibus nec, dignissim purus est
magna integer eu porta sagittis ut, pid rhoncus facilisis porttitor porta, et, urna
parturient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim.
Nec purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse
cum magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr_atts( arr$link) . '"' . (!empty($target) ? '
target="' . $target . '"' : '') . (!empty($rel) ? ' rel="' . $rel . '"' : '')
. ($id ? ' id="' . $id . '"' : '')
. ' class="' . ($icon ? $icon : '') . (sc_param_is_on($popup) ? '
user-popup-link' : '') . '"'
. ($color !== '' ? ' style="background-color:' . $color . '; border-
color:'. $color .';"' : '')
. '>' . do_shortcode($content) . '</a>'
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_button',
$atts, $content);
}

// ---------------------------------- [/trx_button]
---------------------------------------

// ---------------------------------- [trx_chat]
---------------------------------------

add_shortcode('trx_chat', 'sc_chat');

/*
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
[trx_chat id="unique_id" link="url" title=""]Et adipiscing integer, scelerisque
pid, augue mus vel tincidunt porta[/trx_chat]
...
*/
function sc_chat($atts, $content=null){
urient mid augue a, in sit arcu augue, sit lectus, natoque montes odio, enim. Nec
purus, cras tincidunt rhoncus proin lacus porttitor rhoncus, vut enim habitasse cum
magna.[/trx_column_item]
[trx_column_item]Nec purus, cras tincidunt rhoncus proin lacus porttitor
rhoncus, vut enim habitasse cum magna. Duis sociis, elit odio dapibus nec,
dignissim purus est magna integer eu porta sagittis ut, pid rhoncus facilisis
porttitor porta, et, urna parturient mid augue a, in sit arcu augue, sit lectus,
natoque montes odio, enim.[/trx_column_item]
[/trx_columns]
*/
$THEMEREX_sc_columns_count = 0;
$THEMEREX_sc_columns_counter = 0;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
function sc_columns($atts, $content=null){
if (in_shortcode_blogger()) return '';
extract(shortcode_atts(array(
"id" => "",
"class" => "",
"count" => "2",
"width" => "",
"height" => "",
"top" => "",
"bottom" => "",
"left" => "",
"right" => ""
), $atts));
$s = getStyleString($top, $right, $bottom, $left, $width, $height);
global $THEMEREX_sc_columns_count, $THEMEREX_sc_columns_counter,
$THEMEREX_sc_columns_after_span2, $THEMEREX_sc_columns_after_span3,
$THEMEREX_sc_columns_after_span4;
$THEMEREX_sc_columns_counter = 1;
$THEMEREX_sc_columns_after_span2 = $THEMEREX_sc_columns_after_span3 =
$THEMEREX_sc_columns_after_span4 = false;
$THEMEREX_sc_columns_count = $count = max(1, min(5, (int) $count));
$output = '<div' . ($id ? ' id="' . $id . '"' : '')
. ' class="columnsWrap sc_columns sc_columns_count_' .
$count . (!empty($class) ? ' '.$class : '') . '"'
. ($s!='' ? ' style="'.$s.'"' : '').'>'
. do_shortcode($content)
. '</div>';
return apply_filters('themerex_shortcode_output', $output, 'trx_columns',
$atts, $content);
}

add_shortcode('trx_column_item', 'sc_column_item');

//[trx_column_item]
function sc_column_item($atts, $content=null) {
if (in_shortcode_blogger()) return '';
extract(shortcode_atts( arr