Skip to content

Commit

Permalink
Update views files
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Dec 6, 2023
1 parent 72e53f2 commit 0fb381c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions system/admin/views/add-content.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function extractLast( term ) {
<?php endforeach;?>
</select>
<br>
<label for="pTag">Tag <span class="required">*</span></label>
<label for="pTag"><?php echo i18n('Tags');?> <span class="required">*</span></label>
<input type="text" class="form-control text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" id="pTag" name="tag" value="<?php if (isset($postTag)) { echo $postTag; } ?>" placeholder="<?php echo i18n('Comma_separated_values');?>"/>
<br>
<label for="pMeta"><?php echo i18n('Meta_description');?> (<?php echo i18n('optional');?>)</label>
Expand All @@ -118,7 +118,7 @@ function extractLast( term ) {
<small style="margin-top:10px;"><em><?php echo i18n('Scheduled_tips');?></em></small>
</div>
<br>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<label for="pURL"><?php echo i18n('Slug');?> (<?php echo i18n('optional');?>)</label>
<input type="text" class="form-control text" id="pURL" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_post_title');?>"/>
<br>

Expand Down
2 changes: 1 addition & 1 deletion system/admin/views/add-page.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
<div class="col-sm-6">
<?php if ($type == 'is_page') :?>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<label for="pURL"><?php echo i18n('Slug');?> (<?php echo i18n('optional');?>)</label>
<input type="text" class="form-control text" id="pURL" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_page_title');?>"/>
<br>
<?php endif;?>
Expand Down
4 changes: 2 additions & 2 deletions system/admin/views/categories.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<tr>
<td><a href="<?php echo site_url();?>admin/categories/uncategorized"><?php echo i18n("Uncategorized");?></a></td>
<td><p><?php echo i18n('Uncategorized_comment');?>.</p></td>
<td><?php $total = get_draftcount('uncategorized') + get_categorycount('uncategorized'); echo $total?></td>
<td><?php $total = get_draftcount('uncategorized') + get_categorycount('uncategorized') + get_scheduledcount('uncategorized'); echo $total?></td>
<td></td>
</tr>
<?php foreach ($desc as $d):?>
<tr>
<td><a href="<?php echo site_url();?>admin/categories/<?php echo $d->md;?>"><?php echo $d->title;?></a></td>
<td><?php echo $d->body;?></td>
<td><?php $total = get_draftcount($d->md) + get_categorycount($d->md); echo $total?></td>
<td><?php $total = get_draftcount($d->md) + get_categorycount($d->md) + get_scheduledcount($d->md); echo $total?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $d->url;?>/edit?destination=admin/categories"><?php echo i18n('Edit');?></a> <?php if (get_categorycount($d->md) == 0 && get_draftcount($d->md) == 0 ){echo '<a class="btn btn-danger btn-xs" href="' . $d->url . '/delete?destination=admin/categories">' . i18n('Delete') . '</a>';}?></td>
</tr>
<?php endforeach;?>
Expand Down
4 changes: 2 additions & 2 deletions system/admin/views/edit-content.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function extractLast( term ) {
<?php endforeach;?>
</select>
<br>
<label for="pTag">Tag <span class="required">*</span></label>
<label for="pTag"><?php echo i18n('Tags');?> <span class="required">*</span></label>
<input type="text" id="pTag" name="tag" class="form-control text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error'; } } ?>" value="<?php echo $oldtag ?>" placeholder="<?php echo i18n('Comma_separated_values');?>"/>
<br>

Expand All @@ -168,7 +168,7 @@ function extractLast( term ) {
<small style="margin-top:10px;"><em><?php echo i18n('Scheduled_tips');?></em></small>
</div>
<br>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<label for="pURL"><?php echo i18n('Slug');?> (<?php echo i18n('optional');?>)</label>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_post_title');?>"//>
<br>

Expand Down
4 changes: 2 additions & 2 deletions system/admin/views/edit-page.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@
<input type="text" id="pTitle" name="title" class="form-control text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error'; } } ?>" value="<?php echo $oldtitle ?>"/>
<br>
<?php if($type != 'is_frontpage' && $type != 'is_profile') { ?>
<label for="pMeta"><?php echo i18n('Meta_description');?> (optional)</label>
<label for="pMeta"><?php echo i18n('Meta_description');?> <?php echo i18n('optional');?></label>
<br />
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="<?php echo i18n('If_leave_empty_we_will_excerpt_it_from_the_content_below');?>"><?php if (isset($p->description)) { echo $p->description;} else {echo $olddescription;}?></textarea>
<br /><br />
<?php } ?>
</div>
<div class="col-sm-6">
<?php if($type != 'is_frontpage' && $type != 'is_profile') { ?>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<label for="pURL"><?php echo i18n('Slug');?> (<?php echo i18n('optional');?>)</label>
<br>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_page_title');?>"/>
<br>
Expand Down

0 comments on commit 0fb381c

Please sign in to comment.