original_string: function widget( $args, $instance ) {
  
  		global $post; // setup_postdata() needs this
  
  		// Available widgets
  		$widgets = ChurchThemeFrameworkWidgets::widgetList();
  
  		// Get template filename
  		$template_file = $widgets[$this->id_base]['template_file'];
  
  		// Check if template exists
  		$template_path = CTFW_WIDGETS_WIDGET_TEMPLATE_DIR . '/' . $template_file;
  
  		// Sanitize widget instance (field values) before loading template
  		$instance = $this->ctc_sanitize( $instance );
  
  		// Make instance available to other methods used by template (e.g. get_posts())
  		$this->ctc_instance = $instance;
  
  		if( file_exists( $template_path ) ){
  			include $template_path;
  		}
  
  
  	}
code: function widget( $args, $instance ) {
  
  		global $post; // setup_postdata() needs this
  
  		// Available widgets
  		$widgets = ChurchThemeFrameworkWidgets::widgetList();
  
  		// Get template filename
  		$template_file = $widgets[$this->id_base]['template_file'];
  
  		// Check if template exists
  		$template_path = CTFW_WIDGETS_WIDGET_TEMPLATE_DIR . '/' . $template_file;
  
  		// Sanitize widget instance (field values) before loading template
  		$instance = $this->ctc_sanitize( $instance );
  
  		// Make instance available to other methods used by template (e.g. get_posts())
  		$this->ctc_instance = $instance;
  
  		if( file_exists( $template_path ) ){
  			include $template_path;
  		}
  
  
  	}
code_tokens: function widget ( $ args , $ instance ) { global $ post ; // setup_postdata() needs this // Available widgets $ widgets = ChurchThemeFrameworkWidgets :: widgetList ( ) ; // Get template filename $ template_file = $ widgets [ $ this -> id_base ] [ 'template_file' ] ; // Check if template exists $ template_path = CTFW_WIDGETS_WIDGET_TEMPLATE_DIR . '/' . $ template_file ; // Sanitize widget instance (field values) before loading template $ instance = $ this -> ctc_sanitize ( $ instance ) ; // Make instance available to other methods used by template (e.g. get_posts()) $ this -> ctc_instance = $ instance ; if ( file_exists ( $ template_path ) ) { include $ template_path ; } }
docstring: Front-end display of widget
  
  Load template from parent or child theme if exists.
  
  @since 0.9
  @param array $args Widget arguments
  @param array $instance Widget instance
docstring_tokens: Front - end display of widget