Plugin Directory

Changeset 3263025


Ignore:
Timestamp:
03/27/2025 04:40:40 PM (12 months ago)
Author:
tmutstudio
Message:

v 1.1.0

Location:
alternative-site-settings
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • alternative-site-settings/trunk/altss.php

    r3144173 r3263025  
    44 * Plugin URI:  https://github.com/tmutstudio/alternative-site-settings
    55 * Description: Plugin for managing site settings, including feedback forms, photo gallery, reviews and contacts.
    6  * Version:     1.0.1
     6 * Version:     1.1.0
    77 * Author:      tmutarakan-dev
    88 * Author URI:  https://github.com/tmutstudio
     
    2525define( 'ALTSITESET_LANG_DIR' , ALTSITESET_DIR . "/languages" );
    2626
    27 define( 'ALTSITESET__VERSION', '1.0.1' );
     27define( 'ALTSITESET__VERSION', '1.1.0' );
    2828
    2929define( 'ALTSITESET_CFORMS_AMOUNT', 10 );
     
    150150$altss_settings_options = get_option( "altss_settings_options" );
    151151
     152if( isset( $altss_settings_options['disable_all_comments'] ) ){
     153    $disable_all_comments = new ALTSS_Disable_ALL_Comments();
     154}
    152155
    153156
  • alternative-site-settings/trunk/classes/class.Installer.php

    r3144173 r3263025  
    11<?php
    2 /* WP Site Settings Plugin
     2/* Alternative Site Settings Plugin
    33 * Installer class
    44 *
  • alternative-site-settings/trunk/classes/class.Reviews_List_Table.php

    r3144173 r3263025  
    11<?php
    2 /* WP Site Settings Plugin
     2/* Alternative Site Settings Plugin
    33 * Reviews Table class
    44 *
  • alternative-site-settings/trunk/includes/admin-plugin-functions.php

    r3144173 r3263025  
    22if ( ! defined( 'ABSPATH' ) ) exit;
    33
    4 function altss_add_editior_field( $textarea_name, $content='', $rows=20, $mode='full', $body_class='' ){
     4function altss_add_editior_field( $textarea_name, $content='', $rows=20, $mode='full', $body_class='', $media_buttons = 1 ){
    55    $editor_id = preg_replace( "/[\[\]]/", "_", $textarea_name );
    66    if( 'full' === $mode ){
     
    2020        ];
    2121       
    22         $media_buttons = 1;
     22       
    2323        $quicktags = 1;
    2424    }
  • alternative-site-settings/trunk/includes/sub-includes/cforms-settings-tab-1.php

    r3144173 r3263025  
    8282                            </div>
    8383                            <div class="site-settings-cform-setfield">
    84                                 <label for=" name="<?php echo esc_attr( $formTitleShow );?>"">
     84                                <label for="<?php echo esc_attr( $formTitleShow );?>">
    8585                                <input type="checkbox" value="1" id="<?php echo esc_attr( $formTitleShow );?>" name="<?php echo esc_attr( $formTitleShow );?>"<?php checked($$formTitleShow, 1);?> />
    8686                                - <?php esc_html_e( "display form title", "altss" );?>
     
    8888                            </div>
    8989                            <div class="site-settings-cform-setfield">
    90                                 <label for=" name="<?php echo esc_attr( $formDescShow );?>"">
     90                                <label for="<?php echo esc_attr( $formDescShow );?>">
    9191                                <input type="checkbox" value="1" id="<?php echo esc_attr( $formDescShow );?>" name="<?php echo esc_attr( $formDescShow );?>"<?php checked($$formDescShow, 1);?> />
    9292                                - <?php esc_html_e( "display form description", "altss" );?>
  • alternative-site-settings/trunk/includes/sub-includes/start-page-tab-0.php

    r3144173 r3263025  
    7474                                        </div>
    7575                                        <label class="onoffswitch-label-text" for="altss_settings_options_collapse_admin_bar">-  <?php esc_html_e( "check the box to collapse the admin bar on the front end to the upper left corner", "altss" ); ?></label>
     76                                    </div>
     77                                </dd>
     78                                <dt><p><?php esc_html_e( "Disable absolutely all comments on the site", "altss" ); ?>:</p></dt>
     79                                <dd>
     80                                    <div class="onoffswitch-over">
     81                                        <div class="onoffswitch-left">
     82                                            <input type="checkbox" id="altss_settings_options_disable_all_comments" name="altss_settings_options[disable_all_comments]" class="onoffswitch-checkbox" value="1"<?php checked( ( isset( $altss_settings_options['disable_all_comments'] ) ? 1 : 0 ), 1); ?> />
     83                                            <label class="onoffswitch-label" for="altss_settings_options_disable_all_comments"></label>
     84                                        </div>
     85                                        <label class="onoffswitch-label-text" for="altss_settings_options_disable_all_comments">-  <?php esc_html_e( "check the box to disable absolutely all comments on the site", "altss" ); ?></label>
    7686                                    </div>
    7787                                </dd>
  • alternative-site-settings/trunk/languages/altss-ru_RU.po

    r3144173 r3263025  
    224224msgstr "установите флажок, чтобы свернуть панель администратора на фронтэнде в левый верхний угол"
    225225
     226msgid "check the box to disable absolutely all comments on the site"
     227msgstr "установите флажок, чтобы отключить абсолютно все комментарии на сайте"
     228
    226229msgid "City"
    227230msgstr "Город"
     
    308311msgstr "Поле для тега Description"
    309312
     313msgid "Disable absolutely all comments on the site"
     314msgstr "Отключить абсолютно все комментарии на сайте"
     315
    310316msgid "disable comments for this post type"
    311317msgstr "отключить комментарии для этого типа записей"
  • alternative-site-settings/trunk/readme.txt

    r3144200 r3263025  
    22Tags: settings, custom records, reviews, contact forms
    33Requires at least: 5.9
    4 Tested up to: 6.5.3
    5 Stable tag: 1.0.1
     4Tested up to: 6.7.2
     5Stable tag: 1.1.0
    66Requires PHP: 7.2
    77License: GPLv2 or later
     
    2222* Contact forms with a minimum set of seven fields. They satisfy the basic needs when using pop-up feedback forms.
    2323* The "Reviews" section allows you to organize moderated reviews from site visitors.
     24* It is possible to collapse the top admin panel on the frontend to the upper left corner.
     25* Version 1.1.0 adds the ability to completely disable comments on the site.
    2426
    2527Attention! The plugin is focused on working with classic themes.
     
    2729== Changelog ==
    2830
     31= 1.1.0 =
     32* Added a PHP class, which allows you to disable all the comments on the site. The class is activated if the corresponding Chekbox is checked in the Admin panel.
     33* Minor changes have been made to the altss_add_editior_field() function, allowing for more flexible control over the connection of the classic editor.
     34* Fixed errors in HTML code on the Form Sets page in the admin panel.
     35
    2936= 1.0.1 =
    30 Initial release.
     37* Initial release.
    3138
    3239== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.