コード例 #1
0
<?php 
/*
/ [ writing ]
/
/ $writing_type (SINGLE_WRITING_TYPE, MULTIPLE_WRITING_TYPE)
/ $tag
/
*/
// 1. Defaults
$site_title = 'Writing — ' . Config::get('settings.title');
$og_description = 'Description of the blog.';
$services_typekit = Config::get('services.typekit.writing');
$header_classes = 'c-header--white';
$is_header_static = true;
// 2. Defaults Cover
$cover_subtitle = Thinker::array_rand_value(trans('base.slogan'));
$cover_classes_title_b = '';
$cover_image = '';
$cover_classes = '';
$cover_active = true;
// 3. Define Article Type
if (isset($articles)) {
    $writing_type = 'MULTIPLE_WRITING_TYPE';
} else {
    if (isset($article)) {
        $writing_type = 'SINGLE_WRITING_TYPE';
    }
}
// 4. Single Article Settings
if ($writing_type == 'SINGLE_WRITING_TYPE') {
    // 4.1. General