get($themeslug.'_single_sidebar');
}
elseif (is_archive()) {
$sidebar = $options->get($themeslug.'_archive_sidebar');
}
elseif (is_404()) {
$sidebar = $options->get($themeslug.'_404_sidebar');
}
elseif (is_search()) {
$sidebar = $options->get($themeslug.'_search_sidebar');
}
elseif (is_page()) {
$sidebar = get_post_meta($post->ID, 'page_sidebar' , true);
}
else {
$sidebar = $options->get($themeslug.'_blog_sidebar');
}
if ($sidebar == 'two-right' OR $sidebar == '3' ) {
echo '';
}
if ($sidebar == 'right-left' OR $sidebar == '2' ) {
echo '';
}
}
add_action( 'wp_head', 'response_content_Layout' );
/* Featured Image Alignment */
function featured_image_alignment() {
global $themename, $themeslug, $options;
if ($options->get($themeslug.'_featured_image_align') == "key3" ) {
echo '';
}
elseif ($options->get($themeslug.'_featured_image_align') == "key2" ) {
echo '';
}
else {
echo '';
}
}
add_action( 'wp_head', 'featured_image_alignment');
/* Custom CSS */
function custom_css() {
global $themename, $themeslug, $options;
$custom =$options->get($themeslug.'_css_options');
echo '' . "\n";
}
function custom_css_filter($_content) {
$_return = preg_replace ( '/@import.+;( |)|((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/))/i', '', $_content );
$_return = htmlspecialchars ( strip_tags($_return), ENT_NOQUOTES, 'UTF-8' );
return $_return;
}
add_action ( 'wp_head', 'custom_css' );
?>