switch ($key) { case 'lseo': echo '<p><a href="http://yoa.st/lseo" target="_blank"><img style="float: left; margin-right: 10px;" src="' . plugins_url('../images/logo-lseo.png', dirname(__FILE__)) . '" alt="LSEO" height="45"></a>' . sprintf(__('LSEO is a complete local search engine optimization solution for businesses. Answer 10 short questions below to find out how visible your website is likely to be on Google. Along with a free LSEO Score you will also get free tips and solutions for how to improve your local ranking. Brought to you by %sLSEO.com%s.', 'yoast-local-seo'), '<a href="http://yoa.st/lseo" target="_blank">', '</a>') . '</p>'; echo '<p>' . sprintf(__('To receive a %1$s14 Day FREE Trial%2$s, please go to %3$s.', 'yoast-local-seo'), '<strong>', '</strong>', '<a href="http://yoa.st/lseo" target="_blank">www.lseo.com/getstarted</a>') . '</p>'; echo '<iframe name="yoast_lseo" src="//lseo.com/widget/2/1008/' . esc_attr($_SERVER['HTTP_HOST']) . '" height="165px" width="100%" scrolling="no" border="0" frameborder="0" allowtransparency="true"></iframe>'; break; case 'whitespark': echo '<p><a href="http://yoa.st/lrank" target="_blank"><img style="float: left; margin-right: 10px;" src="' . plugins_url('../images/logo-whitespark.png', dirname(__FILE__)) . '" alt="Whitespark"></a></p><br class="clear">' . '<h3>' . __('Save 20% on Whitespark Local SEO Tool Plans', 'yoast-local-seo') . '</h3>'; echo '<ul>'; echo '<li>' . __('Whitespark offers reliable and accurate tools for Local SEO', 'yoast-local-seo') . '</li>'; echo '<li>' . __('Get more customers, improve local rankings, track your competitors and manage your local SEO', 'yoast-local-seo') . '</li>'; echo '<li>' . __('Gain access to our free Review Handout Generator, Offline Conversion Tracker and other essential local search resources', 'yoast-local-seo') . '</li>'; echo '<li>' . sprintf(__('Save 20%% on your Local Citation Finder & Local Rank Tracker subscriptions with coupon code: %sYOASTDEAL2014%s', 'yoast-local-seo'), '<code>', '</code>') . '</li>'; echo '</ul>'; echo '<p>' . sprintf(__('Go to %s and get this deal!', 'yoast-local-seo'), '<a href="http://yoa.st/lrank" target="_blank">www.whitespark.ca/local-rank-tracker</a>') . '</p>'; break; default: ''; break; } echo '</div>'; echo '<br class="clear">'; } echo '<div class="lseo-hide-tools">'; WPSEO_Local_Admin_Wrappers::checkbox('hide_tools_section', '', __('Hide tools section', 'yoast-local-seo')); echo '</div>'; echo '</div>'; echo '</div><!-- #tools-tab -->'; } WPSEO_Local_Admin_Wrappers::admin_footer();
/** * Builds the HTML for the import form * * @since 1.3.5 */ function output_import_html() { $upload_dir = wp_upload_dir(); $wpseo_upload_dir = $upload_dir["basedir"] . '/wpseo/import/'; echo '<p>' . sprintf(__('View the %sdocumentation%s to check what format of the CSV file should be.', 'yoast-local-seo'), '<a href="https://yoast.com/question/csv-import-file-local-seo-look-like/" target="_blank">', '</a>') . '</p>'; echo '<form action="" method="post" enctype="multipart/form-data">'; WPSEO_Local_Admin_Wrappers::file_upload('csvuploadlocations', __('Upload CSV', 'yoast-local-seo')); echo '<label for="csv_separator" class="checkbox">' . __('Column separator', 'yoast-local-seo') . ':</label>'; echo '<select class="textinput" id="csv_separator" name="csv_separator">'; echo '<option value="comma">' . __('Comma', 'yoast-local-seo') . '</option>'; echo '<option value="semicolon">' . __('Semicolon', 'yoast-local-seo') . '</option>'; echo '</select>'; echo '<br class="clear">'; echo '<p>'; echo '<input class="checkbox double" id="is-simplemap-import" type="checkbox" name="is-simplemap-import" value="1"> '; echo '<label for="is-simplemap-import">' . __('This CSV is exported by the SimpleMap plugin', 'yoast-local-seo') . '</label>'; echo '</p>'; echo '<br class="clear">'; echo '<br/>'; echo '<p><em>' . __('Note', 'yoast-local-seo') . ': ' . __('The Geocoding API is limited to 2,500 queries a day, so when you have large CSV files, with no coordinates, cut them in pieces of 2,500 rows and import them one a day. Indeed, it\'s not funny. It\'s reality.', 'yoast-local-seo') . '</em></p>'; if (!is_writable($wpseo_upload_dir)) { echo '<p>' . sprintf(__('Make sure the %s directory is writeable.', 'yoast-local-seo'), '<code>"' . $wpseo_upload_dir . '"</code>') . '</p>'; } # Add a NONCE field echo wp_nonce_field('wpseo_local_import_nonce', 'wpseo_local_import_nonce_field'); echo '<input type="submit" class="button-primary" name="csv-import" value="Import" ' . (!is_writable($wpseo_upload_dir) ? ' disabled="disabled"' : '') . ' />'; echo '</form>'; }