nggallery_admin_overview

Nggallery_admin_overview().

Description

nggallery_admin_overview(); 

Add the admin overview the dashboard style


Usage

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

Defined (1)

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

/products/photocrati_nextgen/modules/ngglegacy/admin/overview.php  
  1. function nggallery_admin_overview() 
  2. $NGG_Admin_Overview = new C_NGG_Admin_Overview(); 
  3.  
  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")); 
  8.  
  9. ?> 
  10.  
  11. <div class="wrap about-wrap"> 
  12. <h1><?php _e( 'Welcome to NextGEN Gallery', 'nggallery' ); ?></h1> 
  13.  
  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="about-text" id="ngg-gallery-wizard"><?php echo __("Need help setting up a gallery? Launch the ", 'nggallery') . ' <a data-ngg-wizard="nextgen.beginner.gallery_creation_igw" class="ngg-wizard-invoker" href="' . esc_url(add_query_arg('ngg_wizard', 'nextgen.beginner.gallery_creation_igw')) . '">' . __('Gallery Wizard.', 'nggallery') . '</a>'; ?></div> 
  16. <div class="wp-badge"></div> 
  17.  
  18. <h2 class="nav-tab-wrapper wp-clearfix" id="ngg-tabs-wrapper"> 
  19. <a href="#top#welcome" class="nav-tab nav-tab-active" id="welcome-link"><?php _e( 'Welcome', 'nggallery' ); ?></a> 
  20. <a href="#top#videos" class="nav-tab" id="videos-link"><?php _e( 'More Videos' ); ?></a> 
  21. <a href="#top#pro" class="nav-tab" id="pro-link"><?php _e( 'NextGEN Pro' ); ?></a> 
  22. <a href="#top#genesis" class="nav-tab" id="genesis-link"><?php _e( 'Genesis Themes' ); ?></a> 
  23. <?php if (!is_multisite() || is_super_admin()) { ?> 
  24. <a href="#top#details" class="nav-tab" id="details-link"><?php _e( 'Site Details' ); ?></a> 
  25. <?php } ?> 
  26. <a href="#top#freedoms" class="nav-tab" id="freedoms-link"><?php _e( 'Freedoms' ); ?></a> 
  27. </h2> 
  28.  
  29. <div id="welcome" class="ngg-tab"> 
  30.  
  31. <div class="headline-feature feature-video"> 
  32. <iframe width="1050" height="590" src="https://www.youtube.com/embed/qwNr5ZNGavo?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM" frameborder="0" allowfullscreen></iframe> 
  33. </div> 
  34.  
  35. <hr> 
  36.  
  37. <div class="feature-section three-col"> 
  38. <h2><?php _e( 'Meet the Imagely Product Ambassadors', 'nggallery' ); ?></h2> 
  39. <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' ); ?> 
  40. </p> 
  41. <div class="col"> 
  42. <a href="https://www.imagely.com/team-member/the-youngrens/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/theyoungrens-ngg.jpg" alt="The Youngrens"/></a> 
  43. <h3><?php _e( 'The Youngrens' ); ?></h3> 
  44. <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> 
  45. </div> 
  46. <div class="col"> 
  47. <a href="https://www.imagely.com/team-member/tamara-lackey/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/TamaraLackey-ngg.jpg" alt="Tamara Lackey" /></a> 
  48. <h3><?php _e( 'Tamara Lackey' ); ?></h3> 
  49. <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> 
  50. </div> 
  51. <div class="col"> 
  52. <a href="https://www.imagely.com/team-member/colby-brown/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/colby-brown-ngg.jpg" alt="Colby Brown" /></a> 
  53. <h3><?php _e( 'Colby Brown' ); ?></h3> 
  54. <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, Australia.com, Visit California and more.', 'nggallery' ); ?></p> 
  55. </div> 
  56. </div> 
  57.  
  58. <div class="feature-section three-col"> 
  59. <div class="col"> 
  60. <a href="https://www.imagely.com/team-member/jared-platt/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/jared-platt-ngg.jpg" alt="Jared Platt" /></a> 
  61. <h3><?php _e( 'Jared Platt' ); ?></h3> 
  62. <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> 
  63. </div> 
  64. <div class="col"> 
  65. <a href="https://www.imagely.com/team-member/brian-matiash/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/brian-matiash-ngg.jpeg" alt="" /></a> 
  66. <h3><?php _e( 'Brian Matiash' ); ?></h3> 
  67. <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> 
  68. </div> 
  69. <div class="col"> 
  70. <a href="https://www.imagely.com/team-member/christine-tremoulet/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/Christine-Tremoulet-ngg.jpg" alt="" /></a> 
  71. <h3><?php _e( 'Christine Tremoulet' ); ?></h3> 
  72. <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> 
  73. </div> 
  74. </div> 
  75.  
  76. <div class="feature-section three-col"> 
  77. <div class="col"> 
  78. <a href="https://www.imagely.com/team-member/david-beckstead/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/david-beckstead-ngg.jpg" alt="David Beckstead" /></a> 
  79. <h3><?php _e( 'David Beckstead' ); ?></h3> 
  80. <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> 
  81. </div> 
  82. </div> 
  83.  
  84.  
  85. </div> 
  86.  
  87. <div id="videos" class="ngg-tab"> 
  88.  
  89. <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( 'https://www.youtube.com/playlist?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM' ) ); ?> 
  90. </p> 
  91.  
  92. <div class="headline-feature feature-video"> 
  93. <iframe width="1280" height="720" src="https://www.youtube.com/embed/c664fvAZ1nI?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM" frameborder="0" allowfullscreen></iframe> 
  94. </div> 
  95.  
  96. <hr> 
  97.  
  98. <div class="feature-section two-col"> 
  99. <h2><?php _e( 'More Video Tutorials' ); ?></h2> 
  100. <div class="col"> 
  101. <div class="headline-feature feature-video"> 
  102. <iframe width="1280" height="720" src="https://www.youtube.com/embed/h_HrKpkI90w?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM" frameborder="0" allowfullscreen></iframe> 
  103. </div> 
  104. </div> 
  105. <div class="col"> 
  106. <div class="headline-feature feature-video"> 
  107. <iframe width="1280" height="720" src="https://www.youtube.com/embed/58u9AjMJqJM?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM" frameborder="0" allowfullscreen></iframe> 
  108. </div> 
  109. </div> 
  110. </div> 
  111.  
  112. <div class="feature-section two-col"> 
  113. <div class="col"> 
  114. <div class="headline-feature feature-video"> 
  115. <iframe width="1280" height="720" src="https://www.youtube.com/embed/OfxWM59fb_Y?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM" frameborder="0" allowfullscreen></iframe> 
  116. </div> 
  117. </div> 
  118. <div class="col"> 
  119. <div class="headline-feature feature-video"> 
  120. <iframe width="1280" height="720" src="https://www.youtube.com/embed/BiFjDYIaZZw?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM" frameborder="0" allowfullscreen></iframe> 
  121. </div> 
  122. </div> 
  123. </div> 
  124.  
  125. <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( 'https://www.youtube.com/playlist?list=PL9cmsdHslD0vIcJjBggJ-XMjtwvqrRgoM' ) ); ?> 
  126. </p> 
  127.  
  128. </div> 
  129.  
  130. <div id="pro" class="ngg-tab"> 
  131.  
  132. <h2><?php _e( 'Upgrade to NextGEN Pro!' ); ?></h2> 
  133. <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> 
  134. <h3 class="about-text centered"><?php _e( 'CLICK TO LEARN MORE:', 'nggallery' ); ?></h3> 
  135. <div class="feature-section two-col"> 
  136. <div class="col"> 
  137. <a href="https://www.imagely.com/wordpress-gallery-plugin/nextgen-plus/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/nextgen-plus-ngg.jpg"></a> 
  138. </div> 
  139. <div class="col"> 
  140. <a href="https://www.imagely.com/wordpress-gallery-plugin/nextgen-pro/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/nextgen-pro-ngg.jpg"></a> 
  141. </div> 
  142. </div> 
  143.  
  144. </div> 
  145.  
  146. <div id="genesis" class="ngg-tab"> 
  147.  
  148. <h2><?php _e( 'Genesis Child Themes for Photographers' ); ?></h2> 
  149. <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> 
  150. <h3 class="about-text centered"><?php _e( 'CLICK TO LEARN MORE:', 'nggallery' ); ?></h3> 
  151. <div class="feature-section two-col"> 
  152. <div class="col"> 
  153. <a href="https://www.imagely.com/wordpress-photography-themes/ansel/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/ansel-ngg.jpg" class="ngg-theme-image"></a> 
  154. </div> 
  155. <div class="col"> 
  156. <a href="https://www.imagely.com/wordpress-photography-themes/fearless/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/fearless-ngg.jpg" class="ngg-theme-image"></a> 
  157. </div> 
  158. </div> 
  159. <div class="feature-section two-col"> 
  160. <div class="col"> 
  161. <a href="https://www.imagely.com/wordpress-photography-themes/blush/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/blush-ngg.jpg" class="ngg-theme-image"></a> 
  162. </div> 
  163. <div class="col"> 
  164. <a href="https://www.imagely.com/wordpress-photography-themes/free-spirit/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/free-spirit-ngg.jpg" class="ngg-theme-image"></a> 
  165. </div> 
  166. </div> 
  167. <div class="feature-section two-col"> 
  168. <div class="col"> 
  169. <a href="https://www.imagely.com/wordpress-photography-themes/reportage/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/reportage-ngg.jpg" class="ngg-theme-image"></a> 
  170. </div> 
  171. <div class="col"> 
  172. <a href="https://www.imagely.com/wordpress-photography-themes/lightly/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/lightly-ngg.jpg" class="ngg-theme-image"></a> 
  173. </div> 
  174. </div> 
  175. <div class="feature-section two-col"> 
  176. <div class="col"> 
  177. <a href="https://www.imagely.com/wordpress-photography-themes/rebel/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/rebel-ngg.jpg" class="ngg-theme-image"></a> 
  178. </div> 
  179. <div class="col"> 
  180. <a href="https://www.imagely.com/wordpress-photography-themes/summerly/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/summerly-ngg.jpg" class="ngg-theme-image"></a> 
  181. </div> 
  182. </div> 
  183. <div class="feature-section two-col"> 
  184. <div class="col"> 
  185. <a href="https://www.imagely.com/wordpress-photography-themes/expedition/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/expedition-ngg.jpg" class="ngg-theme-image"></a> 
  186. </div> 
  187. <div class="col"> 
  188. <a href="https://www.imagely.com/wordpress-photography-themes/punk-bride/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/punk-bride-ngg.jpg" class="ngg-theme-image"></a> 
  189. </div> 
  190. </div> 
  191. <div class="feature-section two-col"> 
  192. <div class="col"> 
  193. <a href="https://www.imagely.com/wordpress-photography-themes/journal/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/journal-ngg.jpg" class="ngg-theme-image"></a> 
  194. </div> 
  195. <div class="col"> 
  196. <a href="https://www.imagely.com/wordpress-photography-themes/simplicity/" target="_blank"><img src="https://f001.backblaze.com/file/nextgen-gallery/simplicity-ngg.jpg" class="ngg-theme-image"></a> 
  197. </div> 
  198. </div> 
  199.  
  200. </div> 
  201.  
  202. <?php if (!is_multisite() || is_super_admin()) { ?> 
  203. <div id="details" class="ngg-tab"> 
  204. <h2><?php _e( 'Site Details' ); ?></h2> 
  205. <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' ); ?> 
  206. </p> 
  207. <div class="two-col"> 
  208. <div class="col"> 
  209. <?php if (is_multisite()) $NGG_Admin_Overview->dashboard_quota(); ?> 
  210. </div> 
  211. <div class="col"> 
  212. <p><strong><?php print __('Server Settings', 'nggallery'); ?></strong></p> 
  213. <ul> 
  214. <?php $NGG_Admin_Overview->server_info(); ?> 
  215. </ul> 
  216. </div> 
  217. </div> 
  218. <div class="two-col"> 
  219. <div class="col"> 
  220. <p><strong><?php print __('Graphic Library', 'nggallery'); ?></strong></p> 
  221. <ul> 
  222. <?php $NGG_Admin_Overview->gd_info(); ?> 
  223. </ul> 
  224. </div> 
  225. </div> 
  226. </div> 
  227. <?php } ?> 
  228.  
  229. <div id="freedoms" class="ngg-tab"> 
  230.  
  231. <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.' ), 'https://wordpress.org/about/license/' ); ?></p> 
  232.  
  233. <ol start="0"> 
  234. <li><p><?php _e( 'You have the freedom to run the program, for any purpose.' ); ?></p></li> 
  235. <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> 
  236. <li><p><?php _e( 'You have the freedom to redistribute copies of the original program so you can help your neighbor.' ); ?></p></li> 
  237. <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> 
  238. </ol> 
  239.  
  240. <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.  
  242. </div> 
  243.  
  244. </div> 
  245.  
  246. <?php