CSF::createMetabox('Mario', array( 'title' => '附加选项', 'post_type' => array('post', 'plate', 'forum_post'), 'context' => 'advanced', 'data_type' => 'unserialize', )); CSF::createSection('Mario', array( 'fields' => array( array( 'title' => __('开启文章角标'), 'id' => 'Mario_edit', 'type' => 'switcher', 'label' => '角标', 'desc' => '填哪个显示哪个,不想要的留空就行', 'default' => false ), array( 'dependency' => array('Mario_edit', '!=', ''), 'title' => __('左上角标内容'), 'id' => 'right_text', 'type' => 'text', 'default' => '支持M1/M2', ), array( 'dependency' => array('Mario_edit', '!=', ''), 'title' => __('背景颜色'), 'id' => 'right_color', 'type' => 'color', 'default' => '#121212', 'class' =>'compact', ), array( 'dependency' => array('Mario_edit', '!=', ''), 'title' => __('右上角标内容'), 'id' => 'left_text', 'type' => 'text', 'default' => '实测', ), array( 'dependency' => array('Mario_edit', '!=', ''), 'title' => __('背景颜色'), 'id' => 'left_color', 'type' => 'color', 'default' => '#121212', 'class' =>'compact', ), array( 'dependency' => array('Mario_edit', '!=', ''), 'title' => __('封面底部内容'), 'id' => 'bottom_text', 'type' => 'text', 'default' => '支持Intel&M1&M2运行', ), array( 'dependency' => array('Mario_edit', '!=', ''), 'title' => __('背景颜色'), 'id' => 'bottom_color', 'type' => 'color', 'default' => '#121212', 'class' =>'compact', ), ), ));