示例#1
0
"addadhd","alzheimers","anorexia","anxiety","arthritis","asthma","bipolardisorder","cachexia","cancer","crohnsdisease","epilepsy","fibromyalgia","gastrointestinaldisorder","glaucoma","hivaids","hypertension","migraines","multiplesclerosis","musculardystrophy","parkinsons","phantomlimbpain","pms","ptsd","spinalcordinjury","tinnitus","tourettessyndrome "
    ];
    $( "#tags" ).autocomplete({
      source: availableTags
    });
  });
  </script>


                    <?php 
$api_url = 'https://data.leafly.com/strains/' . $slug . '';
$app_id = '91768d00';
$app_key = 'fa557088ad73a02196ab929a1be0437b';
include app_path() . '/includes/leafly/utils.php';
include app_path() . '/includes/leafly/src/leafly.php';
Leafly_Connector::init($app_id, $app_key);
$strains = new Leafly_Strains();
$search = $strains->search(array('take' => 1, 'page' => 0, 'sort' => 'rating'));
foreach ($search->Strains as $strain) {
    ?>

        <!-- CONTENT -->

        <!-- Intro Section -->
        <section class="inner-intro bg-img overlay-dark light-color parallax parallax-background2" style="background:url('http://i.huffpost.com/gen/1192715/images/o-MARIJUANA-DISPENSARY-facebook.jpg')">
             <div class="container">
                <div class="row title">
                    <h1>{{$slug}}</h1>

                        <form class="contact-form" id="contact" role="form">
                        <div class="row">
示例#2
0
 public function __construct()
 {
     $this->connection = Leafly_Connector::init(false, false);
 }
示例#3
0
 public static function init($app_id = false, $app_key = false)
 {
     null == self::$instance && (self::$instance = new self($app_id, $app_key));
     return self::$instance;
 }