<?php $sw_blog_tag = $form->getObject(); ?> <h2><?php echo sw_t($form->isNew() ? __('title_new_tag', null, 'swBlogTagsAdmin') : __('title_edit_tag', null, 'swBlogTagsAdmin')); ?> </h2> <form action="<?php echo url_for('swBlogTagsAdmin/update' . (!$form->isNew() ? '?id=' . $sw_blog_tag['id'] : '')); ?> " method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" '; ?> > <?php echo $form->renderHiddenFields(); ?> <div class="sw-form-actions"> <a class="sw-ui-btn-link ui-state-default ui-corner-all" href="<?php echo url_for('swBlogTagsAdmin/index'); ?> "> <span class="ui-icon ui-icon-close" ></span><?php echo __('link_cancel', null, 'swBlogTagsAdmin'); ?> </a>
use_helper('sfAsset'); echo init_asset_library(); ?> <?php if ($form->isNew()) { ?> <h2><?php echo sw_t(__('title_new_blog_post', null, 'swBlogPostsAdmin')); ?> </h2> <?php } else { ?> <h2><?php echo sw_t(__('title_edit_blog_post', null, 'swBlogPostsAdmin')); ?> </h2> <?php } ?> <form action="<?php echo url_for('swBlogPostsAdmin/update' . (!$form->isNew() ? '?id=' . $sw_blog_post['id'] : '')); ?> " method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" '; ?> > <?php echo $form->renderHiddenFields();
$sw_blog_comment = $form->getObject(); ?> <?php if ($form->isNew()) { ?> <h2><?php echo sw_t(__('title_new_blog_comment', null, 'swBlogCommentsAdmin')); ?> </h2> <?php } else { ?> <h2><?php echo sw_t(__('title_edit_blog_comment', null, 'swBlogCommentsAdmin')); ?> </h2> <?php } ?> <form action="<?php echo url_for('swBlogCommentsAdmin/update' . (!$form->isNew() ? '?id=' . $sw_blog_comment['id'] : '')); ?> " method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" '; ?> > <?php echo $form['id'];
<h2><?php echo sw_t(__('title_list_tags', null, 'swBlogTagsAdmin')); ?> </h2> <?php /* <div class="sw-base-filters"> <h3><?php echo __('title_filters', null, 'swBlogTagsAdmin') ?></h3> <form action="<?php echo url_for('swBlogTagsAdmin/index') ?>" method="get" /> <?php echo $sw_blog_tagList ?> <input type="submit" name="filters[filter]" value="<?php echo __('btn_filter', null, 'swBlogTagsAdmin') ?>" /> <input type="submit" name="filters[reset]" value="<?php echo __('btn_reset', null, 'swBlogTagsAdmin') ?>" /> </form> </div> */ ?> <div class="sw-base-admin-list"> <div class="sw-form-actions"> <a class="sw-ui-btn-link ui-state-default ui-corner-all" href="<?php echo url_for('swBlogTagsAdmin/create'); ?> "> <span class="ui-icon ui-icon-create" ></span> <?php echo __('link_create', null, 'swBlogTagsAdmin'); ?>
<?php use_helper('I18N', 'Text', 'Date', 'swToolbox'); ?> <h1><?php echo link_to(sw_t(__('h1_blog_index', null, 'swBlogPosts')), '@sw_blog_index'); ?> </h1> <?php slot('tags', get_component('swBlogPosts', 'showTags')); ?> <?php foreach ($sw_blog_posts->getResults() as $sw_blog_post) { ?> <div class='sw_blog_post'> <h2> <?php echo link_to($sw_blog_post->getTitle(), $sw_blog_post->getUrl('sw_blog_view_post')); ?> <span class="sw_blog_post_date"><?php echo time_ago_in_words(strtotime($sw_blog_post->getCreatedAt())); ?> </span> </h2> <div class='sw_blog_post_header'>
<div class="sw-base-admin-list"> <h2><?php echo sw_t(__('title_list_posts', null, 'swBlogPostsAdmin')); ?> </h2> <?php include_partial('swBlogPostsAdmin/datagrid_filters', array('sw_blog_postList' => $sw_blog_postList)); ?> <div class="sw-form-actions"> <a class="sw-ui-btn-link ui-state-default ui-corner-all" href="<?php echo url_for('swBlogPostsAdmin/create'); ?> "> <span class="ui-icon ui-icon-create" ></span> <?php echo __('link_create', null, 'swBlogPostsAdmin'); ?> </a> </div> <table class="sw-base-admin-table-standard"> <thead> <tr> <th><?php echo __('th_published', null, 'swBlogPostsAdmin'); ?> </th> <th><?php echo __('th_title', null, 'swBlogPostsAdmin');
<h2><?php echo sw_t($sw_blog_post->getTitle()); ?> </h2> <?php if ($sw_blog_post->swBlogPostTags->count() > 0) { ?> <?php include_partial('blog_tags', array('sw_blog_post' => $sw_blog_post)); } ?> <div class="sw_blog_post_content"> <?php echo $sw_blog_post->getContent(); ?> </div> <?php if ($sw_blog_post_comments->count() > 0) { ?> <div class="sw_blog_comments"> <h2><a name="comments"><?php echo __('h2_comments', null, 'swBlogPosts'); ?> </a></h2> <?php foreach ($sw_blog_post_comments->getResults() as $sw_blog_comment) {
<h2><?php echo sw_t(__('title_comments_list', null, 'swBlogCommentsAdmin')); ?> </h2> <?php include_partial('swBlogCommentsAdmin/datagrid_filters', array('sw_blog_commentList' => $sw_blog_commentList)); ?> <div class="sw-base-admin-list"> <div class="sw-form-actions"> <a class="sw-ui-btn-link ui-state-default ui-corner-all" href="<?php echo url_for('swBlogCommentsAdmin/create'); ?> "> <span class="ui-icon ui-icon-create" ></span> <?php echo __('link_create', null, 'swBlogCommentsAdmin'); ?> </a> </div> <table class="sw-base-admin-table-standard"> <thead> <tr> <th><?php echo __('th_comment', null, 'swBlogCommentsAdmin'); ?> </th> </tr> </thead>