Skip to content

Commit

Permalink
replace jira with support links, remove som @Link-Ed jira tickets, 5-…
Browse files Browse the repository at this point in the history
…space to tab in inc/dashboard
  • Loading branch information
benlk committed Apr 28, 2016
1 parent 2966dc9 commit 7762365
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 71 deletions.
1 change: 0 additions & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* Display the Recent Posts widget
*
* @since 0.5.5
* @link http://jira.inn.org/browse/WE-103
* @link https://codex.wordpress.org/Function_Reference/the_widget
*/
if ( class_exists( 'largo_recent_posts_widget' ) ) {
Expand Down
134 changes: 67 additions & 67 deletions inc/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' );
1 change: 0 additions & 1 deletion inc/post-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,6 @@ function largo_post_metadata( $post_id, $echo = TRUE ) {
*
* @since 0.5.4
* @link https://github.com/INN/Largo/issues/961
* @link http://jira.inn.org/browse/VO-10
* @see largo_floating_social_button_width_json
*/
if ( ! function_exists( 'largo_floating_social_buttons' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion series-landing.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
/*
* custom footer html
* If we don't reset the post meta here, then the footer HTML is from the wrong post. This doesn't mess with LMP, because it happens after LMP is enqueued in the main column.
* @link http://jira.inn.org/browse/HELPDESK-590
*/
wp_reset_postdata();
if ( 'custom' == $opt['footer_style']) {
Expand Down

0 comments on commit 7762365

Please sign in to comment.