Plugin Directory

Changeset 2078823


Ignore:
Timestamp:
05/01/2019 10:47:23 PM (7 years ago)
Author:
waughjai
Message:

Add Media Link

Location:
waj-links
Files:
264 added
9 edited

Legend:

Unmodified
Added
Removed
  • waj-links/trunk/composer.json

    r1979699 r2078823  
    1919        "waughj/wp-post-link": ">=0.2.3",
    2020        "waughj/wp-tag-link": ">=0.1.2",
    21         "waughj/html-phone-link": "*"
     21        "waughj/html-phone-link": "*",
     22        "waughj/wp-media-link": ">=0.2.0"
    2223    }
    2324}
  • waj-links/trunk/composer.lock

    r2010130 r2078823  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "0429a85b49856d848643b9d010ddad91",
     7    "content-hash": "7f9b951ea3878fd97e0e09fffe8f750b",
    88    "packages": [
     9        {
     10            "name": "psr/http-message",
     11            "version": "1.0.1",
     12            "source": {
     13                "type": "git",
     14                "url": "https://github.com/php-fig/http-message.git",
     15                "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
     16            },
     17            "dist": {
     18                "type": "zip",
     19                "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
     20                "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
     21                "shasum": ""
     22            },
     23            "require": {
     24                "php": ">=5.3.0"
     25            },
     26            "type": "library",
     27            "extra": {
     28                "branch-alias": {
     29                    "dev-master": "1.0.x-dev"
     30                }
     31            },
     32            "autoload": {
     33                "psr-4": {
     34                    "Psr\\Http\\Message\\": "src/"
     35                }
     36            },
     37            "notification-url": "https://packagist.org/downloads/",
     38            "license": [
     39                "MIT"
     40            ],
     41            "authors": [
     42                {
     43                    "name": "PHP-FIG",
     44                    "homepage": "http://www.php-fig.org/"
     45                }
     46            ],
     47            "description": "Common interface for HTTP messages",
     48            "homepage": "https://github.com/php-fig/http-message",
     49            "keywords": [
     50                "http",
     51                "http-message",
     52                "psr",
     53                "psr-7",
     54                "request",
     55                "response"
     56            ],
     57            "time": "2016-08-06T14:39:51+00:00"
     58        },
     59        {
     60            "name": "spatie/macroable",
     61            "version": "1.0.0",
     62            "source": {
     63                "type": "git",
     64                "url": "https://github.com/spatie/macroable.git",
     65                "reference": "74b0d189ce75142f1706aad834d5a428dfc7c3c3"
     66            },
     67            "dist": {
     68                "type": "zip",
     69                "url": "https://api.github.com/repos/spatie/macroable/zipball/74b0d189ce75142f1706aad834d5a428dfc7c3c3",
     70                "reference": "74b0d189ce75142f1706aad834d5a428dfc7c3c3",
     71                "shasum": ""
     72            },
     73            "require": {
     74                "php": "^7.0"
     75            },
     76            "require-dev": {
     77                "phpunit/phpunit": "^6.3"
     78            },
     79            "type": "library",
     80            "autoload": {
     81                "psr-4": {
     82                    "Spatie\\Macroable\\": "src"
     83                }
     84            },
     85            "notification-url": "https://packagist.org/downloads/",
     86            "license": [
     87                "MIT"
     88            ],
     89            "authors": [
     90                {
     91                    "name": "Freek Van der Herten",
     92                    "email": "freek@spatie.be",
     93                    "homepage": "https://spatie.be",
     94                    "role": "Developer"
     95                }
     96            ],
     97            "description": "A trait to dynamically add methods to a class",
     98            "homepage": "https://github.com/spatie/macroable",
     99            "keywords": [
     100                "macroable",
     101                "spatie"
     102            ],
     103            "time": "2017-09-18T09:51:20+00:00"
     104        },
     105        {
     106            "name": "spatie/url",
     107            "version": "1.3.0",
     108            "source": {
     109                "type": "git",
     110                "url": "https://github.com/spatie/url.git",
     111                "reference": "d57c19baf1586d335f30c126681a9487da01809b"
     112            },
     113            "dist": {
     114                "type": "zip",
     115                "url": "https://api.github.com/repos/spatie/url/zipball/d57c19baf1586d335f30c126681a9487da01809b",
     116                "reference": "d57c19baf1586d335f30c126681a9487da01809b",
     117                "shasum": ""
     118            },
     119            "require": {
     120                "php": "^7.0",
     121                "psr/http-message": "^1.0",
     122                "spatie/macroable": "^1.0"
     123            },
     124            "require-dev": {
     125                "phpunit/phpunit": "^6.4"
     126            },
     127            "type": "library",
     128            "autoload": {
     129                "psr-4": {
     130                    "Spatie\\Url\\": "src"
     131                }
     132            },
     133            "notification-url": "https://packagist.org/downloads/",
     134            "license": [
     135                "MIT"
     136            ],
     137            "authors": [
     138                {
     139                    "name": "Sebastian De Deyne",
     140                    "email": "sebastian@spatie.be",
     141                    "homepage": "https://spatie.be",
     142                    "role": "Developer"
     143                }
     144            ],
     145            "description": "Parse, build and manipulate URL's",
     146            "homepage": "https://github.com/spatie/url",
     147            "keywords": [
     148                "spatie",
     149                "url"
     150            ],
     151            "time": "2018-01-02T20:50:05+00:00"
     152        },
     153        {
     154            "name": "waughj/directory",
     155            "version": "0.3.0",
     156            "source": {
     157                "type": "git",
     158                "url": "https://github.com/waughjai/directory.git",
     159                "reference": "ee52acc01d4660a383337b2bf761af2bd153a084"
     160            },
     161            "dist": {
     162                "type": "zip",
     163                "url": "https://api.github.com/repos/waughjai/directory/zipball/ee52acc01d4660a383337b2bf761af2bd153a084",
     164                "reference": "ee52acc01d4660a383337b2bf761af2bd153a084",
     165                "shasum": ""
     166            },
     167            "require": {
     168                "php": ">=7.0",
     169                "waughj/verified-arguments-same-type": "*"
     170            },
     171            "require-dev": {
     172                "phpunit/phpunit": "*"
     173            },
     174            "type": "libraryt",
     175            "autoload": {
     176                "psr-4": {
     177                    "WaughJ\\Directory\\": "src/"
     178                }
     179            },
     180            "notification-url": "https://packagist.org/downloads/",
     181            "license": [
     182                "GPL-2.0-or-later"
     183            ],
     184            "authors": [
     185                {
     186                    "name": "Jaimeson Waugh",
     187                    "email": "waughjai@gmail.com"
     188                }
     189            ],
     190            "description": "Simple class for encapsulating file directory object.",
     191            "keywords": [
     192                "directory",
     193                "file"
     194            ],
     195            "time": "2019-04-18T20:50:42+00:00"
     196        },
     197        {
     198            "name": "waughj/file-loader",
     199            "version": "0.4.2",
     200            "source": {
     201                "type": "git",
     202                "url": "https://github.com/waughjai/file-loader.git",
     203                "reference": "5ed773b2e739a6e07bbabc3d85f0f86015861b5f"
     204            },
     205            "dist": {
     206                "type": "zip",
     207                "url": "https://api.github.com/repos/waughjai/file-loader/zipball/5ed773b2e739a6e07bbabc3d85f0f86015861b5f",
     208                "reference": "5ed773b2e739a6e07bbabc3d85f0f86015861b5f",
     209                "shasum": ""
     210            },
     211            "require": {
     212                "php": ">=7.0",
     213                "spatie/url": "*",
     214                "waughj/directory": "*",
     215                "waughj/test-hash-item": "*",
     216                "waughj/verified-arguments": "*"
     217            },
     218            "require-dev": {
     219                "phpunit/phpunit": "6.*"
     220            },
     221            "type": "library",
     222            "autoload": {
     223                "psr-4": {
     224                    "WaughJ\\FileLoader\\": "src/"
     225                }
     226            },
     227            "notification-url": "https://packagist.org/downloads/",
     228            "license": [
     229                "GPL-2.0-or-later"
     230            ],
     231            "authors": [
     232                {
     233                    "name": "Jaimeson Waugh",
     234                    "email": "waughjai@gmail.com"
     235                }
     236            ],
     237            "description": "Object for easily generating image sources with autoversioning for handling cache corruption.",
     238            "keywords": [
     239                "file",
     240                "loader"
     241            ],
     242            "time": "2018-12-12T20:32:53+00:00"
     243        },
    9244        {
    10245            "name": "waughj/html-attribute",
     
    96331        },
    97332        {
     333            "name": "waughj/html-image",
     334            "version": "0.5.2",
     335            "source": {
     336                "type": "git",
     337                "url": "https://github.com/waughjai/html-image.git",
     338                "reference": "d3ebf8649ae7bdb5201bd44b6aad9c3ecd8e9b5b"
     339            },
     340            "dist": {
     341                "type": "zip",
     342                "url": "https://api.github.com/repos/waughjai/html-image/zipball/d3ebf8649ae7bdb5201bd44b6aad9c3ecd8e9b5b",
     343                "reference": "d3ebf8649ae7bdb5201bd44b6aad9c3ecd8e9b5b",
     344                "shasum": ""
     345            },
     346            "require": {
     347                "php": ">=7.0",
     348                "waughj/file-loader": "*",
     349                "waughj/html-attribute-list": ">=1.1.0",
     350                "waughj/test-hash-item": ">=1.1"
     351            },
     352            "require-dev": {
     353                "ngiusti/random-string-generator": "*",
     354                "phpunit/phpunit": "6.*"
     355            },
     356            "type": "library",
     357            "autoload": {
     358                "psr-4": {
     359                    "WaughJ\\HTMLImage\\": "src/"
     360                }
     361            },
     362            "notification-url": "https://packagist.org/downloads/",
     363            "license": [
     364                "GPL-2.0-or-later"
     365            ],
     366            "authors": [
     367                {
     368                    "name": "Jaimeson Waugh",
     369                    "email": "waughjai@gmail.com"
     370                }
     371            ],
     372            "description": "Simple class for automatically generating image HTML code.",
     373            "keywords": [
     374                "autogenerate",
     375                "html",
     376                "image"
     377            ],
     378            "time": "2018-12-31T19:20:05+00:00"
     379        },
     380        {
    98381            "name": "waughj/html-link",
    99382            "version": "1.2.7",
     
    275558            ],
    276559            "time": "2018-11-29T20:46:20+00:00"
     560        },
     561        {
     562            "name": "waughj/verified-arguments",
     563            "version": "0.6.0",
     564            "source": {
     565                "type": "git",
     566                "url": "https://github.com/waughjai/verified-arguments.git",
     567                "reference": "1a1c9158d6c97f62eea1c51e8ee6039408f2a8d8"
     568            },
     569            "dist": {
     570                "type": "zip",
     571                "url": "https://api.github.com/repos/waughjai/verified-arguments/zipball/1a1c9158d6c97f62eea1c51e8ee6039408f2a8d8",
     572                "reference": "1a1c9158d6c97f62eea1c51e8ee6039408f2a8d8",
     573                "shasum": ""
     574            },
     575            "require": {
     576                "php": ">=7.0"
     577            },
     578            "require-dev": {
     579                "phpunit/phpunit": "6.*"
     580            },
     581            "type": "library",
     582            "autoload": {
     583                "psr-4": {
     584                    "WaughJ\\VerifiedArguments\\": "src/"
     585                }
     586            },
     587            "notification-url": "https://packagist.org/downloads/",
     588            "license": [
     589                "GPL-2.0-or-later"
     590            ],
     591            "authors": [
     592                {
     593                    "name": "Jaimeson Waugh",
     594                    "email": "waughjai@gmail.com"
     595                }
     596            ],
     597            "description": "Safer & simpler way to handle verifying an array o' arguments by existence & type.",
     598            "keywords": [
     599                "arguments",
     600                "array",
     601                "safety"
     602            ],
     603            "time": "2019-01-10T23:55:47+00:00"
     604        },
     605        {
     606            "name": "waughj/verified-arguments-same-type",
     607            "version": "0.1.0",
     608            "source": {
     609                "type": "git",
     610                "url": "https://github.com/waughjai/verified-arguments-same-type.git",
     611                "reference": "dcd896138233adceeab3e3cfe48da0bb26d70e19"
     612            },
     613            "dist": {
     614                "type": "zip",
     615                "url": "https://api.github.com/repos/waughjai/verified-arguments-same-type/zipball/dcd896138233adceeab3e3cfe48da0bb26d70e19",
     616                "reference": "dcd896138233adceeab3e3cfe48da0bb26d70e19",
     617                "shasum": ""
     618            },
     619            "require": {
     620                "php": ">=7.0",
     621                "waughj/verified-arguments": ">=0.5"
     622            },
     623            "require-dev": {
     624                "phpunit/phpunit": "6.*"
     625            },
     626            "type": "library",
     627            "autoload": {
     628                "psr-4": {
     629                    "WaughJ\\VerifiedArgumentsSameType\\": "src/"
     630                }
     631            },
     632            "notification-url": "https://packagist.org/downloads/",
     633            "license": [
     634                "GPL-2.0-or-later"
     635            ],
     636            "authors": [
     637                {
     638                    "name": "Jaimeson Waugh",
     639                    "email": "waughjai@gmail.com"
     640                }
     641            ],
     642            "description": "List o' verified arguments wherein given arguments must be the same type as defaults.",
     643            "keywords": [
     644                "arguments",
     645                "array",
     646                "safety",
     647                "type"
     648            ],
     649            "time": "2018-10-24T17:57:03+00:00"
    277650        },
    278651        {
     
    323696        },
    324697        {
     698            "name": "waughj/wp-get-image-sizes",
     699            "version": "0.1.2",
     700            "source": {
     701                "type": "git",
     702                "url": "https://github.com/waughjai/wp-get-image-sizes.git",
     703                "reference": "b7874222fa3b2e09456d10ed35029c9972113766"
     704            },
     705            "dist": {
     706                "type": "zip",
     707                "url": "https://api.github.com/repos/waughjai/wp-get-image-sizes/zipball/b7874222fa3b2e09456d10ed35029c9972113766",
     708                "reference": "b7874222fa3b2e09456d10ed35029c9972113766",
     709                "shasum": ""
     710            },
     711            "require": {
     712                "php": ">=7.0"
     713            },
     714            "require-dev": {
     715                "phpunit/phpunit": "6.*"
     716            },
     717            "type": "library",
     718            "autoload": {
     719                "files": [
     720                    "src/WPGetImageSizes.php",
     721                    "src/WPImageSize.php"
     722                ]
     723            },
     724            "notification-url": "https://packagist.org/downloads/",
     725            "license": [
     726                "GPL-2.0-or-later"
     727            ],
     728            "authors": [
     729                {
     730                    "name": "Jaimeson Waugh",
     731                    "email": "waughjai@gmail.com"
     732                }
     733            ],
     734            "description": "Simple function for getting media image sizes for WordPress.",
     735            "keywords": [
     736                "image sizes",
     737                "media",
     738                "wordpress"
     739            ],
     740            "time": "2018-12-04T17:13:46+00:00"
     741        },
     742        {
    325743            "name": "waughj/wp-home-link",
    326744            "version": "0.1.5",
     
    369787        },
    370788        {
     789            "name": "waughj/wp-media-link",
     790            "version": "0.2.0",
     791            "source": {
     792                "type": "git",
     793                "url": "https://github.com/waughjai/wp-media-link.git",
     794                "reference": "ed65b925334709a933d9e4bb96f284257ac5e7e7"
     795            },
     796            "dist": {
     797                "type": "zip",
     798                "url": "https://api.github.com/repos/waughjai/wp-media-link/zipball/ed65b925334709a933d9e4bb96f284257ac5e7e7",
     799                "reference": "ed65b925334709a933d9e4bb96f284257ac5e7e7",
     800                "shasum": ""
     801            },
     802            "require": {
     803                "php": ">=7.0",
     804                "waughj/html-link": ">=1.2.7",
     805                "waughj/wp-upload-image": ">=0.1.2"
     806            },
     807            "require-dev": {
     808                "phpunit/phpunit": "*"
     809            },
     810            "type": "library",
     811            "autoload": {
     812                "psr-4": {
     813                    "WaughJ\\WPMediaLink\\": "src/"
     814                }
     815            },
     816            "notification-url": "https://packagist.org/downloads/",
     817            "license": [
     818                "GPL-2.0-or-later"
     819            ],
     820            "authors": [
     821                {
     822                    "name": "Jaimeson Waugh",
     823                    "email": "waughjai@gmail.com"
     824                }
     825            ],
     826            "description": "Class & WordPress shortcode for easily generating link to media file.",
     827            "keywords": [
     828                "link",
     829                "media",
     830                "wordpress"
     831            ],
     832            "time": "2019-05-01T22:34:54+00:00"
     833        },
     834        {
    371835            "name": "waughj/wp-post-link",
    372836            "version": "0.2.6",
     
    460924            ],
    461925            "time": "2018-11-12T20:39:21+00:00"
     926        },
     927        {
     928            "name": "waughj/wp-upload-image",
     929            "version": "0.1.2",
     930            "source": {
     931                "type": "git",
     932                "url": "https://github.com/waughjai/wp-upload-image.git",
     933                "reference": "f72d93d47ac7796e999fd3054061e20451f435ae"
     934            },
     935            "dist": {
     936                "type": "zip",
     937                "url": "https://api.github.com/repos/waughjai/wp-upload-image/zipball/f72d93d47ac7796e999fd3054061e20451f435ae",
     938                "reference": "f72d93d47ac7796e999fd3054061e20451f435ae",
     939                "shasum": ""
     940            },
     941            "require": {
     942                "php": ">=7.0",
     943                "waughj/file-loader": ">=0.2.0",
     944                "waughj/html-image": ">=0.3.0",
     945                "waughj/test-hash-item": "*",
     946                "waughj/wp-get-image-sizes": "*"
     947            },
     948            "require-dev": {
     949                "phpunit/phpunit": "6.*"
     950            },
     951            "type": "library",
     952            "autoload": {
     953                "psr-4": {
     954                    "WaughJ\\WPUploadImage\\": "src/"
     955                }
     956            },
     957            "notification-url": "https://packagist.org/downloads/",
     958            "license": [
     959                "GPL-2.0-or-later"
     960            ],
     961            "authors": [
     962                {
     963                    "name": "Jaimeson Waugh",
     964                    "email": "waughjai@gmail.com"
     965                }
     966            ],
     967            "description": "Class for autogenerating HTML for WordPress media image with just the ID.",
     968            "keywords": [
     969                "media image",
     970                "wordpress"
     971            ],
     972            "time": "2019-01-03T19:22:27+00:00"
    462973        }
    463974    ],
  • waj-links/trunk/readme.txt

    r2058441 r2078823  
    33Tags: link, html, auto-generate
    44Requires at least: 4.9.8
    5 Tested up to: 5.1
    6 Stable tag: 1.1.2
     5Tested up to: 5.1.1
     6Stable tag: 1.2.0
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    9494== Changelog ==
    9595
     96= 1.2 =
     97* Add media link.
     98
    9699= 1.1 =
    97100* Add phone link.
  • waj-links/trunk/vendor/composer/ClassLoader.php

    r1973233 r2078823  
    280280    public function setApcuPrefix($apcuPrefix)
    281281    {
    282         $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
     282        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
    283283    }
    284284
     
    378378            while (false !== $lastPos = strrpos($subPath, '\\')) {
    379379                $subPath = substr($subPath, 0, $lastPos);
    380                 $search = $subPath.'\\';
     380                $search = $subPath . '\\';
    381381                if (isset($this->prefixDirsPsr4[$search])) {
    382382                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
  • waj-links/trunk/vendor/composer/autoload_files.php

    r1973233 r2078823  
    88return array(
    99    '990b2064fc295be6b464454625577348' => $vendorDir . '/waughj/test-hash-item/src/TestHashItem.php',
     10    '7b60086461ccf14e1bd3ba71f3e9533c' => $vendorDir . '/waughj/wp-get-image-sizes/src/WPGetImageSizes.php',
     11    '09ef4a3370760ead893fda985cf312a9' => $vendorDir . '/waughj/wp-get-image-sizes/src/WPImageSize.php',
    1012);
  • waj-links/trunk/vendor/composer/autoload_psr4.php

    r1979699 r2078823  
    77
    88return array(
     9    'WaughJ\\WPUploadImage\\' => array($vendorDir . '/waughj/wp-upload-image/src'),
    910    'WaughJ\\WPTagLink\\' => array($vendorDir . '/waughj/wp-tag-link/src'),
    1011    'WaughJ\\WPPostLink\\' => array($vendorDir . '/waughj/wp-post-link/src'),
     12    'WaughJ\\WPMediaLink\\' => array($vendorDir . '/waughj/wp-media-link/src'),
    1113    'WaughJ\\WPHomeLink\\' => array($vendorDir . '/waughj/wp-home-link/src'),
    1214    'WaughJ\\WPCategoryLink\\' => array($vendorDir . '/waughj/wp-category-link/src'),
     15    'WaughJ\\VerifiedArguments\\' => array($vendorDir . '/waughj/verified-arguments/src'),
     16    'WaughJ\\VerifiedArgumentsSameType\\' => array($vendorDir . '/waughj/verified-arguments-same-type/src'),
    1317    'WaughJ\\HTMLPhoneLink\\' => array($vendorDir . '/waughj/html-phone-link/src'),
    1418    'WaughJ\\HTMLMailLink\\' => array($vendorDir . '/waughj/html-mail-link/src'),
    1519    'WaughJ\\HTMLLink\\' => array($vendorDir . '/waughj/html-link/src'),
     20    'WaughJ\\HTMLImage\\' => array($vendorDir . '/waughj/html-image/src'),
    1621    'WaughJ\\HTMLAttribute\\' => array($vendorDir . '/waughj/html-attribute/src'),
    1722    'WaughJ\\HTMLAttributeList\\' => array($vendorDir . '/waughj/html-attribute-list/src'),
     23    'WaughJ\\FileLoader\\' => array($vendorDir . '/waughj/file-loader/src'),
     24    'WaughJ\\Directory\\' => array($vendorDir . '/waughj/directory/src'),
     25    'Spatie\\Url\\' => array($vendorDir . '/spatie/url/src'),
     26    'Spatie\\Macroable\\' => array($vendorDir . '/spatie/macroable/src'),
     27    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'),
    1828);
  • waj-links/trunk/vendor/composer/autoload_static.php

    r1979699 r2078823  
    99    public static $files = array (
    1010        '990b2064fc295be6b464454625577348' => __DIR__ . '/..' . '/waughj/test-hash-item/src/TestHashItem.php',
     11        '7b60086461ccf14e1bd3ba71f3e9533c' => __DIR__ . '/..' . '/waughj/wp-get-image-sizes/src/WPGetImageSizes.php',
     12        '09ef4a3370760ead893fda985cf312a9' => __DIR__ . '/..' . '/waughj/wp-get-image-sizes/src/WPImageSize.php',
    1113    );
    1214
     
    1416        'W' =>
    1517        array (
     18            'WaughJ\\WPUploadImage\\' => 21,
    1619            'WaughJ\\WPTagLink\\' => 17,
    1720            'WaughJ\\WPPostLink\\' => 18,
     21            'WaughJ\\WPMediaLink\\' => 19,
    1822            'WaughJ\\WPHomeLink\\' => 18,
    1923            'WaughJ\\WPCategoryLink\\' => 22,
     24            'WaughJ\\VerifiedArguments\\' => 25,
     25            'WaughJ\\VerifiedArgumentsSameType\\' => 33,
    2026            'WaughJ\\HTMLPhoneLink\\' => 21,
    2127            'WaughJ\\HTMLMailLink\\' => 20,
    2228            'WaughJ\\HTMLLink\\' => 16,
     29            'WaughJ\\HTMLImage\\' => 17,
    2330            'WaughJ\\HTMLAttribute\\' => 21,
    2431            'WaughJ\\HTMLAttributeList\\' => 25,
     32            'WaughJ\\FileLoader\\' => 18,
     33            'WaughJ\\Directory\\' => 17,
     34        ),
     35        'S' =>
     36        array (
     37            'Spatie\\Url\\' => 11,
     38            'Spatie\\Macroable\\' => 17,
     39        ),
     40        'P' =>
     41        array (
     42            'Psr\\Http\\Message\\' => 17,
    2543        ),
    2644    );
    2745
    2846    public static $prefixDirsPsr4 = array (
     47        'WaughJ\\WPUploadImage\\' =>
     48        array (
     49            0 => __DIR__ . '/..' . '/waughj/wp-upload-image/src',
     50        ),
    2951        'WaughJ\\WPTagLink\\' =>
    3052        array (
     
    3557            0 => __DIR__ . '/..' . '/waughj/wp-post-link/src',
    3658        ),
     59        'WaughJ\\WPMediaLink\\' =>
     60        array (
     61            0 => __DIR__ . '/..' . '/waughj/wp-media-link/src',
     62        ),
    3763        'WaughJ\\WPHomeLink\\' =>
    3864        array (
     
    4268        array (
    4369            0 => __DIR__ . '/..' . '/waughj/wp-category-link/src',
     70        ),
     71        'WaughJ\\VerifiedArguments\\' =>
     72        array (
     73            0 => __DIR__ . '/..' . '/waughj/verified-arguments/src',
     74        ),
     75        'WaughJ\\VerifiedArgumentsSameType\\' =>
     76        array (
     77            0 => __DIR__ . '/..' . '/waughj/verified-arguments-same-type/src',
    4478        ),
    4579        'WaughJ\\HTMLPhoneLink\\' =>
     
    5589            0 => __DIR__ . '/..' . '/waughj/html-link/src',
    5690        ),
     91        'WaughJ\\HTMLImage\\' =>
     92        array (
     93            0 => __DIR__ . '/..' . '/waughj/html-image/src',
     94        ),
    5795        'WaughJ\\HTMLAttribute\\' =>
    5896        array (
     
    62100        array (
    63101            0 => __DIR__ . '/..' . '/waughj/html-attribute-list/src',
     102        ),
     103        'WaughJ\\FileLoader\\' =>
     104        array (
     105            0 => __DIR__ . '/..' . '/waughj/file-loader/src',
     106        ),
     107        'WaughJ\\Directory\\' =>
     108        array (
     109            0 => __DIR__ . '/..' . '/waughj/directory/src',
     110        ),
     111        'Spatie\\Url\\' =>
     112        array (
     113            0 => __DIR__ . '/..' . '/spatie/url/src',
     114        ),
     115        'Spatie\\Macroable\\' =>
     116        array (
     117            0 => __DIR__ . '/..' . '/spatie/macroable/src',
     118        ),
     119        'Psr\\Http\\Message\\' =>
     120        array (
     121            0 => __DIR__ . '/..' . '/psr/http-message/src',
    64122        ),
    65123    );
  • waj-links/trunk/vendor/composer/installed.json

    r2010130 r2078823  
    11[
     2    {
     3        "name": "psr/http-message",
     4        "version": "1.0.1",
     5        "version_normalized": "1.0.1.0",
     6        "source": {
     7            "type": "git",
     8            "url": "https://github.com/php-fig/http-message.git",
     9            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
     10        },
     11        "dist": {
     12            "type": "zip",
     13            "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
     14            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
     15            "shasum": ""
     16        },
     17        "require": {
     18            "php": ">=5.3.0"
     19        },
     20        "time": "2016-08-06T14:39:51+00:00",
     21        "type": "library",
     22        "extra": {
     23            "branch-alias": {
     24                "dev-master": "1.0.x-dev"
     25            }
     26        },
     27        "installation-source": "dist",
     28        "autoload": {
     29            "psr-4": {
     30                "Psr\\Http\\Message\\": "src/"
     31            }
     32        },
     33        "notification-url": "https://packagist.org/downloads/",
     34        "license": [
     35            "MIT"
     36        ],
     37        "authors": [
     38            {
     39                "name": "PHP-FIG",
     40                "homepage": "http://www.php-fig.org/"
     41            }
     42        ],
     43        "description": "Common interface for HTTP messages",
     44        "homepage": "https://github.com/php-fig/http-message",
     45        "keywords": [
     46            "http",
     47            "http-message",
     48            "psr",
     49            "psr-7",
     50            "request",
     51            "response"
     52        ]
     53    },
     54    {
     55        "name": "spatie/macroable",
     56        "version": "1.0.0",
     57        "version_normalized": "1.0.0.0",
     58        "source": {
     59            "type": "git",
     60            "url": "https://github.com/spatie/macroable.git",
     61            "reference": "74b0d189ce75142f1706aad834d5a428dfc7c3c3"
     62        },
     63        "dist": {
     64            "type": "zip",
     65            "url": "https://api.github.com/repos/spatie/macroable/zipball/74b0d189ce75142f1706aad834d5a428dfc7c3c3",
     66            "reference": "74b0d189ce75142f1706aad834d5a428dfc7c3c3",
     67            "shasum": ""
     68        },
     69        "require": {
     70            "php": "^7.0"
     71        },
     72        "require-dev": {
     73            "phpunit/phpunit": "^6.3"
     74        },
     75        "time": "2017-09-18T09:51:20+00:00",
     76        "type": "library",
     77        "installation-source": "dist",
     78        "autoload": {
     79            "psr-4": {
     80                "Spatie\\Macroable\\": "src"
     81            }
     82        },
     83        "notification-url": "https://packagist.org/downloads/",
     84        "license": [
     85            "MIT"
     86        ],
     87        "authors": [
     88            {
     89                "name": "Freek Van der Herten",
     90                "email": "freek@spatie.be",
     91                "homepage": "https://spatie.be",
     92                "role": "Developer"
     93            }
     94        ],
     95        "description": "A trait to dynamically add methods to a class",
     96        "homepage": "https://github.com/spatie/macroable",
     97        "keywords": [
     98            "macroable",
     99            "spatie"
     100        ]
     101    },
     102    {
     103        "name": "spatie/url",
     104        "version": "1.3.0",
     105        "version_normalized": "1.3.0.0",
     106        "source": {
     107            "type": "git",
     108            "url": "https://github.com/spatie/url.git",
     109            "reference": "d57c19baf1586d335f30c126681a9487da01809b"
     110        },
     111        "dist": {
     112            "type": "zip",
     113            "url": "https://api.github.com/repos/spatie/url/zipball/d57c19baf1586d335f30c126681a9487da01809b",
     114            "reference": "d57c19baf1586d335f30c126681a9487da01809b",
     115            "shasum": ""
     116        },
     117        "require": {
     118            "php": "^7.0",
     119            "psr/http-message": "^1.0",
     120            "spatie/macroable": "^1.0"
     121        },
     122        "require-dev": {
     123            "phpunit/phpunit": "^6.4"
     124        },
     125        "time": "2018-01-02T20:50:05+00:00",
     126        "type": "library",
     127        "installation-source": "dist",
     128        "autoload": {
     129            "psr-4": {
     130                "Spatie\\Url\\": "src"
     131            }
     132        },
     133        "notification-url": "https://packagist.org/downloads/",
     134        "license": [
     135            "MIT"
     136        ],
     137        "authors": [
     138            {
     139                "name": "Sebastian De Deyne",
     140                "email": "sebastian@spatie.be",
     141                "homepage": "https://spatie.be",
     142                "role": "Developer"
     143            }
     144        ],
     145        "description": "Parse, build and manipulate URL's",
     146        "homepage": "https://github.com/spatie/url",
     147        "keywords": [
     148            "spatie",
     149            "url"
     150        ]
     151    },
     152    {
     153        "name": "waughj/directory",
     154        "version": "0.3.0",
     155        "version_normalized": "0.3.0.0",
     156        "source": {
     157            "type": "git",
     158            "url": "https://github.com/waughjai/directory.git",
     159            "reference": "ee52acc01d4660a383337b2bf761af2bd153a084"
     160        },
     161        "dist": {
     162            "type": "zip",
     163            "url": "https://api.github.com/repos/waughjai/directory/zipball/ee52acc01d4660a383337b2bf761af2bd153a084",
     164            "reference": "ee52acc01d4660a383337b2bf761af2bd153a084",
     165            "shasum": ""
     166        },
     167        "require": {
     168            "php": ">=7.0",
     169            "waughj/verified-arguments-same-type": "*"
     170        },
     171        "require-dev": {
     172            "phpunit/phpunit": "*"
     173        },
     174        "time": "2019-04-18T20:50:42+00:00",
     175        "type": "libraryt",
     176        "installation-source": "dist",
     177        "autoload": {
     178            "psr-4": {
     179                "WaughJ\\Directory\\": "src/"
     180            }
     181        },
     182        "notification-url": "https://packagist.org/downloads/",
     183        "license": [
     184            "GPL-2.0-or-later"
     185        ],
     186        "authors": [
     187            {
     188                "name": "Jaimeson Waugh",
     189                "email": "waughjai@gmail.com"
     190            }
     191        ],
     192        "description": "Simple class for encapsulating file directory object.",
     193        "keywords": [
     194            "directory",
     195            "file"
     196        ]
     197    },
     198    {
     199        "name": "waughj/file-loader",
     200        "version": "0.4.2",
     201        "version_normalized": "0.4.2.0",
     202        "source": {
     203            "type": "git",
     204            "url": "https://github.com/waughjai/file-loader.git",
     205            "reference": "5ed773b2e739a6e07bbabc3d85f0f86015861b5f"
     206        },
     207        "dist": {
     208            "type": "zip",
     209            "url": "https://api.github.com/repos/waughjai/file-loader/zipball/5ed773b2e739a6e07bbabc3d85f0f86015861b5f",
     210            "reference": "5ed773b2e739a6e07bbabc3d85f0f86015861b5f",
     211            "shasum": ""
     212        },
     213        "require": {
     214            "php": ">=7.0",
     215            "spatie/url": "*",
     216            "waughj/directory": "*",
     217            "waughj/test-hash-item": "*",
     218            "waughj/verified-arguments": "*"
     219        },
     220        "require-dev": {
     221            "phpunit/phpunit": "6.*"
     222        },
     223        "time": "2018-12-12T20:32:53+00:00",
     224        "type": "library",
     225        "installation-source": "dist",
     226        "autoload": {
     227            "psr-4": {
     228                "WaughJ\\FileLoader\\": "src/"
     229            }
     230        },
     231        "notification-url": "https://packagist.org/downloads/",
     232        "license": [
     233            "GPL-2.0-or-later"
     234        ],
     235        "authors": [
     236            {
     237                "name": "Jaimeson Waugh",
     238                "email": "waughjai@gmail.com"
     239            }
     240        ],
     241        "description": "Object for easily generating image sources with autoversioning for handling cache corruption.",
     242        "keywords": [
     243            "file",
     244            "loader"
     245        ]
     246    },
    2247    {
    3248        "name": "waughj/html-attribute",
     
    93338    },
    94339    {
     340        "name": "waughj/html-image",
     341        "version": "0.5.2",
     342        "version_normalized": "0.5.2.0",
     343        "source": {
     344            "type": "git",
     345            "url": "https://github.com/waughjai/html-image.git",
     346            "reference": "d3ebf8649ae7bdb5201bd44b6aad9c3ecd8e9b5b"
     347        },
     348        "dist": {
     349            "type": "zip",
     350            "url": "https://api.github.com/repos/waughjai/html-image/zipball/d3ebf8649ae7bdb5201bd44b6aad9c3ecd8e9b5b",
     351            "reference": "d3ebf8649ae7bdb5201bd44b6aad9c3ecd8e9b5b",
     352            "shasum": ""
     353        },
     354        "require": {
     355            "php": ">=7.0",
     356            "waughj/file-loader": "*",
     357            "waughj/html-attribute-list": ">=1.1.0",
     358            "waughj/test-hash-item": ">=1.1"
     359        },
     360        "require-dev": {
     361            "ngiusti/random-string-generator": "*",
     362            "phpunit/phpunit": "6.*"
     363        },
     364        "time": "2018-12-31T19:20:05+00:00",
     365        "type": "library",
     366        "installation-source": "dist",
     367        "autoload": {
     368            "psr-4": {
     369                "WaughJ\\HTMLImage\\": "src/"
     370            }
     371        },
     372        "notification-url": "https://packagist.org/downloads/",
     373        "license": [
     374            "GPL-2.0-or-later"
     375        ],
     376        "authors": [
     377            {
     378                "name": "Jaimeson Waugh",
     379                "email": "waughjai@gmail.com"
     380            }
     381        ],
     382        "description": "Simple class for automatically generating image HTML code.",
     383        "keywords": [
     384            "autogenerate",
     385            "html",
     386            "image"
     387        ]
     388    },
     389    {
    95390        "name": "waughj/html-link",
    96391        "version": "1.2.7",
     
    279574            "hash",
    280575            "tests"
     576        ]
     577    },
     578    {
     579        "name": "waughj/verified-arguments",
     580        "version": "0.6.0",
     581        "version_normalized": "0.6.0.0",
     582        "source": {
     583            "type": "git",
     584            "url": "https://github.com/waughjai/verified-arguments.git",
     585            "reference": "1a1c9158d6c97f62eea1c51e8ee6039408f2a8d8"
     586        },
     587        "dist": {
     588            "type": "zip",
     589            "url": "https://api.github.com/repos/waughjai/verified-arguments/zipball/1a1c9158d6c97f62eea1c51e8ee6039408f2a8d8",
     590            "reference": "1a1c9158d6c97f62eea1c51e8ee6039408f2a8d8",
     591            "shasum": ""
     592        },
     593        "require": {
     594            "php": ">=7.0"
     595        },
     596        "require-dev": {
     597            "phpunit/phpunit": "6.*"
     598        },
     599        "time": "2019-01-10T23:55:47+00:00",
     600        "type": "library",
     601        "installation-source": "dist",
     602        "autoload": {
     603            "psr-4": {
     604                "WaughJ\\VerifiedArguments\\": "src/"
     605            }
     606        },
     607        "notification-url": "https://packagist.org/downloads/",
     608        "license": [
     609            "GPL-2.0-or-later"
     610        ],
     611        "authors": [
     612            {
     613                "name": "Jaimeson Waugh",
     614                "email": "waughjai@gmail.com"
     615            }
     616        ],
     617        "description": "Safer & simpler way to handle verifying an array o' arguments by existence & type.",
     618        "keywords": [
     619            "arguments",
     620            "array",
     621            "safety"
     622        ]
     623    },
     624    {
     625        "name": "waughj/verified-arguments-same-type",
     626        "version": "0.1.0",
     627        "version_normalized": "0.1.0.0",
     628        "source": {
     629            "type": "git",
     630            "url": "https://github.com/waughjai/verified-arguments-same-type.git",
     631            "reference": "dcd896138233adceeab3e3cfe48da0bb26d70e19"
     632        },
     633        "dist": {
     634            "type": "zip",
     635            "url": "https://api.github.com/repos/waughjai/verified-arguments-same-type/zipball/dcd896138233adceeab3e3cfe48da0bb26d70e19",
     636            "reference": "dcd896138233adceeab3e3cfe48da0bb26d70e19",
     637            "shasum": ""
     638        },
     639        "require": {
     640            "php": ">=7.0",
     641            "waughj/verified-arguments": ">=0.5"
     642        },
     643        "require-dev": {
     644            "phpunit/phpunit": "6.*"
     645        },
     646        "time": "2018-10-24T17:57:03+00:00",
     647        "type": "library",
     648        "installation-source": "dist",
     649        "autoload": {
     650            "psr-4": {
     651                "WaughJ\\VerifiedArgumentsSameType\\": "src/"
     652            }
     653        },
     654        "notification-url": "https://packagist.org/downloads/",
     655        "license": [
     656            "GPL-2.0-or-later"
     657        ],
     658        "authors": [
     659            {
     660                "name": "Jaimeson Waugh",
     661                "email": "waughjai@gmail.com"
     662            }
     663        ],
     664        "description": "List o' verified arguments wherein given arguments must be the same type as defaults.",
     665        "keywords": [
     666            "arguments",
     667            "array",
     668            "safety",
     669            "type"
    281670        ]
    282671    },
     
    330719    },
    331720    {
     721        "name": "waughj/wp-get-image-sizes",
     722        "version": "0.1.2",
     723        "version_normalized": "0.1.2.0",
     724        "source": {
     725            "type": "git",
     726            "url": "https://github.com/waughjai/wp-get-image-sizes.git",
     727            "reference": "b7874222fa3b2e09456d10ed35029c9972113766"
     728        },
     729        "dist": {
     730            "type": "zip",
     731            "url": "https://api.github.com/repos/waughjai/wp-get-image-sizes/zipball/b7874222fa3b2e09456d10ed35029c9972113766",
     732            "reference": "b7874222fa3b2e09456d10ed35029c9972113766",
     733            "shasum": ""
     734        },
     735        "require": {
     736            "php": ">=7.0"
     737        },
     738        "require-dev": {
     739            "phpunit/phpunit": "6.*"
     740        },
     741        "time": "2018-12-04T17:13:46+00:00",
     742        "type": "library",
     743        "installation-source": "dist",
     744        "autoload": {
     745            "files": [
     746                "src/WPGetImageSizes.php",
     747                "src/WPImageSize.php"
     748            ]
     749        },
     750        "notification-url": "https://packagist.org/downloads/",
     751        "license": [
     752            "GPL-2.0-or-later"
     753        ],
     754        "authors": [
     755            {
     756                "name": "Jaimeson Waugh",
     757                "email": "waughjai@gmail.com"
     758            }
     759        ],
     760        "description": "Simple function for getting media image sizes for WordPress.",
     761        "keywords": [
     762            "image sizes",
     763            "media",
     764            "wordpress"
     765        ]
     766    },
     767    {
    332768        "name": "waughj/wp-home-link",
    333769        "version": "0.1.5",
     
    378814    },
    379815    {
     816        "name": "waughj/wp-media-link",
     817        "version": "0.2.0",
     818        "version_normalized": "0.2.0.0",
     819        "source": {
     820            "type": "git",
     821            "url": "https://github.com/waughjai/wp-media-link.git",
     822            "reference": "ed65b925334709a933d9e4bb96f284257ac5e7e7"
     823        },
     824        "dist": {
     825            "type": "zip",
     826            "url": "https://api.github.com/repos/waughjai/wp-media-link/zipball/ed65b925334709a933d9e4bb96f284257ac5e7e7",
     827            "reference": "ed65b925334709a933d9e4bb96f284257ac5e7e7",
     828            "shasum": ""
     829        },
     830        "require": {
     831            "php": ">=7.0",
     832            "waughj/html-link": ">=1.2.7",
     833            "waughj/wp-upload-image": ">=0.1.2"
     834        },
     835        "require-dev": {
     836            "phpunit/phpunit": "*"
     837        },
     838        "time": "2019-05-01T22:34:54+00:00",
     839        "type": "library",
     840        "installation-source": "dist",
     841        "autoload": {
     842            "psr-4": {
     843                "WaughJ\\WPMediaLink\\": "src/"
     844            }
     845        },
     846        "notification-url": "https://packagist.org/downloads/",
     847        "license": [
     848            "GPL-2.0-or-later"
     849        ],
     850        "authors": [
     851            {
     852                "name": "Jaimeson Waugh",
     853                "email": "waughjai@gmail.com"
     854            }
     855        ],
     856        "description": "Class & WordPress shortcode for easily generating link to media file.",
     857        "keywords": [
     858            "link",
     859            "media",
     860            "wordpress"
     861        ]
     862    },
     863    {
    380864        "name": "waughj/wp-post-link",
    381865        "version": "0.2.6",
     
    473957            "wordpress"
    474958        ]
     959    },
     960    {
     961        "name": "waughj/wp-upload-image",
     962        "version": "0.1.2",
     963        "version_normalized": "0.1.2.0",
     964        "source": {
     965            "type": "git",
     966            "url": "https://github.com/waughjai/wp-upload-image.git",
     967            "reference": "f72d93d47ac7796e999fd3054061e20451f435ae"
     968        },
     969        "dist": {
     970            "type": "zip",
     971            "url": "https://api.github.com/repos/waughjai/wp-upload-image/zipball/f72d93d47ac7796e999fd3054061e20451f435ae",
     972            "reference": "f72d93d47ac7796e999fd3054061e20451f435ae",
     973            "shasum": ""
     974        },
     975        "require": {
     976            "php": ">=7.0",
     977            "waughj/file-loader": ">=0.2.0",
     978            "waughj/html-image": ">=0.3.0",
     979            "waughj/test-hash-item": "*",
     980            "waughj/wp-get-image-sizes": "*"
     981        },
     982        "require-dev": {
     983            "phpunit/phpunit": "6.*"
     984        },
     985        "time": "2019-01-03T19:22:27+00:00",
     986        "type": "library",
     987        "installation-source": "dist",
     988        "autoload": {
     989            "psr-4": {
     990                "WaughJ\\WPUploadImage\\": "src/"
     991            }
     992        },
     993        "notification-url": "https://packagist.org/downloads/",
     994        "license": [
     995            "GPL-2.0-or-later"
     996        ],
     997        "authors": [
     998            {
     999                "name": "Jaimeson Waugh",
     1000                "email": "waughjai@gmail.com"
     1001            }
     1002        ],
     1003        "description": "Class for autogenerating HTML for WordPress media image with just the ID.",
     1004        "keywords": [
     1005            "media image",
     1006            "wordpress"
     1007        ]
    4751008    }
    4761009]
  • waj-links/trunk/waj-links.php

    r2058441 r2078823  
    44    Plugin URI:   https://github.com/waughjai/copyright-year
    55    Description:  Simple plugin for easy generation o' link HTML for various types o' links.
    6     Version:      1.1.2
     6    Version:      1.2.0
    77    Author:       Jaimeson Waugh
    88    Author URI:   https://www.jaimeson-waugh.com
     
    1515
    1616    use function WaughJ\TestHashItem\TestHashItemString;
     17    use function WaughJ\TestHashItem\TestHashItemExists;
    1718    use WaughJ\HTMLLink\HTMLLink;
    1819    use WaughJ\HTMLMailLink\HTMLMailLink;
     
    2223    use WaughJ\WPHomeLink\WPHomeLink;
    2324    use WaughJ\WPPhoneLink\WPPhoneLink;
     25    use WaughJ\WPMediaLink\WPMediaLink;
    2426
    2527    add_shortcode
     
    116118        }
    117119    );
     120
     121    add_shortcode
     122    (
     123        'media-link',
     124        function ( array $atts, $content )
     125        {
     126            $id = TestHashItemExists( $atts, 'id', '' );
     127            $content = ( $content ) ? do_shortcode( $content ) : TestHashItemString( $atts, 'value', null );
     128            unset( $atts[ 'id' ], $atts[ 'value' ] );
     129            return ( $id !== null && $content !== null ) ? ( string )( new WPMediaLink( $id, $content, $atts ) ) : '';
     130        }
     131    );
Note: See TracChangeset for help on using the changeset viewer.