~dantrevino/ubuntu-us-florida-website/main

« back to all changes in this revision

Viewing changes to templates/beez/html/com_content/article/default.php

  • Committer: Dan Trevnio
  • Date: 2009-03-28 15:14:58 UTC
  • Revision ID: dantrevino@gmail.com-20090328151458-48ngtzfqr60djr52
added security updates to 1.5.10 and moved loco template to its own directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php // @version $Id: default.php 11386 2009-01-04 02:34:35Z ian $
 
2
defined('_JEXEC') or die('Restricted access');
 
3
?>
 
4
 
 
5
<div id="page">
 
6
 
 
7
<?php if (($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) && !($this->print)) : ?>
 
8
<div class="contentpaneopen_edit<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
 
9
        <?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
 
10
</div>
 
11
<?php endif; ?>
 
12
 
 
13
<?php if ($this->params->get('show_page_title',1) && $this->params->get('page_title') != $this->article->title) : ?>
 
14
<h1 class="componentheading<?php echo $this->params->get('pageclass_sfx'); ?>">
 
15
        <?php echo $this->escape($this->params->get('page_title')); ?>
 
16
</h1>
 
17
<?php endif; ?>
 
18
 
 
19
<?php if ($this->params->get('show_title')) : ?>
 
20
<h2 class="contentheading<?php echo $this->params->get('pageclass_sfx'); ?>">
 
21
        <?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
 
22
        <a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->params->get('pageclass_sfx'); ?>">
 
23
                <?php echo $this->article->title; ?></a>
 
24
        <?php else :
 
25
                echo $this->escape($this->article->title);
 
26
        endif; ?>
 
27
</h2>
 
28
<?php endif; ?>
 
29
 
 
30
<?php if ((intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) || ($this->params->get('show_author') && ($this->article->author != "")) || ($this->params->get('show_create_date'))) : ?>
 
31
<p class="articleinfo">
 
32
        <?php if (intval($this->article->modified) !=0 && $this->params->get('show_modify_date')) : ?>
 
33
        <span class="modifydate">
 
34
                <?php echo JText::sprintf('LAST_UPDATED2', JHTML::_('date', $this->article->modified, JText::_('DATE_FORMAT_LC2'))); ?>
 
35
        </span>
 
36
        <?php endif; ?>
 
37
 
 
38
        <?php if (($this->params->get('show_author')) && ($this->article->author != "")) : ?>
 
39
        <span class="createdby">
 
40
                <?php JText::printf('Written by', ($this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author)); ?>
 
41
        </span>
 
42
        <?php endif; ?>
 
43
 
 
44
        <?php if ($this->params->get('show_create_date')) : ?>
 
45
        <span class="createdate">
 
46
                <?php echo JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')); ?>
 
47
        </span>
 
48
        <?php endif; ?>
 
49
</p>
 
50
<?php endif; ?>
 
51
 
 
52
<?php if (!$this->params->get('show_intro')) :
 
53
        echo $this->article->event->afterDisplayTitle;
 
54
endif; ?>
 
55
 
 
56
<p class="buttonheading">
 
57
        <?php if ($this->print) :
 
58
                echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access);
 
59
        elseif ($this->params->get('show_pdf_icon') || $this->params->get('show_print_icon') || $this->params->get('show_email_icon')) : ?>
 
60
        <img src="<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/trans.gif" alt="<?php echo JText::_('attention open in a new window'); ?>" />
 
61
        <?php if ($this->params->get('show_pdf_icon')) :
 
62
                echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access);
 
63
        endif;
 
64
        if ($this->params->get('show_print_icon')) :
 
65
                echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access);
 
66
        endif;
 
67
        if ($this->params->get('show_email_icon')) :
 
68
                echo JHTML::_('icon.email', $this->article, $this->params, $this->access);
 
69
        endif;
 
70
        endif; ?>
 
71
</p>
 
72
 
 
73
<?php if (($this->params->get('show_section') && $this->article->sectionid) || ($this->params->get('show_category') && $this->article->catid)) : ?>
 
74
<p class="iteminfo">
 
75
        <?php if ($this->params->get('show_section') && $this->article->sectionid) : ?>
 
76
        <span>
 
77
                <?php if ($this->params->get('link_section')) : ?>
 
78
                        <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->article->sectionid)).'">'; ?>
 
79
                <?php endif; ?>
 
80
                <?php echo $this->article->section; ?>
 
81
                <?php if ($this->params->get('link_section')) : ?>
 
82
                        <?php echo '</a>'; ?>
 
83
                <?php endif; ?>
 
84
                <?php if ($this->params->get('show_category')) : ?>
 
85
                        <?php echo ' - '; ?>
 
86
                <?php endif; ?>
 
87
        </span>
 
88
        <?php endif; ?>
 
89
        <?php if ($this->params->get('show_category') && $this->article->catid) : ?>
 
90
        <span>
 
91
                <?php if ($this->params->get('link_category')) : ?>
 
92
                        <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->article->catslug, $this->article->sectionid)).'">'; ?>
 
93
                <?php endif; ?>
 
94
                <?php echo $this->article->category; ?>
 
95
                <?php if ($this->params->get('link_category')) : ?>
 
96
                        <?php echo '</a>'; ?>
 
97
                <?php endif; ?>
 
98
        </span>
 
99
        <?php endif; ?>
 
100
</p>
 
101
<?php endif; ?>
 
102
 
 
103
<?php echo $this->article->event->beforeDisplayContent; ?>
 
104
 
 
105
<?php if ($this->params->get('show_url') && $this->article->urls) : ?>
 
106
<span class="small">
 
107
        <a href="<?php echo $this->article->urls; ?>" target="_blank">
 
108
                <?php echo $this->article->urls; ?></a>
 
109
</span>
 
110
<?php endif; ?>
 
111
 
 
112
<?php if (isset ($this->article->toc)) :
 
113
        echo $this->article->toc;
 
114
endif; ?>
 
115
 
 
116
<?php echo JFilterOutput::ampReplace($this->article->text); ?>
 
117
 
 
118
<?php echo $this->article->event->afterDisplayContent; ?>
 
119
 
 
120
</div>