Ejemplo n.º 1
0
<?php

if (!isset($source)) {
    $source = new \sources\DataSource();
}
$source->loadProperties();
?>
<div class="ui stacked segment">
	<h3 class="ui dividing header"> Datos de la aplicación</h3>
	<div class="ui relaxed divided list">
		<div class="item">
			<div class="content">
				<div class="description">
					<b><?php 
echo lang('fb_insights_field_app_id');
?>
:</b> <?php 
echo $source->getProperty('fb_insights_field_app_id');
?>
					<br>
					<b><?php 
echo lang('fb_insights_field_app_secret');
?>
:</b> <?php 
echo $source->getProperty('fb_insights_field_app_secret');
?>
					<br>
					<b><?php 
echo lang('fb_insights_field_permissions');
?>
:</b> <?php 
Ejemplo n.º 2
0
<?php

	if( !isset( $dataSource ) )
		$dataSource = new \sources\DataSource( );
	$dataSource->loadProperties();

	$projectProperties = new \sources\ProjectProperties( $dataSource->getId( ), $project['id'] );
	$projectProperties->load( );

	if( $projectProperties->get('id_page') ) {
?>
<div class="ui secondary segment" id="actual_data">
	<div class="ui items">
		<div class="item">
			<div class="ui tiny image">
				<img src="https://graph.facebook.com/<?= $projectProperties->get('id_page') ?>/picture?type=square"/>
			</div>
			<div class="content">
				<div class="header"><?= $projectProperties->get('name') ?></div>
				<div class="description">
					<p><?= $projectProperties->get('category') ?></p>
					<a class="ui button mini facebook" href="<?= $projectProperties->get('link') ?>" target="_blank"><i class="icon facebook"></i> Perfil en Facebook</a>
					<a class="ui button mini purple <?= ( !$projectProperties->get('website') ? 'hidden' : '' ) ?>" href="<?= $projectProperties->get('website') ?>" target="_blank"><i class="icon file"></i> Sitio Web</a>
				</div>
			</div>
		</div>
	</div>
</div>
<?
	}
?>