コード例 #1
0
ファイル: Attributes.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return block style
  *
  * @return string
  */
 protected function getBlockStyle()
 {
     $style = parent::getBlockStyle() . ' attributes';
     if ($this->isAllowVaraintAdd()) {
         $style .= ' checked';
     }
     if ($this->getVariantsAttributes()) {
         $style .= ' hidden';
     }
     return $style;
 }
コード例 #2
0
 /**
  * Return block style
  *
  * @return string
  */
 protected function getBlockStyle()
 {
     return parent::getBlockStyle() . ' variants-are-based';
 }
コード例 #3
0
ファイル: NoAttributes.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return block style
  *
  * @return string
  */
 protected function getBlockStyle()
 {
     return parent::getBlockStyle() . ' no-attributes';
 }