Commit 74392c26 authored by git's avatar git Committed by Robert Ragas

Issue #2777375 by lmcorreia: Remove newsletter block in form for D7

parent 6c184396
<div class="yoast_newsletter_subscription messages warning">
<h3><?php t('Yoast SEO Newsletter'); ?></h3>
<p>
<?php print t('Our newsletter contains loads of tips and tricks about how to optimize your SEO'); ?>.<br><br>
<a href="http://yoast.us1.list-manage1.com/subscribe?u=ffa93edfe21752c921f860358&amp;id=c5c440d654" target="_blank" class="button"><?php print t('Subscribe here'); ?></a>
</p>
</div>
......@@ -264,15 +264,10 @@ function yoast_seo_configuration_form_after_build($form, &$form_state) {
<span class="score_title">' . t('SEO') . ': <strong>' . $score . '</strong></span>
</div>';
// Template for the newsletter.
$snippet_tpl = array('#theme' => 'yoast_newsletter');
$newsletter_markup = theme($snippet_tpl);
// Output the markup for the snippet and overall score above the body field.
$form['yoast_seo'][$langcode]['snippet_analysis'] = array(
'#weight' => $form['yoast_seo']['#weight'] - 1,
'#markup' => '<div id="' . $wrapper_target_id . '"><div id="wpseo_meta"></div><label>' . t('Snippet editor') . '</label><div id="' . $snippet_target_id . '"></div><label>' . t('Content analysis') . '</label><div id="' . $output_target_id . '"></div></div>',
'#suffix' => $newsletter_markup,
);
// Minified JS file.
......@@ -475,19 +470,6 @@ function yoast_seo_form_node_admin_content_alter(&$form, &$form_state, $form_id)
}
}
/**
* Implements hook_theme().
*/
function yoast_seo_theme(&$existing, &$type, &$theme, &$path) {
$theme = array();
$theme['yoast_newsletter'] = array(
'template' => 'newsletter',
'path' => drupal_get_path('module', 'yoast_seo') . '/templates',
);
return $theme;
}
/**
* Load an entity's SEO info.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment