Plugin Directory

Changeset 1923696


Ignore:
Timestamp:
08/12/2018 04:22:18 PM (8 years ago)
Author:
esstat17
Message:

Bug fix for Fatal Error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • magic-liquidizer-responsive-table/trunk/magic-liquidizer-responsive-table.php

    r1922841 r1923696  
    261261            </p>
    262262            <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">
    264264                <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>
    265265            </p>
    266266            <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">
    268268                <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>
    269269            </p>
     
    340340            // textarea script
    341341    function execute_jquery_table_lite() {
     342        $headerSelector = get_option('liquidizer_lite_header_selector');
     343        $bodyRowSelector = get_option('liquidizer_lite_bodyrow_selector');
    342344        echo
    343345"
     
    345347    //<![CDATA[
    346348    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')."' })
    348350    })
    349351    //]]>
Note: See TracChangeset for help on using the changeset viewer.