The Fullscreen gallery module provides a new image field formatter for entity types. This formatter extends default gallery display of image fields with opening an Fullscreen gallery page while clicking on any image within gallery.
Features:
- The images are always displayed in fullscreen mode (the largest available dimension determined by browser window)
- Image thumbnails and image counter in Fullscreen gallery header line
- Fullscreen gallery defines 6 own image styles to achieve the optimal bandwidth and image load speed. The module uses the nearest fitting image style based on the current browsers width
- Automatic browser resize handling at runtime
- Media querys for mobile and tablet displays
- Optional: Display image titles (image title, image alt, or entity title)
- Optional: Possibility to use a right sidebar for gallery, with fix or percentual width. The module creates new region for gallery right sidebar, so any blocks could be displayed in gallery page
Project page: https://www.drupal.org/sandbox/zbombicz/2232407
GIT clone command: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/zbombicz/2232407.git fullscreen_gallery
Manual reviews of other projects
- https://www.drupal.org/node/2457135#comment-9789861
- https://www.drupal.org/node/2458075#comment-9789969
- https://www.drupal.org/node/2398043#comment-9480889
- https://www.drupal.org/node/2417425#comment-9812831
- https://www.drupal.org/node/2432439#comment-9835339
- https://www.drupal.org/node/2457903#comment-9840173
Comment | File | Size | Author |
---|---|---|---|
#10 | fullscreen_gallery-fixmarkdown.patch | 2.52 KB | gisle |
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
kala4ekManually code review (without installation)
fullscreen_gallery.module
fullscreen_gallery.css
fullscreen_gallery.js
Comment #3
zbombicz CreditAttribution: zbombicz at Brainsum commentedHi Kala4ek,
Thank you for your report.
I removed double empty line, but I think Its not a problem. All functions must have a doc block, and they must be separated at least by a blank line.
it is not necessary, but i think, I can put my own comments for hook functions, if It increases the lucidity of function for someone. I leave it as it is, if you think, that this one is critical, please clarify.
I dont use title on gallery pages, therefore I left it out.
Yes, you are right. I fixed it. Thank you.
Yes, you are right. I fixed it. Thank you.
Yes, you are right. I fixed it. Thank you.
Comment #4
zbombicz CreditAttribution: zbombicz commentedComment #5
hussainweb_fullscreen_gallery_page:168:
I think it would be clearer to write this out as a if-else block.
_fullscreen_gallery_page():174:
This is really a feature request, but I would suggest letting the user decide on the regions and blocks. Take a look at dashboard module. I know this is a significant feature request, but at a minimum, I would suggest to include an option for left sidebar as well.
The default fullscreen_gallery.tpl.php has a lot of div's. See if you can make them more semantic. I am thinking you can use figure and figcaption tags.
I don't think any of these are significant, just small improvements and hence not setting to Needs work.
Comment #6
rahulbaisanemca CreditAttribution: rahulbaisanemca commentedHi zbombicz,
Thank you for providing these module,
i cross checked copy of these module with coder module and i got some very minor issues can you please look into it.
3 screen shot has been attached.
Thanks,
Rahul.
Comment #7
rahulbaisanemca CreditAttribution: rahulbaisanemca commentedComment #8
zbombicz CreditAttribution: zbombicz commentedHi Hussainweb,
Thank you for your report.
If the condition is so similar, as in this case, I prefer this short type of statement. A lot of drupal core and contrib modules do the same.
Yes, it would be great. I added this one into future plans.
Comment #9
zbombicz CreditAttribution: zbombicz at Brainsum commentedHi rahulbaisanemca,
Thank you for your report.
The javascript coding standards in Drupal says (https://www.drupal.org/node/172169):
I run coding standards and pareview after all of my module modifications, but I don't see this camelCase warnings. My result is:
Coder found 1 projects, 7 files, 0 warnings were flagged to be ignored
I am a bit confused about it, if coder modules say that I shouldn't use camelCase in javascript, and a coding standards for javascript says I should. :)
I checked drupal core, and it uses camelCase too, so I decided to leave it as it is.
Comment #10
gisleYour
hook_help()
is designed to use Markdown filter (if available) to render the content, but text is not properly "marked up" for markdown. This patch remedies that.Comment #11
gisleAutomated Review
PAReview came up clean.
Manual Review
There is already exists a lot of gallery modules for Drupal. Here is a list with those I am aware of:
The way I interpret § 1.2 of the Project application checklist, is that we only block if the "differences between your modules are not too fundamental for patching an existing one".
However, users need to be informed about possible functional overlap. This should be made is section with the heading "Similar projects and how they are different" on the project's project page.
In particular, you should add the section "Similar projects and how they are different".
The only blocking issue I've found is that the project page needs a section about similar projects and how they are different.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #12
zbombicz CreditAttribution: zbombicz at Brainsum commentedHi gisle,
Thank you for your review, and for patch file (I applied it).
I added similar projects section to project page. I included only modules, which implements image field formatter, so operates such as my module. I added also a reference to gallery modules comparison article on drupal.org
Comment #13
zbombicz CreditAttribution: zbombicz commentedComment #14
gisleThanks for committing my patch. Please note that the best practice when committing a patch authored by someone else is to credit authorship with the
--author
option to git. You'll find a suggestion for the command to use if you scroll down to the bottom of this issue tracker and expand the "Credit & committing" tab and look under the "Git command" tab. In this case, the Git command should have been:git commit -m 'Issue #2465165 by gisle: [D7] Fullscreen gallery' --author="gisleh <gisleh@409554.no-reply.drupal.org>"
You don't have to do anything now. This is just FYI to tell you about best practices for responsible maintainership.
Your project page now has a section about similar projects and how they are different.
There are IMHO no more blockers. Moving to RTBC. Note that promotion will not happen until a git administrator has given this a second set of eyeballs.
Comment #15
naveenvalechaNice project!
Review of the 7.x-1.x branch (commit 6095f13):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review :
$content['image_title'] = fullscreen_gallery_get_title($photos, $img_num, $title, $display_settings);
Here is the need to sanitize the data that is passing in image_title because the data is directly passsing in fullscreen_gallery.tpl.php and it is also not sanitized there.So either add sanitization function here/Add it in the template file.Removing the review bonus.Please take another review bonus for 2nd admin review.
Comment #16
zbombicz CreditAttribution: zbombicz at Brainsum commentedHi naveenvalecha,
Thank you for your review.
Fixed.
Fixed. I added hook_help function before "Module documentation guidelines" update: https://www.drupal.org/node/161085/revisions/view/7815937/8054855. Thank you for the information about that.
I added documentation about variables.
Fixed. I added sanitization function into fullscreen_gallery_get_title.
You are right. The default clearfix class is good for my case too. I added parent selectors for anchor styling also, in order to avoid influences for basic css elements.
Please check if my module now meets the expectations. Thank you again.
Comment #17
naveenvalechaPlease don't RTBC your own issues, see the workflow: https://www.drupal.org/node/532400.
Review of the 7.x-1.x branch (commit 70b6f52):
Rest seems good to me.The status is same RTBC.
You need to get another review bonus by manual reviews of another 3 modules that would help speed up the process and will list you in the review admins radar.
Comment #18
zbombicz CreditAttribution: zbombicz commentedComment #19
zbombicz CreditAttribution: zbombicz at Brainsum commentedHi naveenvalecha,
I spend a lot of time to find an example or solution of adding js, and css with #attached in content variable. However I found a lot of examples of using drupal_add_js, drupal_add_css in drupal core also. If you have a source code for this one, please provide me a solution, or patch file. Thanks.
I added this one into feature plans of my module.
Comment #20
zbombicz CreditAttribution: zbombicz commentedComment #21
zbombicz CreditAttribution: zbombicz commentedComment #22
naveenvalechaReview of the 7.x-1.x branch (commit 70b6f52):
Assigning to @klausi to give it a final look if he has time.
Comment #23
naveenvalechaComment #24
klausiReview of the 7.x-1.x branch (commit 70b6f52):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
Comment #25
zbombicz CreditAttribution: zbombicz at Brainsum commentedHi Klausi,
Thank you for your review, and for directing my attention to the security issue about field access.
I fixed all of the mentioned bugs.
Please take a final look at my module. My last 3 commits with fixes are:
http://cgit.drupalcode.org/sandbox-zbombicz-2232407/commit/?id=d39f2ae
http://cgit.drupalcode.org/sandbox-zbombicz-2232407/commit/?id=8a6427ae
http://cgit.drupalcode.org/sandbox-zbombicz-2232407/commit/?id=5fdab0f
Comment #26
klausiThe Git commits are not connected to your user account. You need to specify an email address. See https://www.drupal.org/node/1022156 and https://www.drupal.org/node/1051722
Since this was already RTBC already and the field access security issue was the only hard blocker ...
Thanks for your contribution, zbombicz!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.