Advertisement
Konark

Untitled

Mar 7th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. if (
  2. $cmsmasters_option['printpress' . '_footer_type'] == 'default' &&
  3. $cmsmasters_option['printpress' . '_footer_logo']
  4. ) {
  5. printpress_footer_logo($cmsmasters_option);
  6. }
  7.  
  8.  
  9. if (
  10. (
  11. $cmsmasters_option['printpress' . '_footer_type'] == 'default' &&
  12. $cmsmasters_option['printpress' . '_footer_html'] !== ''
  13. ) || (
  14. $cmsmasters_option['printpress' . '_footer_type'] == 'small' &&
  15. $cmsmasters_option['printpress' . '_footer_additional_content'] == 'text' &&
  16. $cmsmasters_option['printpress' . '_footer_html'] !== ''
  17. )
  18. ) {
  19. echo '<div class="footer_custom_html_wrap">' .
  20. '<div class="footer_custom_html">' .
  21. do_shortcode(wp_kses(stripslashes($cmsmasters_option['printpress' . '_footer_html']), 'post')) .
  22. '</div>' .
  23. '</div>';
  24. }
  25.  
  26.  
  27. if (
  28. has_nav_menu('footer') &&
  29. (
  30. (
  31. $cmsmasters_option['printpress' . '_footer_type'] == 'default' &&
  32. $cmsmasters_option['printpress' . '_footer_nav']
  33. ) || (
  34. $cmsmasters_option['printpress' . '_footer_type'] == 'small' &&
  35. $cmsmasters_option['printpress' . '_footer_additional_content'] == 'nav'
  36. )
  37. )
  38. ) {
  39. echo '<div class="footer_nav_wrap">' .
  40. '<nav>';
  41.  
  42.  
  43. wp_nav_menu(array(
  44. 'theme_location' => 'footer',
  45. 'menu_id' => 'footer_nav',
  46. 'menu_class' => 'footer_nav'
  47. ));
  48.  
  49.  
  50. echo '</nav>' .
  51. '</div>';
  52. }
  53.  
  54.  
  55. if (
  56. isset($cmsmasters_option['printpress' . '_social_icons']) &&
  57. (
  58. (
  59. $cmsmasters_option['printpress' . '_footer_type'] == 'default' &&
  60. $cmsmasters_option['printpress' . '_footer_social']
  61. ) || (
  62. $cmsmasters_option['printpress' . '_footer_type'] == 'small' &&
  63. $cmsmasters_option['printpress' . '_footer_additional_content'] == 'social'
  64. )
  65. )
  66. ) {
  67. printpress_social_icons();
  68. }
  69. ?>
  70. <span class="footer_copyright copyright">
  71. <?php
  72. if (function_exists('the_privacy_policy_link')) {
  73. the_privacy_policy_link('', ' / ');
  74. }
  75.  
  76. echo esc_html(stripslashes($cmsmasters_option['printpress' . '_footer_copyright']));
  77. ?>
  78. </span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement