This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
$classes = array( 'back-to-top', 'button', 'icon', 'invert', 'plain', 'fixed', 'bottom', 'z-1', 'is-outline', 'round' );
$classes[] = get_theme_mod( 'back_to_top_position' ) === 'left' ? 'left' : '';
$classes[] = get_theme_mod( 'back_to_top_mobile' ) ? '' : 'hide-for-medium';
$shape = get_theme_mod( 'back_to_top_shape', 'circle' );
if ( $shape === 'circle' ) {
$classes[] = 'circle';
$classes = array_diff( $classes, array( 'round' ) );
}
$classes = implode( ' ', array_filter( $classes ) );
?>
<a href="#top" class="<?php echo $classes; ?>" id="top-link" aria-label="<?php esc_attr_e('Go to top', 'flatsome' ); ?>"><?php echo get_flatsome_icon( 'icon-angle-up' ); ?></a>

View File

@@ -0,0 +1,46 @@
<?php
$align = 'small-text-center';
if ( get_theme_mod( 'footer_bottom_align' ) == 'center' ) {
$align = 'text-center';
}
ob_start();
do_action( 'flatsome_absolute_footer_secondary' );
$flatsome_absolute_footer_secondary = trim( ob_get_clean() );
$flatsome_footer_right_text = trim( get_theme_mod( 'footer_right_text' ) );
?>
<div class="absolute-footer <?php echo flatsome_option('footer_bottom_text'); ?> medium-text-center <?php echo $align;?>">
<div class="container clearfix">
<?php if ( $flatsome_footer_right_text || $flatsome_absolute_footer_secondary ) : ?>
<div class="footer-secondary pull-right">
<?php if ( $flatsome_footer_right_text ) : ?>
<div class="footer-text inline-block small-block">
<?php echo do_shortcode($flatsome_footer_right_text); ?>
</div>
<?php endif; ?>
<?php echo $flatsome_absolute_footer_secondary; ?>
</div>
<?php endif; ?>
<div class="footer-primary pull-left">
<?php if ( has_nav_menu( 'footer' ) ) : ?>
<?php
wp_nav_menu( array(
'theme_location' => 'footer',
'menu_class' => 'links footer-nav uppercase',
'depth' => 1,
'fallback_cb' => false,
) );
?>
<?php endif; ?>
<div class="copyright-footer">
<?php echo do_shortcode( get_theme_mod( 'footer_left_text', 'Copyright [ux_current_year] &copy; <strong>Flatsome Theme</strong>' ) ); ?>
</div>
<?php do_action( 'flatsome_absolute_footer_primary' ); ?>
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<?php get_template_part('template-parts/footer/footer-absolute'); ?>

View File

@@ -0,0 +1,7 @@
<div class="absolute-footer fixed dark nav-dark text-center">
<div class="footer-primary">
<div class="copyright-footer">
<?php if(flatsome_option('footer_left_text')) { echo do_shortcode(flatsome_option('footer_left_text'));} ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<?php do_action('flatsome_before_footer'); ?>
<!-- FOOTER 1 -->
<?php if ( is_active_sidebar( 'sidebar-footer-1' ) && get_theme_mod('footer_1', 1) ) : ?>
<div class="footer-widgets footer footer-1">
<div class="<?php echo flatsome_footer_row_style('footer-1'); ?> mb-0">
<?php dynamic_sidebar('sidebar-footer-1'); ?>
</div>
</div>
<?php endif; ?>
<!-- FOOTER 2 -->
<?php if ( is_active_sidebar( 'sidebar-footer-2' ) && get_theme_mod('footer_2', 1) ) : ?>
<div class="footer-widgets footer footer-2 <?php if(flatsome_option('footer_2_color') == 'dark') echo 'dark'; ?>">
<div class="<?php echo flatsome_footer_row_style('footer-2'); ?> mb-0">
<?php dynamic_sidebar('sidebar-footer-2'); ?>
</div>
</div>
<?php endif; ?>
<?php do_action('flatsome_after_footer'); ?>
<?php get_template_part('template-parts/footer/footer-absolute'); ?>