function scribe_get_upload_iframe_src($type, $tab = null, $args = array()) { return apply_filters('scribe_get_upload_iframe_src', Scribe_SEO::get_upload_iframe_src($type, $tab, $args), $type, $tab, $args); }
echo scribe_score_class($content_analysis->scribeScore, 'site'); ?> "> <?php if (empty($content_analysis)) { esc_html_e('-', 'scribeseo'); } elseif (isset($content_analysis->scribeScore)) { printf('%d', $content_analysis->scribeScore); } else { esc_html_e('N/A', 'scribeseo'); } ?> </span> </div> <span class="scribe-wrap" style="float: left; width: 55%"><?php echo wp_kses(scribe_get_content_analyis_site_score_text($content_analysis->scribeScore, $content_analysis->keywords), Scribe_SEO::formatting_allowedtags()); ?> </span> <div class="clear"></div> </div> <p><?php printf(esc_html__('Keyword Analysis inspects your page to compare the use of keywords against two metric - the usage of the keyword on your site (Search Metric) and recommended copywriting styles (Copy Styles). The stronger these two metrics, the better your score. To improve the score for a keyword, go to %1$s for more details.', 'scribeseo'), '<a href="' . add_query_arg(array('type' => 'scribe-analysis-keywords', 'tab' => 'scribe-analysis-document')) . '">' . esc_html__('Content Optimizer', 'scribeseo') . '</a>'); ?> </p> <div> <a class="scribe-tip-marker scribe-show-tip" href="#">+</a> <a class="scribe-tip-marker scribe-hide-tip scribe-link-building-tip" href="#">-</a> <div class="scribe-link-building-tip"> <p>The four quadrants (A, B, C, and D) show a comparison of how well the keywords Scribe found in your content will perform, based on two metrics:</p>
<strong><span class="scribe-keyword-research-evaluations-remaining"><?php echo number_format_i18n($remaining_evaluations); ?> </span> <?php printf(esc_html__('as of %s', 'scribeseo'), date('F j, Y')); ?> </strong> </div> <div id="scribe-keyword-research-meta-box-input" class="scribe-keyword-research-meta-box-input misc-pub-section"> <input class="scribe-default" type="text" id="scribe-keyword-research-term" name="scribe-keyword-research-term" data-default="<?php esc_attr_e('Enter a keyword', 'scribeseo'); ?> " value="" tabindex="40003" /> <?php if (Scribe_SEO::get_keyword_evaluations_remaining()) { ?> <input class="scribe-keyword-research-search-button button button-primary" type="button" tabindex="40004" value="<?php esc_attr_e('Research', 'scribeseo'); ?> " /> <div class="alignright"> <img id="scribe-keyword-research-ajax-feedback" alt="" title="" class="scribe-ajax-feedback" src="<?php echo esc_url(admin_url('images/wpspin_light.gif')); ?> " style="visibility: hidden;"> </div> <?php } ?>
<?php $keywordInfo = $info['GetAnalysisResult']['Analysis']['PrimaryKeywords']['KeywordChange']['Description']; ?> <form> <p><?php echo wp_kses($keywordInfo, Scribe_SEO::formatting_allowedtags()); ?> </p> </form>
public static function get_scribe_api_key() { if (class_exists('Scribe_SEO')) { $settings = Scribe_SEO::get_settings(); $api_key = $settings['api-key']; } else { $api_key = __('Could not determine the Scribe API Key', 'scribeseo'); } return array('value' => $api_key, 'warn' => false); }
</th> <?php } ?> </tr> </tfoot> <tbody> <?php if (empty($keywords)) { ?> <tr valign="top"> <?php if ($previous) { ?> <td colspan="6"><?php wp_kses(__('You don\'t currently have any saved keyword searches. Please <a class="scribe-thickbox-close" href="#">close this pop up</a> and do some keyword research.', 'scribeseo'), Scribe_SEO::formatting_allowedtags()); ?> </td> <?php } else { ?> <td colspan="6"><?php esc_html_e('There are no keyword suggestions available for this keyword.', 'scribeseo'); ?> </td> <?php } ?> </tr> <?php } else {
<td class="ecordia-middle-cell" > <?php echo esc_html($section['Name']); ?> </td> <td class="ecordia-no-pad"> <ul> <?php foreach ($section['Items']['SeoScoreSectionItem'] as $sectionItem) { ?> <li id="<?php echo esc_attr($sectionItem['Id']); ?> " class="<?php echo $sectionItem['IsPassing'] == 'true' ? 'complete' : 'warn'; ?> "> <?php echo wp_kses($sectionItem['Text'], Scribe_SEO::formatting_allowedtags()); ?> </li> <?php } ?> </ul> </td>
> <input title="<?php esc_html_e('Content Analysis', 'scribeseo'); ?> " id="scribe-content-analysis-review-button" type="button" class="button button-secondary thickbox" alt="<?php scribe_the_upload_iframe_src('scribe-analysis-keywords', null, array('scribe-content-analysis-review' => 'true')); ?> " value="<?php esc_html_e('Review', 'scribeseo'); ?> " /> </div> <div class="scribe-analysis-meta-box-analyze-action alignright"> <?php if (Scribe_SEO::get_content_analysis_evaluations_remaining()) { ?> <img alt="" id="scribe-analysis-is-analyzing" class="ajax-loading" src="<?php echo esc_url(admin_url('images/wpspin_light.gif')); ?> "> <input id="scribe-content-analysis-analyze-button" type="button" class="button button-primary" value="<?php esc_html_e('Analyze', 'scribeseo'); ?> " /> <?php wp_nonce_field('scribe-analyze-content', 'scribe-analyze-content-nonce'); } ?> <span class="scribe-content-analysis-out-of-evals scribe-out-of-evals"><?php _e('Out of evaluations', 'scribeseo');
public static function get_upload_iframe_src($type, $tab, $args) { if (empty($tab)) { $tab = $type; } if (!is_array($args)) { $args = array(); } if (empty($args['post_id']) && !empty($_REQUEST['post_id'])) { $args['post_id'] = $_REQUEST['post_id']; } add_filter("{$type}_upload_iframe_src", array(__CLASS__, 'add_upload_iframe_args')); self::$upload_iframe_args = array_merge(array('type' => $type, 'tab' => $tab), $args); $url = get_upload_iframe_src($type); self::$upload_iframe_args = null; remove_filter("{$type}_upload_iframe_src", array(__CLASS__, 'add_upload_iframe_args')); return $url; }
<div class="wrap"> <?php screen_icon(); ?> <h2 id="scribe-seo-news-headline"> <?php echo wp_kses(__('SEO News from the best - <a href="http://searchengineland.com">Search Engine Land</a> and <a href="http://www.searchenginejournal.com">Search Engine Journal</a>', 'scribeseo'), Scribe_SEO::formatting_allowedtags()); ?> </h2> <?php foreach ($feed->get_items() as $item) { $creators = $item->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator'); $creator_string = is_array($creators) ? sprintf('<em>by</em> <span class="scribe-seo-news-item-creator">%s</span>', esc_html($creators[0]['data'])) : ''; $content = $item->get_content(); $content_formatted = wpautop(substr($content, 0, strpos($content, '<p>'))); ?> <div class="scribe-seo-news-item"> <h3><a href="<?php echo esc_url($item->get_link()); ?> "><?php echo esc_html($item->get_title()); ?> </a></h3> <p><?php printf('<span class="scribe-seo-news-item-date">%s</span> %s', $item->get_date(get_option('date_format')), $creator_string); ?> </p> <?php echo $content_formatted;
function sanitize($newvalue, $option) { if ($option != $this->settings_field || empty($_POST)) { return $newvalue; } $data = stripslashes_deep($_POST); $seo_tool_settings_key = isset($newvalue['seo-tool']) ? 'scribe-seo-tool-settings-' . sanitize_title_with_dashes($newvalue['seo-tool']) : ''; $seo_tool_settings = isset($data[$seo_tool_settings_key]) ? maybe_unserialize($data[$seo_tool_settings_key]) : array(); $newvalue['seo-tool-settings'] = $seo_tool_settings; $scribe_api_key_status = Scribe_SEO::is_managed(); if (!$scribe_api_key_status) { $scribe_api_key_status = !empty($newvalue['api-key']) ? Scribe_SEO::verify_scribe_api_key($newvalue['api-key']) : false; } if (isset($newvalue['your-url']) && $this->get_field_value('your-url') != $newvalue['your-url']) { Scribe_SEO::clear_keyword_research_cache(); } if (!$scribe_api_key_status) { add_settings_error('', 'scribe-api-key-invalid', __('Your API key may not be valid. Please verify you have entered the correct key.', 'scribeseo'), 'error'); } elseif (!empty($newvalue['seo-tool']) && empty($newvalue['your-url'])) { add_settings_error('', 'scribe-url-invalid', __('Scribe requires Your URL to function properly.', 'scribeseo'), 'error'); } return $newvalue; }
function editPost($args) { global $wp_xmlrpc_server; $post = self::_get_post($args); if (!is_array($post)) { return $post; } $edit_args = array_slice($args, 0, 4); $edit_args[4] = array('post_title' => isset($args[4]) ? $args[4] : '', 'post_content' => isset($args[5]) ? $args[5] : ''); $result = $wp_xmlrpc_server->wp_editPost($edit_args); if ($result === true && class_exists('Scribe_SEO')) { Scribe_SEO::set_post_meta_title($post['post_id'], isset($args[6]) ? $args[6] : ''); Scribe_SEO::set_post_meta_description($post['post_id'], isset($args[7]) ? $args[7] : ''); } return $result; }
/** * Helper function that returns a setting value from this form's settings * field for use in form fields. * * @since 0.1.0 * * @param string $key Field key * @return string Field value */ protected function get_field_value($key, $subkey = null) { $setting = Scribe_SEO::get_option($key, $this->settings_field); if ($subkey === null) { return $setting; } if (isset($setting[$subkey])) { return $setting[$subkey]; } return ''; }
$last = array_pop($primaryKeywords); printf(esc_html__('The terms %s, and %s are emphasized within your content and are considered Primary Keywords.', 'scribeseo'), '<strong>' . implode('</strong>, <strong>', $primaryKeywords) . '</strong>', "<strong>{$last}</strong>"); } ?> </td> <?php } else { ?> <tr> <th scope="row"><strong><?php echo esc_html($keywordDescription['Type']); ?> </strong></th> <td> <?php echo wp_kses($keywordDescription['Value'], Scribe_SEO::formatting_allowedtags()); ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> <h3><?php esc_html_e('Keyword Analysis', 'scribeseo'); ?> </h3>