caldera_forms_activation_admin_notice

Output plugin page banner.

Description

caldera_forms_activation_admin_notice(); 

Usage

  1. if ( !function_exists( 'caldera_forms_activation_admin_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-forms/includes/plugin-page-banner.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = caldera_forms_activation_admin_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/plugin-page-banner.php  
  1. function caldera_forms_activation_admin_notice() { 
  2.  
  3. $user_id = get_current_user_id(); 
  4.  
  5. global $pagenow; 
  6.  
  7. if ( $pagenow == 'plugins.php' ) { 
  8.  
  9. if ( ! get_user_meta($user_id, 'caldera_forms_activation_ignore_notice')) { ?> 
  10. <style>div.updated.caldera_forms,  
  11. div.updated.caldera_forms header,  
  12. div.updated.caldera_forms header img,  
  13. div.updated.caldera_forms header h3,  
  14. div.updated.caldera_forms .dismiss,  
  15. .caldera_forms-banner-actions,  
  16. .caldera_forms-banner-action,  
  17. .caldera_forms-banner-action #mc_embed_signup,  
  18. div.updated.caldera_forms .caldera_forms-banner-action span.dashicons:before { 
  19. -webkit-box-sizing: border-box; 
  20. /* Safari/Chrome, other WebKit */ 
  21. -moz-box-sizing: border-box; 
  22. /* Firefox, other Gecko */ 
  23. box-sizing: border-box; 
  24. /* Opera/IE 8+ */ 
  25. width: 100%; 
  26. position: relative; 
  27. padding: 0; 
  28. margin: 0; 
  29. overflow: hidden; 
  30. float: none; 
  31. display: block; 
  32. text-align: left; 
  33. .caldera_forms-banner-action a,  
  34. .caldera_forms-banner-action a:hover,  
  35. div.updated.caldera_forms .caldera_forms-banner-action.mailchimp:hover,  
  36. div.updated.caldera_forms .caldera_forms-banner-action.mailchimp span { 
  37. -webkit-transition: all 500ms ease-in-out; 
  38. -moz-transition: all 500ms ease-in-out; 
  39. -ms-transition: all 500ms ease-in-out; 
  40. -o-transition: all 500ms ease-in-out; 
  41. transition: all 500ms ease-in-out; 
  42. div.updated.caldera_forms { 
  43. margin: 1rem 0 2rem 0; 
  44. div.updated.caldera_forms header h3 { 
  45. line-height: 1.4; 
  46. @media screen and (min-width: 280px) { 
  47. div.updated.caldera_forms { 
  48. border: 0px; 
  49. background: transparent; 
  50. -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 
  51. box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 
  52. div.updated.caldera_forms header { 
  53. background: #fff; 
  54. color: #93af51; 
  55. position: relative; 
  56. height: 5rem; 
  57. div.updated.caldera_forms header img { 
  58. display: none; 
  59. max-width: 130px; 
  60. margin: 0 0 0 1rem; 
  61. float: left; 
  62. div.updated.caldera_forms header h3 { 
  63. float: left; 
  64. max-width: 60%; 
  65. margin: 1rem; 
  66. display: inline-block; 
  67. color: #93af51; 
  68. div.updated.caldera_forms header h3 span { 
  69. color: #38383A; 
  70. font-weight: 900; 
  71. font-family: 'Open Sans Black', 'Open Sans Regular', Verdana, Helvetica, sans-serif; 
  72. div.updated.caldera_forms a.dismiss { 
  73. display: block; 
  74. position: absolute; 
  75. left: auto; 
  76. top: 0; 
  77. bottom: 0; 
  78. right: 0; 
  79. width: 6rem; 
  80. background: #a3bf61; 
  81. color: #fff; 
  82. text-align: center; 
  83. .caldera_forms a.dismiss:before { 
  84. font-family: 'Dashicons'; 
  85. content "\f153"; 
  86. display: inline-block; 
  87. position: absolute; 
  88. top: 50%; 
  89.  
  90. transform: translate(-50%); 
  91. right: 40%; 
  92. margin: auto; 
  93. line-height: 0; 
  94. div.updated.caldera_forms a.dismiss:hover { 
  95. color: #777; 
  96. background: #4b4b4b; 
  97.  
  98. /* END ACTIVATION HEADER 
  99. * START ACTIONS 
  100. */ 
  101. div.updated.caldera_forms .caldera_forms-banner-action { 
  102. display: table; 
  103. .caldera_forms-banner-action a,  
  104. .caldera_forms-banner-action #mc_embed_signup { 
  105. background: rgba(0, 0, 0, .1); 
  106. color: rgba(51, 51, 51, 1); 
  107. padding: 0 1rem 0 6rem; 
  108. height: 4rem; 
  109. display: table-cell; 
  110. vertical-align: middle; 
  111. .caldera_forms-banner-action.mailchimp { 
  112. margin-bottom: -1.5rem; 
  113. top: -.5rem; 
  114. .caldera_forms-banner-action.mailchimp p { 
  115. margin: 9px 0 0 0; 
  116.  
  117. .caldera_forms-banner-action #mc_embed_signup form { 
  118. display: inline-block; 
  119.  
  120. div.updated.caldera_forms .caldera_forms-banner-action:hover { 
  121. background-color: #cfcfcf; 
  122. color: #fff !important; 
  123.  
  124. div.updated.caldera_forms .caldera_forms-banner-action a:hover { 
  125. color: #fff; 
  126.  
  127.  
  128. div.updated.caldera_forms .caldera_forms-banner-action span { 
  129. display: block; 
  130. position: absolute; 
  131. left: 0; 
  132. top: 0; 
  133. bottom: 0; 
  134. height: 100%; 
  135. width: auto; 
  136. div.updated.caldera_forms .caldera_forms-banner-action span.dashicons:before { 
  137. padding: 2rem 1rem; 
  138. color: #ff7e30; 
  139. line-height: 0; 
  140. top: 50%; 
  141. transform: translateY(-50%); 
  142. background: rgba(163, 163, 163, .25); 
  143. div.updated.caldera_forms .caldera_forms-banner-action a:hover,  
  144. div.updated.caldera_forms .caldera_forms-banner-action.mailchimp:hover { 
  145. background: rgba(0, 0, 0, .2); 
  146. div.updated.caldera_forms .caldera_forms-banner-action a { 
  147. text-decoration: none; 
  148.  
  149. div.updated.caldera_forms .caldera_forms-banner-action a,  
  150. div.updated.caldera_forms .caldera_forms-banner-action #mc_embed_signup { 
  151. position: relative; 
  152. overflow: visible; 
  153. .caldera_forms-banner-action #mc_embed_signup form,  
  154. .caldera_forms-banner-action #mc_embed_signup form input#mce-EMAIL { 
  155. width: 100%; 
  156. div.updated.caldera_forms .mailchimp form input#mce-EMAIL + input.submit-button { 
  157. display: block; 
  158. position: relative; 
  159. top: -1.75rem; 
  160. float: right; 
  161. right: 4px; 
  162. border: 0; 
  163. background: #cccccc; 
  164. border-radius: 2px; 
  165. font-size: 10px; 
  166. color: white; 
  167. cursor: pointer; 
  168.  
  169. div.updated.caldera_forms .mailchimp form input#mce-EMAIL:focus + input.submit-button { 
  170. background: #93af51; 
  171.  
  172. .caldera_forms-banner-action #mc_embed_signup form input#mce-EMAIL div#placeholder,  
  173. input#mce-EMAIL:-webkit-input-placeholder {opacity: 0;} 
  174. @media screen and (min-width: 780px) { 
  175. div.updated.caldera_forms header h3 {line-height: 3;} 
  176.  
  177. div.updated.caldera_forms .mailchimp form input#mce-EMAIL + input.submit-button { 
  178. top: -1.55rem; 
  179. div.updated.caldera_forms header img { 
  180. display: inline-block; 
  181. div.updated.caldera_forms header h3 { 
  182. max-width: 50%; 
  183. .caldera_forms-banner-action { 
  184. width: 30%; 
  185. float: left; 
  186. div.updated.caldera_forms .caldera_forms-banner-action a { 
  187.  
  188. .caldera_forms-banner-action a,  
  189. .caldera_forms-banner-action #mc_embed_signup { 
  190. padding: 0 1rem 0 4rem; 
  191. div.updated.caldera_forms .caldera_forms-banner-action span.dashicons:before { 
  192.  
  193. div.updated.caldera_forms .caldera_forms-banner-action.mailchimp { 
  194. width: 40%; 
  195. }</style> 
  196.  
  197. <div class="updated caldera_forms"> 
  198. <header> 
  199. <img src="<?php echo CFCORE_URL; ?>/assets/images/new-icon.png" class="caldera_forms-logo" style="width:80px;hieght:80px;"/> 
  200.  
  201. <h3><?php esc_html_e( 'Thanks for installing Caldera Forms', 'caldera-forms'); ?></h3> 
  202.  
  203. <?php printf('<a href="%1$s" class="dismiss"></a>', '?caldera_forms_notice_ignore=0'); ?> 
  204. </header> 
  205. <div class="caldera_forms-banner-actions"> 
  206.  
  207. <div class="caldera_forms-banner-action"> 
  208. <a href="https://calderaforms.com/getting-started?utm_source=wordpress&utm_medium=plugin-page&utm_term=v<?php echo CFCORE_VER; ?>&utm_campaign=post-install-banner"> 
  209. <span class="dashicons dashicons-admin-settings"></span> 
  210. <?php esc_html_e('Get Started', 'caldera-forms'); ?> 
  211. </a> 
  212. </div> 
  213.  
  214. <div class="caldera_forms-banner-action"> 
  215. <a href="https://calderaforms.com/caldera-forms-add-ons?utm_source=wordpress&utm_medium=plugin-page&utm_term=v<?php echo CFCORE_VER; ?>&utm_campaign=post-install-banner" target="_blank"> 
  216. <span class="dashicons dashicons-download"></span> 
  217. <?php esc_html_e('Go Further', 'caldera-forms'); ?> 
  218. </a> 
  219. </div> 
  220.  
  221. <div class="caldera_forms-banner-action mailchimp"> 
  222. <div id="mc_embed_signup"> 
  223. <span class="dashicons dashicons-edit"></span> 
  224. <form action="//CalderaWP.us10.list-manage.com/subscribe/post?u=e8aeee202b02c1fe9eab2037c&id=f402a6993d" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> 
  225. <div class="mc-field-group"> 
  226. <p><small> 
  227. <?php esc_html_e('Get notified of plugin updates:', 'caldera-forms'); ?> 
  228. </small></p> 
  229. <input type="email" value="<?php echo esc_attr( get_option( 'admin_email' ) ); ?>" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required> 
  230. <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="submit-button" style="background-color:#ff7e30"> 
  231.  
  232. </div> 
  233. <div id="mce-responses" class="clear"> 
  234. <div class="response" id="mce-error-response" style="display:none"></div> 
  235. <div class="response" id="mce-success-response" style="display:none"></div> 
  236. </div> 
  237.  
  238. </form> 
  239. </div> 
  240. </div> 
  241. </div> 
  242. </div> 
  243. <?php