-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from bootscore/Update-classes-to-Bootstrap-5.3
Create composer.json
- Loading branch information
Showing
114 changed files
with
11,541 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "bootscore/bs-cookie-settings", | ||
"description": "Adds Bootstrap to Contact Form 7", | ||
"type": "wordpress-plugin", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "The bootScore Authors" | ||
} | ||
], | ||
"readme": "README.md", | ||
"homepage": "https://bootscore.me/documentation/plugin/bs-cookie-settings/", | ||
"support": { | ||
"issues": "https://github.com/bootscore/bs-cookie-settings/issues", | ||
"forum": "https://github.com/bootscore/bootscore/discussions", | ||
"source": "https://github.com/bootscore/bs-cookie-settings", | ||
"docs": "https://bootscore.me/documentation/plugin/bs-cookie-settings/" | ||
}, | ||
"minimum-stability": "stable", | ||
"keywords": [ | ||
"wordpress", | ||
"plugin", | ||
"bootscore", | ||
"bootstrap", | ||
"contact form 7" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[*] | ||
charset=utf-8 | ||
end_of_line=lf | ||
insert_final_newline=false | ||
indent_style=tab | ||
tab_width=4 | ||
|
||
[{phpunit.xml.dist,*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}] | ||
indent_style=space | ||
indent_size=4 | ||
|
||
[*.svg] | ||
indent_style=space | ||
indent_size=4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
if ( !class_exists('Puc_v4_Factory', false) ): | ||
|
||
class Puc_v4_Factory extends Puc_v4p11_Factory { } | ||
|
||
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
|
||
if ( !class_exists('Puc_v4p11_Autoloader', false) ): | ||
|
||
class Puc_v4p11_Autoloader { | ||
private $prefix = ''; | ||
private $rootDir = ''; | ||
private $libraryDir = ''; | ||
|
||
private $staticMap; | ||
|
||
public function __construct() { | ||
$this->rootDir = dirname(__FILE__) . '/'; | ||
$nameParts = explode('_', __CLASS__, 3); | ||
$this->prefix = $nameParts[0] . '_' . $nameParts[1] . '_'; | ||
|
||
$this->libraryDir = $this->rootDir . '../..'; | ||
if ( !self::isPhar() ) { | ||
$this->libraryDir = realpath($this->libraryDir); | ||
} | ||
$this->libraryDir = $this->libraryDir . '/'; | ||
|
||
$this->staticMap = array( | ||
'PucReadmeParser' => 'vendor/PucReadmeParser.php', | ||
'Parsedown' => 'vendor/Parsedown.php', | ||
'Puc_v4_Factory' => 'Puc/v4/Factory.php', | ||
); | ||
|
||
spl_autoload_register(array($this, 'autoload')); | ||
} | ||
|
||
/** | ||
* Determine if this file is running as part of a Phar archive. | ||
* | ||
* @return bool | ||
*/ | ||
private static function isPhar() { | ||
//Check if the current file path starts with "phar://". | ||
static $pharProtocol = 'phar://'; | ||
return (substr(__FILE__, 0, strlen($pharProtocol)) === $pharProtocol); | ||
} | ||
|
||
public function autoload($className) { | ||
if ( isset($this->staticMap[$className]) && file_exists($this->libraryDir . $this->staticMap[$className]) ) { | ||
/** @noinspection PhpIncludeInspection */ | ||
include ($this->libraryDir . $this->staticMap[$className]); | ||
return; | ||
} | ||
|
||
if (strpos($className, $this->prefix) === 0) { | ||
$path = substr($className, strlen($this->prefix)); | ||
$path = str_replace('_', '/', $path); | ||
$path = $this->rootDir . $path . '.php'; | ||
|
||
if (file_exists($path)) { | ||
/** @noinspection PhpIncludeInspection */ | ||
include $path; | ||
} | ||
} | ||
} | ||
} | ||
|
||
endif; |
Oops, something went wrong.