Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function widget($args, $instance){
- extract($args);
- $title = apply_filters('widget_title', empty($instance['title']) ? 'Choose a service' : $instance['title']);
- $lineOne = empty($instance['username']) ? '' : $instance['username'];
- $lineTwo = empty($instance['password']) ? '' : $instance['password'];
- # Before the widget
- echo $before_widget; // etc...
- $url = "http://www.nhs.uk/NHSCWS/Services/ServicesSearch.aspx?user=".[USERNAME]."&pwd=".[PASSWORD]."&q=".$_POST['PostCode']."&type=".$_POST['ServiceType']."";
- $dummy = new My_Widget_Class();
- $settings = $dummy->get_settings();
- $settings[3]
- SELECT *
- FROM `wp_options`
- WHERE `option_name`
- REGEXP '^widget_'
- LIMIT 0 , 30
- <?php echo get_option('your_widget_option_name'); ?>
- <?php add_option("my_widget_option_name", 'option_value'); ?>
- <?php $option_val = get_option("my_widget_option_name"); ?>
- $dummy = new My_Widget_Class();
- $settings = $dummy->get_settings();
- $settings = reset($settings);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement