Skip to content

Commit

Permalink
make default image width configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
selfthinker committed Feb 4, 2015
1 parent 8f3ce96 commit 43d3a04
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions conf/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
$conf['edit_content_only'] = 0;
$conf['use_dataresolve'] = 1;
$conf['rownumbers'] = 0;
$conf['image_width'] = 40;
1 change: 1 addition & 0 deletions conf/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
$meta['edit_content_only'] = array('onoff');
$meta['use_dataresolve'] = array('onoff');;
$meta['rownumbers'] = array('onoff');
$meta['image_width'] = array('string');
2 changes: 1 addition & 1 deletion helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function _formatData($column, $value, Doku_Renderer_xhtml $R) {
if(substr($type, 0, 3) == 'img') {
$width = (int) substr($type, 3);
if(!$width) {
$width = 40;
$width = $this->getConf('image_width');
}

list($mediaid, $title) = explode('|', $val, 2);
Expand Down
1 change: 1 addition & 0 deletions lang/en/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
// https://github.com/splitbrain/dokuwiki-plugin-data/commit/8a16166886238906c21c7babc44bccf49c7f50a1
$lang['use_dataresolve'] = 'Use DATARESOLVE calls for LIKE statements';
$lang['rownumbers'] = 'Enable "rownumbers" by default in all tables';
$lang['image_width'] = 'Default width for images';

0 comments on commit 43d3a04

Please sign in to comment.