本文整理汇总了PHP中Assets::image_path方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::image_path方法的具体用法?PHP Assets::image_path怎么用?PHP Assets::image_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::image_path方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ScheduleView
function ScheduleView ($start_hour = 8, $end_hour = 20, $show_columns = false, $start_date = false) {
$this->start_hour=$start_hour;
$this->end_hour=$end_hour;
if (!$show_columns) {
for($i = 1; $i < 8; ++$i) $this->show_columns[$i] = true;
} else
$this->show_columns = $show_columns;
if ($start_date)
$this->start_date = $start_date;
else
$this->start_date = time();
//the base_date have to be 0:00
$this->base_date = mktime(0, 0, 0, date("n", $this->start_date), date("j",$this->start_date), date("Y",$this->start_date));
//the categories configuration (color's and bg-image)
$this->categories = array(
"0" => array("bg-picture" => Assets::image_path('calendar/category3_small.jpg'),
"border-color" => "#b02e7c"), // is now obsolete
"1" => array("bg-picture" => Assets::image_path('calendar/category5_small.jpg'),
"border-color" => "#f26e00"),
"2" => array("bg-picture" => Assets::image_path('calendar/category9_small.jpg'),
"border-color" => "#ffbd33"),
"3" => array("bg-picture" => Assets::image_path('calendar/category11_small.jpg'),
"border-color" => "#a480b9"),
"4" => array("bg-picture" => Assets::image_path('calendar/category13_small.jpg'),
"border-color" => "#70c3bf"));
}
示例2: __construct
public function __construct()
{
parent::__construct();
if ($GLOBALS['perm']->have_perm("root")) {
$processes = FleximportProcess::findBySQL("1=1 ORDER BY name ASC");
$navigation = new Navigation($this->getDisplayName());
$navigation->setURL(PluginEngine::getURL($this, array(), 'import/overview' . (count($processes) ? "/" . $processes[0]['process_id'] : "")));
Navigation::addItem('/start/fleximport', $navigation);
Navigation::addItem('/fleximport', $navigation);
if (count($processes)) {
foreach ($processes as $process) {
$navigation = new Navigation($process['name'], PluginEngine::getURL($this, array(), 'import/overview/' . $process->getId()));
Navigation::addItem('/fleximport/process_' . $process->getId(), $navigation);
}
} else {
$navigation = new Navigation(_("Import"), PluginEngine::getURL($this, array(), 'import/overview'));
Navigation::addItem('/fleximport/overview', $navigation);
}
$navigation = new Navigation(_("Konfiguration"), PluginEngine::getURL($this, array(), 'config/overview'));
Navigation::addItem('/fleximport/config', $navigation);
if (FleximportConfig::get("DISPLAY_AT_HEADER")) {
if (is_numeric(FleximportConfig::get("DISPLAY_AT_HEADER"))) {
Navigation::getItem('/fleximport')->setImage(version_compare($GLOBALS['SOFTWARE_VERSION'], "3.4", ">=") ? Icon::create("install", "navigation") : Assets::image_path("icons/lightblue/install.svg"));
} else {
Navigation::getItem('/fleximport')->setImage(version_compare($GLOBALS['SOFTWARE_VERSION'], "3.4", ">=") ? Icon::create(FleximportConfig::get("DISPLAY_AT_HEADER"), "navigation") : FleximportConfig::get("DISPLAY_AT_HEADER"));
}
}
}
}
示例3: xml_header
/**
* create xml_header
*
* This function creates a xml-header for output.
* Its contents are Name of University, Stud.IP-Version, Range of Export (e.g. "root"), and temporal range.
*
* @access public
* @return string xml-header
*/
function xml_header()
{
global $UNI_NAME_CLEAN, $SOFTWARE_VERSION, $ex_type, $ex_sem, $range_name, $range_id;
$semester = $ex_sem ? Semester::find($ex_sem) : Semester::findCurrent();
$xml_tag_string = "<" . "?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
$xml_tag_string .= "<studip version=\"" . xml_escape ($SOFTWARE_VERSION) . "\" logo=\"". xml_escape (Assets::image_path('logos/logo2b.png')) . "\"";
if ($range_id == "root") $xml_tag_string .= " range=\"" . _("Alle Einrichtungen") . "\"";
elseif ($range_name != "") $xml_tag_string .= " range=\"" . xml_escape ($range_name) . "\"";
if ($UNI_NAME_CLEAN != "") $xml_tag_string .= " uni=\"" . xml_escape ($UNI_NAME_CLEAN) . "\"";
if ($semester)
$xml_tag_string .= " zeitraum=\"" . xml_escape ($semester->name) . "\" semester_id=\"" . xml_escape ($semester->getId()) . "\"";
$xml_tag_string .= ">\n";
return $xml_tag_string;
}
示例4: initialize
/**
* Initialize default page layout. This should only be called once
* from phplib_local.inc.php. Don't use this otherwise.
*/
public static function initialize()
{
// set favicon
self::addHeadElement('link', array('rel' => 'apple-touch-icon', 'href' => Assets::image_path('touch-icon-ipad3.png'), 'size' => '144x144'));
self::addHeadElement('link', array('rel' => 'apple-touch-icon', 'href' => Assets::image_path('touch-icon-iphone4.png'), 'size' => '114x114'));
self::addHeadElement('link', array('rel' => 'apple-touch-icon', 'href' => Assets::image_path('touch-icon-ipad.png'), 'size' => '72x72'));
self::addHeadElement('link', array('rel' => 'apple-touch-icon', 'href' => Assets::image_path('touch-icon-iphone.png')));
self::addHeadElement('link', array('rel' => 'shortcut icon', 'href' => Assets::image_path('favicon.png')));
// set initial width for mobile devices
self::addHeadElement('meta', array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0'));
// include ie-specific CSS
self::addComment('[if IE]>' . Assets::stylesheet('ie.css', array('media' => 'screen,print')) . '<![endif]');
self::addHeadElement('link', array('rel' => 'help', 'href' => format_help_url('Basis.VerschiedenesFormat'), 'class' => 'text-format', 'title' => _('Hilfe zur Textformatierung')));
self::setSqueezePackages("base");
if (Config::get()->WYSIWYG) {
self::addSqueezePackage("wysiwyg");
}
self::addScript("mathjax/MathJax.js?config=TeX-AMS_HTML,default");
}
示例5: __construct
function __construct()
{
parent::__construct();
require_once 'polyfills/Button.php';
require_once 'polyfills/LinkButton.php';
PageLayout::addStylesheet($this->getPluginURL() . '/polyfills/buttons.css');
$navigation = new AutoNavigation(_('Plugin-Generator'));
$navigation->setURL(PluginEngine::GetLink($this, array(), ''));
$navigation->setImage(Assets::image_path('icons/16/black/plugin.png'));
Navigation::addItem('/tools/plugingenerator', $navigation);
/*/
$navigation = new AutoNavigation(_('Plugin-Generator'));
$navigation->setURL(PluginEngine::GetLink($this, array(), ''));
Navigation::addItem('/plugingenerator/index', $navigation);
$navigation = new AutoNavigation(_('Tools'));
$navigation->setURL(PluginEngine::GetLink($this, array(), 'tools'));
Navigation::addItem('/plugingenerator/tools', $navigation);
//*/
}
示例6: setupNavigation
private function setupNavigation()
{
global $perm;
$cid = $this->getContext();
if (Request::isXhr() || Navigation::hasItem('/course/cliqr') || !$this->isActivated($cid) || !$perm->have_studip_perm("tutor", $cid)) {
return;
}
# /course/cliqr -> plugins.php/cliqrplugin/questions
$url = PluginEngine::getURL('cliqrplugin', compact('cid'), 'questions', true);
$navigation = new Navigation(_('Cliqr'), $url);
$navigation->setImage(Assets::image_path('icons/16/white/test.png'));
$navigation->setActiveImage(Assets::image_path('icons/16/black/test.png'));
# /course/cliqr/index -> plugins.php/cliqrplugin/questions#index
$navigation->addSubNavigation("index", new Navigation(_("Fragen"), $url . '#index'));
# /course/cliqr/new -> plugins.php/cliqrplugin/questions#new
$navigation->addSubNavigation("new", new Navigation(_("Frage erstellen"), $url . '#new'));
# /course/cliqr/help -> plugins.php/cliqrplugin/help
$url = PluginEngine::getURL('cliqrplugin', compact('cid'), 'help', true);
$navigation->addSubNavigation("help", new Navigation(_("Methodische Informationen"), $url));
Navigation::addItem('/course/cliqr', $navigation);
}
示例7: answer_action
public function answer_action($questionnaire_id)
{
$this->questionnaire = new Questionnaire($questionnaire_id);
if (!$this->questionnaire->isViewable()) {
throw new AccessDeniedException("Der Fragebogen ist nicht einsehbar.");
}
if (Request::isPost()) {
$answered_before = $this->questionnaire->isAnswered();
foreach ($this->questionnaire->questions as $question) {
$answer = $question->createAnswer();
if (!$answer['question_id']) {
$answer['question_id'] = $question->getId();
}
$answer['user_id'] = $GLOBALS['user']->id;
if (!$answer['answerdata']) {
$answer['answerdata'] = array();
}
if ($this->questionnaire['anonymous']) {
$answer['user_id'] = null;
$answer['chdate'] = 1;
$answer['mkdate'] = 1;
}
$answer->store();
}
if ($this->questionnaire['anonymous']) {
$anonymous_answer = new QuestionnaireAnonymousAnswer();
$anonymous_answer['questionnaire_id'] = $this->questionnaire->getId();
$anonymous_answer['user_id'] = $GLOBALS['user']->id;
$anonymous_answer->store();
}
if (!$answered_before && !$this->questionnaire['anonymous'] && $this->questionnaire['user_id'] !== $GLOBALS['user']->id) {
$url = URLHelper::getURL("dispatch.php/questionnaire/evaluate/" . $this->questionnaire->getId(), array(), true);
foreach ($this->questionnaire->assignments as $assignment) {
if ($assignment['range_type'] === "course") {
$url = URLHelper::getURL("dispatch.php/course/overview#" . $this->questionnaire->getId(), array('cid' => $assignment['range_id'], 'contentbox_type' => "vote", 'contentbox_open' => $this->questionnaire->getId()));
} elseif ($assignment['range_type'] === "profile") {
$url = URLHelper::getURL("dispatch.php/profile#" . $this->questionnaire->getId(), array('contentbox_type' => "vote", 'contentbox_open' => $this->questionnaire->getId()), true);
} elseif ($assignment['range_type'] === "start") {
$url = URLHelper::getURL("dispatch.php/start#" . $this->questionnaire->getId(), array('contentbox_type' => "vote", 'contentbox_open' => $this->questionnaire->getId()), true);
}
break;
}
PersonalNotifications::add($this->questionnaire['user_id'], $url, sprintf(_("%s hat an der Befragung '%s' teilgenommen."), get_fullname(), $this->questionnaire['title']), "questionnaire_" . $this->questionnaire->getId(), Assets::image_path("icons/blue/vote.svg"));
}
if (Request::isAjax()) {
$this->response->add_header("X-Dialog-Close", "1");
$this->response->add_header("X-Dialog-Execute", "STUDIP.Questionnaire.updateWidgetQuestionnaire");
$this->render_template("questionnaire/evaluate");
} elseif (Request::get("range_type") === "user") {
PageLayout::postMessage(MessageBox::success(_("Danke für die Teilnahme!")));
$this->redirect("profile?username=" . get_username(Request::option("range_id")));
} elseif (Request::get("range_type") === "course") {
PageLayout::postMessage(MessageBox::success(_("Danke für die Teilnahme!")));
$this->redirect("course/overview?cid=" . Request::option("range_id"));
} elseif (Request::get("range_id") === "start") {
PageLayout::postMessage(MessageBox::success(_("Danke für die Teilnahme!")));
$this->redirect("start");
} else {
PageLayout::postMessage(MessageBox::success(_("Danke für die Teilnahme!")));
if ($GLOBALS['perm']->have_perm("autor")) {
$this->redirect("questionnaire/overview");
} else {
$this->redirect("questionnaire/thank_you");
}
}
}
$this->range_type = Request::get("range_type");
$this->range_id = Request::get("range_id");
PageLayout::setTitle(sprintf(_("Fragebogen beantworten: %s"), $this->questionnaire->title));
}
示例8: getQuestionContent
/**
* returns html for a question and its answers
*
* @access private
* @param object EvaluationQuestion the question object.
* @param object EvaluationGroup the question's parent-group object.
* @return string
*/
function getQuestionContent($question, $group)
{
$type = $question->isMultipleChoice() ? "checkbox" : "radio";
# $answerBorder = "1px dotted #c0c0c0";
$answerBorder = "1px dotted #909090";
# $residualBorder = "1px dotted #c0c0c0";
$residualBorder = "1px dotted #909090";
$answerArray = $question->getChildren();
$hasResidual = NO;
$leftOutStyle = $group->isMandatory() && Request::submitted('voteButton') && is_array($GLOBALS["mandatories"]) && in_array($question->getObjectID(), $GLOBALS["mandatories"]) ? "background-image:url(" . Assets::image_path("steelgroup1.gif") . "); border-left:3px solid red; border-right:3px solid red;" : "";
/* Skala (one row question) ---------------------------------------- */
if ($question->getType() == EVALQUESTION_TYPE_LIKERT || $question->getType() == EVALQUESTION_TYPE_POL) {
if (($numAnswers = $question->getNumberChildren()) > 0) {
$cellWidth = (int) (40 / $numAnswers);
}
if ($numAnswers > 0 && $answerArray[$numAnswers - 1]->isResidual()) {
$hasResidual = YES;
}
$lastTextAnswer = $hasResidual ? $numAnswers - 3 : $numAnswers - 2;
/* Headline, only shown for first question */
if ($question->getPosition() == 0) {
$html .= " <tr>\n";
$html .= " <td width=\"60%\" style=\"border-bottom: {$answerBorder}; border-top: {$answerBorder};\">";
# $html .= strlen( $group->getText() ) < 100 ? formatReady( $group->getText() ) : " ";
$html .= " ";
$html .= "</td>\n";
foreach ($answerArray as $answer) {
$noWrap = NO;
if ($answer->x_instanceof() == INSTANCEOF_EVALANSWER) {
if (!$answer->getText()) {
/* answer has NO text ------------ */
if ($answer->getPosition() <= $lastTextAnswer / 2) {
//&& $numAnswers > 4 )
$headCell = "<--";
} elseif ($answer->getPosition() >= round($lastTextAnswer / 2) + $lastTextAnswer % 2) {
//&& $numAnswers > 4 )
$headCell = "-->";
} else {
$headCell = "<- ->";
}
$noWrap = YES;
} else {
/* answer has its own text ------ */
$headCell = formatReady($answer->getText());
}
$extraStyle = "";
if ($answer->isResidual()) {
$extraStyle = "border-left: {$residualBorder};";
$html .= "<td align=\"center\" style=\"{$extraStyle}\" " . "width=\"1\"> </td>";
}
$html .= " <td align=\"center\" class=\"steelgroup6\" " . "style=\"border-bottom: {$answerBorder}; " . "border-left: {$answerBorder}; border-top: {$answerBorder}; {$extraStyle};\" " . "width=\"" . $cellWidth . "%\" " . ($noWrap ? "nowrap" : "") . ">";
$html .= $headCell;
$html .= "</td>\n";
}
}
$html .= " </tr>\n";
}
/* ------------------------------- Headline end */
/* Question and Answer Widgets ---------------- */
$class = $question->getPosition() % 2 ? "table_row_even" : "table_row_odd";
$extraStyle = $question->getPosition() == $group->getNumberChildren() - 1 ? "border-bottom: {$answerBorder}" : "";
$html .= " <tr class=\"" . $class . "\">\n";
$html .= " <td align=\"left\" width=\"60%\" style=\"{$extraStyle}; {$leftOutStyle};\">";
$html .= formatReady($question->getText());
$html .= $group->isMandatory() ? "<span class=\"eval_error\"><b>**</b></span>" : "";
$html .= "</td>\n";
foreach ($answerArray as $answer) {
$number = $question->isMultipleChoice() ? "[" . $answer->getPosition() . "]" : "";
if ($answer->x_instanceof() == INSTANCEOF_EVALANSWER) {
$extraStyle = "";
if ($answer->isResidual()) {
$extraStyle = "border-left: {$residualBorder};";
$html .= "<td align=\"center\" class=\"steelgroup7\" style=\"{$extraStyle}\" " . "width=\"1%\"> </td>";
}
$extraStyle .= $question->getPosition() == $group->getNumberChildren() - 1 ? " border-bottom: {$answerBorder};" : "";
$answers = Request::getArray('answers');
$checked = $answers[$question->getObjectID()] == $answer->getObjectID() ? "checked" : "";
$html .= " <td align=\"center\" style=\"border-left: {$answerBorder}; {$extraStyle};\" " . "width=\"" . $cellWidth . "%\">";
$html .= "<input type=\"" . $type . "\" name=\"answers[" . $question->getObjectID() . "]" . $number . "\" " . "value=\"" . $answer->getObjectID() . "\" " . $checked . ">";
$html .= "</td>\n";
}
}
$html .= " </tr>\n";
/* -------------------------------------------- */
} else {
$class = $question->getPosition() % 2 ? "table_row_even" : "table_row_odd";
/* Question ----------------------------------- */
$html .= "<tr class=\"" . $class . "\">" . "<td align=\"left\" style=\"{$leftOutStyle};\">" . formatReady($question->getText()) . ($group->isMandatory() ? "<span class=\"eval_error\"><b>**</b></span>" : "") . "</td>" . "</tr>\n";
$html .= "<tr class=\"" . $class . "\">";
$html .= "<td>";
$html .= "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n";
/* -------------------------------------------- */
//.........这里部分代码省略.........
示例9: index_action
function index_action($step = 'manifest')
{
$step = Request::option('step', $step);
$this->previous = $this->next = $last = false;
foreach ($this->actions as $action) {
if ($last == $step) {
$this->next = $action;
}
if ($action == $step) {
$this->previous = $last;
}
$last = $action;
}
// if (Request::isPost()) { # since Stud.IP 2.1
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$this->plugin = array_merge($this->plugin, $this->extract($step, $errors));
$_SESSION['plugin-generator']['passed'][$step] = empty($errors);
}
if (!empty($errors)) {
PageLayout::postMessage(Messagebox::error(_('Es sind Fehler aufgetreten:'), $errors));
} elseif (Request::submitted('action')) {
$action = Request::option('action');
if (!in_array($action, array('display download install'))) {
$generator = new Generator($this->dispatcher->plugin->getPluginPath(), '/templates', '/environments');
}
$generator->populate($this->plugin);
$generator->{$action}();
if ($action === 'install') {
$this->redirect(URLHelper::getURL('dispatch.php/admin/plugin'));
return;
}
# PageLayout::postMessage(Messagebox::success('Jipp.'));
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (Request::submitted('back')) {
$step = Request::option('back', $this->previous);
} else {
if (Request::submitted('forward')) {
$step = Request::option('forward', $this->next);
}
}
$this->redirect('generator/' . $step);
return;
}
$this->step = $step;
switch ($step) {
case 'manifest':
$this->interfaces = array('HomepagePlugin' => _('Homepage eines Nutzers'), 'PortalPlugin' => _('Startseite (Portalseite)'), 'StandardPlugin' => _('Veranstaltungen und Einrichtungen'), 'StudienmodulManagementPlugin' => _('Studienmodulsuche'), 'SystemPlugin' => _('Systemweite Erweiterungen'));
$this->versions = words('2.0 2.1 2.2 2.3 2.4');
break;
case 'assets':
$this->environments = array('default' => _('Standard'), 'trails' => _('Trails'));
break;
case 'polyfill':
$this->polyfills = Polyfill::getVersions();
break;
}
$variables = array('step' => $step, 'controller' => $this);
$factory = new Flexi_TemplateFactory($this->dispatcher->plugin->getPluginPath() . '/app/views/');
$progress = $factory->render('infobox-route', $variables);
$this->setInfoboxImage($this->dispatcher->plugin->getPluginURL() . '/assets/images/puzzle.jpg')->addToInfobox(_('Fortschritt'), $progress)->addToInfobox(_('Aktionen'), sprintf('<a href="%s">Reset</a>', $this->url_for('generator/' . $step . '?reset=1')), Assets::image_path('icons/16/black/refresh.png'));
}
示例10: _
?>
" data-dialog>
<?php
echo Assets::img("icons/20/blue/assessment");
?>
</a>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="2" style="text-align: center;">
<?php
echo _("Keine Plugins warten auf eine Qualitätssicherung");
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
$sidebar = Sidebar::Get();
$sidebar->setImage(Assets::image_path("sidebar/plugin-sidebar.png"));
$actions = new ActionsWidget();
//$actions->addLink(_("Neues Plugin eintragen"), PluginEngine::getURL($plugin, array(), "myplugins/add"), null, array('data-dialog' => 1));
//$sidebar->addWidget($actions);
示例11: printItemDetails
/**
* prints out the details for an item, if item is open
*
* @access private
* @param string $item_id
*/
function printItemDetails($item_id)
{
if (!$this->tree->hasKids($item_id) || !$this->open_ranges[$item_id] || $item_id == $this->start_item_id) {
$level_output = "<td class=\"blank\" background=\"" . Assets::image_path('forumleer.gif') . "\">" . Assets::img('forumleer.gif', array('size' => '10@20')) . "</td>" . $level_output;
} else {
$level_output = "<td class=\"blank\" background=\"" . Assets::image_path('forumstrich.gif') . "\">" . Assets::img('forumleer.gif', array('size' => '10@20')) . "</td>" . $level_output;
}
if ($this->tree->isLastKid($item_id) && !($item_id == $this->start_item_id) || !$this->open_ranges[$item_id] && $item_id == $this->start_item_id || $item_id == $this->start_item_id && !$this->tree->hasKids($item_id)) {
$level_output = "<td class=\"blank\" background=\"" . Assets::image_path('forumleer.gif') . "\">" . Assets::img('forumleer.gif', array('size' => '10@20')) . "</td>" . $level_output;
} else {
$level_output = "<td class=\"blank\" background=\"" . Assets::image_path('forumstrich.gif') . "\">" . Assets::img('forumleer.gif', array('size' => '10@20')) . "</td>" . $level_output;
}
if ($item_id != $this->start_item_id) {
$parent_id = $item_id;
while ($this->tree->tree_data[$parent_id]['parent_id'] != $this->start_item_id) {
$parent_id = $this->tree->tree_data[$parent_id]['parent_id'];
if ($this->tree->isLastKid($parent_id)) {
$level_output = "<td class=\"blank\" background=\"" . Assets::image_path('forumleer.gif') . "\">" . Assets::img('forumleer.gif', array('size' => '10@20')) . "</td>" . $level_output;
} else {
$level_output = "<td class=\"blank\" background=\"" . Assets::image_path('forumstrich.gif') . "\">" . Assets::img('forumleer.gif', array('size' => '10@20')) . "</td>" . $level_output;
}
//vertical line
}
}
//$level_output = "<td class=\"blank\" background=\"".$GLOBALS['ASSETS_URL']."images/forumleer.gif\" ><img src=\"".$GLOBALS['ASSETS_URL']."images/forumleer.gif\" width=\"20\" height=\"20\" border=\"0\" ></td>" . $level_output;
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr>{$level_output}";
echo "<td class=\"printcontent\" width=\"100%\"><br>";
echo $this->getItemContent($item_id);
echo "<br></td></tr></table>";
return;
}
示例12: if
?>
</textarea>
</td>
</tr>
</tbody>
<tfoot class="table_footer">
<tr>
<td colspan="2" data-dialog-button>
<?php
echo Button::createAccept(_('Speichern'), 'submit');
?>
<? if ($first_entry): ?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), URLHelper::getLink('seminar_main.php'));
?>
<? else: ?>
<?php
echo LinkButton::createCancel(_('Abbrechen'), $controller->url_for('show/edit' . $scm->id));
?>
<? endif; ?>
</td>
</tr>
</tfoot>
</table>
</form>
<?php
$sidebar = Sidebar::get();
$sidebar->setImage(Assets::image_path("sidebar/info-sidebar.png"));
示例13: htmlReady
echo '<?xml';
?>
version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title><?php
echo htmlReady(studip_utf8encode($title));
?>
</title>
<link><?php
echo htmlReady(studip_utf8encode($studip_url));
?>
</link>
<image>
<url><?php
echo Assets::image_path('logos/logoklein.png');
?>
</url>
<title><?php
echo htmlReady(studip_utf8encode($title));
?>
</title>
<link><?php
echo htmlReady(studip_utf8encode($studip_url));
?>
</link>
</image>
<description><?php
echo htmlReady(studip_utf8encode($description));
?>
</description>
示例14: ScheduleWeekRequests
function ScheduleWeekRequests($start_hour = '', $end_hour = '', $show_days = '', $start_date = '', $show_dates = true)
{
parent::ScheduleWeek($start_hour, $end_hour, $show_days, $start_date);
$this->categories[5] = array("bg-picture" => Assets::image_path('calendar/category12_small.jpg'), "border-color" => "#d082b0");
$this->categories[6] = array("bg-picture" => Assets::image_path('calendar/category10_small.jpg'), "border-color" => "#ffbd33");
}
示例15: convertURL
/**
* Converts URLs in images so that the webserver can access them without proxy.
* @param string $url of an image
* @return string " src=\"".$converted_url."\""
*/
protected function convertURL($url)
{
$convurl = $url;
$url_elements = @parse_url($url);
$url = $url_elements['path'] . '?' . $url_elements['query'];
if (strpos(implode('#', $this->domains), $url_elements['host']) !== false) {
if (strpos($url, 'dispatch.php/media_proxy?url=') !== false) {
$targeturl = urldecode(substr($url, 4));
try {
// is file in cache?
if (!($metadata = $this->media_proxy->getMetaData($targeturl))) {
$convurl = $targeturl;
} else {
$convurl = $this->config->getValue('MEDIA_CACHE_PATH') . '/' . md5($targeturl);
}
} catch (Exception $e) {
$convurl = '';
}
} else {
if (stripos($url, 'dispatch.php/document/download') !== false) {
if (preg_match('#([a-f0-9]{32})#', $url, $matches)) {
$convurl = DirectoryEntry::find($matches[1])->file->getStorageObject()->getPath();
}
} else {
if (stripos($url, 'download') !== false || stripos($url, 'sendfile.php') !== false) {
//// get file id
if (preg_match('#([a-f0-9]{32})#', $url, $matches)) {
$document = new StudipDocument($matches[1]);
if ($document->checkAccess($GLOBALS['user']->id)) {
$convurl = get_upload_file_path($matches[1]);
} else {
$convurl = Assets::image_path('messagebox/exception.png');
}
}
}
}
}
}
return 'src="' . $convurl . '"';
}