| 1 |
<?php |
| 2 |
/** |
| 3 |
* Include files |
| 4 |
* |
| 5 |
* @package Wow_Plugin |
| 6 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 8 |
* @since 1.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) exit; |
| 12 |
|
| 13 |
$html_code = array( |
| 14 |
'id' => 'html_code', |
| 15 |
'name' => 'content_html', |
| 16 |
'type' => 'textarea', |
| 17 |
'val' => isset( $param['content_html'] ) ? $param['content_html'] : '', |
| 18 |
); |
| 19 |
$html_code_help = array ( |
| 20 |
'text' => __('Enter your HTML code', 'wpcoder'), |
| 21 |
); |
| 22 |
|
| 23 |
?> |
| 24 |
|
| 25 |
<div id="include_file" > |
| 26 |
<?php $count_include = !empty( $param['include'] ) ? count( $param['include'] ) : 0; |
| 27 |
if ( $count_include > 0 ) { |
| 28 |
for ( $i = 0; $i < $count_include; $i++ ) { ?> |
| 29 |
<div class="wow-container include-file"> |
| 30 |
<div class="wow-element"> |
| 31 |
Type of file:<br/> |
| 32 |
<select name="param[include][<?php echo $i;?>]"> |
| 33 |
<option <?php selected( $param['include'][$i], 'css' ); ?>>css</option> |
| 34 |
<option <?php selected( $param['include'][$i], 'js' ); ?>>js</option> |
| 35 |
</select> |
| 36 |
</div> |
| 37 |
<div class="wow-element"> |
| 38 |
URL to file:<br/> |
| 39 |
<input type="text" name="param[include_file][<?php echo $i;?>]" value="<?php echo $param['include_file'][$i]; ?>"> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
<?php |
| 43 |
} |
| 44 |
} |
| 45 |
?> |
| 46 |
</div> |
| 47 |
<div class="submit-bottom"> |
| 48 |
<input type="button" value="Add new" class="add-item" onclick="itemadd()"> |
| 49 |
<input type="button" class="delete-item" value="Delete last" onclick="itemremove()"> |
| 50 |
</div> |