Skip to content

Instantly share code, notes, and snippets.

@Finetuned
Finetuned / Bootstrap4Nav-Sage9.md
Created Jan 6, 2021 — forked from smutek/Bootstrap4Nav-Sage9.md
Bootstrap 4 Walker for Sage 9
View Bootstrap4Nav-Sage9.md

Credit

This is a frankensteind version of the current Soil nav walker, by the Roots team, and Michael Remoero's Sagextras walker. All credit goes to those good folks. :)

Use

  • Replace the contents of header.blade.php with the attached header.
  • Copy the walker.php file to the /app directory.
  • Add walker.php to the Sage required files array in resources/functions.php - eg. on a stock Sage install the entry would look like:
/**
View keybase.md

Keybase proof

I hereby claim:

  • I am finetuned on github.
  • I am julianweaver (https://keybase.io/julianweaver) on keybase.
  • I have a public key ASDgT6zx3dgri9kJrDVi5WaXICflnRzLK4o2xUpBbKdWlwo

To claim this, I am signing this object:

@Finetuned
Finetuned / prefixNamedAnchor
Created Apr 10, 2015
MODX Plugin: Named Anchor with Parameters
View prefixNamedAnchor
<?php
if ( $modx->resource->get('id') !=$modx->config['site_start'] ) {
$params = '';
if (count($_GET) > 1 ){
$arr = $_GET;
array_shift($arr);
$params = '?'. urldecode(http_build_query($arr, "\n"));
}
View pull.php
<?php
/**
* Pull.php:
* Version control your MODX site using git.
* Pulls changes from git and processes database changes in changesets.
*
* Authors:
* Jeroen Kenters / www.kenters.com
* Bert Oost / www.oostdesign.com
*