4 $this->
pageTitle=Yii::app()->name .
' - Typography';
10 <div
class=
"page-header">
13 <div
class=
"row-fluid">
16 $this->beginWidget(
'zii.widgets.CPortlet', array(
17 'title'=>
"Alerts - HTML",
25 <button type=
"button" class=
"close" data-dismiss=
"alert">×</button>
26 <strong>Warning!</strong> Best check yo
self, you
're not looking too good.
29 <code>.alert .alert-error</code>
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.
36 <code>.alert .alert-success</code>
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.
43 <code>.alert .alert-info</code>
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.
50 <?php $this->endWidget();?>
54 $this->beginWidget(
'zii.widgets.CPortlet', array(
55 'title'=>
"Alerts - Yii flash messages",
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.");
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";
73 <?php $this->endWidget();?>
77 This is a hero unit <code>
class=
"hero-unit"</code>
79 <div
class=
"hero-unit">
80 <h1>Amazing free Yii theme</h1>
81 <p>... bring the life out of your web apps</p>
83 <a
class=
"btn btn-success btn-large">
92 <div
class=
"row-fluid">
95 $this->beginWidget(
'zii.widgets.CPortlet', array(
96 'title'=>
"Header Tag",
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();?>
110 $this->beginWidget(
'zii.widgets.CPortlet', array(
111 'title'=>
"Lead, body and fine print",
117 Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus. <code><p
class="lead">...</p></code>
121 Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
125 <small>This line of text is meant to be treated as fine print.</small>
126 <code><small>...</small></code></p>
128 <?php $this->endWidget();?>
132 <div
class=
"row-fluid">
135 $this->beginWidget(
'zii.widgets.CPortlet', array(
136 'title'=>
"Block quote",
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>
147 <p><code><blockquote
class="pull-right">...</blockquote></code></p>
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>
153 <p><code><blockquote>...</blockquote></code></p>
156 <?php $this->endWidget();?>
160 $this->beginWidget(
'zii.widgets.CPortlet', array(
166 <p
class=
"muted">Fusce dapibus, tellus ac cursus commodo.<br />
167 <code><p
class="muted">...</p></code> </p>
168 <p
class=
"text-warning">Etiam porta sem malesuada magna mollis euismod.<br />
169 <code><p
class="text-warning">...</p></code></p>
170 <p
class=
"text-error">Donec ullamcorper nulla non metus auctor fringilla.<br />
171 <code><p
class="text-error">...</p></code></p>
172 <p
class=
"text-info">Aenean eu leo quam. Pellentesque ornare sem.<br />
173 <code><p
class="text-info">...</p></code></p>
174 <p
class=
"text-success">Duis mollis, est non commodo luctus.<br />
175 <code><p
class="text-success">...</p></code></p>
177 <?php $this->endWidget();?>
182 <div
class=
"row-fluid">
185 $this->beginWidget(
'zii.widgets.CPortlet', array(
191 <span
class=
"label">Default</span> <code>
class=
"label"</code>
194 <span
class=
"label label-success">Success</span> <code>
class=
"label label-success"</code>
197 <span
class=
"label label-warning">Warning</span> <code>
class=
"label label-warning"</code>
200 <span
class=
"label label-important">Important</span> <code>
class=
"label label-important"</code>
203 <span
class=
"label label-info">Info</span> <code>
class=
"label label-info"</code>
206 <span
class=
"label label-inverse">Inverse</span> <code>
class=
"label label-inverse"</code>
208 <?php $this->endWidget();?>
212 $this->beginWidget(
'zii.widgets.CPortlet', array(
218 <span
class=
"badge">1</span> <code>
class=
"badge"</code>
221 <span
class=
"badge badge-success">2</span> <code>
class=
"badge badge-success"</code>
224 <span
class=
"badge badge-warning">3</span> <code>
class=
"badge badge-warning"</code>
227 <span
class=
"badge badge-important">4</span> <code>
class=
"badge badge-important"</code>
230 <span
class=
"badge badge-info">5</span> <code>
class=
"badge badge-info"</code>
234 <span
class=
"badge badge-inverse">6</span> <code>
class=
"badge-inverse"</code>
237 <?php $this->endWidget();?>