Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ba88a673
Commit
ba88a673
authored
Nov 13, 2015
by
Liam Sharpe
Browse files
Styled the fonts page - Bug #1515774
behatnotneeded Change-Id: Ibc067c8f06fcd87a9aa38d129fc3acc0bbe68bb1
parent
f694b824
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/raw/templates/skin/sitefonts.tpl
View file @
ba88a673
...
...
@@ -14,12 +14,23 @@
{
if
$query
}
<h2
id=
"searchresultsheading"
class=
"accessible-hidden sr-only"
>
{
str
tag
=
Results
}
</h2>
{/
if
}
<div
id=
"fontlist"
class=
"fullwidth listing"
>
<div
id=
"fontlist"
class=
"
panel-default
fullwidth listing"
>
{
foreach
from
=
$sitefonts
item
=
font
}
<div
class=
"
{
cycle
values
=
'r0,r1'
}
listrow"
>
<h3
class=
"title"
>
{
$font.title
}
</h3>
<ul
class=
"actionlist"
>
<li
class=
"notbtn"
>
{
str
tag
=
"fonttype.$font.fonttype"
section
=
"skin"
}
</li>
<div
class=
"
{
cycle
values
=
'r0,r1'
}
listrow list-group-item"
>
<div
class=
"col-md-10"
style=
"font-family:'
{
$font.title
|
escape_css_string
}
';font-size:
{
$size
}
pt;line-height:
{
$size
}
pt;padding:3px 0;"
>
<h2
class=
"title"
>
{
$font.title
}
</h2>
{
if
$preview
==
10
}
{
$font.title
}
{/
if
}
{
if
$preview
>=
11
}
{
str
tag
=
"sampletext$preview"
section
=
"skin"
}
{/
if
}
</div>
<ul
class=
"actionlist col-md-2"
>
<li
class=
"notbtn"
>
<strong>
{
str
tag
=
"fonttype.$font.fonttype"
section
=
"skin"
}
</strong>
</li>
{
if
$font.fonttype
==
'google'
}
<li>
<a
class=
"btn-display"
href=
"javascript:"
onclick=
"window.open('http://www.google.com/webfonts/specimen/
{
$font.urlencode
}
','specimen','width=700,height=800,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=no')"
>
...
...
@@ -68,15 +79,7 @@
</a>
</li>
</ul>
<div
style=
"font-family:'
{
$font.title
|
escape_css_string
}
';font-size:
{
$size
}
pt;line-height:
{
$size
}
pt;padding:3px 0;"
>
{
if
$preview
==
10
}
{
$font.title
}
{/
if
}
{
if
$preview
>=
11
}
{
str
tag
=
"sampletext$preview"
section
=
"skin"
}
{/
if
}
</div>
<div
class=
"cb"
></div>
<div
class=
"clearfix"
></div>
</div>
{/
foreach
}
</div>
...
...
Mahara Bot
@maharabot
mentioned in commit
52c1decc
·
Nov 20, 2015
mentioned in commit
52c1decc
mentioned in commit 52c1decc46cb4624f2eee3f954899f4e1e03d195
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment