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 ## 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`. 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> </main>
<nav> <nav>
<menu class=""> <menu class="">
<?php /*
<?php
echo $site->publicNav() echo $site->publicNav()
->menu() ->menu()
->setPartial('common/foundation-navigation.phtml') ->setPartial('common/wordpress-menu.phtml')
->renderPartialWithParams(['layout' => 'dropdown']); ->renderPartialWithParams(['layout' => 'dropdown']);
*/
?> ?>
</menu> </menu>
</nav> </nav>

View File

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