This file contains hidden or 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 | |
| /* | |
| | ------------------------------------------------------------------- | |
| | Featurette Shortcode | |
| | ------------------------------------------------------------------- | |
| |*/ | |
| function lp_featurette( $atts, $content = null ) { | |
| // --- wordpress shortcode processing --- |
This file contains hidden or 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 | |
| /** | |
| * The Wyzant Search schema | |
| */ | |
| protected $_schema = array( | |
| 'SearchString' => array( | |
| 'type' => 'string', | |
| 'null' => true, | |
| 'default' => null, | |
| 'length' => 255, |
This file contains hidden or 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 | |
| * Process params passed to the search controller, stripping out | |
| * any that are not relevant to the query at hand. | |
| * | |
| * @param array $params Query string parameters pulled from $this->params->query | |
| * @return array Query string parameters with the garbage removed | |
| */ | |
| private function _extractQueryParams(array $params) { | |
| if (isset($params) && is_array($params)) { | |
| $acceptableParams = array('SearchString', 'MinHourly', 'MaxHourly', 'Zip', 'IsMale', 'Distance'); |
This file contains hidden or 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 DATABASE_CONFIG { | |
| public $default = array(); | |
| function __construct() { | |
| ## --- APPFOG --- ## | |
| // Read in the VCAP_SERVICES environment variable, parse the json, and | |
| // check to see if it exists. If it does, use the settings for our default |
This file contains hidden or 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 | |
| /** | |
| * Records | |
| * | |
| * @var array | |
| */ | |
| public $records = array( | |
| array( ## USER account | |
| 'id' => 1, | |
| 'uuid' => '51ab1e7b-6c5c-4079-ac4d-333232770b3e', |
This file contains hidden or 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 | |
| /** | |
| * Trim a string at the <!-- more --> tag, for CakePHP | |
| * | |
| * @author Chris Vogt <http://chrisvogt.me> | |
| * @param string $content | |
| * @return string $trimmed | |
| */ | |
| protected function _trimTheContent($content) { | |
| $marker = '<!-- more -->'; |
This file contains hidden or 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
| find . -name .svn -exec echo {} \; | |
| find . -name .DS_Store -exec echo {} \; |
This file contains hidden or 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
| <div class="letter"> | |
| <p>Dear Friends,</p> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod porta tempor. Donec pulvinar turpis nec velit pellentesque quis rhoncus sapien facilisis. Mauris quis massa dui, rhoncus viverra quam. Nulla tempus, augue ut consectetur facilisis, arcu elit pellentesque arcu, sed rutrum orci turpis pulvinar augue. Donec eget arcu mauris. Vestibulum tristique consequat lacus eget laoreet. Integer sed nisl sed nibh pulvinar ornare quis nec quam. Aenean rhoncus ligula ut lectus placerat a commodo quam vulputate. In eu metus turpis.</p> | |
| <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus facilisis erat in nibh auctor at aliquet velit vestibulum. Curabitur turpis diam, malesuada eu consequat eget, ultricies sed nunc. Aenean sed odio massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ornare vulputate congue. Quisque leo metus, condimentum nec molestie et, egestas luctus libero.</p> | |
| <p>M |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <link rel="shortcut icon" href="http://placehold.it/16x16&text=HI"> | |
| <title>Yet Another Bootstrap Bootstrap</title> |
This file contains hidden or 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 | |
| /** | |
| * Events Controller: assign() method | |
| */ | |
| public function assign() { | |
| if ($this->request->is('post')) { | |
| if ($this->Event->saveAll($this->request->data)) { | |
| $this->Session->setFlash(__('The attendee list has been updated.'), 'flash/success'); | |
| $this->redirect(array('action' => 'index')); | |
| } else { |