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
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'yaml' | |
host = ARGV[0] | |
urlsFile = ARGV[1] | |
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
<h3 class="hide">Top Level Navigation</h3> | |
<div id="myslidemenu" class="jqueryslidemenu"> | |
<a name="topLevelNavigation" class="hide"></a> | |
<ul class="primary-menu"> | |
<% control Menu(1) %> | |
<li><a href="$Link" class="$LinkOrSection">$Title</a> | |
<% if Children %> | |
<ul> | |
<% control Children %> |
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 | |
/*********************** | |
*@author: Ritesh Agrawal | |
*@description: Identifies php files that contain leading or trailing spaces before or after PHP opening or closings tags | |
*@version: 1.0 | |
*@date: Nov 06, 2007 | |
@todo – check only *.PHP or *.CTP files rather than checking all of the files | |
– html based output | |
***********************/ | |
//Set Source Path |
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
/* ============================================================= | |
* bootstrap-collapse.js v2.1.1 | |
* http://twitter.github.com/bootstrap/javascript.html#collapse | |
* ============================================================= | |
* Copyright 2012 Twitter, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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
Phallic X1 | |
Graeme Wood | |
Quinton de Kock | |
Peter Willey | |
Nigel Cock | |
Artie Dick | |
David Stiff | |
Dong Chao | |
John Thomas |
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
public function init() { | |
parent::init(); | |
// needed for _t to work, see http://doc.silverstripe.org/multilingualcontent#setting_the_i18n_locale | |
if($this->dataRecord->hasExtension('Translatable')) { | |
i18n::set_locale($this->dataRecord->Locale); | |
} | |
} |
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
class PageWithMap extends DemoPage { | |
} | |
class PageWithMap_Controller extends DemoPage_Controller { | |
} |
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 ContactPage extends DemoPage { | |
static $has_many = array( | |
'Locations' => 'ContactPageAddress' | |
); | |
function getCMSFields() { | |
$fields = parent::getCMSFields(); |
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 ContactPage extends DemoPage { | |
static $has_many = array( | |
'Locations' => 'ContactPageAddress' | |
); | |
function getCMSFields() { | |
$fields = parent::getCMSFields(); |
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 ContactPageAddress extends DataObject { | |
static $db = array( | |
'PostalAddress' => 'Text' | |
); | |
static $has_one = array( 'ContactPage' => 'ContactPage' ); | |
public static $summary_fields = array( |