HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
typography.php
Go to the documentation of this file.
1 <?php
2 /* @var $this SiteController */
3 
4 $this->pageTitle=Yii::app()->name . ' - Typography';
5 $this->breadcrumbs=array(
6  'Typography',
7 );
8 ?>
9 
10 <div class="page-header">
11  <h1>Typography</h1>
12 </div>
13 <div class="row-fluid">
14  <div class="span6">
15  <?php
16  $this->beginWidget('zii.widgets.CPortlet', array(
17  'title'=>"Alerts - HTML",
18  ));
19 
20  ?>
21 <p>
22 <code>.alert</code>
23 </p>
24 <div class="alert">
25  <button type="button" class="close" data-dismiss="alert">×</button>
26  <strong>Warning!</strong> Best check yo self, you're not looking too good.
27 </div>
28 <p>
29 <code>.alert .alert-error</code>
30 </p>
31 <div class="alert alert-error">
32  <button type="button" class="close" data-dismiss="alert">×</button>
33  <strong>Oh snap!</strong> Change a few things up and try submitting again.
34 </div>
35 <p>
36 <code>.alert .alert-success</code>
37 </p>
38 <div class="alert alert-success">
39  <button type="button" class="close" data-dismiss="alert">×</button>
40  <strong>Well done!</strong> You successfully read this important alert message.
41 </div>
42 <p>
43 <code>.alert .alert-info</code>
44 </p>
45 <div class="alert alert-info">
46  <button type="button" class="close" data-dismiss="alert">×</button>
47  <strong>Heads up!</strong> This alert needs your attention, but it's not super important.
48 </div>
49 
50  <?php $this->endWidget();?>
51  </div>
52  <div class="span6">
53  <?php
54  $this->beginWidget('zii.widgets.CPortlet', array(
55  'title'=>"Alerts - Yii flash messages",
56  ));
57 
58  ?>
59 
60 <?php
61 Yii::app()->user->setFlash('notice', "<strong>Warning!</strong> Best check yo self, you're not looking too good.");
62 Yii::app()->user->setFlash('error', "<strong>Oh snap!</strong> Change a few things up and try submitting again.");
63 Yii::app()->user->setFlash('success', "<strong>Well done!</strong> You successfully read this important alert message.");
64 Yii::app()->user->setFlash('info', "<strong>Heads up!</strong> This alert needs your attention, but it's not super important.");
65 
66 foreach(Yii::app()->user->getFlashes() as $key => $message) {
67  echo '<p><code>Yii::app()->user->setFlash("' . $key . '", "Your message...");</code></p>'
68  . '<div class="alert alert-' . $key . '">'
69  .'<button type="button" class="close" data-dismiss="alert">×</button>'
70  . $message . "</div>\n";
71 }
72 ?>
73 <?php $this->endWidget();?>
74  </div>
75 </div>
76 <p>
77  This is a hero unit <code>class="hero-unit"</code>
78  </p>
79 <div class="hero-unit">
80  <h1>Amazing free Yii theme</h1>
81  <p>... bring the life out of your web apps</p>
82  <p>
83  <a class="btn btn-success btn-large">
84  Learn more
85  </a>
86  </p>
87 
88 </div>
89 
90 
91 
92 <div class="row-fluid">
93  <div class="span6">
94  <?php
95  $this->beginWidget('zii.widgets.CPortlet', array(
96  'title'=>"Header Tag",
97  ));
98 
99  ?>
100  <h1>h1. Heading 1</h1>
101  <h2>h2. Heading 2</h2>
102  <h3>h3. Heading 3</h3>
103  <h4>h4. Heading 4</h4>
104  <h5>h5. Heading 5</h5>
105  <h6>h6. Heading 6</h6>
106  <?php $this->endWidget();?>
107  </div>
108  <div class="span6">
109  <?php
110  $this->beginWidget('zii.widgets.CPortlet', array(
111  'title'=>"Lead, body and fine print",
112  ));
113 
114  ?>
115 
116  <p class="lead">
117  Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus. <code>&lt;p class=&quot;lead&quot;&gt;...&lt;/p&gt;</code>
118  </p>
119 
120  <p>
121  Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
122  </p>
123 
124  <p>
125  <small>This line of text is meant to be treated as fine print.</small>
126  <code>&lt;small&gt;...&lt;/small&gt;</code></p>
127 
128  <?php $this->endWidget();?>
129  </div>
130 </div>
131 
132 <div class="row-fluid">
133  <div class="span6">
134  <?php
135  $this->beginWidget('zii.widgets.CPortlet', array(
136  'title'=>"Block quote",
137  ));
138 
139  ?>
140 
141 <blockquote class="pull-right">
142  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
143  <p><small>Someone famous <cite title="Source Title">Source Title</cite></small>
144  </p>
145 
146  </blockquote>
147  <p><code>&lt;blockquote class=&quot;pull-right&quot;&gt;...&lt;/blockquote&gt;</code></p>
148  <blockquote>
149  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
150  <small>Someone famous <cite title="Source Title">Source Title</cite></small>
151  </blockquote>
152 
153  <p><code>&lt;blockquote&gt;...&lt;/blockquote&gt;</code></p>
154 
155 
156  <?php $this->endWidget();?>
157  </div>
158  <div class="span6">
159  <?php
160  $this->beginWidget('zii.widgets.CPortlet', array(
161  'title'=>"Emphasis",
162  ));
163 
164  ?>
165 
166  <p class="muted">Fusce dapibus, tellus ac cursus commodo.<br />
167  <code>&lt;p class=&quot;muted&quot;&gt;...&lt;/p&gt;</code> </p>
168  <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.<br />
169  <code>&lt;p class=&quot;text-warning&quot;&gt;...&lt;/p&gt;</code></p>
170  <p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.<br />
171  <code>&lt;p class=&quot;text-error&quot;&gt;...&lt;/p&gt;</code></p>
172  <p class="text-info">Aenean eu leo quam. Pellentesque ornare sem.<br />
173  <code>&lt;p class=&quot;text-info&quot;&gt;...&lt;/p&gt;</code></p>
174  <p class="text-success">Duis mollis, est non commodo luctus.<br />
175  <code>&lt;p class=&quot;text-success&quot;&gt;...&lt;/p&gt;</code></p>
176 
177  <?php $this->endWidget();?>
178  </div>
179 </div>
180 
181 
182 <div class="row-fluid">
183  <div class="span6">
184  <?php
185  $this->beginWidget('zii.widgets.CPortlet', array(
186  'title'=>"Labels",
187  ));
188 
189  ?>
190  <p>
191  <span class="label">Default</span> <code>class="label"</code>
192  </p>
193  <p>
194  <span class="label label-success">Success</span> <code>class="label label-success"</code>
195  </p>
196  <p>
197  <span class="label label-warning">Warning</span> <code>class="label label-warning"</code>
198  </p>
199  <p>
200  <span class="label label-important">Important</span> <code>class="label label-important"</code>
201  </p>
202  <p>
203  <span class="label label-info">Info</span> <code>class="label label-info"</code>
204  </p>
205  <p>
206  <span class="label label-inverse">Inverse</span> <code>class="label label-inverse"</code>
207  </p>
208  <?php $this->endWidget();?>
209  </div>
210  <div class="span6">
211  <?php
212  $this->beginWidget('zii.widgets.CPortlet', array(
213  'title'=>"Badges",
214  ));
215 
216  ?>
217  <p>
218  <span class="badge">1</span> <code>class="badge"</code>
219  </p>
220  <p>
221  <span class="badge badge-success">2</span> <code>class="badge badge-success"</code>
222  </p>
223  <p>
224  <span class="badge badge-warning">3</span> <code>class="badge badge-warning"</code>
225  </p>
226  <p>
227  <span class="badge badge-important">4</span> <code>class="badge badge-important"</code>
228  </p>
229  <p>
230  <span class="badge badge-info">5</span> <code>class="badge badge-info"</code>
231  </p>
232 
233  <p>
234  <span class="badge badge-inverse">6</span> <code>class="badge-inverse"</code>
235  </p>
236 
237  <?php $this->endWidget();?>
238  </div>
239 </div>