Пример #1
0
        self::$sPluginAuthor = self::Author;
        self::$sPluginAuthorURI = self::AuthorURI;
        self::$sPluginStoreURI = 'http://michaeluno.jp';
        self::$sPluginTextDomain = self::TextDomain;
        self::$sPluginDomainPath = self::TextDomainPath;
        // Backward compatibility - will be deprecated
        self::$strPluginFilePath = self::$sFilePath;
        self::$strPluginDirPath = self::$sDirPath;
        // self::$strPluginURI         = plugins_url( '', self::$strPluginFilePath );   // @deprecated
        self::$strPluginName = self::Name;
        self::$strPluginVersion = self::Version;
        self::$strPluginDescription = self::Description;
        self::$strPluginAuthor = self::Author;
        self::$strPluginAuthorURI = self::AuthorURI;
        self::$strPluginTextDomain = self::TextDomain;
        self::$strPluginDomainPath = self::TextDomainPath;
        self::$strPluginNetwork = '';
        self::$strPluginSiteWide = 'Site Wide Only';
        self::$strPluginStoreURI = 'http://michaeluno.jp';
    }
    public static function getPluginURL($sRelativePath = '')
    {
        return plugins_url($sRelativePath, self::$strPluginFilePath);
    }
}
// Run the bootstrap
AmazonAutoLinks_Commons::setUp(__FILE__);
include AmazonAutoLinks_Commons::$sDirPath . '/include/class/boot/AmazonAutoLinks_AutoLoad.php';
include AmazonAutoLinks_Commons::$sDirPath . '/include/class/boot/AmazonAutoLinks_Bootstrap.php';
include AmazonAutoLinks_Commons::$sDirPath . '/include/class/boot/AmazonAutoLinks_RegisterClasses.php';
new AmazonAutoLinks_Bootstrap(__FILE__);