Changeset 9921
- Timestamp:
- 04/20/08 00:19:26 (5 years ago)
- Location:
- lang/perl/Moxy/branches/CC
- Files:
-
- 1 added
- 1 removed
- 3 modified
-
assets/common/docomo-display-map.yaml (added)
-
config.yaml (modified) (1 diff)
-
lib/Moxy/MobileAttribute/UAInfo.pm (deleted)
-
lib/Moxy/Plugin/Filter/HTMLWidth.pm (modified) (1 diff)
-
lib/Moxy/Plugin/Server.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Moxy/branches/CC/config.yaml
r9900 r9921 17 17 - module: Filter::UserAgentSwitcher 18 18 - module: Filter::Pictogram 19 # XXX これからやらんと 19 20 - module: Filter::HTMLWidth 20 21 - module: Filter::QRCode -
lang/perl/Moxy/branches/CC/lib/Moxy/Plugin/Filter/HTMLWidth.pm
r9667 r9921 8 8 my ($class, $context, $args) = @_; 9 9 10 if ( $args->{mobile_attribute} && $args->{mobile_attribute}->display_width) {10 if ( $args->{mobile_attribute} && (my $display = $args->{mobile_attribute}->display) ) { 11 11 my $header = sprintf( 12 12 q{<div style="border: 1px black solid; 13 13 margin-right:auto; 14 14 margin-left:auto; 15 width: %dpx">}, $ args->{mobile_attribute}->display_width15 width: %dpx">}, $display->width 16 16 ); 17 17 18 my $content = $args->{response}->content; 18 19 $content =~ s!(<body[^>]*>)!$1$header!i; -
lang/perl/Moxy/branches/CC/lib/Moxy/Plugin/Server.pm
r9900 r9921 14 14 use Params::Validate ':all'; 15 15 use URI::Heuristic qw(uf_uristr); 16 use File::Spec::Functions; 16 17 use HTTP::MobileAttribute plugins => [ 17 qw/CarrierLetter IS +Moxy::MobileAttribute::UAInfo/ 18 qw/CarrierLetter IS/, 19 { 20 module => 'Display', 21 config => { 22 DoCoMoMap => YAML::LoadFile( 23 catfile( 'assets', 'common', 'docomo-display-map.yaml' ) 24 ) 25 } 26 }, 18 27 ]; 19 28 our @EXPORT = qw/rewrite handle_request render_control_panel/;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)