WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Connections] Image Style Removal So Class Will Work

[Resolved] [Plugin: Connections] Image Style Removal So Class Will Work

  • Thank you for the amazing updates.

    In ‘includes/class.output.php’ for the Image functions, they have a class of “photo” but it appears the hard coded style is overriding any class settings.

    Eveytime I do an update I have to make a manual change to this page to remove the hard coded style.

    Could you please look at this issue for the next release.

    eg.
    public function getThumbnailImage( $atts = NULL )
    From this

    $out = '<img class="photo" alt="Photo of ' . $this->getFirstName() . ' ' . $this->getLastName() . '" style="-moz-border-radius:4px; background-color: #FFFFFF; border:1px solid #E3E3E3; margin-bottom:10px; padding:5px;" src="' . CN_IMAGE_BASE_URL . $this->getImageNameThumbnail() . '" />';

    To this

    $out = '<img class="photo" alt="Photo of ' . $this->getFirstName() . ' ' . $this->getLastName() . '" src="' . CN_IMAGE_BASE_URL . $this->getImageNameThumbnail() . '" />';

    Thank you,
    =-)

    http://wordpress.org/extend/plugins/connections/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shazahm1
    Participant

    @shazahm1hotmailcom

    The remaining inline style exists from old code. I’ve been working on removing it it each version. You know you can still override the inline styles by using !important when you declare the style, right? That way you you don’t have any worries during upgrades.

    Ah, no I didn’t know I could use !important, that explains a few things 😉

    Thank you,
    =-)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Connections] Image Style Removal So Class Will Work’ is closed to new replies.