<script type="text/javascript">
/**
 * beats-chart-theme.tpl.php
 * Author: QArea
 * Function: The way the Google chart displays.
 * 
 */
<!--

function getData(params) {
    //alert($(params.object).attr("id"));
	$.ajax({
        url: '/chart/get-rating-chart',
        type: "POST",
        data: {period: params.period, node: '<?php echo arg(1); ?>'},
        dataType: "json",
        success: function(data, textStatus){
            $("#celebrity_chart_picture").html(data.rating_chart);
            var items = $("a.chart-button").get();
            jQuery.each(items, function(i, value){
                $(value).removeClass("current").addClass("default");
            });
            $(params.object).removeClass("default").addClass("current");
        }
    });
}
$(document).ready(function() {
	$('#chart-period-1d').click();
});
//-->
</script>
Esempio n. 2
0
            <?php endif; ?>
        </div>

        <?php if (!empty($feed) && is_array($feed)): ?>
        <div id="celeb_extras">
            <h3 class="subheading"><?php echo t('From Website'); ?></h3>
            <p><?php print $feed['title']; ?></p>
            <p><?php print $feed['description']; ?></p>
        </div>
        <?php endif; ?>

        <?php if (!empty($celebrity_articles)): ?>
        <div id="celeb_extras">
            <h3 class="subheading">
                <?php print t('Latest news on !celebrity_name',
                    array('!celebrity_name' => three_beats_substr_name ($node->field_firstname[0]['value'], $node->field_lastname[0]['value'], 19 )
                )); ?>
            </h3>
            <div class="celeb_list_articles">
            <?php print $celebrity_articles; ?>
            </div>
        </div>
        <?php endif; ?>

        <?php if (!empty($similar_celebrities) && is_array($similar_celebrities)): ?>
        <div id="celeb_extras">
            <h3 class="subheading"><?php print t('Similar Celebrities'); ?></h3>
            <div class="celeb_similar">
            <ul>
            <?php foreach ($similar_celebrities as $value): ?>
            <li><?php print l($value->field_firstname[0]['value'] . ' ' . $value->field_lastname[0]['value'], 'node/' . $value->nid, array('' => '')); ?></li>
Esempio n. 3
0
			<div id="header_bar">
				<div class="topnavigation" >
				<?php if (isset($primary_links)) : ?>
					  <div id="primary-menu">
    					 <?php print $primary_links_tree; /* UNCOMMENT FOR DROPDOWN MENU */?>
				    </div>
				<?php endif; ?>
				</div>
           <div id="searchbox_bg_corner"  <?php $primary_links_tree ? '' : print ('style="margin-top:15px;"'); ?>>
         <?php print $celebrity_search; ?>
				</div>
			</div>
			<div id="contentbg">
				<div id="contentbox">
					<div class="newline"></div>
					<div id="tit" style="clear:both"><h1><?php print three_beats_substr_name ('', $title, 40);?></h1></div>
						<div style="margin-left:15px">
							<?php if ($tabs): ?>
								<div class="tabs"><?php print $tabs; ?></div>
							<?php endif; ?>
						<?php print $content ?>
						<?php if ($contact_bar): ?>
    						<div class="contact-us-form">
                                <span style="color:#fff; font-size:12px">
                                <?php print $messages;?>
                                <?php print $contact_bar;?>
                                <br />
                                </span>
                            </div>
						<?php endif; ?>
						</div>
Esempio n. 4
0
 * @see user-profile-category.tpl.php
 *   Where the html is handled for the group.
 * @see user-profile-item.tpl.php
 *   Where the html is handled for each item in the group.
 * @see template_preprocess_user_profile()
 */
?>

<?php
	$account_profile = content_profile_load('personal',$account->uid);
	drupal_set_title($account_profile->field_first_name[0]['value'].'_'.$account_profile->field_last_name[0]['value'] )
  ?>

    <div id="contentbox">
        <div id="user-left-container" >
            <h1 class="user-page-name" style="font-size:20px;padding:23px 0 0 15px;"><?php if(isset($account_profile->field_first_name[0]['value']) || isset($account_profile->field_last_name[0]['value'])) { $printed_username = three_beats_substr_name ($account_profile->field_first_name[0]['value'], $account_profile->field_last_name[0]['value'], 18 ) ; } else { $printed_username =  $account->name; }
			print $printed_username;
			?>
			</h1>
            <div class="user-border">
                <div id="user-picture">
					<?php	print theme('imagecache', 'user_avatar', $account->picture ,'user avatar'); ?>
                </div>
                <div>
                    <span class="user-joined"><?php print t('Joined 3beats:') ?><?php print date('M Y',$account->created) ?></span>
                </div>
                <div id="shure_fb" style="color:black; display: none;"><?php print '<p style="text-align: center;">'.t('Are you sure you want to unlink your FB account?').'<p>'?>
                <p style="text-align: left; position:absolute; top:85px;left:80px;"><input type="submit" onclick="tb_remove()" value="&nbsp;&nbsp;YES&nbsp;&nbsp;" id="yes_fb"></p>
                <p style="text-align: right; position:absolute; top:85px;left:200px;"><input type="submit" onclick="tb_remove()" value="&nbsp;&nbsp;NO&nbsp;&nbsp;" id="no_fb"></p>
                </div>
                 <div id="shure_tw" style="color:black; display: none;"><?php print '<p style="text-align: center;">'.t('Are you sure you want to unlink your Twitter account?').'<p>'?>