page-directory.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. if ( !defined('ABSPATH') ){ die(); }
  3. global $avia_config;
  4. get_header();
  5. do_action( 'ava_after_main_title' );
  6. ?>
  7. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  8. <div id='av_section_1' class='avia-section main_color avia-section-default avia-no-shadow avia-full-stretch avia-bg-style-scroll avia-builder-el-0 avia-builder-el-no-sibling av-minimum-height av-minimum-height-custom container_wrap sidebar_right' style = 'background-repeat: no-repeat; background-image: url(<?php echo get_stylesheet_directory_uri() ?>/img/provider-home-header-background.jpg); background-attachment: scroll; background-position: center left; ' data-section-bg-repeat='stretch' >
  9. <div class='container' style='height:170px'>
  10. <main role="main" itemprop="mainContentOfPage" class='template-page content av-content-small alpha units'>
  11. <div class='post-entry post-entry-type-page post-entry-708'>
  12. <div class='entry-content-wrapper clearfix'>
  13. <div style='padding-bottom:10px;color:#fff;font-size:40px;' class='av-special-heading av-special-heading-h3 custom-color-heading blockquote modern-quote modern-centered avia-builder-el-1 avia-builder-el-no-sibling av-inherit-size'>
  14. <h3 class='av-special-heading-tag provider-directory' itemprop="headline">Provider Directory</h3>
  15. <div class='special-heading-border'>
  16. <div class='special-heading-inner-border' style='border-color:#0d77bd'></div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </main><!-- close content main element -->
  22. </div>
  23. </div>
  24. <div id='after_section_1' class='main_color av_default_container_wrap container_wrap sidebar_right'></div>
  25. <div class='container'>
  26. <main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
  27. <div id="physicians_search">
  28. <div id="search">
  29. <br />
  30. <h4>Search by Keyword</h4>
  31. <form action="<?php echo home_url( '/' ); ?>" id="searchform" method="get" class="">
  32. <div>
  33. <input type="submit" value="" id="searchsubmit" class="button avia-font-entypo-fontello" />
  34. <input type="text" id="s" name="s" value="" placeholder='Enter Physician, Specialty, or Practice.' />
  35. </div>
  36. </form>
  37. <br />
  38. </div>
  39. <div id="locations">
  40. <h4>Select a Practice</h4>
  41. <?php
  42. $locations = get_categories('taxonomy=location&hide_empty=0');
  43. $select = "<select name='loc' id='loc' class='postform'>n";
  44. $select.= "<option value='-1'>Select Location</option>n";
  45. foreach($locations as $category) {
  46. $select.= "<option value='".$category->slug."'>".$category->name."</option>";
  47. }
  48. $select.= "</select>";
  49. echo $select;
  50. ?>
  51. <script type="text/javascript">
  52. var dropdown = document.getElementById("loc");
  53. function onlocChange() {
  54. if ( dropdown.options[dropdown.selectedIndex].value != -1 ) {
  55. location.href = "<?php echo home_url();?>/location/"+dropdown.options[dropdown.selectedIndex].value+"/";
  56. }
  57. }
  58. dropdown.onchange = onlocChange;
  59. </script>
  60. </div>
  61. <div id="specialties">
  62. <h4>Select a Specialty</h4>
  63. <?php
  64. $categories = get_categories('taxonomy=specialties');
  65. $select2 = "<select name='spe' id='spe' class='postform'>n";
  66. $select2.= "<option value='-1'>Select Specialty</option>n";
  67. foreach($categories as $category){
  68. if($category->count > 0){
  69. $select2.= "<option value='".$category->slug."'>".$category->name."</option>";
  70. }
  71. }
  72. $select2.= "</select>";
  73. echo $select2;
  74. ?>
  75. <script type="text/javascript">
  76. var dropdown2 = document.getElementById("spe");
  77. function onspeChange() {
  78. if ( dropdown2.options[dropdown2.selectedIndex].value != -1 ) {
  79. location.href = "<?php echo home_url();?>/specialty/"+dropdown2.options[dropdown2.selectedIndex].value+"/";
  80. }
  81. }
  82. dropdown2.onchange = onspeChange;
  83. </script>
  84. </div>
  85. <div id="all-providers">
  86. <div class='avia-button-wrap avia-button-center avia-builder-el-34 el_after_av_button el_before_av_button'><a href='?s=' class=''><span class='avia_iconbox_title' >List All Providers</span></a></div>
  87. <div class='avia-button-wrap avia-button-center avia-builder-el-34 el_after_av_button el_before_av_button'><a href='practices' class=''><span class='avia_iconbox_title' >List All Practices</span></a></div>
  88. <div class='avia-button-wrap avia-button-center avia-builder-el-34 el_after_av_button el_before_av_button'><a href='http://www.selfregional.org/new-patient-forms/' class='avia-button avia-icon_select-yes-left-icon avia-color-srh-blue avia-size-large avia-position-left'><span style="color:#fff" class='avia_iconbox_title' >Download New Patient Forms</span></a></div>
  89. <div class='avia-button-wrap avia-button-center avia-builder-el-34 el_after_av_button el_before_av_button'><a href="https://mychart.selfregional.org/mychart/"><img src="<?php echo get_stylesheet_directory_uri() ?>/img/mychart.gif"></a></div>
  90. </div>
  91. </div>
  92. </main>
  93. <?php
  94. $avia_config['currently_viewing'] = 'page';
  95. get_sidebar();
  96. ?>
  97. </div><!--end container-->
  98. </div><!-- close default .container_wrap element -->
  99. <?php get_footer(); ?>