aggregate.cgi: refactor
This commit is contained in:
@@ -102,7 +102,7 @@ s/\<\;span id\="\;calcms_title"\;\>\;[^\&]*\<\;\/span\>\;/\<span
|
|||||||
}
|
}
|
||||||
|
|
||||||
#replace whole element span with id="calcms_title" by value
|
#replace whole element span with id="calcms_title" by value
|
||||||
$list->{project_title} = '' unless ( defined $list->{project_title} );
|
$list->{project_title} = '' unless defined $list->{project_title};
|
||||||
$content =~ s/(<(div|span)\s+id="calcms_title".*?>).*?(<\/(div|span)>)/$list->{project_title}/g;
|
$content =~ s/(<(div|span)\s+id="calcms_title".*?>).*?(<\/(div|span)>)/$list->{project_title}/g;
|
||||||
|
|
||||||
my $values = [];
|
my $values = [];
|
||||||
@@ -124,13 +124,6 @@ s/\<\;span id\="\;calcms_title"\;\>\;[^\&]*\<\;\/span\>\;/\<span
|
|||||||
}
|
}
|
||||||
|
|
||||||
$content =~ s/startCalcms\(\)\;/$js/gi;
|
$content =~ s/startCalcms\(\)\;/$js/gi;
|
||||||
|
|
||||||
#replace link to uncompressed or compressed drupal (first link in <head>)
|
|
||||||
#my @parts = split( /<\/head>/, $content );
|
|
||||||
#$parts[0] =~ s|/misc/jquery.js|/agenda_files/js/jquery.min.js|;
|
|
||||||
#$parts[0] =~ s|/sites/default/files/js/[a-z0-9\_]+\.js|/agenda_files/js/jquery.min.js|;
|
|
||||||
#$content = join( '</head>', @parts );
|
|
||||||
|
|
||||||
print $output_header;
|
print $output_header;
|
||||||
print $content;
|
print $content;
|
||||||
$content = undef;
|
$content = undef;
|
||||||
|
|||||||
Reference in New Issue
Block a user