Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian Weaver Finetuned

View GitHub Profile
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
*
You can’t perform that action at this time.