Je t'ai créé une première version du module pour que tu puisse tester ce qu'on a dit. Télécharge ce fichier :
Installe le c'est un patch Automne classique (valable uniquement pour la 4.0.1).
Ce n'est pour l'instant qu'un premier jet, très sommaire et il y a surement des points à revoir et à améliorer mais ça te permettra déjà de faire tes tests et de me dire ce que tu en pense.
Je suis allé un peu plus loin que ce que nous avions discuté. Ce module n'a plus pour objectif de détecter les mobiles mais plutôt de réaliser des conditions sur le User Agent du visiteur.
Le résultat permet de pouvoir accéder à n'importe laquelle des propriétés renvoyées par ces outils pour conditionner l'affichage de données dans Automne. Ce qui inclus notamment le fait qu'il s'agisse ou non d'un terminal mobile.
<atm-ua> ... </atm-ua> permet de remplacer des valeurs.
<atm-ua-if what="condition"> ... </atm-ua-if> permet de faire des conditions (similaires au tag atm-if du polymod) sur les propriétés du user agent.
te permet d'avoir toutes les variables existantes pour un navigateur. Par exemple, pour firefox ça donne ça :
Infos navigateur :
{{browscap:browser_name}} => Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 Creative ZENcast v2.00.13
{{browscap:browser_name_regex}} => ^mozilla/5\.0 \(windows; .*; windows nt 5\.1; .*; rv\:1\.9\.2.*\) gecko/.* firefox/3\.6.*$
{{browscap:browser_name_pattern}} => Mozilla/5.0 (Windows; *; Windows NT 5.1; *; rv:1.9.2*) Gecko/* Firefox/3.6*
{{browscap:Parent}} => Firefox 3.6
{{browscap:Platform}} => WinXP
{{browscap:Win32}} => 1
{{browscap:Browser}} => Firefox
{{browscap:Version}} => 3.6
{{browscap:MajorVer}} => 3
{{browscap:MinorVer}} => 6
{{browscap:Frames}} => 1
{{browscap:IFrames}} => 1
{{browscap:Tables}} => 1
{{browscap:Cookies}} => 1
{{browscap:JavaApplets}} => 1
{{browscap:JavaScript}} => 1
{{browscap:CssVersion}} => 3
{{browscap:supportsCSS}} => 1
{{browscap:Alpha}} =>
{{browscap:Beta}} =>
{{browscap:Win16}} =>
{{browscap:Win64}} =>
{{browscap:BackgroundSounds}} =>
{{browscap:CDF}} =>
{{browscap:VBScript}} =>
{{browscap:ActiveXControls}} =>
{{browscap:isBanned}} =>
{{browscap:isMobileDevice}} => 0
{{browscap:isSyndicationReader}} =>
{{browscap:Crawler}} =>
{{browscap:AOL}} =>
{{browscap:aolVersion}} => 0
{{wurfl:mobile_browser}} =>
{{wurfl:nokia_feature_pack}} => 0
{{wurfl:device_os}} =>
{{wurfl:nokia_series}} => 0
{{wurfl:has_qwerty_keyboard}} => false
{{wurfl:pointing_method}} => mouse
{{wurfl:mobile_browser_version}} =>
{{wurfl:nokia_edition}} => 0
{{wurfl:uaprof}} =>
{{wurfl:can_skip_aligned_link_row}} => false
{{wurfl:device_claims_web_support}} => false
{{wurfl:ununiqueness_handler}} =>
{{wurfl:model_name}} => 3.0
{{wurfl:device_os_version}} =>
{{wurfl:uaprof2}} =>
{{wurfl:is_wireless_device}} => false
{{wurfl:uaprof3}} =>
{{wurfl:brand_name}} => firefox
{{wurfl:model_extra_info}} =>
{{wurfl:marketing_name}} =>
{{wurfl:can_assign_phone_number}} => true
{{wurfl:release_date}} => 2002_january
{{wurfl:unique}} => true
{{wurfl:icons_on_menu_items_support}} => false
{{wurfl:opwv_wml_extensions_support}} => false
{{wurfl:built_in_back_button_support}} => false
{{wurfl:proportional_font}} => false
{{wurfl:insert_br_element_after_widget_recommended}} => false
{{wurfl:wizards_recommended}} => false
{{wurfl:wml_can_display_images_and_text_on_same_line}} => false
{{wurfl:softkey_support}} => false
{{wurfl:wml_make_phone_call_string}} =>
wtai://wp/mc;{{wurfl:deck_prefetch_support}} => false
{{wurfl:menu_with_select_element_recommended}} => false
{{wurfl:numbered_menus}} => false
{{wurfl:card_title_support}} => true
{{wurfl:image_as_link_support}} => false
{{wurfl:wrap_mode_support}} => false
{{wurfl:table_support}} => true
{{wurfl:access_key_support}} => false
{{wurfl:wml_displays_image_in_center}} => false
{{wurfl:elective_forms_recommended}} => true
{{wurfl:times_square_mode_support}} => false
{{wurfl:break_list_of_links_with_br_element_recommended}} => true
{{wurfl:menu_with_list_of_links_recommended}} => true
{{wurfl:imode_region}} => none
{{wurfl:chtml_can_display_images_and_text_on_same_line}} => false
{{wurfl:chtml_displays_image_in_center}} => false
{{wurfl:chtml_make_phone_call_string}} => tel:
{{wurfl:chtml_table_support}} => false
{{wurfl:chtml_display_accesskey}} => false
{{wurfl:emoji}} => false
{{wurfl:xhtml_preferred_charset}} => utf8
{{wurfl:xhtml_supports_css_cell_table_coloring}} => false
{{wurfl:xhtml_select_as_radiobutton}} => false
{{wurfl:xhtml_autoexpand_select}} => false
{{wurfl:xhtml_avoid_accesskeys}} => false
{{wurfl:accept_third_party_cookie}} => true
{{wurfl:xhtml_make_phone_call_string}} => tel:
{{wurfl:xhtml_allows_disabled_form_elements}} => false
{{wurfl:xhtml_supports_invisible_text}} => false
{{wurfl:xhtml_select_as_dropdown}} => false
{{wurfl:cookie_support}} => false
{{wurfl:xhtml_send_mms_string}} => none
{{wurfl:xhtml_table_support}} => false
{{wurfl:xhtml_display_accesskey}} => false
{{wurfl:xhtml_can_embed_video}} => none
{{wurfl:xhtml_supports_iframe}} => none
{{wurfl:xhtmlmp_preferred_mime_type}} => application/vnd.wap.xhtml+xml
{{wurfl:xhtml_supports_monospace_font}} => false
{{wurfl:xhtml_supports_inline_input}} => false
{{wurfl:xhtml_supports_forms_in_table}} => false
{{wurfl:xhtml_document_title_support}} => true
{{wurfl:xhtml_support_wml2_namespace}} => false
{{wurfl:xhtml_readable_background_color1}} => #FFFFFF
{{wurfl:xhtml_format_as_attribute}} => false
{{wurfl:xhtml_supports_table_for_layout}} => false
{{wurfl:xhtml_readable_background_color2}} => #FFFFFF
{{wurfl:xhtml_select_as_popup}} => false
{{wurfl:xhtml_send_sms_string}} => none
{{wurfl:xhtml_format_as_css_property}} => false
{{wurfl:xhtml_file_upload}} => not_supported
{{wurfl:xhtml_honors_bgcolor}} => false
{{wurfl:opwv_xhtml_extensions_support}} => false
{{wurfl:xhtml_marquee_as_css_property}} => false
{{wurfl:xhtml_nowrap_mode}} => false
{{wurfl:ajax_xhr_type}} => none
{{wurfl:ajax_support_getelementbyid}} => false
{{wurfl:ajax_support_event_listener}} => false
{{wurfl:ajax_manipulate_dom}} => false
{{wurfl:ajax_support_javascript}} => true
{{wurfl:ajax_support_inner_html}} => false
{{wurfl:ajax_manipulate_css}} => false
{{wurfl:ajax_support_events}} => false
{{wurfl:html_web_3_2}} => false
{{wurfl:html_wi_imode_htmlx_1}} => false
{{wurfl:html_wi_imode_html_1}} => false
{{wurfl:html_wi_oma_xhtmlmp_1_0}} => true
{{wurfl:html_wi_imode_html_2}} => false
{{wurfl:html_wi_w3_xhtmlbasic}} => true
{{wurfl:html_wi_imode_compact_generic}} => false
{{wurfl:html_wi_imode_html_3}} => false
{{wurfl:wml_1_1}} => true
{{wurfl:html_wi_imode_html_4}} => false
{{wurfl:wml_1_2}} => false
{{wurfl:html_wi_imode_html_5}} => false
{{wurfl:wml_1_3}} => false
{{wurfl:preferred_markup}} => html_web_4_0
{{wurfl:xhtml_support_level}} => 4
{{wurfl:voicexml}} => false
{{wurfl:html_wi_imode_htmlx_1_1}} => false
{{wurfl:multipart_support}} => false
{{wurfl:html_web_4_0}} => false
{{wurfl:time_to_live_support}} => false
{{wurfl:total_cache_disable_support}} => false
{{wurfl:physical_screen_height}} => 27
{{wurfl:columns}} => 11
{{wurfl:dual_orientation}} => false
{{wurfl:physical_screen_width}} => 27
{{wurfl:rows}} => 6
{{wurfl:max_image_width}} => 90
{{wurfl:resolution_height}} => 600
{{wurfl:resolution_width}} => 800
{{wurfl:max_image_height}} => 35
{{wurfl:greyscale}} => false
{{wurfl:jpg}} => false
{{wurfl:gif}} => true
{{wurfl:transparent_png_index}} => false
{{wurfl:epoc_bmp}} => false
{{wurfl:bmp}} => false
{{wurfl:wbmp}} => true
{{wurfl:gif_animated}} => false
{{wurfl:colors}} => 256
{{wurfl:svgt_1_1_plus}} => false
{{wurfl:svgt_1_1}} => false
{{wurfl:transparent_png_alpha}} => false
{{wurfl:png}} => false
{{wurfl:tiff}} => false
{{wurfl:emptyok}} => false
{{wurfl:empty_option_value_support}} => true
{{wurfl:basic_authentication_support}} => true
{{wurfl:post_method_support}} => true
{{wurfl:nokia_voice_call}} => false
{{wurfl:wta_pdc}} => false
{{wurfl:wta_voice_call}} => false
{{wurfl:wta_misc}} => false
{{wurfl:wta_phonebook}} => false
{{wurfl:phone_id_provided}} => false
{{wurfl:https_support}} => true
{{wurfl:sdio}} => false
{{wurfl:wifi}} => false
{{wurfl:has_cellular_radio}} => true
{{wurfl:max_data_rate}} => 9
{{wurfl:vpn}} => false
{{wurfl:max_length_of_username}} => 0
{{wurfl:max_url_length_bookmark}} => 0
{{wurfl:max_no_of_bookmarks}} => 0
{{wurfl:max_deck_size}} => 4000
{{wurfl:max_url_length_cached_page}} => 0
{{wurfl:max_length_of_password}} => 0
{{wurfl:max_no_of_connection_settings}} => 0
{{wurfl:max_url_length_in_requests}} => 128
{{wurfl:max_object_size}} => 0
{{wurfl:max_url_length_homepage}} => 0
{{wurfl:video}} => false
{{wurfl:picture_bmp}} => false
{{wurfl:picture}} => false
{{wurfl:wallpaper_df_size_limit}} => 0
{{wurfl:picture_preferred_width}} => 0
{{wurfl:wallpaper_oma_size_limit}} => 0
{{wurfl:picture_greyscale}} => false
{{wurfl:inline_support}} => false
{{wurfl:ringtone_qcelp}} => false
{{wurfl:screensaver_oma_size_limit}} => 0
{{wurfl:screensaver_wbmp}} => false
{{wurfl:picture_resize}} => none
{{wurfl:picture_preferred_height}} => 0
{{wurfl:ringtone_rmf}} => false
{{wurfl:wallpaper_wbmp}} => false
{{wurfl:wallpaper_jpg}} => false
{{wurfl:screensaver_bmp}} => false
{{wurfl:screensaver_max_width}} => 0
{{wurfl:picture_inline_size_limit}} => 0
{{wurfl:picture_colors}} => 2
{{wurfl:ringtone_midi_polyphonic}} => false
{{wurfl:ringtone_midi_monophonic}} => false
{{wurfl:screensaver_preferred_height}} => 0
{{wurfl:ringtone_voices}} => 1
{{wurfl:ringtone_3gpp}} => false
{{wurfl:oma_support}} => false
{{wurfl:ringtone_inline_size_limit}} => 0
{{wurfl:wallpaper_preferred_width}} => 0
{{wurfl:wallpaper_greyscale}} => false
{{wurfl:screensaver_preferred_width}} => 0
{{wurfl:wallpaper_preferred_height}} => 0
{{wurfl:picture_max_width}} => 0
{{wurfl:picture_jpg}} => false
{{wurfl:ringtone_aac}} => false
{{wurfl:ringtone_oma_size_limit}} => 0
{{wurfl:wallpaper_directdownload_size_limit}} => 0
{{wurfl:screensaver_inline_size_limit}} => 0
{{wurfl:ringtone_xmf}} => false
{{wurfl:picture_max_height}} => 0
{{wurfl:screensaver_max_height}} => 0
{{wurfl:ringtone_mp3}} => false
{{wurfl:wallpaper_png}} => false
{{wurfl:screensaver_jpg}} => false
{{wurfl:ringtone_directdownload_size_limit}} => 0
{{wurfl:wallpaper_max_width}} => 0
{{wurfl:wallpaper_max_height}} => 0
{{wurfl:screensaver}} => false
{{wurfl:ringtone_wav}} => false
{{wurfl:wallpaper_gif}} => false
{{wurfl:screensaver_directdownload_size_limit}} => 0
{{wurfl:picture_df_size_limit}} => 0
{{wurfl:wallpaper_tiff}} => false
{{wurfl:screensaver_df_size_limit}} => 0
{{wurfl:ringtone_awb}} => false
{{wurfl:ringtone}} => false
{{wurfl:wallpaper_inline_size_limit}} => 0
{{wurfl:picture_directdownload_size_limit}} => 0
{{wurfl:picture_png}} => false
{{wurfl:wallpaper_bmp}} => false
{{wurfl:picture_wbmp}} => false
{{wurfl:ringtone_df_size_limit}} => 0
{{wurfl:picture_oma_size_limit}} => 0
{{wurfl:picture_gif}} => false
{{wurfl:screensaver_png}} => false
{{wurfl:wallpaper_resize}} => none
{{wurfl:screensaver_greyscale}} => false
{{wurfl:ringtone_mmf}} => false
{{wurfl:ringtone_amr}} => false
{{wurfl:wallpaper}} => false
{{wurfl:ringtone_digiplug}} => false
{{wurfl:ringtone_spmidi}} => false
{{wurfl:ringtone_compactmidi}} => false
{{wurfl:ringtone_imelody}} => false
{{wurfl:screensaver_resize}} => none
{{wurfl:wallpaper_colors}} => 2
{{wurfl:directdownload_support}} => false
{{wurfl:downloadfun_support}} => false
{{wurfl:screensaver_colors}} => 2
{{wurfl:screensaver_gif}} => false
{{wurfl:oma_v_1_0_combined_delivery}} => false
{{wurfl:oma_v_1_0_separate_delivery}} => false
{{wurfl:oma_v_1_0_forwardlock}} => false
{{wurfl:streaming_vcodec_mpeg4_asp}} => -1
{{wurfl:streaming_video_size_limit}} => 0
{{wurfl:streaming_mov}} => false
{{wurfl:streaming_wmv}} => none
{{wurfl:streaming_acodec_aac}} => none
{{wurfl:streaming_vcodec_h263_0}} => -1
{{wurfl:streaming_real_media}} => none
{{wurfl:streaming_3g2}} => false
{{wurfl:streaming_3gpp}} => false
{{wurfl:streaming_acodec_amr}} => none
{{wurfl:streaming_vcodec_h264_bp}} => -1
{{wurfl:streaming_vcodec_h263_3}} => -1
{{wurfl:streaming_preferred_protocol}} => rtsp
{{wurfl:streaming_vcodec_mpeg4_sp}} => -1
{{wurfl:streaming_flv}} => false
{{wurfl:streaming_video}} => false
{{wurfl:streaming_mp4}} => false
{{wurfl:expiration_date}} => false
{{wurfl:utf8_support}} => false
{{wurfl:connectionless_cache_operation}} => false
{{wurfl:connectionless_service_load}} => false
{{wurfl:iso8859_support}} => false
{{wurfl:connectionoriented_confirmed_service_indication}} => false
{{wurfl:connectionless_service_indication}} => false
{{wurfl:ascii_support}} => false
{{wurfl:connectionoriented_confirmed_cache_operation}} => false
{{wurfl:connectionoriented_confirmed_service_load}} => false
{{wurfl:wap_push_support}} => false
{{wurfl:connectionoriented_unconfirmed_cache_operation}} => false
{{wurfl:connectionoriented_unconfirmed_service_load}} => false
{{wurfl:connectionoriented_unconfirmed_service_indication}} => false
{{wurfl:doja_1_5}} => false
{{wurfl:j2me_datefield_broken}} => false
{{wurfl:j2me_clear_key_code}} => 0
{{wurfl:j2me_right_softkey_code}} => 0
{{wurfl:j2me_heap_size}} => 0
{{wurfl:j2me_canvas_width}} => 0
{{wurfl:j2me_motorola_lwt}} => false
{{wurfl:doja_3_5}} => false
{{wurfl:j2me_wbmp}} => false
{{wurfl:j2me_rmf}} => false
{{wurfl:j2me_wma}} => false
{{wurfl:j2me_left_softkey_code}} => 0
{{wurfl:j2me_jtwi}} => false
{{wurfl:j2me_jpg}} => false
{{wurfl:j2me_return_key_code}} => 0
{{wurfl:j2me_real8}} => false
{{wurfl:j2me_max_record_store_size}} => 0
{{wurfl:j2me_realmedia}} => false
{{wurfl:j2me_midp_1_0}} => false
{{wurfl:j2me_bmp3}} => false
{{wurfl:j2me_midi}} => false
{{wurfl:j2me_btapi}} => false
{{wurfl:j2me_locapi}} => false
{{wurfl:j2me_siemens_extension}} => false
{{wurfl:j2me_h263}} => false
{{wurfl:j2me_audio_capture_enabled}} => false
{{wurfl:j2me_midp_2_0}} => false
{{wurfl:j2me_datefield_no_accepts_null_date}} => false
{{wurfl:j2me_aac}} => false
{{wurfl:j2me_capture_image_formats}} => none
{{wurfl:j2me_select_key_code}} => 0
{{wurfl:j2me_xmf}} => false
{{wurfl:j2me_photo_capture_enabled}} => false
{{wurfl:j2me_realaudio}} => false
{{wurfl:j2me_realvideo}} => false
{{wurfl:j2me_mp3}} => false
{{wurfl:j2me_png}} => false
{{wurfl:j2me_au}} => false
{{wurfl:j2me_screen_width}} => 0
{{wurfl:j2me_mp4}} => false
{{wurfl:j2me_mmapi_1_0}} => false
{{wurfl:j2me_http}} => false
{{wurfl:j2me_imelody}} => false
{{wurfl:j2me_socket}} => false
{{wurfl:j2me_3dapi}} => false
{{wurfl:j2me_bits_per_pixel}} => 0
{{wurfl:j2me_mmapi_1_1}} => false
{{wurfl:j2me_udp}} => false
{{wurfl:j2me_wav}} => false
{{wurfl:j2me_middle_softkey_code}} => 0
{{wurfl:j2me_svgt}} => false
{{wurfl:j2me_gif}} => false
{{wurfl:j2me_siemens_color_game}} => false
{{wurfl:j2me_max_jar_size}} => 0
{{wurfl:j2me_wmapi_1_0}} => false
{{wurfl:j2me_nokia_ui}} => false
{{wurfl:j2me_screen_height}} => 0
{{wurfl:j2me_wmapi_1_1}} => false
{{wurfl:j2me_wmapi_2_0}} => false
{{wurfl:doja_1_0}} => false
{{wurfl:j2me_serial}} => false
{{wurfl:doja_2_0}} => false
{{wurfl:j2me_bmp}} => false
{{wurfl:j2me_amr}} => false
{{wurfl:j2me_gif89a}} => false
{{wurfl:j2me_cldc_1_0}} => false
{{wurfl:doja_2_1}} => false
{{wurfl:doja_3_0}} => false
{{wurfl:j2me_cldc_1_1}} => false
{{wurfl:doja_2_2}} => false
{{wurfl:doja_4_0}} => false
{{wurfl:j2me_3gpp}} => false
{{wurfl:j2me_video_capture_enabled}} => false
{{wurfl:j2me_canvas_height}} => 0
{{wurfl:j2me_https}} => false
{{wurfl:j2me_mpeg4}} => false
{{wurfl:j2me_storage_size}} => 0
{{wurfl:mms_3gpp}} => false
{{wurfl:mms_wbxml}} => false
{{wurfl:mms_symbian_install}} => false
{{wurfl:mms_png}} => false
{{wurfl:mms_max_size}} => 0
{{wurfl:mms_rmf}} => false
{{wurfl:mms_nokia_operatorlogo}} => false
{{wurfl:mms_max_width}} => 0
{{wurfl:mms_max_frame_rate}} => 0
{{wurfl:mms_wml}} => false
{{wurfl:mms_evrc}} => false
{{wurfl:mms_spmidi}} => false
{{wurfl:mms_gif_static}} => false
{{wurfl:mms_max_height}} => 0
{{wurfl:sender}} => false
{{wurfl:mms_video}} => false
{{wurfl:mms_vcard}} => false
{{wurfl:mms_nokia_3dscreensaver}} => false
{{wurfl:mms_qcelp}} => false
{{wurfl:mms_midi_polyphonic}} => false
{{wurfl:mms_wav}} => false
{{wurfl:mms_jpeg_progressive}} => false
{{wurfl:mms_jad}} => false
{{wurfl:mms_nokia_ringingtone}} => false
{{wurfl:built_in_recorder}} => false
{{wurfl:mms_midi_monophonic}} => false
{{wurfl:mms_3gpp2}} => false
{{wurfl:mms_wmlc}} => false
{{wurfl:mms_nokia_wallpaper}} => false
{{wurfl:mms_bmp}} => false
{{wurfl:mms_vcalendar}} => false
{{wurfl:mms_jar}} => false
{{wurfl:mms_ota_bitmap}} => false
{{wurfl:mms_mp3}} => false
{{wurfl:mms_mmf}} => false
{{wurfl:mms_amr}} => false
{{wurfl:mms_wbmp}} => false
{{wurfl:built_in_camera}} => false
{{wurfl:receiver}} => false
{{wurfl:mms_mp4}} => false
{{wurfl:mms_xmf}} => false
{{wurfl:mms_jpeg_baseline}} => false
{{wurfl:mms_midi_polyphonic_voices}} => 0
{{wurfl:mms_gif_animated}} => false
{{wurfl:ems}} => false
{{wurfl:text_imelody}} => false
{{wurfl:nokiaring}} => false
{{wurfl:siemens_logo_height}} => 29
{{wurfl:ems_variablesizedpictures}} => false
{{wurfl:sckl_groupgraphic}} => false
{{wurfl:siemens_ota}} => false
{{wurfl:sagem_v1}} => false
{{wurfl:largeoperatorlogo}} => false
{{wurfl:sagem_v2}} => false
{{wurfl:ems_version}} => 0
{{wurfl:ems_odi}} => false
{{wurfl:nokiavcal}} => false
{{wurfl:operatorlogo}} => false
{{wurfl:siemens_logo_width}} => 101
{{wurfl:ems_imelody}} => false
{{wurfl:sckl_vcard}} => false
{{wurfl:siemens_screensaver_width}} => 101
{{wurfl:sckl_operatorlogo}} => false
{{wurfl:panasonic}} => false
{{wurfl:ems_upi}} => false
{{wurfl:nokiavcard}} => false
{{wurfl:callericon}} => false
{{wurfl:sms_enabled}} => true
{{wurfl:gprtf}} => false
{{wurfl:siemens_screensaver_height}} => 50
{{wurfl:sckl_ringtone}} => false
{{wurfl:picturemessage}} => false
{{wurfl:sckl_vcalendar}} => false
{{wurfl:rmf}} => false
{{wurfl:qcelp}} => false
{{wurfl:awb}} => false
{{wurfl:smf}} => false
{{wurfl:wav}} => false
{{wurfl:nokia_ringtone}} => false
{{wurfl:aac}} => false
{{wurfl:digiplug}} => false
{{wurfl:sp_midi}} => false
{{wurfl:compactmidi}} => false
{{wurfl:voices}} => 1
{{wurfl:mp3}} => false
{{wurfl:mld}} => false
{{wurfl:evrc}} => false
{{wurfl:amr}} => false
{{wurfl:xmf}} => false
{{wurfl:mmf}} => false
{{wurfl:imelody}} => false
{{wurfl:midi_monophonic}} => false
{{wurfl:au}} => false
{{wurfl:midi_polyphonic}} => false
{{wurfl:flash_lite_version}} =>
{{wurfl:fl_wallpaper}} => false
{{wurfl:fl_browser}} => false
{{wurfl:fl_screensaver}} => false
{{wurfl:fl_standalone}} => false
{{wurfl:fl_sub_lcd}} => false
{{wurfl:css_supports_width_as_percentage}} => true
{{wurfl:is_transcoder}} => false
{{wurfl:transcoder_ua_header}} => user-agent
{{wurfl:rss_support}} => false
{{wurfl:pdf_support}} => false
{{wurfl:playback_oma_size_limit}} => 0
{{wurfl:playback_acodec_aac}} => none
{{wurfl:playback_vcodec_h263_3}} => -1
{{wurfl:playback_vcodec_mpeg4_asp}} => -1
{{wurfl:playback_mp4}} => false
{{wurfl:playback_3gpp}} => false
{{wurfl:playback_df_size_limit}} => 0
{{wurfl:playback_acodec_amr}} => none
{{wurfl:playback_mov}} => false
{{wurfl:playback_wmv}} => none
{{wurfl:playback_acodec_qcelp}} => false
{{wurfl:progressive_download}} => false
{{wurfl:playback_directdownload_size_limit}} => 0
{{wurfl:playback_real_media}} => none
{{wurfl:playback_3g2}} => false
{{wurfl:playback_vcodec_mpeg4_sp}} => -1
{{wurfl:playback_vcodec_h263_0}} => -1
{{wurfl:playback_inline_size_limit}} => 0
{{wurfl:hinted_progressive_download}} => false
{{wurfl:playback_vcodec_h264_bp}} => -1
{{wurfl:streaming_video_acodec_amr}} => false
{{wurfl:streaming_video_vcodec_h263_0}} => false
{{wurfl:streaming_video_max_video_bit_rate}} => 0
{{wurfl:video_acodec_amr}} => false
{{wurfl:video_vcodec_h263_3}} => false
{{wurfl:video_directdownload_size_limit}} => 0
{{wurfl:video_max_width}} => 0
{{wurfl:streaming_video_sqcif}} => false
{{wurfl:streaming_real_media_10}} => false
{{wurfl:has_pointing_device}} => false
{{wurfl:streaming_video_sqcif_max_width}} => 0
{{wurfl:video_vcodec_mpeg4}} => false
{{wurfl:video_inline_size_limit}} => 0
{{wurfl:streaming_video_vcodec_h263_3}} => false
{{wurfl:streaming_video_max_bit_rate}} => 0
{{wurfl:video_vcodec_h264}} => none
{{wurfl:streaming_video_sqcif_max_height}} => 0
{{wurfl:video_df_size_limit}} => 0
{{wurfl:video_3gpp2}} => false
{{wurfl:video_real_media_8}} => false
{{wurfl:streaming_video_max_audio_bit_rate}} => 0
{{wurfl:video_real_media_10}} => false
{{wurfl:video_real_media_9}} => false
{{wurfl:xhtml_supports_file_upload}} => false
{{wurfl:streaming_video_vcodec_mpeg4}} => false
{{wurfl:video_acodec_qcelp}} => false
{{wurfl:video_acodec_awb}} => false
{{wurfl:video_max_height}} => 0
{{wurfl:video_mp4}} => false
{{wurfl:video_3gpp}} => false
{{wurfl:streaming_video_acodec_aac_ltp}} => false
{{wurfl:streaming_video_acodec_awb}} => false
{{wurfl:streaming_video_max_frame_rate}} => 0
{{wurfl:streaming_real_media_8}} => false
{{wurfl:video_acodec_aac}} => false
{{wurfl:video_oma_size_limit}} => 0
{{wurfl:streaming_video_acodec_aac}} => false
{{wurfl:streaming_video_min_video_bit_rate}} => 0
{{wurfl:streaming_real_media_9}} => false
{{wurfl:video_vcodec_h263_0}} => false
{{wurfl:video_preferred_width}} => 0
{{wurfl:video_sqcif}} => false
{{wurfl:video_qcif}} => false
{{wurfl:streaming_video_qcif}} => false
{{wurfl:video_preferred_height}} => 0
{{wurfl:video_mov}} => false
{{wurfl:streaming_video_vcodec_h264}} => none
{{wurfl:streaming_video_qcif_max_height}} => 0
{{wurfl:streaming_video_qcif_max_width}} => 0
{{wurfl:video_acodec_aac_ltp}} => false
{{wurfl:video_max_frame_rate}} => 0
{{wurfl:video_wmv}} => false
{{wurfl:https_detectable}} => false
Chaque ligne représente une variable sur laquelle tu peux faire une condition avec le tag atm-ua-if ou bien récupérer directement la valeur si tu met cette variable au milieu du tag atm-ua ou atm-ua-if. L'exemple de rangée que je t'ai mis plus haut te montrera le fonctionnement.
Enfin tu peux aussi forcer une valeur sur le User Agent via un lien comportant la valeur à forcer. Cela permet par exemple de passer en mode mobile ou en mode classique sur le site. Là encore, il y a un exemple dans la rangée.
Tes retours sont les bienvenus là dessus. Si tu remarque des bugs ou des manques signales les moi et j'essayerai d'en faire une version un peu plus aboutie la semaine prochaine.