Created
May 31, 2014 09:52
-
-
Save anonymous/2dfe9e6b2606683d6e58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php error_reporting(1); ?> | |
<?php | |
/** | |
* This skin only uses one single template which includes most of its features. | |
* It will also rely on default includes for specific dispays (like the comment form). | |
* | |
* The main page template is used to display the blog when no specific page template is available | |
* to handle the request (based on $disp). | |
* | |
* b2evolution Mystique skin v2.0.1 | |
* | |
*/ | |
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | |
if( version_compare( $app_version, '3.0' ) < 0 ) | |
{ | |
die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | |
} | |
// Do inits depending on current $disp: | |
skin_init( $disp ); | |
// HTML HEADER INCLUDED HERE | |
skin_include( '_html_header.inc.php' ); | |
global $s, $ReqURI; | |
?> | |
<div id="page" class="<?php $Skin->body_class() ?>"> | |
<!-- header --> | |
<div class="page-content header-wrapper"> | |
<div id="header" class="bubbleTrigger"> | |
<div style="float: right;padding-right:28px;padding-top: 10px;padding-bottom: 10px;"> | |
<a href="http://only-music.co.il/"><image src="http://only-music.co.il/logo.png" width="150px"></a> | |
</div> | |
<div style="float: left;padding-top: 35px;"> | |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<!-- ????? ?????? ???? --> | |
<ins class="adsbygoogle" | |
style="display:inline-block;width:728px;height:90px" | |
data-ad-client="ca-pub-5462908731815788" | |
data-ad-slot="1933099644"></ins> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> | |
</div> | |
<div style="clear:both;"> | |
<div class="shadow-left"> | |
<div class="shadow-right clearfix"> | |
<!-- main navi --> | |
<ul id="navigation" class="clearfix"> | |
<?php | |
// Home page link | |
echo '<li class="home active"><a class="home fadeThis active" href="'.$Blog->get( 'url', 'raw' ). | |
'"><span class="title">'.$Skin->T_('Home').'</span></a></li>'; | |
// "Menu" CONTAINER EMBEDDED HERE | |
ob_start(); | |
skin_container( NT_('Menu'), array( | |
'block_start' => '', | |
'block_end' => '', | |
'block_display_title' => false, | |
'list_start' => '', | |
'list_end' => '', | |
'item_start' => '<li>', | |
'item_selected_start' => '<li class="active">', | |
) ); | |
$menu_container = ob_get_clean(); | |
echo preg_replace( '~<li([^>]+)?></li>~is', '', $menu_container ); | |
?> | |
</ul> | |
<!-- /main navi --> | |
<?php | |
if( is_logged_in() ) | |
{ | |
echo "<div id='userlinksguest2' style='float: right;width:460px;border-left: 0px;'><p class='pcen' style='text-align: right;'><b>מחובר כ: </b> <a style='color: #373636' href='/?disp=user&user_ID=$current_User->ID'>$current_User->nickname</a> ( <a style='color: #373636' href='/htsrv/login.php?action=logout&redirect_to=%2F%3Fblog%3D1'>התנתק</a> )</p></div> | |
<div id='userlinksguest2' style='float: left;width:458px;border-right: 0px;'><p class='pcen' style='text-align: left;'><a style='color: #da0303' href='/adding-song'><b>פרסום רמיקס</b></a> <b>· </b> <a style='color: #373636' href='/?disp=profile'>עריכת פרופיל</a> <b>· </b> <a style='color: #373636' href='/?disp=avatar'>תמונת פרופיל</a> <b>· </b> <a style='color: #373636' href='/?disp=pwdchange'>שינוי סיסמה</a> | |
</p></div> | |
"; | |
} | |
else | |
{ | |
echo "<div id='userlinksguest'><p class='pcen'><b>ברוך הבא אורח</b> ( <a href='/?disp=login&redirect_to=%2F%3Fblog%3D1'>התחברות</a> | <a href='/?disp=register&source=menu%20link&redirect_to=%2F%3Fblog%3D1%26disp%3Dlogin'>הרשמה</a> )</p></div>"; | |
} | |
?> | |
</div> | |
</div> | |
<br> | |
<?php | |
skin_container( NT_('Page Top'), array( | |
'block_start' => '', | |
'block_end' => '', | |
'block_display_title' => false, | |
'list_start' => '<ul class="blog-list">', | |
'list_end' => '</ul>', | |
'item_start' => '<li>', | |
'item_end' => '</li>', | |
) ); | |
?> | |
<br> | |
<?php | |
$Plugins->call_by_code( 'breadcrumbs', array( | |
'block_start' => '<ul class="$wi_class$">', | |
'block_end' => '</ul>', | |
'title' => 'You are here:', | |
'block_display_title' => false, | |
'display_home' => false, | |
'glue' => '>', | |
) ); | |
?> | |
</div> | |
</div> | |
<!-- /header --> | |
<!-- left+right bottom shadow --> | |
<div class="shadow-left page-content main-wrapper"> | |
<div class="shadow-right"> | |
<!-- main content: primary + sidebar(s) --> | |
<div id="main"> | |
<div id="main-inside" class="clearfix"> | |
<!-- primary content --> | |
<div id="primary-content"> | |
<div class="blocks"> | |
<?php | |
// MESSAGES GENERATED FROM ACTIONS | |
messages( array( | |
'block_start' => '<div class="action_messages">', | |
'block_end' => '</div>', | |
) ); | |
// Display search results | |
global $ASearch_plugin; | |
if( is_object($ASearch_plugin) ) | |
{ | |
$ASearch_plugin->display_results(); | |
} | |
// PREV/NEXT POST LINKS (SINGLE POST MODE) | |
item_prevnext_links( array( | |
'block_start' => '<div class="single-navigation clear-block">', | |
'block_end' => '</div>', | |
'prev_start' => '<div class="alignleft">', | |
'prev_end' => '</div>', | |
'next_start' => '<div class="alignright">', | |
'next_end' => '</div>', | |
) ); | |
// TITLE FOR THE CURRENT REQUEST | |
request_title( array( | |
'title_before'=> '<h2 class="request_title">', | |
'title_after' => '</h2>', | |
'title_none' => '', | |
'glue' => ' - ', | |
'title_single_disp' => false, | |
'title_page_disp' => false, | |
'format' => 'htmlbody', | |
) ); | |
if( $Item = & get_featured_Item() ) | |
{ // We have a featured/intro post to display: | |
// ITEM BLOCK INCLUDED HERE | |
skin_include( '_item_block.inc.php', array( | |
'feature_block' => true, | |
'content_mode' => 'auto', | |
'intro_mode' => 'normal', | |
'item_class' => 'post clearfix bFeatured', | |
'image_size' => 'fit-520x390', | |
) ); | |
} | |
// START OF POSTS | |
// Display message if no post: | |
display_if_empty( array( | |
'before' => '<div class="bPost display_empty">', | |
'after' => '</div>', | |
) ); | |
while( $Item = & mainlist_get_item() ) | |
{ | |
// ITEM BLOCK INCLUDED HERE | |
skin_include( '_item_block.inc.php', array( | |
'content_mode' => 'auto', | |
'image_size' => 'fit-520x390', | |
'item_class' => 'post clearfix', | |
) ); | |
} | |
// PREV/NEXT PAGE LINKS (POST LIST MODE) | |
mainlist_page_links( array( | |
'block_start' => '<div class="comment-navigation clearfix">', | |
'block_end' => '</div>', | |
'prev_text' => '«', | |
'next_text' => '»', | |
) ); | |
// MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) | |
skin_include( '$disp$', array( | |
'disp_posts' => '', // We already handled this case above | |
'disp_single' => '', // We already handled this case above | |
'disp_page' => '', // We already handled this case above | |
'disp_events' => '_test.disp.php', // We already handled this case above | |
) ); | |
?> | |
</div> | |
</div> | |
<!-- /primary content --> | |
<?php if($disp != 'events'): ?> | |
<?php if( @preg_match('~-3~', $Skin->get_setting('skin_layout')) ) : ?> | |
<!-- sidebar2 --> | |
<div id="sidebar2"> | |
<ul class="blocks"> | |
<?php | |
// "Sidebar" CONTAINER EMBEDDED HERE | |
skin_container( NT_('Sidebar 2'), array( | |
// This will enclose each widget in a block: | |
'block_start' => '<li class="block $wi_class$"><div class="clearfix">', | |
'block_end' => '</div></li>', | |
// This will enclose the title of each widget: | |
'block_title_start' => '<h3 class="title"><span>', | |
'block_title_end' => '</span></h3><div class="block-div"></div><div class="block-div-arrow"></div>', | |
// If a widget displays a list, this will enclose that list: | |
'list_start' => '<ul>', | |
'list_end' => '</ul>', | |
// This will enclose each item in a list: | |
'item_start' => '<li>', | |
'item_end' => '</li>', | |
// This will enclose sub-lists in a list: | |
'group_start' => '<ul>', | |
'group_end' => '</ul>', | |
// This will enclose (foot)notes: | |
'notes_start' => '<div class="notes">', | |
'notes_end' => '</div>', | |
) ); | |
?> | |
</ul> | |
</div> | |
<!-- sidebar2 --> | |
<?php endif; ?> | |
<?php endif; ?> | |
<?php if( ! @preg_match('~-1~', $Skin->get_setting('skin_layout')) ) : ?> | |
<!-- sidebar --> | |
<div id="sidebar"> | |
<ul class="blocks"> | |
<!-- search form --> | |
<li class="block"> | |
<div class="search-form"> | |
<form method="get" id="searchform" action="<?php echo $Blog->gen_blogurl() ?>" class="clearfix" name="searchform"> | |
<fieldset> | |
<div id="searchfield"> | |
<?php | |
$s_value = $s; | |
if( empty($s_value) ) $s_value = $Skin->T_('חיפוש...'); | |
echo '<input type="text" name="s" class="text clearField" value="'. | |
$s_value.'" onfocus="if (this.value == \''.$s_value. | |
'\') {this.value = \'\';}" onblur="if (this.value == \'\') | |
{this.value = \''.$s_value.'\';}" />'; | |
?> | |
</div> | |
<input type="submit" value="" class="submit" /> | |
</fieldset> | |
</form> | |
</div> | |
</li> | |
<li class="block"> | |
<div class="clearfix"><h3 class="title"><span>מתוך יומן האירועים:</span></h3><div class="block-div"></div><div class="block-div-arrow"></div> | |
<div class="main-events"> | |
<?php | |
//requiring FB PHP SDK | |
require './fb-sdk/src/facebook.php'; | |
//initializing keys | |
$facebook = new Facebook(array( | |
'appId' => '669290843136438', | |
'secret' => '9277ba8b62a8f7a96fc6e94ca4f77a09', | |
'cookie' => true | |
)); | |
/* | |
*-Query the events | |
* | |
*-We will select: | |
* -name, start_time, end_time, location, description | |
* -but there are other data that you can get on the event table | |
* -https://developers.facebook.com/docs/reference/fql/event/ | |
* | |
*-As you will notice, we have TWO select statements here because | |
*-We can't just do "WHERE creator = your_fan_page_id". | |
*-Only eid is indexable in the event table | |
* -So we have to retrieve list of events by eids | |
* -And this was achieved by selecting all eid from | |
* event_member table where the uid is the id of your fanpage. | |
* | |
*-Yes, you fanpage automatically becomes an event_member once it creates an event | |
*-start_time >= now() is used to show upcoming events only | |
*/ | |
$fql = "SELECT | |
eid,name, pic, start_time, end_time, location, description | |
FROM | |
event | |
WHERE | |
eid IN ( SELECT eid FROM event_member WHERE uid = 533749210009891 ) | |
AND | |
start_time >= now() | |
ORDER BY | |
start_time asc limit 3"; | |
$param = array( | |
'method' => 'fql.query', | |
'query' => $fql, | |
'callback' => '' | |
); | |
$fqlResult = $facebook->api($param); | |
//looping through retrieved data | |
foreach( $fqlResult as $keys => $values ){ | |
/* | |
* see here http://php.net/manual/en/function.date.php | |
* for the date format I used. | |
* The pattern string I used 'l, F d, Y g:i a' | |
* will output something like this: July 30, 2015 6:30 pm | |
*/ | |
/* | |
* getting start date, | |
* 'l, F d, Y' pattern string will give us | |
* something like: Thursday, July 30, 2015 | |
*l, F d, Y | |
*/ | |
$head_date = date( 'd/m/Y', strtotime($values['start_time'])); | |
$start_date = date( 'F', strtotime($values['start_time'])); | |
$start_another_date = date("Y,m,j" , strtotime($values['start_time'])); | |
$start_date1 = date( 'd', strtotime($values['start_time'])); | |
/* | |
* getting 'start' and 'end' time | |
* 'g:i a' will give us something | |
* like 6:30 pm {$start_another_date} | |
*/ | |
$start_time = date( 'G:i', strtotime($values['start_time']) ); | |
//printing the data | |
echo "<div class='event'>"; | |
echo "<div class='html'>"; | |
echo "<div class='floatLeft text-date'>"; | |
echo "{$start_date}"; | |
echo "<br />"; | |
echo "{$start_date1}"; | |
echo "</div>"; | |
echo "<div class='floatLeft eventImage'>"; | |
echo "<a target=_blank href=https://www.facebook.com/events/{$values['eid']}><img src={$values['pic']} width='150px' /></a>"; | |
echo "</div>"; | |
echo "<div class='floatLeft width-65'>"; | |
echo "<div class='eventName'><a target=_blank href=https://www.facebook.com/events/{$values['eid']}> {$values['name']} </a> </div>"; | |
/* | |
* -the date is displaying correctly, but the time? uh, sometimes it is late by an hour. | |
* -it might also depend on what country you are in | |
* -the best solution i can give is to include the date only and not the time | |
* -you should put the time of your event in the description. | |
*/ | |
echo "<div class='eventInfo'><b>ב:</b> {$values['location']}</div>"; | |
echo "<div class='eventInfo'><b>בתאריך:</b> {$head_date} </div>"; | |
echo "<div class='eventInfo'><b>בשעה:</b> {$start_time} </div>"; | |
//echo "<div class='eventInfo'>{$values['description']}</div>"; | |
echo "</div>"; | |
echo "<div class='clearBoth'></div>"; | |
echo "</div>"; | |
echo "<div class='clearBoth'></div>"; | |
echo "</div>"; | |
} | |
?> | |
</div> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<script type='text/javascript'> | |
//just to add some hover effects | |
$(document).ready(function(){ | |
$('.event').hover( | |
function () { | |
$(this).css('background-color', '#CFF'); | |
}, | |
function () { | |
$(this).css('background-color', '#fff'); | |
} | |
); | |
}); | |
</script> | |
<br> | |
<p style="text-align: center;"><strong><span style="color: #ffffff; background-color: #ff0000; font-size: xx-large;">מפיק? יחצ"ן?</span></strong></p> | |
<p style="text-align: center;"><span style="font-size: large;"> | |
רוצה להוסיף אירוע? צור קשר | |
<a href="https://www.facebook.com/onlymusicremix" target="_blank"> | |
בפייסבוק | |
</a> | |
</span></p> | |
</li> | |
<!-- /search form --> | |
<?php | |
// Display javascript tabbed widget | |
$Skin->display_tabbed_widget(); | |
// "Sidebar" CONTAINER EMBEDDED HERE | |
skin_container( NT_('Sidebar'), array( | |
// This will enclose each widget in a block: | |
'block_start' => '<li class="block $wi_class$"><div class="clearfix">', | |
'block_end' => '</div></li>', | |
// This will enclose the title of each widget: | |
'block_title_start' => '<h3 class="title"><span>', | |
'block_title_end' => '</span></h3><div class="block-div"></div><div class="block-div-arrow"></div>', | |
// If a widget displays a list, this will enclose that list: | |
'list_start' => '<ul>', | |
'list_end' => '</ul>', | |
// This will enclose each item in a list: | |
'item_start' => '<li>', | |
'item_end' => '</li>', | |
// This will enclose sub-lists in a list: | |
'group_start' => '<ul>', | |
'group_end' => '</ul>', | |
// This will enclose (foot)notes: | |
'notes_start' => '<div class="notes">', | |
'notes_end' => '</div>', | |
) ); | |
// Display twitter widget | |
$Skin->display_twitter_widget(); | |
?> | |
</ul> | |
</div> | |
<!-- sidebar --> | |
<?php endif; ?> | |
</div> | |
</div> | |
<!-- /main content --> | |
<?php | |
// "After posts" CONTAINER EMBEDDED HERE | |
skin_container( NT_('After posts'), array( | |
'block_start' => '<div class="AfterPosts">', | |
'block_end' => '</div>', | |
) ); | |
?> | |
<!-- footer --> | |
<div id="footer"> | |
<div id="footer-blocks" class="page-content"> | |
<div class="slide-container clear-block"> | |
<ul class="slides"> | |
<li class="slide slide-1 page-content"> | |
<div class="slide-content"> | |
<?php $Skin->display_footer_container() ?></div> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<div class="page-content"> | |
<?php $Skin->display_footer() ?></div> | |
<div style="width:865px;height:32px;font-size:20px;font-weight:bold;background: #eeeeee;color: #797979;margin-right: 30px;padding: 7px 15px 0px 0px;">החלפת קישורים</div> | |
<div style='padding: 10px 14px 0px 0px;'> | |
<a href="http://doubleshot.co.il/">צילום אירועים</a> | |
<a href="http://doubleshot.co.il/">מגנטים לאירועים</a> | |
<a href="http://doubleshot.co.il/%D7%9E%D7%92%D7%A0%D7%98%D7%99%D7%9D-%D7%9C%D7%97%D7%AA%D7%95%D7%A0%D7%94.html">מגנטים לחתונה</a> | |
<a href="http://doubleshot.co.il/%D7%9E%D7%92%D7%A0%D7%98%D7%99%D7%9D-%D7%9C%D7%90%D7%99%D7%A8%D7%95%D7%A2%D7%99%D7%9D-%D7%91%D7%9E%D7%95%D7%93%D7%99%D7%A2%D7%99%D7%9F.html">מגנטים לאירועים במודיעין</a> | |
<a href="http://doubleshot.co.il/%D7%A6%D7%9C%D7%9D-%D7%9E%D7%92%D7%A0%D7%98%D7%99%D7%9D.html">צלם מגנטים</a> | |
<a href="http://doubleshot.co.il/%D7%9E%D7%92%D7%A0%D7%98%D7%99%D7%9D-%D7%9C%D7%90%D7%99%D7%A8%D7%95%D7%A2%D7%99%D7%9D-%D7%91%D7%99%D7%A8%D7%95%D7%A9%D7%9C%D7%99%D7%9D.html">מגנטים לאירועים בירושלים</a> | |
<a href="http://argaman-garden.co.il/%D7%90%D7%95%D7%9C%D7%9D_%D7%9C%D7%97%D7%99%D7%A0%D7%94_%D7%91%D7%9E%D7%95%D7%93%D7%99%D7%A2%D7%99%D7%9F.html">אולם לחינה במודיעין</a> | |
<a href="http://doubleshot.co.il/%D7%90%D7%9C%D7%91%D7%95%D7%9D-%D7%93%D7%99%D7%92%D7%99%D7%98%D7%9C%D7%99.html">אלבום דיגיטלי</a> | |
</div> | |
<br> | |
</div> | |
<!-- /footer --> | |
<p style="margin: 7px;"></p> | |
<div id='gfooter' style='width:940px;height:30px;background: #8394b2;border: 0px;padding: 0px 0px 0px 0px;color: #fff;'> | |
<table cellspacing="0" border="0"> | |
<tr> | |
<td width="37%" style="border: 0px;background: #8394b2; text-align: right;"> | |
<form action="#" name="skinselectorbox" method="post"> | |
<input type="hidden" name="skinurlbits" value="act=idx&CODE=&id=&t=&f=&st=" /> | |
<select name="skinid" onchange="chooseskin(this)"> | |
<optgroup label="בוחר סקינים"> | |
<option value='2' selected="selected">Default Only-Music.co.il V1.0 BLOG</option><!--CHILDREN:2--> | |
</optgroup> | |
</select> | |
</form> | |
</td> | |
<td width="10%" align="center" nowrap="nowrap" style="color: #fff;border: 0px;background: #8394b2;"><a href="http://only-music.co.il/?disp=sitemap" style="color: #fff;">מפת האתר</a> | <a href="http://only-music.co.il/sitemap_a.php" style="color: #fff;">מפת RSS</a></td> | |
<td width="45%" align="left" nowrap="nowrap" style="color: #fff;border: 0px;background: #8394b2;">השעה עכשיו היא: <?php date_default_timezone_set('Asia/Tel_Aviv');echo date('F j, Y - G:i A');?></td> | |
</tr> | |
</table> | |
</div> | |
<div style='width:940px;height:49px;background: #eeeeee;border: 0px;padding: 0px 0px 0px 0px;color: #4e4e4e;'> | |
<p style="padding: 0px;"></p> | |
<div style="float: right;text-align:right;padding: 0px 10px 0px 0px;margin: 8px 0px 0px 0px;"> | |
אונלי מיוזיק שומר על חוק זכויות היוצרים, כל החומר באתר נשלח ע"י יוצריו למערכת הבלוג.<br> | |
כמו כן, כל ההורדות המפורסמות בבלוג אינן נמצאות על שרת הבלוג, לכן כל נזק הנגרם מהורדה באתר אינו על אחריות הבלוג או צוות הבלוג. | |
</div> | |
<div style="float: left;text-align:left;padding: 0px 0px 0px 0px;list-style: none; padding: 0px; margin: 0px;"> | |
<ul style="list-style: none; padding: 0px; margin: 0px;"> | |
<li style="float: left; margin: 5px 0px 0px 0px;"> | |
<div id="eXTReMe"><a href="http://extremetracking.com/open?login=djdon" target="_blank"> | |
<img src="http://t1.extreme-dm.com/i.gif" style="border: 0;" | |
height="38" width="41" id="EXim" alt="eXTReMe Tracker" /></a> | |
<script type="text/javascript"><!-- | |
EXref="";top.document.referrer?EXref=top.document.referrer:EXref=document.referrer;//--> | |
</script><script type="text/javascript"><!-- | |
var EXlogin='djdon' // Login | |
var EXvsrv='s9' // VServer | |
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"? | |
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;EXsrc="src"; | |
navigator.javaEnabled()==1?EXjv="y":EXjv="n"; | |
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na"; | |
EXref?EXref=EXref:EXref=EXd.referrer; | |
EXd.write("<img "+EXsrc+"=http://e0.extreme-dm.com", | |
"/"+EXvsrv+".g?login="+EXlogin+"&", | |
"jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&", | |
"l="+escape(EXref)+" height=1 width=1>");//--> | |
</script><noscript><div id="neXTReMe"><img height="1" width="1" alt="" | |
src="http://e0.extreme-dm.com/s9.g?login=djdon&j=n&jv=n" /> | |
</div></noscript></div></div></li></ul> | |
</li> | |
<li style="list-style: none;float: left;margin: 10px 0px 0px 6px;"> | |
<script id="_waunpu">var _wau = _wau || []; _wau.push(["classic", "1iaqt4edqh1s", "npu"]); | |
(function() {var s=document.createElement("script"); s.async=true; | |
s.src="http://widgets.amung.us/classic.js"; | |
document.getElementsByTagName("head")[0].appendChild(s); | |
})();</script> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div id="pageControls"></div> | |
</div> | |
<?php | |
// HTML FOOTER INCLUDED HERE | |
skin_include( '_html_footer.inc.php' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment