<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<script type="text/javascript">
  en4.core.runonce.add(function() {
    try {
      composeInstance.addPlugin(new Composer.Plugin.Link({
        title: '<?php echo $this->string()->escapeJavascript($this->translate('Add Link')) ?>',
        lang : {
          'cancel' : '<?php echo $this->string()->escapeJavascript($this->translate('cancel')) ?>',
          'Last' : '<?php echo $this->string()->escapeJavascript($this->translate('Last')) ?>',
          'Next' : '<?php echo $this->string()->escapeJavascript($this->translate('Next')) ?>',
          'Attach' : '<?php echo $this->string()->escapeJavascript($this->translate('Attach')) ?>',
          'Loading...' : '<?php echo $this->string()->escapeJavascript($this->translate('Loading...')) ?>',
          'Don\'t show an image' : '<?php echo $this->string()->escapeJavascript($this->translate('Don\'t show an image')) ?>',
          'Choose Image:' : '<?php echo $this->string()->escapeJavascript($this->translate('Choose Image:')) ?>',
          '%d of %d' : '<?php echo $this->string()->escapeJavascript($this->translate('%d of %d')) ?>'
        },
        requestOptions : {
          'url' :en4.core.baseUrl + 'core/link/preview'
        }
      }));
    } catch(err){ console.log(err); }
  }); 
</script>
