-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
333 additions
and
245 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
Configure::write('Saito.v', '4.0.0'); | ||
Configure::write('Saito.v', '4.0.1'); | ||
|
||
Configure::write('Saito.saitoHomepage', 'http://saito.siezi.com'); |
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
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
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,97 +1,61 @@ | ||
<?php Stopwatch::start('category-chooser.ctp'); ?> | ||
<div id="category-chooser" style="display: none; overflow: hidden;"> | ||
<div class="panel"> | ||
<div class="panel-content panel-form"> | ||
<?php | ||
echo $this->Form->create( | ||
null, | ||
array( | ||
'url' => array( | ||
'controller' => 'users', | ||
'action' => 'setcategory' | ||
), | ||
'style' => 'clear: none;', | ||
) | ||
); | ||
?> | ||
<div style="float:right; width: 150px; margin-left: 2em;"> | ||
<p> | ||
<?php echo __('category_chooser_context_exp'); ?> | ||
</p> | ||
</div> | ||
<div class="panel"> | ||
<div class="panel-content panel-form clearfix"> | ||
<?php | ||
echo $this->Form->create(null, [ | ||
'url' => [ | ||
'controller' => 'users', | ||
'action' => 'setcategory' | ||
], | ||
'style' => 'clear: none;', | ||
]); | ||
?> | ||
<div style="float:right; width: 150px; margin-left: 2em;"> | ||
<p> | ||
<?php echo __('category_chooser_context_exp'); ?> | ||
</p> | ||
</div> | ||
|
||
<ul class="category-chooser-ul"> | ||
<li class="category-chooser-li"> | ||
<?php | ||
/* For performance reasons we generate the html manually */ | ||
/* | ||
echo $this->Form->checkbox('CatMeta.All', | ||
array( | ||
'id' => 'cb-category-chooser-all', | ||
'style' => 'visibility: hidden;', | ||
'value' => 1)); | ||
*/ | ||
?> | ||
<input type="hidden" name="data[CatMeta][All]" id="cb-category-chooser-all_" value="0"> | ||
<input type="checkbox" name="data[CatMeta][All]" id="cb-category-chooser-all" style="visibility: hidden;" value="1"> | ||
<?php | ||
/* For performance reasons we generate the html manually */ | ||
/* | ||
echo $this->Html->link(__('All'), '/users/setcategory/all') | ||
*/ | ||
?> | ||
<a href="<?php echo $this->webroot; ?>users/setcategory/all"><?php echo __('All Categories'); ?></a> | ||
<ul class="category-chooser-ul"> | ||
<li class="category-chooser-li"> | ||
<?php | ||
/* For performance reasons we generate the html manually */ | ||
/* | ||
echo $this->Html->link(__('All'), '/users/setcategory/all') | ||
*/ | ||
?> | ||
<a | ||
href="<?php echo $this->webroot; ?>users/setcategory/all"><?php echo __('All Categories'); ?></a> | ||
|
||
</li> | ||
<?php foreach ($categoryChooser as $key => $title): ?> | ||
<li class="category-chooser-li"> | ||
<?php | ||
/* For performance reasons we generate the html manually */ | ||
/* | ||
echo $this->Form->checkbox('CatChooser.' . $key, | ||
array( | ||
'onclick' => "$('#cb-category-chooser-all').removeAttr('checked')", | ||
'checked' => isset($categoryChooserChecked[$key]), | ||
'value' => 1)); | ||
* | ||
*/ | ||
?> | ||
<input type="hidden" name="data[CatChooser][<?php echo $key; ?>]" id="CatChooser<?php echo $key; ?>_" value="0"> | ||
<input type="checkbox" name="data[CatChooser][<?php echo $key; ?>]" | ||
<?php echo (isset($categoryChooserChecked[$key])) ? 'checked="checked"' : '' ; ?> | ||
onclick="$('#cb-category-chooser-all').removeAttr('checked')" value="1" id="CatChooser<?php echo $key; ?>"> | ||
<?php | ||
/* For performance reasons we generate the html manually */ | ||
/* | ||
echo $this->Html->link($title, '/users/setcategory/' . $key) | ||
* | ||
*/ | ||
?> | ||
<a href="<?php echo $this->webroot; ?>users/setcategory/<?php echo $key; ?>"><?php echo $title; ?></a> | ||
</li> | ||
<?php foreach ($categoryChooser as $key => $title): ?> | ||
<li class="category-chooser-li"> | ||
<?php | ||
echo $this->Form->checkbox('CatChooser.' . $key, | ||
array( | ||
'onclick' => "$('#cb-category-chooser-all').removeAttr('checked')", | ||
'checked' => isset($categoryChooserChecked[$key]), | ||
'value' => 1)); | ||
?> | ||
<?php | ||
/* For performance reasons we generate the html manually */ | ||
/* | ||
echo $this->Html->link($title, '/users/setcategory/' . $key) | ||
* | ||
*/ | ||
?> | ||
<a | ||
href="<?php echo $this->webroot; ?>users/setcategory/<?php echo $key; ?>"><?php echo $title; ?></a> | ||
|
||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
<?php | ||
/* | ||
$this->Js->get('#cb-category-chooser-all')->event('click', | ||
<<<EOF | ||
if (this.checked) { | ||
$('#category-chooser').find(':checkbox').attr('checked', 'checked'); | ||
} else { | ||
$('#category-chooser').find(':checkbox').removeAttr('checked'); | ||
} | ||
return true; | ||
EOF | ||
); | ||
*/ | ||
?> | ||
<?php echo | ||
$this->Form->submit(__('Apply'), array( | ||
'class' => 'btn btn-submit')) | ||
?> | ||
<?php echo $this->Form->end() ?> | ||
</div> | ||
</div> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
<?php | ||
echo $this->Form->submit(__('Apply'), ['class' => 'btn btn-submit']); | ||
echo $this->Form->end(); | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php Stopwatch::end('category-chooser.ctp'); ?> |
7 changes: 7 additions & 0 deletions
7
app/View/Themed/Paz/webroot/css/src/partials/_categoryChooser.scss
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.category-chooser-ul { | ||
margin-bottom: 1em; | ||
} | ||
|
||
.category-chooser-li { | ||
margin: 0.5em; | ||
} |
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 |
---|---|---|
|
@@ -92,4 +92,3 @@ textarea, input[type=text], input[type=password], %textinput { | |
} | ||
} | ||
|
||
|
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
// trigger for logout in JS frontend | ||
echo $this->Html->tag('div', '', ['class' => 'users logout']); | ||
|
||
$redirect = $this->Html->meta([ | ||
'http-equiv' => 'refresh', | ||
'content' => '1; ' . $this->webroot | ||
]); | ||
$this->append('meta', $redirect); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.clearfix { | ||
&:before, | ||
&:after { | ||
content: " "; | ||
display: table; | ||
} | ||
&:after { | ||
clear: both; | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.