Beispiel #1
0
 /**
  * Load the inline editor for a theme image
  *
  */
 public function InlineEdit()
 {
     $section = array();
     $section['type'] = 'image';
     \gp\tool\Output\Ajax::InlineEdit($section);
     die;
 }
Beispiel #2
0
 /**
  * Perform various section editing commands
  *
  * @return bool true if $section should be saved
  *
  */
 public static function SectionEdit($cmd, &$section, $section_num, $title, $file_stats)
 {
     global $langmessage;
     switch ($cmd) {
         case 'include_dialog':
             self::IncludeDialog($section);
             return false;
         case 'inlineedit':
             \gp\tool\Output\Ajax::InlineEdit($section);
             die;
         case 'save_inline':
             return self::SectionFromPost($section, $section_num, $title, $file_stats);
     }
     msg($langmessage['OOPS'] . ' (Unknown Command)');
     return false;
 }