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
function force_of_gravity() { ?> | |
if (get_post_meta(get_the_ID(), "image", true)) || (get_post_meta(get_the_ID(), "text", true)) { ?> | |
<b>Submitted by: </b><?php echo get_post_meta(get_the_ID(), "name", true) ?> in <?php echo get_post_meta(get_the_ID(), "location", true); ?> | |
<?php endif; ?> | |
<?php | |
} | |
add_action('thesis_hook_before_content', 'force_of_gravity'); |
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
function force_of_gravity() { | |
if (get_post_meta(get_the_ID(), "image", true)) || (get_post_meta(get_the_ID(), "text", true)): ?> | |
<b>Submitted by: </b><?php echo get_post_meta(get_the_ID(), "name", true) ?> in <?php echo get_post_meta(get_the_ID(), "location", true); ?> | |
<?php endif; ?> | |
<?php | |
} | |
add_action('thesis_hook_before_content', 'force_of_gravity'); |
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
/media/* | |
/var/* | |
/app/etc/local.xml | |
/app/etc/use_cache.ser | |
/nbproject/* | |
/downloader/pearlib/cache/* | |
/downloader/pearlib/download/* | |
/downloader/pearlib/temp/* | |
/.htaccess | |
.svn |
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
<select name="time" id="time"> | |
<option value="5:00 AM">5:00 AM</option> | |
<option value="5:15 AM">5:15 AM</option> | |
<option value="5:30 AM">5:30 AM</option> | |
<option value="5:45 AM">5:45 AM</option> | |
<option value="6:00 AM">6:00 AM</option> | |
<option value="6:15 AM">6:15 AM</option> | |
<option value="6:30 AM">6:30 AM</option> | |
<option value="6:45 AM">6:45 AM</option> |
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
$time = array( | |
"5:00 AM" => "5:00 AM", | |
"5:15 AM" => "5:15 AM", | |
"5:30 AM" => "5:30 AM", | |
"5:45 AM" => "5:45 AM", | |
"6:00 AM" => "6:00 AM", | |
"6:15 AM" => "6:15 AM", | |
"6:30 AM" => "6:30 AM", | |
"6:45 AM" => "6:45 AM", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<countries> | |
<AD> | |
<region>Andorra</region> | |
<region>Parròquia de Canillo</region> | |
<region>Parròquia d'Encamp</region> | |
<region>Parròquia de la Massana</region> | |
<region>Parròquia d'Ordino</region> | |
<region>Parròquia de Sant Julià de Lòria</region> | |
<region>Parròquia d'Andorra la Vella</region> |
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
// Recursivly search through an array, if the key is found, then return TRUE | |
private function _recursiveArraySearch($haystack, $needle, $index = null) | |
{ | |
$aIt = new RecursiveArrayIterator($haystack); | |
$it = new RecursiveIteratorIterator($aIt); | |
while($it->valid()) | |
{ | |
if (((isset($index) AND ($it->key() == $index)) OR (!isset($index))) AND ($it->current() == $needle)) { | |
//return $aIt->key(); |
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
protected function _logIn($id = 4) | |
{ | |
$user = Doctrine_Core::getTable('Default_Model_User')->find(4); | |
Zend_Auth::getInstance()->getStorage()->write($user); | |
} |
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
--- BootstrapFile.php (saved version) | |
+++ (current document) | |
@@ -106,9 +106,11 @@ | |
define('APPLICATION_PATH', $this->_applicationDirectory->getPath()); | |
$applicationOptions = array(); | |
$applicationOptions['config'] = $this->_applicationConfigFile->getPath(); | |
+ | |
+ $env = getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'; | |
$this->_applicationInstance = new Zend_Application( |
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
/** | |
* original http://groups.google.com/group/doctrine-user/browse_thread/thread/8674c5f27de54e0c | |
*/ | |
public function toHierarchy($collection) | |
{ | |
// Trees mapped | |
$trees = array(); | |
$l = 0; |
OlderNewer