Skip to content

Commit

Permalink
Dev: Add rtl-versions of Sea_Green style (use R2 to convert)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 11, 2016
1 parent f10bf7b commit f168e11
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 1 deletion.
12 changes: 11 additions & 1 deletion application/controllers/AdminController.php
Expand Up @@ -44,7 +44,7 @@ protected function _init()
if (!Yii::app()->getConfig("editedaction")) {Yii::app()->setConfig("editedaction", returnGlobal('editedaction'));} // for html editor integration

global $oTemplate;
$oTemplate = Template::model()->getTemplateConfiguration(Yii::app()->getConfig("defaulttemplate"));
$oTemplate = Template::model()->getTemplateConfiguration(Yii::app()->getConfig("defaulttemplate"));
}

/**
Expand Down Expand Up @@ -304,6 +304,16 @@ public function _getAdminHeader($meta = false, $return = false)
$aData['aPackageScripts'] = (array) $oAdmintheme->config->files->js->filename;
$aData['aPackageStyles'] = (array) $oAdmintheme->config->files->css->filename;

if (true)
{
foreach ($aData['aPackageStyles'] as &$filename)
{
$filename = str_replace('.css', '-rtl.css', $filename);
}
}

var_dump($aData['aPackageStyles']);

$sOutput = $this->renderPartial("/admin/super/header", $aData, true);

// Define images url
Expand Down
1 change: 1 addition & 0 deletions styles/Sea_Green/css/bootstrap-switch.min-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions styles/Sea_Green/css/displayParticipants-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f168e11

Please sign in to comment.