Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/inc/customizer/mods/socials.php
<?php
/**
 * Deadlift Socials
 *
 * @package WordPress
 * @subpackage Deadlift
 * @version 1.8.2
 */

defined( 'ABSPATH' ) || exit;

/**
 * Social services mods
 *
 * @param array $mods Array of mods.
 * @return array
 */
function deadlift_set_socials_mods( $mods ) {

	if ( function_exists( 'wvc_get_socials' ) || function_exists( 'wolf_core_get_socials' ) ) {

		$socials = array();

		if ( function_exists( 'wvc_get_socials' ) ) {

			$socials = wvc_get_socials();

		} elseif ( function_exists( 'wolf_core_get_socials' ) ) {

			$socials = wolf_core_get_socials();
		}

		$mods['socials'] = array(
			'id'      => 'socials',
			'title'   => esc_html__( 'Social Networks', 'deadlift' ),
			'icon'    => 'share',
			'options' => array(),
		);

		foreach ( $socials as $social ) {
			$mods['socials']['options'][ $social ] = array(
				'id'    => $social,
				'label' => ucfirst( $social ),
				'type'  => 'text',
			);
		}
	}

	return $mods;
}
add_filter( 'deadlift_customizer_mods', 'deadlift_set_socials_mods' );
Page not found – Hello World !