mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Update templates filepaths
This commit is contained in:
@@ -56,7 +56,7 @@ class Bridge implements ControllerProviderInterface
|
||||
, 'current_account_id' => ''
|
||||
);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/index.twig', $params)
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/index.html.twig', $params)
|
||||
);
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ class Bridge implements ControllerProviderInterface
|
||||
|
||||
$params = array('error_message' => $error_message);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/callback.twig', $params));
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/callback.html.twig', $params));
|
||||
});
|
||||
|
||||
$controllers->get('/adapter/{account_id}/logout/', function(Application $app, $account_id) {
|
||||
@@ -130,7 +130,7 @@ class Bridge implements ControllerProviderInterface
|
||||
, 'notice_message' => $app['request']->get('notice')
|
||||
);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/records_list.twig', $params));
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/records_list.html.twig', $params));
|
||||
})
|
||||
->assert('account_id', '\d+');
|
||||
|
||||
@@ -155,7 +155,7 @@ class Bridge implements ControllerProviderInterface
|
||||
, 'notice_message' => $app['request']->get('notice')
|
||||
);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/element_list.twig', $params));
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/element_list.html.twig', $params));
|
||||
})
|
||||
->assert('account_id', '\d+');
|
||||
|
||||
@@ -180,7 +180,7 @@ class Bridge implements ControllerProviderInterface
|
||||
, 'notice_message' => $app['request']->get('notice')
|
||||
);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/element_list.twig', $params));
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/element_list.html.twig', $params));
|
||||
})
|
||||
->assert('account_id', '\d+');
|
||||
|
||||
@@ -245,7 +245,7 @@ class Bridge implements ControllerProviderInterface
|
||||
|
||||
$params = array_merge($params, $route_params);
|
||||
|
||||
$template = 'prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/' . $element_type . '_' . $action . ($destination ? '_' . $destination : '') . '.twig';
|
||||
$template = 'prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/' . $element_type . '_' . $action . ($destination ? '_' . $destination : '') . '.html.twig';
|
||||
|
||||
return new Response($app['twig']->render($template, $params));
|
||||
})->assert('account_id', '\d+');
|
||||
@@ -290,7 +290,7 @@ class Bridge implements ControllerProviderInterface
|
||||
, 'notice_message' => $app['request']->get('notice')
|
||||
);
|
||||
|
||||
$template = 'prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/' . $element_type . '_' . $action . ($destination ? '_' . $destination : '') . '.twig';
|
||||
$template = 'prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/' . $element_type . '_' . $action . ($destination ? '_' . $destination : '') . '.html.twig';
|
||||
|
||||
return new Response($app['twig']->render($template, $params));
|
||||
}
|
||||
@@ -373,7 +373,7 @@ class Bridge implements ControllerProviderInterface
|
||||
);
|
||||
|
||||
return new Response($app['twig']->render(
|
||||
'prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/upload.twig', $params
|
||||
'prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/upload.html.twig', $params
|
||||
));
|
||||
});
|
||||
|
||||
@@ -407,7 +407,7 @@ class Bridge implements ControllerProviderInterface
|
||||
, 'adapter_action' => 'upload'
|
||||
);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/upload.twig', $params));
|
||||
return new Response($app['twig']->render('prod/actions/Bridge/' . $account->get_api()->get_connector()->get_name() . '/upload.html.twig', $params));
|
||||
}
|
||||
|
||||
foreach ($route->get_elements() as $record) {
|
||||
@@ -438,22 +438,22 @@ class Bridge implements ControllerProviderInterface
|
||||
if ($e instanceof \Bridge_Exception_ApiConnectorNotConfigured) {
|
||||
$params = array_merge($params, array('account' => $app['current_account']));
|
||||
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/notconfigured.twig', $params), 200);
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/notconfigured.html.twig', $params), 200);
|
||||
} elseif ($e instanceof \Bridge_Exception_ApiConnectorNotConnected) {
|
||||
$params = array_merge($params, array('account' => $app['current_account']));
|
||||
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/disconnected.twig', $params), 200);
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/disconnected.html.twig', $params), 200);
|
||||
} elseif ($e instanceof \Bridge_Exception_ApiConnectorAccessTokenFailed) {
|
||||
$params = array_merge($params, array('account' => $app['current_account']));
|
||||
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/disconnected.twig', $params), 200);
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/disconnected.html.twig', $params), 200);
|
||||
} elseif ($e instanceof \Bridge_Exception_ApiDisabled) {
|
||||
$params = array_merge($params, array('api' => $e->get_api()));
|
||||
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/deactivated.twig', $params), 200);
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/deactivated.html.twig', $params), 200);
|
||||
}
|
||||
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/error.twig', $params), 200);
|
||||
return new response($app['twig']->render('/prod/actions/Bridge/error.html.twig', $params), 200);
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -34,7 +34,7 @@ class Edit implements ControllerProviderInterface
|
||||
$handler = new RecordHelper\Edit($app['phraseanet.core'], $request);
|
||||
$handler->propose_editing();
|
||||
|
||||
return $app['twig']->render('prod/actions/edit_default.twig', array('edit' => $handler, 'message' => ''));
|
||||
return $app['twig']->render('prod/actions/edit_default.html.twig', array('edit' => $handler, 'message' => ''));
|
||||
}
|
||||
);
|
||||
|
||||
@@ -86,7 +86,7 @@ class Edit implements ControllerProviderInterface
|
||||
$editing = new RecordHelper\Edit($app['phraseanet.core'], $app['request']);
|
||||
$editing->execute($request);
|
||||
|
||||
return $app['twig']->render( 'prod/actions/edit_default.twig', array('edit' => $editing, 'message' => ''));
|
||||
return $app['twig']->render( 'prod/actions/edit_default.html.twig', array('edit' => $editing, 'message' => ''));
|
||||
}
|
||||
);
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class Feed implements ControllerProviderInterface
|
||||
$feeds = \Feed_Collection::load_all($app['phraseanet.appbox'], $user);
|
||||
$publishing = new RecordHelper\Feed($app['phraseanet.core'], $request);
|
||||
|
||||
return new Response($app['twig']->render('prod/actions/publish/publish.html', array('publishing' => $publishing, 'feeds' => $feeds)));
|
||||
return new Response($app['twig']->render('prod/actions/publish/publish.html.twig', array('publishing' => $publishing, 'feeds' => $feeds)));
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -88,7 +88,7 @@ class Feed implements ControllerProviderInterface
|
||||
|
||||
$feeds = \Feed_Collection::load_all($app['phraseanet.appbox'], $user);
|
||||
|
||||
$datas = $app['twig']->render('prod/actions/publish/publish_edit.html', array('entry' => $entry, 'feeds' => $feeds));
|
||||
$datas = $app['twig']->render('prod/actions/publish/publish_edit.html.twig', array('entry' => $entry, 'feeds' => $feeds));
|
||||
|
||||
return new Response($datas);
|
||||
})->assert('id', '\d+');
|
||||
@@ -146,7 +146,7 @@ class Feed implements ControllerProviderInterface
|
||||
}
|
||||
$app['phraseanet.appbox']->get_connection()->commit();
|
||||
|
||||
$entry = $app['twig']->render('prod/feeds/entry.html', array('entry' => $entry));
|
||||
$entry = $app['twig']->render('prod/feeds/entry.html.twig', array('entry' => $entry));
|
||||
|
||||
$datas = array('error' => false, 'message' => 'succes', 'datas' => $entry);
|
||||
} catch (\Exception_Feed_EntryNotFound $e) {
|
||||
@@ -216,7 +216,7 @@ class Feed implements ControllerProviderInterface
|
||||
|
||||
$feeds = \Feed_Collection::load_all($app['phraseanet.appbox'], $user);
|
||||
|
||||
$datas = $app['twig']->render('prod/feeds/feeds.html'
|
||||
$datas = $app['twig']->render('prod/feeds/feeds.html.twig'
|
||||
, array(
|
||||
'feeds' => $feeds
|
||||
, 'feed' => $feeds->get_aggregate()
|
||||
@@ -236,7 +236,7 @@ class Feed implements ControllerProviderInterface
|
||||
$feed = \Feed_Adapter::load_with_user($app['phraseanet.appbox'], $user, $id);
|
||||
$feeds = \Feed_Collection::load_all($app['phraseanet.appbox'], $user);
|
||||
|
||||
$datas = $app['twig']->render('prod/feeds/feeds.html', array('feed' => $feed, 'feeds' => $feeds, 'page' => $page));
|
||||
$datas = $app['twig']->render('prod/feeds/feeds.html.twig', array('feed' => $feed, 'feeds' => $feeds, 'page' => $page));
|
||||
|
||||
return new Response($datas);
|
||||
})->assert('id', '\d+');
|
||||
|
@@ -35,7 +35,7 @@ class MoveCollection implements ControllerProviderInterface
|
||||
$move = new RecordHelper\MoveCollection($app['phraseanet.core'], $app['request']);
|
||||
$move->propose();
|
||||
|
||||
return $app['twig']->render('prod/actions/collection_default.twig', array('action' => $move, 'message' => ''));
|
||||
return $app['twig']->render('prod/actions/collection_default.html.twig', array('action' => $move, 'message' => ''));
|
||||
}
|
||||
);
|
||||
|
||||
|
@@ -181,12 +181,12 @@ class Query implements ControllerProviderInterface
|
||||
}
|
||||
|
||||
if ($result->get_count_total_results() === 0) {
|
||||
$template = 'prod/results/help.twig';
|
||||
$template = 'prod/results/help.html.twig';
|
||||
} else {
|
||||
if ($mod == 'thumbs') {
|
||||
$template = 'prod/results/answergrid.html';
|
||||
$template = 'prod/results/answergrid.html.twig';
|
||||
} else {
|
||||
$template = 'prod/results/answerlist.html';
|
||||
$template = 'prod/results/answerlist.html.twig';
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -191,5 +191,5 @@
|
||||
|
||||
<div style="display:none;z-index:30000;" id="notification_box">
|
||||
{% set notifications = events.get_notifications %}
|
||||
{% include 'prod/notifications.twig' %}
|
||||
{% include 'prod/notifications.html.twig' %}
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% block menu %}
|
||||
{% trans %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.twig" as error_form %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
||||
|
||||
{% block menu %}
|
||||
{% trans %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.twig" as error_form %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
||||
|
||||
{% block menu %}
|
||||
<table style="width:100%;height:30px;">
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.twig" as error_form %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
||||
|
||||
{% block menu %}
|
||||
<table style="width:100%;height:30px;">
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% block menu %}
|
||||
{% trans %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
{% import "common/thumbnail.html.twig" as thumb %}
|
||||
{% import "prod/actions/Bridge/macro_error_form.twig" as error_form %}
|
||||
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
||||
|
||||
{% block menu %}
|
||||
{% trans %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% block menu %}
|
||||
{% trans %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.twig" as error_form %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
||||
|
||||
{% block menu %}
|
||||
{% trans %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.twig" as error_form %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
{% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %}
|
||||
|
||||
{% block menu %}
|
||||
<table style="width:100%;height:30px;">
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig" %}
|
||||
{% import "prod/actions/Bridge/paginator.twig" as pages %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig" %}
|
||||
{% import "prod/actions/Bridge/paginator.html.twig" as pages %}
|
||||
|
||||
|
||||
{% block menu %}
|
||||
@@ -12,9 +12,9 @@
|
||||
</form>
|
||||
</td>
|
||||
{% if adapter_action == 'load-elements' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actionelements.twig' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actionelements.html.twig' %}
|
||||
{% elseif adapter_action == 'load-containers' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actioncontainers.twig' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actioncontainers.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% include actiontemplate %}
|
||||
@@ -103,16 +103,16 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="special">
|
||||
{% set information_template = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/element_informations.twig' %}
|
||||
{% set information_template = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/element_informations.html.twig' %}
|
||||
{% include information_template %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="text-align:right;">
|
||||
{% if adapter_action == 'load-elements' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actionelement.twig' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actionelement.html.twig' %}
|
||||
{% elseif adapter_action == 'load-containers' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actioncontainer.twig' %}
|
||||
{% set actiontemplate = 'prod/actions/Bridge/' ~ account.get_api().get_connector().get_name() ~ '/actioncontainer.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% include actiontemplate %}
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig"%}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig"%}
|
||||
|
||||
{% set n_element = elements|length %}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends "prod/actions/Bridge/wrapper.twig" %}
|
||||
{% extends "prod/actions/Bridge/wrapper.html.twig" %}
|
||||
{% import "common/thumbnail.html.twig" as thumb %}
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
{% import 'prod/feeds/entry_macro.html' as _entry %}
|
||||
{% import 'prod/feeds/entry_macro.html.twig' as _entry %}
|
||||
{{ _entry.format(entry.get_feed(), entry, user, session) }}
|
@@ -1,5 +1,5 @@
|
||||
{% macro format(feed, entry, user, session)%}
|
||||
{% import 'prod/results/record.html' as record_format %}
|
||||
{% import 'prod/results/record.html.twig' as record_format %}
|
||||
|
||||
<div class="entry ui-corner-all" id="entry_{{ entry.get_id() }}">
|
||||
<table class="head">
|
@@ -1,4 +1,4 @@
|
||||
{% import 'prod/feeds/entry_macro.html' as _entry %}
|
||||
{% import 'prod/feeds/entry_macro.html.twig' as _entry %}
|
||||
<div class="feed">
|
||||
{% if page == 1 %}
|
||||
<div class="headblock">
|
31
templates/web/prod/notifications.html.twig
Normal file
31
templates/web/prod/notifications.html.twig
Normal file
@@ -0,0 +1,31 @@
|
||||
<div style="margin-right:16px;">
|
||||
|
||||
{% if notifications|length == 0%}
|
||||
<div class="notification_title">
|
||||
<span>{% trans 'Aucune notification' %}</span>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="notification_title">
|
||||
<a href="#" onclick="print_notifications(0);return false;">{% trans 'toutes les notifications' %}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% for notif in notifications %}
|
||||
<div style="position:relative;" id="notification_{{notif['id']}}" class="notification {% if notif['unread'] == '1' %}unread{% endif %}">
|
||||
<table style="width:100%;" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td style="width:25px;">
|
||||
<img src="{{notif['icon']}}" style="vertical-align:middle;width:16px;margin:2px;" />
|
||||
</td>
|
||||
<td>
|
||||
<p style="margin:0;padding:0;" class="{{notif['class']}}">
|
||||
{{notif['text']|raw}}
|
||||
<span class="time">{{notif['created_on']}}</span>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
@@ -39,5 +39,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="PREVIEWTOOL">
|
||||
{% include 'prod/preview/tools.html' %}
|
||||
{% include 'prod/preview/tools.html.twig' %}
|
||||
</div>
|
@@ -39,5 +39,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="PREVIEWTOOL">
|
||||
{% include 'prod/preview/tools.html' %}
|
||||
{% include 'prod/preview/tools.html.twig' %}
|
||||
</div>
|
@@ -58,5 +58,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="PREVIEWTOOL">
|
||||
{% include 'prod/preview/tools.html' %}
|
||||
{% include 'prod/preview/tools.html.twig' %}
|
||||
</div>
|
@@ -8,5 +8,5 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="PREVIEWTOOL" style="top:0;bottom:auto;">
|
||||
{% include 'prod/preview/tools.html' %}
|
||||
{% include 'prod/preview/tools.html.twig' %}
|
||||
</div>
|
@@ -1,4 +1,4 @@
|
||||
{% import 'prod/results/record.html' as record_format %}
|
||||
{% import 'prod/results/record.html.twig' as record_format %}
|
||||
|
||||
{% if results.get_error() %}
|
||||
<div>{{results.get_error()}}</div>
|
@@ -1,5 +1,5 @@
|
||||
|
||||
{% extends "prod/results/answerabstract.twig" %}
|
||||
{% extends "prod/results/answerabstract.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
{% extends "prod/results/answerabstract.twig" %}
|
||||
{% extends "prod/results/answerabstract.html.twig" %}
|
||||
{% block content %}
|
||||
|
||||
{% import 'common/caption_templates/answer.html.twig' as caption %}
|
@@ -50,14 +50,14 @@ switch ($parm['action']) {
|
||||
$train = '';
|
||||
|
||||
if ($record->is_from_reg()) {
|
||||
$train = $twig->render('prod/preview/reg_train.html', array(
|
||||
$train = $twig->render('prod/preview/reg_train.html.twig', array(
|
||||
'record' => $record
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if ($record->is_from_basket() && $parm['roll']) {
|
||||
$train = $twig->render('prod/preview/basket_train.html', array(
|
||||
$train = $twig->render('prod/preview/basket_train.html.twig', array(
|
||||
'record' => $record
|
||||
)
|
||||
);
|
||||
@@ -65,7 +65,7 @@ switch ($parm['action']) {
|
||||
|
||||
|
||||
if ($record->is_from_feed()) {
|
||||
$train = $twig->render('prod/preview/feed_train.html', array(
|
||||
$train = $twig->render('prod/preview/feed_train.html.twig', array(
|
||||
'record' => $record
|
||||
)
|
||||
);
|
||||
@@ -73,7 +73,7 @@ switch ($parm['action']) {
|
||||
|
||||
$output = p4string::jsonencode(
|
||||
array(
|
||||
"desc" => $twig->render('prod/preview/caption.html', array(
|
||||
"desc" => $twig->render('prod/preview/caption.html.twig', array(
|
||||
'record' => $record
|
||||
, 'highlight' => $parm['query']
|
||||
, 'searchEngine' => $search_engine
|
||||
@@ -81,17 +81,17 @@ switch ($parm['action']) {
|
||||
)
|
||||
, "html_preview" => $twig->render('common/preview.html.twig', array('record' => $record)
|
||||
)
|
||||
, "others" => $twig->render('prod/preview/appears_in.html', array(
|
||||
, "others" => $twig->render('prod/preview/appears_in.html.twig', array(
|
||||
'parents' => $record->get_grouping_parents(),
|
||||
'baskets' => $record->get_container_baskets()
|
||||
)
|
||||
)
|
||||
, "current" => $train
|
||||
, "history" => $twig->render('prod/preview/short_history.html', array('record' => $record)
|
||||
, "history" => $twig->render('prod/preview/short_history.html.twig', array('record' => $record)
|
||||
)
|
||||
, "popularity" => $twig->render('prod/preview/popularity.html', array('record' => $record)
|
||||
, "popularity" => $twig->render('prod/preview/popularity.html.twig', array('record' => $record)
|
||||
)
|
||||
, "tools" => $twig->render('prod/preview/tools.html', array('record' => $record)
|
||||
, "tools" => $twig->render('prod/preview/tools.html.twig', array('record' => $record)
|
||||
)
|
||||
, "pos" => $record->get_number()
|
||||
, "title" => $record->get_title($parm['query'], $search_engine)
|
||||
|
@@ -149,7 +149,7 @@ switch ($action) {
|
||||
$output = p4string::jsonencode(
|
||||
array('current' =>
|
||||
$twig->render(
|
||||
'prod/preview/result_train.html', array(
|
||||
'prod/preview/result_train.html.twig', array(
|
||||
'records' => $records
|
||||
, 'selected' => $parm['pos'])
|
||||
)
|
||||
@@ -161,7 +161,7 @@ switch ($action) {
|
||||
case 'REGTRAIN':
|
||||
$parm = $request->get_parms('cont', 'pos');
|
||||
$record = new record_preview('REG', $parm['pos'], $parm['cont']);
|
||||
$output = $twig->render('prod/preview/reg_train.html', array('container_records' => $record->get_container()->get_children(),
|
||||
$output = $twig->render('prod/preview/reg_train.html.twig', array('container_records' => $record->get_container()->get_children(),
|
||||
'record' => $record));
|
||||
break;
|
||||
|
||||
@@ -173,7 +173,7 @@ switch ($action) {
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
$render = $twig->render('prod/orders/order_box.twig', array('ordermanager' => $orders));
|
||||
$render = $twig->render('prod/orders/order_box.html.twig', array('ordermanager' => $orders));
|
||||
$ret = array('error' => false, 'datas' => $render);
|
||||
} catch (Exception $e) {
|
||||
$ret = array('error' => true, 'datas' => $e->getMessage());
|
||||
@@ -190,7 +190,7 @@ switch ($action) {
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
$render = $twig->render('prod/orders/order_item.twig', array('order' => $order));
|
||||
$render = $twig->render('prod/orders/order_item.html.twig', array('order' => $order));
|
||||
$ret = array('error' => false, 'datas' => $render);
|
||||
} catch (Exception $e) {
|
||||
$ret = array('error' => true, 'datas' => $e->getMessage());
|
||||
|
Reference in New Issue
Block a user