This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include($config->paths->root . "site/.libs/countries/countryList.class.php"); | |
$ct = new CountryList(); | |
$countries = $ct->getCountryList($lang); | |
$show_form = true; | |
$note = '<h3>Danke!</h3>'; | |
$errors = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#page>(#header>ul#nav>li*4>a>span.cf)+(#page>(h1>span)+p*2)+#footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace youtube urls | |
if(strpos($page->body, '<p>http://www.youtube.com') !== false) { | |
$replacement = '<iframe width="444" height="280" src="http://www.youtube.com/embed/$1?$2" frameborder="0" allowfullscreen></iframe>'; | |
$page->body = preg_replace('#<p>\s*http://www.youtube.com/watch\?v=([^\s&<]+)([\&\;+?].+).*?</p>#iu', $replacement, $page->body); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).bind("mobileinit", function(){ | |
$.extend( $.mobile , { | |
autoInitializePage: false, | |
ajaxEnabled: false, | |
linkBindingEnabled: false, | |
pushStateEnabled: false, | |
hashListeningEnabled: false | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ProcessWire Module Template | |
* | |
* Demonstrates the Module interface and how to add hooks. | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* | |
* | |
* | |
*/ | |
class ProcessDashboard extends Process { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function flourish_loader( $class_name ) | |
{ | |
// Customize this to your root Flourish directory | |
$flourish_root = wire("config")->paths->root . '.libs/flourish/'; | |
$file = $flourish_root . $class_name . '.php'; | |
if (file_exists($file)) { | |
include $file; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* anchor-include pattern for already-functional links that work as a client-side include | |
* Copyright 2011, Scott Jehl, scottjehl.com | |
* Dual licensed under the MIT | |
* Idea from Scott Gonzalez | |
* to use, place attributes on an already-functional anchor pointing to content | |
* that should either replace, or insert before or after that anchor | |
* after the page has loaded | |
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a> | |
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ProcessWire Module FieldHelper | |
* | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Helper Module | |
* Example to track a change before page is saved | |
* | |
*/ | |