示例#1
0
 function fbml_render_link($text, $href)
 {
     $user = $this->get_env('user');
     $app_id = $this->get_env('app_id');
     if (!$user || !$app_id) {
         return '';
     }
     $onclick_js = '';
     if ($this->allows('click_tracking')) {
         $action_types = application_get_platform_action_consts();
         $flav_codes = fbml_flavors_get_codes();
         $pos = $this->get_env('flavor_code', $flav_codes['UNKNOWN'], false);
         $onclick_js = get_click_tracking_js($app_id, $user, $action_types['LINK_CLICK'], $pos);
     }
     // append feed tracking javascript if its defined by the calling function's environment
     // this is set in lib/feed/stories.php
     if ($this->_fbml_impl->get_env('feed_tracking_js', false)) {
         $feed_tracking_js = $this->_fbml_impl->get_env('feed_tracking_js');
         if ($onclick_js) {
             $onclick_js .= $feed_tracking_js;
         } else {
             $onclick_js = $feed_tracking_js;
         }
     }
     if ($onclick_js) {
         $onclick_js .= 'return true;';
     }
     return render_link($text, $href, $class = '', $id = '', $title = '', $target = '', $onclick_js, $style = '');
 }
示例#2
0
        <div class="col-md-3 container-col"></div>
<?php 
$stmt = $mysqli->prepare('SELECT * FROM artifacts WHERE path = ? AND status = 1 ORDER BY title ASC');
$stmt->bind_param('s', $menu['path']);
$stmt->execute();
$stmt->bind_result($id, $path, $service, $title, $author, $description, $app_id, $submitted, $status);
while ($stmt->fetch()) {
    switch ($service) {
        case 'youtube':
            echo render_youtube($id, $title, $author, $app_id);
            break;
        case 'gslide':
            echo render_gslide($id, $title, $author, $app_id);
            break;
        case 'link':
            echo render_link($id, $title, $author, $app_id);
            break;
    }
}
?>
      </div>
      <hr>

      <footer>
        <p>CC BY 4.0 | <a href="http://royce.kimmons.me">Royce Kimmons</a></p>
      </footer>
      
    </div> <!-- /container -->

<!-- Stop Editing Here -->