Skip to content

Instantly share code, notes, and snippets.

<?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
*
@Finetuned
Finetuned / prefixNamedAnchor
Created April 10, 2015 13:17
MODX Plugin: Named Anchor with Parameters
<?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"));
}

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 / Bootstrap4Nav-Sage9.md
Created January 6, 2021 12:54 — forked from smutek/Bootstrap4Nav-Sage9.md
Bootstrap 4 Walker for Sage 9

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:
/**