Skip to content

Commit 0b046db

Browse files
committed
added methods to retrieve language+theme list
1 parent ce7c1fc commit 0b046db

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

modules/core/Enlighter.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,17 @@ public function settingsPage(){
241241
'webfonts' => array()
242242
);
243243
}
244-
244+
245+
// retrieve themes
246+
public function getThemes(){
247+
return $this->_themeManager->getThemes();
248+
}
249+
250+
// retrieve languages
251+
public function getLanguages(){
252+
return $this->_languageManager->getLanguages();
253+
}
254+
245255
public function _wp_plugin_upgrade($currentVersion){
246256
// upgrade from < 4.0 ? use v3.99 condition to ensure that beta versions are not altered!
247257
if (version_compare($currentVersion, '3.99', '<')){

0 commit comments

Comments
 (0)