403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/tour.mitrofanov.ru/public_04_11/wp-content/plugins/site-reviews/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/tour.mitrofanov.ru/public_04_11/wp-content/plugins/site-reviews/config/woocommerce.php
<?php

return [ // order is intentional
    'settings.addons.woocommerce.enabled' => [
        'default' => 'no',
        'label' => _x('Enable Integration?', 'admin-text', 'site-reviews'),
        'sanitizer' => 'text',
        'tooltip' => sprintf(_x('This will completely replace the default WooCommerce review system with Site Reviews. If you have existing WooCommerce comment reviews, you may need to first export them to a CSV file, and then import them using the %s tool.', 'admin-text', 'site-reviews'),
            sprintf('<a data-expand="#tools-import-reviews" href="%s">%s</a>', glsr_admin_url('tools', 'general'), _x('Import Reviews', 'admin-text', 'site-reviews'))
        ),
        'type' => 'yes_no',
    ],
    'settings.addons.woocommerce.style' => [
        'class' => 'regular-text',
        'default' => '',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'label' => _x('Rating Style', 'admin-text', 'site-reviews'),
        'options' => [
            '' => _x('Site Reviews (yellow)', 'admin-text', 'site-reviews'),
            'black' => _x('WooCommerce (black)', 'admin-text', 'site-reviews'),
            'woocommerce' => _x('WooCommerce (purple)', 'admin-text', 'site-reviews'),
        ],
        'sanitizer' => 'text',
        'tooltip' => _x('This changes the colour of the stars and the summary bars', 'admin-text', 'site-reviews'),
        'type' => 'select',
    ],
    'settings.addons.woocommerce.summary' => [
        'class' => 'large-text',
        'default' => '[site_reviews_summary assigned_posts="post_id" hide="rating"]',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'label' => _x('Summary Shortcode', 'admin-text', 'site-reviews'),
        'sanitizer' => 'text',
        'tooltip' => _x('Enter the summary shortcode used on the product page (the schema option is unnecessary)', 'admin-text', 'site-reviews'),
        'type' => 'text',
    ],
    'settings.addons.woocommerce.reviews' => [
        'class' => 'large-text',
        'default' => '[site_reviews assigned_posts="post_id" hide="assigned_links,title" pagination="ajax" schema="true"]',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'label' => _x('Reviews Shortcode', 'admin-text', 'site-reviews'),
        'sanitizer' => 'text',
        'tooltip' => _x('Enter the reviews shortcode used on the product page (the schema option is unnecessary)', 'admin-text', 'site-reviews'),
        'type' => 'text',
    ],
    'settings.addons.woocommerce.form' => [
        'class' => 'large-text',
        'default' => '[site_reviews_form assigned_posts="post_id" hide="title"]',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'label' => _x('Form Shortcode', 'admin-text', 'site-reviews'),
        'sanitizer' => 'text',
        'tooltip' => _x('Enter the form shortcode used on the product page', 'admin-text', 'site-reviews'),
        'type' => 'text',
    ],
    'settings.addons.woocommerce.sorting' => [
        'class' => 'regular-text',
        'default' => '',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'description' => sprintf('<span class="dashicons dashicons-arrow-right"></span> %s<br><span class="dashicons dashicons-arrow-right"></span> %s',
            sprintf('<a href="https://www.xkcd.com/937/" target="_blank">%s</a>', _x('The problem with averaging star ratings', 'admin-text', 'site-reviews')),
            sprintf('<a href="https://fulmicoton.com/posts/bayesian_rating/" target="_blank">%s</a>', _x('Of bayesian average and star ratings', 'admin-text', 'site-reviews'))
        ),
        'label' => _x('Product Sorting', 'admin-text', 'site-reviews'),
        'options' => [
            '' => _x('Average Rating', 'admin-text', 'site-reviews'),
            'bayesian' => _x('Bayesian Average Rating', 'admin-text', 'site-reviews'),
        ],
        'sanitizer' => 'text',
        'tooltip' => _x('This is the method used to sort products by rating on the shop page.', 'admin-text', 'site-reviews'),
        'type' => 'select',
    ],
    'settings.addons.woocommerce.display_empty' => [
        'default' => 'no',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'label' => _x('Display empty ratings?', 'admin-text', 'site-reviews'),
        'sanitizer' => 'text',
        'tooltip' => _x('This will display the rating stars even if the product has no reviews.', 'admin-text', 'site-reviews'),
        'type' => 'yes_no',
    ],
    'settings.addons.woocommerce.wp_comments' => [
        'default' => 'no',
        'depends_on' => [
            'settings.addons.woocommerce.enabled' => ['yes'],
        ],
        'description' => _x('This may fix issues with other plugins which query WooCommerce product reviews. Keep in mind that enabling this option may also cause conflicts with incompatible plugins.', 'admin-text', 'site-reviews'),
        'label' => _x('Filter Comment Queries', 'admin-text', 'site-reviews'),
        'tooltip' => _x('This will filter the output of the wp_comments() function when it\'s used to query WooCommerce product reviews.', 'admin-text', 'site-reviews'),
        'sanitizer' => 'text',
        'type' => 'yes_no',
    ],
];

Youez - 2016 - github.com/yon3zu
LinuXploit