/** * register the setting page and path settings values to the view */ public static function setting() { Theme::setting(function () { $matched = self::settingData(); $settings = AFormatter::objectiveSettings(Applum::find(1)); View::make('admin/setting', ['matched' => $matched, 'settings' => $settings]); }); }
/** * its name is clear about what it is performing for you */ public static function use_submitted_info_and_leave_untouch_settings() { foreach (Applum::$columns as $key => $val) { $currentSetting = unserialize(self::$settings->{$key}); if (is_array($currentSetting)) { $processed = DataFormatter::merge($currentSetting, Applum::$columns[$key]); self::$settings->{$key} = serialize($processed); } } }
public static function display() { $data = AFormatter::objectiveSettings(Applum::find(1)); View::make('site/head/head'); View::make("site/body/header/header"); IntroController::intro($data); FeatureController::feature($data); AppController::app($data); SubscribeController::subscribe($data); GalleryController::gallery($data); TestimonialController::testimonial($data); PricingController::pricing($data); ContactController::contact($data); FooterController::footer($data); }