<?php /* Template Name: About Us */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <div class="row"> <div class="col-xs-12"> <?php the_title('<h1 class="text-center">', '</h1>'); ?> </div> </div> <?php while (have_posts()) { the_post(); $content = split_content(); // output first content section in column1 echo '<div class="row"><div class="col-xs-12 col-sm-10 col-sm-offset-1 text-center">', array_shift($content), '</div></div>'; @(include '_about_linkSec.php'); // output remaining content sections in column2 echo '<div class="row"><div class="col-xs-12 col-sm-10 col-sm-offset-1 text-center">', implode($content), '</div></div>'; } ?> </main><!-- #main --> </div><!-- #primary --> <?php get_footer();
$files = glob(DT_CACHE . '/*.part'); $spart = 0; if ($files) { foreach ($files as $f) { $mid = basename($f, '.part'); if (!isset($MODULE[$mid])) { continue; } $fd = $mid == 4 ? 'userid' : 'itemid'; $r = $db->get_one("SELECT MAX({$fd}) AS maxid FROM " . get_table($mid)); $part = split_id($r['maxid']); if ($mid == 5) { $spart = $part; } split_content($mid, $part); split_content($mid, $part + 1); } } /* if($spart) { split_sell($spart); split_sell($spart+1); } */ $dc->expire(); include tpl('side'); break; case 'main': if ($submit) { $note = '<?php exit;?>' . htmlspecialchars(stripslashes($note)); file_put(DT_ROOT . '/file/user/' . dalloc($_userid) . '/' . $_userid . '/note.php', $note);
<div class='s_foto'><img src='<?php echo base_url(); ?> images/profile.gif' /></div> <div class='s_desc'> <a class='link1 semibig bold blue98' href='<?php echo $user['web']; ?> '><?php echo $user['nama']; ?> </a> <span class='ns_desc'> <?php $content = $post['content']; echo split_content($content, $id); if ($post['contain_media'] == 1) { $trace = explode('^^^', $post['media']); echo '<div class="media">'; switch ($trace[0]) { case 'image': echo "<a href='" . $trace[3] . "' target='_blank'><img src='" . $trace[3] . "' width='" . $trace[1] . "' height='" . $trace[2] . "' /></a>"; break; case 'youtube': echo youtube($trace[1]); break; // otherwise just link // otherwise just link case 'link': echo "<a target='_blank' class='link1 blue98' href='" . $trace[1] . "'>" . $trace[1] . "</a>"; break;
echo article_title(); ?> </a></h1> <div class="meta"> <time datetime="<?php echo date(DATE_W3C, article_time()); ?> "><?php echo date('M j, Y - g:i a', article_time()); ?> </time> </div> </header> <?php echo split_content(article_markdown()); ?> <p><a href="<?php echo article_url(); ?> " rel="article">Read More</a></p> </article> <?php } ?> <?php } else { ?> <p>Looks like you have some writing to do!</p> <?php }
msg('ID从' . $fid . '至' . ($itemid - 1) . '合并成功' . progress($sid, $fid, $tid), "?mid={$mid}&file={$file}&action={$action}&sid={$sid}&fid={$itemid}&tid={$tid}&num={$num}"); } else { if (!isset($num)) { $num = 5000; } if (!isset($fid)) { $r = $db->get_one("SELECT MIN(`{$fd}`) AS fid FROM {$table}"); $fid = $r['fid'] ? $r['fid'] : 0; } isset($sid) or $sid = $fid; if (!isset($tid)) { $r = $db->get_one("SELECT MAX(`{$fd}`) AS tid FROM {$table}"); $tid = $r['tid'] ? $r['tid'] : 0; $part = split_id($tid); for ($i = 1; $i < $part + 2; $i++) { split_content($mid, $i); } } if ($fid <= $tid) { $result = $db->query("SELECT `{$fd}` FROM {$table} WHERE `{$fd}`>={$fid} ORDER BY `{$fd}` LIMIT 0,{$num}"); if ($db->affected_rows($result)) { while ($r = $db->fetch_array($result)) { $itemid = $r[$fd]; $t = $db->get_one("SELECT content FROM {$table_data} WHERE `{$fd}`={$itemid}"); if ($t) { $content = addslashes($t['content']); $db->query("REPLACE INTO " . split_table($mid, $itemid) . " ({$fd},content) VALUES ('{$itemid}','{$content}')"); } else { $t = $db->get_one("SELECT `{$fd}` FROM " . split_table($mid, $itemid) . " WHERE `{$fd}`={$itemid}"); if (!$t) { $db->query("REPLACE INTO " . split_table($mid, $itemid) . " ({$fd},content) VALUES ('{$itemid}','')");