本文整理汇总了PHP中avia_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP avia_get_option函数的具体用法?PHP avia_get_option怎么用?PHP avia_get_option使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了avia_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: avia_responsive_mega_menu
/**
*
* Constructor that sets the grid variables
*
*/
function avia_responsive_mega_menu($options = array())
{
$this->grid_array = array(1 => "three units", 2 => "six units", 3 => "nine units", 4 => "twelve units", 5 => "twelve units", 6 => "twelve units");
$this->top_menu = avia_get_option('header_position', 'header_top') == 'header_top' ? true : false;
if (isset($options['megamenu']) && $options['megamenu'] == "disabled") {
$this->mega_allowed = false;
}
}
示例2: portfolio_register
function portfolio_register()
{
global $avia_config;
$labels = array('name' => _x('Portfolio Items', 'post type general name', 'avia_framework'), 'singular_name' => _x('Portfolio Entry', 'post type singular name', 'avia_framework'), 'add_new' => _x('Add New', 'portfolio', 'avia_framework'), 'add_new_item' => __('Add New Portfolio Entry', 'avia_framework'), 'edit_item' => __('Edit Portfolio Entry', 'avia_framework'), 'new_item' => __('New Portfolio Entry', 'avia_framework'), 'view_item' => __('View Portfolio Entry', 'avia_framework'), 'search_items' => __('Search Portfolio Entries', 'avia_framework'), 'not_found' => __('No Portfolio Entries found', 'avia_framework'), 'not_found_in_trash' => __('No Portfolio Entries found in Trash', 'avia_framework'), 'parent_item_colon' => '');
$slugRule = avia_get_option('portfolio-slug');
$args = array('labels' => $labels, 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => $slugRule, 'with_front' => true), 'query_var' => true, 'show_in_nav_menus' => true, 'taxonomies' => array('post_tag'), 'supports' => array('title', 'thumbnail', 'excerpt', 'editor', 'comments'));
$avia_config['custom_post']['portfolio']['args'] = $args;
register_post_type('portfolio', $args);
register_taxonomy("portfolio_entries", array("portfolio"), array("hierarchical" => true, "label" => "Portfolio Categories", "singular_label" => "Portfolio Categories", "rewrite" => true, "query_var" => true));
}
示例3: shortcode_insert_button
/**
* Create the config array for the shortcode button
*/
function shortcode_insert_button()
{
$this->api_key = avia_get_option('mailchimp_api');
$this->config['name'] = __('Mailchimp Signup', 'avia_framework');
$this->config['tab'] = __('Content Elements', 'avia_framework');
$this->config['icon'] = AviaBuilder::$path['imagesURL'] . "sc-contact.png";
$this->config['order'] = 10;
$this->config['target'] = 'avia-target-insert';
$this->config['shortcode'] = 'av_mailchimp';
$this->config['shortcode_nested'] = array('av_mailchimp_field');
$this->config['tooltip'] = __('Creates a mailschimp signup form', 'avia_framework');
}
示例4: do_shortcode
<!-- ####### END FOOTER CONTAINER ####### -->
</div>
<?php
}
//endif nofooterwidgets
?>
<?php
//copyright
$copyright = do_shortcode(avia_get_option('copyright', "© " . __('Copyright', 'avia_framework') . " - <a href='" . home_url('/') . "'>" . get_bloginfo('name') . "</a>"));
// you can filter and remove the backlink with an add_filter function
// from your themes (or child themes) functions.php file if you dont want to edit this file
// you can also just keep that link. I really do appreciate it ;)
$kriesi_at_backlink = kriesi_backlink(get_option(THEMENAMECLEAN . "_initial_version"));
//you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
if ($copyright && strpos($copyright, '[nolink]') !== false) {
$kriesi_at_backlink = "";
$copyright = str_replace("[nolink]", "", $copyright);
}
if ($footer_widget_setting != 'nosocket') {
?>
<footer class='container_wrap socket_color' id='socket' <?php
avia_markup_helper(array('context' => 'footer'));
?>
示例5: avia_check_custom_widget
/**
* checks which page we are viewing and if the page got a custom widget
*/
function avia_check_custom_widget($area, $return = 'title')
{
$special_id_string = "";
if ($area == 'page') {
$id_array = avia_get_option('widget_pages');
} else {
if ($area == 'cat') {
$id_array = avia_get_option('widget_categories');
} else {
if ($area == 'dynamic_template') {
global $avia;
$dynamic_widgets = array();
foreach ($avia->options as $option_parent) {
foreach ($option_parent as $element_data) {
if (isset($element_data[0]) && is_array($element_data) && in_array('widget', $element_data[0])) {
for ($i = 1; $i <= $element_data[0]['dynamic_column_count']; $i++) {
if ($element_data[0]['dynamic_column_content_' . $i] == 'widget') {
$dynamic_widgets[] = $element_data[0]['dynamic_column_content_' . $i . '_widget'];
}
}
}
}
}
return $dynamic_widgets;
}
}
}
//first build the id string
if (is_array($id_array)) {
foreach ($id_array as $special) {
if (isset($special['widget_' . $area]) && $special['widget_' . $area] != "") {
$special_id_string .= $special['widget_' . $area] . ",";
}
}
}
//if we got a valid string remove the last comma
$special_id_string = trim($special_id_string, ',');
$clean_id_array = explode(',', $special_id_string);
//if we dont want the title just return the id array
if ($return != 'title') {
return $clean_id_array;
}
if (is_page($clean_id_array)) {
return get_the_title();
} else {
if (is_category($clean_id_array)) {
return single_cat_title("", false);
}
}
}
示例6: avia_woocommerce_cart_placement
function avia_woocommerce_cart_placement()
{
$position = avia_get_option('header_position', 'header_top') == "header_top" ? "ava_main_header" : "ava_inside_main_menu";
add_action($position, 'avia_woocommerce_cart_dropdown', 10);
}
示例7: avia_backend_admin_bar_menu
function avia_backend_admin_bar_menu()
{
if (!current_user_can('manage_options')) {
return;
}
global $avia, $wp_admin_bar;
$real_id = is_admin() ? false : avia_get_the_ID();
//home edit button for frontpage
if (is_front_page()) {
$front_id = avia_get_option('frontpage');
$parent = "";
if ($front_id && $real_id == $front_id) {
$menu = array('id' => 'edit', 'title' => __('Edit Frontpage', 'avia_framework'), 'href' => admin_url('post.php?post=' . $real_id . '&action=edit'), 'meta' => array('target' => 'blank'));
$wp_admin_bar->add_menu($menu);
}
}
//dynamic tempalte edit for current entry, in case a dynamic tempalte is applied
if ($real_id && ($template = avia_is_dynamic_template())) {
$safeSlug = avia_backend_safe_string($template);
$menu = array('id' => 'avia_edit', 'title' => __('Edit this entry', 'avia_framework'), 'href' => admin_url('post.php?post=' . $real_id . '&action=edit'), 'meta' => array('target' => 'blank'), 'parent' => 'edit');
$wp_admin_bar->add_menu($menu);
$menu = array('id' => 'avia_edit_dynamic', 'title' => __('Edit Dynamic Template of this entry', 'avia_framework'), 'href' => admin_url("admin.php?page=templates#goto_" . $safeSlug), 'meta' => array('target' => 'blank'), 'parent' => 'edit');
$wp_admin_bar->add_menu($menu);
}
// add all option pages
if (empty($avia->option_pages)) {
return;
}
$urlBase = admin_url('admin.php');
foreach ($avia->option_pages as $avia_page) {
$safeSlug = avia_backend_safe_string($avia_page['title']);
$menu = array('id' => $avia_page['slug'], 'title' => strip_tags($avia_page['title']), 'href' => $urlBase . "?page=" . $avia_page['slug'], 'meta' => array('target' => 'blank'));
if ($avia_page['slug'] != $avia_page['parent']) {
$menu['parent'] = $avia_page['parent'];
$menu['href'] = $urlBase . "?page=" . $avia_page['parent'] . "#goto_" . $avia_page['slug'];
}
if (is_admin()) {
$menu['meta'] = array('onclick' => 'self.location.replace(encodeURI("' . $menu['href'] . '")); window.location.reload(true); ');
}
$wp_admin_bar->add_menu($menu);
}
}
示例8: backend_html
public static function backend_html()
{
$username = trim(avia_get_option('updates_username'));
$apikey = trim(avia_get_option('updates_api_key'));
$output = "";
$version = self::get_version();
$themename = self::get_themename();
$parent_string = is_child_theme() ? "Parent Theme (" . ucfirst($themename) . ")" : "Theme";
silverwp_debug_var($themename);
silverwp_debug_var($apikey);
if (empty($username) || empty($apikey)) {
$output = "<div class='avia_backend_theme_updates'><h3>Theme Updates</h3>";
$output .= "Once you have entered and saved your Username and API Key WordPress will check for updates every 12 Hours and notify you here, if one is available <br/><br/> Your current " . $parent_string . " Version Number is <strong>" . $version . "</strong></div>";
echo $output;
} else {
if ($update = self::check_for_theme_update()) {
$target = network_admin_url('update-core.php?action=do-theme-upgrade');
$new = $update['new_version'];
//$themename = 'Platform'; //testing theme
ob_start();
wp_nonce_field('upgrade-core');
$nonce = ob_get_clean();
$output = "<div class='avia_backend_theme_updates'>";
$output .= "<h3>Update Available!</h3>";
$output .= "A new Version (" . $new . ") of your " . $parent_string . " is available! You are using Version " . $version . ". <br/>Do you want to update?<br/><br/>";
//$output .= "";
$output .= '<span class="avia_style_wrap"><a href="#" data-avia-popup="avia-tmpl-theme-update" class="avia_button">Update Now!</a></span></div>';
$form = '<form method="post" action="' . $target . '" name="upgrade-themes" class="upgrade">
<input type="hidden" name="checked[]" value="' . $themename . '" />
' . $nonce . '
<input type="hidden" name="_wp_http_referer" value="/wp-admin/update-core.php?action=do-theme-upgrade" />
<p>
<strong>Attention: Any modifications made to the <u>Theme Files</u> will be lost when updating. If you did change any files (Custom CSS rules or PHP file modifications for example) make sure to create a theme backup.</strong><br/><br/>Your backend settings, posts and pages wont be affected by the update.<br/>
</p>
<p class="avia-popup-button-container">
<input id="upgrade-themes" class="button" type="submit" value="Update Theme" name="upgrade"/>
<input id="upgrade-themes-close" class="button button-2nd script-close-avia-popup" type="submit" value="Don\'t Update" name="close"/>
</p>
</form>';
$output .= "<script type='text/html' id='avia-tmpl-theme-update'>\n{$form}\n</script>\n\n";
} else {
$target = network_admin_url('update-core.php?force-check=1');
$output = "<div class='avia_backend_theme_updates'><h3>Theme Updates</h3>";
$output .= "No Updates available. You are running the latest version! ({$version})";
$output .= "<br/><br/> <a href='{$target}'>Check Manually</a> </div>";
}
}
return $output;
}
示例9: avia_title
echo avia_title(array('title' => avia_which_archive()));
?>
<div class='container_wrap main_color <?php
avia_layout_class('main');
?>
'>
<div class='container template-blog '>
<div class='content <?php
avia_layout_class('content');
?>
units'>
<?php
if (avia_get_option('blog_style', 'multi-big') == 'blog-grid') {
global $posts;
$post_ids = array();
foreach ($posts as $post) {
$post_ids[] = $post->ID;
}
$atts = array('type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 3, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array('post__in' => $post_ids, 'post_type' => get_post_types()));
$blog = new avia_post_slider($atts);
$blog->query_entries();
echo "<div class='entry-content'>" . $blog->html() . "</div>";
} else {
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
$more = 0;
示例10: start_el
/**
* @see Walker::start_el()
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @param int $current_page Menu item ID.
* @param object $args
*/
function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0)
{
global $wp_query;
//set maxcolumns
if (!isset($args->max_columns)) {
$args->max_columns = 6;
}
$item = apply_filters('avf_menu_items', $item);
$item_output = $li_text_block_class = $column_class = "";
if ($depth === 0) {
$this->first_level_count++;
$this->mega_active = get_post_meta($item->ID, '_menu-item-avia-megamenu', true);
$style = get_post_meta($item->ID, '_menu-item-avia-style', true);
}
if ($depth === 1 && $this->mega_active && $this->mega_allowed) {
$this->columns++;
//check if we have more than $args['max_columns'] columns or if the user wants to start a new row
if ($this->columns > $args->max_columns || get_post_meta($item->ID, '_menu-item-avia-division', true) && $this->columns != 1) {
$this->columns = 1;
$this->rows++;
$output .= "\n</ul><ul class=\"sub-menu avia_mega_hr\">\n";
$output = str_replace("{last_item}", "avia_mega_menu_columns_last", $output);
} else {
$output = str_replace("{last_item}", "", $output);
}
$this->rowsCounter[$this->rows] = $this->columns;
if ($this->max_columns < $this->columns) {
$this->max_columns = $this->columns;
}
$title = apply_filters('the_title', $item->title, $item->ID);
if ($title != "–" && trim($title) != "-" && $title != '"-"') {
$heading_title = do_shortcode($title);
if (!empty($item->url) && $item->url != "#" && $item->url != 'http://') {
$heading_title = "<a href='" . $item->url . "'>{$title}</a>";
}
$item_output .= "<span class='mega_menu_title heading-color av-special-font'>" . $heading_title . "</span>";
}
$column_class = ' {current_row_' . $this->rows . '} {last_item}';
if ($this->columns == 1) {
$column_class .= " avia_mega_menu_columns_first";
}
} else {
if ($depth >= 2 && $this->mega_active && $this->mega_allowed && get_post_meta($item->ID, '_menu-item-avia-textarea', true)) {
$li_text_block_class = 'avia_mega_text_block ';
$item_output .= do_shortcode($item->post_content);
} else {
$attributes = !empty($item->attr_title) ? ' title="' . esc_attr($item->attr_title) . '"' : '';
$attributes .= !empty($item->target) ? ' target="' . esc_attr($item->target) . '"' : '';
$attributes .= !empty($item->xfn) ? ' rel="' . esc_attr($item->xfn) . '"' : '';
$attributes .= !empty($item->url) ? ' href="' . esc_attr($item->url) . '"' : '';
if ('inactive' != avia_get_option('markup')) {
$attributes .= ' itemprop="url"';
}
$item_output .= $args->before;
$item_output .= '<a' . $attributes . '><span class="avia-bullet"></span>';
$item_output .= $args->link_before . '<span class="avia-menu-text">' . do_shortcode(apply_filters('the_title', $item->title, $item->ID)) . "</span>" . $args->link_after;
if ($depth === 0) {
if (!$this->top_menu && !empty($item->description)) {
$item_output .= '<span class="avia-menu-subtext">' . do_shortcode($item->description) . "</span>";
}
$item_output .= '<span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span>';
}
$item_output .= '</a>';
$item_output .= $args->after;
}
}
$class_names = $value = '';
$indent = $depth ? str_repeat("\t", $depth) : '';
$classes = empty($item->classes) ? array() : (array) $item->classes;
if (isset($style)) {
$classes[] = $style;
}
if ($depth === 0 && ($key = array_search('current-menu-item', $classes))) {
if ($this->active_item) {
unset($classes[$key]);
} else {
$this->active_item = true;
}
}
$class_names = join(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item));
if ($depth === 0 && $this->mega_active && $this->mega_allowed) {
$class_names .= " menu-item-mega-parent ";
}
if ($depth === 0) {
$class_names .= " menu-item-top-level menu-item-top-level-" . $this->first_level_count;
}
//highlight correct blog page
if ($depth === 0 && $this->blog_id && $this->blog_id == $item->object_id && is_singular('post')) {
$class_names .= " current-menu-item";
}
$class_names = ' class="' . $li_text_block_class . esc_attr($class_names) . $column_class . '"';
//.........这里部分代码省略.........
示例11: avia_get_option
<?php
global $avia_config, $post_loop_count;
if (empty($post_loop_count)) {
$post_loop_count = 1;
}
$blog_style = !empty($avia_config['blog_style']) ? $avia_config['blog_style'] : avia_get_option('blog_style', 'multi-big');
if (is_single()) {
$blog_style = avia_get_option('single_post_style', 'single-big');
}
$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";
// check if we got posts to display:
if (have_posts()) {
while (have_posts()) {
the_post();
/*
* get the current post id, the current post class and current post format
*/
$current_post = array();
$current_post['post_loop_count'] = $post_loop_count;
$current_post['the_id'] = get_the_ID();
$current_post['parity'] = $post_loop_count % 2 ? 'odd' : 'even';
$current_post['last'] = count($wp_query->posts) == $post_loop_count ? " post-entry-last " : "";
$current_post['post_class'] = "post-entry-" . $current_post['the_id'] . " post-loop-" . $post_loop_count . " post-parity-" . $current_post['parity'] . $current_post['last'] . " " . $blog_style;
$current_post['post_format'] = get_post_format() ? get_post_format() : 'standard';
/*
* retrieve slider, title and content for this post,...
*/
$size = strpos($blog_style, 'big') ? strpos(avia_layout_class('main', false), 'sidebar') ? 'entry_with_sidebar' : 'entry_without_sidebar' : 'square';
if (!empty($avia_config['preview_mode']) && !empty($avia_config['image_size']) && $avia_config['preview_mode'] == 'custom') {
$size = $avia_config['image_size'];
示例12: foreach
break;
case '.socket_color':
$output .= "\n\n\t\t\thtml, #scroll-top-link{ background-color: {$bg}; }\n\t\t\t#scroll-top-link{ color: {$color}; border:1px solid {$border}; }\n\t\t\t\n\t\t\t.html_stretched #wrap_all{\n\t\t\tbackground-color:{$bg};\n\t\t\t}\n\t\t\t";
break;
}
//unset all vars with the help of variable vars :)
foreach ($colors as $key => $val) {
unset(${$key});
}
}
//filter to plug in, in case a plugin/extension/config file wants to make use of it
$output = apply_filters('avia_dynamic_css_output', $output, $color_set);
######################################################################
# DYNAMIC ICONFONT CHARACTERS
######################################################################
//forum topic icons
$output .= "\n.bbp-topics .bbp-body .bbp-topic-title:before{ " . av_icon_css_string('one_voice') . " }\n.bbp-topics .bbp-body .topic-voices-multi .bbp-topic-title:before { " . av_icon_css_string('multi_voice') . " }\n.bbp-topics .bbp-body .super-sticky .bbp-topic-title:before { " . av_icon_css_string('supersticky') . " }\n.bbp-topics .bbp-body .sticky .bbp-topic-title:before { " . av_icon_css_string('sticky') . " }\n.bbp-topics .bbp-body .status-closed .bbp-topic-title:before { " . av_icon_css_string('closed') . " }\n.bbp-topics .bbp-body .super-sticky.status-closed .bbp-topic-title:before{ " . av_icon_css_string('supersticky_closed') . " }\n.bbp-topics .bbp-body .sticky.status-closed .bbp-topic-title:before{ " . av_icon_css_string('sticky_closed') . " }\n";
//layerslider nav icons
$output .= "\n#top .avia-layerslider .ls-nav-prev:before{ " . av_icon_css_string('prev_big') . " }\n#top .avia-layerslider .ls-nav-next:before{ " . av_icon_css_string('next_big') . " }\n#top .avia-layerslider .ls-nav-start:before, #top .avia_playpause_icon.av-play:before{ " . av_icon_css_string('play') . " }\n#top .avia-layerslider .ls-nav-stop:before, #top .avia_playpause_icon.av-pause:before{ " . av_icon_css_string('pause') . " }\n";
//image hover overlay icons
$output .= "\n.image-overlay .image-overlay-inside:before{ " . av_icon_css_string('ov_image') . " }\n.image-overlay.overlay-type-extern .image-overlay-inside:before{ " . av_icon_css_string('ov_external') . " }\n.image-overlay.overlay-type-video .image-overlay-inside:before{ " . av_icon_css_string('ov_video') . " }\n";
//lightbox next/prev icons
$output .= "\ndiv.avia-popup button.mfp-arrow:before\t\t{ " . av_icon_css_string('next_big') . " }\ndiv.avia-popup button.mfp-arrow-left:before { " . av_icon_css_string('prev_big') . "}\n";
######################################################################
# OUTPUT THE DYNAMIC CSS RULES
######################################################################
//compress output
$output = preg_replace('/\\r|\\n|\\t/', '', $output);
//todo: if the style are generated for the wordpress header call the generating script, otherwise create a simple css file and link to that file
$avia_config['style'] = array(array('key' => 'direct_input', 'value' => $output), array('key' => 'direct_input', 'value' => ".html_header_transparency #top .avia-builder-el-0 .container, .html_header_transparency #top .avia-builder-el-0 .slideshow_inner_caption{padding-top:" . avia_get_header_scroll_offset() . "px;}"), array('elements' => 'h1, h2, h3, h4, h5, h6, #top .title_container .main-title, tr.pricing-row td, #top .portfolio-title, .callout .content-area, .avia-big-box .avia-innerbox, .av-special-font, .av-current-sort-title', 'key' => 'google_webfont', 'value' => avia_get_option('google_webfont')), array('elements' => 'body', 'key' => 'google_webfont', 'value' => avia_get_option('default_font')), array('key' => 'direct_input', 'value' => avia_get_option('quick_css')));
do_action('ava_generate_styles', $options, $color_set, $styles);
示例13: avia_social_media_icons
<div class='container'>
<?php
/*
* display the themes social media icons, defined in the wordpress backend
* the avia_social_media_icons function is located in includes/helper-social-media-php
*/
if (strpos($headerS, 'bottom_nav_header') === false) {
avia_social_media_icons($social_args);
}
//display the small submenu
echo "<div class='sub_menu'>";
$args = array('theme_location' => 'avia2', 'fallback_cb' => '', 'container' => '', 'echo' => false);
$nav = wp_nav_menu($args);
echo $nav;
$phone = avia_get_option('phone');
$phone_class = !empty($nav) ? "with_nav" : "";
if ($phone) {
echo "<div class='phone-info {$phone_class}'><span>{$phone}</span></div>";
}
/*
* Hook that can be used for plugins and theme extensions (currently: the wpml language selector)
*/
do_action('avia_meta_header');
echo "</div>";
?>
</div>
</div>
<?php
}
示例14: avia_layout_class
<main class='content <?php
avia_layout_class('content');
?>
units' <?php
avia_markup_helper(array('context' => 'content', 'post_type' => 'post'));
?>
>
<div class="category-term-description">
<?php
echo term_description();
?>
</div>
<?php
$avia_config['blog_style'] = apply_filters('avf_blog_style', avia_get_option('blog_style', 'multi-big'), 'archive');
if ($avia_config['blog_style'] == 'blog-grid') {
global $posts;
$post_ids = array();
foreach ($posts as $post) {
$post_ids[] = $post->ID;
}
if (!empty($post_ids)) {
$atts = array('type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 3, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array('post__in' => $post_ids, 'post_type' => get_post_types()));
$blog = new avia_post_slider($atts);
$blog->query_entries();
echo "<div class='entry-content-wrapper'>" . $blog->html() . "</div>";
} else {
get_template_part('includes/loop', 'index');
}
} else {
示例15: avia_get_option
<?php
global $avia_config, $post_loop_count;
if (empty($post_loop_count)) {
$post_loop_count = 1;
}
$blog_style = !empty($avia_config['blog_style']) ? $avia_config['blog_style'] : avia_get_option('blog_style', 'multi-big');
if (is_single()) {
$blog_style = avia_get_option('single_post_style', 'single-big');
}
$blog_global_style = avia_get_option('blog_global_style', '');
//alt: elegant-blog
$initial_id = avia_get_the_ID();
// check if we got posts to display:
if (have_posts()) {
while (have_posts()) {
the_post();
/*
* get the current post id, the current post class and current post format
*/
$url = "";
$current_post = array();
$current_post['post_loop_count'] = $post_loop_count;
$current_post['the_id'] = get_the_ID();
$current_post['parity'] = $post_loop_count % 2 ? 'odd' : 'even';
$current_post['last'] = count($wp_query->posts) == $post_loop_count ? " post-entry-last " : "";
$current_post['post_type'] = get_post_type($current_post['the_id']);
$current_post['post_class'] = "post-entry-" . $current_post['the_id'] . " post-loop-" . $post_loop_count . " post-parity-" . $current_post['parity'] . $current_post['last'] . " " . $blog_style;
$current_post['post_class'] .= $current_post['post_type'] == "post" ? '' : ' post';
$current_post['post_format'] = get_post_format() ? get_post_format() : 'standard';
$current_post['post_layout'] = avia_layout_class('main', false);