PageRenderTime 55ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/184.168.182.1/wp-content/plugins/welcome-to-wordpress/resources/header.php

https://gitlab.com/endomorphosis/falkenstein
PHP | 164 lines | 145 code | 12 blank | 7 comment | 13 complexity | 6378cbd440aa315c5f7b53fe18343aab MD5 | raw file
  1. <?php
  2. /**
  3. * Copyright 2012 Go Daddy Operating Company, LLC. All Rights Reserved.
  4. */
  5. // Make sure it's wordpress
  6. if ( !defined( 'ABSPATH') )
  7. die( 'Forbidden' );
  8. $options = get_option( 'wtwp_options' );
  9. ?>
  10. <style type="text/css">
  11. /** Copyright notice **/
  12. #wtwp-copyright {
  13. margin: 60px auto 20px auto;
  14. text-align: center;
  15. }
  16. .wrap-h3 {
  17. background: gradient(center top , #F9F9F9, #F5F5F5);
  18. background: -moz-linear-gradient(center top , #F9F9F9, #F5F5F5);
  19. background: -ms-gradient(linear, left top, left bottom, from(#F9F9F9), to(#F5F5F5));
  20. background: -o-gradient(linear, left top, left bottom, from(#F9F9F9), to(#F5F5F5));
  21. background: -webkit-gradient(linear, left top, left bottom, from(#F9F9F9), to(#F5F5F5));
  22. background-color: #F5F5F5;
  23. border: 1px solid #DFDFDF;
  24. border-bottom-color: #DFDFDF;
  25. border-radius: 3px 3px 3px 3px;
  26. border-top-left-radius: 3px;
  27. border-top-right-radius: 3px;
  28. box-shadow: 0 1px 0 #FFFFFF;
  29. color: #464646;
  30. cursor: move;
  31. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F9F9F9', endColorstr='#F5F5F5');
  32. font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
  33. font-size: 18px;
  34. font-weight: normal;
  35. line-height: 1;
  36. margin: 8px 18px;
  37. padding: 7px 10px;
  38. text-shadow: 0 1px 0 #FFFFFF;
  39. }
  40. .wtwp-article > h3 {
  41. background-color: transparent;
  42. background-image: none;
  43. font-family: georgia;
  44. font-size: 1.4em;
  45. font-weight: normal;
  46. margin: 0px;
  47. padding: 10px 0 4px;
  48. }
  49. h3.display {
  50. background-color: transparent;
  51. background-image: none;
  52. color: #464646;
  53. font-family: georgia;
  54. font-size: 1.4em;
  55. font-weight: normal;
  56. margin: 0px;
  57. padding: 10px 0 4px;
  58. text-decoration: none;
  59. }
  60. h3.display a {
  61. color: #464646;
  62. text-decoration: none;
  63. }
  64. h3.display a:hover {
  65. color: #D54E21;
  66. text-decoration: none;
  67. }
  68. .postbox > strong {
  69. color: #464646 !important;
  70. cursor: pointer;
  71. display: block;
  72. font-family: georgia;
  73. font-size: 1.5em !important;
  74. font-weight: normal !important;
  75. }
  76. li, dd, .widget, .postbox, .stuffbox {
  77. line-height: 15px;
  78. }
  79. #icon-index {
  80. margin: 8px;
  81. }
  82. div.wrap > div > div.wtwp-article {
  83. margin: 8px 0px;
  84. }
  85. p + h3 {
  86. margin: 8px 0px;
  87. }
  88. .postbox {
  89. display: none;
  90. padding: 10px;
  91. }
  92. .widget .widget-top, .postbox h3, .stuffbox h3 {
  93. cursor: auto;
  94. }
  95. div.wtwp-article ul {
  96. list-style-type: disc;
  97. list-style-position: outside;
  98. margin-left: 24px;
  99. line-height: 15px;
  100. display: block;
  101. margin-bottom: 12px;
  102. margin-top: 12px;
  103. }
  104. div#hcc-div {
  105. margin: 50px auto 0 auto;
  106. width: 500px;
  107. text-align: center;
  108. }
  109. </style>
  110. <script type="text/javascript">
  111. function wtwp_show_help(article_id) {
  112. url = '<?php echo $options['help_url']; ?>/helpme/article/' + article_id + '?plabel=<?php echo $options['plid']; ?>&plabelfo=YVlO1BnP&locale=<?php echo substr( get_locale(), 0, 2 ); ?>';
  113. var script = document.createElement("script");
  114. script.type = "text/javascript";
  115. script.src = url;
  116. jQuery("body").append(script);
  117. }
  118. function define(o) {
  119. if (undefined === o.content || null === o.content || "" === o.content) {
  120. jQuery("div#article-" + o.id).parent().remove();
  121. } else {
  122. jQuery("div#article-" + o.id).html(o.content).parent().show();
  123. jQuery("div#article-" + o.id + " a").each(function(i, v) {
  124. if (undefined !== jQuery(v).attr("href") && jQuery(v).attr("href").indexOf("://") < 0) {
  125. jQuery(v).attr("href", '<?php echo $options['help_url']; ?>' + jQuery(v).attr("href") + ((jQuery(v).attr("href").indexOf('?') > -1) ? '&' : '?') + 'pl_id=<?php echo $options['plid']; ?>&isc=<?php echo $options['isc']; ?>');
  126. } else if (undefined !== jQuery(v).attr("href") && jQuery(v).attr("href").match(/[&?]prog_id=/)) {
  127. jQuery(v).attr("href", jQuery(v).attr("href") + ((jQuery(v).attr("href").indexOf('?') > -1) ? '&' : '?') + 'isc=<?php echo $options['isc']; ?>');
  128. }
  129. jQuery(v).attr("target", "_blank");
  130. });
  131. if ( jQuery("div.wtwp-article:first").attr("id") === jQuery("div#article-" + o.id).attr("id")) {
  132. jQuery("div#article-" + o.id).show();
  133. } else {
  134. jQuery("div#article-" + o.id).hide();
  135. }
  136. }
  137. }
  138. jQuery(document).on("click", "div.postbox", function(evt) {
  139. if (jQuery("div.wtwp-article", jQuery(this)).is(":hidden")) {
  140. jQuery("div.wtwp-article").slideUp();
  141. jQuery("div.wtwp-article", jQuery(this)).slideDown();
  142. }
  143. });
  144. jQuery(document).ready(function($) {
  145. $("div.wtwp-article").each(function(i, v) {
  146. wtwp_show_help($(v).attr("id").replace(/article-/, ""));
  147. });
  148. });
  149. </script>
  150. <div class="wrap">
  151. <div id="icon-index" class="icon32"><br/></div>
  152. <h2 class="page-title"><?php echo $label; ?></h2>