Ejemplo n.º 1
0
<?php

/*
 * Arena channel-in-channel example
 * 
 * 
 */
include '../../arena.php';
$arena = new Arena();
$slug = 'interesting-menu';
// channel slug (e.g. http://are.na/interesting-menu)
$channel = $arena->get_channel($slug);
?>

<!DOCTYPE html>
<html>
  <head>
    <title><?php 
echo $channel->title;
?>
</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="http://www.w3.org/StyleSheets/Core/Modernist" type="text/css">
    <style type="text/css">
      img, iframe{padding-left: 11%;}
      p, p:first-child{padding-right: 11%}
      div > p:first-child, body > p:first-child, td > p:first-child{padding-right: 11%}
      a.img{background-color: #fff;}
      #contents h3 a{
        color:#000;
        background-color: #ccc;
<?php

// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
include 'arena.php';
$arena = new Arena();
$page = $arena->set_page();
// this checks if page is set, if not sets page to 1
$per = 24;
// how many items per page
$slug = 'blend-is-beautiful';
// channel slug (e.g. http://are.na/arena-influences)
$channel = $arena->get_channel($slug, array('page' => $page, 'per' => $per));
?>

<!DOCTYPE html>
<html>
  <head>
    <title><?php 
echo $channel->title;
?>
</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="assets/css/app.css" type="text/css">
  </head>
  <body>

    <nav id="options">
      <a href="index.php">Blend</a>
      <a href="catalog.php" class="current">Catalog</a>