HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/wp-content/plugins/wordpress-popup/inc/metas/sshare/hustle-sshare-content.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * File for Hustle_SShare_Content class.
 *
 * @package Hustle
 * @since unknown
 */

/**
 * Hustle_SShare_Content is the base class for the "content" meta of Social Sharing modules.
 *
 * @since unknwon
 */
class Hustle_SShare_Content extends Hustle_Meta {

	/**
	 * Get the defaults for this meta.
	 *
	 * @since 4.4.1
	 * @return array
	 */
	public function get_defaults() {
		return array(
			'social_icons'    => array(),
			'counter_enabled' => '1',
		);
	}

	/**
	 * Retrieves the list of social icons.
	 *
	 * @since 4.3.0
	 *
	 * @return array
	 */
	public function get_social_icons() {
		$networks = ! empty( $this->data['social_icons'] ) ? $this->data['social_icons'] : array();
		return $networks;
	}

	/**
	 * Returns whether the module has CTA active.
	 *
	 * @since 4.3.1
	 *
	 * @return boolean
	 */
	public function has_cta() {
		return false;
	}
}