1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

SEF Generate button added to newpost area. Can now generate and edit prior to saving.

This commit is contained in:
Cameron
2016-01-13 01:31:12 -08:00
parent 896d1f4345
commit 82d4a5583a
7 changed files with 79 additions and 18 deletions

View File

@@ -20,6 +20,19 @@ if (!defined('e107_INIT'))
header('Content-type: text/html; charset=utf-8', TRUE);
if(!empty($_GET['iframe'])) // global iframe support.
{
define('e_IFRAME', true);
}
// .e-sef-generate routine.
if(ADMIN && defset('e_ADMIN_UI') && varset($_POST['mode']) == 'sef' && !empty($_POST['source']) && e_AJAX_REQUEST)
{
$d = array('converted'=> eHelper::title2sef($_POST['source']));
echo json_encode($d);
exit;
}
### Language files
e107::coreLan('header', true);
e107::coreLan('footer', true);
@@ -53,10 +66,7 @@ e107::coreLan('footer', true);
// Get Icon constants, theme override (theme/templates/admin_icons_template.php) is allowed
include_once(e107::coreTemplatePath('admin_icons'));
if(!empty($_GET['iframe']))
{
define('e_IFRAME', true);
}