Skip to content

Commit

Permalink
changing links in comments to new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 27, 2010
1 parent 2e7a8f1 commit 5628085
Show file tree
Hide file tree
Showing 144 changed files with 13,638 additions and 13,639 deletions.
778 changes: 389 additions & 389 deletions app_controller.php

Large diffs are not rendered by default.

634 changes: 317 additions & 317 deletions app_helper.php

Large diffs are not rendered by default.

70 changes: 35 additions & 35 deletions app_model.php
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'
);
}

?>
224 changes: 112 additions & 112 deletions extensions/filter/views/helpers/filter.php
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;
}
}
?>

0 comments on commit 5628085

Please sign in to comment.