responsive: burger menu ok, started generale layout
This commit is contained in:
@@ -15,4 +15,20 @@ function perfarttimeline_form_alter(&$form, &$form_state, $form_id) {
|
||||
'#value' => t('Search'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function perfarttimeline_html_head_alter(&$head_elements) {
|
||||
unset($head_elements['system_meta_generator']);
|
||||
foreach ($head_elements as $key => $element) {
|
||||
if (isset($element['#attributes']['rel']) && $element['#attributes']['rel'] == 'canonical') {
|
||||
unset($head_elements[$key]);
|
||||
}
|
||||
if (isset($element['#attributes']['rel']) && $element['#attributes']['rel'] == 'shortlink') {
|
||||
unset($head_elements[$key]);
|
||||
}
|
||||
if (isset($element['#attributes']['rel']) && $element['#attributes']['rel'] == 'alternate') {
|
||||
unset($head_elements[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,9 +34,9 @@ function perfarttimeline_links__locale_block(&$vars) {
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function perfarttimeline_image_style($vars) {
|
||||
// dsm($vars);
|
||||
// dpm($vars);
|
||||
|
||||
$real_path = $vars['path'];
|
||||
$original_path = $vars['path'];
|
||||
|
||||
_perfarttimeline_getImageStyleDimensions($vars);
|
||||
$figure = '<figure style="width:'.$vars['width'].'px;height:'.$vars['height'].'px;">';
|
||||
@@ -46,20 +46,33 @@ function perfarttimeline_image_style($vars) {
|
||||
foreach ($styles as $style) {
|
||||
$vars['attributes']['class'] = 'image '.$style;
|
||||
if($style == $vars['style_name']){
|
||||
$vars['path'] = image_style_url($vars['style_name'], $real_path);
|
||||
// $vars['path'] = image_style_url($vars['style_name'], $original_path);
|
||||
// $vars['path'] = image_style_path($vars['style_name'], $original_path);
|
||||
$url = image_style_url($style, $original_path);
|
||||
$url = parse_url($url);
|
||||
$vars['path'] = $url['path'];
|
||||
$figure .= theme('image', $vars);
|
||||
}else{
|
||||
$hidden_vars = array_merge(array(), $vars);
|
||||
$hidden_vars['style_name'] = $style;
|
||||
_perfarttimeline_getImageStyleDimensions($hidden_vars);
|
||||
$hidden_vars['attributes']['path'] = image_style_url($style, $real_path);
|
||||
// $hidden_vars['attributes']['path'] = image_style_url($style, $original_path);
|
||||
// $hidden_vars['attributes']['path'] = image_style_path($style, $original_path);
|
||||
$url = image_style_url($style, $original_path);
|
||||
$url = parse_url($url);
|
||||
$hidden_vars['attributes']['path'] = $url['path'];
|
||||
$hidden_vars['path'] = "";
|
||||
$figure .= theme('image', $hidden_vars);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$vars['attributes']['class'] = 'image '.$vars['style_name'];
|
||||
$vars['path'] = image_style_url($vars['style_name'], $real_path);
|
||||
// $vars['path'] = image_style_url($vars['style_name'], $original_path);
|
||||
// $style_path = image_style_path($vars['style_name'], $original_path);
|
||||
// $url = file_create_url($style_path);
|
||||
$url = image_style_url($vars['style_name'], $original_path);
|
||||
$url = parse_url($url);
|
||||
$vars['path'] = $url['path'];
|
||||
$figure .= theme('image', $vars);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user