Plugin Directory

Changeset 1973221


Ignore:
Timestamp:
11/12/2018 08:00:30 PM (7 years ago)
Author:
navigationnorth
Message:

updates for v0.6.5 readme

Location:
wp-oer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-oer/trunk/open-educational-resources.php

    r1971883 r1973221  
    586586        'oer_disable_screenshots',
    587587        '',
    588         'oer_setup_settings_field',
     588        'oer_setup_radio_field',
    589589        'oer_settings',
    590590        'oer_general_settings',
     
    594594            'class' => 'screenshot_option',
    595595            'name' =>  __('Disable Screenshots', OER_SLUG),
    596             'value' => '1'
     596            'value' => '0'
    597597        )
    598598    );
     
    602602        'oer_enable_screenshot',
    603603        '',
    604         'oer_setup_settings_field',
     604        'oer_setup_radio_field',
    605605        'oer_settings',
    606606        'oer_general_settings',
     
    663663        'oer_external_screenshots',
    664664        '',
    665         'oer_setup_settings_field',
     665        'oer_setup_radio_field',
    666666        'oer_settings',
    667667        'oer_general_settings',
     
    671671            'class' => 'screenshot_option',
    672672            'name' =>  __('Use external screenshot service', OER_SLUG),
    673             'value' => '1'
     673            'value' => '2'
    674674        )
    675675    );
     
    11361136            break;
    11371137        case "checkbox":
    1138         case "radio":
    11391138            $display_value = "";
    11401139            $selected = "";
     
    12251224        echo '</div>';
    12261225    }
     1226}
     1227
     1228function oer_setup_radio_field($arguments){
     1229    $class="";
     1230   
     1231    if (isset($arguments['class'])) {
     1232        $class = $arguments['class'];
     1233        $class = " class='".$class."' ";
     1234    }
     1235   
     1236    $val = get_option($arguments['uid']);
     1237
     1238    echo '<input name="'.$arguments['uid'].'" value="'.$arguments['value'].'" id="'.$arguments['uid'].'" '.$class.' type="'.$arguments['type'].'" ' . checked($arguments['value'], $val, false) . ' /><label for="'.$arguments['uid'].'"><strong>'.$arguments['name'].'</strong></label>';
    12271239}
    12281240
  • wp-oer/trunk/readme.txt

    r1971883 r1973221  
    22Contributors: navigationnorth, joehobson, johnpaulbalagolan, tomozaidem, arobotnamedchris
    33Tags: OER, Open Educational Resources, Education, Learning
    4 Requires at least: WordPress. 4.4
    5 Tested up to: WordPress 4.9.8
     4Requires at least: 4.4
     5Tested up to: 4.9.8
    66Stable tag: 0.6.5
    77License: GPLv3
Note: See TracChangeset for help on using the changeset viewer.