File: /home/atiscoir/public_html/wp-content/themes/servin/inc/sticky/assets.php
<?php
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! class_exists( 'TMT_Sticky_Assets' ) ) {
/**
* Define TMT_Sticky_Assets class
*/
class TMT_Sticky_Assets {
/**
* A reference to an instance of this class.
*
* @since 1.0.0
* @var object
*/
private static $instance = null;
/**
* Localize data
*
* @var array
*/
public $elements_data = array(
'sections' => array(),
'columns' => array(),
);
/**
* Returns the instance.
*
* @since 1.0.0
* @return object
*/
public static function get_instance() {
// If the single instance hasn't been set, set it now.
if ( null == self::$instance ) {
self::$instance = new self;
}
return self::$instance;
}
}
}
function tmt_sticky_assets() {
return TMT_Sticky_Assets::get_instance();
}