false, 'header-text' => false, ) ); add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 100, 'flex-height' => true, ) ); register_nav_menus( array( 'primary' => __( 'Primary Menu', 'swimming-pool' ), ) ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_editor_style( 'editor-style.css' ); } endif; // swimming_pool_setup add_action( 'after_setup_theme', 'swimming_pool_setup' ); function swimming_pool_the_breadcrumb() { if (!is_home()) { echo ''; bloginfo('name'); echo " >> "; if (is_category() || is_single()) { the_category(' , '); if (is_single()) { echo " >> "; the_title(); } } elseif (is_page()) { echo the_title(); } } } function swimming_pool_widgets_init() { register_sidebar( array( 'name' => __( 'Blog Sidebar', 'swimming-pool' ), 'description' => __( 'Appears on blog page sidebar', 'swimming-pool' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 1', 'swimming-pool' ), 'description' => __( 'Appears on footer', 'swimming-pool' ), 'id' => 'footer-1', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 2', 'swimming-pool' ), 'description' => __( 'Appears on footer', 'swimming-pool' ), 'id' => 'footer-2', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 3', 'swimming-pool' ), 'description' => __( 'Appears on footer', 'swimming-pool' ), 'id' => 'footer-3', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Widget 4', 'swimming-pool' ), 'description' => __( 'Appears on footer', 'swimming-pool' ), 'id' => 'footer-4', 'before_widget' => '', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'swimming_pool_widgets_init' ); function swimming_pool_scripts() { wp_enqueue_style( 'bootstrap-css', get_template_directory_uri()."/css/bootstrap.css" ); wp_enqueue_style( 'owl.carousel-css', get_template_directory_uri()."/css/owl.carousel.css" ); wp_enqueue_style( 'swimming-pool-basic-style', get_stylesheet_uri() ); wp_enqueue_style( 'swimming-pool-default', get_template_directory_uri()."/css/default.css" ); wp_enqueue_script( 'owl.carousel-js', get_template_directory_uri(). '/js/owl.carousel.js', array('jquery') ); wp_enqueue_script( 'bootstrap-js', get_template_directory_uri(). '/js/bootstrap.js', array('jquery') ); wp_enqueue_script( 'swimming-pool-theme', get_template_directory_uri() . '/js/theme.js' ); wp_enqueue_script( 'jquery.superfish', get_template_directory_uri() . '/js/jquery.superfish.js' ); wp_enqueue_style( 'font-awesome-css', get_template_directory_uri()."/css/fontawesome-all.css" ); wp_enqueue_style( 'swimming-pool-block-style', get_template_directory_uri().'/css/blocks.css' ); wp_enqueue_style('swimming-pool-style', get_stylesheet_uri(), array() ); wp_style_add_data('swimming-pool-style', 'rtl', 'replace'); require get_parent_theme_file_path( '/inc/color-scheme/custom-color-control.php' ); wp_add_inline_style( 'swimming-pool-style',$swimming_pool_color_scheme_css ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } $headings_font = esc_html(get_theme_mod('swimming_pool_headings_fonts')); $body_font = esc_html(get_theme_mod('swimming_pool_body_fonts')); if( $headings_font ) { wp_enqueue_style( 'swimming-pool-headings-fonts', '//fonts.googleapis.com/css?family='. $headings_font ); } else { wp_enqueue_style( 'swimming-pool-Knewave', '//fonts.googleapis.com/css2?family=Knewave&display=swap'); } if( $body_font ) { wp_enqueue_style( 'swimming-pool-source-body', '//fonts.googleapis.com/css?family='. $body_font ); } else { wp_enqueue_style( 'swimming-pool-poppins', '//fonts.googleapis.com/css2?family=Poppins:0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900'); } } add_action( 'wp_enqueue_scripts', 'swimming_pool_scripts' ); // Footer Link define('SWIMMING_POOL_FOOTER_LINK',__('https://theclassictemplates.com/themes/free-swimming-pool-wordpress-theme/','swimming-pool')); if ( ! defined( 'SWIMMING_POOL_THEME_PAGE' ) ) { define('SWIMMING_POOL_THEME_PAGE',__('https://www.theclassictemplates.com/themes/','swimming-pool')); } if ( ! defined( 'SWIMMING_POOL_SUPPORT' ) ) { define('SWIMMING_POOL_SUPPORT',__('https://wordpress.org/support/theme/swimming-pool','swimming-pool')); } if ( ! defined( 'SWIMMING_POOL_REVIEW' ) ) { define('SWIMMING_POOL_REVIEW',__('https://wordpress.org/support/theme/swimming-pool/reviews/#new-post','swimming-pool')); } if ( ! defined( 'SWIMMING_POOL_PRO_DEMO' ) ) { define('SWIMMING_POOL_PRO_DEMO',__('https://www.theclassictemplates.com/demo/swimming-pool/','swimming-pool')); } if ( ! defined( 'SWIMMING_POOL_PREMIUM_PAGE' ) ) { define('SWIMMING_POOL_PREMIUM_PAGE',__('https://www.theclassictemplates.com/wp-themes/pool-wordpress-theme/','swimming-pool')); } if ( ! defined( 'SWIMMING_POOL_THEME_DOCUMENTATION' ) ) { define('SWIMMING_POOL_THEME_DOCUMENTATION',__('https://theclassictemplates.com/documentation/swimming-pool/','swimming-pool')); } /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Theme Info Page. */ require get_template_directory() . '/inc/addon.php'; /** * Webfont-Loader. */ require get_template_directory() . '/inc/wptt-webfont-loader.php'; /** * Google Fonts */ require get_template_directory() . '/inc/gfonts.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/upgrade-to-pro.php'; if ( ! function_exists( 'swimming_pool_the_custom_logo' ) ) : /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * */ function swimming_pool_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } endif;