|
|
|
@ -151,7 +151,7 @@ Below is a minimal functional `default` template that fulfills the above require
|
|
|
|
|
|
|
|
|
|
#### Plain Text
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
```php
|
|
|
|
|
<p class="sw-text" data-component="lead">
|
|
|
|
|
<?php get_component("lead"); ?>
|
|
|
|
|
</p>
|
|
|
|
@ -159,7 +159,7 @@ Below is a minimal functional `default` template that fulfills the above require
|
|
|
|
|
|
|
|
|
|
#### HTML
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
```php
|
|
|
|
|
<div class="sw-editable" data-component="component-name">
|
|
|
|
|
<?php get_component("component-name"); ?>
|
|
|
|
|
</div>
|
|
|
|
@ -167,7 +167,7 @@ Below is a minimal functional `default` template that fulfills the above require
|
|
|
|
|
|
|
|
|
|
#### Complex
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
```php
|
|
|
|
|
<?php
|
|
|
|
|
if (!is_complex_empty("complex-component-name")) {
|
|
|
|
|
$comp = get_complex_component("complex-component-name", null, ['icon', 'image', 'link', 'text']);
|
|
|
|
@ -191,7 +191,7 @@ if (!is_complex_empty("complex-component-name")) {
|
|
|
|
|
|
|
|
|
|
#### List of social media links
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
```php
|
|
|
|
|
<?php
|
|
|
|
|
$social = get_socialmedia_urls();
|
|
|
|
|
foreach ($social as $s) {
|
|
|
|
@ -208,7 +208,7 @@ foreach ($social as $s) {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### Contact Information
|
|
|
|
|
```html
|
|
|
|
|
```php
|
|
|
|
|
<?php
|
|
|
|
|
format_special(
|
|
|
|
|
get_setting("address"),
|
|
|
|
@ -229,7 +229,7 @@ format_special(
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### Footer Links
|
|
|
|
|
```html
|
|
|
|
|
```php
|
|
|
|
|
<ul>
|
|
|
|
|
<?php
|
|
|
|
|
$links = get_footer_urls();
|
|
|
|
|