Example #1
0
 /**
  * 获取插件配置面板
  * 
  * @access public
  * @param Typecho_Widget_Helper_Form $form 配置面板
  * @return void
  */
 public static function config(Typecho_Widget_Helper_Form $form)
 {
     $vispost = new Typecho_Widget_Helper_Form_Element_Checkbox('vispost', self::visposts(), array(), _t('公开文章列表→'), _t('<span style="position:relative;left:330px;bottom:80px;">[勾选切换]</span>'));
     $form->addInput($vispost->multiMode()->setAttribute('style', 'float:left;width:300px;'));
     $subpost = new Typecho_Widget_Helper_Form_Element_Checkbox('subpost', self::subposts(), array(), _t('←会员文章列表'), _t(''));
     $form->addInput($subpost->multiMode()->setAttribute('style', 'float:right;width:300px;'));
     $submsgp = new Typecho_Widget_Helper_Form_Element_Textarea('submsgp', NULL, '<div class="sub2view"><i class="icon-lock"></i>本文仅对注册会员开放阅读。</div>', _t('会员文章隐藏提示'), _t('未登录访客看到的会员文章显示,可使用html鼓励注册'));
     $form->addInput($submsgp->setAttribute('style', 'clear:both;'));
     $submsga1 = new Typecho_Widget_Helper_Form_Element_Textarea('submsga1', NULL, '<div class="sub2view"><i class="icon-lock"></i>此处内容需要登录才能查看。</div>', _t('会员内容隐藏提示'), _t('公开文章中用[sub][/sub]隐藏的会员内容对访客的提示'));
     $form->addInput($submsga1);
     $submsga2 = new Typecho_Widget_Helper_Form_Element_Textarea('submsga2', NULL, '<p>您已登录,可以阅读以下内容:</p><div class="sub2view"><i class="icon-lock-open"></i>{content}</div>', _t('会员内容可见效果'), _t('已登录会员看到隐藏内容显示效果(勿删改{content}标签)'));
     $form->addInput($submsga2);
 }