function getWpThemes(){
$themes_ = get_themes();
$themes_ = array_keys($themes_);
$current = get_option("template");
$arr_theme = array();
$themes = search_theme_directories();
$i=0;
foreach($themes as $theme=>$item){
$active = $current==$theme?"Current Theme":"Activate";
$arr_theme[] = array("name"=>$theme,"status"=>$active,"title"=>$themes_[$i]);
$i++;
}
return $arr_theme;
}
No comments:
Post a Comment