settings;
if ( is_serialized( $allsettings ) ) {
$bdp_settings = unserialize( $allsettings );
}
$theme = apply_filters( 'bdp_filter_template', $bdp_settings['template_name'] );
$bdp_template_name_changed = get_option( 'bdp_template_name_changed', 1 );
if ( esc_attr( $bdp_template_name_changed ) == 1 ) {
if ( $theme == 'classical' ) {
$theme = 'nicy';
} elseif ( $theme == 'lightbreeze' ) {
$theme = 'sharpen';
} elseif ( $theme == 'spektrum' ) {
$theme = 'hub';
}
} else {
update_option( 'bdp_template_name_changed', 0 );
}
} elseif ( is_author() && in_array( 'author_template', $archive_list ) ) {
$author_settings = bdp_get_author_template_settings();
$allsettings = $author_settings->settings;
if ( is_serialized( $allsettings ) ) {
$bdp_settings = unserialize( $allsettings );
}
$theme = apply_filters( 'bdp_filter_template', $bdp_settings['template_name'] );
$bdp_template_name_changed = get_option( 'bdp_template_name_changed', 1 );
if ( esc_attr( $bdp_template_name_changed) == 1 ) {
if ( $theme == 'classical' ) {
$theme = 'nicy';
} elseif ( $theme == 'lightbreeze' ) {
$theme = 'sharpen';
} elseif ( $theme == 'spektrum' ) {
$theme = 'hub';
}
} else {
update_option( 'bdp_template_name_changed', 0 );
}
} elseif ( is_category() && in_array( 'category_template', $archive_list ) ) {
$categories = get_category( get_query_var( 'cat' ) );
$category_id = $categories->cat_ID;
$bdp_settings = bdp_get_category_template_settings( $category_id, $archive_list );
if ( $bdp_settings ) {
$theme = $bdp_settings['template_name'];
$bdp_template_name_changed = get_option( 'bdp_template_name_changed', 1 );
if ( esc_attr( $bdp_template_name_changed ) == 1 ) {
if ( $theme == 'classical' ) {
$theme = 'nicy';
} elseif ( $theme == 'lightbreeze' ) {
$theme = 'sharpen';
} elseif ( $theme == 'spektrum' ) {
$theme = 'hub';
}
} else {
update_option( 'bdp_template_name_changed', 0 );
}
}
} elseif ( is_tag() && in_array( 'tag_template', $archive_list ) ) {
$tag_id = get_query_var( 'tag_id' );
$bdp_settings = bdp_get_tag_template_settings( $tag_id, $archive_list );
if ( $bdp_settings ) {
$theme = $bdp_settings['template_name'];
$bdp_template_name_changed = get_option( 'bdp_template_name_changed', 1 );
if ( esc_attr( $bdp_template_name_changed ) == 1 ) {
if ( $theme == 'classical' ) {
$theme = 'nicy';
} elseif ( $theme == 'lightbreeze' ) {
$theme = 'sharpen';
} elseif ( $theme == 'spektrum' ) {
$theme = 'hub';
}
} else {
update_option( 'bdp_template_name_changed', 0 );
}
}
} elseif ( is_search() && in_array( 'search_template', $archive_list ) ) {
$search_settings = bdp_get_search_template_settings();
$allsettings = $search_settings->settings;
if ( is_serialized( $allsettings ) ) {
$bdp_settings = unserialize( $allsettings );
}
$theme = apply_filters( 'bdp_filter_template', $bdp_settings['template_name'] );
$bdp_template_name_changed = get_option( 'bdp_template_name_changed', 1 );
if ( esc_attr( $bdp_template_name_changed ) == 1 ) {
if ( $theme == 'classical' ) {
$theme = 'nicy';
} elseif ( $theme == 'lightbreeze' ) {
$theme = 'sharpen';
} elseif ( $theme == 'spektrum' ) {
$theme = 'hub';
}
} else {
update_option( 'bdp_template_name_changed', 0 );
}
}
if ( isset( $bdp_settings['bdp_blog_order_by'] ) ) {
$orderby = $bdp_settings['bdp_blog_order_by'];
}
if ( isset( $bdp_settings['firstpost_unique_design'] ) && $bdp_settings['firstpost_unique_design'] != '' ) {
$firstpost_unique_design = $bdp_settings['firstpost_unique_design'];
} else {
$firstpost_unique_design = 0;
}
$alter_class = '';
$prev_year = '';
$alter = 1;
$alter_val = null;
$main_container_class = ( isset( $bdp_settings['main_container_class'] ) && $bdp_settings['main_container_class'] != '' ) ? $bdp_settings['main_container_class'] : '';
if ( $theme == 'crayon_slider' || $theme == 'sunshiny_slider' || $theme == 'sallet_slider' ) {
$unique_id = mt_rand();
}
?>
';
}
if ( $theme == 'winter' ) {
echo '
';
}
if ( is_author() && in_array( 'author_template', $archive_list ) ) {
$display_author = isset( $bdp_settings['display_author_data'] ) ? $bdp_settings['display_author_data'] : 0;
$txtAuthorTitle = isset( $bdp_settings['txtAuthorTitle'] ) ? $bdp_settings['txtAuthorTitle'] : '[author]';
$display_author_biography = $bdp_settings['display_author_biography'];
if ( $display_author == 1 ) {
?>
';
} else {
echo '
';
}
} elseif ( isset( $bdp_settings['bdp_timeline_layout'] ) && $bdp_settings['bdp_timeline_layout'] == 'right_side' ) {
if ( isset( $bdp_settings['timeline_display_option'] ) && $bdp_settings['timeline_display_option'] != '' ) {
echo '
';
} else {
echo '
';
}
} else {
if ( $orderby == 'date' || $orderby == 'modified' ) {
echo '
';
} else {
echo '
';
}
}
}
if ( $theme == 'boxy' || $theme == 'brit_co' || $theme == 'glossary' || $theme == 'invert-grid' ) {
echo "
";
}
if ( $theme == 'media-grid' || $theme == 'chapter' ) {
$column_setting = ( isset( $bdp_settings['column_setting'] ) && $bdp_settings['column_setting'] != '' ) ? 'column_layout_' . $bdp_settings['column_setting'] : 'column_layout_2';
echo "
";
}
if ( $theme == 'glossary' || $theme == 'boxy' ) {
echo '
';
}
if ( $theme == 'boxy-clean' ) {
echo '
- ';
}
$slider_navigation = isset( $bdp_settings['select_slider_navigation'] ) ? $bdp_settings['select_slider_navigation'] : 'navigation1';
if ( $theme == 'crayon_slider' ) {
echo '';
}
?>