Osclass forums

Support forums => Plugins => Facebook Connect => Topic started by: DrLightman on May 06, 2014, 04:52:37 pm

Title: improvement to style the button +class
Post by: DrLightman on May 06, 2014, 04:52:37 pm
in the function that renders the button:

Code: [Select]
    function fbc_button() {
        if( !osc_is_web_user_logged_in() ) {
            echo '<div><a href="' . OSCFacebook::newInstance()->loginUrl() . '">' . __( 'Login with Facebook', 'facebook' ) . '</a></div>';
        }
    }

it would be nice to find a class appended to the a elemento or the div, so that one can style the button via css:

Code: [Select]
    function fbc_button() {
        if( !osc_is_web_user_logged_in() ) {
            echo '<div class="fbc-button-container"><a href="' . OSCFacebook::newInstance()->loginUrl() . '" class="fbc-button">' . __( 'Login with Facebook', 'facebook' ) . '</a></div>';
        }
    }

or maybe add $params = array( ) parameter to that function so that one choose the class to be applied.