Plugin Directory

Changeset 2946872


Ignore:
Timestamp:
08/03/2023 02:18:26 AM (2 years ago)
Author:
ryviu
Message:

Fixed Priority bug

Location:
ryviu/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ryviu/trunk/includes/settings.php

    r2922607 r2946872  
    106106            'ryviu-setting-admin' // Page
    107107        );
    108 
    109108        foreach ($this->general_settings() as $field) {
    110109            add_settings_field(
     
    158157
    159158        $fields_setting[] = array(
    160             'name' => 'priority_position_display',
     159            'name' => 'priority_position_display_widget',
    161160            'title' => 'Priority position'
    162161        );
     
    262261    public function select_field($name){
    263262        $select = isset($this->options[$name])? $this->options[$name] : 1;
    264         $priority_select = isset($this->options['priority_'.$name])?$this->options['priority_'.$name] : 10;
    265263        echo '<select id="position_display" class="ryviu_settings_reviews" name="ryviu_settings_reviews['.$name.']">';
    266264        foreach (ryviu_display_position_hook($name) as $key => $data) {
     
    269267        echo '</select>';
    270268        if($name == 'position_display_widget'){
     269            $priority_select = isset($this->options['priority_'.$name]) ? $this->options['priority_'.$name] : 10;
    271270            echo '<span class="priority-label">Priority</span><select name="ryviu_settings_reviews[priority_'.$name.']">';
    272271            foreach([6, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80] as $priority){
     
    355354        echo '</select>';
    356355
    357         echo '<p class="description">Show Question and Answer on the default position (Only support premium accounts)</p>';
     356        echo '<p class="description">Show Question and Answer on the default position (Only support Ryviu\'s premium accounts)</p>';
    358357        echo '<p class="custom_position_display_reviews r--alshow">Add our PHP code or Shortcode anywhere in the single product page: <code><input class="medium-text" type="text" readonly="readonly" value="<?php do_action( \'ryviu_question_and_answer\' ); ?>" style="min-width: 315px;color: #000;" /><input class="medium-text" type="text" readonly="readonly" value="[ryviu_question_and_answer]" style="min-width: 315px;color: #000;" /></code></p>';
    359358    }
  • ryviu/trunk/readme.txt

    r2922607 r2946872  
    66Tested up to: 6.2
    77WC requires at least: 3.0
    8 WC tested up to: 7.7
     8WC tested up to: 7.8
    99Stable tag: 5.*
    1010License: GPLv2 or later
  • ryviu/trunk/ryviu.php

    r2922607 r2946872  
    2020 * Tested up to:      6.2
    2121 * WC requires at least: 3.0
    22  * WC tested up to:   7.7
     22 * WC tested up to:   7.8
    2323 * Author:            Ryviu
    2424 * Author URI:        https://www.ryviu.com
Note: See TracChangeset for help on using the changeset viewer.