HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/zenoxpressjobs.com/careers.htm/wp-content/themes/zxldfw-tcompanyllcMain/functions.php
<?php

/* Global Functions
---------------------------------------------------------------------------------------------------- */

// Replace with Google Fonts URL.
function webcom_load_google_fonts() {
	return esc_url_raw( 'https://fonts.googleapis.com/css?family=Source+Sans+Pro|Raleway' );
}


// Replace with Latest Font Awesome URL.
function webcom_load_font_awesome() {
	return esc_url_raw( 'https://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
}


if ( ! isset( $content_width ) ) {
	$content_width = 2000;
}

// Set up the Theme.
function webcom_setup() {

	// Adds RSS feed links to <head> for posts and comments.
	add_theme_support( 'automatic-feed-links' );

	// Adds the Title Tag to wp_head()
	add_theme_support( 'title-tag' );

	// Allows use of wp_nav_menu()
	register_nav_menus(array(
		'primary' => 'Primary Menu',
		'mobile' => 'Mobile Menu',
		'footer' => 'Footer Menu',
	));

	// Enable JetPack's infinite-scroll feature
	add_theme_support( 'infinite-scroll', array(
		'container' => 'primary',
	) );

	// This theme uses a custom image size for featured images, displayed on "standard" posts.
	add_image_size( 'featured-image', 2000, 99999, array( 'top', 'center' ) );

	// Enable Post Thumbnail for Posts and Pages
	add_theme_support( 'post-thumbnails' );

	// Removing Theme Supports
	remove_theme_support( 'custom-header' );
	remove_theme_support( 'custom-background' );

	// Remove the xmlrpc & wlwmanifest.xml
	remove_action( 'wp_head', 'wlwmanifest_link' );
	remove_action( 'wp_head', 'rsd_link' );
	remove_action( 'wp_head', 'wp_generator' );

}
add_action( 'after_setup_theme', 'webcom_setup' );


function webcom_load_scripts() {
	wp_enqueue_script( 'webcom-scripts', get_template_directory_uri() . '/scripts/global.js', array( 'jquery' ), (is_user_logged_in() ? rand(1000, 9999) : '1.0'), true );

	if ( is_singular() and !is_page() and comments_open() ) wp_enqueue_script( "comment-reply" );

	wp_enqueue_style( 'webcom-google-fonts', webcom_load_google_fonts() );
	wp_enqueue_style( 'webcom-font-awesome', webcom_load_font_awesome(), array(), '4.7.0' );
	wp_enqueue_style( 'webcom-style', get_stylesheet_uri(), array(), (is_user_logged_in() ? rand( 1000, 9999 ) : '1.0') );
}
add_action( 'wp_enqueue_scripts', 'webcom_load_scripts' );


function webcom_widgets_init() {
	register_sidebar(array(
		'name' => 'Blog Sidebar',
		'id' => 'sidebar-blog',
		'description' => 'The sidebar that appears on posts and archives.',
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	));
	register_sidebar(array(
		'name' => 'Page Sidebar',
		'id' => 'sidebar-page',
		'description' => 'The sidebar that appears on pages.',
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget' => '</aside>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	));

}
add_action( 'widgets_init', 'webcom_widgets_init' );

// Adds custom shortcodes
include_once get_template_directory() . '/functions/shortcodes.php';

// Generic helper functions that need no modifications.
include_once get_template_directory() . '/functions/helpers.php';


/* Custom Widgets (Remove // if needed)
 * See the included widget file for instructions on how to duplicate
---------------------------------------------------------------------------------------------------- */
// include_once 'widgets/webcom-1sc-widget.php';
//include_once 'widgets/webcom-cta-01.php';
//include_once 'widgets/webcom-blog-feed.php';

/* Modules
---------------------------------------------------------------------------------------------------- */
//include_once get_template_directory() . '/modules/advanced-custom-fields-font-awesome/acf-font-awesome.php';
// include_once get_template_directory() . '/modules/webcom-accordion/webcom-accordion.php';
// include_once get_template_directory() . '/modules/webcom-carousel/webcom-carousel.php';
// include_once get_template_directory() . '/modules/webcom-gallery/webcom-gallery.php';


/* Backend Functions
---------------------------------------------------------------------------------------------------- */

// Custom Login Page
if ( ! is_admin() ) include_once get_template_directory() . '/functions/login-page.php';

// Dashboard setup
if ( is_admin() ) include_once get_template_directory() . '/functions/dashboard.php';

// FontAwesome Icons
if ( is_admin() ) include_once get_template_directory() . '/functions/tinymce.php';

// Adds theme-options.php
if ( is_admin() ) include_once get_template_directory() . '/theme-options.php';

// Show breadcrumbs
// if ( is_admin() ) include_once get_template_directory() . '/functions/breadcrumbs.php';




/* Frontend Functions
---------------------------------------------------------------------------------------------------- */

// Adds custom classes to the body tag.
if ( ! is_admin() ) include_once get_template_directory() . '/functions/body-classes.php';

// Adds post-related functionality.
if ( ! is_admin() ) include_once get_template_directory() . '/functions/posts.php';



// Include 301 redirects.
if ( ! is_admin() ) include_once get_template_directory() . '/functions/301-redirects.php';




/* Plugin Related Functions & Fixes
---------------------------------------------------------------------------------------------------- */

// Fixes for MetaSlider.
if ( class_exists( 'MetaSliderPlugin' ) and ! is_admin() ) include_once get_template_directory() . '/functions/metaslider.php';

// Fixes for Testimonials Rotator.
if ( function_exists( 'testimonial_rotator_setup' ) ) include_once get_template_directory() . '/functions/testimonials-rotator.php';

if ( ! function_exists( 'webcom_remove_testimonial_archive' ) ) {
        function webcom_remove_testimonial_archive( $args ) {
                  $args['has_archive'] = false;
                  return $args;
        }
        add_filter( 'testimonial_rotator_pt_args', 'webcom_remove_testimonial_archive' );
}

// Fixes for Paid Memberships Pro.
if ( function_exists( 'pmpro_gateways' ) ) include_once get_template_directory() . '/functions/paid-memberships-pro.php';