Skip to content

Commit

Permalink
Preparing v0.8.2 release
Browse files Browse the repository at this point in the history
Fixes #38
Fixes #39
Fixes #40
  • Loading branch information
Eldenroot committed Dec 10, 2018
1 parent 9afe231 commit 0a96c57
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions inc/languages/english/mybbfancybox.lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
$l['mybbfancybox'] = 'MyBB Fancybox';

$l['mybbfancybox_uploaded'] = 'Uploaded:';
$l['mybbfancybox_views'] = 'Views:';
$l['mybbfancybox_views_symbol_after'] = 'x';

// JavaScript
$l['mybbfancybox_click_to_enlarge'] = 'Click to enlarge';
Expand Down
6 changes: 3 additions & 3 deletions inc/plugins/mybbfancybox.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function mybbfancybox_info()
"website" => "https://github.com/mybbgroup/MyBB_Fancybox",
"author" => "MyBB Group (Eldenroot & Wildcard)",
"authorsite" => "https://github.com/mybbgroup/MyBB_Fancybox",
"version" => "0.8.1",
"version" => "0.8.2",
"codename" => "mybbfancybox",
"compatibility" => "18*"
);
Expand Down Expand Up @@ -152,10 +152,10 @@ function mybbfancybox_showthread_start()
}

// Apply required changes in postbit_attachments_thumbnails_thumbnail template (replace all content)
$templates->cache['postbit_attachments_thumbnails_thumbnail'] = '<a href="attachment.php?aid={$attachment[\'aid\']}" data-fancybox="data-{$post[\'pid\']}" data-type="image" data-caption="<b>{$lang->postbit_attachment_filename}</b> {$attachment[\'filename\']} - <b>{$lang->postbit_attachment_size}</b> {$attachment[\'filesize\']} - <b>{$lang->mybbfancybox_uploaded}</b> {$attachdate} - <b>Views:</b> {$attachment[\'downloads\']}x"><img src="attachment.php?thumbnail={$attachment[\'aid\']}" class="attachment" alt="" title="{$lang->postbit_attachment_filename} {$attachment[\'filename\']}&#13{$lang->postbit_attachment_size} {$attachment[\'filesize\']}&#13{$lang->mybbfancybox_uploaded} {$attachdate}&#13Views: {$attachment[\'downloads\']}x" /></a>&nbsp;&nbsp;&nbsp;';
$templates->cache['postbit_attachments_thumbnails_thumbnail'] = '<a href="attachment.php?aid={$attachment[\'aid\']}" data-fancybox="data-{$post[\'pid\']}" data-type="image" data-caption="<b>{$lang->postbit_attachment_filename}</b> {$attachment[\'filename\']} - <b>{$lang->postbit_attachment_size}</b> {$attachment[\'filesize\']} - <b>{$lang->mybbfancybox_uploaded}</b> {$attachdate} - <b>{$lang->mybbfancybox_views}</b> {$attachment[\'downloads\']}{$lang->mybbfancybox_views_symbol_after}"><img src="attachment.php?thumbnail={$attachment[\'aid\']}" class="attachment" alt="" title="{$lang->postbit_attachment_filename} {$attachment[\'filename\']}&#13{$lang->postbit_attachment_size} {$attachment[\'filesize\']}&#13{$lang->mybbfancybox_uploaded} {$attachdate}&#13{$lang->mybbfancybox_views} {$attachment[\'downloads\']}{$lang->mybbfancybox_views_symbol_after}" /></a>&nbsp;&nbsp;&nbsp;';

// Apply required changes in postbit_attachments_images_image template (replace all content)
$templates->cache['postbit_attachments_images_image'] = '<a target="_blank" data-fancybox="data-{$attachment[\'pid\']}" data-type="image"><img src="attachment.php?aid={$attachment[\'aid\']}" class="attachment" alt="" title="{$lang->postbit_attachment_filename} {$attachment[\'filename\']}&#13{$lang->postbit_attachment_size} {$attachment[\'filesize\']}&#13{$lang->mybbfancybox_uploaded} {$attachdate}&#13Views: {$attachment[\'downloads\']}x" /></a>&nbsp;&nbsp;&nbsp;';
$templates->cache['postbit_attachments_images_image'] = '<a target="_blank" data-fancybox="data-{$attachment[\'pid\']}" data-type="image"><img src="attachment.php?aid={$attachment[\'aid\']}" class="attachment" alt="" title="{$lang->postbit_attachment_filename} {$attachment[\'filename\']}&#13{$lang->postbit_attachment_size} {$attachment[\'filesize\']}&#13{$lang->mybbfancybox_uploaded} {$attachdate}&#13{$lang->mybbfancybox_views} {$attachment[\'downloads\']}{$lang->mybbfancybox_views_symbol_after}" /></a>&nbsp;&nbsp;&nbsp;';

$headerinclude .= <<<EOF
Expand Down
Loading

0 comments on commit 0a96c57

Please sign in to comment.