mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
add twig service
This commit is contained in:
@@ -297,8 +297,8 @@ $npages = $result->get_total_pages();
|
||||
?></tr><?php
|
||||
}
|
||||
|
||||
$twig = new supertwig();
|
||||
$twig->addFilter(array('formatoctet'=>'p4string::format_octets'));
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
foreach ($result->get_datas() as $record)
|
||||
{
|
||||
@@ -397,13 +397,15 @@ $npages = $result->get_total_pages();
|
||||
$pic_roll = '/prod/tooltip/caption/' . $record->get_sbas_id() . '/' . $record->get_record_id() . '/answer/';
|
||||
|
||||
$pic_roll = str_replace(array('&', '"'), array('&', '"'), $pic_roll);
|
||||
?><img style="<?php if($thumbnail->get_width() > $thumbnail->get_height()){?>width:128px;<?php }else{?>height:128px;<?php } ?>" onclick="<?php echo $onclick ?>" class=" captionTips" id="IMG<?php echo $record->get_base_id() ?>_<?php echo $record->get_record_id() ?>" src="<?php echo $thumbnail->get_url() ?>" tooltipsrc="<?php echo ($pic_roll) ?>" />
|
||||
?><img style="<?php if ($thumbnail->get_width() > $thumbnail->get_height())
|
||||
{ ?>width:128px;<?php }
|
||||
else
|
||||
{ ?>height:128px;<?php } ?>" onclick="<?php echo $onclick ?>" class=" captionTips" id="IMG<?php echo $record->get_base_id() ?>_<?php echo $record->get_record_id() ?>" src="<?php echo $thumbnail->get_url() ?>" tooltipsrc="<?php echo ($pic_roll) ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="diapo w160px" style="border-top:none;"><?php
|
||||
?><div class="buttons"><?php
|
||||
<div class="diapo w160px" style="border-top:none;"><?php ?><div class="buttons"><?php
|
||||
$minilogos = "";
|
||||
|
||||
$minilogos .= '<div class="minilogos">' . collection::getLogo($record->get_base_id());
|
||||
|
@@ -39,7 +39,9 @@ switch ($parm['action'])
|
||||
$output = module_client::getLanguage($lng);
|
||||
break;
|
||||
case 'PREVIEW':
|
||||
$twig = new supertwig();
|
||||
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
$search_engine = null;
|
||||
if (($options = unserialize($parm['options_serial'])) !== false)
|
||||
@@ -50,8 +52,6 @@ switch ($parm['action'])
|
||||
|
||||
$record = new record_preview($parm['env'], $parm['pos'], $parm['cont'], $parm['roll'], $search_engine, $parm['query']);
|
||||
|
||||
$twig->addFilter(array('implode' => 'implode', 'formatoctet'=>'p4string::format_octets'));
|
||||
|
||||
$train = '';
|
||||
|
||||
if ($record->is_from_reg())
|
||||
|
@@ -62,8 +62,8 @@ if ($rawMe)
|
||||
$info_usr = $rawMe;
|
||||
}
|
||||
|
||||
$twig = new supertwig();
|
||||
$twig->addFilter(array('formatoctet'=>'p4string::format_octets'));
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
$stmt = $conn->prepare($sql);
|
||||
$usr_id = $session->get_usr_id();
|
||||
|
@@ -108,8 +108,9 @@ if ($cssfile)
|
||||
<?php
|
||||
$events_mngr = eventsmanager_broker::getInstance($appbox, $Core);
|
||||
|
||||
$twig = new supertwig();
|
||||
$twig->display('common/menubar.twig', array('module' => 'client', 'events' => $events_mngr));
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
echo $twig->render('common/menubar.twig', array('module' => 'client', 'events' => $events_mngr));
|
||||
?>
|
||||
<div style="top:30px;position:relative;float:left;">
|
||||
<div id="left" style="height:100%;width:265px;position:relative;float:left;">
|
||||
|
Reference in New Issue
Block a user