Advertisement
Guest User

Untitled

a guest
Dec 6th, 2015
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. <div class="row">
  2. <div class="col-md-6 col-sm-6 col-xs-6">
  3. <p class="p_top_header">
  4. <?php
  5. $allowed_html = array(
  6. 'a' => array('href' => array(), 'title' => array()),
  7. 'b' => array(),
  8. 'i' => array('class' => array()),
  9. 'br' => array(),
  10. 'strong' => array());
  11.  
  12. echo wp_kses(get_theme_mod('mycity_top_header_left'), $allowed_html);
  13. ?>
  14. </p>
  15. </div>
  16. <div class="col-md-6 col-sm-6 col-xs-6">
  17.  
  18. <?php if(get_theme_mod('langs_lang',true) == true){ ?>
  19. <div class="select-L">
  20. <a href="#" class="selected-lang"><?php if (isset($_COOKIE['lang'])) {echo $_COOKIE['lang'];} else {echo "en";} ?></a>
  21. <i class="fa fa-angle-down"></i>
  22. <ul class="select-lang">
  23. <a href="#">en</a>
  24. <a href="#">ru</a>
  25. <a href="#">it</a>
  26. <a href="#">fr</a>
  27. <a href="#">es</a>
  28. <a href="#">hi</a>
  29. <a href="#">ch</a>
  30. </ul>
  31. </div>
  32. <?php } ?>
  33. <p class="pull-right p_top_header">
  34. <?php
  35. $mycity_right_top = get_theme_mod('mycity_top_header_right', '[login]');
  36.  
  37. if (is_user_logged_in()) {
  38. $mycity_link2login = "<a href='" . wp_logout_url() . "'>".esc_html__("Logout","mycity")."</a>";
  39. } else {
  40. $mycity_link2login = "<a href='".home_url()."/register'>".esc_html__("Login","mycity")."</a>";
  41. }
  42. $mycity_right_top = str_replace("[login]", $mycity_link2login, $mycity_right_top);
  43. $allowed_html = array(
  44. 'a' => array('href' => array(), 'title' => array()),
  45. 'b' => array(),
  46. 'br' => array(),
  47. 'strong' => array());
  48.  
  49. echo wp_kses($mycity_right_top, $allowed_html);
  50. ?>
  51. </p>
  52. <?php
  53. if (get_current_user_id()>0){ ?>
  54.  
  55.  
  56. <?php
  57. }
  58. ?>
  59. <div class="social_icons pull-right">
  60. <?php if (strlen(get_theme_mod('sotial_networks_control_VK')) > 8): ?>
  61. <a href="<?php echo esc_url(get_theme_mod('sotial_networks_control_VK')); ?>">
  62. <i class="fa fa-vk"></i>
  63. </a>
  64. <?php endif; ?>
  65. <?php if (strlen(get_theme_mod('sotial_networks_control_facebook')) > 8): ?>
  66. <a href="<?php echo esc_url(get_theme_mod('sotial_networks_control_facebook')); ?>"
  67. class="soc_fb">
  68. <i class="fa fa-facebook"></i>
  69. </a>
  70. <?php endif; ?>
  71. <?php if (strlen(get_theme_mod('sotial_networks_control_instagram')) > 8): ?>
  72. <a href="<?php echo esc_url(get_theme_mod('sotial_networks_control_instagram')); ?>">
  73. <i class="fa fa-instagram"></i>
  74. </a>
  75. <?php endif; ?>
  76. <?php if (strlen(get_theme_mod('sotial_networks_control_twitter')) > 8): ?>
  77. <a href="<?php echo esc_url(get_theme_mod('sotial_networks_control_twitter')); ?>">
  78. <i class="fa fa-twitter"></i>
  79. </a>
  80. <?php endif; ?>
  81. <?php if (strlen(get_theme_mod('sotial_networks_control_google')) > 8): ?>
  82. <a href="<?php echo esc_url(get_theme_mod('sotial_networks_control_google')); ?>">
  83. <i class="fa fa-google-plus"></i>
  84. </a>
  85. <?php endif; ?>
  86. </div>
  87.  
  88. </div>
  89. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement