Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementation of jitr with Fancybox #1

Closed
gb5256 opened this issue May 28, 2012 · 4 comments
Closed

implementation of jitr with Fancybox #1

gb5256 opened this issue May 28, 2012 · 4 comments
Assignees
Milestone

Comments

@gb5256
Copy link

gb5256 commented May 28, 2012

There was in the yii forums a comment about how to combine the functionality of jitr with Fancybox.
I have successfully made the changes to the code as suggested but now fancybox is throwing errors, like that there is no property called TARGET etc.
So it seems like there have been some changes to Fancybox code as well.
Does anybody have all the code working?

Thanks for this.
gb5256

@sensorario
Copy link
Owner

Can you give me the link? I need to reproduce the error to fix it. Also, I suggest you to try Lyiightbox =).

@gb5256
Copy link
Author

gb5256 commented May 28, 2012

Hi,
This is what I did:
http://pastebin.com/rNfz3gn1
But I have not used all of this as it is based on an old version of your script.
So basically I have only added this:
public $rel = null;
And changed this:
public function run()
{

    echo '<a href="'.Yii::app()->baseUrl .'/images/jitr/big/'.$this->image.'" rel="' . $this->getRel() .  '"><img src="' . Yii::app()->baseUrl . '/images/jitr/' . $this->display . '/' . $this->image . '" title="' . $this->getTitle() . '" alt="' . $this->getAlt() . '"/></a>';
}

And in the view I have this:
$this->widget('ext.EJustInTimeR', array( 'image' => 'foo.jpg', 'rel' =>'gallery', ));
$this->widget('ext.lyiightbox.LyiightBox2', array( 'target'=>'a[rel=gallery]', 'config'=>array(), ) );
But then I get an error, saying that lightbox does not have the property Target.

Do I miss something?
What do you mean with "Also, I suggest you to try Lyiightbox =)."

@sensorario
Copy link
Owner

@ghost ghost assigned sensorario Nov 18, 2012
@sensorario
Copy link
Owner

I'll close this issue: I am working at version 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants