| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/i/n/f/infrafs/INFRABIKEIT/wp-content/plugins/ |
Upload File : |
shortcode-interface.php 0000644 00000000667 15132720645 0011223 0 ustar 00 <?php
namespace ElatedMembership\Lib;
/**
* Interface ShortcodeInterface
* @package ElatedMembership\Lib
*/
interface ShortcodeInterface {
/**
* Returns base for shortcode
* @return string
*/
public function getBase();
/**
* Renders shortcodes HTML
*
* @param $atts array of shortcode params
* @param $content string shortcode content
*
* @return string
*/
public function render( $atts, $content = null );
} shortcode-loader.php 0000644 00000003266 15132720645 0010527 0 ustar 00 <?php
namespace ElatedMembership\Lib;
/**
* Class ShortcodeLoader
* @package ElatedMembership\Lib
*/
class ShortcodeLoader {
/**
* @var private instance of current class
*/
private static $instance;
/**
* @var array
*/
private $loadedShortcodes = array();
/**
* Private constuct because of Singletone
*/
private function __construct() {
}
/**
* Returns current instance of class
* @return ShortcodeLoader
*/
public static function getInstance() {
if ( self::$instance == null ) {
return new self;
}
return self::$instance;
}
/**
* Adds new shortcode. Object that it takes must implement ShortcodeInterface
*
* @param ShortcodeInterface $shortcode
*/
private function addShortcode( ShortcodeInterface $shortcode ) {
if ( ! array_key_exists( $shortcode->getBase(), $this->loadedShortcodes ) ) {
$this->loadedShortcodes[ $shortcode->getBase() ] = $shortcode;
}
}
/**
* Adds all shortcodes.
*
* @see ShortcodeLoader::addShortcode()
*/
private function addShortcodes() {
$shortcodes_class_name = apply_filters( 'eltd_membership_filter_add_vc_shortcode', $shortcodes_class_name = array() );
sort( $shortcodes_class_name );
if ( ! empty( $shortcodes_class_name ) ) {
foreach ( $shortcodes_class_name as $shortcode_class_name ) {
$this->addShortcode( new $shortcode_class_name );
}
}
}
/**
* Calls ShortcodeLoader::addShortcodes and than loops through added shortcodes and calls render method
* of each shortcode object
*/
public function load() {
$this->addShortcodes();
foreach ( $this->loadedShortcodes as $shortcode ) {
add_shortcode( $shortcode->getBase(), array( $shortcode, 'render' ) );
}
}
} jquery.insert-at-caret.min.js 0000644 00000001636 15132773312 0012216 0 ustar 00 /*!
* jQuery insertAtCaret 1.1.4
* http://www.karalamalar.net/
*
* Copyright (c) 2013 İzzet Emre Erkan
* Licensed under GPLv2 or later.
* http://www.gnu.org/licenses/gpl-2.0.txt
*
* Contributors:
* [@kittsville](https://github.com/kittsville)
*
*/
!function(e,t){e.fn.insertAtCaret=function(e){return this.each(function(){var a,n,r,o,c=this,l=0,s="selectionStart"in c&&"selectionEnd"in c;(c.tagName&&"textarea"===c.tagName.toLowerCase()||c.tagName&&"input"===c.tagName.toLowerCase()&&"text"===c.type.toLowerCase())&&(a=c.scrollTop,s?l=c.selectionStart:(c.focus(),o=t.selection.createRange(),o.moveStart("character",-c.value.length),l=o.text.length),n=c.value.substring(0,l),r=c.value.substring(l,c.value.length),c.value=n+e+r,l+=e.length,s?(c.selectionStart=l,c.selectionEnd=l):(o=t.selection.createRange(),o.moveStart("character",l),o.moveEnd("character",0),o.select()),c.scrollTop=a)})}}(jQuery,document,window); jquery.serialize-object.min.js 0000644 00000003314 15132773312 0012442 0 ustar 00 /**
* jQuery serializeObject
* @copyright 2014, macek <paulmacek@gmail.com>
* @link https://github.com/macek/jquery-serialize-object
* @license BSD
* @version 2.5.0
*/
!function(e,i){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,r){return i(e,r)});else if("undefined"!=typeof exports){var r=require("jquery");i(exports,r)}else i(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,i){function r(e,r){function n(e,i,r){return e[i]=r,e}function a(e,i){for(var r,a=e.match(t.key);void 0!==(r=a.pop());)if(t.push.test(r)){var u=s(e.replace(/\[\]$/,""));i=n([],u,i)}else t.fixed.test(r)?i=n([],r,i):t.named.test(r)&&(i=n({},r,i));return i}function s(e){return void 0===h[e]&&(h[e]=0),h[e]++}function u(e){switch(i('[name="'+e.name+'"]',r).attr("type")){case"checkbox":return"on"===e.value?!0:e.value;default:return e.value}}function f(i){if(!t.validate.test(i.name))return this;var r=a(i.name,u(i));return l=e.extend(!0,l,r),this}function d(i){if(!e.isArray(i))throw new Error("formSerializer.addPairs expects an Array");for(var r=0,t=i.length;t>r;r++)this.addPair(i[r]);return this}function o(){return l}function c(){return JSON.stringify(o())}var l={},h={};this.addPair=f,this.addPairs=d,this.serialize=o,this.serializeJSON=c}var t={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};return r.patterns=t,r.serializeObject=function(){return new r(i,this).addPairs(this.serializeArray()).serialize()},r.serializeJSON=function(){return new r(i,this).addPairs(this.serializeArray()).serializeJSON()},"undefined"!=typeof i.fn&&(i.fn.serializeObject=r.serializeObject,i.fn.serializeJSON=r.serializeJSON),e.FormSerializer=r,r}); font-awesome/fonts/fontawesome-webfont.woff 0000644 00000277350 15132773312 0015177 0 ustar 00 wOFF ~�
�� FFTM 0 k�G�GDEF L � OS/2 l >