menu_title = __('Duplicate pages', 'clearfy'); parent::__construct($plugin); $this->plugin = $plugin; } /** * Permalinks options. * * @since 1.0.0 * @return mixed[] */ public function getPageOptions() { $options = array(); /*$options[] = array( 'type' => 'html', 'html' => array($this, '_showHeader') );*/ /*$options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'redirect_archives_date', 'title' => __('Disable search', 'clearfy'), 'layout' => array('hint-type' => 'icon'), 'hint' => sprintf(__('Many duplicates in date archives. Imagine, in addition, that your article will be displayed in the main and in the category, you will still receive at least 3 duplicates: in archives by year, month and date, for example %s.', 'clearfy'), '/2016/2016/02 / /2016/02/15') . '
Clearfy: ' . __('Removes all pages with the date archives and puts a redirect.', 'clearfy'), 'default' => false );*/ $options[] = array( 'type' => 'html', 'html' => '
' . __('Delete duplicate pages..', 'clearfy') . '

' . __('Search engines perceive these pages as website separate pages, therefore their content ceases to be unique because of duplication. In addition, page reference weight is reduced if it has a duplicate. A small number of duplicated pages will not be a serious problem, but if there are more than 50 percents of them - you urgently need to correct the situation.', 'clearfy') . '

' ); $options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'redirect_archives_date', 'title' => __('Remove archives date', 'clearfy'), 'layout' => array('hint-type' => 'icon'), 'hint' => sprintf(__('Many duplicates in date archives. Imagine, in addition, that your article will be displayed in the main and in the category, you will still receive at least 3 duplicates: in archives by year, month and date, for example %s.', 'clearfy'), '/2016/2016/02 / /2016/02/15') . '
Clearfy: ' . __('Removes all pages with the date archives and puts a redirect.', 'clearfy'), 'default' => false ); $options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'redirect_archives_author', 'title' => __('Remove author archives ', 'clearfy'), 'layout' => array('hint-type' => 'icon'), 'hint' => sprintf(__('If the site is only filled by you - a mandatory item. Allows you to get rid of duplicates on user archives, for example %s.', 'clearfy'), '/author/admin/') . '
Clearfy: ' . __('Removes all pages with the author archives and puts a redirect.', 'clearfy'), 'default' => false ); $options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'redirect_archives_tag', 'title' => __('Remove archives tag', 'clearfy'), 'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'), 'hint' => __('If you use tags only for the block Similar records, or do not use them at all - it will be more correct to close them to avoid duplicates.', 'clearfy') . '
Clearfy: ' . __('Removes all pages with the tag archives and puts a redirect.', 'clearfy'), 'default' => false ); $options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'attachment_pages_redirect', 'title' => __('Remove attachment pages', 'clearfy'), 'layout' => array('hint-type' => 'icon'), 'hint' => __('Every of the pictures has its own page on the site. Such pages are successfully indexed and create duplicates. The site can have thousands of same-type attachment pages.', 'clearfy') . '
Clearfy: ' . __('Removes attachment pages and puts a redirect.', 'clearfy'), 'default' => false ); $options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'remove_single_pagination_duplicate', 'title' => __('Remove post pagination', 'clearfy'), 'layout' => array('hint-type' => 'icon', 'hint-icon-color' => 'grey'), 'hint' => sprintf(__('In WordPress, any post can be divided into parts (pages), each part will have its own address. But this functionality is rarely used, but it can create trouble for you. For example, you can add a number to the address of any entry of your blog, %s - the post itself will open, which will be a duplicate. You can substitute any number.', 'clearfy'), '/privet-mir/1/') . '
Clearfy: ' . sprintf(__('Removes the pagination from the post and puts a redirect. Example: %s', 'clearfy'), '/post-name/number'), 'default' => false ); $options[] = array( 'type' => 'checkbox', 'way' => 'buttons', 'name' => 'remove_replytocom', 'title' => __('Remove ?replytocom', 'clearfy'), 'layout' => array('hint-type' => 'icon'), 'hint' => sprintf(__('WordPress adds %s to the link "Reply" in the comments, if you use hierarchical comments.', 'clearfy'), '?replytocom') . '
Clearfy: ' . __('?relpytocom remove and and puts a redirect.', 'clearfy'), 'default' => false ); /*$options[] = array( 'type' => 'separator', 'cssClass' => 'factory-separator-dashed' ); $options[] = array( 'type' => 'html', 'html' => array($this, '_showFormButton') );*/ $form_options = array(); $form_options[] = array( 'type' => 'form-group', 'items' => $options, //'cssClass' => 'postbox' ); return apply_filters('wbcr_clr_double_form_options', $form_options, $this); } }