-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from VSEphpbb/update-b3
Prep beta 3 release
- Loading branch information
Showing
10 changed files
with
272 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ services: | |
arguments: | ||
- @config | ||
- @template | ||
- @user | ||
tags: | ||
- { name: event.listener } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* | ||
* Lightbox extension for the phpBB Forum Software package. | ||
* | ||
* @copyright (c) 2015 Matt Friedman | ||
* @license GNU General Public License, version 2 (GPL-2.0) | ||
* | ||
*/ | ||
|
||
/** | ||
* DO NOT CHANGE | ||
*/ | ||
if (!defined('IN_PHPBB')) | ||
{ | ||
exit; | ||
} | ||
|
||
if (empty($lang) || !is_array($lang)) | ||
{ | ||
$lang = array(); | ||
} | ||
|
||
$lang = array_merge($lang, array( | ||
'LIGHTBOX_SETTINGS' => 'Lightbox settings', | ||
'LIGHTBOX_MAX_WIDTH' => 'Maximum image width in pixel', | ||
'LIGHTBOX_MAX_WIDTH_EXPLAIN' => 'Images that exceed this width will be resized and can be enlarged using the Lightbox effect. Set this value to 0 to disable image resizing.', | ||
'LIGHTBOX_GALLERY' => 'Allow gallery mode', | ||
'LIGHTBOX_GALLERY_EXPLAIN' => 'Allows easy navigation between all resized images on the page using the Lightbox effect.', | ||
'LIGHTBOX_SIGNATURES' => 'Resize signature images', | ||
'LIGHTBOX_SIGNATURES_EXPLAIN' => 'Allow images used in signatures to be resized.', | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* | ||
* Lightbox extension for the phpBB Forum Software package. | ||
* | ||
* @copyright (c) 2015 Matt Friedman | ||
* @license GNU General Public License, version 2 (GPL-2.0) | ||
* | ||
*/ | ||
|
||
namespace vse\lightbox\migrations; | ||
|
||
class m1_add_configs extends \phpbb\db\migration\migration | ||
{ | ||
public function effectively_installed() | ||
{ | ||
return isset($this->config['lightbox_max_width']); | ||
} | ||
|
||
static public function depends_on() | ||
{ | ||
return array('\phpbb\db\migration\data\v310\gold'); | ||
} | ||
|
||
public function update_data() | ||
{ | ||
return array( | ||
array('config.add', array('lightbox_max_width', 0)), | ||
array('config.add', array('lightbox_gallery', 0)), | ||
array('config.add', array('lightbox_signatures', 0)), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% if S_LIGHTBOX_RESIZE %} | ||
{% if LIGHTBOX_RESIZE_WIDTH %} | ||
<!-- INCLUDECSS @vse_lightbox/../template/lightbox/css/lightbox.css --> | ||
{% endif %} |
Oops, something went wrong.