get_contents($wptg_file);
return $get_contents;
}
/* Esta validacion es para parsear el css y enviar por json a theme_generator.js */
if(isset($_GET["create_sessvar_ini"])){
//$file = file_get_contents(get_template_directory().'/framework-tool/current_layout/last_change.css', true);
$file = wtg_file_get_contents(get_template_directory().'/framework-tool/current_layout/last_change.css');
$file = str_replace('@charset "utf-8";'.PHP_EOL, NULL, $file);
$val_class = explode("}", $file);
foreach($val_class as $key){
$class_css = explode("{", $key);
$arr[] = trim(str_replace("\n", NULL, $class_css[0]), ' ');
$arr2[] = str_replace("\r\n", '', $class_css[1]);
$result = array_combine($arr, $arr2);
}
echo json_encode($result);
exit;
}
/* esta validacion es para hacer las opciones de personalize local */
if($GLOBALS['framework_tool'] === 'true' && is_user_logged_in()){
function wts_tool_panel($arg_framework_tool) {
include get_template_directory().'/framework-tool/current_layout/vars_layout.php';
switch ($arg_framework_tool){
case 'show-tool-panel':?>
Save current layout in your site.
Save Layout
Remember to clean cache in order to see your changes.
Shadows
Choose Area
Header
Slider
Content
Footer
Choose Area
";
}
/* elements for clients */
if ($GLOBALS['get_user_info']!==false){//users premium and register
$path_user_base='/user_elements/register/tmp_'.$GLOBALS['get_user_info']['tg_user_id'].'/shadows/';
$path_usr_preview=$_SERVER['DOCUMENT_ROOT'].$path_user_base;
$path_usr_url="http://".$_SERVER['HTTP_HOST'].$path_user_base;
if (is_dir($path_usr_preview)){
foreach(preg_grep("/thumb/",list_files_tool($path_usr_preview, 'png|jpg')) as $img_files){
$repeat_shadow = explode('-', $img_files);
$repeat_shadow = $repeat_shadow[1]?'repeat-x':'no-repeat';
$replace_x = array('_thumb', '-repeat');
$real_img_menu_bar = str_replace($replace_x, '', $img_files);
$size = getimagesize($path_usr_preview.$real_img_menu_bar);
echo " ";
}
}
}
if (isset($_COOKIE['path_free_wtg']) && $GLOBALS['get_user_info']===false){//users free
$path_user_base='/user_elements'.$_COOKIE['path_free_wtg'].'/shadows/';
$path_usr_preview=$_SERVER['DOCUMENT_ROOT'].$path_user_base;
$path_usr_url="http://".$_SERVER['HTTP_HOST'].$path_user_base;
if (is_dir($path_usr_preview)){
foreach(preg_grep("/thumb/",list_files_tool($path_usr_preview, 'png|jpg')) as $img_files){
$repeat_shadow = explode('-', $img_files);
$repeat_shadow = $repeat_shadow[1]?'repeat-x':'no-repeat';
$replace_x = array('_thumb', '-repeat');
$real_img_menu_bar = str_replace($replace_x, '', $img_files);
$size = getimagesize($path_usr_preview.$real_img_menu_bar);
echo " ";
}
}
}
?>
Color Combination
Invidual Color
Choose Area
Body
Wrapper
Content
Slider
Header and footer
‹ Choose Area
Heading
Font Family
Yanone Kaffeesatz
Wire One
Ubuntu
Rokkitt
Righteous
Raleway
Quattrocento Sans
PT Sans
Open Sans
Nixie One
News Cycle
Acme
Coustard
Alfa Slab One
Abel
Brawler
Droid Sans
Crushed
Cabin Condensed
Federo
Arimo
Contrail One
Anton
Days One
Droid Serif
Abril Fatface
Allan
Amatic SC
Anonymous Pro
Bangers
Baumans
Boogaloo
Bree Serif
Buda
Cuprum
Damion
Dorsa
Francois One
Gruppo
Just Another Hand
Jockey One
Maiden Orange
Lobster
Josefin Slab
Lobster Two
Marvel
Andika
Arial
Verdana
Tahoma
Trebuchet MS
Font Body
Font Family
Yanone Kaffeesatz
Wire One
Ubuntu
Rokkitt
Righteous
Raleway
Quattrocento Sans
PT Sans
Open Sans
Nixie One
News Cycle
Acme
Coustard
Alfa Slab One
Abel
Brawler
Droid Sans
Crushed
Cabin Condensed
Federo
Arimo
Contrail One
Anton
Days One
Droid Serif
Abril Fatface
Allan
Amatic SC
Anonymous Pro
Bangers
Baumans
Boogaloo
Bree Serif
Buda
Cuprum
Damion
Dorsa
Francois One
Gruppo
Just Another Hand
Jockey One
Maiden Orange
Lobster
Josefin Slab
Lobster Two
Marvel
Andika
Arial
Verdana
Tahoma
Trebuchet MS
x
Changes canĀ“t be saved, To save locally you have to prepare the permissions first, please change it here (you need to know your ftp credentials).
Main Menu
"shock_menu", "menu_class" => "nav")); ?>
';
}
break;
case 'clipart-top':
if($current_layout === 'layout_2' || $current_layout === 'layout_4' || $current_layout === 'layout_5' || $current_layout === 'layout_6' || $current_layout === 'layout_7'){
print '
';
}
break;
case 'layout-2':
if($current_layout === 'layout_2'){
print '';
}
break;
case 'end-layout-2':
if($current_layout === 'layout_2'){
print '
';
}
break;
/*case 'mainmenu-lay2':
if($current_layout === 'layout_2'){?>
Main Menu
"shock_menu", "menu_class" => "nav")); ?>
';
}
break;
case 'end-layout-3':
if($current_layout === 'layout_3'){
print '';
}
break;
case 'layout-4':
if($current_layout === 'layout_4'){
print '';
}
break;
case 'end-layout-4':
if($current_layout === 'layout_4'){
print '
';
}
break;
case 'layout-5':
if($current_layout === 'layout_5'){
print '';
}
break;
case 'end-layout-5':
if($current_layout === 'layout_5'){
print '
';
}
break;
case 'layout-6':
if($current_layout === 'layout_6'){
print '';
}
break;
case 'end-layout-6':
if($current_layout === 'layout_6'){
print '
';
}
break;
case 'layout-7':
if($current_layout === 'layout_7'){
print '';
}
break;
case 'end-layout-7':
if($current_layout === 'layout_7'){
print '
';
}
break;
}
}
}else{
function wts_tool_panel($arg_framework_tool) {
include get_template_directory().'/framework-tool/current_layout/vars_layout.php';
/*?>';
}
break;
case 'clipart-header':
if($current_layout === 'layout_1'){
print '
';
}
break;
case 'layout-2':
if($current_layout === 'layout_2'){
print '';
}
break;
case 'end-layout-2':
if($current_layout === 'layout_2'){
print '
';
}
break;
case 'mainmenu-lay2':
if($current_layout === 'layout_2'){
if($GLOBALS['main_menu'] == 'true'){?>
Main Menu
"shock_menu", "menu_class" => "nav")); ?>
Main Menu
"shock_menu", "menu_class" => "nav")); ?>
';
}
break;
case 'end-layout-3':
if($current_layout === 'layout_3'){
print '';
}
break;
case 'layout-4':
if($current_layout === 'layout_4'){
print '';
}
break;
case 'end-layout-4':
if($current_layout === 'layout_4'){
print '
';
}
break;
case 'layout-5':
if($current_layout === 'layout_5'){
print '';
}
break;
case 'end-layout-5':
if($current_layout === 'layout_5'){
print '
';
}
break;
case 'layout-6':
if($current_layout === 'layout_6'){
print '';
}
break;
case 'end-layout-6':
if($current_layout === 'layout_6'){
print '
';
}
break;
case 'layout-7':
if($current_layout === 'layout_7'){
print '';
}
break;
case 'end-layout-7':
if($current_layout === 'layout_7'){
print '
';
}
break;
}
}
}
?>