Beispiel #1
0
if (isset($posts) && count($posts) > 0) {
    ?>
	<?php 
    foreach ($posts as $k => $v) {
        ?>
<div class="row row-blog">
    <h2 class="h3"><a href="/blog/view/<?php 
        echo $v->ID;
        ?>
"><?php 
        echo $v->title;
        ?>
</a></h2>
    <div class="desc">
    	<?php 
        echo auto_p(auto_link($v->content));
        ?>
    </div>
    <p class="opts">
    	<a href="/blog/view/<?php 
        echo $v->ID;
        ?>
#comments"><?php 
        echo $v->comment_count;
        ?>
 comment<?php 
        echo $v->comment_count == 1 ? '' : 's';
        ?>
</a> |
    	 Written <strong><?php 
        echo date('d.M.Y', $v->date_posted);
Beispiel #2
0
?>
</span> people</strong> <?php 
echo time() <= $event_detail->event_end ? ' attending so far' : ' said they attended';
?>
. <a href="javascript:void(0);" id="toggle-attendees" class="show">Show &raquo;</a></span>
            	</p>
            </div>
        	<div class="clear"></div>

        </div>
        <div class="clear"></div>
	</div>

	<div class="desc">
		<?php 
echo auto_p(auto_link(escape($event_detail->event_desc)));
?>
		<hr/>
		
	<b>Your host(s):</b><br/>
	<table cellpadding="5" cellspacing="0" border="0">
	<tr>
	<?php 
foreach ($admins as $admin_user) {
    echo '<td style="padding-right:5px;font-size:11px">';
    echo '<a href="/user/view/' . $admin_user->ID . '">' . $admin_user->full_name . '</a></td>';
}
?>
	</tr>
	</table>
        ?>
</strong> by <strong><?php 
        echo $uname;
        ?>
</strong>
                <?php 
        echo !empty($comment->source) ? "via " . escape($comment->source) : "";
        ?>
                (<?php 
        echo escape($type);
        ?>
)
            </p>
            <div class="desc">
                <?php 
        echo auto_p(escape($comment->comment));
        ?>
            </div>
            <?php 
        if ($admin) {
            ?>
                <a class="btn-small delete-evt-commment" id="<?php 
            echo $comment->ID . '_' . $comment->event_id;
            ?>
" href="#">delete</a>
            <?php 
        }
        ?>
        </div>
        <div class="clear"></div>
    </div>
Beispiel #4
0
        ?>
</strong>
            <?php 
        echo !empty($v->source) ? "via " . escape($v->source) : "";
        ?>
        <?php 
        if ($v->private == 1) {
            ?>
            <span class="private">Private</span>
        <?php 
        }
        ?>
        </p>
        <div class="desc">
            <?php 
        echo auto_p(escape($v->comment));
        ?>
        </div>
        <p class="admin">
            <?php 
        if ($detail->allow_comments && ($v->user_id == $user_id && time() < $v->date_made + $this->config->item('comment_edit_time'))) {
            ?>
                <a class="btn-small edit-talk-comment-btn" href="#" id="<?php 
            echo $v->ID;
            ?>
">Edit</a>
            <?php 
        }
        ?>
            <?php 
        if (user_is_admin() || user_is_admin_event($detail->eid)) {
        - <strong><?php 
    echo $this->timezone->formattedEventDatetimeFromUnixtime($event->event_end, $event->event_tz_cont . '/' . $event->event_tz_place, 'd.M.Y');
    ?>
</strong> at <strong><?php 
    echo escape($event->event_loc);
    ?>
</strong>
        <?php 
}
?>
        </p>
    </div>
    <div class="text text-body">
        <div class="desc">
        <?php 
echo auto_p(escape(word_limiter($event->event_desc, 20)));
?>
        <?php 
if (isset($event->eventTags) && !empty($event->eventTags)) {
    $tags = array();
    foreach ($event->eventTags as $tag) {
        $tag = escape($tag->tag_value);
        $tags[] = '<a href="/event/tag/' . $tag . '">' . $tag . '</a>';
    }
    echo '<b>tagged</b> ' . implode(', ', $tags);
}
?>
        </div>
        <p class="opts">
            <a href="/event/view/<?php 
echo $event->ID;
Beispiel #6
0
        <?php 
echo $rstr;
?>
    </p>

    <div class="desc">
        <span align="left"><?php 
if (!empty($speaker_img)) {
    foreach ($speaker_img as $uid => $img) {
        echo '<a href="/user/view/' . $uid . '"><img src="' . $img . '" align="left" border="0" style="margin-right:10px;" height="50" width="50"></a>';
    }
}
?>
</span>
        <?php 
echo auto_p(auto_link(escape_allowing_presentation_tags($detail->talk_desc)));
?>
    </div>
    
    <p class="quicklink">
        Quicklink: <strong><a href="<?php 
echo $this->config->site_url();
echo $detail->tid;
?>
"><?php 
echo $this->config->site_url();
echo $detail->tid;
?>
</a></strong>
    <?php 
if ($admin) {
Beispiel #7
0
' . "\n";
// The Loop
while (have_posts()) {
    the_post();
    $query .= '(';
    $query .= 'NULL, ';
    # id
    $query .= '\'' . mysql_real_escape_string($post->post_title) . '\', ';
    # title
    $query .= '\'' . mysql_real_escape_string($post->post_name) . '\', ';
    # alias
    $query .= '14, ';
    # catid
    $query .= '1, ';
    # published
    $query .= '\'' . mysql_real_escape_string(auto_p($post->post_content)) . '\', ';
    # introtext
    $query .= '\'\', ';
    # fulltext
    $query .= 'NULL, ';
    # video
    $query .= 'NULL, ';
    # gallery
    $query .= '\'[]\', ';
    # extra_fields
    $query .= '\'\', ';
    # extra_fields_search
    $query .= '\'' . mysql_real_escape_string($post->post_date) . '\', ';
    # created
    $query .= '311, ';
    # created_by
Beispiel #8
0
" class="row row-blog-comment<?php 
        echo $class;
        ?>
">
    <p class="info">
    	<strong><?php 
        echo escape($v->title);
        ?>
</strong> by <strong><?php 
        echo $uname;
        ?>
</strong>
    </p>
    <div class="desc">
    	<?php 
        echo auto_p(escape(trim($v->content)));
        ?>
    </div>
    <?php 
        if (user_is_admin()) {
            ?>
    <p class="admin">
		<a class="btn-small" href="#" onClick="delBlogComment(<?php 
            echo $v->ID;
            ?>
,<?php 
            echo $bid;
            ?>
);return false;">Delete</a>
	</p>
	<?php 
Beispiel #9
0
?>
</a></strong> (<?php 
echo escape($detail->lang_name);
?>
)
	</p>

	<p class="rating">
		<?php 
echo $rstr;
?>
	</p>

	<div class="desc">
		<?php 
echo auto_p(auto_link(escape($detail->talk_desc)));
?>
	</div>
	
	<p class="quicklink">
		Quicklink: <strong><a href="<?php 
echo $this->config->site_url();
echo $detail->tid;
?>
"><?php 
echo $this->config->site_url();
echo $detail->tid;
?>
</a></strong>
	</p>