Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating all the files using wysiwyg to use a config array as the sec…
…ond param
- Loading branch information
1 parent
bd0ef01
commit 6dd4ce5
Showing
5 changed files
with
145 additions
and
174 deletions.
There are no files selected for viewing
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
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
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,29 +1,29 @@ | ||
<?php | ||
/** | ||
* 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 | ||
*/ | ||
|
||
echo $this->Form->create( 'Newsletter' ); | ||
echo $this->Form->input( 'campaign_id' ); | ||
echo $this->Form->input( 'from', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'reply_to', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'subject', array( 'class' => 'title' ) ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.html', 'EmailHtml' ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.text', 'EmailText' ); | ||
echo $this->Form->end( 'Save Newsletter' ); | ||
<?php | ||
/** | ||
* 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 | ||
*/ | ||
|
||
echo $this->Form->create( 'Newsletter' ); | ||
echo $this->Form->input( 'campaign_id' ); | ||
echo $this->Form->input( 'from', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'reply_to', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'subject', array( 'class' => 'title' ) ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.html', array('toolbar' => 'EmailHtml') ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.text', array('toolbar' => 'EmailText') ); | ||
echo $this->Form->end( 'Save Newsletter' ); | ||
?> |
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,30 +1,30 @@ | ||
<?php | ||
/** | ||
* 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 | ||
*/ | ||
|
||
echo $this->Form->create( 'Newsletter' ); | ||
echo $this->Form->input( 'id' ); | ||
echo $this->Form->input( 'campaign_id' ); | ||
echo $this->Form->input( 'from', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'reply_to', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'subject', array( 'class' => 'title' ) ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.html', 'EmailHtml' ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.text', 'EmailText' ); | ||
echo $this->Form->end( 'Save Newsletter' ); | ||
<?php | ||
/** | ||
* 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 | ||
*/ | ||
|
||
echo $this->Form->create( 'Newsletter' ); | ||
echo $this->Form->input( 'id' ); | ||
echo $this->Form->input( 'campaign_id' ); | ||
echo $this->Form->input( 'from', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'reply_to', array( 'class' => 'title' ) ); | ||
echo $this->Form->input( 'subject', array( 'class' => 'title' ) ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.html', array('toolbar' => 'EmailHtml') ); | ||
echo $this->Letter->wysiwyg( 'Newsletter.text', array('toolbar' => 'EmailText') ); | ||
echo $this->Form->end( 'Save Newsletter' ); | ||
?> |
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,79 +1,79 @@ | ||
<?php | ||
/** | ||
* 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 | ||
*/ | ||
?> | ||
<div id="comment-box"> | ||
<?php | ||
/** | ||
* fields allowed in the comments | ||
*/ | ||
$commentFields = explode(',',Configure::read('Comment.fields')); | ||
|
||
$action = ( isset( $action ) ) ? $action : 'comment'; | ||
$modelName = ( isset( $modelName ) ) ? $modelName : Inflector::singularize( $this->name ); | ||
|
||
if ( isset( $urlParams ) ) | ||
{ | ||
echo $this->Form->create( | ||
$modelName, | ||
array( | ||
'url' => array( | ||
'plugin' => $this->params['plugin'], | ||
'controller' => $this->params['controller'], | ||
'action' => $action, | ||
$urlParams | ||
) | ||
) | ||
); | ||
} | ||
|
||
else | ||
{ | ||
echo $this->Form->create( | ||
$modelName, | ||
array( | ||
'url' => array( | ||
'plugin' => $this->params['plugin'], | ||
'controller' => $this->params['controller'], | ||
'action' => $action | ||
) | ||
) | ||
); | ||
} | ||
?> | ||
<fieldset> | ||
<legend><?php __( "Post a {$commentModel}" );?></legend> | ||
<?php | ||
echo $this->Form->input( "$modelName.id", array( 'value' => $fk ) ); | ||
|
||
foreach( $commentFields as $field ) | ||
{ | ||
if ( $field != 'comment' ) | ||
{ | ||
echo $this->Form->input( 'Comment.'.$field ); | ||
} | ||
else | ||
{ | ||
echo $this->Blog->wysiwyg( 'Comment.comment', 'Simple' ); | ||
} | ||
} | ||
?> | ||
</fieldset> | ||
<?php echo $this->Form->end('Submit'); ?> | ||
<?php | ||
/** | ||
* 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 | ||
*/ | ||
?> | ||
<div id="comment-box"> | ||
<?php | ||
/** | ||
* fields allowed in the comments | ||
*/ | ||
$commentFields = explode(',',Configure::read('Comment.fields')); | ||
|
||
$action = ( isset( $action ) ) ? $action : 'comment'; | ||
$modelName = ( isset( $modelName ) ) ? $modelName : Inflector::singularize( $this->name ); | ||
|
||
if ( isset( $urlParams ) ) | ||
{ | ||
echo $this->Form->create( | ||
$modelName, | ||
array( | ||
'url' => array( | ||
'plugin' => $this->params['plugin'], | ||
'controller' => $this->params['controller'], | ||
'action' => $action, | ||
$urlParams | ||
) | ||
) | ||
); | ||
} | ||
|
||
else | ||
{ | ||
echo $this->Form->create( | ||
$modelName, | ||
array( | ||
'url' => array( | ||
'plugin' => $this->params['plugin'], | ||
'controller' => $this->params['controller'], | ||
'action' => $action | ||
) | ||
) | ||
); | ||
} | ||
?> | ||
<fieldset> | ||
<legend><?php __( "Post a {$commentModel}" );?></legend> | ||
<?php | ||
echo $this->Form->input( "$modelName.id", array( 'value' => $fk ) ); | ||
|
||
foreach( $commentFields as $field ) | ||
{ | ||
if ( $field != 'comment' ) | ||
{ | ||
echo $this->Form->input( 'Comment.'.$field ); | ||
} | ||
else | ||
{ | ||
echo $this->Blog->wysiwyg( 'Comment.comment', array('toolbar' => 'Basic') ); | ||
} | ||
} | ||
?> | ||
</fieldset> | ||
<?php echo $this->Form->end('Submit'); ?> | ||
</div> |