add phraseapp in context editor
This commit is contained in:
parent
e5ed1c7f6a
commit
8fc30fbe3a
5 changed files with 138 additions and 1 deletions
|
@ -49,5 +49,18 @@
|
|||
</div>
|
||||
{!! Theme::js('js/vendor/jquery/jquery.min.js') !!}
|
||||
{!! Theme::js('vendor/bootstrap/bootstrap.min.js') !!}
|
||||
|
||||
@if(config('app.phrase_in_context'))
|
||||
<script>
|
||||
window.PHRASEAPP_CONFIG = {
|
||||
projectId: '94f8b39450cd749ae9c3cc0ab8cdb61d'
|
||||
};
|
||||
(function() {
|
||||
var phraseapp = document.createElement('script'); phraseapp.type = 'text/javascript'; phraseapp.async = true;
|
||||
phraseapp.src = ['https://', 'phraseapp.com/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join('');
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(phraseapp, s);
|
||||
})();
|
||||
</script>
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -281,6 +281,19 @@
|
|||
{!! Theme::js('vendor/adminlte/app.min.js') !!}
|
||||
{!! Theme::js('js/vendor/socketio/socket.io.min.js') !!}
|
||||
{!! Theme::js('vendor/bootstrap-notify/bootstrap-notify.min.js') !!}
|
||||
|
||||
@if(config('app.phrase_in_context'))
|
||||
<script>
|
||||
window.PHRASEAPP_CONFIG = {
|
||||
projectId: '94f8b39450cd749ae9c3cc0ab8cdb61d'
|
||||
};
|
||||
(function() {
|
||||
var phraseapp = document.createElement('script'); phraseapp.type = 'text/javascript'; phraseapp.async = true;
|
||||
phraseapp.src = ['https://', 'phraseapp.com/assets/in-context-editor/2.0/app.js?', new Date().getTime()].join('');
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(phraseapp, s);
|
||||
})();
|
||||
</script>
|
||||
@endif
|
||||
@show
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue