Support » Plugin: Exit Popup » Allow user define width and height in % or px

  • Resolved thiagomsouza

    (@thiagomsouza)


    Hello I’ve made some changes on plugin to allow the user define if the width and height will be px or %.

    On file: exit-popup.php

    the main modification is in line 172, I removed the hardcoded px. It should be defined on parameter width or height:

    <div class='exitpopup-modal-window' style='width:<?php echo esc_attr( get_option('exit_popup_modal_width') ); ?> !important; height:<?php echo esc_attr( get_option('exit_popup_modal_height') ); ?> !important;'>

    I changed also the parameters, to teach user to define correct values on width and height (lines: 42 to 53)

    
    <tr valign="top">
    			<th scope="row">Modal Width (px or %)</th>
    			<td>
    				<input type="text" size="10" name="exit_popup_modal_width" value="<?php echo esc_attr( get_option('exit_popup_modal_width') ); ?>" /><br /><small>Ex. 500px or 50%</small>
    			</td>
    		</tr>
            <tr valign="top">
    			<th scope="row">Modal Height (px or %)</th>
    			<td>
    				<input type="text" size="10" name="exit_popup_modal_height" value="<?php echo esc_attr( get_option('exit_popup_modal_height') ); ?>" /><br /><small>Ex. 300px or 50%</small>
    			</td>
    		</tr>
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Allow user define width and height in % or px’ is closed to new replies.