Changeset 1923696
- Timestamp:
- 08/12/2018 04:22:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
magic-liquidizer-responsive-table/trunk/magic-liquidizer-responsive-table.php
r1922841 r1923696 261 261 </p> 262 262 <p> 263 <input id="liquidizer_lite_header_selector" value="<?php echo !empty( get_option('liquidizer_lite_header_selector') ) ? get_option('liquidizer_lite_header_selector'): "thead td, thead th, tr th"; ?>" name="liquidizer_lite_header_selector" type="text">263 <input id="liquidizer_lite_header_selector" value="<?php $headerSelector = get_option('liquidizer_lite_header_selector'); echo !empty($headerSelector) ? $headerSelector : "thead td, thead th, tr th"; ?>" name="liquidizer_lite_header_selector" type="text"> 264 264 <label style="color: #333;"><?php _e('<b>Header Table Selector</b>. <code>thead td, thead th, tr th</code> default. Specify header html tag within the table.', 'ml-txt'); ?></label> 265 265 </p> 266 266 <p> 267 <input id="liquidizer_lite_bodyrow_selector" value="<?php echo !empty( get_option('liquidizer_lite_bodyrow_selector') ) ? get_option('liquidizer_lite_bodyrow_selector'): "tbody tr, tr"; ?>" name="liquidizer_lite_bodyrow_selector" type="text">267 <input id="liquidizer_lite_bodyrow_selector" value="<?php $bodyRowSelector = get_option('liquidizer_lite_bodyrow_selector'); echo !empty($bodyRowSelector) ? $bodyRowSelector : "tbody tr, tr"; ?>" name="liquidizer_lite_bodyrow_selector" type="text"> 268 268 <label style="color: #333;"><?php _e('<b>Body Table Selector</b>. <code>tbody tr, tr</code> default. Specify `body row` html tag within the table.', 'ml-txt'); ?></label> 269 269 </p> … … 340 340 // textarea script 341 341 function execute_jquery_table_lite() { 342 $headerSelector = get_option('liquidizer_lite_header_selector'); 343 $bodyRowSelector = get_option('liquidizer_lite_bodyrow_selector'); 342 344 echo 343 345 " … … 345 347 //<![CDATA[ 346 348 jQuery(document).ready(function($) { 347 $('html').MagicLiquidizerTable({ whichelement: '".str_replace(' ', '', get_option('liquidizer_lite_wp_which_table_element'))."', breakpoint: '".str_replace(array('px','PX','Px','pX','p x',' '), '', get_option('liquidizer_lite_wp_table_width'))."', headerSelector: '".str_replace(' ', '', !empty( get_option('liquidizer_lite_header_selector') ) ? get_option('liquidizer_lite_header_selector') : "thead td, thead th, tr th")."', bodyRowSelector: '".str_replace(' ', '', !empty( get_option('liquidizer_lite_bodyrow_selector') ) ? get_option('liquidizer_lite_bodyrow_selector'): "tbody tr, tr")."', table: '".get_option('liquidizer_lite_wp_table')."' })349 $('html').MagicLiquidizerTable({ whichelement: '".str_replace(' ', '', get_option('liquidizer_lite_wp_which_table_element'))."', breakpoint: '".str_replace(array('px','PX','Px','pX','p x',' '), '', get_option('liquidizer_lite_wp_table_width'))."', headerSelector: '".str_replace(' ', '', !empty( $headerSelector ) ? $headerSelector : "thead td, thead th, tr th")."', bodyRowSelector: '".str_replace(' ', '', !empty( $bodyRowSelector ) ? $bodyRowSelector : "tbody tr, tr")."', table: '".get_option('liquidizer_lite_wp_table')."' }) 348 350 }) 349 351 //]]>
Note: See TracChangeset
for help on using the changeset viewer.