File: /var/www/ilya/data/www/irkboard.ru/cache/cacheid_6/skin_blog_cblocks.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD */
/* CACHE FILE: Skin set id: 2 */
/* CACHE FILE: Generated: Sat, 16 Dec 2006 04:15:57 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_blog_cblocks_6 {
var $ipsclass;
//===========================================================================
// <ips:album_row:desc:>
//===========================================================================
function album_row($album="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->base_url}automodule=gallery&cmd=user&user={$album['member_id']}&op=view_album&album={$album['id']}">{$album['name']}</a><br />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:block_activeusers:desc:>
//===========================================================================
function block_activeusers($active="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<b>{$active[GUESTS]}</b> {$this->ipsclass->lang['guests']}<br />
<b>{$active[MEMBERS]}</b> {$this->ipsclass->lang['public_members']}<br />
<b>{$active[ANON]}</b> {$this->ipsclass->lang['anon_members']}
<div class="thin">{$active[NAMES]}</div>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:blog_blocks_end:desc:>
//===========================================================================
function blog_blocks_end() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:blog_blocks_start:desc:>
//===========================================================================
function blog_blocks_start($width="250",$leftpad="0",$rightpad="0",$hidden="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td id='cblock_
EOF;
//startif
if ( $rightpad > '0' )
{
$IPBHTML .= <<<EOF
left
EOF;
}//endif
//startelse
else
{
$IPBHTML .= <<<EOF
right
EOF;
}//endelse
$IPBHTML .= <<<EOF
' style="padding:0px {$rightpad}px 0px {$leftpad}px; width:{$width}px; {$hidden}" valign="top">
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:cblock_dragdrop_end:desc:>
//===========================================================================
function cblock_dragdrop_end($cblock="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</div>
<script type="text/javascript">
//<![CDATA[
cblock_dragdrop_init({$cblock['cblock_id']}, '{$cblock['cblock_position']}');
//]]>
</script>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:cblock_dragdrop_start:desc:>
//===========================================================================
function cblock_dragdrop_start($cblock="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<div id='cblock_{$cblock['cblock_id']}-ph'>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:cblock_footer:desc:>
//===========================================================================
function cblock_footer($cblock="",$auth_key="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</div>
EOF;
//startif
if ( $this->ipsclass->vars['blog_inline_edit'] && $cblock['cblock_type']=='custom' )
{
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="1">
<tr>
<td class="formbuttonrow" nowrap="nowrap" align="center">
<a href="{$this->ipsclass->base_url}automodule=blog&req=editcblock&blogid={$cblock['blog_id']}&cbid={$cblock['cbcus_id']}&inline=1"><{P_EDIT}></a>
<a href="javascript:delete_cblock({$cblock['cblock_id']},'{$auth_key}')"><{P_DELETE}></a>
</td>
</tr>
</table>
EOF;
}//endif
//startif
if ( $cblock['allow_edit'] && !$this->ipsclass->vars['blog_inline_edit'] && $cblock['cblock_type']=='custom' )
{
$IPBHTML .= <<<EOF
<table class='ipbtable' cellspacing="1">
<tr>
<td class="formbuttonrow" nowrap="nowrap" align="center">
<a href="{$this->ipsclass->base_url}automodule=blog&req=editcblock&blogid={$cblock['blog_id']}&cbid={$cblock['cbcus_id']}&inline=1"><{P_EDIT}></a>
<a href="javascript:if ( confirm( ipb_lang_blog_sure_delcblock )) { document.location.href = '{$this->ipsclass->base_url}automodule=blog&req=mod_delcblock&blogid={$cblock['blog_id']}&cbid={$cblock['cblock_id']}&auth_key={$auth_key}' }"><{P_DELETE}></a>
</td>
</tr>
</table>
EOF;
}//endif
$IPBHTML .= <<<EOF
<div class="catend"><!-- no content --></div>
</div>
<br />
EOF;
//startif
if ( $this->ipsclass->vars['blog_inline_edit'] )
{
$IPBHTML .= <<<EOF
</div>
EOF;
}//endif
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:cblock_header:desc:>
//===========================================================================
function cblock_header($cblock_id="",$title="") {
$IPBHTML = "";
//--starthtml--//
//startif
if ( $this->ipsclass->vars['blog_inline_edit'] && $cblock_id>0 )
{
$IPBHTML .= <<<EOF
<div id='cblock_{$cblock_id}'>
EOF;
}//endif
$IPBHTML .= <<<EOF
<div class="borderwrap">
<div class="maintitle">
EOF;
//startif
if ( $this->ipsclass->vars['blog_inline_edit'] && $cblock_id>0 )
{
$IPBHTML .= <<<EOF
<div style='float:right'><a href='#' onclick='remove_cblock({$cblock_id})'>[X]</a></div>
<div id="cblock_{$cblock_id}-handle">
EOF;
}//endif
$IPBHTML .= <<<EOF
<div align="center">{$title}</div>
</div>
EOF;
//startif
if ( $this->ipsclass->vars['blog_inline_edit'] && $cblock_id>0 )
{
$IPBHTML .= <<<EOF
</div>
EOF;
}//endif
$IPBHTML .= <<<EOF
<div class="tablepad">
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:get_category_link:desc:>
//===========================================================================
function get_category_link($cat="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}cat={$cat['category_id']}">{$cat['category_name']}</a><br />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:get_my_search:desc:>
//===========================================================================
function get_my_search($blogid="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<form action="{$this->ipsclass->base_url}automodule=blog&req=search&blogid={$blogid}" method="post" name="cblocksearch">
<center>
<input type="text" style="width:90%;" name="keywords" onfocus="this.value=''" value="{$this->ipsclass->lang['blog_enter_search']}" /><br />
<input class="button" type="submit" value="{$this->ipsclass->lang['jmp_go']}" />
</center>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:last_comment_row:desc:>
//===========================================================================
function last_comment_row($comment="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
{$comment['newpost']}{$comment['memberlink']} {$this->ipsclass->lang['comment_on']} <a href="{$this->ipsclass->vars['blog_url']}showentry={$comment['entry_id']}&cid={$comment['comment_id']}&show=comment">{$comment['entry_name']}</a><br />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:last_entry_row:desc:>
//===========================================================================
function last_entry_row($entry="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
{$entry['newpost']}<a href="{$this->ipsclass->vars['blog_url']}showentry={$entry['entry_id']}">{$entry['entry_name']}</a><br />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mini_cal_blank_cell:desc:>
//===========================================================================
function mini_cal_blank_cell() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td class="mcellblank"><!-- no content --></td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mini_cal_date_cell:desc:>
//===========================================================================
function mini_cal_date_cell($month_day="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td class="mcelldate">
<div class="calday" style="padding:4px 4px 4px 4px">$month_day</div>
</td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mini_cal_date_cell_today:desc:>
//===========================================================================
function mini_cal_date_cell_today($month_day="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td class="mcelltoday">
<div class="calday" style="padding:2px 4px 2px 4px">$month_day</div>
</td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mini_cal_day_bit:desc:>
//===========================================================================
function mini_cal_day_bit($day="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<td width="14%" class="subtitle">$day</td>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mini_cal_mini_wrap:desc:>
//===========================================================================
function mini_cal_mini_wrap($content="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<table width='100%' cellspacing="1">
<tr>
{$content}
</tr>
</table>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:mini_cal_new_row:desc:>
//===========================================================================
function mini_cal_new_row($week="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
</tr>
<!-- NEW ROW-->
<tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:show_cblock:desc:>
//===========================================================================
function show_cblock($cblock="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
{$cblock['cbcus']} <!--IBF.ATTACHMENTCBLOCK_{$cblock['cbcus_id']}-->
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:show_mylinks:desc:>
//===========================================================================
function show_mylinks($blog="",$last_read="",$is_favourite="",$cblock_id="") {
$IPBHTML = "";
//--starthtml--//
//startif
if ( $this->ipsclass->member['id'] && $blog['tracker_id'] == "" )
{
$IPBHTML .= <<<EOF
<a href='{$this->ipsclass->vars['blog_url']}req=dotrackblog'>{$this->ipsclass->lang['track_this_blog']}</a><br />
EOF;
}//endif
//startif
if ( $this->ipsclass->member['id'] && $blog['tracker_id'] != "" )
{
$IPBHTML .= <<<EOF
<a href='{$this->ipsclass->vars['blog_url']}req=doendtrackblog'>{$this->ipsclass->lang['end_track_blog']}</a><br />
EOF;
}//endif
//startif
if ( $this->ipsclass->member['id'] && $is_favourite )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=delfavblog&return=blog">{$this->ipsclass->lang['delfavblog']}</a><br />
EOF;
}//endif
//startif
if ( $this->ipsclass->member['id'] && !$is_favourite )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=addfavblog&return=blog">{$this->ipsclass->lang['addfavblog']}</a><br />
EOF;
}//endif
//startif
if ( $this->ipsclass->member['id'] && ( $last_read < $blog['blog_last_date'] or $last_read < $blog['blog_last_comment_date'] ) )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=markread">{$this->ipsclass->lang['blog_markread']}</a><br />
EOF;
}//endif
//startif
if ( $blog['blog_settings']['allowrss'] )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=syndicate">{$this->ipsclass->lang['blog_syndicate']}</a><br />
EOF;
}//endif
//startif
if ( $blog['blog_settings']['allowaboutme'] )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=aboutme&mid={$blog['member_id']}">{$this->ipsclass->lang['blog_aboutme']}</a><br />
EOF;
}//endif
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=showarchive">{$this->ipsclass->lang['blog_archive']}</a>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:show_mypicture:desc:>
//===========================================================================
function show_mypicture($photo="",$blog="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<center>
EOF;
//startif
if ( $blog['blog_settings']['allowaboutme'] )
{
$IPBHTML .= <<<EOF
<a href="{$this->ipsclass->vars['blog_url']}req=aboutme&mid={$blog['member_id']}" title="{$this->ipsclass->lang['blog_aboutme']}">
EOF;
}//endif
$IPBHTML .= <<<EOF
{$photo}
EOF;
//startif
if ( $blog['blog_settings']['allowaboutme'] )
{
$IPBHTML .= <<<EOF
</a>
EOF;
}//endif
$IPBHTML .= <<<EOF
</center>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:show_random_album_image:desc:>
//===========================================================================
function show_random_album_image($image_link="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<center>{$image_link}</center>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
/*--------------------------------------------------*/
/*<changed bits>
</changed bits>*/
/* END OF FILE */
/*--------------------------------------------------*/
?>