function usercode_admin_tab($section)
 {
     $textareas = array('wp_head' => __('<head> Tag', 'seo-ultimate'), 'the_content_before' => __('Before Item Content', 'seo-ultimate'), 'the_content_after' => __('After Item Content', 'seo-ultimate'), 'wp_footer' => __('Footer', 'seo-ultimate'));
     $textareas = suarr::aprintf("{$section}_%s", false, $textareas);
     $this->admin_form_table_start();
     $this->textareas($textareas, 5, 30, array('disabled' => !$this->user_authorized()));
     $this->admin_form_table_end();
 }
예제 #2
0
 function admin_page_contents()
 {
     if ($this->should_show_sdf_theme_promo()) {
         echo "\n\n<div class='row'>\n";
         echo "\n\n<div class='col-sm-8 col-md-9'>\n";
     }
     $this->admin_form_start(false, false);
     $textareas = array('wp_head' => __('&lt;head&gt; Tag', 'seo-ultimate'), 'the_content_before' => __('Before Item Content', 'seo-ultimate'), 'the_content_after' => __('After Item Content', 'seo-ultimate'), 'wp_footer' => __('Footer', 'seo-ultimate'));
     $textareas = suarr::aprintf("global_%s", false, $textareas);
     $this->textareas($textareas, 5, 30, array('disabled' => !$this->user_authorized()));
     $this->admin_form_end(null, false);
     if ($this->should_show_sdf_theme_promo()) {
         echo "\n\n</div>\n";
         echo "\n\n<div class='col-sm-4 col-md-3'>\n";
         $this->promo_sdf_banners();
         echo "\n\n</div>\n";
         echo "\n\n</div>\n";
     }
 }
 function admin_page_contents()
 {
     $this->admin_form_table_start();
     $this->checkboxes(suarr::aprintf('autolink_posttype_%s', false, suarr::simplify(get_post_types(array('public' => true), 'objects'), 'name', array('labels', 'name'))), __('Add Autolinks to...', 'seo-wizard'));
     $this->checkboxes(array('enable_self_links' => __('Allow posts to link to themselves', 'seo-wizard'), 'enable_current_url_links' => __('Allow posts to link to the URL by which the visitor is accessing the post', 'seo-wizard')), __('Self-Linking', 'seo-wizard'));
     $this->checkboxes(array('limit_lpp' => __('Don&#8217;t add any more than %d autolinks per post/page/etc.', 'seo-wizard'), 'limit_lpa' => __('Don&#8217;t link the same anchor text any more than %d times per post/page/etc.', 'seo-wizard'), 'limit_lpu' => __('Don&#8217;t link to the same destination any more than %d times per post/page/etc.', 'seo-wizard')), __('Quantity Restrictions', 'seo-wizard'));
     $legacy_sitewide_lpa_in_use = $this->plugin->get_module_var('content-autolinks', 'legacy_sitewide_lpa_in_use', false);
     $this->checkboxes(array('dampen_sitewide_lpa' => __('Globally decrease autolinking frequency by %d%', 'seo-wizard'), 'enable_perlink_dampen_sitewide_lpa' => array('description' => __('Add a &#8220;Dampener&#8221; column to the Content Links editor to let me customize frequency dampening on a per-link basis', 'seo-wizard'), 'disabled' => $legacy_sitewide_lpa_in_use, 'checked' => $legacy_sitewide_lpa_in_use ? true : null)), __('Additional Dampening Effect', 'seo-wizard'));
     $this->textbox('linkfree_tags', __('Tag Restrictions', 'seo-wizard'), $this->get_default_setting('linkfree_tags'), false, array('help_text' => __('Don&#8217;t add autolinks to text within these HTML tags <em>(separate with commas)</em>:', 'seo-wizard')));
     $siloing_checkboxes = array();
     $post_types = get_post_types(array('public' => true), 'objects');
     foreach ($post_types as $post_type) {
         $taxonomies = suwp::get_object_taxonomies($post_type->name);
         if (count($taxonomies)) {
             $siloing_checkboxes['dest_limit_' . $post_type->name] = sprintf(__('%s can only link to internal destinations that share at least one...', 'seo-wizard'), $post_type->labels->name);
             foreach ($taxonomies as $taxonomy) {
                 $siloing_checkboxes['dest_limit_' . $post_type->name . '_within_' . $taxonomy->name] = array('description' => $taxonomy->labels->singular_name, 'indent' => true);
             }
         }
     }
     $this->checkboxes($siloing_checkboxes, __('Siloing', 'seo-wizard'));
     $this->textbox('autolink_class', __('CSS Class for Autolinks', 'seo-wizard'));
     $this->admin_form_table_end();
 }
 function do_import()
 {
     $this->do_import_deactivate(SU_AIOSP_PATH);
     $this->do_import_postmeta(suarr::aprintf('_aioseop_%s', '_su_%s', array('title', 'description', 'keywords')), '_aioseop_disable');
 }