Просмотр файла htmly-2.9.8/system/admin/views/content-type.html.php

Размер файла: 1.28Kb
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2><?php echo i18n('Add_content');?></h2>
<?php
$user = $_SESSION[site_url()]['user'];
$role = user('role', $user);
?>
<div class="row">
<div class="col-sm-6">
<p><a href="<?php echo site_url();?>add/content?type=post"><?php echo i18n('Regular_post')?></a><br><?php echo i18n('Regular_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=image"><?php echo i18n('Image_post')?></a><br><?php echo i18n('Image_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=video"><?php echo i18n('Video_post')?></a><br><?php echo i18n('Video_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=audio"><?php echo i18n('Audio_post')?></a><br><?php echo i18n('Audio_post_comment')?>.</p>
</div>
<div class="col-sm-6">
<p><a href="<?php echo site_url();?>add/content?type=link"><?php echo i18n('Link_post')?></a><br><?php echo i18n('Link_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=quote"><?php echo i18n('Quote_post')?></a><br><?php echo i18n('Quote_post_comment')?>.</p>
<?php if ($role === 'editor' || $role === 'admin'):?>
<p><a href="<?php echo site_url();?>add/page"><?php echo i18n('Static_page')?></a><br><?php echo i18n('Static_page_comment')?>.</p>
<?php endif;?>
</div>
</div>