wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
 * Display the admin field for the theme skins
 *
 * @return string
 */
Display the admin field for the theme skins
@return string
Display the admin field for the theme skins @return string
function themify_get_skins_admin(){
	$skins = themify_get_skins();
	$output = '';
	if( ! empty( $skins ) ) {
		$current=themify_get_skin();
		foreach( $skins as $id => $skin ) {
			$selected = $current === $id ? 'selected' : '';
			if( $id === 'default' &&(!$current || $current==='default')) {
				$selected = 'selected';
			}
			$output .= '
				<div class="skin-preview '. $selected .'" data-skin="'. $id .'">
				<a href="#"><img src="' . esc_url( $skin['screenshot'] ) . '" alt="' . esc_attr__( 'Skin', 'themify' ) . '" /></a>
				<br />' . $skin['name'];
			if(! empty( $skin['demo_uri'] ) ) {
				$output .= sprintf( ' <span class="view-demo"><a href="%s" target="_blank">%s</a></span>', $skin['demo_uri'], __( 'demo', 'themify' ) );
			}
			if( $skin['has_demo'] ) {
				$output .= '<div class="skin-demo-content" data-skin="' . esc_attr( $id ) . '">';
					$output .= __( 'Demo:', 'themify' );
					$output .= ' <a href="#" class="skin-demo-import">' . __( 'Import', 'themify' ) . '</a> <a href="#" class="skin-erase-demo">' . __( 'Erase', 'themify' ) . '</a>';
				$output .= '</div>';
				$required_plugins = $skin['required_plugins'];
				$output .= themify_required_plugins_modal( $required_plugins, $id );
			}
			$output .= '</div>';
		}
	}
	return $output;
}
function themify_get_skins_admin ( ) { $ skins = themify_get_skins ( ) ; $ output = '' ; if ( ! empty ( $ skins ) ) { $ current = themify_get_skin ( ) ; foreach ( $ skins as $ id => $ skin ) { $ selected = $ current === $ id ? 'selected' : '' ; if ( $ id === 'default' && ( ! $ current || $ current === 'default' ) ) { $ selected = 'selected' ; } $ output .= '
				<div class="skin-preview ' . $ selected . '" data-skin="' . $ id . '">
				<a href="#"><img src="' . esc_url ( $ skin [ 'screenshot' ] ) . '" alt="' . esc_attr__ ( 'Skin' , 'themify' ) . '" /></a>
				<br />' . $ skin [ 'name' ] ; if ( ! empty ( $ skin [ 'demo_uri' ] ) ) { $ output .= sprintf ( ' <span class="view-demo"><a href="%s" target="_blank">%s</a></span>' , $ skin [ 'demo_uri' ] , __ ( 'demo' , 'themify' ) ) ; } if ( $ skin [ 'has_demo' ] ) { $ output .= '<div class="skin-demo-content" data-skin="' . esc_attr ( $ id ) . '">' ; $ output .= __ ( 'Demo:' , 'themify' ) ; $ output .= ' <a href="#" class="skin-demo-import">' . __ ( 'Import' , 'themify' ) . '</a> <a href="#" class="skin-erase-demo">' . __ ( 'Erase' , 'themify' ) . '</a>' ; $ output .= '</div>' ; $ required_plugins = $ skin [ 'required_plugins' ] ; $ output .= themify_required_plugins_modal ( $ required_plugins , $ id ) ; } $ output .= '</div>' ; } } return $ output ; }
Display the admin field for the theme skins
 @return string
Display the admin field for the theme skins @return string