芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/_syntaxis.fr/wp-content/themes/chimera/inc/widgets.php
'widget_chimera_contact', 'description' => __( 'Use this widget to provide contact details for the visitor including address, telephone number, and email.' , 'chimera' ) ) ); } /* * Outputs the content of the widget * * @param array $args * @param array $instance */ function widget( $args , $instance ) { extract( $args ); $title = apply_filters( 'widget_title' , $instance['title'] ); $message = $instance['message']; $address = $instance['address']; $tel = $instance['tel']; $email = $instance['email']; ?> ' . $message . ''; } ?>
'widget_chimera_flickr', 'description' => __( 'Use this widget to display a small gallery of images from your Flickr profile.' , 'chimera' ) ) ); } /* * Outputs the content of the widget * * @param array $args * @param array $instance */ function widget( $args , $instance ) { extract( $args ); $title = apply_filters( 'widget_title' , $instance['title'] ); $user_id = $instance['user_id']; $tags = $instance['tags']; // -- If the value is not mumeric, set a default value -- // if( is_numeric( $instance['limit'] ) ) { $limit = $instance['limit']; } else { $limit = 9; } /* * ZFlickr Feed Script * * http://www.zazar.net/developers/jquery/zflickrfeed/ * */ wp_enqueue_script( 'chimera-zflickr' , get_template_directory_uri() . '/js/jquery.zflickrfeed.js' , array( 'jquery' ) , '1.0.2' , true ); ?>
'widget_chimera_recent_posts', 'description' => __( 'Use this widget to display a list of recent posts along with a post thumbnail if it has one.' , 'chimera' ) ) ); } /* * Outputs the content of the widget * * @param array $args * @param array $instance */ function widget( $args , $instance ) { extract( $args ); $title = apply_filters( 'widget_title' , $instance['title'] ); $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 3; if ( ! $number ) { $number = 3; } $query = new WP_Query( apply_filters( 'widget_posts_args' , array( 'posts_per_page' => $number , 'no_found_rows' => true , 'post_status' => 'publish' , 'ignore_sticky_posts' => true ) ) ); if( $query->have_posts() ) : echo $before_widget; if ( $title ){ echo $before_title . $title . $after_title; } ?> have_posts() ) : $query->the_post(); ?>