forked from argoproject/Argo
-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace jira with support links, remove som @Link-Ed jira tickets, 5-…
…space to tab in inc/dashboard
- Loading branch information
Showing
5 changed files
with
68 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,90 +8,90 @@ | |
|
||
// cleanup the wordpress dashboard and add a few of our own widgets | ||
function largo_dashboard_widgets_member() { | ||
global $wp_meta_boxes; | ||
global $wp_meta_boxes; | ||
|
||
unset( | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] | ||
); | ||
unset( | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] | ||
); | ||
|
||
wp_add_dashboard_widget( 'dashboard_quick_links', __( 'Project Largo Help', 'largo' ), 'largo_dashboard_quick_links' ); | ||
wp_add_dashboard_widget( 'dashboard_quick_links', __( 'Project Largo Help', 'largo' ), 'largo_dashboard_quick_links' ); | ||
|
||
wp_add_dashboard_widget( 'dashboard_member_news', __( 'Recent Stories from INN Members', 'largo' ), 'largo_dashboard_member_news' ); | ||
$my_widget = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_member_news']; | ||
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_member_news']); | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_member_news'] = $my_widget; | ||
wp_add_dashboard_widget( 'dashboard_member_news', __( 'Recent Stories from INN Members', 'largo' ), 'largo_dashboard_member_news' ); | ||
$my_widget = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_member_news']; | ||
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_member_news']); | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_member_news'] = $my_widget; | ||
|
||
wp_add_dashboard_widget( 'dashboard_network_news', __( 'INN Network News', 'largo' ), 'largo_dashboard_network_news' ); | ||
$my_widget = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']; | ||
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']); | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_network_news'] = $my_widget; | ||
wp_add_dashboard_widget( 'dashboard_network_news', __( 'INN Network News', 'largo' ), 'largo_dashboard_network_news' ); | ||
$my_widget = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']; | ||
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']); | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_network_news'] = $my_widget; | ||
} | ||
|
||
// we'll still clean things up a bit for non INN members | ||
function largo_dashboard_widgets_nonmember() { | ||
global $wp_meta_boxes; | ||
global $wp_meta_boxes; | ||
|
||
unset( | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] | ||
); | ||
unset( | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary'], | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_primary'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links'], | ||
$wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments'] | ||
); | ||
|
||
wp_add_dashboard_widget( 'dashboard_quick_links', __( 'Project Largo Help', 'largo' ), 'largo_dashboard_quick_links' ); | ||
wp_add_dashboard_widget( 'dashboard_quick_links', __( 'Project Largo Help', 'largo' ), 'largo_dashboard_quick_links' ); | ||
|
||
wp_add_dashboard_widget( 'dashboard_network_news', __( 'INN Network News', 'largo' ), 'largo_dashboard_network_news' ); | ||
$my_widget = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']; | ||
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']); | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_network_news'] = $my_widget; | ||
wp_add_dashboard_widget( 'dashboard_network_news', __( 'INN Network News', 'largo' ), 'largo_dashboard_network_news' ); | ||
$my_widget = $wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']; | ||
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_network_news']); | ||
$wp_meta_boxes['dashboard']['side']['core']['dashboard_network_news'] = $my_widget; | ||
} | ||
|
||
// custom dashboard widgets for INN members | ||
function largo_dashboard_network_news() { | ||
echo '<div class="rss-widget">'; | ||
wp_widget_rss_output(array( | ||
'url' => 'http://feeds.feedburner.com/INNArticles', | ||
'title' => __( 'INN Network News', 'largo' ), | ||
'items' => 1, | ||
'show_summary' => 1, | ||
'show_author' => 0, | ||
'show_date' => 1 | ||
)); | ||
echo "</div>"; | ||
echo '<div class="rss-widget">'; | ||
wp_widget_rss_output(array( | ||
'url' => 'http://feeds.feedburner.com/INNArticles', | ||
'title' => __( 'INN Network News', 'largo' ), | ||
'items' => 1, | ||
'show_summary' => 1, | ||
'show_author' => 0, | ||
'show_date' => 1 | ||
)); | ||
echo "</div>"; | ||
} | ||
function largo_dashboard_member_news() { | ||
echo '<div class="rss-widget">'; | ||
wp_widget_rss_output(array( | ||
'url' => 'http://feeds.feedburner.com/INNMemberInvestigations', | ||
'title' => __( 'Recent Stories from INN Members', 'largo' ), | ||
'items' => 3, | ||
'show_summary' => 1, | ||
'show_author' => 1, | ||
'show_date' => 1 | ||
)); | ||
echo "</div>"; | ||
echo '<div class="rss-widget">'; | ||
wp_widget_rss_output(array( | ||
'url' => 'http://feeds.feedburner.com/INNMemberInvestigations', | ||
'title' => __( 'Recent Stories from INN Members', 'largo' ), | ||
'items' => 3, | ||
'show_summary' => 1, | ||
'show_author' => 1, | ||
'show_date' => 1 | ||
)); | ||
echo "</div>"; | ||
} | ||
function largo_dashboard_quick_links() { | ||
echo ' | ||
<div class="list-widget"> | ||
<p>If you\'re having trouble with your site, want to request a new feature or are just interested in learning more about Project Largo, here are a few helpful links:</p> | ||
<ul> | ||
<li><a href="http://largoproject.org/">Largo Project Website</a></li> | ||
<li><a href="http://largo.readthedocs.io/">Largo Documentation</a></li> | ||
<li><a href="http://jira.inn.org/servicedesk/customer/portal/4">Help Desk</a></li> | ||
<li><a href="http://confluence.inn.org/display/LKB/Largo+Knowledge+Base">Knowledge Base</a></li> | ||
<li><a href="mailto:[email protected]">Contact Us</a></li> | ||
</ul> | ||
<p>Developers can also log issues on <a href="https://github.com/INN/Largo">our public github repository</a> and if you would like to be included in our Largo users\' group, <a href="http://inn.us1.list-manage1.com/subscribe?u=81670c9d1b5fbeba1c29f2865&id=913028b23c">sign up here</a>.</p> | ||
</div> | ||
'; | ||
echo ' | ||
<div class="list-widget"> | ||
<p>If you\'re having trouble with your site, want to request a new feature or are just interested in learning more about Project Largo, here are a few helpful links:</p> | ||
<ul> | ||
<li><a href="http://largoproject.org/">Largo Project Website</a></li> | ||
<li><a href="http://largo.readthedocs.io/">Largo Documentation</a></li> | ||
<li><a href="http://support.largoproject.org">Help Desk</a></li> | ||
<li><a href="http://confluence.inn.org/display/LKB/Largo+Knowledge+Base">Knowledge Base</a></li> | ||
<li><a href="mailto:[email protected]">Contact Us</a></li> | ||
</ul> | ||
<p>Developers can also log issues on <a href="https://github.com/INN/Largo">our public github repository</a> and if you would like to be included in our Largo users\' group, <a href="http://inn.us1.list-manage1.com/subscribe?u=81670c9d1b5fbeba1c29f2865&id=913028b23c">sign up here</a>.</p> | ||
</div> | ||
'; | ||
} | ||
|
||
// add the largo logo to the login page | ||
|
@@ -246,12 +246,12 @@ function largo_dash_admin_menu( $wp_admin_bar ) { | |
|
||
// add a credit line to the admin footer | ||
function largo_admin_footer_text( $default_text ) { | ||
return '<span id="footer-thankyou">This website powered by <a href="http://largoproject.org">Project Largo</a> from <a href="http://inn.org">INN</a> and <a href="http://wordpress.org">WordPress</a>.</span>'; | ||
return '<span id="footer-thankyou">This website powered by <a href="http://largoproject.org">Project Largo</a> from <a href="http://inn.org">INN</a> and <a href="http://wordpress.org">WordPress</a>.</span>'; | ||
} | ||
add_filter( 'admin_footer_text', 'largo_admin_footer_text' ); | ||
|
||
// remove the links menu item | ||
function largo_admin_menu() { | ||
remove_menu_page('link-manager.php'); | ||
remove_menu_page('link-manager.php'); | ||
} | ||
add_action( 'admin_menu', 'largo_admin_menu' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ The project extends work done by [NPR's Project Argo](http://argoproject.org/). | |
|
||
**Documentation** and more information at: [largoproject.org](http://largoproject.org) | ||
|
||
**Support** is available [via our helpdesk system](http://jira.inn.org/servicedesk/customer/portal/4) or by emailing [[email protected]](mailto:[email protected]). | ||
**Support** is available [via our helpdesk system](http://support.largoproject.org/) or by emailing [[email protected]](mailto:[email protected]). | ||
|
||
**Current version:** v0.5.4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters