Add the admin overview the dashboard style


  1. if ( !function_exists( 'nggallery_admin_overview' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/overview.php'; 
  5. // NOTICE! Understand what this does before running. 
  6. $result = nggallery_admin_overview(); 

Defined (1)

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

  1. function nggallery_admin_overview() 
  2. $NGG_Admin_Overview = new C_NGG_Admin_Overview(); 
  4. global $wpdb; 
  5. $images = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures")); 
  6. $galleries = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggallery")); 
  7. $albums = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggalbum")); 
  9. ?> 
  11. <div class="wrap about-wrap"> 
  12. <h1><?php _e( 'Welcome to NextGEN Gallery', 'nggallery' ); ?></h1> 
  14. <div class="about-text"><?php printf( __( "Congrats! You're now running the most popular WordPress gallery plugin of all time. So far you've added %s images, %s galleries, and %s albums." ), $images, $galleries, $albums); ?></div> 
  15. <div class="wp-badge"></div> 
  17. <h2 class="nav-tab-wrapper wp-clearfix" id="ngg-tabs-wrapper"> 
  18. <a href="#top#welcome" class="nav-tab nav-tab-active" id="welcome-link"><?php _e( 'Welcome', 'nggallery' ); ?></a> 
  19. <a href="#top#videos" class="nav-tab" id="videos-link"><?php _e( 'More Videos' ); ?></a> 
  20. <a href="#top#pro" class="nav-tab" id="pro-link"><?php _e( 'NextGEN Pro' ); ?></a> 
  21. <a href="#top#genesis" class="nav-tab" id="genesis-link"><?php _e( 'Genesis Themes' ); ?></a> 
  22. <?php if (!is_multisite() || is_super_admin()) { ?> 
  23. <a href="#top#details" class="nav-tab" id="details-link"><?php _e( 'Site Details' ); ?></a> 
  24. <?php } ?> 
  25. <a href="#top#freedoms" class="nav-tab" id="freedoms-link"><?php _e( 'Freedoms' ); ?></a> 
  26. </h2> 
  28. <div id="welcome" class="ngg-tab"> 
  30. <div class="headline-feature feature-video"> 
  31. <iframe width="1050" height="590" src="" frameborder="0" allowfullscreen></iframe> 
  32. </div> 
  34. <hr> 
  36. <div class="feature-section three-col"> 
  37. <h2><?php _e( 'Meet the Imagely Product Ambassadors', 'nggallery' ); ?></h2> 
  38. <p class="about-text centered"><?php _e( "NextGEN Gallery and other Imagely products are used by some of the best photographers in the world. Meet some of the Imagely Ambassadors who are putting Imagely and NextGEN Gallery to work professionally.", 'nggallery' ); ?> 
  39. </p> 
  40. <div class="col"> 
  41. <a href="" target="_blank"><img src="" alt="The Youngrens"/></a> 
  42. <h3><?php _e( 'The Youngrens' ); ?></h3> 
  43. <p><?php _e( 'Jeff and Erin are a luxury husband and wife photography team who deeply love each other and their photography clients. They shoot weddings and engagements all over the U.S. and beyond. With three photography businesses that serve different clientele, they have unique insights into business strategies and are passionate about improving the day to day lives of other photographers.', 'nggallery' ); ?></p> 
  44. </div> 
  45. <div class="col"> 
  46. <a href="" target="_blank"><img src="" alt="Tamara Lackey" /></a> 
  47. <h3><?php _e( 'Tamara Lackey' ); ?></h3> 
  48. <p><?php _e( 'Tamara Lackey is a renowned professional photographer, speaker, and author. Her authentic lifestyle photography, from children*s portraits to celebrity portraits, is praised within her industry and published internationally. She is a Nikon USA Ambassador, the host of The reDefine Show web series, and the co-founder of the non-profit charitable organization, Beautiful Together, in support of children waiting for families.', 'nggallery' ); ?></p> 
  49. </div> 
  50. <div class="col"> 
  51. <a href="" target="_blank"><img src="" alt="Colby Brown" /></a> 
  52. <h3><?php _e( 'Colby Brown' ); ?></h3> 
  53. <p><?php _e( 'Colby is a photographer, photo educator, and author specializing in landscape, travel and humanitarian photography. With an audience reaching millions, Colby partners on social influencer marketing campaigns with some of the biggest companies and destinations in the world, including Sony, Samsung, Toshiba, Iceland Naturally, Jordan Tourism Board,, Visit California and more.', 'nggallery' ); ?></p> 
  54. </div> 
  55. </div> 
  57. <div class="feature-section three-col"> 
  58. <div class="col"> 
  59. <a href="" target="_blank"><img src="" alt="Jared Platt" /></a> 
  60. <h3><?php _e( 'Jared Platt' ); ?></h3> 
  61. <p><?php _e( 'Jared is a professional wedding and lifestyle photographer. He also travels the world giving lectures and workshops on photography, lighting, and post-production efficiency and workflow. His interactive style, and attention to detail and craft make him an entertaining and demanding photography instructor.', 'nggallery' ); ?></p> 
  62. </div> 
  63. <div class="col"> 
  64. <a href="" target="_blank"><img src="" alt="" /></a> 
  65. <h3><?php _e( 'Brian Matiash' ); ?></h3> 
  66. <p><?php _e( 'Brian is a professional photographer, author, and educator. He fuses landscape & travel photography with experiential storytelling and practical instructing to help others grow creatively. He is also a Sony Artisan of Imagery, a Zeiss Lens Ambassador, a Formatt-Hitech Featured Photographer, and a member of G-Technology*s G-Team.', 'nggallery' ); ?></p> 
  67. </div> 
  68. <div class="col"> 
  69. <a href="" target="_blank"><img src="" alt="" /></a> 
  70. <h3><?php _e( 'Christine Tremoulet' ); ?></h3> 
  71. <p><?php _e( 'Christine famously coined the term WordPress. She is an author, speaker, business coach, and story strategist who specializes in helping creatives celebrate their story online through blogging and social media. When not offering actionable know-how to businesses, she can be found taking long road trips across North America in her Mini Cooper.', 'nggallery' ); ?></p> 
  72. </div> 
  73. </div> 
  75. <div class="feature-section three-col"> 
  76. <div class="col"> 
  77. <a href="" target="_blank"><img src="" alt="David Beckstead" /></a> 
  78. <h3><?php _e( 'David Beckstead' ); ?></h3> 
  79. <p><?php _e( 'Named one of the Top 10 Wedding Photographers in the World by American Photo magazine, David is a celebrated photographer and educator. He is also a mountain man with a enviable lifestyle: from his base in rural Washington, he travels all over the world teaching workshops, while sharing lessons with 16, 000 photographers in the Abstract Canvas Facebook group.', 'nggallery' ); ?></p> 
  80. </div> 
  81. </div> 
  84. </div> 
  86. <div id="videos" class="ngg-tab"> 
  88. <p class="about-text centered"><?php printf( __( 'We have a growing list of video tutorials to get you started. Watch some below or head over to <a href="%s" target="_blank">NextGEN Gallery University on YouTube</a> to see all available vidoes.', 'nggallery' ), esc_url( '' ) ); ?> 
  89. </p> 
  91. <div class="headline-feature feature-video"> 
  92. <iframe width="1280" height="720" src="" frameborder="0" allowfullscreen></iframe> 
  93. </div> 
  95. <hr> 
  97. <div class="feature-section two-col"> 
  98. <h2><?php _e( 'More Video Tutorials' ); ?></h2> 
  99. <div class="col"> 
  100. <div class="headline-feature feature-video"> 
  101. <iframe width="1280" height="720" src="" frameborder="0" allowfullscreen></iframe> 
  102. </div> 
  103. </div> 
  104. <div class="col"> 
  105. <div class="headline-feature feature-video"> 
  106. <iframe width="1280" height="720" src="" frameborder="0" allowfullscreen></iframe> 
  107. </div> 
  108. </div> 
  109. </div> 
  111. <div class="feature-section two-col"> 
  112. <div class="col"> 
  113. <div class="headline-feature feature-video"> 
  114. <iframe width="1280" height="720" src="" frameborder="0" allowfullscreen></iframe> 
  115. </div> 
  116. </div> 
  117. <div class="col"> 
  118. <div class="headline-feature feature-video"> 
  119. <iframe width="1280" height="720" src="" frameborder="0" allowfullscreen></iframe> 
  120. </div> 
  121. </div> 
  122. </div> 
  124. <p class="about-text centered"><?php printf( __( 'Want more? Head over to <a href="%s" target="_blank">NextGEN Gallery University on YouTube</a>.', 'nggallery' ), esc_url( '' ) ); ?> 
  125. </p> 
  127. </div> 
  129. <div id="pro" class="ngg-tab"> 
  131. <h2><?php _e( 'Upgrade to NextGEN Pro!' ); ?></h2> 
  132. <p class="about-text centered"><?php _e( 'Gorgeous new gallery displays, image protection, full screen lightbox, commenting and social sharing for individual images, proofing, ecommerce, digital downloads, and more. Take your galleries to the next level with the Plus and Pro extensions for NextGEN Gallery. ', 'nggallery' ); ?></p> 
  133. <h3 class="about-text centered"><?php _e( 'CLICK TO LEARN MORE:', 'nggallery' ); ?></h3> 
  134. <div class="feature-section two-col"> 
  135. <div class="col"> 
  136. <a href="" target="_blank"><img src=""></a> 
  137. </div> 
  138. <div class="col"> 
  139. <a href="" target="_blank"><img src=""></a> 
  140. </div> 
  141. </div> 
  143. </div> 
  145. <div id="genesis" class="ngg-tab"> 
  147. <h2><?php _e( 'Genesis Child Themes for Photographers' ); ?></h2> 
  148. <p class="about-text centered"><?php _e( 'Meet the new series of Genesis child themes by Imagely: gorgeous, responsive image-centric themes for photographers or anyone with visually rich websites.', 'nggallery' ); ?></p> 
  149. <h3 class="about-text centered"><?php _e( 'CLICK TO LEARN MORE:', 'nggallery' ); ?></h3> 
  150. <div class="feature-section two-col"> 
  151. <div class="col"> 
  152. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  153. </div> 
  154. <div class="col"> 
  155. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  156. </div> 
  157. </div> 
  158. <div class="feature-section two-col"> 
  159. <div class="col"> 
  160. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  161. </div> 
  162. <div class="col"> 
  163. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  164. </div> 
  165. </div> 
  166. <div class="feature-section two-col"> 
  167. <div class="col"> 
  168. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  169. </div> 
  170. <div class="col"> 
  171. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  172. </div> 
  173. </div> 
  174. <div class="feature-section two-col"> 
  175. <div class="col"> 
  176. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  177. </div> 
  178. <div class="col"> 
  179. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  180. </div> 
  181. </div> 
  182. <div class="feature-section two-col"> 
  183. <div class="col"> 
  184. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  185. </div> 
  186. <div class="col"> 
  187. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  188. </div> 
  189. </div> 
  190. <div class="feature-section two-col"> 
  191. <div class="col"> 
  192. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  193. </div> 
  194. <div class="col"> 
  195. <a href="" target="_blank"><img src="" class="ngg-theme-image"></a> 
  196. </div> 
  197. </div> 
  199. </div> 
  201. <?php if (!is_multisite() || is_super_admin()) { ?> 
  202. <div id="details" class="ngg-tab"> 
  203. <h2><?php _e( 'Site Details' ); ?></h2> 
  204. <p class="about-text centered"><?php _e( 'When contacting support, consider copying and pasting this information in your support request. It helps us troubleshoot more quickly.', 'nggallery' ); ?> 
  205. </p> 
  206. <div class="two-col"> 
  207. <div class="col"> 
  208. <?php if (is_multisite()) $NGG_Admin_Overview->dashboard_quota(); ?> 
  209. </div> 
  210. <div class="col"> 
  211. <p><strong><?php print __('Server Settings', 'nggallery'); ?></strong></p> 
  212. <ul> 
  213. <?php $NGG_Admin_Overview->server_info(); ?> 
  214. </ul> 
  215. </div> 
  216. </div> 
  217. <div class="two-col"> 
  218. <div class="col"> 
  219. <p><strong><?php print __('Graphic Library', 'nggallery'); ?></strong></p> 
  220. <ul> 
  221. <?php $NGG_Admin_Overview->gd_info(); ?> 
  222. </ul> 
  223. </div> 
  224. </div> 
  225. </div> 
  226. <?php } ?> 
  228. <div id="freedoms" class="ngg-tab"> 
  230. <p class="about-description"><?php printf( __( 'NextGEN Gallery is Free and open source software, built by a small but dedicated team as well as community code contributions. It comes with awesome rights courtesy of its <a href="%s" target="_blank">license</a>, the GPL.' ), '' ); ?></p> 
  232. <ol start="0"> 
  233. <li><p><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></p></li> 
  234. <li><p><?php _e( 'You have access to the source code, the freedom to study how the program works, and the freedom to change it to make it do what you wish.' ); ?></p></li> 
  235. <li><p><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></p></li> 
  236. <li><p><?php _e( 'You have the freedom to distribute copies of your modified versions to others. By doing this you can give the whole community a chance to benefit from your changes.' ); ?></p></li> 
  237. </ol> 
  239. <p><?php _e( 'NextGEN Gallery grows because people like you tell your friends and website visitors about it. We thank you for doing so.' ); ?></p> 
  241. </div> 
  243. </div> 
  245. <?php