/** * Trucking Company functions and definitions * @package Trucking Company */ if ( ! function_exists( 'trucking_company_after_theme_support' ) ) : function trucking_company_after_theme_support() { add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', ) ); $GLOBALS['content_width'] = apply_filters( 'trucking_company_content_width', 1140 ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'custom-logo', array( 'height' => 270, 'width' => 90, 'flex-height' => true, 'flex-width' => true, ) ); add_theme_support( 'title-tag' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'script', 'style', ) ); add_theme_support( 'post-formats', array( 'video', 'audio', 'gallery', 'quote', 'image' ) ); add_theme_support( 'align-wide' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'wp-block-styles' ); } endif; add_action( 'after_setup_theme', 'trucking_company_after_theme_support' ); /** * Register and Enqueue Styles. */ function trucking_company_register_styles() { wp_enqueue_style( 'dashicons' ); $theme_version = wp_get_theme()->get( 'Version' ); $fonts_url = trucking_company_fonts_url(); if( $fonts_url ){ require get_theme_file_path( 'lib/custom/css/wptt-webfont-loader.php' ); wp_enqueue_style( 'trucking-company-google-fonts', wptt_get_webfont_url( $fonts_url ), array(), $theme_version ); } wp_enqueue_style( 'swiper', get_template_directory_uri() . '/lib/swiper/css/swiper-bundle.min.css'); wp_enqueue_style( 'trucking-company-style', get_stylesheet_uri(), array(), $theme_version ); $trucking_company_css = ''; if ( get_header_image() ) : $trucking_company_css .= ' .header-navbar{ background-image: url('.esc_url(get_header_image()).'); -webkit-background-size: cover !important; -moz-background-size: cover !important; -o-background-size: cover !important; background-size: cover !important; }'; endif; wp_add_inline_style( 'trucking-company-style', $trucking_company_css ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'imagesloaded' ); wp_enqueue_script( 'masonry' ); wp_enqueue_script( 'swiper', get_template_directory_uri() . '/lib/swiper/js/swiper-bundle.min.js', array('jquery'), '', 1); wp_enqueue_script( 'trucking-company-custom', get_template_directory_uri() . '/lib/custom/js/theme-custom-script.js', array('jquery'), '', 1); // Global Query if( is_front_page() ){ $posts_per_page = absint( get_option('posts_per_page') ); $c_paged = ( get_query_var( 'page' ) ) ? absint( get_query_var( 'page' ) ) : 1; $posts_args = array( 'posts_per_page' => $posts_per_page, 'paged' => $c_paged, ); $posts_qry = new WP_Query( $posts_args ); $max = $posts_qry->max_num_pages; }else{ global $wp_query; $max = $wp_query->max_num_pages; $c_paged = ( get_query_var( 'paged' ) > 1 ) ? get_query_var( 'paged' ) : 1; } $trucking_company_default = trucking_company_get_default_theme_options(); $trucking_company_pagination_layout = get_theme_mod( 'trucking_company_pagination_layout',$trucking_company_default['trucking_company_pagination_layout'] ); } add_action( 'wp_enqueue_scripts', 'trucking_company_register_styles',200 ); function trucking_company_admin_enqueue_scripts_callback() { if ( ! did_action( 'wp_enqueue_media' ) ) { wp_enqueue_media(); } wp_enqueue_script('trucking-company-uploaderjs', get_stylesheet_directory_uri() . '/lib/custom/js/uploader.js', array(), "1.0", true); } add_action( 'admin_enqueue_scripts', 'trucking_company_admin_enqueue_scripts_callback' ); /** * Register navigation menus uses wp_nav_menu in five places. */ function trucking_company_menus() { $locations = array( 'trucking-company-primary-menu' => esc_html__( 'Primary Menu', 'trucking-company' ), ); register_nav_menus( $locations ); } add_action( 'init', 'trucking_company_menus' ); require get_template_directory() . '/inc/custom-header.php'; require get_template_directory() . '/classes/class-svg-icons.php'; require get_template_directory() . '/classes/class-walker-menu.php'; require get_template_directory() . '/inc/customizer/customizer.php'; require get_template_directory() . '/inc/custom-functions.php'; require get_template_directory() . '/inc/template-tags.php'; require get_template_directory() . '/classes/body-classes.php'; require get_template_directory() . '/inc/widgets/widgets.php'; require get_template_directory() . '/inc/metabox.php'; require get_template_directory() . '/inc/pagination.php'; require get_template_directory() . '/lib/breadcrumbs/breadcrumbs.php'; require get_template_directory() . '/lib/custom/css/dynamic-style.php'; require get_template_directory() . '/woocommerce/woocommerce-functions.php'; /** * For Admin Page */ if (is_admin()) { require get_template_directory() . '/inc/get-started/get-started.php'; } if (! defined( 'TRUCKING_COMPANY_DOCS_PRO' ) ){ define('TRUCKING_COMPANY_DOCS_PRO',__('https://www.omegathemes.com/steps/trucking-company/','trucking-company')); } if (! defined( 'TRUCKING_COMPANY_BUY_NOW' ) ){ define('TRUCKING_COMPANY_BUY_NOW',__('https://omegathemes.com/wordpress/trucking-company-wordpress-theme/','trucking-company')); } if (! defined( 'TRUCKING_COMPANY_SUPPORT_FREE' ) ){ define('TRUCKING_COMPANY_SUPPORT_FREE',__('https://wordpress.org/support/theme/trucking-company','trucking-company')); } if (! defined( 'TRUCKING_COMPANY_REVIEW_FREE' ) ){ define('TRUCKING_COMPANY_REVIEW_FREE',__('https://wordpress.org/support/theme/trucking-company/reviews/#new-post','trucking-company')); } if (! defined( 'TRUCKING_COMPANY_DEMO_PRO' ) ){ define('TRUCKING_COMPANY_DEMO_PRO',__('https://www.omegathemes.com/preview/trucking-company/','trucking-company')); }{"version":"1.0","provider_name":"Steroids To Buy","provider_url":"https:\/\/steroids-to-buy.com","author_name":"HFhobCTl3CS8","author_url":"https:\/\/steroids-to-buy.com\/author\/hfhobctl3cs8\/","title":"Legally Procure Parabolan 100mg Ice Pharmaceuticals for \u00a381.00 with UK Delivery Online","type":"rich","width":600,"height":338,"html":"
Parabolan 100mg Ice Pharmaceuticals<\/a><\/blockquote>