2017-02-26 2 views
0

私は私のテーマでReduxのフレームワークを使用していると私は定義しながら、ファイル「customizer_section.phpReduxのフレームワークの拡張WP_Customize_Section - セクション

を使用してWP_Customize_Sectionを拡張することによって、私のテーマをカスタマイズするよために定義されたクラスを取得する方法私のオプション、私はセクションを以下のように定義しました:

);私たち自身のcustomizer_section.phpで

は私がCSSクラスを取得したいのliタグで上記のコードで自分のコードブロック

protected function render_fallback() { 
    $classes = 'accordion-section redux-section control-section control-section-' . $this->type; 
    ?> 
    <li id="accordion-section-<?php echo esc_attr($this->id); ?>" class="<?php echo esc_attr($classes); ?>"> 
     <h3 class="accordion-section-title" tabindex="0"> 
      <?php 
      echo wp_kses($this->title, array(
       'em' => array(), 
       'i' => array(), 
       'strong' => array(), 
       'span' => array(
        'class' => array(), 
        'style' => array(), 
       ), 
      )); 
      ?> 

     </h3> 

に私のオプションで定義されたクラスに追加したい(MyCSSClass)上記の私のオプションで定義したものです。どのように私はここにそのCSSクラスを取得できますか?

答えて

0

okが、私はセクションのクラスを取得するために以下のコードを使用し.....それを考え出したとLiクラスでそれを使用し

$this->class_name = isset($this->section['class']) ? $this->section['class'] : ''; 
関連する問題