tougao.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. template name: 投稿
  4. description: template for yusi123.com Yusi theme
  5. */
  6. get_header();
  7. ?>
  8. <div class="pagewrapper clearfix">
  9. <aside class="pagesidebar">
  10. <ul class="pagesider-menu">
  11. <?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('theme_location' => 'pagemenu', 'echo' => false)) )); ?>
  12. </ul>
  13. </aside>
  14. <div class="pagecontent">
  15. <header class="pageheader clearfix">
  16. <h1 class="pull-left">
  17. <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
  18. </h1>
  19. <div class="pull-right">
  20. <?php deel_share() ?>
  21. </div>
  22. </header>
  23. <?php while (have_posts()) : the_post(); ?>
  24. <article class="article-content">
  25. <?php the_content(); ?>
  26. </article>
  27. <?php endwhile; ?>
  28. <ul class="submit-form">
  29. <li> <strong>标题</strong>
  30. <input id="tougao-title" class="input-block-level" type="text" size="40" placeholder="写点什么...">
  31. <p class="text-error hide"></p>
  32. </li>
  33. <li> <strong>网址</strong>
  34. <input id="tougao-url" class="input-block-level" type="text" placeholder="http://" size="100">
  35. <p class="text-error hide"></p>
  36. </li>
  37. <li>
  38. <strong>内容</strong>
  39. <textarea id="tougao-content" rows="12" class="input-block-level" placeholder="写点什么..."></textarea>
  40. <p class="text-error hide"></p>
  41. </li>
  42. </ul>
  43. <div class="text-error"></div>
  44. <button id="tougao-submit" class="btn btn-primary"><i class="fa fa-check-square-o"></i> 立即提交</button>
  45. </div>
  46. </div>
  47. <?php wp_enqueue_script( '', get_template_directory_uri() . '/js/tougao.js', array(), '3.0', true ); ?>
  48. <?php get_footer(); ?>