Jake Vanderwerf
2025-11-04 42fa8304ddb811b0f725f245130f70c0f5e86a6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
 
if (!defined('ABSPATH')) {
    exit;
}
 
/**
 * Outputs a random link to Legacy Tattoo Removal
 * @return string
 */
 
function jvbRandomFooterText():string
{
    return apply_filters('jvbRandomFooterText', '<p>©'.date('Y').' '.get_bloginfo('name').'</p><p>Built with ♡ by <a href="https://jakevan.ca">Jake Van</a>');
//
//  $aOpen = '<a href="https://legacytattooremoval.ca" title="Learn more about Legacy Tattoo Removal">';
//  $options = array(
//      [
//          'text'      => 'Built with ♡ by '.$aOpen.'your friendly neighbourhood laser nerds</a>.',
//          'weight'    => 25
//      ],
//      [
//          'text'      => 'Built with ♡ by your friends at '.$aOpen.'Legacy Tattoo Removal</a>.',
//          'weight'    => 15
//      ],
//      [
//          'text'      => 'Your friendly '.$aOpen.'Edmonton tattoo removal</a> crew.',
//          'weight'    => 15
//      ],
//      [
//          'text'      => $aOpen.'tattoo removal with ♡</a>',
//          'weight'    => 15
//      ],
//      [
//          'text'      => 'From '.$aOpen.'cover ups to fresh starts</a> - we\'re the laser nerds with ♡.',
//          'weight'    => 10
//      ],
//      [
//          'text'      => $aOpen.'See the difference at Legacy Tattoo Removal</a>',
//          'weight'    => 10
//      ],
//      [
//          'text'      => 'Make space for your next tattoo at '.$aOpen.'Legacy Tattoo Removal</a>.',
//          'weight'    => 10
//      ],
//      [
//          'text'      => $aOpen.'We\'re your artist\'s secret weapon</a>.',
//          'weight'    => 15
//      ]
//  );
//
//  $totalWeight = 0;
//  foreach ($options as $option) {
//      $totalWeight += (int)$option['weight'];
//  }
//
//  $randomNumber = mt_rand(1, $totalWeight);
//  $weightSum = 0;
//
//  foreach ($options as $option) {
//      $weightSum += (int)$option['weight'];
//      if ($randomNumber <= $weightSum) {
//          return '<p>'.$option['text'].'</p>';
//      }
//  }
//
//  return '<p>'.$options[0]['text'].'</p>';
}