function theme_authcache_p13n_partial__authcache_esi in Authenticated User Page Caching (Authcache) 7.2
Theme function for single elements of assemblies.
File
- modules/
authcache_esi/ authcache_esi.module, line 105 - Authcache ESI markup generator.
Code
function theme_authcache_p13n_partial__authcache_esi($variables) {
$assembly = $variables['assembly'];
$partial = $variables['partial'];
$param = $variables['param'];
$class = $variables['class'];
if ($assembly && $partial && $param && $class) {
drupal_add_js(drupal_get_path('module', 'authcache_p13n') . '/authcache_p13n.js');
drupal_add_js(drupal_get_path('module', 'authcache_esi') . '/authcache_esi.js');
$attrs = array(
'class' => array(
$class,
),
'data-p13n-frag' => $partial,
'data-p13n-param' => $param,
);
return '<span ' . drupal_attributes($attrs) . '></span>';
}
}