fork(3) download
  1. <?php
  2. if(tie_get_option( 'columns_num' ) != '2c'):
  3. ?>
  4. <aside class="sidebar-narrow">
  5. <?php
  6. if ( is_home() ){
  7.  
  8. $sidebar_home = tie_get_option( 'sidebar_narrow_home' );
  9. if( $sidebar_home )
  10. dynamic_sidebar ( sanitize_title( $sidebar_home ) );
  11.  
  12. else dynamic_sidebar( 'narrow-primary-widget-area' );
  13.  
  14. }elseif( is_page() ){
  15. global $get_meta;
  16. $tie_sidebar_pos = $get_meta["tie_sidebar_pos"][0];
  17.  
  18. if( $tie_sidebar_pos != 'full' ){
  19. $tie_sidebar_post = sanitize_title($get_meta["tie_sidebar_narrow_post"][0]);
  20. $sidebar_page = tie_get_option( 'sidebar_narrow_page' );
  21. if( $tie_sidebar_post )
  22. dynamic_sidebar($tie_sidebar_post);
  23.  
  24. elseif( $sidebar_page )
  25. dynamic_sidebar ( sanitize_title( $sidebar_page ) );
  26.  
  27. else dynamic_sidebar( 'narrow-primary-widget-area' );
  28. }
  29.  
  30. }elseif ( is_single() ){
  31. global $get_meta;
  32. $tie_sidebar_pos = $get_meta["tie_sidebar_pos"][0];
  33.  
  34. if( $tie_sidebar_pos != 'full' ){
  35. $tie_sidebar_post = sanitize_title($get_meta["tie_sidebar_narrow_post"][0]);
  36. $sidebar_post = tie_get_option( 'sidebar_narrow_post' );
  37. if( $tie_sidebar_post )
  38. dynamic_sidebar($tie_sidebar_post);
  39.  
  40. elseif( $sidebar_post )
  41. dynamic_sidebar ( sanitize_title( $sidebar_post ) );
  42.  
  43. else dynamic_sidebar( 'narrow-primary-widget-area' );
  44. }
  45.  
  46. }elseif ( is_category() ){
  47.  
  48. $category_id = get_query_var('cat') ;
  49. $cat_sidebar = tie_get_option( 'sidebar_narrow_cat_'.$category_id ) ;
  50. $sidebar_archive = tie_get_option( 'sidebar_narrow_archive' );
  51.  
  52. if( $cat_sidebar )
  53. dynamic_sidebar ( sanitize_title( $cat_sidebar ) );
  54.  
  55. elseif( $sidebar_archive )
  56. dynamic_sidebar ( sanitize_title( $sidebar_archive ) );
  57.  
  58. else dynamic_sidebar( 'narrow-primary-widget-area' );
  59.  
  60. }else{
  61. $sidebar_archive = tie_get_option( 'sidebar_narrow_archive' );
  62. if( $sidebar_archive ){
  63. dynamic_sidebar ( sanitize_title( $sidebar_archive ) );
  64. }
  65. else dynamic_sidebar( 'narrow-primary-widget-area' );
  66. }
  67. ?>
  68. </aside>
  69. <?php endif; ?>
  70. </div> <!-- .content-wrap -->
  71. <aside class="sidebar">
  72. <?php
  73. wp_reset_query();
  74. if ( is_home() ){
  75.  
  76. $sidebar_home = tie_get_option( 'sidebar_home' );
  77. if( $sidebar_home )
  78. dynamic_sidebar ( sanitize_title( $sidebar_home ) );
  79.  
  80. else dynamic_sidebar( 'primary-widget-area' );
  81.  
  82. }elseif( is_page() ){
  83. global $get_meta;
  84. $tie_sidebar_pos = $get_meta["tie_sidebar_pos"][0];
  85.  
  86. if( $tie_sidebar_pos != 'full' ){
  87. $tie_sidebar_post = sanitize_title($get_meta["tie_sidebar_post"][0]);
  88. $sidebar_page = tie_get_option( 'sidebar_page' );
  89. if( $tie_sidebar_post )
  90. dynamic_sidebar($tie_sidebar_post);
  91.  
  92. elseif( $sidebar_page )
  93. dynamic_sidebar ( sanitize_title( $sidebar_page ) );
  94.  
  95. else dynamic_sidebar( 'primary-widget-area' );
  96. }
  97.  
  98. }elseif ( is_single() ){
  99. global $get_meta;
  100. $tie_sidebar_pos = $get_meta["tie_sidebar_pos"][0];
  101.  
  102. if( $tie_sidebar_pos != 'full' ){
  103. $tie_sidebar_post = sanitize_title($get_meta["tie_sidebar_post"][0]);
  104. $sidebar_post = tie_get_option( 'sidebar_post' );
  105. if( $tie_sidebar_post )
  106. dynamic_sidebar($tie_sidebar_post);
  107.  
  108. elseif( $sidebar_post )
  109. dynamic_sidebar ( sanitize_title( $sidebar_post ) );
  110.  
  111. else dynamic_sidebar( 'primary-widget-area' );
  112. }
  113.  
  114. }elseif ( is_category() ){
  115.  
  116. $category_id = get_query_var('cat') ;
  117. $cat_sidebar = tie_get_option( 'sidebar_cat_'.$category_id ) ;
  118. $sidebar_archive = tie_get_option( 'sidebar_archive' );
  119.  
  120. if( $cat_sidebar )
  121. dynamic_sidebar ( sanitize_title( $cat_sidebar ) );
  122.  
  123. elseif( $sidebar_archive )
  124. dynamic_sidebar ( sanitize_title( $sidebar_archive ) );
  125.  
  126. else dynamic_sidebar( 'primary-widget-area' );
  127.  
  128. }else{
  129. $sidebar_archive = tie_get_option( 'sidebar_archive' );
  130. if( $sidebar_archive ){
  131. dynamic_sidebar ( sanitize_title( $sidebar_archive ) );
  132. }
  133. else dynamic_sidebar( 'primary-widget-area' );
  134. }
  135. ?>
  136. </aside>
  137. <div class="clear"></div>
Runtime error #stdin #stdout #stderr 0.01s 20520KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Call to undefined function tie_get_option() in /home/x8HKBZ/prog.php on line 2