<?php
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
do_action( 'ava_before_footer' );
global $avia_config;
$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
//reset wordpress query in case we modified it
wp_reset_query();
//get footer display settings
$the_id = avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
$footer = get_post_meta( $the_id, 'footer', true );
$footer_options = avia_get_option( 'display_widgets_socket', 'all' );
//get link to previous and next post/portfolio entry
$avia_post_nav = avia_post_nav();
/**
* Reset individual page override to defaults if widget or page settings are different (user might have changed theme options)
* (if user wants a page as footer he must select this in main options - on individual page it's only possible to hide the page)
*/
if( false !== strpos( $footer_options, 'page' ) )
{
/**
* User selected a page as footer in main options
*/
if( ! in_array( $footer, array( 'page_in_footer_socket', 'page_in_footer', 'nofooterarea' ) ) )
{
$footer = '';
}
}
else
{
/**
* User selected a widget based footer in main options
*/
if( in_array( $footer, array( 'page_in_footer_socket', 'page_in_footer' ) ) )
{
$footer = '';
}
}
$footer_widget_setting = ! empty( $footer ) ? $footer : $footer_options;
/*
* Check if we should display a page content as footer
*/
if( ! $blank && in_array( $footer_widget_setting, array( 'page_in_footer_socket', 'page_in_footer' ) ) )
{
/**
* Allows 3rd parties to change page id's, e.g. translation plugins
*/
$post = AviaCustomPages()->get_custom_page_object( 'footer_page', '' );
if( ( $post instanceof WP_Post ) && ( $post->ID != $the_id ) )
{
/**
* Make sure that footerpage is set to fullwidth
*/
$old_avia_config = $avia_config;
$avia_config['layout']['current'] = array(
'content' => 'av-content-full alpha',
'sidebar' => 'hidden',
'meta' => '',
'entry' => '',
'main' => 'fullsize'
);
$builder_stat = ( 'active' == Avia_Builder()->get_alb_builder_status( $post->ID ) );
$avia_config['conditionals']['is_builder'] = $builder_stat;
$avia_config['conditionals']['is_builder_template'] = $builder_stat;
/**
* @used_by config-bbpress\config.php
* @since 4.5.6.1
* @param WP_Post $post
* @param int $the_id
*/
do_action( 'ava_before_page_in_footer_compile', $post, $the_id );
$content = Avia_Builder()->compile_post_content( $post );
$avia_config = $old_avia_config;
/* was removed in 4.2.7 before rollout - should not break the output - can be removed completly when no errors are reported !
* <div class='container_wrap footer_color footer-page-content' id='footer'>
*/
echo $content;
}
}
/**
* Check if we should display a footer
*/
if( ! $blank && $footer_widget_setting != 'nofooterarea' )
{
if( in_array( $footer_widget_setting, array( 'all', 'nosocket' ) ) )
{
//get columns
$columns = avia_get_option('footer_columns');
?>
<div class='container_wrap footer_color' id='footer'>
<div class='container'>
<?php
do_action('avia_before_footer_columns');
//create the footer columns by iterating
switch($columns)
{
case 1: $class = ''; break;
case 2: $class = 'av_one_half'; break;
case 3: $class = 'av_one_third'; break;
case 4: $class = 'av_one_fourth'; break;
case 5: $class = 'av_one_fifth'; break;
case 6: $class = 'av_one_sixth'; break;
default: $class = ''; break;
}
$firstCol = "first el_before_{$class}";
//display the footer widget that was defined at appearenace->widgets in the wordpress backend
//if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
for ($i = 1; $i <= $columns; $i++)
{
$class2 = ""; // initialized to avoid php notices
if($i != 1) $class2 = " el_after_{$class} el_before_{$class}";
echo "<div class='flex_column {$class} {$class2} {$firstCol}'>";
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column'.$i) ) : else : avia_dummy_widget($i); endif;
echo "</div>";
$firstCol = "";
}
do_action('avia_after_footer_columns');
?>
</div>
<!-- ####### END FOOTER CONTAINER ####### -->
</div>
<?php } //endif array( 'all', 'nosocket' ) ?>
<!-- custom footer -->
<div id="custom-footer">
<div class="first-row">
<div class="container-fluid">
<div class="row">
<div class="fr-element col-3 ">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(). '/images/express.png' ; ?>" alt="تحویل اکسپرس">
<p><span>تحویل اکسپرس</span></p>
</figure>
</div>
<div class="fr-element col-3">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(). '/images/backup.png' ; ?>" alt="پشتیبانی 24 ساعته">
<p><span>پشتیبانی و مشاوره رایگان</span></p>
</figure>
</div>
<div class="fr-element col-3">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(). '/images/cash-in-place.png' ; ?>" alt="پرداخت در محل"
>
<p><span>پرداخت در محل</span></p>
</figure>
</div>
<div class="fr-element col-3">
<figure>
<img src="<?php echo get_stylesheet_directory_uri(). '/images/guarantee.png' ; ?>"
alt="1 سال گارانتی - 5 سال خدمات پس از فروش " >
<p><span>1 سال گارانتی</span></p>
<p><span> 5 سال خدمات پس از فروش </span></p>
</figure>
</div>
</div>
</div>
</div>
<div class="second-row">
<div class="container-fluid">
<div class="row">
<div class="sr-element col-md-4 col-sm-12">
<h6>راهنمای خرید از رادشید</h6>
<p><a href="https://radshid.com/%d9%86%d8%ad%d9%88%d9%87-%d8%ab%d8%a8%d8%aa-%d8%b3%d9%81%d8%a7%d8%b1%d8%b4/">نحوه ثبت سفارش</a></p>
<p><a href="https://radshid.com/%d8%b4%db%8c%d9%88%d9%87-%d9%87%d8%a7%db%8c-%d9%be%d8%b1%d8%af%d8%a7%d8%ae%d8%aa/">شیوه های پرداخت</a></p>
<p><a href="https://radshid.com/%d8%b4%db%8c%d9%88%d9%87-%d9%87%d8%a7%db%8c-%d8%a7%d8%b1%d8%b3%d8%a7%d9%84/">شیوه های ارسال</a></p>
<p><a href="https://radshid.com/%d8%b3%d9%88%d8%a7%d9%84%e2%80%8c%d9%87%d8%a7%db%8c-%d9%85%d8%aa%d8%af%d8%a7%d9%88%d9%84-faq/">پاسخ به پرسش های متداول</a></p>
<p><a href="https://radshid.com/%d8%ae%d8%af%d9%85%d8%a7%d8%aa-%d9%be%d8%b3-%d8%a7%d8%b2-%d9%81%d8%b1%d9%88%d8%b4/">خدمات پس از فروش</a></p>
</div>
<div class="sr-element col-md-4 col-sm-12">
<h6>با رادشید</h6>
<p><a href="https://radshid.com/%d8%a7%d8%ae%d8%a8%d8%a7%d8%b1-%d8%b1%d8%a7%d8%af%d8%b4%db%8c%d8%af/">اخبار رادشید</a></p>
<p><a href="https://radshid.com/%d8%af%d8%b1%d8%ae%d9%88%d8%a7%d8%b3%d8%aa-%d9%86%d9%85%d8%a7%db%8c%d9%86%d8%af%da%af%db%8c/">دریافت نمایندگی</a></p>
<p><a
评论0