WIP
This commit is contained in:
3
assets/envelope-fill.svg
Normal file
3
assets/envelope-fill.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-envelope-fill" viewBox="0 0 16 16">
|
||||
<path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414zM0 4.697v7.104l5.803-3.558zM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586zm3.436-.586L16 11.801V4.697z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 349 B |
3
assets/telephone-fill.svg
Normal file
3
assets/telephone-fill.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-telephone-fill" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 521 B |
15
composer.lock
generated
15
composer.lock
generated
@@ -57,16 +57,16 @@
|
||||
},
|
||||
{
|
||||
"name": "open-function-computers-llc/rad-theme-engine",
|
||||
"version": "v1.0.26",
|
||||
"version": "v1.0.29",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/open-function-computers-llc/rad-theme-engine.git",
|
||||
"reference": "17f231ae60eb6b90c5819d11d7c1e540a805f3a6"
|
||||
"reference": "13207fdf9e9241003106958db5a98cc2f0d03f01"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/17f231ae60eb6b90c5819d11d7c1e540a805f3a6",
|
||||
"reference": "17f231ae60eb6b90c5819d11d7c1e540a805f3a6",
|
||||
"url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/13207fdf9e9241003106958db5a98cc2f0d03f01",
|
||||
"reference": "13207fdf9e9241003106958db5a98cc2f0d03f01",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -77,6 +77,9 @@
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"bin": [
|
||||
"bin/getIcon"
|
||||
],
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -95,9 +98,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/open-function-computers-llc/rad-theme-engine/issues",
|
||||
"source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.26"
|
||||
"source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.29"
|
||||
},
|
||||
"time": "2025-05-06T15:27:11+00:00"
|
||||
"time": "2025-05-13T16:23:34+00:00"
|
||||
},
|
||||
{
|
||||
"name": "salesforce/handlebars-php",
|
||||
|
||||
@@ -6,4 +6,12 @@
|
||||
|
||||
echo site()->render("footer", [
|
||||
"menu" => site()->renderMenu("footer-nav"),
|
||||
"address_1" => get_field("address_1", "options"),
|
||||
"address_2" => get_field("address_2", "options"),
|
||||
"city" => get_field("city", "options"),
|
||||
"state" => get_field("state", "options"),
|
||||
"zip" => get_field("zip", "options"),
|
||||
"phone_1" => get_field("phone_1", "options"),
|
||||
"phone_2" => get_field("phone_2", "options"),
|
||||
"contact_email" => get_field("contact_email", "options"),
|
||||
]);
|
||||
|
||||
@@ -5,6 +5,23 @@
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="left">
|
||||
<a href="/"><img src='{{#assetURL logo.png}}' alt="{{#wp-title}}" /></a>
|
||||
|
||||
<p>{{ address_1 }}<br />
|
||||
{{ address_2 }}<br />
|
||||
{{ city }}, {{ state }} {{ zip }}
|
||||
</p>
|
||||
|
||||
<ul class="footer-contact">
|
||||
<li>
|
||||
<a href="tel:{{ phone_1 }}">{{#assetContents telephone-fill.svg}} {{ phone_1 }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="tel:{{ phone_2 }}">{{#assetContents telephone-fill.svg}} {{ phone_2 }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:{{ contact_email }}">{{#assetContents envelope-fill.svg}} {{ contact_email }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
|
||||
119
vendor/bin/getIcon
vendored
Executable file
119
vendor/bin/getIcon
vendored
Executable file
@@ -0,0 +1,119 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Proxy PHP file generated by Composer
|
||||
*
|
||||
* This file includes the referenced bin path (../open-function-computers-llc/rad-theme-engine/bin/getIcon)
|
||||
* using a stream wrapper to prevent the shebang from being output on PHP<8
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
|
||||
namespace Composer;
|
||||
|
||||
$GLOBALS['_composer_bin_dir'] = __DIR__;
|
||||
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';
|
||||
|
||||
if (PHP_VERSION_ID < 80000) {
|
||||
if (!class_exists('Composer\BinProxyWrapper')) {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BinProxyWrapper
|
||||
{
|
||||
private $handle;
|
||||
private $position;
|
||||
private $realpath;
|
||||
|
||||
public function stream_open($path, $mode, $options, &$opened_path)
|
||||
{
|
||||
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution
|
||||
$opened_path = substr($path, 17);
|
||||
$this->realpath = realpath($opened_path) ?: $opened_path;
|
||||
$opened_path = $this->realpath;
|
||||
$this->handle = fopen($this->realpath, $mode);
|
||||
$this->position = 0;
|
||||
|
||||
return (bool) $this->handle;
|
||||
}
|
||||
|
||||
public function stream_read($count)
|
||||
{
|
||||
$data = fread($this->handle, $count);
|
||||
|
||||
if ($this->position === 0) {
|
||||
$data = preg_replace('{^#!.*\r?\n}', '', $data);
|
||||
}
|
||||
|
||||
$this->position += strlen($data);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function stream_cast($castAs)
|
||||
{
|
||||
return $this->handle;
|
||||
}
|
||||
|
||||
public function stream_close()
|
||||
{
|
||||
fclose($this->handle);
|
||||
}
|
||||
|
||||
public function stream_lock($operation)
|
||||
{
|
||||
return $operation ? flock($this->handle, $operation) : true;
|
||||
}
|
||||
|
||||
public function stream_seek($offset, $whence)
|
||||
{
|
||||
if (0 === fseek($this->handle, $offset, $whence)) {
|
||||
$this->position = ftell($this->handle);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function stream_tell()
|
||||
{
|
||||
return $this->position;
|
||||
}
|
||||
|
||||
public function stream_eof()
|
||||
{
|
||||
return feof($this->handle);
|
||||
}
|
||||
|
||||
public function stream_stat()
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
public function stream_set_option($option, $arg1, $arg2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function url_stat($path, $flags)
|
||||
{
|
||||
$path = substr($path, 17);
|
||||
if (file_exists($path)) {
|
||||
return stat($path);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true))
|
||||
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper'))
|
||||
) {
|
||||
return include("phpvfscomposer://" . __DIR__ . '/..'.'/open-function-computers-llc/rad-theme-engine/bin/getIcon');
|
||||
}
|
||||
}
|
||||
|
||||
return include __DIR__ . '/..'.'/open-function-computers-llc/rad-theme-engine/bin/getIcon';
|
||||
17
vendor/composer/installed.json
vendored
17
vendor/composer/installed.json
vendored
@@ -54,17 +54,17 @@
|
||||
},
|
||||
{
|
||||
"name": "open-function-computers-llc/rad-theme-engine",
|
||||
"version": "v1.0.26",
|
||||
"version_normalized": "1.0.26.0",
|
||||
"version": "v1.0.29",
|
||||
"version_normalized": "1.0.29.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/open-function-computers-llc/rad-theme-engine.git",
|
||||
"reference": "17f231ae60eb6b90c5819d11d7c1e540a805f3a6"
|
||||
"reference": "13207fdf9e9241003106958db5a98cc2f0d03f01"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/17f231ae60eb6b90c5819d11d7c1e540a805f3a6",
|
||||
"reference": "17f231ae60eb6b90c5819d11d7c1e540a805f3a6",
|
||||
"url": "https://api.github.com/repos/open-function-computers-llc/rad-theme-engine/zipball/13207fdf9e9241003106958db5a98cc2f0d03f01",
|
||||
"reference": "13207fdf9e9241003106958db5a98cc2f0d03f01",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -75,7 +75,10 @@
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2025-05-06T15:27:11+00:00",
|
||||
"time": "2025-05-13T16:23:34+00:00",
|
||||
"bin": [
|
||||
"bin/getIcon"
|
||||
],
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
@@ -95,7 +98,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/open-function-computers-llc/rad-theme-engine/issues",
|
||||
"source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.26"
|
||||
"source": "https://github.com/open-function-computers-llc/rad-theme-engine/tree/v1.0.29"
|
||||
},
|
||||
"install-path": "../open-function-computers-llc/rad-theme-engine"
|
||||
},
|
||||
|
||||
10
vendor/composer/installed.php
vendored
10
vendor/composer/installed.php
vendored
@@ -3,7 +3,7 @@
|
||||
'name' => 'open-function-computers-llc/wp-theme',
|
||||
'pretty_version' => 'dev-main',
|
||||
'version' => 'dev-main',
|
||||
'reference' => 'db52cd69338635ed28050c3df73492e8d38fb98f',
|
||||
'reference' => 'fd46e2c501b0ea93cef8440b9aed659128ed2f75',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
@@ -20,9 +20,9 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'open-function-computers-llc/rad-theme-engine' => array(
|
||||
'pretty_version' => 'v1.0.26',
|
||||
'version' => '1.0.26.0',
|
||||
'reference' => '17f231ae60eb6b90c5819d11d7c1e540a805f3a6',
|
||||
'pretty_version' => 'v1.0.29',
|
||||
'version' => '1.0.29.0',
|
||||
'reference' => '13207fdf9e9241003106958db5a98cc2f0d03f01',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../open-function-computers-llc/rad-theme-engine',
|
||||
'aliases' => array(),
|
||||
@@ -31,7 +31,7 @@
|
||||
'open-function-computers-llc/wp-theme' => array(
|
||||
'pretty_version' => 'dev-main',
|
||||
'version' => 'dev-main',
|
||||
'reference' => 'db52cd69338635ed28050c3df73492e8d38fb98f',
|
||||
'reference' => 'fd46e2c501b0ea93cef8440b9aed659128ed2f75',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
vendor/
|
||||
composer.lock
|
||||
.php.result.cache
|
||||
.php.result.cache
|
||||
.phpunit.result.cache
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{"version":1,"defects":{"ofc\\tests\\UtilTest::weCanSlugifyAString":3},"times":{"ofc\\tests\\UtilTest::weCanSlugifyAString":0.002}}
|
||||
37
vendor/open-function-computers-llc/rad-theme-engine/bin/getIcon
vendored
Executable file
37
vendor/open-function-computers-llc/rad-theme-engine/bin/getIcon
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
$autoloadPaths = [
|
||||
__DIR__ . '/../../../autoload.php', // typical path when symlinked in vendor/bin
|
||||
__DIR__ . '/../vendor/autoload.php', // fallback if run directly from source
|
||||
];
|
||||
|
||||
$found = false;
|
||||
foreach ($autoloadPaths as $path) {
|
||||
if (file_exists($path)) {
|
||||
require $path;
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$found) {
|
||||
fwrite(STDERR, "Could not locate Composer autoloader.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
use ofc\IconGetter;
|
||||
|
||||
if ($argc !== 2) {
|
||||
fwrite(STDERR, "Usage: getIcon <icon-name>\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$icon = trim(strtolower($argv[1]));
|
||||
|
||||
try {
|
||||
IconGetter::get($icon);
|
||||
} catch (Exception $e) {
|
||||
fwrite(STDERR, "Error: ".$e->getMessage().PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
@@ -10,7 +10,11 @@
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"license": "MIT",
|
||||
"keywords": ["wordpress", "handlebars", "theme"],
|
||||
"keywords": [
|
||||
"wordpress",
|
||||
"handlebars",
|
||||
"theme"
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -19,5 +23,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"post-create-project-cmd": "ofc\\RadThemeEngine::setup"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/getIcon"
|
||||
]
|
||||
}
|
||||
|
||||
2115
vendor/open-function-computers-llc/rad-theme-engine/src/IconGetter.php
vendored
Normal file
2115
vendor/open-function-computers-llc/rad-theme-engine/src/IconGetter.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user