eZPublishCommunityProject(LegacyStack)  2013.6
visual/templatecreate.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 generateDefaultTemplate ($http, $template, $fileName)
 
if($designExtensionList!==array())
if($module->isCurrentAction(
'CreateOverride')) else if($module->
isCurrentAction(
'CancelOverride')) 
generateNodeViewTemplate ($http, $template, $fileName)
 
 generateObjectViewTemplate ($http, $template, $fileName)
 
 generatePagelayoutTemplate ($http, $template, $fileName)
 

Variables

 $designExtension = ''
 
 $designExtensionList = $designINI->variable( 'ExtensionSettings', 'DesignExtensions' )
 
 $designINI = eZINI::instance( 'design.ini' )
 
if(strpos($template,"node/view"))
else if(strpos($template,"content/view"))
else if(strpos($template,"content/edit"))
else if(strpos($template,"pagelayout.tpl")) 
$error = false
 
 $http = eZHTTPTool::instance()
 
 $ini = eZINI::instance()
 
 $module = $Params['Module']
 
 $overrideKeys
 
 $parameters = $Params["Parameters"]
 
 $Result = array()
 
 $Result ['content'] = $tpl->fetch( "design:visual/templatecreate.tpl" )
 
 $Result ['path']
 
 $siteAccess = $Params['SiteAccess']
 
 $siteBase = $siteAccess
 
 $siteDesign = $siteINI->variable( "DesignSettings", "SiteDesign" )
 
 $siteINI = eZINI::instance( 'site.ini', 'settings', null, null, true )
 
 $template = ""
 
 $templateName = false
 
foreach($parameters as $param) $templateType = 'default'
 
 $tpl = eZTemplate::factory()
 

Function Documentation

generateDefaultTemplate (   $http,
  $template,
  $fileName 
)
if ($designExtensionList!==array()) if ($module->isCurrentAction( 'CreateOverride')) else if ($module->isCurrentAction( 'CancelOverride')) generateNodeViewTemplate (   $http,
  $template,
  $fileName 
)
generateObjectViewTemplate (   $http,
  $template,
  $fileName 
)
generatePagelayoutTemplate (   $http,
  $template,
  $fileName 
)

Variable Documentation

$designExtension = ''
$designExtensionList = $designINI->variable( 'ExtensionSettings', 'DesignExtensions' )
$designINI = eZINI::instance( 'design.ini' )
if (strpos($template,"node/view")) else if (strpos($template,"content/view")) else if (strpos($template,"content/edit")) else if (strpos($template,"pagelayout.tpl")) $error = false
$ini = eZINI::instance()
$module = $Params['Module']
$overrideKeys
Initial value:
= array( 'nodeID' => $Params['NodeID'],
'classID' => $Params['ClassID'] )
$Params['TemplateName']
Definition: user/register.php:24

Referenced by eZTemplateDesignResource\createOverrideCache().

$parameters = $Params["Parameters"]
$Result = array()
$Result['content'] = $tpl->fetch( "design:visual/templatecreate.tpl" )
$Result['path']
Initial value:
= array( array( 'url' => "/visual/templatelist/",
'text' => ezpI18n::tr( 'kernel/design', 'Template list' ) ),
array( 'url' => "/visual/templateview". $template,
'text' => ezpI18n::tr( 'kernel/design', 'Template view' ) ),
array( 'url' => false,
'text' => ezpI18n::tr( 'kernel/design', 'Create new template' ) ) )
$template
Definition: collaboration/group.php:26
static tr($context, $source, $comment=null, $arguments=null)
Translates the source $source with context $context and optional comment $comment and returns the tra...
Definition: ezpi18n.php:86
else $siteAccess = $Params['SiteAccess']
$siteBase = $siteAccess
$siteDesign = $siteINI->variable( "DesignSettings", "SiteDesign" )
$siteINI = eZINI::instance( 'site.ini', 'settings', null, null, true )
$template = ""
$templateName = false
foreach ($parameters as $param) $templateType = 'default'