WordPress.org

Plugin Directory

Changeset 1600504


Ignore:
Timestamp:
02/21/17 11:00:21 (6 months ago)
Author:
faina09
Message:

0.43

  • responsive design using css
Location:
wp-fevents-book/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-fevents-book/trunk/readme.txt

    r1394400 r1600504  
    44Donate link: http://goo.gl/QzIZZ 
    55Requires at least: 3.5 
    6 Tested up to: 4.5 
     6Tested up to: 4.7.2 
    77Stable tag: trunk 
    88License: GPLv2 or later 
     
    2222The Administrators can delete/add/update the Users' bookings. 
    2323 
    24 Works with PHP 5.2.12 or higher: please report any issue you find, and any feature you want. I'll try to fix the firsts and to implement the seconds! 
     24Works with PHP 5.2.12 or higher, and PHP 7.x: please report any issue you find, and any feature you want. I'll try to fix the firsts and to implement the seconds! 
    2525 
    2626If any bug found please ask me for support! 
     
    6565 
    6666== Changelog == 
     67= 0.43 = 
     68* responsive design using css 
    6769= 0.42 = 
    6870* User can delete his/her own booking 
  • wp-fevents-book/trunk/style.css

    r882804 r1600504  
    127127#toggletextmail, .btn-csv {width: 304px; height: 30px; vertical-align: middle; padding: 4px 24px;} 
    128128.entry-content .btn-center input { margin: 0;} 
     129 
     130 /* ver. 0.43 responsive design using css - div width conteining table (optional) */ 
     131 .table-responsive {width: 90%; overflow-x:auto; } 
     132 .table-responsive table {border: #ccc solid 1px;} 
     133 /* cell instructions (mandatory) */ 
     134 .table-responsive table td, .table-responsive table th {min-width: 50px; width: 24%; border: #ccc solid 1px;  
     135 word-break: normal; word-wrap: normal; text-align: center; padding: 1%;} 
     136 /* images width (optional) */ 
     137 .table-responsive table td img {max-width: 98%;} 
     138 /* fix old values */ 
     139 .wpfevent_table textarea {min-width: 100px !important;} 
     140 .tdheader {color: black !important; font-weight: bold;  text-align: center;} 
     141  
  • wp-fevents-book/trunk/wp-fevents-book.php

    r1394400 r1600504  
    579579            $btnvad = __( 'Delete my booking!', 'wp-fevents-book' ); 
    580580        } 
    581         $out = '<div style="margin-bottom: 0px; border: 2px solid ' . $evento['Colore'] . '; border-radius: 5px; padding: 5px;">'; 
     581        $out = '<div class="table-responsive" style="margin-bottom: 0px; border: 2px solid ' . $evento['Colore'] . '; border-radius: 5px; padding: 5px;">'; 
    582582        $out .= '<form name="wpfeventsbookform_' . $eventid . '" method="POST" action="' . $_SERVER["REQUEST_URI"] . '" enctype="multipart/form-data"  style="margin-bottom: 0px;">'; 
    583583        if ( $isuseradmin ) { 
     
    589589        } 
    590590        $out .= '<input type="hidden" name="idEvent" value="' . $eventid . '"> 
    591         <table id="wpfevent_' . $eventid . '" class="wpfevent_table" border="2" width="80%" > 
     591        <table id="wpfevent_' . $eventid . '" class="wpfevent_table" > 
    592592        <tbody> 
    593         <tr><th>' . __( 'Description', 'wp-fevents-book' ) . ':</th><td style="white-space: nowrap; font-weight:bold; font-size:200%; background:' . $evento['Colore'] . '">' . $evento['Descrizione'] . '</td></tr>'; 
     593        <tr><td class="tdheader">' . __( 'Description', 'wp-fevents-book' ) . ':</td><td style="white-space: nowrap; font-weight:bold; font-size:200%; background:' . $evento['Colore'] . '">' . $evento['Descrizione'] . '</td></tr>'; 
    594594        if ( $exp_date > $today && $exp_date != '' ) { 
    595             $out .= '<tr><th style="white-space: nowrap">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</th><td>' . $evento['Data'] . ' <span class="expirewarn">[' . __( 'please subscribe before', 'wp-fevents-book' ) . ' <span class="expired">' . $exp_str . '</span>]</span></td></tr>'; 
     595            $out .= '<tr><td class="tdheader">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</td><td>' . $evento['Data'] . ' <span class="expirewarn">[' . __( 'please subscribe before', 'wp-fevents-book' ) . ' <span class="expired">' . $exp_str . '</span>]</span></td></tr>'; 
    596596        } else if ( $evento['Data'] != '' ) { 
    597             $out .= '<tr><th style="white-space: nowrap">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</th><td>' . $evento['Data'] . '</td></tr>'; 
     597            $out .= '<tr><td class="tdheader">' . __( 'Date (mm/dd/yyyy)', 'wp-fevents-book' ) . ':</td><td>' . $evento['Data'] . '</td></tr>'; 
    598598        } 
    599599        if ( $evento['Luogo'] != '' ) { 
    600             $out .= '<tr><th>' . __( 'Place', 'wp-fevents-book' ) . ':</th><td>' . $evento['Luogo'] . '</td></tr>'; 
     600            $out .= '<tr><td class="tdheader">' . __( 'Place', 'wp-fevents-book' ) . ':</td><td>' . $evento['Luogo'] . '</td></tr>'; 
    601601        } 
    602602        if ( $evento['Note'] != '' ) { 
    603             $out .= '<tr><th style="white-space: nowrap">' . __( 'Event Info', 'wp-fevents-book' ) . ':</th><td>' . $evento['Note'] . '</td></tr>'; 
     603            $out .= '<tr><td class="tdheader">' . __( 'Event Info', 'wp-fevents-book' ) . ':</td><td>' . $evento['Note'] . '</td></tr>'; 
    604604        } 
    605605        //$out .= 'oggi='.$today.' scadenza='.$exp_date; 
    606606        if ( $exp_date < $today && $exp_date != '' ) { 
    607             $out .= '<tr><th></th><td style="font-weight:bold; background:' . $evento['Colore'] . '; color: #666666;">' . __( 'Event EXPIRED', 'wp-fevents-book' ) . ' ' . $exp_str . '</td></tr>'; 
     607            $out .= '<tr><td></td><td style="font-weight:bold; background:' . $evento['Colore'] . '; color: #666666;">' . __( 'Event EXPIRED', 'wp-fevents-book' ) . ' ' . $exp_str . '</td></tr>'; 
    608608        } else { 
    609609            $out .= '<tr> 
    610             <th>' . __( 'User', 'wp-fevents-book' ) . ':</th> 
     610            <td class="tdheader">' . __( 'User', 'wp-fevents-book' ) . ':</td> 
    611611            <td>' . $username . ' <input type="' . $enablesubmit . '" name="cmdSubmit" value="' . $btnval . '" style="background-color:' . $evento['Colore'] . ';">'; 
    612612            if ( $idUser != 0 && $usernote != '' ) { 
     
    621621        if ( $evento['scelte'] ) { 
    622622            $out .= '<tr> 
    623             <th valign="top">' . $evento['sceltatxt'] . ':</th> 
     623            <td class="tdheader" valign="top">' . $evento['sceltatxt'] . ':</td> 
    624624            <td>'; 
    625625            $out .= ' 
     
    634634            $tmx = $evento['teamfirst'] + $evento['teamnumbers']; 
    635635            $out .= '<tr> 
    636             <th valign="top">' . __( 'Team number', 'wp-fevents-book' ) . ':</th> 
     636            <td class="tdheader" valign="top">' . __( 'Team number', 'wp-fevents-book' ) . ':</td> 
    637637            <td><input type="number" name="NrUserTeam" value="' . $usteam . '"  min="' . $evento['teamfirst'] . '" max="' . $tmx . '"></td> 
    638638            </tr>'; 
    639639        } 
    640640        $out .= '<tr> 
    641         <th valign="top">' . __( 'User notes', 'wp-fevents-book' ) . ':</th> 
     641        <td class="tdheader" valign="top">' . __( 'User notes', 'wp-fevents-book' ) . ':</td> 
    642642        <td><textarea name="txtComments" rows="3" >' . $usernote . '</textarea></td> 
    643643        </tr>'; 
    644644        if ( $evento['conferma'] ) { 
    645645            $out .= '<tr> 
    646             <th valign="top">' . __( 'Confirmed', 'wp-fevents-book' ) . ':</th> 
     646            <td class="tdheader" valign="top">' . __( 'Confirmed', 'wp-fevents-book' ) . ':</td> 
    647647            <td><input type="checkbox" name="boolConfrm" /></td> 
    648648            </tr>'; 
Note: See TracChangeset for help on using the changeset viewer.