Advertisement
alhoseany

wpallimport functions

Feb 4th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. // Create link for Bekijk certificaat.
  3. // Usage [vdm_link({certlink[1]})]
  4. function vdm_link($url){
  5.     $output = '';
  6.     if($url){
  7.         $output = '<a href="'.$url.'">Bekijk certificaat</a>';
  8.     }
  9.     return $output;
  10. }
  11.  
  12. // Generate Fluo.
  13. // Usage [vdm_fluo({fluo[1]})]
  14. function vdm_fluo($fluo){
  15.     $value = '';
  16.     $choices = array(
  17.         'N' => 'NONE',
  18.         'F' => 'FAINT',
  19.         'M' => 'MEDIUM',
  20.         'S' => 'STRONG',
  21.     );
  22.     if( in_array( $fluo, array_keys( $choices ) ) ){
  23.         $value = $choices[$fluo];
  24.     }
  25.     return $value;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement