Ejemplo n.º 1
0
      </tr>

      <tr>
      <td>备案号</td>
        <td>
          <?php 
wp_editor(get_option("beian"), "beian");
?>
         </td>
      </tr>

      <tr>
      <td>二维码</td>
        <td>
          <?php 
print_image_field('qr', 'qr_button');
?>
        
        </td>
      </tr>

      <tr>
      <td>关于我们</td>
        <td>
          <?php 
wp_editor(get_option("about_us"), "about_us");
?>
 
        </td>
      </tr>
        
Ejemplo n.º 2
0
    <div class="checkbox">
      <p class="bg-warning is_show">
        <span>是否开启</span> <input type="checkbox"  id="show_intro_block" name="show_intro_block" <?php 
echo get_option("show_intro_block");
?>
 value="checked">
      </p>
    </div><br/>
    <div class="row">
      <div class="col-sm-5">
        背景图片
      </div>
      <div class="col-sm-7">
        <div class="theme-field">
          <?php 
print_image_field("intro_bg", "intro_bg_button");
?>
        </div>
      </div>
    </div>
    <br/><br/>
    
    <?php 
for ($i = 0; $i < 10; $i++) {
    ?>
      <div class="row">
        <div class="col-sm-5">

          <div class="theme-field">
            <div class="col-sm-2">标题</div>
            <div class="col-sm-10">
Ejemplo n.º 3
0
    echo "slider_url_{$i}";
    ?>
' value='<?php 
    echo get_option("slider_url_{$i}");
    ?>
' />
    </div>
    </div>
    <div class="theme-field">
    <div class="col-sm-2">内容</div>
    <div class="col-sm-10">
      <?php 
    wp_editor(get_option("slider_content_{$i}"), "slider_content_{$i}");
    ?>
    </div>
    </div>
  </div>

  <div class="col-sm-6">
    <?php 
    print_image_field("slider_image_{$i}", "slider_image_{$i}_button");
    ?>
  </div>
</div>
<hr/>
<?php 
}
submit_button();
?>
</form>
</div>
Ejemplo n.º 4
0
             <div class="col-md-6">
              <div class="field">标题: <input type="text"  name="client_title[]" value="<?php 
    echo $client_title[$i];
    ?>
"></div>

               <div class="field">链接: <input type="text" size=35 name="client_url[]" value="<?php 
    echo $client_url[$i];
    ?>
"></div>
               <div class="field"><button class="remove-field btn btn-danger btn-xs">删除</button></div>
             </div><!-- col-md-6 -->

             <div class="col-md-6">
               <div class="field"><?php 
    print_image_field('client_image', $i, true);
    ?>
</div>
             </div>
             <div class="clearfix"></div>
           </div><!-- repeat-fields -->
        <?php 
}
?>

           

         </div> <!-- repeat-fields-area make sure to have a better layout with add button-->
        <div class="clearfix"></div>
            <button class="add-field btn btn-info btn-sm">添加一组字段</button> 
         </div><!-- repeat-group the whole repeat feild-->