Initial commit.
[cf_tmp.git] / single.php
blobfaa51d17b5b434b40cb7ab7e1756c7f895f186b7
1 <?php get_header(); ?>
2 <!--
3 <div id="debug">
4 &nbsp;
5 </div>
6 -->
8 <div id="container">
9 <div id="all">
11 <div id="title">
12 <?php bloginfo('name'); ?>
13 </div>
14 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
16 <div id="work_container">
17 <div id="work">
18 <?php the_title();
19 print " ";
20 the_codepoint();?>
21 </div><!--work-->
22 </div><!--work_container-->
23 <div id="narrative">
25 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
27 <?php the_content(); ?>
29 <div class="entry-meta">
31 <p>
32 <?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
33 </p>
35 </div><!--entry-meta-->
36 </div><!--post-php the_ID(); ?>" php post_class(); ?>-->
38 </div><!--narrative-->
40 <?php
41 foreach((get_the_category()) as $category) {
42 $my_category = $category->name;
48 <?php endwhile; ?>
49 </div><!--all-->
51 <div id="aside">
52 <div id="menu">
53 <ul>
54 <li>
55 <a href="<?php bloginfo('url') ?>">Index</a>
56 <?php
57 $args = array("theme_location" => "primary", "container" => "");
58 wp_nav_menu($args);
61 </li>
62 </ul>
63 </div><!--menu-->
64 <div id="placeholder_menu_container">
65 <div id="placeholder_menu">
66 &nbsp;
67 </div><!--placeholder_menu_container-->
68 </div><!--placeholder_menu-->
69 <div id="menu2">
70 <ul>
71 <?php
72 $args = array("media_tags" => $my_category, "orderby" => "name");
73 $my_auxiliaries = get_attachments_by_media_tags($args);
74 if ($my_auxiliaries || wp_list_bookmarks("echo=&title_li=&categorize=0&category_name=$my_category")) {
75 print "\t<li>\n";
76 print "Auxiliary";
77 print "<ul>\n";
79 if ($my_auxiliaries) {
80 $media_codepoints = array(0x259e, 0x2595, 0x2583, 0x258f, 0x259e, 0x258c, 0x259e, 0x259e, 0x2595, 0x258f, 0x258e, 0x259a, 0x258a, 0x258e, 0x258b);
81 foreach ($my_auxiliaries as $media) {
82 $mycodepoint = array_rand($media_codepoints, 2);
83 if ($media->post_mime_type == "application/pdf") {
84 printf("<li><a href=\"%s\" title=\"%s\">%s</a> %s</li>\n",
85 $media->guid, $media->post_excerpt, $media->post_title,
86 "&#x" . dechex($media_codepoints[$mycodepoint[0]]) . ";");
87 } else {
88 printf("<li><a href=\"%s\" title=\"%s\" rel=\"lightbox\">%s</a> %s</li>\n",
89 $media->guid, $media->post_excerpt, $media->post_title,
90 "&#x" . dechex($media_codepoints[$mycodepoint[0]]) . ";");
95 $my_urls = get_bookmarks("category_name=$my_category");
96 foreach ($my_urls as $my_url) {
97 $work_codepoints = array(0x25a2, 0x25a4, 0x25a5, 0x25a6, 0x25a9, 0x25ef, 0x25c9, 0x25b3, 0x25bc, 0x25d0, 0x25d3, 0x25b1);
98 $mycodepoint = array_rand($work_codepoints, 2);
99 printf("<li><a href=\"%s\" title=\"%s\" target=\"_blank\">%s</a> %s</li>\n",
100 $my_url->link_url, $my_url->link_description, $my_url->link_name, "&#x" . dechex($work_codepoints[$mycodepoint[0]]) . ";");
104 </ul>
106 </li>
107 </ul>
108 </div><!--menu2-->
110 </div><!--aside-->
111 </div><!--container-->
113 <?php get_footer() ?>