/
view.phtml
120 lines (116 loc) · 7.52 KB
/
view.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
if($this->slicerView)
{
// Get required jQuery
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/jquery.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/jquery-ui.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/jquery.treeTable.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/jquery.qtip.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/layout/midas.callback.js"></script>';
echo '<script type="text/javascript" src="'.$this->moduleWebroot.'/public/js/extension/extension.view.js"></script>';
echo '<script type="text/javascript" src="'.$this->webroot.'/modules/ratings/public/js/common/common.ratings.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/jquery/jquery.jqplot.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/jquery/jqplot/jqplot.barRenderer.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/jquery/jqplot/jqplot.categoryAxisRenderer.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/jquery/jqplot/jqplot.pointLabels.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->coreWebroot.'/public/js/jquery/jquery.autogrow-textarea.js"></script>';
echo '<script type="text/javascript" src="'.$this->webroot.'/modules/ratings/public/js/star_rating/jquery.ui.stars.min.js"></script>';
echo '<script type="text/javascript" src="'.$this->webroot.'/modules/comments/public/js/item/item.comments.js"></script>';
}
else
{
$this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.jqplot.min.js');
$this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jqplot/jqplot.barRenderer.min.js');
$this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jqplot/jqplot.categoryAxisRenderer.min.js');
$this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jqplot/jqplot.pointLabels.min.js');
$this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.autogrow-textarea.js');
$this->headScript()->appendFile($this->moduleWebroot.'/public/js/extension/extension.view.js');
$this->headScript()->appendFile($this->webroot.'/modules/ratings/public/js/star_rating/jquery.ui.stars.min.js');
$this->headScript()->appendFile($this->webroot.'/modules/ratings/public/js/common/common.ratings.js');
$this->headScript()->appendFile($this->webroot.'/modules/comments/public/js/item/item.comments.js');
}
?>
<link type="text/css" rel="stylesheet" href="<?php echo $this->moduleWebroot?>/public/css/extension/extension.view.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/layout/jquery.qtip.min.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/jquery/jquery.jqplot.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->webroot?>/modules/ratings/public/css/star_rating/jquery.ui.stars.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->webroot?>/modules/comments/public/css/item/item.comments.css" />
<div id="container_main">
<div id="extension_banner">
<div class="title">
<div class="extension_title"><?php echo $this->extension->getProductname()?></div>
<div class="group_title">
Contributor Names
</div>
<div class="category">
Category: <?php echo $this->extension->getCategory()?>
</div>
</div>
<div class="button_bar">
<img qtip="+1 on Google+" src="<?php echo $this->moduleWebroot?>/public/images/googleplus.png" width="32" height="32" class="googlePlus"/>
<img qtip="Tweet this" src="<?php echo $this->moduleWebroot?>/public/images/twitter.png" width="32" height="32" class="twitter"/>
<img qtip="Like on Facebook" src="<?php echo $this->moduleWebroot?>/public/images/LikeButton.png" width="78" height="32" class="facebook" />
</div>
</div>
<div class="left_column">
<div class="icon_art">
<img src="<?php echo $this->icon ?>" width="128" height="128" />
</div>
<div class="download_button">
<input type="button" id="downloadButton" value="Install" />
</div>
<div class="info_list">
<?php echo $this->extension->getItem()->getDownload() ?> downloads<br/>
</div>
<div class="rating_area">
<?php echo $this->element('rating', 'ratings'); ?>
</div>
<div class="rating_scale">
</div>
</div>
<div class="right_content">
<div class="content_header">Description</div>
<div class="description">
Content for class "description" Goes Here. Content for class "description" Goes Here. Content for class "description" Goes Here. Content for class "description" Goes Here. Content for class "description" Goes Here. Content for class "description" Goes Here. Content for class "description" Goes Here. Content for class "description" Goes Here.</div>
<div class="content_header">
Screenshots
</div>
<div class="screenshots">
Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here. Content for class "screenshots" Goes Here.</div>
<div class="content_header">
Tutorials
</div>
<div class="tutorials">
Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here. Content for class "tutorials" Goes Here.</div>
<div class="content_header">
User Comments
</div>
<div class="reviews">
<?php echo $this->element('comment', 'comments'); ?>
</div>
</div>
</div>
<!-- Pass json to our javascript -->
<div style="display: none;" id="jsonContent">
<?php echo json_encode(array(
'slicerView' => $this->slicerView,
'extension' => $this->extension,
'item' => $this->extension->getItem(),
'icon' => $this->icon,
'global' => array('logged' => $this->logged,
'webroot' => $this->webroot,
'moduleWebroot' => $this->moduleWebroot,
'coreWebroot' => $this->coreWebroot),
'modules' => array('ratings' => $this->ratings,
'comments' => $this->comments)));
?>
</div>