Advertisement:

Author Topic: improvement to style the button +class  (Read 1203 times)

DrLightman

  • Newbie
  • *
  • Posts: 36
improvement to style the button +class
« 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.