first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-08 12:19:53 -04:00
commit 7c8c8b1c76
4586 changed files with 2050693 additions and 0 deletions
@@ -0,0 +1,85 @@
<?php
/**
* The default template for displaying the footer copyright
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Get copyright text.
$copy = get_theme_mod( 'ocean_footer_copyright_text', 'Copyright - OceanWP Theme by Nick' );
$copy = oceanwp_tm_translation( 'ocean_footer_copyright_text', $copy );
// Get footer menu location and apply filters for child theming.
$menu_location = 'footer_menu';
$menu_location = apply_filters( 'ocean_footer_menu_location', $menu_location );
// Visibility.
$visibility = get_theme_mod( 'ocean_bottom_footer_visibility', 'all-devices' );
// Inner classes.
$wrap_classes = array( 'clr' );
if ( ! has_nav_menu( $menu_location ) ) {
$wrap_classes[] = 'no-footer-nav';
}
if ( 'all-devices' !== $visibility ) {
$wrap_classes[] = $visibility;
}
$wrap_classes = implode( ' ', $wrap_classes ); ?>
<?php do_action( 'ocean_before_footer_bottom' ); ?>
<div id="footer-bottom" class="<?php echo esc_attr( $wrap_classes ); ?>">
<?php do_action( 'ocean_before_footer_bottom_inner' ); ?>
<div id="footer-bottom-inner" class="container clr">
<?php
// Display footer bottom menu if location is defined.
if ( has_nav_menu( $menu_location ) ) :
?>
<div id="footer-bottom-menu" class="navigation clr">
<?php
// Display footer menu.
wp_nav_menu(
array(
'theme_location' => $menu_location,
'sort_column' => 'menu_order',
'fallback_cb' => false,
)
);
?>
</div><!-- #footer-bottom-menu -->
<?php
endif;
?>
<?php
// Display copyright info.
if ( $copy ) :
?>
<div id="copyright" class="clr" role="contentinfo">
<?php echo wp_kses_post( do_shortcode( $copy ) ); ?>
</div><!-- #copyright -->
<?php
endif;
?>
</div><!-- #footer-bottom-inner -->
<?php do_action( 'ocean_after_footer_bottom_inner' ); ?>
</div><!-- #footer-bottom -->
<?php do_action( 'ocean_after_footer_bottom' ); ?>
@@ -0,0 +1,39 @@
<?php
/**
* Footer layout
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<footer id="footer" class="<?php echo esc_attr( oceanwp_footer_classes() ); ?>"<?php oceanwp_schema_markup( 'footer' ); ?> role="contentinfo">
<?php do_action( 'ocean_before_footer_inner' ); ?>
<div id="footer-inner" class="clr">
<?php
// Display the footer widgets if enabled.
if ( oceanwp_display_footer_widgets() ) {
get_template_part( 'partials/footer/widgets' );
}
// Display the footer bottom if enabled.
if ( oceanwp_display_footer_bottom() ) {
get_template_part( 'partials/footer/copyright' );
}
?>
</div><!-- #footer-inner -->
<?php do_action( 'ocean_after_footer_inner' ); ?>
</footer><!-- #footer -->
@@ -0,0 +1,144 @@
<?php
/**
* Footer widgets
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Get ID.
$get_id = oceanwp_custom_footer_template();
// Check if page is Elementor page.
$elementor = get_post_meta( $get_id, '_elementor_edit_mode', true );
// Get content.
$get_content = oceanwp_footer_template_content();
// Get footer widgets columns.
$columns = apply_filters( 'ocean_footer_widgets_columns', get_theme_mod( 'ocean_footer_widgets_columns', '4' ) );
$grid_class = oceanwp_grid_class( $columns );
// Responsive columns.
$tablet_columns = get_theme_mod( 'ocean_footer_widgets_tablet_columns' );
$mobile_columns = get_theme_mod( 'ocean_footer_widgets_mobile_columns' );
// Visibility.
$visibility = get_theme_mod( 'ocean_footer_widgets_visibility', 'all-devices' );
// Classes.
$wrap_classes = array( 'oceanwp-row', 'clr' );
if ( ! empty( $tablet_columns ) ) {
$wrap_classes[] = 'tablet-' . $tablet_columns . '-col';
}
if ( ! empty( $mobile_columns ) ) {
$wrap_classes[] = 'mobile-' . $mobile_columns . '-col';
}
if ( 'all-devices' !== $visibility ) {
$wrap_classes[] = $visibility;
}
$wrap_classes = implode( ' ', $wrap_classes );
// Get inner classes.
$inner_classes = array( 'footer-widgets-inner' );
// Add container class.
if ( true === get_theme_mod( 'ocean_add_footer_container', true ) ) {
$inner_classes[] = 'container';
}
// Turn inner classes into space seperated string.
$inner_classes = implode( ' ', $inner_classes );
?>
<?php do_action( 'ocean_before_footer_widgets' ); ?>
<div id="footer-widgets" class="<?php echo esc_attr( $wrap_classes ); ?>">
<?php do_action( 'ocean_before_footer_widgets_inner' ); ?>
<div class="<?php echo esc_attr( $inner_classes ); ?>">
<?php
// Check if there is a template for the footer.
if ( ! empty( $get_id ) ) {
if ( OCEANWP_ELEMENTOR_ACTIVE && $elementor ) {
// If Elementor.
OceanWP_Elementor::get_footer_content();
} elseif ( OCEANWP_BEAVER_BUILDER_ACTIVE && ! empty( $get_id ) ) {
// If Beaver Builder.
echo do_shortcode( '[fl_builder_insert_layout id="' . $get_id . '"]' );
} else {
// Display template content.
echo do_shortcode( $get_content );
}
// Display widgets.
} else {
// Footer box 1.
?>
<div class="footer-box <?php echo esc_attr( $grid_class ); ?> col col-1">
<?php dynamic_sidebar( 'footer-one' ); ?>
</div><!-- .footer-one-box -->
<?php
// Footer box 2.
if ( $columns > '1' ) :
?>
<div class="footer-box <?php echo esc_attr( $grid_class ); ?> col col-2">
<?php dynamic_sidebar( 'footer-two' ); ?>
</div><!-- .footer-one-box -->
<?php
endif;
?>
<?php
// Footer box 3.
if ( $columns > '2' ) :
?>
<div class="footer-box <?php echo esc_attr( $grid_class ); ?> col col-3 ">
<?php dynamic_sidebar( 'footer-three' ); ?>
</div><!-- .footer-one-box -->
<?php
endif;
?>
<?php
// Footer box 4.
if ( $columns > '3' ) :
?>
<div class="footer-box <?php echo esc_attr( $grid_class ); ?> col col-4">
<?php dynamic_sidebar( 'footer-four' ); ?>
</div><!-- .footer-box -->
<?php
endif;
?>
<?php
}
?>
</div><!-- .container -->
<?php do_action( 'ocean_after_footer_widgets_inner' ); ?>
</div><!-- #footer-widgets -->
<?php do_action( 'ocean_after_footer_widgets' ); ?>