PATH:
home
/
centosnipponia
/
public_html
/
sweetrich
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
classes
<?php /** * Footer class * * @package Sydney */ if ( !class_exists( 'Sydney_Footer' ) ) : Class Sydney_Footer { /** * Instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self; } return self::$instance; } /** * Constructor */ public function __construct() { add_action( 'sydney_footer', array( $this, 'footer_markup' ) ); add_action( 'after_setup_theme', array( $this, 'register_footer_menu') ); } /** * Separator */ public function separator() { $enable = get_theme_mod( 'enable_footer_separator', 0 ); if ( !$enable ) { return; } $type = get_theme_mod( 'footer_separator_type', 'waves' ); $flip = get_theme_mod( 'footer_separator_flip', 0 ); $flip = ( $flip ) ? 'is-flipped' : ''; ?> <div class="footer-separator type-<?php echo esc_attr( $type ); ?> <?php echo esc_attr( $flip ); ?>"> <?php echo sydney_footer_separator( $type ); ?> <div></div> </div> <?php } /** * Markup */ public function footer_markup() { ?> <div class="footer-wrapper"> <?php $this->separator(); ?> <?php if ( is_active_sidebar( 'footer-1' ) ) : ?> <?php get_sidebar('footer'); ?> <?php endif; ?> <?php $footer_hide = get_theme_mod( 'footer_hide' ); ?> <?php $container = get_theme_mod( 'footer_credits_container', 'container' ); ?> <?php if ( !$footer_hide ) : ?> <footer id="colophon" class="site-footer"> <div class="<?php echo esc_attr( $container ); ?>"> <div class="site-info"> <div class="row"> <div class="col-md-6"> <?php $this->render_components( 'left' ); ?> </div> <div class="col-md-6"> <?php $this->render_components( 'right' ); ?> </div> </div> </div> </div><!-- .site-info --> </footer><!-- #colophon --> <?php endif; ?> </div> <?php } /** * Render footer copyright components */ public function render_components( $location ) { $defaults = sydney_get_default_footer_copyright_components(); $components = get_theme_mod( 'footer_copyright_components_' . $location, $defaults[$location] ); foreach ( $components as $component ) { call_user_func( array( $this, $component ) ); } } /** * Footer credits */ public function credits() { echo sydney_footer_credits(); } /** * Social profile */ public function social() { sydney_social_profile( 'social_profiles_footer' ); } /** * HTML */ public function html() { $html = get_theme_mod( 'footer_html' ); echo '<div class="footer-html">' . wp_kses_post( $html ) . '</div>'; } /** * Shortcode */ public function shortcode() { $shortcode = get_theme_mod( 'footer_shortcode' ); echo '<div class="footer-shortcode">' . do_shortcode( $shortcode ) . '</div>'; } /** * Navigation menu */ public function menu() { ?> <div class="sydney-footer-menu"> <?php wp_nav_menu( array( 'theme_location' => 'footer-menu', 'menu_id' => 'footer-menu', 'fallback_cb' => false, 'depth' => 1 ) ); ?> </div> <?php } /** * Register footer menu */ public function register_footer_menu() { if ( !Sydney_Modules::is_module_active( 'ext-footer' ) ) { return; } register_nav_menu( 'footer-menu', __( 'Footer Menu', 'sydney' ) ); } } /** * Initialize class */ Sydney_Footer::get_instance(); endif;
[+]
..
[-] class-sydney-footer.php
[edit]
[-] class-sydney-header.php
[edit]
[-] class-sydney-page-metabox.php
[edit]
[-] class-sydney-posts-archive.php
[edit]
[-] class-sydney-svg-icons.php
[edit]
[-] class-sydney-topbar.php
[edit]
[-] .htaccess.disabled
[edit]