Skip to content

Commit

Permalink
Remove admin bar menu link
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Gillman <[email protected]>
  • Loading branch information
jordesign committed Jul 27, 2017
1 parent 5e25f14 commit 374218d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 67 deletions.
15 changes: 0 additions & 15 deletions customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,18 +596,3 @@ function wpcc_extra_admin_menu() {
$submenu['edit.php?post_type=card'][] = array('Your Church Center', 'manage_options', wpcc_get_home_center_link() );
$submenu['edit.php?post_type=card'][] = array('Center Settings', 'manage_options', $url);
}

//Add Link to top Admin bar as well
add_action('admin_bar_menu', 'wpcc_add_toolbar_items', 100);
function wpcc_add_toolbar_items($admin_bar){
$admin_bar->add_menu( array(
'id' => 'church-center',
'parent' => 'site-name',
'title' => 'Visit Your Church Center',
'href' => wpcc_get_home_center_link(),
'meta' => array(
'title' => __('Visit your Church Center'),
'target' => '_blank',
),
));
}
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ v1.1
- BUG FIX: Fix undefined_constant error that sometimes appears
- BUG FIX: More robust styles to overide custom themes
- BUG FIX: Escape all the html (and urls) so things are secure
- BUG FIX: Use a variable for our image field - so it works on older PHP versions
- BUG FIX: Use a variable for our image field - so it works on older PHP versions
- BUG FIX: Lots of small tweaks and bug fixes


v1.0.3
Expand Down
51 changes: 0 additions & 51 deletions templates/config.codekit3
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@
"oF": 0,
"opt": 0
},
"\/archive-card.php": {
"ft": 8192,
"oA": 2,
"oAP": "\/archive-card.php",
"oF": 0
},
"\/center_home.php": {
"ft": 8192,
"oA": 2,
"oAP": "\/center_home.php",
"oF": 0
},
"\/css\/wpcc_style.css": {
"aP": 1,
"bl": 0,
Expand Down Expand Up @@ -79,12 +67,6 @@
"oAP": "\/footer.php",
"oF": 0
},
"\/header.php": {
"ft": 8192,
"oA": 2,
"oAP": "\/header.php",
"oF": 0
},
"\/pagetemplater.php": {
"ft": 8192,
"oA": 2,
Expand Down Expand Up @@ -175,39 +157,6 @@
"oF": 0,
"sC": 1,
"tS": 0
},
"\/wpcc_style.css": {
"aP": 1,
"bl": 0,
"ft": 16,
"ma": 0,
"oA": 0,
"oAP": "\/wpcc_style-min.css",
"oF": 0,
"oS": 3
},
"\/wpcc_style.css.map": {
"ft": 8192,
"oA": 2,
"oAP": "\/wpcc_style.css.map",
"oF": 0
},
"\/wpcc_style.less": {
"aP": 0,
"bl": 0,
"dJ": 0,
"ft": 1,
"ie": 1,
"iI": 0,
"ma": 1,
"oA": 0,
"oAP": "\/wpcc_style.css",
"oF": 0,
"oS": 0,
"rU": 0,
"sI": 0,
"sM": 0,
"sU": 0
}
},
"hooks": [
Expand Down

0 comments on commit 374218d

Please sign in to comment.