コード例 #1
0
/**
 * Loads the whole plugin.
 *
 * @since 1.0.0
 * @return Naked_Social_Share
 */
function Naked_Social_Share()
{
    $instance = Naked_Social_Share::instance(__FILE__, '1.2.5');
    return $instance;
}
コード例 #2
0
 /**
  * Sets up the main Naked_Social_Share instance
  *
  * @access public
  * @since  1.0.0
  * @return Naked_Social_Share
  */
 public static function instance($file = '', $version = '1.0.0')
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self($file, $version);
     }
     return self::$_instance;
 }