ddw_wcde_help_content_footer

Create and display plugin help tab content for "footer info" part.

Description

(string) ddw_wcde_help_content_footer( (bool) $echo = true ); 

Returns (string)

HTML help content footer info.

Parameters (1)

0. $echo — Optional. (bool) => true
The echo.

Usage

  1. if ( !function_exists( 'ddw_wcde_help_content_footer' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-german-de_de/includes/wcde-admin-extras.php'; 
  3.  
  4. // The echo. 
  5. $echo = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ddw_wcde_help_content_footer($echo); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wcde-admin-extras.php  
  1. function ddw_wcde_help_content_footer( $echo = TRUE ) { 
  2.  
  3. $wcde_info = (array) ddw_wcde_info_values(); 
  4.  
  5. $wcde_legal_style = 'style="color: #cc0000;"'; 
  6.  
  7. /** Set first release year */ 
  8. $release_first_year = ( '' != $wcde_info[ 'first_release' ] && date( 'Y' ) != $wcde_info[ 'first_release' ] ) ? $wcde_info[ 'first_release' ] . '–' : ''; 
  9.  
  10. $wcde_footer_content = '<p><h4>' . __( 'Important plugin links:', 'woocommerce-german' ) . '</h4>' .  
  11. '<a class="button" href="' . esc_url( $wcde_info[ 'url_plugin' ] ) . '" target="_new" title="' . __( 'Plugin Website', 'woocommerce-german' ) . '">' . __( 'Plugin Website', 'woocommerce-german' ) . '</a>' . 
  12.  
  13. '  <a class="button" href="' . esc_url( $wcde_info[ 'url_wporg_faq' ] ) . '" target="_new" title="' . __( 'FAQ', 'woocommerce-german' ) . '">' . __( 'FAQ', 'woocommerce-german' ) . '</a>' . 
  14.  
  15. '  <a class="button" href="' . esc_url( $wcde_info[ 'url_wporg_forum' ] ) . '" target="_new" title="' . __( 'Support', 'woocommerce-german' ) . '">' . __( 'Support', 'woocommerce-german' ) . '</a>' . 
  16.  
  17. '  <a class="button" href="' . esc_url( $wcde_info[ 'url_snippets' ] ) . '" target="_new" title="' . __( 'Code Snippets for Customization', 'woocommerce-german' ) . '">' . __( 'Code Snippets', 'woocommerce-german' ) . '</a>' . 
  18.  
  19. '  <a class="button" href="' . esc_url( $wcde_info[ 'url_translate' ] ) . '" target="_new" title="' . __( 'Translations', 'woocommerce-german' ) . '">' . __( 'Translations', 'woocommerce-german' ) . '</a>' . 
  20.  
  21. '  <a class="button" href="' . esc_url( $wcde_info[ 'url_donate' ] ) . '" target="_new" title="' . __( 'Donate', 'woocommerce-german' ) . '"><strong ' . $wcde_legal_style . '>' . __( 'Donate', 'woocommerce-german' ) . '</strong></a></p>'; 
  22.  
  23. $wcde_footer_content .= '<p><a href="' . esc_url( $wcde_info[ 'url_license' ] ) . '" target="_new" title="' . esc_attr( $wcde_info[ 'license' ] ). '">' . esc_attr( $wcde_info[ 'license' ] ). '</a> © ' . $release_first_year . date( 'Y' ) . ' <a href="' . esc_url( ddw_wcde_plugin_get_data( 'AuthorURI' ) ) . '" target="_new" title="' . esc_attr__( ddw_wcde_plugin_get_data( 'Author' ) ) . '">' . esc_attr__( ddw_wcde_plugin_get_data( 'Author' ) ) . '</a></p>'; 
  24.  
  25. /** Make filterable */ 
  26. $output = apply_filters( 'wcde_filter_help_footer_content', $wcde_footer_content ); 
  27.  
  28. /** Output */ 
  29. if ( $echo ) { 
  30.  
  31. echo $output; 
  32.  
  33. } else { 
  34.  
  35. return $output; 
  36.  
  37. } // end if 
  38.  
  39. } // end of function ddw_wcde_help_content_footer