SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/tinymce4/toolbar.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2015 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 3 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Enc;
  18. use Sprout\Helpers\Fb;
  19. ?>
  20.  
  21. <link href="ROOT/sprout/media/css/admin_layout.css" rel="stylesheet">
  22.  
  23. <div class="emu-mce-wrapper">
  24. <div class="emu-mce-toolbar">
  25. <?php if (!$is_root): ?>
  26. <div class="left">
  27. <a class="button button-small button-grey" href="javascript:history.go(-1);">Back</a>
  28. </div>
  29. <?php endif; ?>
  30.  
  31. <?php if ($can_upload): ?>
  32. <div class="right">
  33. <a class="button button-small" href="SITE/<?php echo Enc::html($upload_url); ?>"><?php echo Enc::html($upload_label); ?></a>
  34. </div>
  35. <?php endif; ?>
  36.  
  37. <form method="get" action="SITE/<?php echo Enc::html($search_url); ?>">
  38. <?php if (isset($search_params)) echo Fb::hiddenFields($search_params); ?>
  39.  
  40. <label class="emu-mce-label" for="mceu_img_search_input"><?php echo Enc::html($search_label); ?></label>
  41. <div class="field-element field-element--text field-element--white" style="width: 170px; margin: 0 9px 0 0; vertical-align: top; display: inline-block;">
  42. <div class="field-input">
  43. <input id="mceu_img_search_input" class="textbox" type="text" name="search" value="<?php echo Enc::html($search_query); ?>">
  44. </div>
  45. </div>
  46.  
  47. <input class="button button-small" type="submit" value="Search" style="vertical-align: top;">
  48.  
  49. <?php if ($is_search): ?>
  50. <a class="button button-grey button-small" href="SITE/<?php echo Enc::html($reset_url); ?>" style="vertical-align: top;">Reset</a>
  51. <?php endif; ?>
  52. </form>
  53. </div>
  54. </div>
  55.