/library/admin/redux-framework/core/dashboard.php

  1. <?php 
  2.  
  3. if ( ! defined( 'ABSPATH' ) ) { 
  4. exit; 
  5.  
  6. if (!class_exists('reduxDashboardWidget')) { 
  7. class reduxDashboardWidget { 
  8.  
  9. public function __construct ($parent) { 
  10. $fname = Redux_Functions::dat( 'add_redux_dashboard', $parent->args['opt_name'] ); 
  11.  
  12. add_action('wp_dashboard_setup', array($this, $fname)); 
  13.  
  14. public function add_redux_dashboard() { 
  15. add_meta_box('redux_dashboard_widget', 'Redux Framework News', array($this, 'redux_dashboard_widget'), 'dashboard', 'side', 'high'); 
  16.  
  17. public function dat() { 
  18. return; 
  19.  
  20. public function redux_dashboard_widget() { 
  21. echo '<div class="rss-widget">'; 
  22. wp_widget_rss_output(array( 
  23. 'url' => 'http://reduxframework.com/feed/',  
  24. 'title' => 'REDUX_NEWS',  
  25. 'items' => 3,  
  26. 'show_summary' => 1,  
  27. 'show_author' => 0,  
  28. 'show_date' => 1 
  29. )); 
  30. echo '</div>'; 
.