Parent Directory
|
Revision Log
|
Revision Graph
some page and block snippets
| 1 | <?php |
| 2 | $html = ""; |
| 3 | $cid = "manalaa:posts_block"; |
| 4 | $cached = cache_get($cid); |
| 5 | |
| 6 | if ($cached){ |
| 7 | $html = $cached->data; |
| 8 | } else { |
| 9 | echo "<h1> not cached </h1>"; |
| 10 | $result = taxonomy_select_nodes(array(198,199),'or','all',true); |
| 11 | $html = node_title_list($result); |
| 12 | |
| 13 | cache_set($cid, $html, CACHE_TEMPORARY); |
| 14 | } |
| 15 | print $html; |
| 16 | ?> |
| 17 | <div class="more-link flop"><?php print l("more","taxonomy/term/198+199"); ?></div> |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |