コード例 #1
0
<?php

echo Prelauncher::uploadReferPage();
?>

<script>
	var prelauncher = new Prelauncher('<?php 
echo Prelauncher()->credentials["company_id"];
?>
');
	prelauncher.buildSecondPage('<?php 
echo Prelauncher()->clientID;
?>
');
</script>
コード例 #2
0
<?php

echo Prelauncher::uploadLandingPage();
?>

<script>
	var prelauncher = new Prelauncher('<?php 
echo Prelauncher()->credentials["company_id"];
?>
');
	prelauncher.buildFirstPage();
</script>
コード例 #3
0
        public function prelauncher_get_template_part($slug, $name = null)
        {
            if (empty($slug)) {
                return;
            }
            $name = (string) $name;
            if ('' !== $name) {
                $template = "{$slug}-{$name}.php";
            } else {
                $template = "{$slug}.php";
            }
            load_template(PRELAUNCHER_TEMPLATE_PATH . $template);
        }
        function prelauncher_shortcode($atts, $content = '')
        {
            if (empty($_GET["uid"])) {
                $this->prelauncher_get_template_part('prelauncher', 'landing');
            } else {
                $this->clientID = $_GET["uid"];
                $this->prelauncher_get_template_part('prelauncher', 'refer');
            }
            return ob_get_clean();
        }
    }
}
function Prelauncher()
{
    return Prelauncher::instance();
}
$Prelauncher = Prelauncher();