コード例 #1
0
}
?>

<?php 
snippet('header');
?>

<?php 
if (!$panel->nocontent) {
    action::updateContent();
    ?>

<div class="form">		
  
  <form action="<?php 
    echo showurl('content');
    ?>
" method="post">
    
    <?php 
    echo $panel->form->load();
    ?>
		

    <fieldset class="bottom">
      <div class="buttons">
        <input type="submit" name="update-content" value="<?php 
    echo l::get('content.save');
    ?>
" />
      </div>
コード例 #2
0
<?php

if (!defined('KIRBY')) {
    die('Direct access is not allowed');
}
if ($panel->action != 'edit-file') {
    return;
}
$action = action::editFile();
$file = data::fileByFilename();
$form = new fileform($settings, $file);
if (!$file) {
    go(showurl('files'));
}
?>
<div class="overlay edit-file">

  <form method="post">

    <?php 
growl($action);
?>

    <fieldset>
      <h3><?php 
echo l::get('files.edit.title');
?>
</h3>
      
      <div class="field">
        <label><?php 
コード例 #3
0
<?php

if (!defined('KIRBY')) {
    die('Direct access is not allowed');
}
if ($panel->action != 'delete-page') {
    return;
}
$action = action::deleteContent();
$data = data::childByUID(get('uid'));
if (!$data) {
    go(showurl('pages'));
}
?>
<div class="overlay delete-page">

  <form method="post">

    <?php 
growl($action);
?>

    <fieldset>
      <h3><?php 
echo l::get('pages.delete.title');
?>
</h3>
      
      <div class="field">
        <label><?php 
echo html($data->title());
コード例 #4
0
 static function deleteFile()
 {
     $result = false;
     // cancel action
     if (get('cancel-delete-file')) {
         go(showurl('files'));
         return false;
     }
     // submit action
     if (get('delete-file')) {
         $result = data::deleteFile();
         if (success($result)) {
             go(showurl('files'));
         }
     }
     return $result;
 }
コード例 #5
0
  <ul class="bar submenu">
    <li><a<?php 
    echo $panel->show != 'info' ? ' class="active"' : '';
    ?>
 href="<?php 
    echo url();
    ?>
"><?php 
    echo l::get('tabs.overview');
    ?>
</a></li>  
    <li><a<?php 
    echo $panel->show == 'info' ? ' class="active"' : '';
    ?>
 href="<?php 
    echo showurl('info');
    ?>
"><?php 
    echo l::get('tabs.info');
    ?>
</a></li>  
    <li class="preview"><a title="<?php 
    echo l::get('tabs.preview');
    ?>
" target="_blank" href="<?php 
    echo ourl();
    ?>
"><?php 
    echo l::get('tabs.preview');
    ?>
</a></li>