Plugin Directory

Changeset 2666216


Ignore:
Timestamp:
01/26/2022 05:59:26 PM (4 years ago)
Author:
templeweb3
Message:

Switch to using Tiers for lock criteria

Location:
temple-lock
Files:
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • temple-lock/tags/1.1.0/README.txt

    r2650382 r2666216  
    11=== Temple - Web3 Memberships ===
    2 Contributors: temple
    3 Donate link: https://api.temple.fans
    4 Tags: temple, gated content
     2Contributors: Temple
     3Tags: temple, gated content, web3
    54Requires at least: 5.0.0
    6 Tested up to: 5.8
     5Tested up to: 5.9
    76Requires PHP: 7.2
    8 Stable tag: 1.0.3
     7Stable tag: 1.1.0
    98License: GPLv2 or later
    10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    119
    12 Temple allows Creators to 'lock' pages and blocks so that they can only be accessed by their NFT and Social Token holders.
     10Temple allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.
    1311
    1412== Description ==
    1513
    16 Temple allows Creators to 'lock' pages and blocks so that they can only be accessed by their NFT and Social Token holders.
    17 
    18 == Installation ==
    19 
    20 This section describes how to install the plugin and get it working.
    21 
    22 1. Upload the plugin files to the `/wp-content/plugins/temple` directory, or install the plugin through the WordPress plugins screen directly.
    23 2. Activate the plugin through the 'Plugins' screen in WordPress admin
    24 3. Go to **Temples Website and Register -> ou will need to copy your WP url and add it to gated sites, you will be granted a bearer token, copy this and enter it into WP->Temple and save.
    25 4. If you now go to a post, you can lock and set your coin limit
    26 
    27 == Frequently Asked Questions ==
    28 
    29 == Screenshots ==
     14Temple allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.
    3015
    3116== Changelog ==
    3217
    33 = 1.0.0 =
    34 * First Release
    35 
    36 = 1.0.1 =
    37 * Added autoload
    38 
    39 = 1.0.3 =
    40 * Updated so that excerpts show full HTML as excerpts break the html, wrapping them in <p> tags
    41 
    42 
    43 
     18= 1.1.0 =
     19* First beta release
  • temple-lock/tags/1.1.0/composer.json

    r2642018 r2666216  
    11{
    2     "name": "temple/temple-lock",
    3     "description": "This wordpress allows user to lock pages/products.",
    4     "type": "project",
    5     "license": "GPL",
    6     "authors": [{
    7         "name": "Temple",
    8         "email": "omar.ismail@foundersfactory.co"
    9     }],
    10     "minimum-stability": "dev",
    11     "autoload": {
    12         "psr-4": {
    13             "Inc\\": "./includes"
    14         },
    15         "classmap": ["includes/"]
     2  "name": "temple/temple-wordpress-plugin",
     3  "description": "Wordpress plugin to allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.",
     4  "type": "project",
     5  "license": "GPL",
     6  "authors": [
     7    {
     8      "name": "Temple",
     9      "email": "support@temple.fans"
     10    }
     11  ],
     12  "minimum-stability": "dev",
     13  "autoload": {
     14    "psr-4": {
     15      "Inc\\": "./includes"
    1616    },
    17     "require": {
    18         "twbs/bootstrap": "5.0.2",
    19         "datatables/datatables": "1.10.21"
    20     }
     17    "classmap": [
     18      "includes/"
     19    ]
     20  }
    2121}
  • temple-lock/tags/1.1.0/composer.lock

    r2639455 r2666216  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "653a7f96b5810b22e7ef3467d20a2a16",
    8     "packages": [
    9         {
    10             "name": "datatables/datatables",
    11             "version": "1.10.21",
    12             "source": {
    13                 "type": "git",
    14                 "url": "https://github.com/DataTables/DataTables.git",
    15                 "reference": "83e59694a105225ff889ddfa0d723a3ab24fda78"
    16             },
    17             "dist": {
    18                 "type": "zip",
    19                 "url": "https://api.github.com/repos/DataTables/DataTables/zipball/83e59694a105225ff889ddfa0d723a3ab24fda78",
    20                 "reference": "83e59694a105225ff889ddfa0d723a3ab24fda78",
    21                 "shasum": ""
    22             },
    23             "type": "library",
    24             "notification-url": "https://packagist.org/downloads/",
    25             "license": [
    26                 "MIT"
    27             ],
    28             "description": "DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.",
    29             "homepage": "http://www.datatables.net/",
    30             "support": {
    31                 "forum": "https://datatables.net/forums",
    32                 "source": "https://github.com/DataTables/DataTablesSrc/"
    33             },
    34             "time": "2020-05-21T10:08:44+00:00"
    35         },
    36         {
    37             "name": "twbs/bootstrap",
    38             "version": "v5.0.2",
    39             "source": {
    40                 "type": "git",
    41                 "url": "https://github.com/twbs/bootstrap.git",
    42                 "reference": "688bce4fa695cc360a0d084e34f029b0c192b223"
    43             },
    44             "dist": {
    45                 "type": "zip",
    46                 "url": "https://api.github.com/repos/twbs/bootstrap/zipball/688bce4fa695cc360a0d084e34f029b0c192b223",
    47                 "reference": "688bce4fa695cc360a0d084e34f029b0c192b223",
    48                 "shasum": ""
    49             },
    50             "replace": {
    51                 "twitter/bootstrap": "self.version"
    52             },
    53             "type": "library",
    54             "notification-url": "https://packagist.org/downloads/",
    55             "license": [
    56                 "MIT"
    57             ],
    58             "authors": [
    59                 {
    60                     "name": "Mark Otto",
    61                     "email": "markdotto@gmail.com"
    62                 },
    63                 {
    64                     "name": "Jacob Thornton",
    65                     "email": "jacobthornton@gmail.com"
    66                 }
    67             ],
    68             "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
    69             "homepage": "https://getbootstrap.com/",
    70             "keywords": [
    71                 "JS",
    72                 "css",
    73                 "framework",
    74                 "front-end",
    75                 "mobile-first",
    76                 "responsive",
    77                 "sass",
    78                 "web"
    79             ],
    80             "support": {
    81                 "issues": "https://github.com/twbs/bootstrap/issues",
    82                 "source": "https://github.com/twbs/bootstrap/tree/v5.0.2"
    83             },
    84             "time": "2021-06-22T18:29:16+00:00"
    85         }
    86     ],
     7    "content-hash": "040beec3966098e0b5392ddce947e90c",
     8    "packages": [],
    879    "packages-dev": [],
    8810    "aliases": [],
     
    9315    "platform": [],
    9416    "platform-dev": [],
    95     "plugin-api-version": "2.0.0"
     17    "plugin-api-version": "2.2.0"
    9618}
  • temple-lock/tags/1.1.0/includes/Init.php

    r2639455 r2666216  
    22
    33/**
    4  * @package Temple Lock
    5  *
     4 * @package Temple
    65 */
    76
    87namespace Inc;
    98
    10 use Inc\Base\Controllers\LockEditController;
    11 use Inc\Base\Controllers\LockStatusController;
    129
    1310final class Init
     
    1613    {
    1714        return [
    18             Base\Enqueue::class,
    19             Base\SettingLink::class,
    20             Base\ContentLock::class,
    21             Pages\Dashboard::class,
    22             LockStatusController::class,
    23             LockEditController::class,
     15            Admin\Settings::class,
     16            ContentLock::class,
    2417        ];
    2518    }
     
    4942        return new $class();
    5043    }
    51 
    52        
    5344}
  • temple-lock/tags/1.1.0/index.php

    r2639077 r2666216  
    1 <?php // Silence is golden
     1<?php
  • temple-lock/tags/1.1.0/temple-lock.php

    r2650382 r2666216  
    22
    33/**
    4  * Plugin Name:       Temple Lock
     4 * Plugin Name:       Temple
    55 * Plugin URI:        https://temple.fans
    6  * Description:       Temple Lock allows users to lock their products and pages.
    7  * Version:           1.0.3
     6 * Description:       Temple allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.
     7 * Version:           1.1.0
    88 * Author:            Temple
    9  * Author URI:        https://api.temple.fans/
    10  * License:           GPL-2.0+
    11  * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    12  * Text Domain:       temple-lock
    13  * Domain Path:       /languages
     9 * Author URI:        https://temple.fans/
    1410 */
    1511
     
    1814
    1915
    20 defined('WPINC') or die('No script kiddies please!');
     16defined('WPINC') or die();
    2117
    22 defined('TEMPLE_LOCK_VERSION') or define('WFW_VERSION', '1.0.0');
    23 
    24 define('TEMPLE_API_URL', 'https://api.temple.fans/');
     18// Useful constants
     19define('TEMPLE_GQL_URL', 'https://core.temple.fans/graphql');
     20define('TEMPLE_WEB_URL', 'https://temple.fans/');
    2521
    2622if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) {
     
    2824}
    2925
    30 
    3126if (class_exists('Inc\\Init')) {
    3227    Inc\Init::register_services();
    3328}
    34 
    35 /**
    36  * Runs during plugin activation.
    37  */
    38 
    39 function activate_temple_plugin()
    40 {
    41     // require_once plugin_dir_path( __FILE__ ) . 'inc/Base/Activate.php';
    42     // require_once plugin_dir_path( __FILE__ ) . 'inc/Base/Activate.php';
    43     Activate::activate();
    44 }
    45 
    46 /**
    47  * Runs during plugin deactivation.
    48  */
    49 
    50 function deactivate_temple_plugin()
    51 {
    52     Deactivate::deactivate();
    53 }
    54 
    55 register_activation_hook(__FILE__, 'activate_temple_plugin');
    56 
    57 register_deactivation_hook(__FILE__, 'deactivate_temple_plugin');
  • temple-lock/tags/1.1.0/uninstall.php

    r2639077 r2666216  
    44 * Fired when the plugin is uninstalled.
    55 *
    6  * @package Temple Lock
     6 * @package Temple
    77 */
    88
     
    1212}
    1313
    14 
    1514/**
    1615 * Delete options we have saved
    1716 */
    18 delete_option('wfw_db_version');
    19 
    20 
    21 /**
    22  * Drop tables because users is deleting the plugin
    23  */
    24 global $wpdb;
    25 
    26 $tables = [
    27     $wpdb->prefix . 'wp_tl_products',
    28     $wpdb->prefix . 'wp_tl_pages',
    29 ];
    30 
    31 foreach ($tables as $table) {
    32     $wpdb->query("DROP TABLE IF EXISTS $table");
    33 }
     17delete_option('temple_bearer_token');
     18delete_option('temple_tiers');
  • temple-lock/tags/1.1.0/vendor/autoload.php

    r2639455 r2666216  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347::getLoader();
     7return ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06::getLoader();
  • temple-lock/tags/1.1.0/vendor/composer/ClassLoader.php

    r2639455 r2666216  
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var self[]
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param ?string $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109    }
     110
     111    /**
     112     * @return string[]
     113     */
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-return array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     178     * @param string          $prefix  The prefix
     179     * @param string[]|string $paths   The PSR-0 root directories
     180     * @param bool            $prepend Whether to prepend the directories
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     225     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     226     * @param string[]|string $paths   The PSR-4 base directories
     227     * @param bool            $prepend Whether to prepend the directories
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393        if (null === $this->vendorDir) {
     394            return;
     395        }
     396
     397        if ($prepend) {
     398            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     399        } else {
     400            unset(self::$registeredLoaders[$this->vendorDir]);
     401            self::$registeredLoaders[$this->vendorDir] = $this;
     402        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     478    /**
     479     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     480     *
     481     * @return self[]
     482     */
     483    public static function getRegisteredLoaders()
     484    {
     485        return self::$registeredLoaders;
     486    }
     487
     488    /**
     489     * @param  string       $class
     490     * @param  string       $ext
     491     * @return string|false
     492     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • temple-lock/tags/1.1.0/vendor/composer/autoload_classmap.php

    r2639455 r2666216  
    88return array(
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    10     'Inc\\Api\\Callback\\AdminCallback' => $baseDir . '/includes/Api/Callback/AdminCallback.php',
    11     'Inc\\Api\\Callback\\ManagerCallback' => $baseDir . '/includes/Api/Callback/ManagerCallback.php',
    12     'Inc\\Api\\SettingApi' => $baseDir . '/includes/Api/SettingApi.php',
    13     'Inc\\Base\\Activate' => $baseDir . '/includes/Base/Activate.php',
    14     'Inc\\Base\\ContentLock' => $baseDir . '/includes/Base/ContentLock.php',
    15     'Inc\\Base\\Controllers\\BaseController' => $baseDir . '/includes/Base/Controllers/BaseController.php',
    16     'Inc\\Base\\Controllers\\LockEditController' => $baseDir . '/includes/Base/Controllers/LockEditController.php',
    17     'Inc\\Base\\Controllers\\LockStatusController' => $baseDir . '/includes/Base/Controllers/LockStatusController.php',
    18     'Inc\\Base\\Deactivate' => $baseDir . '/includes/Base/Deactivate.php',
    19     'Inc\\Base\\Enqueue' => $baseDir . '/includes/Base/Enqueue.php',
    20     'Inc\\Base\\SettingLink' => $baseDir . '/includes/Base/SettingLink.php',
     10    'Inc\\Admin\\AdminCallback' => $baseDir . '/includes/Admin/AdminCallback.php',
     11    'Inc\\Admin\\SettingApi' => $baseDir . '/includes/Admin/SettingApi.php',
     12    'Inc\\Admin\\Settings' => $baseDir . '/includes/Admin/Settings.php',
     13    'Inc\\BaseController' => $baseDir . '/includes/BaseController.php',
     14    'Inc\\ContentLock' => $baseDir . '/includes/ContentLock.php',
    2115    'Inc\\Init' => $baseDir . '/includes/Init.php',
    22     'Inc\\Pages\\Dashboard' => $baseDir . '/includes/Pages/Dashboard.php',
    2316);
  • temple-lock/tags/1.1.0/vendor/composer/autoload_real.php

    r2639455 r2666216  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347
     5class ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347', 'loadClassLoader'));
     25        spl_autoload_register(array('ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06', 'loadClassLoader'), true, true);
     26        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
  • temple-lock/tags/1.1.0/vendor/composer/autoload_static.php

    r2639455 r2666216  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347
     7class ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2323    public static $classMap = array (
    2424        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    25         'Inc\\Api\\Callback\\AdminCallback' => __DIR__ . '/../..' . '/includes/Api/Callback/AdminCallback.php',
    26         'Inc\\Api\\Callback\\ManagerCallback' => __DIR__ . '/../..' . '/includes/Api/Callback/ManagerCallback.php',
    27         'Inc\\Api\\SettingApi' => __DIR__ . '/../..' . '/includes/Api/SettingApi.php',
    28         'Inc\\Base\\Activate' => __DIR__ . '/../..' . '/includes/Base/Activate.php',
    29         'Inc\\Base\\ContentLock' => __DIR__ . '/../..' . '/includes/Base/ContentLock.php',
    30         'Inc\\Base\\Controllers\\BaseController' => __DIR__ . '/../..' . '/includes/Base/Controllers/BaseController.php',
    31         'Inc\\Base\\Controllers\\LockEditController' => __DIR__ . '/../..' . '/includes/Base/Controllers/LockEditController.php',
    32         'Inc\\Base\\Controllers\\LockStatusController' => __DIR__ . '/../..' . '/includes/Base/Controllers/LockStatusController.php',
    33         'Inc\\Base\\Deactivate' => __DIR__ . '/../..' . '/includes/Base/Deactivate.php',
    34         'Inc\\Base\\Enqueue' => __DIR__ . '/../..' . '/includes/Base/Enqueue.php',
    35         'Inc\\Base\\SettingLink' => __DIR__ . '/../..' . '/includes/Base/SettingLink.php',
     25        'Inc\\Admin\\AdminCallback' => __DIR__ . '/../..' . '/includes/Admin/AdminCallback.php',
     26        'Inc\\Admin\\SettingApi' => __DIR__ . '/../..' . '/includes/Admin/SettingApi.php',
     27        'Inc\\Admin\\Settings' => __DIR__ . '/../..' . '/includes/Admin/Settings.php',
     28        'Inc\\BaseController' => __DIR__ . '/../..' . '/includes/BaseController.php',
     29        'Inc\\ContentLock' => __DIR__ . '/../..' . '/includes/ContentLock.php',
    3630        'Inc\\Init' => __DIR__ . '/../..' . '/includes/Init.php',
    37         'Inc\\Pages\\Dashboard' => __DIR__ . '/../..' . '/includes/Pages/Dashboard.php',
    3831    );
    3932
     
    4134    {
    4235        return \Closure::bind(function () use ($loader) {
    43             $loader->prefixLengthsPsr4 = ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::$prefixLengthsPsr4;
    44             $loader->prefixDirsPsr4 = ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::$prefixDirsPsr4;
    45             $loader->classMap = ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::$classMap;
     36            $loader->prefixLengthsPsr4 = ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::$prefixLengthsPsr4;
     37            $loader->prefixDirsPsr4 = ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::$prefixDirsPsr4;
     38            $loader->classMap = ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::$classMap;
    4639
    4740        }, null, ClassLoader::class);
  • temple-lock/trunk/README.txt

    r2650382 r2666216  
    11=== Temple - Web3 Memberships ===
    2 Contributors: temple
    3 Donate link: https://api.temple.fans
    4 Tags: temple, gated content
     2Contributors: Temple
     3Tags: temple, gated content, web3
    54Requires at least: 5.0.0
    6 Tested up to: 5.8
     5Tested up to: 5.9
    76Requires PHP: 7.2
    8 Stable tag: 1.0.3
     7Stable tag: 1.1.0
    98License: GPLv2 or later
    10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    119
    12 Temple allows Creators to 'lock' pages and blocks so that they can only be accessed by their NFT and Social Token holders.
     10Temple allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.
    1311
    1412== Description ==
    1513
    16 Temple allows Creators to 'lock' pages and blocks so that they can only be accessed by their NFT and Social Token holders.
    17 
    18 == Installation ==
    19 
    20 This section describes how to install the plugin and get it working.
    21 
    22 1. Upload the plugin files to the `/wp-content/plugins/temple` directory, or install the plugin through the WordPress plugins screen directly.
    23 2. Activate the plugin through the 'Plugins' screen in WordPress admin
    24 3. Go to **Temples Website and Register -> ou will need to copy your WP url and add it to gated sites, you will be granted a bearer token, copy this and enter it into WP->Temple and save.
    25 4. If you now go to a post, you can lock and set your coin limit
    26 
    27 == Frequently Asked Questions ==
    28 
    29 == Screenshots ==
     14Temple allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.
    3015
    3116== Changelog ==
    3217
    33 = 1.0.0 =
    34 * First Release
    35 
    36 = 1.0.1 =
    37 * Added autoload
    38 
    39 = 1.0.3 =
    40 * Updated so that excerpts show full HTML as excerpts break the html, wrapping them in <p> tags
    41 
    42 
    43 
     18= 1.1.0 =
     19* First beta release
  • temple-lock/trunk/composer.json

    r2642018 r2666216  
    11{
    2     "name": "temple/temple-lock",
    3     "description": "This wordpress allows user to lock pages/products.",
    4     "type": "project",
    5     "license": "GPL",
    6     "authors": [{
    7         "name": "Temple",
    8         "email": "omar.ismail@foundersfactory.co"
    9     }],
    10     "minimum-stability": "dev",
    11     "autoload": {
    12         "psr-4": {
    13             "Inc\\": "./includes"
    14         },
    15         "classmap": ["includes/"]
     2  "name": "temple/temple-wordpress-plugin",
     3  "description": "Wordpress plugin to allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.",
     4  "type": "project",
     5  "license": "GPL",
     6  "authors": [
     7    {
     8      "name": "Temple",
     9      "email": "support@temple.fans"
     10    }
     11  ],
     12  "minimum-stability": "dev",
     13  "autoload": {
     14    "psr-4": {
     15      "Inc\\": "./includes"
    1616    },
    17     "require": {
    18         "twbs/bootstrap": "5.0.2",
    19         "datatables/datatables": "1.10.21"
    20     }
     17    "classmap": [
     18      "includes/"
     19    ]
     20  }
    2121}
  • temple-lock/trunk/composer.lock

    r2639455 r2666216  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "653a7f96b5810b22e7ef3467d20a2a16",
    8     "packages": [
    9         {
    10             "name": "datatables/datatables",
    11             "version": "1.10.21",
    12             "source": {
    13                 "type": "git",
    14                 "url": "https://github.com/DataTables/DataTables.git",
    15                 "reference": "83e59694a105225ff889ddfa0d723a3ab24fda78"
    16             },
    17             "dist": {
    18                 "type": "zip",
    19                 "url": "https://api.github.com/repos/DataTables/DataTables/zipball/83e59694a105225ff889ddfa0d723a3ab24fda78",
    20                 "reference": "83e59694a105225ff889ddfa0d723a3ab24fda78",
    21                 "shasum": ""
    22             },
    23             "type": "library",
    24             "notification-url": "https://packagist.org/downloads/",
    25             "license": [
    26                 "MIT"
    27             ],
    28             "description": "DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table.",
    29             "homepage": "http://www.datatables.net/",
    30             "support": {
    31                 "forum": "https://datatables.net/forums",
    32                 "source": "https://github.com/DataTables/DataTablesSrc/"
    33             },
    34             "time": "2020-05-21T10:08:44+00:00"
    35         },
    36         {
    37             "name": "twbs/bootstrap",
    38             "version": "v5.0.2",
    39             "source": {
    40                 "type": "git",
    41                 "url": "https://github.com/twbs/bootstrap.git",
    42                 "reference": "688bce4fa695cc360a0d084e34f029b0c192b223"
    43             },
    44             "dist": {
    45                 "type": "zip",
    46                 "url": "https://api.github.com/repos/twbs/bootstrap/zipball/688bce4fa695cc360a0d084e34f029b0c192b223",
    47                 "reference": "688bce4fa695cc360a0d084e34f029b0c192b223",
    48                 "shasum": ""
    49             },
    50             "replace": {
    51                 "twitter/bootstrap": "self.version"
    52             },
    53             "type": "library",
    54             "notification-url": "https://packagist.org/downloads/",
    55             "license": [
    56                 "MIT"
    57             ],
    58             "authors": [
    59                 {
    60                     "name": "Mark Otto",
    61                     "email": "markdotto@gmail.com"
    62                 },
    63                 {
    64                     "name": "Jacob Thornton",
    65                     "email": "jacobthornton@gmail.com"
    66                 }
    67             ],
    68             "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
    69             "homepage": "https://getbootstrap.com/",
    70             "keywords": [
    71                 "JS",
    72                 "css",
    73                 "framework",
    74                 "front-end",
    75                 "mobile-first",
    76                 "responsive",
    77                 "sass",
    78                 "web"
    79             ],
    80             "support": {
    81                 "issues": "https://github.com/twbs/bootstrap/issues",
    82                 "source": "https://github.com/twbs/bootstrap/tree/v5.0.2"
    83             },
    84             "time": "2021-06-22T18:29:16+00:00"
    85         }
    86     ],
     7    "content-hash": "040beec3966098e0b5392ddce947e90c",
     8    "packages": [],
    879    "packages-dev": [],
    8810    "aliases": [],
     
    9315    "platform": [],
    9416    "platform-dev": [],
    95     "plugin-api-version": "2.0.0"
     17    "plugin-api-version": "2.2.0"
    9618}
  • temple-lock/trunk/includes/Init.php

    r2639455 r2666216  
    22
    33/**
    4  * @package Temple Lock
    5  *
     4 * @package Temple
    65 */
    76
    87namespace Inc;
    98
    10 use Inc\Base\Controllers\LockEditController;
    11 use Inc\Base\Controllers\LockStatusController;
    129
    1310final class Init
     
    1613    {
    1714        return [
    18             Base\Enqueue::class,
    19             Base\SettingLink::class,
    20             Base\ContentLock::class,
    21             Pages\Dashboard::class,
    22             LockStatusController::class,
    23             LockEditController::class,
     15            Admin\Settings::class,
     16            ContentLock::class,
    2417        ];
    2518    }
     
    4942        return new $class();
    5043    }
    51 
    52        
    5344}
  • temple-lock/trunk/index.php

    r2639077 r2666216  
    1 <?php // Silence is golden
     1<?php
  • temple-lock/trunk/temple-lock.php

    r2650382 r2666216  
    22
    33/**
    4  * Plugin Name:       Temple Lock
     4 * Plugin Name:       Temple
    55 * Plugin URI:        https://temple.fans
    6  * Description:       Temple Lock allows users to lock their products and pages.
    7  * Version:           1.0.3
     6 * Description:       Temple allows creators to lock content so that it can only be accessed by holders of their NFTs or social tokens.
     7 * Version:           1.1.0
    88 * Author:            Temple
    9  * Author URI:        https://api.temple.fans/
    10  * License:           GPL-2.0+
    11  * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
    12  * Text Domain:       temple-lock
    13  * Domain Path:       /languages
     9 * Author URI:        https://temple.fans/
    1410 */
    1511
     
    1814
    1915
    20 defined('WPINC') or die('No script kiddies please!');
     16defined('WPINC') or die();
    2117
    22 defined('TEMPLE_LOCK_VERSION') or define('WFW_VERSION', '1.0.0');
    23 
    24 define('TEMPLE_API_URL', 'https://api.temple.fans/');
     18// Useful constants
     19define('TEMPLE_GQL_URL', 'https://core.temple.fans/graphql');
     20define('TEMPLE_WEB_URL', 'https://temple.fans/');
    2521
    2622if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) {
     
    2824}
    2925
    30 
    3126if (class_exists('Inc\\Init')) {
    3227    Inc\Init::register_services();
    3328}
    34 
    35 /**
    36  * Runs during plugin activation.
    37  */
    38 
    39 function activate_temple_plugin()
    40 {
    41     // require_once plugin_dir_path( __FILE__ ) . 'inc/Base/Activate.php';
    42     // require_once plugin_dir_path( __FILE__ ) . 'inc/Base/Activate.php';
    43     Activate::activate();
    44 }
    45 
    46 /**
    47  * Runs during plugin deactivation.
    48  */
    49 
    50 function deactivate_temple_plugin()
    51 {
    52     Deactivate::deactivate();
    53 }
    54 
    55 register_activation_hook(__FILE__, 'activate_temple_plugin');
    56 
    57 register_deactivation_hook(__FILE__, 'deactivate_temple_plugin');
  • temple-lock/trunk/uninstall.php

    r2639077 r2666216  
    44 * Fired when the plugin is uninstalled.
    55 *
    6  * @package Temple Lock
     6 * @package Temple
    77 */
    88
     
    1212}
    1313
    14 
    1514/**
    1615 * Delete options we have saved
    1716 */
    18 delete_option('wfw_db_version');
    19 
    20 
    21 /**
    22  * Drop tables because users is deleting the plugin
    23  */
    24 global $wpdb;
    25 
    26 $tables = [
    27     $wpdb->prefix . 'wp_tl_products',
    28     $wpdb->prefix . 'wp_tl_pages',
    29 ];
    30 
    31 foreach ($tables as $table) {
    32     $wpdb->query("DROP TABLE IF EXISTS $table");
    33 }
     17delete_option('temple_bearer_token');
     18delete_option('temple_tiers');
  • temple-lock/trunk/vendor/autoload.php

    r2639455 r2666216  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347::getLoader();
     7return ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06::getLoader();
  • temple-lock/trunk/vendor/composer/ClassLoader.php

    r2639455 r2666216  
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     98    /**
     99     * @var self[]
     100     */
     101    private static $registeredLoaders = array();
     102
     103    /**
     104     * @param ?string $vendorDir
     105     */
     106    public function __construct($vendorDir = null)
     107    {
     108        $this->vendorDir = $vendorDir;
     109    }
     110
     111    /**
     112     * @return string[]
     113     */
    60114    public function getPrefixes()
    61115    {
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-return array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    90      * @param array $classMap Class to filename map
     160     * @param string[] $classMap Class to filename map
     161     * @psalm-param array<string, string> $classMap
     162     *
     163     * @return void
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    105      * @param string       $prefix  The prefix
    106      * @param array|string $paths   The PSR-0 root directories
    107      * @param bool         $prepend Whether to prepend the directories
     178     * @param string          $prefix  The prefix
     179     * @param string[]|string $paths   The PSR-0 root directories
     180     * @param bool            $prepend Whether to prepend the directories
     181     *
     182     * @return void
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     225     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     226     * @param string[]|string $paths   The PSR-4 base directories
     227     * @param bool            $prepend Whether to prepend the directories
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     275     * @param string          $prefix The prefix
     276     * @param string[]|string $paths  The PSR-0 base directories
     277     *
     278     * @return void
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     392
     393        if (null === $this->vendorDir) {
     394            return;
     395        }
     396
     397        if ($prepend) {
     398            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     399        } else {
     400            unset(self::$registeredLoaders[$this->vendorDir]);
     401            self::$registeredLoaders[$this->vendorDir] = $this;
     402        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     478    /**
     479     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     480     *
     481     * @return self[]
     482     */
     483    public static function getRegisteredLoaders()
     484    {
     485        return self::$registeredLoaders;
     486    }
     487
     488    /**
     489     * @param  string       $class
     490     * @param  string       $ext
     491     * @return string|false
     492     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • temple-lock/trunk/vendor/composer/autoload_classmap.php

    r2639455 r2666216  
    88return array(
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    10     'Inc\\Api\\Callback\\AdminCallback' => $baseDir . '/includes/Api/Callback/AdminCallback.php',
    11     'Inc\\Api\\Callback\\ManagerCallback' => $baseDir . '/includes/Api/Callback/ManagerCallback.php',
    12     'Inc\\Api\\SettingApi' => $baseDir . '/includes/Api/SettingApi.php',
    13     'Inc\\Base\\Activate' => $baseDir . '/includes/Base/Activate.php',
    14     'Inc\\Base\\ContentLock' => $baseDir . '/includes/Base/ContentLock.php',
    15     'Inc\\Base\\Controllers\\BaseController' => $baseDir . '/includes/Base/Controllers/BaseController.php',
    16     'Inc\\Base\\Controllers\\LockEditController' => $baseDir . '/includes/Base/Controllers/LockEditController.php',
    17     'Inc\\Base\\Controllers\\LockStatusController' => $baseDir . '/includes/Base/Controllers/LockStatusController.php',
    18     'Inc\\Base\\Deactivate' => $baseDir . '/includes/Base/Deactivate.php',
    19     'Inc\\Base\\Enqueue' => $baseDir . '/includes/Base/Enqueue.php',
    20     'Inc\\Base\\SettingLink' => $baseDir . '/includes/Base/SettingLink.php',
     10    'Inc\\Admin\\AdminCallback' => $baseDir . '/includes/Admin/AdminCallback.php',
     11    'Inc\\Admin\\SettingApi' => $baseDir . '/includes/Admin/SettingApi.php',
     12    'Inc\\Admin\\Settings' => $baseDir . '/includes/Admin/Settings.php',
     13    'Inc\\BaseController' => $baseDir . '/includes/BaseController.php',
     14    'Inc\\ContentLock' => $baseDir . '/includes/ContentLock.php',
    2115    'Inc\\Init' => $baseDir . '/includes/Init.php',
    22     'Inc\\Pages\\Dashboard' => $baseDir . '/includes/Pages/Dashboard.php',
    2316);
  • temple-lock/trunk/vendor/composer/autoload_real.php

    r2639455 r2666216  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347
     5class ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInitf1a069e92d81a6cf3d1b7a46b3624347', 'loadClassLoader'));
     25        spl_autoload_register(array('ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06', 'loadClassLoader'), true, true);
     26        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit97fdbf34de8779d130c9bf55c3718f06', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
  • temple-lock/trunk/vendor/composer/autoload_static.php

    r2639455 r2666216  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347
     7class ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2323    public static $classMap = array (
    2424        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    25         'Inc\\Api\\Callback\\AdminCallback' => __DIR__ . '/../..' . '/includes/Api/Callback/AdminCallback.php',
    26         'Inc\\Api\\Callback\\ManagerCallback' => __DIR__ . '/../..' . '/includes/Api/Callback/ManagerCallback.php',
    27         'Inc\\Api\\SettingApi' => __DIR__ . '/../..' . '/includes/Api/SettingApi.php',
    28         'Inc\\Base\\Activate' => __DIR__ . '/../..' . '/includes/Base/Activate.php',
    29         'Inc\\Base\\ContentLock' => __DIR__ . '/../..' . '/includes/Base/ContentLock.php',
    30         'Inc\\Base\\Controllers\\BaseController' => __DIR__ . '/../..' . '/includes/Base/Controllers/BaseController.php',
    31         'Inc\\Base\\Controllers\\LockEditController' => __DIR__ . '/../..' . '/includes/Base/Controllers/LockEditController.php',
    32         'Inc\\Base\\Controllers\\LockStatusController' => __DIR__ . '/../..' . '/includes/Base/Controllers/LockStatusController.php',
    33         'Inc\\Base\\Deactivate' => __DIR__ . '/../..' . '/includes/Base/Deactivate.php',
    34         'Inc\\Base\\Enqueue' => __DIR__ . '/../..' . '/includes/Base/Enqueue.php',
    35         'Inc\\Base\\SettingLink' => __DIR__ . '/../..' . '/includes/Base/SettingLink.php',
     25        'Inc\\Admin\\AdminCallback' => __DIR__ . '/../..' . '/includes/Admin/AdminCallback.php',
     26        'Inc\\Admin\\SettingApi' => __DIR__ . '/../..' . '/includes/Admin/SettingApi.php',
     27        'Inc\\Admin\\Settings' => __DIR__ . '/../..' . '/includes/Admin/Settings.php',
     28        'Inc\\BaseController' => __DIR__ . '/../..' . '/includes/BaseController.php',
     29        'Inc\\ContentLock' => __DIR__ . '/../..' . '/includes/ContentLock.php',
    3630        'Inc\\Init' => __DIR__ . '/../..' . '/includes/Init.php',
    37         'Inc\\Pages\\Dashboard' => __DIR__ . '/../..' . '/includes/Pages/Dashboard.php',
    3831    );
    3932
     
    4134    {
    4235        return \Closure::bind(function () use ($loader) {
    43             $loader->prefixLengthsPsr4 = ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::$prefixLengthsPsr4;
    44             $loader->prefixDirsPsr4 = ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::$prefixDirsPsr4;
    45             $loader->classMap = ComposerStaticInitf1a069e92d81a6cf3d1b7a46b3624347::$classMap;
     36            $loader->prefixLengthsPsr4 = ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::$prefixLengthsPsr4;
     37            $loader->prefixDirsPsr4 = ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::$prefixDirsPsr4;
     38            $loader->classMap = ComposerStaticInit97fdbf34de8779d130c9bf55c3718f06::$classMap;
    4639
    4740        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.