Merge branch 'develop' of ssh://git.hangar.org:21036/arcHIVE-tech/Arc-hive-omeka-theme into develop

This commit is contained in:
buttle 2022-03-25 13:20:02 +01:00
commit 3b1f83d4c7
3 changed files with 17 additions and 9 deletions

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>