Guest User

child-page.php

a guest
Apr 1st, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. <?php
  2. /*
  3. * Template Name: Lucas - Test Template
  4. * See the codex entry on custom template for more information: http://codex.wordpress.org/Page_Templates#Custom_Page_Template
  5. *
  6. * Add html above or below the_content inside the comments
  7. * Add php snippets as well with their own opening and closing php
  8. */
  9. global $avia_config, $post;
  10.  
  11. if ( post_password_required() )
  12. {
  13. get_template_part( 'page' ); exit();
  14. }
  15.  
  16. /*
  17. * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  18. */
  19. get_header();
  20.  
  21.  
  22. if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title();
  23. ?>
  24.  
  25. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  26. <div class='container'>
  27.  
  28. <main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
  29.  
  30. <!--Custom html above the visual editor content-->
  31.  
  32. <!--End /above custom html content-->
  33.  
  34. <?php
  35.  
  36. $avia_config['size'] = avia_layout_class( 'main' , false) == 'entry_without_sidebar' ? '' : 'entry_with_sidebar';
  37. get_template_part( 'includes/loop', 'page' );
  38. ?>
  39.  
  40. <!--end content-->
  41.  
  42. <!--Custom html below the visual editor content-->
  43.  
  44. <?php echo "Hello World Test - I just applied this code at the moment"; ?>
  45. <br />
  46. <select id="list">
  47. <option value="audi">Audi</option>
  48. <option value="bmw">BMW</option>
  49. <option value="mb">Mercedes</option>
  50. <option value="fo">Ford</option>
  51. <option value="fi">Fiat</option>
  52. <option value="op">Opel</option>
  53. <option value="vw">VW</option>
  54. <option value="wn">Was noch?</option>
  55. </select>
  56.  
  57. <script>
  58. function getSelectValue()
  59. {
  60. var selectedValue = document.getElementById("List").value;
  61. console.log(selectedValue);
  62. }
  63. getSelectValue();
  64. </script>
  65. <!--End /below custom html content-->
  66.  
  67.  
  68.  
  69. </main>
  70.  
  71. <?php
  72.  
  73. //get the sidebar if the page options want it
  74. $avia_config['currently_viewing'] = 'page';
  75. get_sidebar();
  76.  
  77. ?>
  78.  
  79. </div><!--end container-->
  80.  
  81. </div><!-- close default .container_wrap element -->
  82.  
  83.  
  84.  
  85. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment