develop #63
|
@ -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`.
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue