Giter Club home page Giter Club logo

radio-buttons-for-taxonomies's People

Contributors

banago avatar stephenh1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

radio-buttons-for-taxonomies's Issues

static versus php 5.2

This code :
public static function remove_meta_box(){ remove_meta_box(static::$taxonomy_metabox_id, static::$post_type, 'normal'); } public function add_meta_box() { add_meta_box( 'mytaxonomy_id', 'Formats',array(__CLASS__,'metabox'), static::$post_type ,'side','core'); }

Is giving me this error on my live server:
Parse error: syntax error, unexpected T_STATIC, expecting ')'

Which probably has to do with the fact my server is still running PHP 5.2.17 ?
Since I can't upgrade the PHP version: is there any other option to make this work?

Script duplicating radio button behavior?

This isn't so much an issue as it just seemed the easiest place to ask. I'm actually converting this to a full WP plugin that can be used on any taxonomy by checking a box in the settings. I was looking over the script and I can't tell why the following is necessary?

   $('.postbox').on('click', $('#' + taxonomy + 'checklist li :radio, #' + taxonomy + 'checklist-pop :radio'), function(){  
        var t = $(this), c = t.is(':checked'), id = t.val();  
        $('#' + taxonomy + 'checklist li :radio, #' + taxonomy + 'checklist-pop :radio').prop('checked',false);  
        $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );  
    });  

isn't it just attempting to replicate standard radio button behavior or is it doing something else? thanks for this great piece of code. cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.