芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/application/views/themes/bss2020/function.php
$options_vars['app_base_color']]; } $options_vars['section_color']=Mapp_setting_api::GetSettingsValue( "bss2020","section_color","rgba(235, 235, 235, 0.3)" ); $options_vars['top_notification_color']=Mapp_setting_api::GetSettingsValue( "bss2020","top_noti_color","" ); $options_vars['top_notification_text_color']=Mapp_setting_api::GetSettingsValue( "bss2020","top_noti_text_color","#ffffff" ); if(empty($options_vars['top_notification_color'])){ unset($options_vars['top_notification_color']); } $scss = new ScssPhp\ScssPhp\Compiler(); $scss->addImportPath(FCPATH."theme/bss2020/css/"); $scss->addVariables($options_vars); $cssStr=file_get_contents(FCPATH."theme/bss2020/css/style.scss"); $result = $scss->compileString( $cssStr); $css = $result->getCss(); file_put_contents( FCPATH."theme/bss2020/css/style.css", $css ); } catch ( Exception $e ) { echo $e->getMessage(); } }); AddOnManager::RegisterHook('process-color-settings-post',function(&$configsapi,&$config){ if(is_array($configsapi) && isset($configsapi['bss2020'])) { foreach ($configsapi['bss2020'] as $key => $value) { Mapp_setting_api::UpdateSettingsOrAdd( "bss2020",$key,$value ); } } }); if(isLiveEditMode()){ require_once dirname(__FILE__).'/ThemeLiveUpdate2020.php'; new ThemeLiveUpdate2020(); }