?>
</strong></div>
					<div class="element title"><strong><?php 
            echo $entry['content_type'];
            ?>
</strong></div>
					<?php 
            echo print_add_button('/admin/cfields/add/' . $entry['id'], 'Add field');
            ?>

					<?php 
            if (count($entry['cfields']) > 0) {
                ?>

						<?php 
                echo print_openclose_button('#', 'watch fields', 'cfields_' . $entry['id']);
                ?>

					<?php 
            }
            ?>

				</div>

				<?php 
            if (count($entry['cfields']) > 0) {
                ?>

					<ul class="entrylist cfields_block sortable" id="cfields_<?php 
                echo $entry['id'];
                ?>
        ?>
</strong></div>
			<div class="element title"><strong><?php 
        echo $cType['content_type'];
        ?>
</strong></div>
			<?php 
        echo print_add_button('/admin/categories/add/' . $contentTypeId, 'Add category');
        ?>

			<?php 
        if (isset($list[$contentTypeId]) && count($list[$contentTypeId]['categories']) > 0) {
            ?>

				<?php 
            echo print_openclose_button('#', 'watch categories', 'categories_' . $contentTypeId);
            ?>

			<?php 
        }
        ?>

		</div>

<?php 
        if (isset($list[$contentTypeId]) && count($list[$contentTypeId]['categories']) > 0) {
            if (isset($capabilities[$contentTypeId]) && $capabilities[$contentTypeId]['configure']) {
                if (count($list[$contentTypeId]['categories']) > 0) {
                    ?>

					<ul class="entrylist categories_block sortable" id="categories_<?php