コード例 #1
0
ファイル: types.php プロジェクト: ppiedaderawnet/concrete5
 public function add_attribute_type()
 {
     $pat = PendingType::getByHandle($this->post('atHandle'));
     if (is_object($pat)) {
         $pat->install();
     }
     $this->redirect('dashboard/system/attributes/types', 'saved', 'attribute_type_added');
 }
コード例 #2
0
ファイル: types.php プロジェクト: ceko/concrete5-1
	</table>
	<div class="well clearfix">
	<?php 
$b1 = $interface->submit(t('Save'), 'attribute_type_associations_form', 'right', 'btn-primary');
print $b1;
?>
	</div>
</form>

<h4><?php 
echo t('Custom Attribute Types');
?>
</h4>
<?php 
$ch = Loader::helper('concrete/ui');
$types = PendingAttributeType::getList();
if (count($types) == 0) {
    ?>
	<?php 
    echo t('There are no available attribute types awaiting installation.');
} else {
    ?>
	<ul class="item-select-list">
		<?php 
    foreach ($types as $at) {
        ?>
			<li>
					<span>
		        		<form id="attribute_type_install_form_<?php 
        echo $at->getAttributeTypeHandle();
        ?>