Example #1
0
function scribe_the_upload_iframe_src($type, $tab = null, $args = array(), $escape = true)
{
    $url = scribe_get_upload_iframe_src($type, $tab, $args);
    if ($escape) {
        $url = esc_url($url);
    }
    echo apply_filters('scribe_the_upload_iframe_src', $url, $type, $tab, $args, $escape);
}
Example #2
0
    esc_html_e('Previous Keyword Suggestions', 'scribeseo');
    ?>
</small></a>

		<ul class="scribe-keyword-research-meta-box-previous-keyword-suggestions-wrap">

			<?php 
    $date_format = get_option('date_format');
    foreach ($previous_keywords as $term => $research) {
        if (!is_array($research) || empty($research)) {
            continue;
        }
        $research_item = current($research);
        $research_time = !empty($research_item->time_retrieved) ? date($date_format, $research_item->time_retrieved) : '';
        $research_term = is_numeric($term) ? __('Previous Research', 'premise') : ucwords($term);
        printf('<li><a title="%1$s" data-previous-count="%2$d" href="%3$s" class="scribe-keyword-research-meta-box-previous-keyword-suggestions thickbox"><small>%1$s</small></a></li>', $research_term . ' - ' . $research_time, count($research), scribe_get_upload_iframe_src('scribe-keyword-suggestions', null, array('scribe-previous-keywords' => 'true', 'scribe-research-term' => $term)));
    }
    ?>
		</ul>
		<?php 
}
?>
	</div>

	<div class="scribe-keyword-research-meta-box-target">
		<h4><?php 
esc_html_e('Target Term', 'scribeseo');
?>
</h4>
		<em class="scribe-keyword-research-meta-box-target-text"><?php 
echo esc_html($target_term);
Example #3
0
</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 {
        foreach ($keywords as $keyword) {
            $detail_url = scribe_get_upload_iframe_src('scribe-keyword-suggestions', 'scribe-keyword-details', array('scribe-keyword' => $queried_keyword, 'scribe-details-keyword' => $keyword->term, 'scribe-details-previous' => $previous, 'scribe-research-term' => $previous_research_term));
            ?>
					<tr valign="top">
						<th class="scribe-keyword-suggestions-target" scope="row">
							<input <?php 
            checked($target_term, $keyword->term);
            ?>
 type="radio" name="scribe-keyword-suggestions-target" value="<?php 
            echo esc_attr($keyword->term);
            ?>
" />
						</th>
						<td class="scribe-keyword-suggestions-keyword">
							<a rel="twipsy" title="<?php 
            esc_attr_e('More Details', 'scribeseo');
            ?>