REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.56 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/framework/function/widget-util.php
Text
Base64
<?php /* * Goodlayers Widget Utility */ if( !class_exists('tourmaster_widget_util') ){ class tourmaster_widget_util{ // get option as html static function get_option($options){ if( !empty($options) ){ foreach($options as $option_slug => $option){ echo '<p>'; if( !empty($option['title']) ){ echo '<label for="' . esc_attr($option['id']) . '" >' . $option['title'] . '</label>'; } switch( $option['type'] ){ case 'text': echo '<input type="text" class="widefat" id="' . esc_attr($option['id']) . '" name="' . esc_attr($option['name']) . '" '; echo 'value="' . (isset($option['value'])? esc_attr($option['value']): '') . '" />'; break; case 'combobox': if( $option['options'] == 'thumbnail-size' ){ $option['options'] = tourmaster_get_thumbnail_list(); } if( empty($option['value']) && !empty($option['default']) ){ $option['value'] = $option['default']; } echo '<select class="widefat" id="' . esc_attr($option['id']) . '" name="' . esc_attr($option['name']) . '" >'; foreach( $option['options'] as $key => $value ){ echo '<option value="' . esc_attr($key) . '" ' . ((isset($option['value']) && $key == $option['value'])? 'selected': '') . ' >' . esc_html($value) . '</option>'; } echo '</select>'; break; case 'multi-combobox': if( empty($option['value']) && !empty($option['default']) ){ $option['value'] = $option['default']; } $values = empty($option['value'])? array(): explode(',', $option['value']); echo '<select multiple class="widefat" '; echo 'onChange="this.nextSibling.value = jQuery(this).val().join(',');" '; echo ' >'; foreach( $option['options'] as $key => $value ){ echo '<option value="' . esc_attr($key) . '" ' . (in_array($key, $values)? 'selected': '') . ' >' . esc_html($value) . '</option>'; } echo '</select>'; echo '<input type="hidden" id="' . esc_attr($option['id']) . '" name="' . esc_attr($option['name']) . '" value="' . esc_attr($option['value']) . '" />'; break; default: break; } // switch echo '</p>'; } // $option['type'] } // $options } // option update static function get_option_update($instances){ if( !empty($instances) ){ foreach($instances as $key => $value){ $instances[$key] = isset($value)? strip_tags($value): ''; } } return $instances; } } // class } // class_exists
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
file-system.php
3.52 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
html-option.php
31.81 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
media.php
6.67 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
page-option.php
7.87 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
plugin-option.php
21.14 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tax-option.php
3.50 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utility.php
21.48 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
widget-util.php
2.56 KB
lrw-r--r--
2024-05-28 15:48:43
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).