develop #63

Merged
chris merged 14 commits from develop into main 2022-04-23 21:10:16 +02:00
3 changed files with 17 additions and 9 deletions
Showing only changes of commit 3b1f83d4c7 - Show all commits

View File

@ -33,6 +33,15 @@ chown -R www-data:www-data ./
## Arc-hive theme notes
### Configure
The main menu can be retrieved from a wordpress site and rendered. To configure this, edit `view/common/wordpress-menu.phtml`. Optional.
```
# Config
$wordpress_site="https://my.wordpress.site";
$wordpress_endpoint="https://my.wordpress.site/wp-json/menus/v1/menus/4";
```
For more advanced use, such as customizing the theme with Sass, you'll need to install the tools with [NodeJS](https://nodejs.org/en/) (0.12 or greater). Navigate to your theme directory and run `npm install`.

View File

@ -18,12 +18,13 @@
</main>
<nav>
<menu class="">
<?php /*
<?php
echo $site->publicNav()
->menu()
->setPartial('common/foundation-navigation.phtml')
->setPartial('common/wordpress-menu.phtml')
->renderPartialWithParams(['layout' => 'dropdown']);
*/
?>
</menu>
</nav>

View File

@ -42,12 +42,10 @@ $img_src = null;
<nav>
<menu class="">
<?php //
// Segun el diseño, este menu no existe
// ----------
// echo $site->publicNav()
// ->menu()
// ->setPartial('common/foundation-navigation.phtml')
// ->renderPartialWithParams(['layout' => 'dropdown']);
echo $site->publicNav()
->menu()
->setPartial('common/wordpress-menu.phtml')
->renderPartialWithParams(['layout' => 'dropdown']);
?>
</menu>
</nav>