File: /home/coopserp/public_html/siteseo.tar
siteseo.php 0000644 00000020147 15152642003 0006732 0 ustar 00 <?php
/*
Plugin Name: SiteSEO - SEO Simplified
Plugin URI: https://siteseo.io/
Description: SiteSEO is an easy, fast and powerful SEO plugin for WordPress. Unlock your Website's potential and Maximize your online visibility with our SiteSEO!
Author: Softaculous
Version: 1.3.6
Requires at least: 5.0
Author URI: https://siteseo.io/
License: GPLv2
Text Domain: siteseo
*/
if(!defined('ABSPATH')){
die('HACKING ATTEMPT!');
}
if(!function_exists('add_action')){
echo 'You are not allowed to access this page directly.';
exit;
}
if(defined('SITESEO_VERSION')){
return;
}
define('SITESEO_VERSION', '1.3.6');
define('SITESEO_FILE', __FILE__);
define('SITESEO_DOCS', 'https://siteseo.io/docs/');
define('SITESEO_DIR_PATH', plugin_dir_path(SITESEO_FILE));
define('SITESEO_DIR_URL', plugin_dir_url(SITESEO_FILE));
define('SITESEO_ASSETS_PATH', SITESEO_DIR_PATH . 'assets');
define('SITESEO_ASSETS_URL', SITESEO_DIR_URL . 'assets');
define('SITESEO_DEV', file_exists(SITESEO_DIR_PATH.'DEV.php'));
include_once(SITESEO_DIR_PATH . 'functions.php');
function siteseo_autoloader($class){
if(!preg_match('/^SiteSEO\\\(.*)/is', $class, $m)){
return;
}
$m[1] = str_replace('\\', '/', $m[1]);
// Include file
if(file_exists(SITESEO_DIR_PATH . 'main/'.strtolower($m[1]).'.php')){
include_once(SITESEO_DIR_PATH.'main/'.strtolower($m[1]).'.php');
}
}
spl_autoload_register('siteseo_autoloader');
register_activation_hook(SITESEO_FILE, '\SiteSEO\Install::activate');
register_deactivation_hook(SITESEO_FILE, '\SiteSEO\Install::deactivate');
register_uninstall_hook(SITESEO_FILE, '\SiteSEO\Install::uninstall');
add_action('plugins_loaded', 'siteseo_load_plugin');
function siteseo_load_plugin(){
global $siteseo;
if(empty($siteseo)){
$siteseo = new StdClass();
}
// Loading all the options.
$siteseo->setting_enabled = get_option('siteseo_toggle', []);
$siteseo->titles_settings = get_option('siteseo_titles_option_name', []);
$siteseo->social_settings = get_option('siteseo_social_option_name', []);
$siteseo->advanced_settings = get_option('siteseo_advanced_option_name', []);
$siteseo->instant_settings = get_option('siteseo_instant_indexing_option_name', []);
$siteseo->sitemap_settings = get_option('siteseo_xml_sitemap_option_name', []);
$siteseo->analaytics_settings = get_option('siteseo_google_analytics_option_name', []);
siteseo_check_update();
if(!empty($siteseo->setting_enabled['toggle-advanced'])){
add_action('init','\SiteSEO\ImageSeo::init', 11); // Upload happens with AJAX so we need this here
}
if(wp_doing_ajax()){
\SiteSEO\Ajax::hooks();
return;
}
if(defined('SITESEO_PRO_VERSION') && version_compare(SITESEO_PRO_VERSION, '1.1.5', '<')){
if(!function_exists('is_plugin_active')){
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
}
// Image & Sitemap block
add_action('init', '\SiteSEO\Admin::register_sitmap_block');
// TOC
add_shortcode('siteseo_toc', '\SiteSEO\TableofContent::render_toc');
add_action('init', '\SiteSEO\TableofContent::enable_toc');
if(!empty($siteseo->setting_enabled['toggle-xml-sitemap']) && !empty($siteseo->sitemap_settings['xml_sitemap_general_enable'])){
add_filter('wp_sitemaps_enabled', '__return_false'); // Disabling default WP Sitemap
add_action('init', '\SiteSEO\GenerateSitemap::add_rewrite_rules', 20);
add_action('template_redirect', '\SiteSEO\GenerateSitemap::handle_sitemap_requests', 0);
}
if(!empty($siteseo->sitemap_settings['toggle-xml-sitemap']) && !empty($siteseo->sitemap_settings['xml_sitemap_general_enable'])){
add_shortcode('siteseo_html_sitemap', '\SiteSEO\GenerateSitemap::html_sitemap');
}
// Redirect
add_action('template_redirect', '\SiteSEO\GoogleAnalytics::handle_custom_redirect');
add_action('init', '\SiteSEO\Advanced::remove_wc_category_base');
if(!empty($siteseo->setting_enabled['toggle-instant-indexing']) && !empty($siteseo->instant_settings['instant_indexing_bing_api_key'])){
add_action('template_redirect', '\SiteSEO\InstantIndexing::bing_txt_file', 0);
if(!empty($siteseo->instant_settings['instant_indexing_automate_submission'])){
add_action('transition_post_status', '\SiteSEO\InstantIndexing::on_status_change', 10, 3);
}
}
\SiteSEO\Admin::permission();
if(!empty($siteseo->setting_enabled['toggle-advanced']) && empty($siteseo->advanced_settings['appearance_universal_metabox_disable']) && siteseo_user_can_metabox()){
add_action('wp_enqueue_scripts', 'siteseo_universal_assets');
add_action('enqueue_block_editor_assets', 'siteseo_universal_assets');
if(defined('SITESEO_PRO_VERSION') && version_compare(SITESEO_PRO_VERSION, '1.2.6', '>=')){
add_action('wp_enqueue_scripts', '\SiteSEOPro\Admin::enqueue_metabox');
add_action('enqueue_block_editor_assets', '\SiteSEOPro\Admin::enqueue_metabox');
}
}
if(!is_admin()){
// Code that will be used in the frontend will go here.
if(defined('WPB_VC_VERSION') && !empty($_GET['vc_editable']) && $_GET['vc_editable'] === 'true'){
return; // WPBakery
}
remove_action('wp_head', 'rel_canonical');
add_action('after_setup_theme', 'siteseo_remove_elementor_description_meta_tag');
// Cookies enqueue
add_action('wp_enqueue_scripts', '\SiteSEO\Admin::cookies_bar');
// Titles and Metas
add_action('wp_head', '\SiteSEO\TitlesMetas::add_nositelinkssearchbox', 1);
add_action('wp_head', '\SiteSEO\TitlesMetas::add_canonical_url', 1);
add_filter('wp_title', '\SiteSEO\TitlesMetas::modify_site_title', 15, 2);
add_filter('pre_get_document_title', '\SiteSEO\TitlesMetas::modify_site_title', 15);
add_action('wp_head', '\SiteSEO\TitlesMetas::add_meta_description', 1);
add_filter('wp_robots', '\SiteSEO\TitlesMetas::advanced_metas', 999);
add_action('wp_head', '\SiteSEO\TitlesMetas::add_rel_link_pages', 9);
add_action('wp_head', '\SiteSEO\TitlesMetas::date_time_publish', 3);
// Social
add_action('wp_head', '\SiteSEO\SocialMetas::add_social_graph', 1);
add_action('wp_head', '\SiteSEO\SocialMetas::fb_graph', 1);
add_action('wp_head', '\SiteSEO\SocialMetas::twitter_card', 1);
// Sitemaps
add_action('init', '\SiteSEO\GenerateSitemap::settings', 5);
// Image & Advanced
add_action('wp_head', '\SiteSEO\Advanced::tags');
add_action('init', '\SiteSEO\Advanced::remove_links');
// Analaytics
add_action('init', '\SiteSEO\GoogleAnalytics::ga_render');
add_filter('post_link_category', '\SiteSEO\PrimaryCategory::add_primary_category', 10, 3);
add_filter('wc_product_post_type_link_product_cat', '\SiteSEO\PrimaryCategory::wc_primary_category', 10, 3);
add_filter('woocommerce_get_breadcrumb', '\SiteSEO\PrimaryCategory::replace_breadcrumb_categories', 10, 2);
return;
}
if(is_admin()){
\SiteSEO\Admin::init();
}
}
function siteseo_check_update(){
global $siteseo;
$current_version = get_option('siteseo_version');
$version = (int) str_replace('.', '', $current_version);
// No update required
if($current_version == SITESEO_VERSION){
return true;
}
if($version < 115){
// Older version had enable index, and if it was set it actually meant it was enabled.
$options = $siteseo->titles_settings['titles_single_titles'];
if(!empty($options)){
foreach($options as &$option){
if(!empty($option['enable'])){
unset($option['enable']);
$option['disabled'] = true;
}
}
$siteseo->titles_settings['titles_single_titles'] = $options;
}
update_option('siteseo_titles_option_name', $siteseo->titles_settings);
}
if($version > 115 && $version < 117){
$options = $siteseo->titles_settings['titles_single_titles'];
// In 115 if enabled was true then the options will be enabled, which was an issue
// As it means user will have to manually enable every metabox option.
if(!empty($options)){
foreach($options as &$option){
if(!empty($option['enable'])){
unset($option['enable']);
} elseif(isset($option['enable'])){
$option['disabled'] = true;
unset($option['enable']);
}
}
$siteseo->titles_settings['titles_single_titles'] = $options;
}
update_option('siteseo_titles_option_name', $siteseo->titles_settings);
}
// Is it first run ?
if(empty($current_version)){
\SiteSEO\Install::activate();
return;
}
update_option('siteseo_version', SITESEO_VERSION);
}
assets/img/siteseo-white.png 0000644 00000031320 15152642003 0012116 0 ustar 00 �PNG
IHDR � � (�zo sRGB��, pHYs % %IR$� 2uIDATx��xU�CDDz�:�{�^{W,�?�DAAPTD�"*�Ho*�� Rp��{�������)�d������d6�}���ٝ��s��a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�a�L�H��*U
�@���f��0�0�����X��士�\}�Z<X5�����a���ӵ��~�fh��5B���!�.Х�U���W�L��c�a��� 3�vX�j��S5C]:�Kt�p��Γa�a�bx�^D�ꆇ?W'��cQ�ѥ�tx��K�C�^���a���� �ބ���^�/֍����t@�J�NS�v.��ٹ3�0L�gJ���5�Z3�Ad�+�#a|�@�/�����G���b?��q0�0L�eZ�跧6��y�Q��0
Х�tPs�$��x1 SGӟ��0Ô9�ns��1io6��7P�I�ѥ�dt5�N���nF��_�Z�H��ʙ�f��a�a���bo����M1� �0�Kt� ��I%�ty��w�ba�M��7�_��b?���1�0�W�A���7��;�YlaAV��\:��~���q�~�8��m�E��������q2�0�W��U���-��"��\�H��
rI.}R�(�
��2�
��(Υ������2�0�ױ�u��[%d�G1��]:�K5��:
:���։ �m@~\��Za��3�0�x
K�&��Mb§(Ɵ`����a�����-i���Ml>EQ��p�����=n�a��
��Kn���I�$�K�&��6��<.�=�7|-�h���%���Ŵ��қv���G�a���a��|�!��W�D1�S������\�\Iȿ�_wHl��@�7��@�KGg�c�1`�aK�]ǔ%(�WWuH���b��(���|�v:�Q��� �v����M�/�K�j�q`�aK��s���;��X�cr�S��ɥ��o�r6t=?�Ol��.�MQ�>�I4W�c�aW����S��]����N)�b�ȥ��o�v�u?[��&tl�i�>�/��덢&�},�aƒ��w��]�q�
]
��|1.ƥ�@�'��g��#�wO��(蛻�wʥ�2!oz����>�0cYP����Y�5-�\�F;w]�K'QގB�[��K�4�c�T��K�i�9~���7�����0�0��|F��v��B�'qI.���(����}�aO��+��n�".�[�.}�����gf���7�0�0��A!_��;]����(�.}
��(�oI�Ȁ?Q������.��ޢK�I�K_�&1en�f��a�a,��4Y�)�w��i'IJK���&� �Ͽ�g����K߫��7J.}y����-�G�=v�a��
P��iv����#=:_�%�NB~E����pl`���(�T\��� ����$�4{��0�5�x�L�bN���%!��� ܁C��6$N
(���K��|ފvɛ�3�0�x(�G�ŜbG��$Ĵb= ��̰l8�?�f�(�θt�0X�1��ce�a��{Jqb.:M��F!���s ��K߃���˹�U�S��=V�a��J����kXǼbŜb[��xrߑ�^�p�t�.�}G�Դ5��6{��0����X����B��WF�y��K�?���_{��l�v�Y���0�0^�-.
�q��"b>�C�C�������F]�h�".}XQ�~���=R�=6�a�)3����E��s.��|�?'.=f��]��r�Y�[�?��0Ô)P�kwz�t�+S�(�CIȻ]��=���^W�~9� �]{��p��f^�������X ��1cFo���0�>ó?o�D*t�?]�.
!�y��
�^��.�&�vȥǎ*�ҏ̼���f���>(�s0�@a�0����0L���}�7?u:=�&
y�!؇��
��n(����\���Yu?_��0���;(�L�af��0S��)�J;�c�A�1�a0
9M���-(�.C�A������e���G\����2{,��A��@�e�0ʙ�+�0L���mYϵy�,�~�,�z.E�
!GW������3,v
�NH��
(]�?/�=�;@�ޫAЉf��0S��rƖVϧ@�S��Kɂ���
FW>D��#��Y�䈋�Q�e�N��.�����U9��P�b<�1c ����cl��S��0nè顼Nit�k`a���2�<�e�1vc���c���w=�[_b�<9֒�ޟ���h���B�[���ֹL�xcƍf�]���xZ8 y����|B�8�.y��b�B�kT��"�^u�<٥�N�d�(�
�|��}U��*�W��� ��'܃��E��iO�R����\w�?�/��z���y�)'\��G1^�0t���F���ȱ9s{��?����~���G����sIț���&&B�/@�^�]��!�~g&t�;ló�e���y"O�J(�ѕ�ޏb�Ba<\-d�'��2xr� �}g=9n���\gj쿉}���vG=�T��c� cF���b���A9� AǾj�貍�����*�$��O�BB�lr"���7��8�.y�]��(���ɀ��e�#3�R���QЛ��ݕ���/A!�BB�@UQ���T���B������
�H�0
:YeNb�1grrQ*}�U}X�
�a9������L.�j�F:��Ղ�}��#˃�[(7=�2O� I�$�7�� 7�� -�'A�Q��� !��@Ȼ<��L*BC�<v��<#s{�F�c/Ջ��t�0�^W�rr@!��0�j32+�'�<Y�7u̽%�ӫ��8�W�u�}t��1=?\*�EC/�JA�P y���[�Qߨ1�y�M���xh:5��/�x!!�_r������h���4RП��~r�(x�Q��?I�I�W^ 䀢cj�5C�0*+�'K5�c��4�A����Ř��F��Y�
�]�#?d%@ӻ�t�� :�;��q)9���,�(��ɛq��8��ݛ!T��BB�P��wx,M��9w���$�(�MnSP̧6��70^�QȕB^Crx�f��?gD.V��� 'N,�U
�8��c<��VZ �������A
`A7<n@�4.��t�F+����p����a'?{$�u�#��Ө��{a7��NG�f=�16`L�E�>�n��9�B[�W����\Y�M��F3b��k��,�����T�B4t�=��KW��i|��+SQ�Iȧa��$�7���Q�eW.
y( 9�cl�0x�v��F�c��D㉴������ĉZ�W��!���� ρ�/r/R�ci��њ�v��cA��= �Zc���F$�����Z���.ډ>i�C��^fAA�"y÷1މĝ�wD!��Bȟ��Q1�#�RN
��u���ĩ
!�|F�xcj�(yz�@�1Ɖb�� ��|���z�c����9��>nň����R{�
,躣�Tҷ�}�����ͱX^�A��W��Y��t�n���?]�ӳ�2�M��g�B�`f�cv� ܂��+o��B�ǝ�6Ϟ��ϧ@��)�_��g>/�
�]�$���3o��w�b��+���:���^��Z�|��E9A��4m��J��;���
��>������"\^�ṯ"�!
Ljn{<cp.�`�ՐM����﵄��כ��^4��(
�4��v�9QȟK�V/�U�Z��s��L��:]��g�����|v�XA��� ��uI�#�zt�=w|��2u��^�<'�e��:��#G�
?�t]�Z�#hk�[;�{]�?�7ڷ����p|�"c�������|��W�*���QPgn���Iȥ�u��; �������T������wLխr�����+�%���s���s��k��D!/p傘�ǘP?^���^�XP�E�9M� z��ꁆ�U�IJ���hAZ��Q[�9Ѐ>ն�%�Ѷe�r\*�Z��y]����x2/��or�DY�뢐� j�1/B(+�\띄||����'& .�O(H�0C�|&5���YH�c�=I�?���E<|�?_�W �]9 9Ll �LniXy����\�݀>�ʔ�K�Ŷ�v������� �W+/��J���y���ǁ�Ni�y�&�T�&l �x<P�{���4���5�.����Jt5֙��R
9�6Wi69�����c~�p_]~h�\�]([ �bA�) �M���2͍���]����\s�0浌��o����\r墐c��Pػ^f� ���]5�_����.���J�
5��eAt]���&7�NMm�N�
�`=sT��V���
�.v.��=�Ŷ-'� ^XŪ�]f�I��]��kv����̘���\5�Cͅa���P�zo�r*H#�a��L�\P�+�=syz��q�B�1ƂV ���uP��+��\(F3E�6R��J;�x�x���]PF�
yG̓�e�zĽ�p�L��5}��@��ܒ���J�+��Ӳ4���R�k|�?�X&�tA�'���^ST��<��د5��vQ��<�>��(��%1��|Ƨm�)xiz�����h�l��'���ʉ�`v~�eL�At��<�+�ˊs)��U�Z�W_�,&�SmP/����<���6۫���]ŸE��/���g�PuI� ���kEK�6�+H��؟������5�˛�rr傐�N��(�K0��M����B�(�H1�McJ�)� �������� :��8W�C/h���5�6�����><
XO�穼��α80��*y/1;G�Rgnd�Rȫ.
�*�c|"�~�iJ���B�v�����,�=D�|P���B�� � ��Fb�B�y�$���$A��U����G>�P�r��9:�A������lz�kLS��.�M5��z)�[&A��J�T�V�B���T �O���5;�� �S���i
�[U��,��D�a/䕗C��P����BN�|z\��r������˞�Z�]���e!'WNB�%ƲvI��]���N)���+�-7�� ��v�1�st�OЛB��]�T�[��J
�g@�5]@��EI��b�\5������'�Q�O��#k�C�'�y������7dQ�^`~�T�kv������dAȿ��(�VÍ+��_���\)�����G�O�|P��+��ɕ�B��|E�d�
���,F��,'m}��^�8���Q�Ԙlv�Z��A���C�ڞ��Y=���
Z �Rc��^I֝*�ӅKW�4`-A�Y��2;GG��V�=f�hY�|9�^�+�
��_�
� .\rٕ����}_{^DE=r��E�Eyz��|���W�����C
|�1���ree9�ַ�ȧ4�s����pJ�ł���+*��D��Z������
���{w�� �Z��輏1;?-������1;?KSmqh���WX}*|wZ���r��_����՜�RQ{P�o�B1��Rr傐c|�b�]G��l?�i�>j�[���~���J�RzOM�[Зhx�fЯ��)b��m�*}G_�J�-��"���T9�ߚ��@}q��s�,5�w#1W
��k��P��@t��+�����Td{V�Ea����2!Q�^_�As��$���Z��;����&S���>��ȧ4�K��z
����λ8�K��j���^��w�m��06*B%J���^�u�5���9j��;�5�s�4U>9b/����@�oO���(�u!��Z�
�Ql����fq7�D�.O��B�k$!_��C�s��#ne�X�}�[%�#��~�Gh�J- ��Z>�Q��1ག�A�_��~�}K�ӊ�p�F�Ѿ��{�������2�c�kC� qa�#�0;GKS�������B�|7�C�M�PmIh��,
yMA��E!�4�[nե!����uB�<��F��e!��l� ѷ/����uB���V����Ң��0���Pб�&����?@���n����q� ��`�vp\�.����5�^���٧r<K�� �Fq�of�hy*-�h/�>�m��&�]�O.�r��/���Py��.��Q���ꐒ�V��!�؈B���y���<l�X�&At充\(J#m{\��J+ n]ҲHN��A�.5�F����O]C���A���J���@[�h1M+{t�<8v�F�΅<=��R�7T�M�y.�a�W@�~E)�>[1�c�A��Έ��B.��!Wn�GN��$�"O��BN�|�$�ۺ����S��+\]��(���-C�|J3x��L���}/c�48wo�T��w�r���t��T;g���k1�����nAq�^���(@��P)f��T�*h��������v�^MY]N)�RQi�[@�UA��Y�1%w�Bȷ(�|G�T�㧞��Ev����|�G>��#/����ж����U���US��iȧ�J>�t�k�O*�9K*�S���.g�z���ҍ86F�g����k�nC@�R�}~���~8]P&V��r�V��c�&H��?(�����Q�I�w������3
v�J�M)��^�e{�/�l�\A��� ��@\M��Ӽȅ�Po�U�[�gsJr��I�k��9�;1�B�s�蜫U=�A{�ڿ���P9>����+��m��B��Ư�ل"4�2����$!?#9��-��5���Y���%ٕ��w�i���F1��w�����%)��`�z=� V*�i����>V8���>AW����-��c�dp�@|�ܟ*�E+�<�`A?�A���'