Skip to content

Commit

Permalink
Fixed issue #10317: glyphicons and/or font-awesome.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 9, 2016
1 parent 18b900c commit cb465f4
Show file tree
Hide file tree
Showing 11 changed files with 300 additions and 7 deletions.
10 changes: 9 additions & 1 deletion application/controllers/survey/index.php
Expand Up @@ -36,7 +36,15 @@ public function run()
$param = $this->_getParameters(func_get_args(), $_POST);
$surveyid = $param['sid'];

App()->getClientScript()->registerCssFile( Yii::app()->getBaseUrl(true).'/styles-public/font-awesome-43.min.css' );
// Font awesome
if(!YII_DEBUG)
{
App()->getClientScript()->registerCssFile( App()->getAssetManager()->publish( dirname(Yii::app()->request->scriptFile).'/styles-public/font-awesome-43.min.css') );
}
else
{
App()->getClientScript()->registerCssFile( Yii::app()->getBaseUrl(true).'/styles-public/font-awesome-43-debugmode.min.css' );
}

global $oTemplate;
$oTemplate = Template::model()->getTemplateConfiguration('',$surveyid);
Expand Down
288 changes: 288 additions & 0 deletions fonts/glyphicons-halflings-regular.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff
Binary file not shown.
Binary file added fonts/glyphicons-halflings-regular.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/default/css/flat_and_modern.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion templates/default/views/startpage.pstpl
Expand Up @@ -11,7 +11,6 @@
{TEMPLATEJS}
<link rel="shortcut icon" href="{TEMPLATEURL}favicon.ico" />
{GOOGLE_ANALYTICS_JAVASCRIPT}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body class="default lang-{SURVEYLANGUAGE} {SURVEYFORMAT}">

Expand Down
2 changes: 1 addition & 1 deletion templates/news_paper/css/news_paper.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion templates/news_paper/views/startpage.pstpl
Expand Up @@ -11,7 +11,6 @@
{TEMPLATEJS}
<link rel="shortcut icon" href="{TEMPLATEURL}favicon.ico" />
{GOOGLE_ANALYTICS_JAVASCRIPT}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body class="default lang-{SURVEYLANGUAGE} {SURVEYFORMAT}">

Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu_orange/css/ubuntu_orange.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion templates/ubuntu_orange/views/startpage.pstpl
Expand Up @@ -11,7 +11,6 @@
{TEMPLATEJS}
<link rel="shortcut icon" href="{TEMPLATEURL}favicon.ico" />
{GOOGLE_ANALYTICS_JAVASCRIPT}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body class="default lang-{SURVEYLANGUAGE} {SURVEYFORMAT}">

Expand Down

0 comments on commit cb465f4

Please sign in to comment.