function view_gist($id) { $gist = github_gist($id); if (is_null($gist)) { http_response_code(400); exit; } foreach ((array) $gist->files as $filename => $file) { view_link($filename, $filename); view_break(); } }
?> <?php if (bb_is_user_logged_in()) { ?> <div id="viewdiv"> <h2><?php _e('Views'); ?> </h2> <ul id="views"> <?php foreach (bb_get_views() as $the_view => $title) { ?> <li class="view"><a href="<?php view_link($the_view); ?> "><?php view_name($the_view); ?> </a></li> <?php } ?> </ul> </div> <?php } // bb_is_user_logged_in() ?>
do_action('gz_place_sidebar'); ?> </li> <?php if (bb_is_user_logged_in()) { ?> <li> <h2><?php _e('Views'); ?> </h2> <?php foreach (bb_get_views() as $view => $title) { ?> <a href="<?php view_link(); ?> "><?php view_name(); ?> | <?php } ?> </li> <?php } // bb_is_user_logged_in() ?> </ul> </div>
<th>Name</th> <th>Price</th> <th>Producer</th> <th></th> </thead> <? foreach($products as $product): ?> <tdoby> <tr> <td> <?php echo $product->id; ?> </td> <td> <a href="<?php echo view_link($product); ?> "> <?php echo $product->name; ?> </a> </td> <td> <?php echo $product->price; ?> </td> <td> <?php echo $product->producer;