This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule TravelerWeb.SearchbarLive do | |
use TravelerWeb, :live_view | |
alias Phoenix.LiveView.JS | |
alias Traveler.Places | |
def mount(_params, _session, socket) do | |
socket = assign(socket, places: []) | |
{:ok, socket, layout: false} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $ld_recalc; | |
global $geolocate_api_key; | |
$geolocate_api_key = "YOUR_GOOGLE_GEOLOCATE_API_KEY"; | |
$ld_recalc = array( | |
'posts_per_run' => 16, | |
'post_types' => array( 'distributor' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Show a renew link instead of Your Level | |
for recurring subscriptions on the levels page. | |
Add this code to a custom plugin. | |
*/ | |
function pmpro_is_level_expiring_soon_yes_on_levels_page($expiring) { | |
//only adjust this on the levels page so we don't mess anything up | |
global $pmpro_pages; | |
if(!is_admin() && !empty($pmpro_pages) && is_page($pmpro_pages['levels'])) |