Plugin Directory

Changeset 1979699


Ignore:
Timestamp:
11/23/2018 06:43:45 PM (7 years ago)
Author:
waughjai
Message:

Add phone link

Location:
waj-links
Files:
125 added
11 edited

Legend:

Unmodified
Added
Removed
  • waj-links/trunk/README.md

    r1973233 r1979699  
    3737
    3838Generates mailto link. If just email given, content automatically set to email.
     39
     40Valid attributes include "value" for content ( for the direct PHP use ). all valid HTML5 attributes for the a tag, as well as the external attribute mentioned under Link.
     41
     42
     43### Phone-Link
     44
     45Shortcode: [phone-link]phone number[/phone-link] or [phone-link tel="phone"]Call us now![/phone-link]
     46PHP Class: new WaughJ\HTMLPhoneLink\HTMLPhoneLink( $phone_number, $other_attributes );
     47
     48Generates tel link. If just phone # is given, content automatically set to phone #.
    3949
    4050Valid attributes include "value" for content ( for the direct PHP use ). all valid HTML5 attributes for the a tag, as well as the external attribute mentioned under Link.
  • waj-links/trunk/composer.json

    r1973233 r1979699  
    1313    "require": {
    1414        "php": ">=7.0",
    15         "waughj/html-link": ">=1.2.5",
    16         "waughj/html-mail-link": "0.1.3",
    17         "waughj/wp-category-link": ">=0.1.4",
    18         "waughj/wp-home-link": ">=0.1.4",
    19         "waughj/wp-post-link": ">=0.2.5",
    20         "waughj/wp-tag-link": ">=0.1.4"
     15        "waughj/html-link": ">=1.2.3",
     16        "waughj/html-mail-link": ">=0.1.1",
     17        "waughj/wp-category-link": ">=0.1.2",
     18        "waughj/wp-home-link": ">=0.1.2",
     19        "waughj/wp-post-link": ">=0.2.3",
     20        "waughj/wp-tag-link": ">=0.1.2",
     21        "waughj/html-phone-link": "*"
    2122    }
    2223}
  • waj-links/trunk/composer.lock

    r1973233 r1979699  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "7d5f222ccf58850a94a2337b47a3d519",
     7    "content-hash": "0429a85b49856d848643b9d010ddad91",
    88    "packages": [
    99        {
     
    143143        {
    144144            "name": "waughj/html-mail-link",
    145             "version": "0.1.3",
     145            "version": "0.1.4",
    146146            "source": {
    147147                "type": "git",
    148148                "url": "https://github.com/waughjai/html-mail-link.git",
    149                 "reference": "c3a4c46d85a019586ec2eeac3507fdeb4ce1845d"
    150             },
    151             "dist": {
    152                 "type": "zip",
    153                 "url": "https://api.github.com/repos/waughjai/html-mail-link/zipball/c3a4c46d85a019586ec2eeac3507fdeb4ce1845d",
    154                 "reference": "c3a4c46d85a019586ec2eeac3507fdeb4ce1845d",
    155                 "shasum": ""
    156             },
    157             "require": {
    158                 "php": ">=7.0",
    159                 "waughj/html-link": ">=1.2.5",
     149                "reference": "0881b785f411df81db7dae9ab4e19913c7afbdac"
     150            },
     151            "dist": {
     152                "type": "zip",
     153                "url": "https://api.github.com/repos/waughjai/html-mail-link/zipball/0881b785f411df81db7dae9ab4e19913c7afbdac",
     154                "reference": "0881b785f411df81db7dae9ab4e19913c7afbdac",
     155                "shasum": ""
     156            },
     157            "require": {
     158                "php": ">=7.0",
     159                "waughj/html-link": ">=1.2.6",
    160160                "waughj/test-hash-item": ">=1.0.1"
    161161            },
     
    185185                "link"
    186186            ],
    187             "time": "2018-11-12T20:03:33+00:00"
     187            "time": "2018-11-12T20:37:34+00:00"
     188        },
     189        {
     190            "name": "waughj/html-phone-link",
     191            "version": "0.1.0",
     192            "source": {
     193                "type": "git",
     194                "url": "https://github.com/waughjai/html-phone-link.git",
     195                "reference": "86498f29f3e2f3a7133cf149b37a11fb06f576fd"
     196            },
     197            "dist": {
     198                "type": "zip",
     199                "url": "https://api.github.com/repos/waughjai/html-phone-link/zipball/86498f29f3e2f3a7133cf149b37a11fb06f576fd",
     200                "reference": "86498f29f3e2f3a7133cf149b37a11fb06f576fd",
     201                "shasum": ""
     202            },
     203            "require": {
     204                "php": ">=7.0",
     205                "waughj/html-link": ">=1.2.6",
     206                "waughj/test-hash-item": ">=1.0.1"
     207            },
     208            "require-dev": {
     209                "phpunit/phpunit": "6.*"
     210            },
     211            "type": "library",
     212            "autoload": {
     213                "psr-4": {
     214                    "WaughJ\\HTMLPhoneLink\\": "src/"
     215                }
     216            },
     217            "notification-url": "https://packagist.org/downloads/",
     218            "license": [
     219                "GPL-2.0-or-later"
     220            ],
     221            "authors": [
     222                {
     223                    "name": "Jaimeson Waugh",
     224                    "email": "waughjai@gmail.com"
     225                }
     226            ],
     227            "description": "Simple way to create HTML for telephone links.",
     228            "keywords": [
     229                "html",
     230                "link",
     231                "phone"
     232            ],
     233            "time": "2018-11-23T18:29:50+00:00"
    188234        },
    189235        {
  • waj-links/trunk/readme.txt

    r1973233 r1979699  
    3737
    3838Generates mailto link. If just email given, content automatically set to email.
     39
     40Valid attributes include "value" for content ( for the direct PHP use ). all valid HTML5 attributes for the a tag, as well as the external attribute mentioned under Link.
     41
     42
     43=== Phone-Link ===
     44
     45Shortcode: [phone-link]phone number[/phone-link] or [phone-link tel="phone"]Call us now![/phone-link]
     46PHP Class: new WaughJ\HTMLPhoneLink\HTMLPhoneLink( $phone_number, $other_attributes );
     47
     48Generates tel link. If just phone # is given, content automatically set to phone #.
    3949
    4050Valid attributes include "value" for content ( for the direct PHP use ). all valid HTML5 attributes for the a tag, as well as the external attribute mentioned under Link.
  • waj-links/trunk/vendor/autoload.php

    r1973233 r1979699  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInite6192808805dbfdbca5e99fc2d75c6f6::getLoader();
     7return ComposerAutoloaderInit528e5f364dec451a4afb25d83069e9bf::getLoader();
  • waj-links/trunk/vendor/composer/autoload_psr4.php

    r1973233 r1979699  
    1111    'WaughJ\\WPHomeLink\\' => array($vendorDir . '/waughj/wp-home-link/src'),
    1212    'WaughJ\\WPCategoryLink\\' => array($vendorDir . '/waughj/wp-category-link/src'),
     13    'WaughJ\\HTMLPhoneLink\\' => array($vendorDir . '/waughj/html-phone-link/src'),
    1314    'WaughJ\\HTMLMailLink\\' => array($vendorDir . '/waughj/html-mail-link/src'),
    1415    'WaughJ\\HTMLLink\\' => array($vendorDir . '/waughj/html-link/src'),
  • waj-links/trunk/vendor/composer/autoload_real.php

    r1973233 r1979699  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInite6192808805dbfdbca5e99fc2d75c6f6
     5class ComposerAutoloaderInit528e5f364dec451a4afb25d83069e9bf
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInite6192808805dbfdbca5e99fc2d75c6f6', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit528e5f364dec451a4afb25d83069e9bf', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInite6192808805dbfdbca5e99fc2d75c6f6', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit528e5f364dec451a4afb25d83069e9bf', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInite6192808805dbfdbca5e99fc2d75c6f6::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInit528e5f364dec451a4afb25d83069e9bf::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInite6192808805dbfdbca5e99fc2d75c6f6::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInit528e5f364dec451a4afb25d83069e9bf::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequiree6192808805dbfdbca5e99fc2d75c6f6($fileIdentifier, $file);
     56            composerRequire528e5f364dec451a4afb25d83069e9bf($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequiree6192808805dbfdbca5e99fc2d75c6f6($fileIdentifier, $file)
     63function composerRequire528e5f364dec451a4afb25d83069e9bf($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • waj-links/trunk/vendor/composer/autoload_static.php

    r1973233 r1979699  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInite6192808805dbfdbca5e99fc2d75c6f6
     7class ComposerStaticInit528e5f364dec451a4afb25d83069e9bf
    88{
    99    public static $files = array (
     
    1818            'WaughJ\\WPHomeLink\\' => 18,
    1919            'WaughJ\\WPCategoryLink\\' => 22,
     20            'WaughJ\\HTMLPhoneLink\\' => 21,
    2021            'WaughJ\\HTMLMailLink\\' => 20,
    2122            'WaughJ\\HTMLLink\\' => 16,
     
    4243            0 => __DIR__ . '/..' . '/waughj/wp-category-link/src',
    4344        ),
     45        'WaughJ\\HTMLPhoneLink\\' =>
     46        array (
     47            0 => __DIR__ . '/..' . '/waughj/html-phone-link/src',
     48        ),
    4449        'WaughJ\\HTMLMailLink\\' =>
    4550        array (
     
    6368    {
    6469        return \Closure::bind(function () use ($loader) {
    65             $loader->prefixLengthsPsr4 = ComposerStaticInite6192808805dbfdbca5e99fc2d75c6f6::$prefixLengthsPsr4;
    66             $loader->prefixDirsPsr4 = ComposerStaticInite6192808805dbfdbca5e99fc2d75c6f6::$prefixDirsPsr4;
     70            $loader->prefixLengthsPsr4 = ComposerStaticInit528e5f364dec451a4afb25d83069e9bf::$prefixLengthsPsr4;
     71            $loader->prefixDirsPsr4 = ComposerStaticInit528e5f364dec451a4afb25d83069e9bf::$prefixDirsPsr4;
    6772
    6873        }, null, ClassLoader::class);
  • waj-links/trunk/vendor/composer/installed.json

    r1973233 r1979699  
    142142    {
    143143        "name": "waughj/html-mail-link",
    144         "version": "0.1.3",
    145         "version_normalized": "0.1.3.0",
     144        "version": "0.1.4",
     145        "version_normalized": "0.1.4.0",
    146146        "source": {
    147147            "type": "git",
    148148            "url": "https://github.com/waughjai/html-mail-link.git",
    149             "reference": "c3a4c46d85a019586ec2eeac3507fdeb4ce1845d"
    150         },
    151         "dist": {
    152             "type": "zip",
    153             "url": "https://api.github.com/repos/waughjai/html-mail-link/zipball/c3a4c46d85a019586ec2eeac3507fdeb4ce1845d",
    154             "reference": "c3a4c46d85a019586ec2eeac3507fdeb4ce1845d",
    155             "shasum": ""
    156         },
    157         "require": {
    158             "php": ">=7.0",
    159             "waughj/html-link": ">=1.2.5",
     149            "reference": "0881b785f411df81db7dae9ab4e19913c7afbdac"
     150        },
     151        "dist": {
     152            "type": "zip",
     153            "url": "https://api.github.com/repos/waughjai/html-mail-link/zipball/0881b785f411df81db7dae9ab4e19913c7afbdac",
     154            "reference": "0881b785f411df81db7dae9ab4e19913c7afbdac",
     155            "shasum": ""
     156        },
     157        "require": {
     158            "php": ">=7.0",
     159            "waughj/html-link": ">=1.2.6",
    160160            "waughj/test-hash-item": ">=1.0.1"
    161161        },
     
    163163            "phpunit/phpunit": "6.*"
    164164        },
    165         "time": "2018-11-12T20:03:33+00:00",
     165        "time": "2018-11-12T20:37:34+00:00",
    166166        "type": "library",
    167167        "installation-source": "dist",
     
    186186            "html",
    187187            "link"
     188        ]
     189    },
     190    {
     191        "name": "waughj/html-phone-link",
     192        "version": "0.1.0",
     193        "version_normalized": "0.1.0.0",
     194        "source": {
     195            "type": "git",
     196            "url": "https://github.com/waughjai/html-phone-link.git",
     197            "reference": "86498f29f3e2f3a7133cf149b37a11fb06f576fd"
     198        },
     199        "dist": {
     200            "type": "zip",
     201            "url": "https://api.github.com/repos/waughjai/html-phone-link/zipball/86498f29f3e2f3a7133cf149b37a11fb06f576fd",
     202            "reference": "86498f29f3e2f3a7133cf149b37a11fb06f576fd",
     203            "shasum": ""
     204        },
     205        "require": {
     206            "php": ">=7.0",
     207            "waughj/html-link": ">=1.2.6",
     208            "waughj/test-hash-item": ">=1.0.1"
     209        },
     210        "require-dev": {
     211            "phpunit/phpunit": "6.*"
     212        },
     213        "time": "2018-11-23T18:29:50+00:00",
     214        "type": "library",
     215        "installation-source": "dist",
     216        "autoload": {
     217            "psr-4": {
     218                "WaughJ\\HTMLPhoneLink\\": "src/"
     219            }
     220        },
     221        "notification-url": "https://packagist.org/downloads/",
     222        "license": [
     223            "GPL-2.0-or-later"
     224        ],
     225        "authors": [
     226            {
     227                "name": "Jaimeson Waugh",
     228                "email": "waughjai@gmail.com"
     229            }
     230        ],
     231        "description": "Simple way to create HTML for telephone links.",
     232        "keywords": [
     233            "html",
     234            "link",
     235            "phone"
    188236        ]
    189237    },
  • waj-links/trunk/vendor/waughj/html-mail-link/composer.json

    r1973233 r1979699  
    1313    "require": {
    1414        "php": ">=7.0",
    15         "waughj/html-link": ">=1.2.5",
     15        "waughj/html-link": ">=1.2.6",
    1616        "waughj/test-hash-item": ">=1.0.1"
    1717    },
  • waj-links/trunk/waj-links.php

    r1973233 r1979699  
    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.0.0
     6    Version:      1.1.0
    77    Author:       Jaimeson Waugh
    88    Author URI:   https://www.jaimeson-waugh.com
     
    2121    use WaughJ\WPTagLink\WPTagLink;
    2222    use WaughJ\WPHomeLink\WPHomeLink;
     23    use WaughJ\WPPhoneLink\WPPhoneLink;
    2324
    2425    add_shortcode
     
    4041        {
    4142            $email = ( $content ) ? do_shortcode( $content ) : TestHashItemString( $atts, 'email', '' );
     43            if ( $content )
     44            {
     45                $atts[ "value" ] = $content;
     46            }
    4247            unset( $atts[ 'email' ] );
    4348            return ( string )( new HTMLMailLink( $email, $atts ) );
     
    96101        }
    97102    );
     103
     104    add_shortcode
     105    (
     106        'phone-link',
     107        function ( array $atts, $content )
     108        {
     109            $phone = ( $content ) ? do_shortcode( $content ) : TestHashItemString( $atts, 'phone', '' );
     110            if ( $content )
     111            {
     112                $atts[ "value" ] = $content;
     113            }
     114            unset( $atts[ 'phone' ] );
     115            return ( string )( new HTMLPhoneLink( $phone, $atts ) );
     116        }
     117    );
Note: See TracChangeset for help on using the changeset viewer.