Skip to content

Commit

Permalink
Add closing div tag for pmp heading links; See: wpsharks/comment-mail…
Browse files Browse the repository at this point in the history
  • Loading branch information
kristineds committed Jan 15, 2016
1 parent 64d6bdc commit dade8dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comment-mail-pro/includes/classes/menu-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -4344,7 +4344,7 @@ protected function heading($title, $logo_icon = '')

$heading .= '<div class="pmp-heading">'."\n";

$heading .= ' <button type="button" class="plugin-menu-page-restore-defaults"'.'<a href="#" data-pmp-action="'.esc_attr($this->plugin->utils_url->restore_default_options()).'" data-pmp-confirmation="'.esc_attr(__('Restore default plugin options? You will lose all of your current settings! Are you absolutely sure?', $this->plugin->text_domain)).'"> '.__('Restore', $this->plugin->text_domain).' <i class="fa fa-ambulance"></i></button>'.'</a>'."\n";
$heading .= ' <button type="button" class="plugin-menu-page-restore-defaults"'.'<a href="#" data-pmp-action="'.esc_attr($this->plugin->utils_url->restore_default_options()).'" data-pmp-confirmation="'.esc_attr(__('Restore default plugin options? You will lose all of your current settings! Are you absolutely sure?', $this->plugin->text_domain)).'"> '.__('Restore', $this->plugin->text_domain).' <i class="fa fa-ambulance"></i></button>'.'</a>'."\n";

$heading .= ' <div class="pmp-heading-options">'."\n";
$heading .= ' <a href="'.esc_attr($this->plugin->utils_url->subscribe_page()).'" target="_blank"><i class="fa fa-envelope-o"></i> '.__('Newsletter (Subscribe)', $this->plugin->text_domain).'</a>'."\n";
Expand Down Expand Up @@ -4394,6 +4394,8 @@ protected function heading($title, $logo_icon = '')
($this->plugin->utils_env->is_menu_page(__NAMESPACE__.'_site_templates') ? ' class="pmp-active"' : '').'>'.
'<i class="fa fa-code"></i> '.__('Site Templates', $this->plugin->text_domain).'</a>'."\n";

$heading .= ' </div>'."\n";

$heading .= '</div>'."\n";

return $heading; // Menu page heading.
Expand Down

0 comments on commit dade8dc

Please sign in to comment.