Plugin Directory

Changeset 2932862


Ignore:
Timestamp:
07/01/2023 10:36:01 AM (3 years ago)
Author:
mukto90
Message:

reinit

Location:
mdc-target-blank/trunk
Files:
60 added
5 deleted
16 edited
1 moved

Legend:

Unmodified
Added
Removed
  • mdc-target-blank/trunk/.gitignore

    • Property svn:executable set to *
    r2026979 r2932862  
    1 vendor
    21composer.lock
     2package-lock.json
  • mdc-target-blank/trunk/assets/css/admin.css

    • Property svn:executable set to *
    r2026979 r2932862  
     1#mdc-target-blank-modal {
     2    position: fixed;
     3    background: #c8c8c859;
     4    top: 0;
     5    border: 0;
     6    left: 0;
     7    right: 0;
     8    height: 100%;
     9    z-index: 9999;
     10    display: flex;
     11    justify-content: center;
     12    align-items: center;
     13}
     14#mdc-target-blank-modal-loader {
     15    position: absolute;
     16}
  • mdc-target-blank/trunk/assets/css/front.css

    • Property svn:executable set to *
    r2026979 r2932862  
     1#mdc-target-blank-modal {
     2    position: fixed;
     3    background: #c8c8c859;
     4    top: 0;
     5    border: 0;
     6    left: 0;
     7    right: 0;
     8    height: 100%;
     9    z-index: 9999;
     10    display: flex;
     11    justify-content: center;
     12    align-items: center;
     13}
     14#mdc-target-blank-modal-loader {
     15    position: absolute;
     16}
  • mdc-target-blank/trunk/assets/js/admin.js

    • Property svn:executable set to *
    r2026979 r2932862  
     1let tblank_modal = ( show = true ) => {
     2    if(show) {
     3        jQuery('#mdc-target-blank-modal').show();
     4    }
     5    else {
     6        jQuery('#mdc-target-blank-modal').hide();
     7    }
     8}
     9
    110jQuery(function($){
    2    
    311})
  • mdc-target-blank/trunk/assets/js/front.js

    • Property svn:executable set to *
    r2026979 r2932862  
     1let tblank_modal = ( show = true ) => {
     2    if(show) {
     3        jQuery('#mdc-target-blank-modal').show();
     4    }
     5    else {
     6        jQuery('#mdc-target-blank-modal').hide();
     7    }
     8}
     9
    110jQuery(function($){
    211   
  • mdc-target-blank/trunk/composer.json

    • Property svn:executable set to *
    r2026979 r2932862  
    11{
    2     "name": "codexpert/Target_Blank",
    32    "authors": [
    43        {
    5             "name": "Nazmul Ahsan",
    6             "email": "n.mukto@gmail.com"
     4            "name": "Codexpert",
     5            "email": "hi@codexpert.io"
    76        }
    87    ],
    9     "require": {},
     8    "require": {
     9        "codexpert/plugin": "dev-master",
     10        "pluggable/marketing": "^0.2.0"
     11    },
    1012    "autoload": {
    11         "psr-4": {
    12             "codexpert\\Target_Blank\\" : "includes/",
    13             "codexpert\\Remote\\" : "codexpert/"
    14         }
     13        "psr-4": {
     14            "Codexpert\\Target_Blank\\App\\" : "app/"
     15        },
     16        "files": [ "inc/functions.php" ]
    1517    }
    1618}
  • mdc-target-blank/trunk/mdc-target-blank.php

    • Property svn:executable set to *
    r2026978 r2932862  
    11<?php
    2 /*
    3 Plugin Name: Target Blank
    4 Description: Force links in posts or pages to open a new tab. No configuration required.
    5 Plugin URI: https://codexpert.io
    6 Author: Nazmul Ahsan
    7 Author URI: https://nazmulahsan.me
    8 Version: 2.0
    9 Text Domain: target-blank
    10 Domain Path: /languages
    11 */
    12 
    13 namespace codexpert\Target_Blank;
    14 use codexpert\Remote\Survey;
     2/**
     3 * Plugin Name: Target _blank
     4 * Description: Force links in posts or pages to open in a new tab. No configuration required.
     5 * Plugin URI: https://pluggable.io/plugin/mdc-target-blank
     6 * Author: Codexpert, Inc
     7 * Author URI: https://codexpert.io
     8 * Version: 3.0
     9 * Text Domain: mdc-target-blank
     10 * Domain Path: /languages
     11 */
     12
     13namespace Codexpert\Target_Blank;
     14
     15use Codexpert\Plugin\Notice;
     16use Codexpert\Plugin\Feature;
     17use Pluggable\Marketing\Deactivator;
    1518
    1619/**
     
    2124}
    2225
    23 define( 'CXTB', __FILE__ );
    24 
    2526/**
    2627 * Main class for the plugin
    2728 * @package Plugin
    28  * @author Nazmul Ahsan <n.mukto@gmail.com>
     29 * @author Codexpert <hi@codexpert.io>
    2930 */
    30 class Plugin {
     31final class Plugin {
    3132   
    32     public static $_instance;
    33     public $slug;
    34     public $name;
    35     public $version;
    36     public $server;
    37 
    38     public function __construct() {
    39         self::includes();
    40         self::define();
    41         self::hooks();
    42     }
    43 
    44     /**
    45      * Define constants
    46      */
    47     public function define(){
    48         if( !function_exists( 'get_plugin_data' ) ) {
    49             require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    50         }
    51         $this->plugin = get_plugin_data( CXTB );
    52 
    53         $this->slug = $this->plugin['TextDomain'];
    54         $this->name = $this->plugin['Name'];
    55         $this->version = $this->plugin['Version'];
    56         $this->server = 'https://codexpert.io';
     33    /**
     34     * Plugin instance
     35     *
     36     * @access private
     37     *
     38     * @var Plugin
     39     */
     40    private static $_instance;
     41
     42    /**
     43     * The constructor method
     44     *
     45     * @access private
     46     *
     47     * @since 0.9
     48     */
     49    private function __construct() {
     50
     51        /**
     52         * Includes required files
     53         */
     54        $this->include();
     55
     56        /**
     57         * Defines contants
     58         */
     59        $this->define();
     60
     61        /**
     62         * Runs actual hooks
     63         */
     64        $this->hook();
    5765    }
    5866
    5967    /**
    6068     * Includes files
    61      */
    62     public function includes(){
    63         require_once dirname( CXTB ) . '/vendor/autoload.php';
     69     *
     70     * @access private
     71     *
     72     * @uses composer
     73     * @uses psr-4
     74     */
     75    private function include() {
     76        require_once( dirname( __FILE__ ) . '/vendor/autoload.php' );
     77    }
     78
     79    /**
     80     * Define variables and constants
     81     *
     82     * @access private
     83     *
     84     * @uses get_plugin_data
     85     * @uses plugin_basename
     86     */
     87    private function define() {
     88
     89        /**
     90         * Define some constants
     91         *
     92         * @since 0.9
     93         */
     94        define( 'TBLANK', __FILE__ );
     95        define( 'TBLANK_DIR', dirname( TBLANK ) );
     96        define( 'TBLANK_ASSET', plugins_url( 'assets', TBLANK ) );
     97        define( 'TBLANK_DEBUG', apply_filters( 'mdc-target-blank_debug', true ) );
     98
     99        /**
     100         * The plugin data
     101         *
     102         * @since 0.9
     103         * @var $plugin
     104         */
     105        $this->plugin                   = get_plugin_data( TBLANK );
     106        $this->plugin['basename']       = plugin_basename( TBLANK );
     107        $this->plugin['file']           = TBLANK;
     108        $this->plugin['server']         = apply_filters( 'mdc-target-blank_server', 'https://codexpert.io/dashboard' );
     109        $this->plugin['min_php']        = '5.6';
     110        $this->plugin['min_wp']         = '4.0';
     111        $this->plugin['icon']           = TBLANK_ASSET . '/img/icon.png';
     112        $this->plugin['depends']        = [];
     113       
    64114    }
    65115
    66116    /**
    67117     * Hooks
    68      */
    69     public function hooks(){
    70         // i18n
    71         add_action( 'plugins_loaded', array( $this, 'i18n' ) );
    72 
    73         // front hooks
    74         $front = ( isset( $front ) && ! is_null( $front ) ) ? $front : new Front( $this->slug, $this->version );
    75         add_action( 'the_content', array( $front, 'the_content' ) );
    76 
    77         // Product related classes
    78         $survey = ( isset( $survey ) && ! is_null( $survey ) ) ? $survey : new Survey( CXTB, $this->server );
    79 
    80     }
    81 
    82     /**
    83      * Internationalization
    84      */
    85     public function i18n() {
    86         load_plugin_textdomain( 'mdc-target-blank', false, dirname( plugin_basename( CXTB ) ) . '/languages/' );
     118     *
     119     * @access private
     120     *
     121     * Executes main plugin features
     122     *
     123     * To add an action, use $instance->action()
     124     * To apply a filter, use $instance->filter()
     125     * To register a shortcode, use $instance->register()
     126     * To add a hook for logged in users, use $instance->priv()
     127     * To add a hook for non-logged in users, use $instance->nopriv()
     128     *
     129     * @return void
     130     */
     131    private function hook() {
     132
     133        if( is_admin() ) :
     134
     135            /**
     136             * Admin facing hooks
     137             */
     138            $admin = new App\Admin( $this->plugin );
     139            $admin->activate( 'install' );
     140            $admin->action( 'admin_footer', 'modal' );
     141            $admin->action( 'plugins_loaded', 'i18n' );
     142            $admin->action( 'admin_enqueue_scripts', 'enqueue_scripts' );
     143            $admin->action( 'admin_footer_text', 'footer_text' );
     144
     145            /**
     146             * Renders different notices
     147             *
     148             * @package Codexpert\Plugin
     149             *
     150             * @author Codexpert <hi@codexpert.io>
     151             */
     152            $notice = new Notice( $this->plugin );
     153
     154            /**
     155             * Alters featured plugins
     156             *
     157             * @package Codexpert\Plugin
     158             *
     159             * @author Codexpert <hi@codexpert.io>
     160             */
     161            $feature = new Feature( $this->plugin );
     162           
     163            /**
     164             * Marketing module
     165             */
     166            $marekting = new Deactivator( TBLANK );
     167
     168        else : // !is_admin() ?
     169
     170            /**
     171             * Front facing hooks
     172             */
     173            $front = new App\Front( $this->plugin );
     174            $front->action( 'wp_head', 'head' );
     175            $front->action( 'wp_footer', 'modal' );
     176            $front->action( 'wp_enqueue_scripts', 'enqueue_scripts' );
     177            $front->filter( 'the_content', 'the_content' );
     178
     179        endif;
    87180    }
    88181
    89182    /**
    90183     * Cloning is forbidden.
    91      */
    92     private function __clone() { }
     184     *
     185     * @access public
     186     */
     187    public function __clone() { }
    93188
    94189    /**
    95190     * Unserializing instances of this class is forbidden.
    96      */
    97     private function __wakeup() { }
     191     *
     192     * @access public
     193     */
     194    public function __wakeup() { }
    98195
    99196    /**
    100197     * Instantiate the plugin
     198     *
     199     * @access public
     200     *
     201     * @return $_instance
    101202     */
    102203    public static function instance() {
  • mdc-target-blank/trunk/vendor/autoload.php

    r2026979 r2932862  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInit87edf925d3c1c7c843f2481e14c8442a::getLoader();
     25return ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60::getLoader();
  • mdc-target-blank/trunk/vendor/composer/ClassLoader.php

    r2026979 r2932862  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @author Jordi Boggiano <j.boggiano@seld.be>
    40  * @see    http://www.php-fig.org/psr/psr-0/
    41  * @see    http://www.php-fig.org/psr/psr-4/
     40 * @see    https://www.php-fig.org/psr/psr-0/
     41 * @see    https://www.php-fig.org/psr/psr-4/
    4242 */
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var ?string */
     49    private $vendorDir;
     50
    4551    // PSR-4
     52    /**
     53     * @var array[]
     54     * @psalm-var array<string, array<string, int>>
     55     */
    4656    private $prefixLengthsPsr4 = array();
     57    /**
     58     * @var array[]
     59     * @psalm-var array<string, array<int, string>>
     60     */
    4761    private $prefixDirsPsr4 = array();
     62    /**
     63     * @var array[]
     64     * @psalm-var array<string, string>
     65     */
    4866    private $fallbackDirsPsr4 = array();
    4967
    5068    // PSR-0
     69    /**
     70     * @var array[]
     71     * @psalm-var array<string, array<string, string[]>>
     72     */
    5173    private $prefixesPsr0 = array();
     74    /**
     75     * @var array[]
     76     * @psalm-var array<string, string>
     77     */
    5278    private $fallbackDirsPsr0 = array();
    5379
     80    /** @var bool */
    5481    private $useIncludePath = false;
     82
     83    /**
     84     * @var string[]
     85     * @psalm-var array<string, string>
     86     */
    5587    private $classMap = array();
     88
     89    /** @var bool */
    5690    private $classMapAuthoritative = false;
     91
     92    /**
     93     * @var bool[]
     94     * @psalm-var array<string, bool>
     95     */
    5796    private $missingClasses = array();
     97
     98    /** @var ?string */
    5899    private $apcuPrefix;
    59100
     101    /**
     102     * @var self[]
     103     */
     104    private static $registeredLoaders = array();
     105
     106    /**
     107     * @param ?string $vendorDir
     108     */
     109    public function __construct($vendorDir = null)
     110    {
     111        $this->vendorDir = $vendorDir;
     112        self::initializeIncludeClosure();
     113    }
     114
     115    /**
     116     * @return string[]
     117     */
    60118    public function getPrefixes()
    61119    {
    62120        if (!empty($this->prefixesPsr0)) {
    63             return call_user_func_array('array_merge', $this->prefixesPsr0);
     121            return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
    64122        }
    65123
     
    67125    }
    68126
     127    /**
     128     * @return array[]
     129     * @psalm-return array<string, array<int, string>>
     130     */
    69131    public function getPrefixesPsr4()
    70132    {
     
    72134    }
    73135
     136    /**
     137     * @return array[]
     138     * @psalm-return array<string, string>
     139     */
    74140    public function getFallbackDirs()
    75141    {
     
    77143    }
    78144
     145    /**
     146     * @return array[]
     147     * @psalm-return array<string, string>
     148     */
    79149    public function getFallbackDirsPsr4()
    80150    {
     
    82152    }
    83153
     154    /**
     155     * @return string[] Array of classname => path
     156     * @psalm-return array<string, string>
     157     */
    84158    public function getClassMap()
    85159    {
     
    88162
    89163    /**
    90      * @param array $classMap Class to filename map
     164     * @param string[] $classMap Class to filename map
     165     * @psalm-param array<string, string> $classMap
     166     *
     167     * @return void
    91168     */
    92169    public function addClassMap(array $classMap)
     
    103180     * appending or prepending to the ones previously set for this prefix.
    104181     *
    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
     182     * @param string          $prefix  The prefix
     183     * @param string[]|string $paths   The PSR-0 root directories
     184     * @param bool            $prepend Whether to prepend the directories
     185     *
     186     * @return void
    108187     */
    109188    public function add($prefix, $paths, $prepend = false)
     
    148227     * appending or prepending to the ones previously set for this namespace.
    149228     *
    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
     229     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     230     * @param string[]|string $paths   The PSR-4 base directories
     231     * @param bool            $prepend Whether to prepend the directories
    153232     *
    154233     * @throws \InvalidArgumentException
     234     *
     235     * @return void
    155236     */
    156237    public function addPsr4($prefix, $paths, $prepend = false)
     
    196277     * replacing any others previously set for this prefix.
    197278     *
    198      * @param string       $prefix The prefix
    199      * @param array|string $paths  The PSR-0 base directories
     279     * @param string          $prefix The prefix
     280     * @param string[]|string $paths  The PSR-0 base directories
     281     *
     282     * @return void
    200283     */
    201284    public function set($prefix, $paths)
     
    212295     * replacing any others previously set for this namespace.
    213296     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     297     * @param string          $prefix The prefix/namespace, with trailing '\\'
     298     * @param string[]|string $paths  The PSR-4 base directories
    216299     *
    217300     * @throws \InvalidArgumentException
     301     *
     302     * @return void
    218303     */
    219304    public function setPsr4($prefix, $paths)
     
    235320     *
    236321     * @param bool $useIncludePath
     322     *
     323     * @return void
    237324     */
    238325    public function setUseIncludePath($useIncludePath)
     
    257344     *
    258345     * @param bool $classMapAuthoritative
     346     *
     347     * @return void
    259348     */
    260349    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277366     *
    278367     * @param string|null $apcuPrefix
     368     *
     369     * @return void
    279370     */
    280371    public function setApcuPrefix($apcuPrefix)
    281372    {
    282         $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
     373        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
    283374    }
    284375
     
    297388     *
    298389     * @param bool $prepend Whether to prepend the autoloader or not
     390     *
     391     * @return void
    299392     */
    300393    public function register($prepend = false)
    301394    {
    302395        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
     396
     397        if (null === $this->vendorDir) {
     398            return;
     399        }
     400
     401        if ($prepend) {
     402            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
     403        } else {
     404            unset(self::$registeredLoaders[$this->vendorDir]);
     405            self::$registeredLoaders[$this->vendorDir] = $this;
     406        }
    303407    }
    304408
    305409    /**
    306410     * Unregisters this instance as an autoloader.
     411     *
     412     * @return void
    307413     */
    308414    public function unregister()
    309415    {
    310416        spl_autoload_unregister(array($this, 'loadClass'));
     417
     418        if (null !== $this->vendorDir) {
     419            unset(self::$registeredLoaders[$this->vendorDir]);
     420        }
    311421    }
    312422
     
    315425     *
    316426     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     427     * @return true|null True if loaded, null otherwise
    318428     */
    319429    public function loadClass($class)
    320430    {
    321431        if ($file = $this->findFile($class)) {
    322             includeFile($file);
     432            (self::$includeFile)($file);
    323433
    324434            return true;
    325435        }
     436
     437        return null;
    326438    }
    327439
     
    368480    }
    369481
     482    /**
     483     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     484     *
     485     * @return self[]
     486     */
     487    public static function getRegisteredLoaders()
     488    {
     489        return self::$registeredLoaders;
     490    }
     491
     492    /**
     493     * @param  string       $class
     494     * @param  string       $ext
     495     * @return string|false
     496     */
    370497    private function findFileWithExtension($class, $ext)
    371498    {
     
    378505            while (false !== $lastPos = strrpos($subPath, '\\')) {
    379506                $subPath = substr($subPath, 0, $lastPos);
    380                 $search = $subPath.'\\';
     507                $search = $subPath . '\\';
    381508                if (isset($this->prefixDirsPsr4[$search])) {
    382509                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
     
    433560        return false;
    434561    }
     562
     563    private static function initializeIncludeClosure(): void
     564    {
     565        if (self::$includeFile !== null) {
     566            return;
     567        }
     568
     569        /**
     570         * Scope isolated include.
     571         *
     572         * Prevents access to $this/self from included files.
     573         *
     574         * @param  string $file
     575         * @return void
     576         */
     577        self::$includeFile = static function($file) {
     578            include $file;
     579        };
     580    }
    435581}
    436 
    437 /**
    438  * Scope isolated include.
    439  *
    440  * Prevents access to $this/self from included files.
    441  */
    442 function includeFile($file)
    443 {
    444     include $file;
    445 }
  • mdc-target-blank/trunk/vendor/composer/LICENSE

    r2026979 r2932862  
    1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
    2 Upstream-Name: Composer
    3 Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>
    4 Source: https://github.com/composer/composer
    51
    6 Files: *
    7 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    8            2016, Jordi Boggiano <j.boggiano@seld.be>
    9 License: Expat
     2Copyright (c) Nils Adermann, Jordi Boggiano
    103
    11 Files: src/Composer/Util/TlsHelper.php
    12 Copyright: 2016, Nils Adermann <naderman@naderman.de>
    13            2016, Jordi Boggiano <j.boggiano@seld.be>
    14            2013, Evan Coury <me@evancoury.com>
    15 License: Expat and BSD-2-Clause
     4Permission is hereby granted, free of charge, to any person obtaining a copy
     5of this software and associated documentation files (the "Software"), to deal
     6in the Software without restriction, including without limitation the rights
     7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8copies of the Software, and to permit persons to whom the Software is furnished
     9to do so, subject to the following conditions:
    1610
    17 License: BSD-2-Clause
    18  Redistribution and use in source and binary forms, with or without modification,
    19  are permitted provided that the following conditions are met:
    20  .
    21      * Redistributions of source code must retain the above copyright notice,
    22        this list of conditions and the following disclaimer.
    23  .
    24      * Redistributions in binary form must reproduce the above copyright notice,
    25        this list of conditions and the following disclaimer in the documentation
    26        and/or other materials provided with the distribution.
    27  .
    28  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    29  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    30  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    31  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    32  ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    33  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    34  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    35  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    36  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    37  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     11The above copyright notice and this permission notice shall be included in all
     12copies or substantial portions of the Software.
    3813
    39 License: Expat
    40  Permission is hereby granted, free of charge, to any person obtaining a copy
    41  of this software and associated documentation files (the "Software"), to deal
    42  in the Software without restriction, including without limitation the rights
    43  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    44  copies of the Software, and to permit persons to whom the Software is furnished
    45  to do so, subject to the following conditions:
    46  .
    47  The above copyright notice and this permission notice shall be included in all
    48  copies or substantial portions of the Software.
    49  .
    50  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    51  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    52  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    53  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    54  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    55  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    56  THE SOFTWARE.
     14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     20THE SOFTWARE.
     21
  • mdc-target-blank/trunk/vendor/composer/autoload_classmap.php

    r2026979 r2932862  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
    88return array(
     9    'Codexpert\\Plugin\\Base' => $vendorDir . '/codexpert/plugin/src/Base.php',
     10    'Codexpert\\Plugin\\Deactivator' => $vendorDir . '/codexpert/plugin/src/Deactivator.php',
     11    'Codexpert\\Plugin\\Feature' => $vendorDir . '/codexpert/plugin/src/Feature.php',
     12    'Codexpert\\Plugin\\Fields' => $vendorDir . '/codexpert/plugin/src/Fields.php',
     13    'Codexpert\\Plugin\\License' => $vendorDir . '/codexpert/plugin/src/License.php',
     14    'Codexpert\\Plugin\\Metabox' => $vendorDir . '/codexpert/plugin/src/Metabox.php',
     15    'Codexpert\\Plugin\\Notice' => $vendorDir . '/codexpert/plugin/src/Notice.php',
     16    'Codexpert\\Plugin\\Settings' => $vendorDir . '/codexpert/plugin/src/Settings.php',
     17    'Codexpert\\Plugin\\Setup' => $vendorDir . '/codexpert/plugin/src/Setup.php',
     18    'Codexpert\\Plugin\\Survey' => $vendorDir . '/codexpert/plugin/src/Survey.php',
     19    'Codexpert\\Plugin\\Table' => $vendorDir . '/codexpert/plugin/src/Table.php',
     20    'Codexpert\\Plugin\\Update' => $vendorDir . '/codexpert/plugin/src/Update.php',
     21    'Codexpert\\Plugin\\Widget' => $vendorDir . '/codexpert/plugin/src/Widget.php',
     22    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
     23    'Pluggable\\Marketing\\Deactivator' => $vendorDir . '/pluggable/marketing/src/Deactivator.php',
    924);
  • mdc-target-blank/trunk/vendor/composer/autoload_namespaces.php

    r2026979 r2932862  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • mdc-target-blank/trunk/vendor/composer/autoload_psr4.php

    r2026979 r2932862  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
    88return array(
    9     'codexpert\\Target_Blank\\' => array($baseDir . '/includes'),
    10     'codexpert\\Remote\\' => array($baseDir . '/codexpert'),
     9    'Codexpert\\Target_Blank\\App\\' => array($baseDir . '/app'),
    1110);
  • mdc-target-blank/trunk/vendor/composer/autoload_real.php

    r2026979 r2932862  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit87edf925d3c1c7c843f2481e14c8442a
     5class ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60
    66{
    77    private static $loader;
     
    1414    }
    1515
     16    /**
     17     * @return \Composer\Autoload\ClassLoader
     18     */
    1619    public static function getLoader()
    1720    {
     
    2023        }
    2124
    22         spl_autoload_register(array('ComposerAutoloaderInit87edf925d3c1c7c843f2481e14c8442a', 'loadClassLoader'), true, true);
    23         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit87edf925d3c1c7c843f2481e14c8442a', 'loadClassLoader'));
     25        require __DIR__ . '/platform_check.php';
    2526
    26         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    27         if ($useStaticLoader) {
    28             require_once __DIR__ . '/autoload_static.php';
     27        spl_autoload_register(array('ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9f67e6f6b9ec4a92499a74a7fd8c8d60', 'loadClassLoader'));
    2930
    30             call_user_func(\Composer\Autoload\ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a::getInitializer($loader));
    31         } else {
    32             $map = require __DIR__ . '/autoload_namespaces.php';
    33             foreach ($map as $namespace => $path) {
    34                 $loader->set($namespace, $path);
    35             }
    36 
    37             $map = require __DIR__ . '/autoload_psr4.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->setPsr4($namespace, $path);
    40             }
    41 
    42             $classMap = require __DIR__ . '/autoload_classmap.php';
    43             if ($classMap) {
    44                 $loader->addClassMap($classMap);
    45             }
    46         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::getInitializer($loader));
    4733
    4834        $loader->register(true);
     35
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$files;
     37        $requireFile = static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        };
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            ($requireFile)($fileIdentifier, $file);
     46        }
    4947
    5048        return $loader;
  • mdc-target-blank/trunk/vendor/composer/autoload_static.php

    r2026979 r2932862  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a
     7class ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60
    88{
     9    public static $files = array (
     10        '3643df700757a247351b378bc7c3ac76' => __DIR__ . '/../..' . '/inc/functions.php',
     11    );
     12
    913    public static $prefixLengthsPsr4 = array (
    10         'c' =>
     14        'C' =>
    1115        array (
    12             'codexpert\\Target_Blank\\' => 23,
    13             'codexpert\\Remote\\' => 17,
     16            'Codexpert\\Target_Blank\\App\\' => 27,
    1417        ),
    1518    );
    1619
    1720    public static $prefixDirsPsr4 = array (
    18         'codexpert\\Target_Blank\\' =>
     21        'Codexpert\\Target_Blank\\App\\' =>
    1922        array (
    20             0 => __DIR__ . '/../..' . '/includes',
     23            0 => __DIR__ . '/../..' . '/app',
    2124        ),
    22         'codexpert\\Remote\\' =>
    23         array (
    24             0 => __DIR__ . '/../..' . '/codexpert',
    25         ),
     25    );
     26
     27    public static $classMap = array (
     28        'Codexpert\\Plugin\\Base' => __DIR__ . '/..' . '/codexpert/plugin/src/Base.php',
     29        'Codexpert\\Plugin\\Deactivator' => __DIR__ . '/..' . '/codexpert/plugin/src/Deactivator.php',
     30        'Codexpert\\Plugin\\Feature' => __DIR__ . '/..' . '/codexpert/plugin/src/Feature.php',
     31        'Codexpert\\Plugin\\Fields' => __DIR__ . '/..' . '/codexpert/plugin/src/Fields.php',
     32        'Codexpert\\Plugin\\License' => __DIR__ . '/..' . '/codexpert/plugin/src/License.php',
     33        'Codexpert\\Plugin\\Metabox' => __DIR__ . '/..' . '/codexpert/plugin/src/Metabox.php',
     34        'Codexpert\\Plugin\\Notice' => __DIR__ . '/..' . '/codexpert/plugin/src/Notice.php',
     35        'Codexpert\\Plugin\\Settings' => __DIR__ . '/..' . '/codexpert/plugin/src/Settings.php',
     36        'Codexpert\\Plugin\\Setup' => __DIR__ . '/..' . '/codexpert/plugin/src/Setup.php',
     37        'Codexpert\\Plugin\\Survey' => __DIR__ . '/..' . '/codexpert/plugin/src/Survey.php',
     38        'Codexpert\\Plugin\\Table' => __DIR__ . '/..' . '/codexpert/plugin/src/Table.php',
     39        'Codexpert\\Plugin\\Update' => __DIR__ . '/..' . '/codexpert/plugin/src/Update.php',
     40        'Codexpert\\Plugin\\Widget' => __DIR__ . '/..' . '/codexpert/plugin/src/Widget.php',
     41        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
     42        'Pluggable\\Marketing\\Deactivator' => __DIR__ . '/..' . '/pluggable/marketing/src/Deactivator.php',
    2643    );
    2744
     
    2946    {
    3047        return \Closure::bind(function () use ($loader) {
    31             $loader->prefixLengthsPsr4 = ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a::$prefixLengthsPsr4;
    32             $loader->prefixDirsPsr4 = ComposerStaticInit87edf925d3c1c7c843f2481e14c8442a::$prefixDirsPsr4;
     48            $loader->prefixLengthsPsr4 = ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$prefixLengthsPsr4;
     49            $loader->prefixDirsPsr4 = ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$prefixDirsPsr4;
     50            $loader->classMap = ComposerStaticInit9f67e6f6b9ec4a92499a74a7fd8c8d60::$classMap;
    3351
    3452        }, null, ClassLoader::class);
  • mdc-target-blank/trunk/vendor/composer/installed.json

    r2026979 r2932862  
    1 []
     1{
     2    "packages": [
     3        {
     4            "name": "codexpert/plugin",
     5            "version": "dev-master",
     6            "version_normalized": "dev-master",
     7            "source": {
     8                "type": "git",
     9                "url": "https://bitbucket.org/codexpertio/codexpert-plugin.git",
     10                "reference": "ba199fff1419d9ede59e764dcd5c7d865b71cf29"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://bitbucket.org/codexpertio/codexpert-plugin/get/ba199fff1419d9ede59e764dcd5c7d865b71cf29.zip",
     15                "reference": "ba199fff1419d9ede59e764dcd5c7d865b71cf29",
     16                "shasum": ""
     17            },
     18            "require": {
     19                "php": ">=5.3.0"
     20            },
     21            "time": "2023-06-28T06:07:20+00:00",
     22            "default-branch": true,
     23            "type": "library",
     24            "installation-source": "dist",
     25            "autoload": {
     26                "classmap": [
     27                    "src/"
     28                ]
     29            },
     30            "notification-url": "https://packagist.org/downloads/",
     31            "license": [
     32                "GPL-3.0-or-later"
     33            ],
     34            "authors": [
     35                {
     36                    "name": "Codexpert",
     37                    "email": "hello@codexpert.io",
     38                    "homepage": "https://codexpert.io",
     39                    "role": "Developer"
     40                }
     41            ],
     42            "description": "Plugin tools for Codexpert",
     43            "homepage": "https://bitbucket.org/codexpertio/codexpert-plugin",
     44            "keywords": [
     45                "codexpert",
     46                "plugin"
     47            ],
     48            "support": {
     49                "source": "https://bitbucket.org/codexpertio/codexpert-plugin/src/ba199fff1419d9ede59e764dcd5c7d865b71cf29/?at=master"
     50            },
     51            "install-path": "../codexpert/plugin"
     52        },
     53        {
     54            "name": "pluggable/marketing",
     55            "version": "0.2",
     56            "version_normalized": "0.2.0.0",
     57            "source": {
     58                "type": "git",
     59                "url": "https://bitbucket.org/pluggableio/marketing.git",
     60                "reference": "1bcb43284c3c3fc277d64351f7fce966c045cdb4"
     61            },
     62            "dist": {
     63                "type": "zip",
     64                "url": "https://bitbucket.org/pluggableio/marketing/get/1bcb43284c3c3fc277d64351f7fce966c045cdb4.zip",
     65                "reference": "1bcb43284c3c3fc277d64351f7fce966c045cdb4",
     66                "shasum": ""
     67            },
     68            "require": {
     69                "php": ">=7.2.0"
     70            },
     71            "time": "2023-05-25T14:22:22+00:00",
     72            "type": "library",
     73            "installation-source": "dist",
     74            "autoload": {
     75                "classmap": [
     76                    "src/"
     77                ]
     78            },
     79            "notification-url": "https://packagist.org/downloads/",
     80            "license": [
     81                "GPL-3.0-or-later"
     82            ],
     83            "authors": [
     84                {
     85                    "name": "Pluggable",
     86                    "email": "hi@pluggable.io",
     87                    "homepage": "https://pluggable.io",
     88                    "role": "Developer"
     89                }
     90            ],
     91            "description": "Marketing toolkit for Pluggable plugins",
     92            "homepage": "https://bitbucket.org/pluggableio/marketing/",
     93            "keywords": [
     94                "marketing",
     95                "pluggable"
     96            ],
     97            "support": {
     98                "source": "https://bitbucket.org/pluggableio/marketing/src/1bcb43284c3c3fc277d64351f7fce966c045cdb4/?at=0.2"
     99            },
     100            "install-path": "../pluggable/marketing"
     101        }
     102    ],
     103    "dev": true,
     104    "dev-package-names": []
     105}
  • mdc-target-blank/trunk/views/index.php

    • Property svn:executable set to *
Note: See TracChangeset for help on using the changeset viewer.