-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing links in comments to new domain
- Loading branch information
1 parent
2e7a8f1
commit 5628085
Showing
144 changed files
with
13,638 additions
and
13,639 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<?php | ||
/** | ||
* Comment Template. | ||
* | ||
* @todo Implement .this needs to be sorted out. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package sort | ||
* @subpackage sort.comments | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since 0.5a | ||
*/ | ||
|
||
class AppModel extends Model { | ||
/** | ||
* The database configuration to use for the site. | ||
*/ | ||
var $useDbConfig = 'default'; | ||
|
||
/** | ||
* Behaviors to attach to the site. | ||
*/ | ||
var $actsAs = array( | ||
'Containable', | ||
'Libs.Lockable', | ||
'Libs.Logable' | ||
); | ||
} | ||
|
||
<?php | ||
/** | ||
* Comment Template. | ||
* | ||
* @todo Implement .this needs to be sorted out. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://infinitas-cms.org | ||
* @package sort | ||
* @subpackage sort.comments | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since 0.5a | ||
*/ | ||
|
||
class AppModel extends Model { | ||
/** | ||
* The database configuration to use for the site. | ||
*/ | ||
var $useDbConfig = 'default'; | ||
|
||
/** | ||
* Behaviors to attach to the site. | ||
*/ | ||
var $actsAs = array( | ||
'Containable', | ||
'Libs.Lockable', | ||
'Libs.Logable' | ||
); | ||
} | ||
|
||
?> |
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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,113 @@ | ||
<?php | ||
class FilterHelper extends Helper | ||
{ | ||
var $helpers = array( | ||
'Form', 'Html' | ||
); | ||
|
||
var $count = 0; | ||
|
||
function form( $model, $filter = array() ) | ||
{ | ||
if ( empty( $filter ) || !isset( $filter['fields'] ) ) | ||
{ | ||
$this->errors[] = 'There is no filters'; | ||
return false; | ||
} | ||
|
||
$output = '<div class="filter-form">'; | ||
foreach( (array)$filter['fields'] as $field ) | ||
{ | ||
if( empty( $field ) ) | ||
{ | ||
continue; | ||
} | ||
|
||
$output .= $this->Form->input($field, | ||
array( | ||
'type' => 'text', | ||
'div'=>false | ||
) | ||
); | ||
} | ||
|
||
$output .= $this->Form->submit($this->Image->getRelativePath(array('actions'), 'filter'), | ||
array( | ||
'value' => 'filter', | ||
'name' => 'action', | ||
'title' => 'Filter results', | ||
'div' => false, | ||
'width' => '16px' | ||
) | ||
); | ||
$output .= '</div>'; | ||
return $output; | ||
} | ||
|
||
/** | ||
* Comment Template. | ||
* | ||
* @todo -c Implement .this needs to be sorted out. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package sort | ||
* @subpackage sort.comments | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since 0.5a | ||
*/ | ||
function clear( $filter, $div = false ) | ||
{ | ||
if ( !isset( $filter['url'][0] ) || empty( $filter['url'][0] ) || $filter['url'][0] == '/' ) | ||
{ | ||
$filter['url'][0] = '/'; | ||
} | ||
|
||
$out = ''; | ||
if ( $div ) | ||
{ | ||
$out .= '<div class="filter">'; | ||
} | ||
$out .= '<div class="wrap">'; | ||
$parts = explode( '/', $filter['url'][0] ); | ||
|
||
$done = array(); | ||
|
||
foreach( $parts as $_f ) | ||
{ | ||
if ( empty( $_f ) || in_array( $_f, $done ) ) | ||
{ | ||
continue; | ||
} | ||
|
||
$done[] = $_f; | ||
|
||
$text = explode( ':', $_f ); | ||
$text = explode( '.', $text[0] ); | ||
$text = ( count( $text ) > 1 ) ? $text[1] : $text[0]; | ||
|
||
$out .= '<div class="left">'. | ||
'<div class="remove">'. | ||
$this->Html->link( | ||
Inflector::humanize( $text ), | ||
str_replace( $_f, '', '/' . $this->params['url']['url'] ) | ||
). | ||
'</div>'. | ||
'</div>'; | ||
} | ||
$out .= '</div>'; | ||
if ( $div ) | ||
{ | ||
$out .= '</div>'; | ||
} | ||
|
||
return $out; | ||
} | ||
} | ||
<?php | ||
class FilterHelper extends Helper | ||
{ | ||
var $helpers = array( | ||
'Form', 'Html' | ||
); | ||
|
||
var $count = 0; | ||
|
||
function form( $model, $filter = array() ) | ||
{ | ||
if ( empty( $filter ) || !isset( $filter['fields'] ) ) | ||
{ | ||
$this->errors[] = 'There is no filters'; | ||
return false; | ||
} | ||
|
||
$output = '<div class="filter-form">'; | ||
foreach( (array)$filter['fields'] as $field ) | ||
{ | ||
if( empty( $field ) ) | ||
{ | ||
continue; | ||
} | ||
|
||
$output .= $this->Form->input($field, | ||
array( | ||
'type' => 'text', | ||
'div'=>false | ||
) | ||
); | ||
} | ||
|
||
$output .= $this->Form->submit($this->Image->getRelativePath(array('actions'), 'filter'), | ||
array( | ||
'value' => 'filter', | ||
'name' => 'action', | ||
'title' => 'Filter results', | ||
'div' => false, | ||
'width' => '16px' | ||
) | ||
); | ||
$output .= '</div>'; | ||
return $output; | ||
} | ||
|
||
/** | ||
* Comment Template. | ||
* | ||
* @todo -c Implement .this needs to be sorted out. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://infinitas-cms.org | ||
* @package sort | ||
* @subpackage sort.comments | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
* @since 0.5a | ||
*/ | ||
function clear( $filter, $div = false ) | ||
{ | ||
if ( !isset( $filter['url'][0] ) || empty( $filter['url'][0] ) || $filter['url'][0] == '/' ) | ||
{ | ||
$filter['url'][0] = '/'; | ||
} | ||
|
||
$out = ''; | ||
if ( $div ) | ||
{ | ||
$out .= '<div class="filter">'; | ||
} | ||
$out .= '<div class="wrap">'; | ||
$parts = explode( '/', $filter['url'][0] ); | ||
|
||
$done = array(); | ||
|
||
foreach( $parts as $_f ) | ||
{ | ||
if ( empty( $_f ) || in_array( $_f, $done ) ) | ||
{ | ||
continue; | ||
} | ||
|
||
$done[] = $_f; | ||
|
||
$text = explode( ':', $_f ); | ||
$text = explode( '.', $text[0] ); | ||
$text = ( count( $text ) > 1 ) ? $text[1] : $text[0]; | ||
|
||
$out .= '<div class="left">'. | ||
'<div class="remove">'. | ||
$this->Html->link( | ||
Inflector::humanize( $text ), | ||
str_replace( $_f, '', '/' . $this->params['url']['url'] ) | ||
). | ||
'</div>'. | ||
'</div>'; | ||
} | ||
$out .= '</div>'; | ||
if ( $div ) | ||
{ | ||
$out .= '</div>'; | ||
} | ||
|
||
return $out; | ||
} | ||
} | ||
?> |
Oops, something went wrong.