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