Changeset 32424 for extensions


Ignore:
Timestamp:
Jan 23, 2021, 8:55:37 AM (3 years ago)
Author:
ddtddt
Message:

[FCKEditor] piwigo 11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FCKEditor/fckeditor.php

    r31984 r32424  
    11<?php
    22
    3 add_event_handler('get_admin_plugin_menu_links', 'load_fckeditor_script');
     3add_event_handler('loc_end_admin', 'load_fckeditor_script');
    44 
    5 function load_fckeditor_script($plugin_menu_links)
     5function load_fckeditor_script()
    66{
    77  global $page, $template, $conf;
    88
    9   if (!isset($page['page'])) return $plugin_menu_links;
     9  if (!isset($page['page'])) return true;
    1010
    1111  if (!isset($conf['fckeditor_toolbar_always_full']))
     
    8080      $template->set_prefilter('plugin_admin_content', 'add_remove_button');
    8181    }
     82        elseif ($section == 'PersoFooter/admin.php')
     83    {
     84      $areas[] = 'perso_footer';
     85      $width = '100%';
     86      $height = '300px';
     87      $template->set_prefilter('plugin_admin_content', 'add_remove_button');
     88    }
    8289  }
    8390
     
    8693    set_fckeditor_instance($areas, $toolbar, $width, $height);
    8794  }
    88   return $plugin_menu_links;
     95
    8996}
    9097
Note: See TracChangeset for help on using the changeset viewer.