Connections Business Directory
[resolved] [Plugin: Connections] Image Style Removal So Class Will Work (3 posts)

  1. Jandal
    Posted 5 years ago #

    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.

    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,


  2. shazahm1
    Plugin Author

    Posted 5 years ago #

    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.

  3. Jandal
    Posted 5 years ago #

    Ah, no I didn't know I could use !important, that explains a few things ;-)

    Thank you,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic