Advertisement
Guest User

Untitled

a guest
Nov 24th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.41 KB | None | 0 0
  1. <?php
  2. global $qode_options_proya;
  3. $page_id = $wp_query->get_queried_object_id();
  4. ?>
  5. <?php
  6. $content_bottom_area = "yes";
  7. if(get_post_meta($page_id, "qode_enable_content_bottom_area", true) != ""){
  8. $content_bottom_area = get_post_meta($page_id, "qode_enable_content_bottom_area", true);
  9. } else{
  10. if (isset($qode_options_proya['enable_content_bottom_area'])) {
  11. $content_bottom_area = $qode_options_proya['enable_content_bottom_area'];
  12. }
  13. }
  14. $content_bottom_area_sidebar = "";
  15. if(get_post_meta($page_id, 'qode_choose_content_bottom_sidebar', true) != ""){
  16. $content_bottom_area_sidebar = get_post_meta($page_id, 'qode_choose_content_bottom_sidebar', true);
  17. } else {
  18. if(isset($qode_options_proya['content_bottom_sidebar_custom_display'])) {
  19. $content_bottom_area_sidebar = $qode_options_proya['content_bottom_sidebar_custom_display'];
  20. }
  21. }
  22. $content_bottom_area_in_grid = true;
  23. if(get_post_meta($page_id, 'qode_content_bottom_sidebar_in_grid', true) != ""){
  24. if(get_post_meta($page_id, 'qode_content_bottom_sidebar_in_grid', true) == "yes") {
  25. $content_bottom_area_in_grid = true;
  26. } else {
  27. $content_bottom_area_in_grid = false;
  28. }
  29. }
  30. else {
  31. if(isset($qode_options_proya['content_bottom_in_grid'])){if ($qode_options_proya['content_bottom_in_grid'] == "no") $content_bottom_area_in_grid = false;}
  32. }
  33. $content_bottom_background_color = '';
  34. if(get_post_meta($page_id, "qode_content_bottom_background_color", true) != ""){
  35. $content_bottom_background_color = get_post_meta($page_id, "qode_content_bottom_background_color", true);
  36. }
  37. ?>
  38. <?php if($content_bottom_area == "yes") { ?>
  39. <?php if($content_bottom_area_in_grid){ ?>
  40. <div class="container">
  41. <div class="container_inner clearfix">
  42. <?php } ?>
  43. <div class="content_bottom" <?php if($content_bottom_background_color != ''){ echo 'style="background-color:'.$content_bottom_background_color.';"'; } ?>>
  44. <?php dynamic_sidebar($content_bottom_area_sidebar); ?>
  45. </div>
  46. <?php if($content_bottom_area_in_grid){ ?>
  47. </div>
  48. </div>
  49. <?php } ?>
  50. <?php } ?>
  51.  
  52. </div>
  53. </div>
  54.  
  55. <?php
  56. if(isset($qode_options_proya['paspartu']) && $qode_options_proya['paspartu'] == 'yes'){?>
  57. <?php if(isset($qode_options_proya['vertical_area']) && $qode_options_proya['vertical_area'] == "yes" && isset($qode_options_proya['vertical_menu_inside_paspartu']) && $qode_options_proya['vertical_menu_inside_paspartu'] == 'no') { ?>
  58. </div> <!-- paspartu_middle_inner close div -->
  59. <?php } ?>
  60. </div> <!-- paspartu_inner close div -->
  61. <?php if((isset($qode_options_proya['paspartu_on_bottom']) && $qode_options_proya['paspartu_on_bottom'] == 'yes') ||
  62. (isset($qode_options_proya['vertical_area']) && $qode_options_proya['vertical_area'] == "yes" && isset($qode_options_proya['vertical_menu_inside_paspartu']) && $qode_options_proya['vertical_menu_inside_paspartu'] == 'yes')){ ?>
  63. <div class="paspartu_bottom"></div>
  64. <?php }?>
  65. </div> <!-- paspartu_outer close div -->
  66. <?php
  67. }
  68. ?>
  69.  
  70. <?php
  71.  
  72. $paspartu = false;
  73. if(isset($qode_options_proya['paspartu']) && $qode_options_proya['paspartu'] == 'yes'){
  74. $paspartu = true;
  75. }
  76.  
  77. $uncovering_footer = false;
  78. if(isset($qode_options_proya['uncovering_footer']) && $qode_options_proya['uncovering_footer'] == "yes" && $paspartu == false){
  79. $uncovering_footer = true;
  80. }
  81.  
  82. $display_footer_top = true;
  83. if (isset($qode_options_proya['show_footer_top'])) {
  84. if ($qode_options_proya['show_footer_top'] == "no") $display_footer_top = false;
  85. }
  86.  
  87. $display_footer_text = false;
  88. if (isset($qode_options_proya['footer_text'])) {
  89. if ($qode_options_proya['footer_text'] == "yes") $display_footer_text = true;
  90. }
  91.  
  92. ?>
  93.  
  94. <?php if($display_footer_top || $display_footer_text) { ?>
  95. <footer <?php if($uncovering_footer){echo 'class="uncover"';} ?>>
  96. <div class="footer_inner clearfix">
  97. <?php
  98. $footer_in_grid = true;
  99. if(isset($qode_options_proya['footer_in_grid'])){
  100. if ($qode_options_proya['footer_in_grid'] != "yes") {
  101. $footer_in_grid = false;
  102. }
  103. }
  104.  
  105.  
  106. $footer_top_columns = 4;
  107. if (isset($qode_options_proya['footer_top_columns'])) {
  108. $footer_top_columns = $qode_options_proya['footer_top_columns'];
  109. }
  110.  
  111. $footer_top_border_color = !empty($qode_options_proya['footer_top_border_color']) ? $qode_options_proya['footer_top_border_color'] : '';
  112. $footer_top_border_width = isset($qode_options_proya['footer_top_border_width']) && $qode_options_proya['footer_top_border_width'] !== '' ? $qode_options_proya['footer_top_border_width'].'px' : '1px';
  113. $footer_top_border_in_grid = 'no';
  114. $footer_top_border_in_grid_class = '';
  115.  
  116. if(isset($qode_options_proya['footer_top_border_in_grid'])) {
  117. $footer_top_border_in_grid = $qode_options_proya['footer_top_border_in_grid'];
  118. $footer_top_border_in_grid_class = $footer_top_border_in_grid == 'yes' ? 'in_grid' : '';
  119. }
  120.  
  121. $footer_top_border_style = array();
  122. if($footer_top_border_color !== '') {
  123. $footer_top_border_style[] = 'background-color: '.$footer_top_border_color;
  124. }
  125.  
  126. if($footer_top_border_width !== '') {
  127. $footer_top_border_style[] = 'height: '.$footer_top_border_width;
  128. }
  129.  
  130. if($display_footer_top) { ?>
  131. <div class="footer_top_holder">
  132. <?php if($footer_top_border_color !== '') { ?>
  133. <div <?php qode_inline_style($footer_top_border_style); ?> <?php qode_class_attribute('footer_top_border '.$footer_top_border_in_grid_class); ?>></div>
  134. <?php } ?>
  135. <div class="footer_top<?php if(!$footer_in_grid) {echo " footer_top_full";} ?>">
  136. <?php if($footer_in_grid){ ?>
  137. <div class="container">
  138. <div class="container_inner">
  139. <?php } ?>
  140. <?php switch ($footer_top_columns) {
  141. case 6:
  142. ?>
  143. <div class="two_columns_50_50 clearfix">
  144. <div class="column1 footer_col1">
  145. <div class="column_inner">
  146. <?php dynamic_sidebar( 'footer_column_1' ); ?>
  147. </div>
  148. </div>
  149. <div class="column2">
  150. <div class="column_inner">
  151. <div class="two_columns_50_50 clearfix">
  152. <div class="column1 footer_col2">
  153. <div class="column_inner">
  154. <?php dynamic_sidebar( 'footer_column_2' ); ?>
  155. </div>
  156. </div>
  157. <div class="column2 footer_col3">
  158. <div class="column_inner">
  159. <?php dynamic_sidebar( 'footer_column_3' ); ?>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <?php
  167. break;
  168. case 5:
  169. ?>
  170. <div class="two_columns_50_50 clearfix">
  171. <div class="column1">
  172. <div class="column_inner">
  173. <div class="two_columns_50_50 clearfix">
  174. <div class="column1 footer_col1">
  175. <div class="column_inner">
  176. <?php dynamic_sidebar( 'footer_column_1' ); ?>
  177. </div>
  178. </div>
  179. <div class="column2 footer_col2">
  180. <div class="column_inner">
  181. <?php dynamic_sidebar( 'footer_column_2' ); ?>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <div class="column2 footer_col3">
  188. <div class="column_inner">
  189. <?php dynamic_sidebar( 'footer_column_3' ); ?>
  190. </div>
  191. </div>
  192. </div>
  193. <?php
  194. break;
  195. case 4:
  196. ?>
  197. <div class="four_columns clearfix">
  198. <div class="column1 footer_col1">
  199. <div class="column_inner">
  200. <?php dynamic_sidebar( 'footer_column_1' ); ?>
  201. </div>
  202. </div>
  203. <div class="column2 footer_col2">
  204. <div class="column_inner">
  205. <?php dynamic_sidebar( 'footer_column_2' ); ?>
  206. </div>
  207. </div>
  208. <div class="column3 footer_col3">
  209. <div class="column_inner">
  210. <?php dynamic_sidebar( 'footer_column_3' ); ?>
  211. </div>
  212. </div>
  213. <div class="column4 footer_col4">
  214. <div class="column_inner">
  215. <?php dynamic_sidebar( 'footer_column_4' ); ?>
  216. </div>
  217. </div>
  218. </div>
  219. <?php
  220. break;
  221. case 3:
  222. ?>
  223. <div class="three_columns clearfix">
  224. <div class="column1 footer_col1">
  225. <div class="column_inner">
  226. <?php dynamic_sidebar( 'footer_column_1' ); ?>
  227. </div>
  228. </div>
  229. <div class="column2 footer_col2">
  230. <div class="column_inner">
  231. <?php dynamic_sidebar( 'footer_column_2' ); ?>
  232. </div>
  233. </div>
  234. <div class="column3 footer_col3">
  235. <div class="column_inner">
  236. <?php dynamic_sidebar( 'footer_column_3' ); ?>
  237. </div>
  238. </div>
  239. </div>
  240. <?php
  241. break;
  242. case 2:
  243. ?>
  244. <div class="two_columns_50_50 clearfix">
  245. <div class="column1 footer_col1">
  246. <div class="column_inner">
  247. <?php dynamic_sidebar( 'footer_column_1' ); ?>
  248. </div>
  249. </div>
  250. <div class="column2 footer_col2">
  251. <div class="column_inner">
  252. <?php dynamic_sidebar( 'footer_column_2' ); ?>
  253. </div>
  254. </div>
  255. </div>
  256. <?php
  257. break;
  258. case 1:
  259. dynamic_sidebar( 'footer_column_1' );
  260. break;
  261. }
  262. ?>
  263. <?php if($footer_in_grid){ ?>
  264. </div>
  265. </div>
  266. <?php } ?>
  267. </div>
  268. <?php if (isset($qode_options_proya['footer_angled_section']) && $qode_options_proya['footer_angled_section'] == "yes"){ ?>
  269. <svg class="angled-section svg-footer-bottom" preserveAspectRatio="none" viewBox="0 0 86 86" width="100%" height="86">
  270. <?php if(isset($qode_options_proya['footer_angled_section_direction']) && $qode_options_proya['footer_angled_section_direction'] == 'from_left_to_right'){ ?>
  271. <polygon points="0,0 0,86 86,86" />
  272. <?php }
  273. if(isset($qode_options_proya['footer_angled_section_direction']) && $qode_options_proya['footer_angled_section_direction'] == 'from_right_to_left'){ ?>
  274. <polygon points="0,86 86,0 86,86" />
  275. <?php } ?>
  276. </svg>
  277. <?php } ?>
  278. </div>
  279. <?php } ?>
  280. <?php
  281.  
  282.  
  283. $footer_bottom_columns = 1;
  284. if (isset($qode_options_proya['footer_bottom_columns'])) {
  285. $footer_bottom_columns = $qode_options_proya['footer_bottom_columns'];
  286. }
  287.  
  288. $footer_bottom_in_grid = false;
  289. if(isset($qode_options_proya['footer_bottom_in_grid'])){
  290. if ($qode_options_proya['footer_bottom_in_grid'] == "yes") {
  291. $footer_bottom_in_grid = true;
  292. }
  293. }
  294.  
  295. $footer_bottom_border_color = !empty($qode_options_proya['footer_bottom_border_color']) ? $qode_options_proya['footer_bottom_border_color'] : '';
  296. $footer_bottom_border_width = isset($qode_options_proya['footer_bottom_border_width']) && $qode_options_proya['footer_bottom_border_width'] !== '' ? $qode_options_proya['footer_bottom_border_width'].'px' : '1px';
  297. $footer_bottom_border_in_grid = 'no';
  298. $footer_bottom_border_in_grid_class = '';
  299.  
  300. if(isset($qode_options_proya['footer_bottom_border_in_grid'])) {
  301. $footer_bottom_border_in_grid = $qode_options_proya['footer_bottom_border_in_grid'];
  302. $footer_bottom_border_in_grid_class = $footer_bottom_border_in_grid == 'yes' ? 'in_grid' : '';
  303. }
  304.  
  305. $footer_bottom_border_style = array();
  306. if($footer_bottom_border_color !== '') {
  307. $footer_bottom_border_style[] = 'background-color: '.$footer_bottom_border_color;
  308. }
  309.  
  310. if($footer_bottom_border_width !== '') {
  311. $footer_bottom_border_style[] = 'height: '.$footer_bottom_border_width;
  312. }
  313.  
  314. if($display_footer_text){ ?>
  315. <div class="footer_bottom_holder">
  316. <?php if($footer_bottom_border_color !== '') { ?>
  317. <div <?php qode_inline_style($footer_bottom_border_style); ?> <?php qode_class_attribute('footer_bottom_border '.$footer_bottom_border_in_grid_class); ?>></div>
  318. <?php } ?>
  319. <?php if($footer_bottom_in_grid){ ?>
  320. <div class="container">
  321. <div class="container_inner">
  322. <?php } ?>
  323. <?php
  324. switch ($footer_bottom_columns) {
  325. case 1:
  326. ?>
  327. <div class="footer_bottom">
  328. <?php dynamic_sidebar( 'footer_text' ); ?>
  329. </div>
  330. <?php
  331. break;
  332. case 2:
  333. ?>
  334. <div class="two_columns_50_50 footer_bottom_columns clearfix">
  335. <div class="column1 footer_bottom_column">
  336. <div class="column_inner">
  337. <div class="footer_bottom">
  338. <?php dynamic_sidebar( 'footer_text_left' ); ?>
  339. </div>
  340. </div>
  341. </div>
  342. <div class="column2 footer_bottom_column">
  343. <div class="column_inner">
  344. <div class="footer_bottom">
  345. <?php dynamic_sidebar( 'footer_text_right' ); ?>
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. <?php
  351. break;
  352. case 3:
  353. ?>
  354. <div class="three_columns footer_bottom_columns clearfix">
  355. <div class="column1 footer_bottom_column">
  356. <div class="column_inner">
  357. <div class="footer_bottom">
  358. <?php dynamic_sidebar( 'footer_text_left' ); ?>
  359. </div>
  360. </div>
  361. </div>
  362. <div class="column2 footer_bottom_column">
  363. <div class="column_inner">
  364. <div class="footer_bottom">
  365. <?php dynamic_sidebar( 'footer_text' ); ?>
  366. </div>
  367. </div>
  368. </div>
  369. <div class="column3 footer_bottom_column">
  370. <div class="column_inner">
  371. <div class="footer_bottom">
  372. <?php dynamic_sidebar( 'footer_text_right' ); ?>
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <?php
  378. break;
  379. default:
  380. ?>
  381. <div class="footer_bottom">
  382. <?php dynamic_sidebar( 'footer_text' ); ?>
  383. </div>
  384. <?php break; ?>
  385. <?php } ?>
  386. <?php if($footer_bottom_in_grid){ ?>
  387. </div>
  388. </div>
  389. <?php } ?>
  390. </div>
  391. <?php } ?>
  392. </div>
  393. </footer>
  394. <?php } ?>
  395.  
  396. </div>
  397. </div>
  398. <?php wp_footer(); ?>
  399. <p class="TK">Powered by <a href="http://themekiller.com/" title="themekiller" rel="follow"> themekiller.com </a><a href="http://anime4online.com/" title="anime4online" rel="follow"> anime4online.com </a> <a href="http://animextoon.com/" title="animextoon" rel="follow"> animextoon.com </a> <a href="http://apk4phone.com/" title="apk4phone" rel="follow"> apk4phone.com </a><a href="http://tengag.com/" title="tengag.com" rel="follow"> tengag.com </a><a href="http://moviekillers.com/" title="moviekillers" rel="follow"> moviekillers.com </a></p>
  400. </body>
  401. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement