ddw_wcde_help_content_rec_plugins

Help content: Recommended plugins.

Description

ddw_wcde_help_content_rec_plugins(); 

Usage

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

Defined (1)

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

/includes/wcde-admin-extras.php  
  1. function ddw_wcde_help_content_rec_plugins() { 
  2.  
  3. /** Bail early if user cannot install plugins */ 
  4. if ( ! current_user_can( 'activate_plugins' ) ) { 
  5.  
  6. return; 
  7.  
  8. } // end if 
  9.  
  10. $class_alternate = 'class="alternate"'; 
  11.  
  12. /** 4) Recommended plugins etc. */ 
  13. if ( wcde_is_german() && ! defined( 'WCABA_PLUGIN_BASEDIR' ) ) { 
  14.  
  15. $rec_plugins_wcaba_info = 'Dieses Plugin fgt der WordPress Wergzeugleiste bzw. Adminbar ntzliche Administratorenlinks und Ressourcen fr das WooCommerce Shop-Plugin hinzu.'; 
  16.  
  17. $rec_plugins_wcaba = sprintf( 
  18. '<tr> 
  19. <td class="alignright" align="right">%1$s</td> 
  20. <td>%2$s</td> 
  21. </tr>',  
  22. '<a href="http://wordpress.org/plugins/woocommerce-admin-bar-addition/" target="_new" title="WooCommerce Admin Bar Addition"><strong>WooCommerce Admin Bar Addition</strong></a>',  
  23. $rec_plugins_wcaba_info 
  24. ); 
  25.  
  26. } else { 
  27.  
  28. $rec_plugins_wcaba = ''; 
  29.  
  30. } // end if 
  31.  
  32. if ( wcde_is_german() && ! class_exists( 'WooCommerce_Delivery_Notes' ) ) { 
  33.  
  34. $rec_plugins_wcdn_info = 'Dieses Plugin stellt einfache Rechnungen und Lieferscheine fr das WooCommerce Shop Plugin bereit. Es knnen dabei auch Firmen-/ Shop-Infos ebenso wie persnliche Anmerkungen oder Bedingungen/ Widerrufsbelehrungen zu den Druckseiten hinzugefgt werden.'; 
  35.  
  36. $rec_plugins_wcdn = sprintf( 
  37. '<tr %3$s> 
  38. <td class="alignright" align="right">%1$s</td> 
  39. <td>%2$s</td> 
  40. </tr>',  
  41. '<a href="http://wordpress.org/plugins/woocommerce-delivery-notes/" target="_new" title="WooCommerce Print Invoices & Delivery Notes"><strong>WooCommerce Print Invoices & Delivery Notes</strong></a>',  
  42. $rec_plugins_wcdn_info,  
  43. $class_alternate 
  44. ); 
  45.  
  46. } else { 
  47.  
  48. $rec_plugins_wcdn = ''; 
  49.  
  50. } // end if 
  51.  
  52. $rec_plugins_more = '» <a href="http://ddwb.me/wccc" target="_new" title="' . __( 'More premium plugins/extensions at CodeCanyon Marketplace', 'woocommerce-german' ) . ' …">' . __( 'More premium plugins/extensions at CodeCanyon Marketplace', 'woocommerce-german' ) . ' …</a>' . 
  53. '<br />» <a href="http://wordpress.org/plugins/search.php?q=woocommerce" target="_new" title="' . __( 'More free plugins/extensions at WordPress.org', 'woocommerce-german' ) . ' …">' . __( 'More free plugins/extensions at WordPress.org', 'woocommerce-german' ) . ' …</a>'; 
  54.  
  55. $rec_plugins_table_content = sprintf( 
  56. '<tr %3$s> 
  57. <td class="alignright" align="right">%1$s</td> 
  58. <td>%2$s</td> 
  59. </tr>',  
  60. '<strong>Freie und Premium-Plugins</strong>',  
  61. $rec_plugins_more,  
  62. $class_alternate 
  63. ) . 
  64.  
  65. $rec_plugins_wcaba . 
  66.  
  67. $rec_plugins_wcdn; 
  68.  
  69. $rec_plugins_table_labels = sprintf( 
  70. '<tr> 
  71. <th scope="col" colspan="2">%1$s</th> 
  72. </tr>',  
  73. __( 'Other, recommended WooCommerce plugins', 'woocommerce-german' ) 
  74. ); 
  75.  
  76. echo '<table class="widefat" style="margin: 20px auto;">'; 
  77.  
  78. echo sprintf( '<thead>%1$s</thead><tfoot></tfoot>', $rec_plugins_table_labels ); 
  79.  
  80. echo $rec_plugins_table_content; 
  81.  
  82. echo '</table>'; 
  83.  
  84. } // end of function ddw_wcde_help_content_rec_plugins