Commit 07860612 authored by patrick-proulx's avatar patrick-proulx

[ENH] Implemented the Equal Height Rows JS plugin into Tiki

parent d2f17c8c
......@@ -4,8 +4,19 @@
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "b0e6267c04ceb7f313faa4987921a0ea",
"hash": "8c8939ef7314613be052910e7f0403ed",
"packages": [
{
"name": "Sam152/Javascript-Equal-Height-Responsive-Rows",
"version": "1.0.0",
"dist": {
"type": "zip",
"url": "https://composer.tiki.org/dist/sam152-javascript-equal-height-responsive-rows-1.0.0.zip",
"reference": "1.0.0",
"shasum": "fd52c7dafa7ef233d005dceff8212add2d4a7136"
},
"type": "library"
},
{
"name": "adodb/adodb",
"version": "5.18",
......
......@@ -2819,6 +2819,14 @@ function prefs_feature_list($partial = false)
'default' => 'y',
'tags' => array('advanced'),
),
'feature_equal_height_rows_js' => array(
'name' => tra('Enable Equal Height Rows JS Pugin'),
'description' => tra('This allows responsive rows to be set so that each contained element has the same height '),
'type' => 'flag',
'default' => 'n',
'help' => "https://github.com/Sam152/Javascript-Equal-Height-Responsive-Rows",
'tags' => array('advanced'),
),
'feature_theme_control_savesession' => array(
'name' => tra('Store session variable for current theme'),
'description' => tra('Store a session variable for current theme so that it can be used for auto-selecting a category when categorizing'),
......
......@@ -203,6 +203,7 @@
</div>
{preference name=feature_jscalendar}
{preference name=feature_hidden_links}
{preference name=feature_equal_height_rows_js}
</div>
</fieldset>
{/tab}
......
......@@ -510,6 +510,10 @@ $headerlib->add_cssfile('vendor/jquery/plugins/treetable/stylesheets/jquery.tree
$headerlib->add_jsfile('vendor/cwspear/bootstrap-hover-dropdown/bootstrap-hover-dropdown.js');
if ($prefs['feature_equal_height_rows_js'] == 'y'){
$headerlib->add_jsfile("vendor/Sam152/Javascript-Equal-Height-Responsive-Rows/grids.min.js");
}
if (empty($user) && $prefs['feature_antibot'] == 'y') {
$headerlib->add_jsfile_late('lib/captcha/captchalib.js');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment