'', 'description' => 'Widgets in this area will be shown Pages Selected', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ); $wts_find = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_name LIKE '%-wts'", 0); $wts_page = implode(',',$wts_find); $blog_layout[] = (object) array('ID' => 0, 'post_title' => 'blog and single'); $wtsp = array('exclude' => $wts_page); $pages = get_pages($wtsp); $GLOBALS['pages'] = array_merge($blog_layout,$pages);//variable para carga los post de tipo pages applicable para layout $GLOBALS['layout_p']=array('active'=>false,"style"=>$GLOBALS['style_widgets_default']);//insersion de array por default $layout_info=get_option('themeshock_layout_options'); $slider_img_info=get_option('themeshock_slider_images'); $get_logo_info=get_option('themeshock_logo'); $sidebar_info=get_option('themeshock_sidebar'); $GLOBALS['responsive_mode'] = (isset($_GET['responsive']) || get_option('themeshock_enableResponsive') == 'true')?'true':'false'; $GLOBALS['logo_type']= get_option('themeshock_logo_type'); $GLOBALS['logo_text_options']= array( 'logo_text'=>stripslashes(get_option('themeshock_text_logo')), 'logo_text_font_size'=>get_option('themeshock_font_size_logo'), 'logo_effect'=>get_option('themeshock_text_logo_effect'), 'logo_font_family'=>get_option('themeshock_logo_font_family') ); //$GLOBALS['posts_layout']= get_option("themeshock_grid_post"); $GLOBALS['search_box'] = get_option('themeshock_show_search_box'); $GLOBALS['main_menu'] = get_option('themeshock_show_main_menu'); $GLOBALS['logo_info']=($get_logo_info)?maybe_unserialize($get_logo_info):update_logo_info(); $GLOBALS['slider_img_info']=($slider_img_info)?maybe_unserialize($slider_img_info):update_slider_info(); $GLOBALS['sidebar_info']=($sidebar_info)?maybe_unserialize($sidebar_info):update_sidebar(); $GLOBALS['layout_info']=($layout_info)?maybe_unserialize($layout_info):update_layout();//carga todas las posiciones de los layouts en caso que no cargue porblemente carga la primera vez; $GLOBALS['social_network']= array('facebook'=>'_face_follow','twitter'=>'_tweet_follow','rss'=>'_rss_feed','mail'=>'_mail','rss_mail'=>'_rss_mail','google'=>'_follow_google','linkedin'=>'_follow_linkedin','skype'=>'_skype');// social netowrk para el header; $GLOBALS['slider_type']=(isset($_GET['slider_type']))?$_GET['slider_type']:get_option('themeshock_slider_type');// tipo de slider $GLOBALS['layout']=(isset($_GET['layout']))?$_GET['layout']:'layout_1'; $GLOBALS['framework_tool']=(isset($_GET['framework_tool']))?$_GET['framework_tool']:get_option('themeshock_activate_framework_tool'); $GLOBALS['validate_sidebar_uri'] = ($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] == 'www.soizastudios.com/' || $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] == 'www.soizastudios.com/posts/' || substr_count($_SERVER['REQUEST_URI'],'wtgs=')==1)?'true':'false'; $GLOBALS['themeshock_imgpack']= get_option('themeshock_imgpack')?get_option('themeshock_imgpack'):1; function postype_options($postypeid){ $custom = get_post_custom($postypeid); $website_url = $custom["website_url"][0]; $frame_style = $custom["frame_style"][0]?$custom["frame_style"][0]:'shadow'; $caption_img = $custom["caption_img"][0]; $item_value = $custom["item_value"][0]; $currency_val = $custom["currency_val"][0]; $full_img = get_the_post_thumbnail($postypeid,'full'); $find_ini = 'src="'; $find_end = '"'; $pos_1 = strpos($full_img, $find_ini)+5; $part_1 = substr($full_img, $pos_1); $pos_2 = strpos($part_1, $find_end); $full = substr($part_1, 0, $pos_2); $GLOBALS['post_type_options'] = array('website_url'=>$website_url, 'frame_style'=>$frame_style, 'caption_img'=>$caption_img, 'full'=>$full, 'item_value'=>$item_value, 'currency_val'=> $currency_val); return $GLOBALS['post_type_options']; } //$link_cred = array('wp theme by soizastudios', 'wordpress theme by wp theme generator','created with wp theme generator', 'theme created wp theme generator','wp theme by wp theme generator','created with soizastudios','built with wp theme generator','created with wordpress theme generator','by wordpress theme generator','theme by wordpress theme generator','wp theme created with wp theme generator'); //$GLOBALS['wptg_credits'] = $link_cred[rand(0, 10)]; $link_credict_compl = array('wp theme by', 'wordpress theme by', 'created with', 'theme created', 'built with', 'by', 'theme by', 'wp theme created with'); $link_credict_name = array( array('soizastudios', 'theme generator', 'theme generator', 'wp theme generator', 'wp theme generator', 'wordpress theme generator'), array('soizastudios', 'wpthemeshock', 'themeshock', 'wordpress theme shock', 'wp theme shock', 'theme shock')); $rand_domain_shock = rand(0, 1); $GLOBALS['wptg_credits'] = ($rand_domain_shock == 0)? array('soizastudios.com', $link_credict_compl[rand(0, 7)].' '.$link_credict_name[$rand_domain_shock][rand(0, 5)]): array('soizastudios.com ', $link_credict_compl[rand(0, 7)].' '.$link_credict_name[$rand_domain_shock][rand(0, 5)]); // var_dump(substr_count($_SERVER['REQUEST_URI'],'wtgs=')); /* var_dump($_SERVER); exit;*/ ?>