n/general.png) no-repeat top center; }"; echo "#vacation, #vacation p, #vacation li{ color: #323030; }"; echo "#vacation span, #vacation p span, #vacation li span{ color: #950707; }"; break; case 'christmas': echo "#vacation{ background: url(" . get_template_directory_uri() . "/images/vacation/christmas.png) no-repeat top center; }"; echo "#vacation, #vacation p, #vacation li{ color: #fff; }"; echo "#vacation span, #vacation p span, #vacation li span{ color: #fff; }"; break; case 'summer' : echo "#vacation{ background: url(" . get_template_directory_uri() . "/images/vacation/summer.png) no-repeat top center; }"; echo "#vacation, #vacation p, #vacation li{ color: #374e56; }"; echo "#vacation span, #vacation p span, #vacation li span{ color: #188eba; }"; break; case 'custom' : echo "#vacation{ background: url(" . yiw_get_option( 'in_vacation_bg' ) . ") no-repeat top center; }"; break; } } add_action( 'yiw_custom_styles', 'yiw_holiday' ); // Register slides texts to translation function wpml_slides_translation() { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider => $name ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $name . '_slides' ) ); if ( !empty( $slides ) ) { foreach( $slides as $k => $slide ) { if( isset( $slides[$k]['slide_title'] ) ) { $slides[$k]['slide_title'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_slide_title', $slide['slide_title'] ); } if( isset( $slides[$k]['tooltip_content'] ) ) { $slides[$k]['tooltip_content'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_tooltip_content', $slide['tooltip_content'] ); } if( isset( $slides[$k]['extra_tooltip_content'] ) ) { $slides[$k]['extra_tooltip_content'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_extra_tooltip_content', $slide['extra_tooltip_content'] ); } if( isset( $slides[$k]['image_url'] ) ) { $slides[$k]['image_url'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_image_url', $slide['image_url'] ); } if( isset( $slides[$k]['url_video'] ) ) { $slides[$k]['url_video'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_url_video', $slide['url_video'] ); } if( isset( $slides[$k]['extra_tooltip_image'] ) ) { $slides[$k]['extra_tooltip_image'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_extra_tooltip_image', $slide['extra_tooltip_image'] ); } if( isset( $slides[$k]['extra_tooltip_url'] ) ) { $slides[$k]['extra_tooltip_url'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_extra_tooltip_url', $slide['extra_tooltip_url'] ); } if( isset( $slides[$k]['extra_tooltip_x_pos'] ) ) { $slides[$k]['extra_tooltip_x_pos'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_extra_tooltip_x_pos', $slide['extra_tooltip_x_pos'] ); } if( isset( $slides[$k]['extra_tooltip_y_pos'] ) ) { $slides[$k]['extra_tooltip_y_pos'] = icl_register_string( 'yiw', $name . '_slide_' . $k . '_extra_tooltip_y_pos', $slide['extra_tooltip_y_pos'] ); } } } } } // Filter the slide title for the current language function wpml_slide_title( $slide_title ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['slide_title'] ) && $slide['slide_title'] == $slide_title ) { $slide_title = icl_t( 'yiw', $slider . '_slide_' . $k . '_slide_title', $slide['slide_title'] ); } } } return $slide_title; } // Filter the slide content for the current language function wpml_tooltip_content( $tooltip_content ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['tooltip_content'] ) && $slide['tooltip_content'] == $tooltip_content ) { $tooltip_content = icl_t( 'yiw', $slider . '_slide_' . $k . '_tooltip_content', $slide['tooltip_content'] ); } } } return $tooltip_content; } // Filter the slide image URL for the current language function wpml_image_url( $image_url ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['image_url'] ) && $slide['image_url'] == $image_url ) { $image_url = icl_t( 'yiw', $slider . '_slide_' . $k . '_image_url', $slide['image_url'] ); } } } return $image_url; } function wpml_extra_tooltip_content( $extra_tooltip_content ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['extra_tooltip_content'] ) && $slide['extra_tooltip_content'] == $extra_tooltip_content ) { $extra_tooltip_content = icl_t( 'yiw', $slider . '_slide_' . $k . '_extra_tooltip_content', $slide['extra_tooltip_content'] ); } } } return $extra_tooltip_content; } function wpml_url_video( $url_video ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['url_video'] ) && $slide['url_video'] == $url_video ) { $url_video = icl_t( 'yiw', $slider . '_slide_' . $k . '_url_video', $slide['url_video'] ); } } } return $url_video; } function wpml_extra_tooltip_image( $extra_tooltip_image ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['extra_tooltip_image'] ) && $slide['extra_tooltip_image'] == $extra_tooltip_image ) { $extra_tooltip_image = icl_t( 'yiw', $slider . '_slide_' . $k . '_extra_tooltip_image', $slide['extra_tooltip_image'] ); } } } return $extra_tooltip_image; } function wpml_extra_tooltip_url( $extra_tooltip_url ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['extra_tooltip_url'] ) && $slide['extra_tooltip_url'] == $extra_tooltip_url ) { $extra_tooltip_url = icl_t( 'yiw', $slider . '_slide_' . $k . '_extra_tooltip_url', $slide['extra_tooltip_url'] ); } } } return $extra_tooltip_url; } function wpml_extra_tooltip_x_pos( $extra_tooltip_x_pos ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['extra_tooltip_x_pos'] ) && $slide['extra_tooltip_x_pos'] == $extra_tooltip_x_pos ) { $extra_tooltip_x_pos = icl_t( 'yiw', $slider . '_slide_' . $k . '_extra_tooltip_x_pos', $slide['extra_tooltip_x_pos'] ); } } } return $extra_tooltip_x_pos; } function wpml_extra_tooltip_y_pos( $extra_tooltip_y_pos ) { $sliders = array( 'elegant', 'flash', 'rotating', 'thumbnails', 'nivo', 'cycle', 'unoslider' ); foreach( $sliders as $slider ) { $slides = maybe_unserialize( yiw_get_option( 'slider_' . $slider . '_slides' ) ); foreach( ( array ) $slides as $k => $slide ) { if ( isset( $slide['extra_tooltip_y_pos'] ) && $slide['extra_tooltip_url'] == $extra_tooltip_y_pos ) { $extra_tooltip_y_pos = icl_t( 'yiw', $slider . '_slide_' . $k . '_extra_tooltip_y_pos', $slide['extra_tooltip_y_pos'] ); } } } return $extra_tooltip_y_pos; } // WPML compability // Fire filters if WPML is activate and its functions exists if ( defined('ICL_SITEPRESS_VERSION') && function_exists( 'icl_register_string' ) && function_exists( 'icl_t' ) ) { add_action( 'admin_init', 'wpml_slides_translation' ); add_filter( 'yiw_slide_title', 'wpml_slide_title' ); add_filter( 'yiw_slide_subtitle', 'wpml_slide_title' ); add_filter( 'yiw_slide_content', 'wpml_tooltip_content' ); add_filter( 'yiw_slide_clean', 'wpml_tooltip_content' ); add_filter( 'yiw_slide_image', 'wpml_image_url' ); add_filter( 'yiw_slide_default', 'extra_tooltip_content' ); add_filter( 'yiw_slide_clean', 'extra_tooltip_content' ); add_filter( 'yiw_slide_default', 'url_video' ); add_filter( 'yiw_slide_default', 'extra_tooltip_image' ); add_filter( 'yiw_slide_default', 'extra_tooltip_url' ); add_filter( 'yiw_slide_default', 'extra_tooltip_x_pos' ); add_filter( 'yiw_slide_default', 'extra_tooltip_y_pos' ); }
Parse error: syntax error, unexpected '}' in /home/toto9715/public_html/tw/wp-content/themes/maya/inc/widgets/icon_text.php on line 8