-
AuthorPosts
-
April 19, 2016 at 1:20 pm #919912
I see that the magnific-popup is used in Ja Decor photogallery function.
Is it possible to open an single image, which is linked in an article-text, in the magnific-popup?For example
<a href="test-image.jpg" class="maginfic-popup">Link-Text</a>
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 20, 2016 at 4:00 am #920176Hi
I am not able to get your point about the Popup . Could u give me site url and screenshot with description of the work that u want to achieve on site .
So that i can check it for you .April 20, 2016 at 5:45 am #920270This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 20, 2016 at 5:55 am #920271This reply has been marked as private.April 20, 2016 at 6:25 am #920282Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 20, 2016 at 6:49 am #920294Hi
The class is defined for the UL thumbnails . Here u can see it : http://prntscr.com/auhbgh
You need to check the classes how they defined to check them .
Beside you can simple use the modal window to show it . use modal class anywhere and it will work .Here is an example : getbootstrap.com/javascript/#modals1 user says Thank You to Pankaj Sharma for this useful post
April 20, 2016 at 8:26 am #920357Hi,
yes i know that the class is for ul defined 😉 I tested the Joomla-Modal (modal class) and it works! Thanks a lot! But i have to comment out the defined modal-class in the JA Decor-Template (bootstrap.css) to show the link in the article. Did you know for what the class are used in the Decor-Template?… found in bootstrap.css of the JA Decor-Template:
.modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; }
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 20, 2016 at 8:45 am #920369This reply has been marked as private.April 20, 2016 at 8:56 am #920371Hi,
thanks – i do it so and it works well – but not really responsive.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 21, 2016 at 1:26 am #920664This reply has been marked as private.April 22, 2016 at 6:08 am #921386I found a solution to get it work with the magnific-popup script 🙂
- I added this code in ja_decor/js/script.js
$('.imagepopup').magnificPopup({ type: 'image', closeOnContentClick: true, mainClass: 'mfp-img-mobile', image: { verticalFit: true } });
- In ja_decor/html/com_content/article/default.php changed the code of the if/else
if (preg_match("/imagepopup/i", $this->item->text)) { echo $this->item->text; }else{ echo DecorHelper::photogallery($this->item->text); }
- Add class "imagepopup" for link in any joomla content
<a class="imagepopup" title="Caption of the Image in the popup" href="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/DeLorean3.JPG/640px-DeLorean3.JPG" > <img src="https://upload.wikimedia.org/wikipedia/de/thumb/d/d2/DeLorean_logo.svg/250px-DeLorean_logo.svg.png" /> </a>
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 22, 2016 at 6:10 am #921387Hi
Great, you solved it . Thanks for Sharing it for other users .April 22, 2016 at 6:30 am #921388I found a little bug in the photogallery – the Next and Previous Arrows are not vissible. The Bug is also in your Template-Demo: http://ja-decor.demo.joomlart.com/index.php/en/about/featured-projects/83-teen-bedroom-decor
I’ve added this in custom.css – now the Arrows are visible:
.mfp-arrow-left .mfp-a, .mfp-arrow-left::after { border-right: 17px solid #fff; margin-left: 31px; margin-top:-10px; } .mfp-arrow-right .mfp-a, .mfp-arrow-right::after { border-left: 17px solid #fff; /*margin-left: 39px;*/ margin-left:0; margin-top:-10px; }
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 22, 2016 at 6:37 am #921397Hi
They seems be hidden by default to only show the images and move next -previous with arrows .
But i am sending this to concern team for re-confirm it .
thanks for report on this issue .AuthorPostsViewing 14 posts - 1 through 14 (of 14 total)This topic contains 13 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Open Image in magnific-popup
Viewing 14 posts - 1 through 14 (of 14 total)