How to use start class

Best Atoum code snippet using start

domEl.php

Source:domEl.php Github

copy

Full Screen

1<?php2function domEl() {3 // SCROLL DOWN4 $start_scroll_down = 'hero-slider-scroll-down';5 // NAVBAR6 $start_site_navbar = 'content-start-site-navbar';7 // HOME SECTION8 //HERO CAROUSEL9 $start_hero_carousel = 'content-start-hero-carousel';10 // OUR BRANDS11 $start_large_pad_our_brands = 'content-start-large-pad-our-brands';12 // GROUP COUNTER13 $start_large_pad_group_counter = 'content-start-large-pad-group-counter';14 // FULL WIDTH FEATURES15 $start_full_width_features = 'content-start-full-width-features';16 // DEALER SEARCH MAP17 $start_dealer_search_map = 'content-start-dealer-search-map';18 // AGENCIES NEWS19 // UTILITY BAR BREADCRUMB20 $start_utility_bar_breadcrumb = 'content-start-utility-bar-breadcrumb';21 $start_agencies_news_content_body = 'content-start-agencies-news-body-main';22 $start_agencies_news_large_pad_brands = 'content-start-agencies-news-large-pad-brands';23 $start_agencies_news_midpadding_work = 'content-start-agencies-news-midpadding-work';24 $start_agencies_news_video_strip = 'content-start-agencies-news-video-strip-agencie';25 // AGENCIES NEWS SUB AGENCIE26 $start_agencies_news_fachada = 'content-start-agencies-news-fachada';27 $start_agencies_news_address = 'content-start-agencies-news-address';28 $start_agencies_news_map = 'content-start-agencies-news-map';29 // AGENCIES TRUCKS30 $start_agencies_trucks_content_body = 'content-start-agencies-trucks-body-main';31 $start_agencies_trucks_large_pad_brands = 'content-start-agencies-trucks-large-pad-brands';32 $start_agencies_trucks_midpadding_work = 'content-start-agencies-trucks-midpadding-work';33 // AGENCIES TRUCKS SUB AGENCIE34 $start_agencies_trucks_fachada = 'content-start-agencies-trucks-fachada';35 $start_agencies_trucks_address = 'content-start-agencies-trucks-address';36 $start_agencies_trucks_map = 'content-start-agencies-trucks-map';37 // AGENCIES PRE-OWNED38 $start_agencies_preowned_content_body = 'content-start-agencies-preowned-body-main';39 $start_agencies_preowned_small_screen = 'content-start-agencies-preowned-small-screen';40 $start_agencies_preowned_section_tabs = 'content-start-agencies-preowned-section-tabs';41 $start_agencies_preowned_tab_content_by_agencie = 'content-start-tab-container-by-agencie';42 $start_agencies_preowned_content_fachada = 'content-start-container-fachada';43 $start_agencies_preowned_content_address = 'content-start-container-address';44 $start_agencies_preowned_content_map = 'content-start-container-map';45 // AGENCIES PRE-OWNED46 $start_agencies_preowned_content_body = 'content-start-agencies-preowned-body-main';47 $start_agencies_preowned_small_screen = 'content-start-agencies-preowned-small-screen';48 $start_agencies_preowned_section_tabs = 'content-start-agencies-preowned-section-tabs';49 $start_agencies_preowned_tab_content_by_agencie = 'content-start-tab-container-by-agencie';50 $start_agencies_preowned_content_fachada = 'content-start-container-fachada';51 $start_agencies_preowned_content_address = 'content-start-container-address';52 $start_agencies_preowned_content_map = 'content-start-container-map';53 // INVENTORIES PRE-OWNED54 $start_inventories_preowned_action_bar = 'content-start-inventories-preowned-action-bar';55 $start_inventories_preowned_filter_section = 'content-start-inventories-preowned-filter-section';56 $start_inventories_preowned_field_filter_category = 'content-start-inventories-preowned-field-filter-category';57 $start_inventories_preowned_field_filter_brands = 'content-start-inventories-preowned-field-filter-brands';58 $start_inventories_preowned_field_filter_models = 'content-start-inventories-preowned-field-filter-models';59 // WORKSHOP60 $start_workshop_content_body = 'content-start-workshop-body-main';61 $start_workshop_content_brand = 'content-start-workshop-brand';62 $start_workshop_content_agencies = 'content-start-workshop-agencies';63 // RENTAL64 $start_rental_content_body = 'content-start-rental-body-main';65 $start_rental_content_agencies = 'content-start-rental-agencies';66 // BLOG NEWS67 // BLOG BY NEWS68 $start_body_content_main = 'content-start-body-main';69 $start_flexslider = 'content-flexslider';70 // ABOUT US71 $start_large_pad_land_mark = 'content-start-large-pag-land-mark';72 $start_large_pad_feature_list = 'content-start-large-pag-feature-list';73 $start_large_pad_contact_form = 'content-start-large-pag-contact-form';74 $start_contact_main = 'content-start-contact-main';75 // SECTION SEPARATOR76 $start_section_separator = 'content-section-separator';77 // SECTION CONTACT78 $start_section_hero_slider = 'content-start-hero-slider';79 $start_duplicatable_table = 'content-start-duplicatable-table';8081 // PRIVACY NOTICE82 $start_article_wrapper = 'content-article-wrapper';83 return array(84 // SCROLL DOWN85 'scroll_down' => '#hero-slider-scroll-down',8687 'head_recurrent' => 'head',88 'body_recurrent' => 'body',89 // NAVBAR WRAPPER90 'navbar_recurrent' => '#start-site-header',91 // HERO SLIDER PARALLAX92 'hero_slider_recurrent' => '#start-site-hero-slider',93 // BACK TO TOP94 '_back_to_top' => '.back-to-top',95 'ide_return_button' => '#back',96 //GENERAL HI DIVS97 'div_hidden_inputs_session' => 'div#hidden-inputs-session',98 'div_hidden_inputs_temporal' => 'div#hidden-inputs-temporal',99 'div_recurrent' => 'div#content-temporal-interactive',100 // FILTER INPUTS101 'input_hidden_mapa' => 'input#hidden_mapa',102 'input_current_hidden_category' => 'input#hidden_category',103 'input_current_hidden_marc' => 'input#hidden_marc',104 'input_current_hidden_model' => 'input#hidden_model',105 'input_current_hidden_agen_pre_owned_name' => 'input#hidden_agen_pre_owned_name',106 'input_current_hidden_agen_pre_owned_id' => 'input#hidden_agen_pre_owned_id',107 'input_current_hidden_agen_news_name' => 'input#hidden_agen_news_name',108 // MAIN NAVIGATION109 '_start_site_navbar' => $start_site_navbar,110 '_start_site_navbar_name' => '#' . $start_site_navbar,111 // HOME SECTION112 // HERO COROUSEL113 '_start_hero_carousel' => $start_hero_carousel,114 '_start_hero_carousel_name' => '#' . $start_hero_carousel,115 // OUR BRANDS116 '_start_large_pad_our_brands' => $start_large_pad_our_brands,117 '_start_large_pad_our_brands_name' => '#' . $start_large_pad_our_brands,118 // GROUP COUNTER119 '_start_large_pad_group_counter' => $start_large_pad_group_counter,120 '_start_large_pad_group_counter_name' => '#' . $start_large_pad_group_counter,121 // FULL WIDTH FEATURES122 '_start_full_width_features' => $start_full_width_features,123 '_start_full_width_features_name' => '#' . $start_full_width_features,124 // FULL WIDTH FEATURES125 '_start_dealer_search_map' => $start_dealer_search_map,126 '_start_dealer_search_map_name' => '#' . $start_dealer_search_map,127 // UTILITY BAR BREADCRUMB128 '_start_utility_bar_breadcrumb' => $start_utility_bar_breadcrumb,129 '_start_utility_bar_breadcrumb_name' => '#' . $start_utility_bar_breadcrumb,130 // AGNCIES NEWS131 '_start_agencies_news_content_body' => $start_agencies_news_content_body,132 '_start_agencies_news_content_body_name' => '#' . $start_agencies_news_content_body,133 // AGENCIES NEWS BRANDS134 '_start_agencies_news_large_pad_brands' => $start_agencies_news_large_pad_brands,135 '_start_agencies_news_large_pad_brands_name' => '#' . $start_agencies_news_large_pad_brands,136 // AGENCIES NEWS CATEGORIES137 '_start_agencies_news_midpadding_work' => $start_agencies_news_midpadding_work,138 '_start_agencies_news_midpadding_work_name' => '#' . $start_agencies_news_midpadding_work,139 // AGENCIES NEWS SUB AGENCIE140 '_start_agencies_news_fachada' => $start_agencies_news_fachada,141 '_start_agencies_news_fachada_name' => '#' . $start_agencies_news_fachada,142 '_start_agencies_news_address' => $start_agencies_news_address,143 '_start_agencies_news_address_name' => '#' . $start_agencies_news_address,144 '_start_agencies_news_map' => $start_agencies_news_map,145 '_start_agencies_news_map_name' => '#' . $start_agencies_news_map,146 // AGENCIES NEWS VIDEO STRIP147 '_start_agencies_news_video_strip' => $start_agencies_news_video_strip,148 '_start_agencies_news_video_strip_name' => '#' . $start_agencies_news_video_strip,149 // AGENCIES NEWS ACTION150 'action_new_agn' => '.action-new-agn',151 // AGENCIES NEWS SUB AGENCIE152 'action_go_agencie_news' => 'a.go-action-agencie-news',153 'action_go_agencie_news_id' => 'a#go-action-agencie-news-',154 // AGENCIES TRUCKS155 // AGNCIES TRUCKS156 '_start_agencies_trucks_content_body' => $start_agencies_trucks_content_body,157 '_start_agencies_trucks_content_body_name' => '#' . $start_agencies_trucks_content_body,158 // AGENCIES TRUCKS BRANDS159 '_start_agencies_trucks_large_pad_brands' => $start_agencies_trucks_large_pad_brands,160 '_start_agencies_trucks_large_pad_brands_name' => '#' . $start_agencies_trucks_large_pad_brands,161 // AGENCIES TRUCKS CATEGORIES162 '_start_agencies_trucks_midpadding_work' => $start_agencies_trucks_midpadding_work,163 '_start_agencies_trucks_midpadding_work_name' => '#' . $start_agencies_trucks_midpadding_work,164 // AGENCIES TRUCKS SUB AGENCIE165 '_start_agencies_trucks_fachada' => $start_agencies_trucks_fachada,166 '_start_agencies_trucks_fachada_name' => '#' . $start_agencies_trucks_fachada,167 '_start_agencies_trucks_address' => $start_agencies_trucks_address,168 '_start_agencies_trucks_address_name' => '#' . $start_agencies_trucks_address,169 '_start_agencies_trucks_map' => $start_agencies_trucks_map,170 '_start_agencies_trucks_map_name' => '#' . $start_agencies_trucks_map,171 // AGENCIES TRUCKS ACTION172 'action_truck_agn' => '.action-truck-agn',173 // AGENCIES TRUCKS SUB AGENCIE174 'action_go_agencie_trucks' => 'a.go-action-agencie-trucks',175 'action_go_agencie_trucks_id' => 'a#go-action-agencie-trucks-',176177 // AGENCIES PRE-OWNED178 '_start_agencies_preowned_content_body' => $start_agencies_preowned_content_body,179 '_start_agencies_preowned_content_body_name' => '#' . $start_agencies_preowned_content_body,180 '_start_agencies_preowned_small_screen' => $start_agencies_preowned_small_screen,181 '_start_agencies_preowned_small_screen_name' => '#' . $start_agencies_preowned_small_screen,182 '_start_agencies_preowned_section_tabs' => $start_agencies_preowned_section_tabs,183 '_start_agencies_preowned_section_tabs_name' => '#' . $start_agencies_preowned_section_tabs,184 '_start_agencies_preowned_tab_content_by_agencie' => $start_agencies_preowned_tab_content_by_agencie,185 '_start_agencies_preowned_tab_content_by_agencie_name' => '#' . $start_agencies_preowned_tab_content_by_agencie,186 '_start_agencies_preowned_content_fachada' => $start_agencies_preowned_content_fachada,187 '_start_agencies_preowned_content_fachada_name' => '#' . $start_agencies_preowned_content_fachada,188 '_start_agencies_preowned_content_address' => $start_agencies_preowned_content_address,189 '_start_agencies_preowned_content_address_name' => '#' . $start_agencies_preowned_content_address,190 '_start_agencies_preowned_content_map' => $start_agencies_preowned_content_map,191 '_start_agencies_preowned_content_map_name' => '#' . $start_agencies_preowned_content_map,192 // BUTTON SHOW TABS AGENICES PRE-OWNED193 'button_show_agencies_tabs' => '#Show-Agencies-Tabs',194 'button_search_tabs' => '#Search-tabs',195 'li_agencies' => '.agencia',196 // GO ACTION AGENCIE PRE OWNED197 'action_go_agencie_preowned' => 'a.go-action-agencie-preowned',198 'action_go_agencie_preowned_id' => 'a#go-action-agencie-preowned-',199200 'action_preowned_agn' => '.action-preowned-agn',201202 // INVENTORIES PRE-OWNED203 '_start_inventories_preowned_action_bar' => $start_inventories_preowned_action_bar,204 '_start_inventories_preowned_action_bar_name' => '#' . $start_inventories_preowned_action_bar,205 // SMALL SCREEN FLITERS206 'div_recurrent_start_small_screen_filters' => '#small-screen-filters',207 // BUTTON SOW FILTER208 'button_show_filters' => '#Show-Filters',209 'button_search_filters' => '#Search-Filters',210 // FILTER SECTION211 '_start_inventories_preowned_filter_section' => $start_inventories_preowned_filter_section,212 '_start_inventories_preowned_filter_section_name' => '#' . $start_inventories_preowned_filter_section,213 // FIELDS FILTERS214 '_start_inventories_preowned_field_filter_category' => $start_inventories_preowned_field_filter_category,215 '_start_inventories_preowned_field_filter_category_name' => '#' . $start_inventories_preowned_field_filter_category,216 '_start_inventories_preowned_field_filter_brands' => $start_inventories_preowned_field_filter_brands,217 '_start_inventories_preowned_field_filter_brands_name' => '#' . $start_inventories_preowned_field_filter_brands,218 '_start_inventories_preowned_field_filter_models' => $start_inventories_preowned_field_filter_models,219 '_start_inventories_preowned_field_filter_models_name' => '#' . $start_inventories_preowned_field_filter_models,220 'div_recurrent_start_fields_filters' => '#panel-filters-cateogories',221 // SELEC CATEGORY222 'select_fil_category' => '#select-fil-category',223 // SELECT BRANDS224 'select_fil_brands' => '#select-fil-brands',225 // SELECT MODELS226 'select_fil_models' => '#select-fil-models',227 // VIEWS RESULT LIST228 'div_recurrent_start_views_result_list' => '#content-start-views-results-list',229 // GO DETAILS230 // FILTER SELECT ACTION231 "select_filter_action_cat" => 'select.filter-action-cat',232 "select_filter_action_cat_id" => 'select#filter-action-cat-',233 "select_filter_action_mrc" => 'select.filter-action-mrc',234 "select_filter_action_mrc_id" => 'select#filter-action-mrc-',235 "select_filter_action_mdo" => 'select.filter-action-mdo',236 "select_filter_action_mdo_id" => 'select#filter-action-mdo-',237 // BUTTON FOUND238 'button_sem_search_action' => 'a.sem-search-action',239 'button_sem_search_action_id' => 'a#sem-search-action-',240 // VIEW DETAILS241 'link_sem_action' => 'a.sem-action',242 'link_sem_action_id' => 'a#sem-action-',243 // CONTENT TABLE SPECIFICATIONS244 'div_recurrent_table_specifications' => '#content_specifications',245 // CONTENT VEHICLE SLIDERç246 'div_recurrent_vehicle_slider_details' => '#content-vehicle-slider-details',247 // CONTENT WRAPPER MAP248 'div_recurrent_wrapper_map' => '#content_wrapper_map',249 // CONTETNE CAROUSEL250 'div_recurrent_corousel_vehicles' => '#content_carousel_vehicles',251 'div_recurrent_form_contact_by_model' => '#content_form_contact_by_model',252 // FORM COMTACT BY MODEL253 'div_recurrent_form_contact_by_model' => '#content_form_contact_by_model',254 'form_recurrent_contact_by_model_pre_owned' => '#form_sem_premium_contact_by_model',255 'input_contact_by_model_pre_owned_name' => '#sem_premium_by_model_contact_name',256 'input_contact_by_model_pre_owned_email' => '#sem_premium_by_model_contact_email',257 'input_contact_by_model_pre_owned_phone' => '#sem_premium_by_model_contact_phone',258 'input_contact_by_model_pre_owned_message' => '#sem_premium_by_model_contact_message',259 'send_contact_by_model_pre_owned' => '#sem_premium_contact_send_by_model',260261 // WORKSHOP262 '_start_workshop_content_body' => $start_workshop_content_body,263 '_start_workshop_content_body_name' => '#' . $start_workshop_content_body,264 '_start_workshop_content_brand' => $start_workshop_content_brand,265 '_start_workshop_content_brand_name' => '#' . $start_workshop_content_brand,266 '_start_workshop_content_agencies' => $start_workshop_content_agencies,267 '_start_workshop_content_agencies_name' => '#' . $start_workshop_content_agencies,268 // RENTAL269 '_start_rental_content_body' => $start_rental_content_body,270 '_start_rental_content_body_name' => '#' . $start_rental_content_body,271 '_start_rental_content_agencies' => $start_rental_content_agencies,272 '_start_rental_content_agencies_name' => '#' . $start_rental_content_agencies,273 // BLOG274 '_start_body_content_main' => $start_body_content_main,275 '_start_body_content_main_name' => '#' . $start_body_content_main,276 // BLOG BY POST277 '_start_flexslider' => $start_flexslider,278 '_start_flexslider_name' => '#' . $start_flexslider,279 'div_recurrent_blog_galery' => '#content-section-blog-galery',280281 // ABOUT US282 '_start_scroll_down' => $start_scroll_down,283 '_start_scroll_down_name' => '#' . $start_scroll_down,284285 '_start_section_hero_slider' => $start_section_hero_slider,286 '_start_section_hero_slider_name' => '#' . $start_section_hero_slider,287 '_start_duplicatable_table' => $start_duplicatable_table,288 '_start_duplicatable_table_name' => '#' . $start_duplicatable_table,289290 '_start_large_pad_land_mark' => $start_large_pad_land_mark,291 '_start_large_pad_land_mark_name' => '#' . $start_large_pad_land_mark,292 '_start_large_pad_feature_list' => $start_large_pad_feature_list,293 '_start_large_pad_feature_list_name' => '#' . $start_large_pad_feature_list,294295 // CONTACT296 // FORM CONTACT MAIN297 '_start_large_pad_contact_form' => $start_large_pad_contact_form,298 '_start_large_pad_contact_form_name' => '#' . $start_large_pad_contact_form,299 '_start_contact_main' => $start_contact_main,300 '_start_contact_main_name' => '#' . $start_contact_main,301 'div_recurrent_form_contact' => '#container-form-contact',302 // FIELDS FORM CONTACT MAIN303 'form_cam_form_contact_main' => '#cam-form-contact-main',304 'input_cam_contact_main_name' => '#cam-contact-main-name',305 'input_cam_contact_main_email' => '#cam-contact-main-email',306 'input_cam_contact_main_message' => '#cam-contact-main-message',307 //'input_cam_contact_main_concessionary' => '#cam-contact-main-concessionary',308 //'input_cam_contact_main_logo' => '#cam-contact-main-logo',309 'send_cam_contact_main_send' => '#cam-contact-main-send',310 // SECTION SEPARATOR311 '_start_section_separator' => $start_section_separator,312 '_start_section_separator_name' => '#' . $start_section_separator,313 // PRIVACY NOTICE314 '_start_article_wrapper' => $start_article_wrapper,315 '_start_article_wrapper_name' => '#' . $start_article_wrapper,316 // MOBILE MENU TOGGLE317 '_menu_toogle' => '#menu-toggle',318 '_menu_toogle_close' => '.menu-toggle-close',319 // CLICK GO SECTION320 'goSection_index' => '#go-index',321 'goSection_index_logo_resp' => '#go-home-logo-resp',322 'goSection_index_logo' => '#go-home-logo',323 'goSection_agencies_news' => '#go-agencies-news',324 'goSection_agencies_trucks' => '#go-agencies-trucks',325 'goSection_agencies_preowned' => '#go-agencies-preowned',326 'goSection_inventories_preowned' => '#go-inventories-preowned',327 'goSection_workshop' => '#go-workshop',328 'goSection_rental' => '#go-rental',329 'goSection_blog' => '#go-blog', ...

Full Screen

Full Screen

tempsNames.php

Source:tempsNames.php Github

copy

Full Screen

23function tempsNames() {4 return array(5 // NAVBAR6 'recurrent_start_site_navbar' => 'tmp_start_site_navbar',78 // SCROLDOWN9 'recurrent_start_scroll_down' => 'tmp_scroll_down',1011 // SECTION HOME12 // HERO CAROUSEL13 'recurrent_home_hero_slide_carousel' => 'tmp_section_home_hero_slide_carousel',14 // OUR BRANDS15 'recurrent_home_our_brands' => 'tmp_section_home_our_brands',16 // COUNTER GROUP17 'recurrent_home_group_counter' => 'tmp_section_home_group_counter',18 // FULL WIDTH FEATURES19 'recurrent_home_full_width_features' => 'tmp_section_home_full_width_features',20 // DEALER SEARCH GMAP21 'recurrent_home_dealer_search_gmap' => 'tmp_section_home_dealer_search_gmap',2223 // SECTION AGENCIES NEWS24 // UTILITY BAR BREADCRUMB25 'recurrent_agencies_news_start_utility_bar_breadcrumb' => 'tmp_section_agencies_news_start_utility_bar_breadcrumb',26 'recurrent_agencies_news_by_agencies_start_utility_bar_breadcrumb' => 'tmp_section_agencies_news_by_agencies_start_utility_bar_breadcrumb',27 'recurrent_agencies_news_by_sub_agencies_start_utility_bar_breadcrumb' => 'tmp_section_agencies_news_by_subagencies_start_utility_bar_breadcrumb',2829 'recurrent_agencies_news_start_large_pad_land_mark' => 'tmp_section_agencies_news_start_large_pad_land_mark',30 'recurrent_agencies_news_start_large_pad_brands' => 'tmp_section_agencies_news_start_large_pad_brands',31 'recurrent_agencies_news_start_categories' => 'tmp_section_agencies_news_start_categories',3233 // AGENCIES NEWS SUB AGENCIE34 'recurrent_agencies_news_start_fachada' => 'tmp_section_agencies_news_fachada',35 'recurrent_agencies_news_start_address' => 'tmp_section_agencies_news_address',36 'recurrent_agencies_news_start_map' => 'tmp_section_agencies_news_map',3738 // AGENCIES NEWS VIDEO STRIP39 'recurrent_agencies_news_by_agencies_video_strip_agencies' => 'tmp_section_agencies_news_by_agencies_video_strip_agencies',4041 // AGENCIES TRUCKS42 // UTILITY BAR BREADCRUMB43 'recurrent_agencies_trucks_start_utility_bar_breadcrumb' => 'tmp_section_agencies_trucks_start_utility_bar_breadcrumb',44 'recurrent_agencies_trucks_by_agencies_start_utility_bar_breadcrumb' => 'tmp_section_agencies_trucks_by_agencies_start_utility_bar_breadcrumb',45 'recurrent_agencies_trucks_by_sub_agencies_start_utility_bar_breadcrumb' => 'tmp_section_agencies_trucks_by_subagencies_start_utility_bar_breadcrumb',4647 'recurrent_agencies_trucks_start_large_pad_land_mark' => 'tmp_section_agencies_trucks_start_large_pad_land_mark',48 'recurrent_agencies_trucks_start_large_pad_brands' => 'tmp_section_agencies_trucks_start_large_pad_brands',49 'recurrent_agencies_trucks_start_categories' => 'tmp_section_agencies_trucks_start_categories',5051 // AGENCIES TRUCKS SUB AGENCIE52 'recurrent_agencies_trucks_start_fachada' => 'tmp_section_agencies_trucks_fachada',53 'recurrent_agencies_trucks_start_address' => 'tmp_section_agencies_trucks_address',54 'recurrent_agencies_trucks_start_map' => 'tmp_section_agencies_trucks_map',5556 // AGENCIES PRE-OWNED57 'recurrent_agencies_preowned_start_utility_bar_breadcrumb' => 'tmp_section_agencies_preowned_start_utility_bar_breadcreumb',58 'recurrent_agencies_preowned_by_agencie_start_utility_bar_breadcreumb' => 'tmp_section_agencies_preowned_by_agencie_start_utility_bar_breadcreumb',59 'recurrent_agencies_preowned_start_large_pad_land_mark' => 'tmp_section_agencies_preowned_start_large_pad_land_mark',60 'recurrent_agencies_preowned_start_large_pad_small_screen' => 'tmp_section_agencies_preowned_start_large_pad_small_screen',61 'recurrent_agencies_preowned_start_tabs_agencies' => 'tmp_section_agencies_preowned_start_tabs_agencies',62 'recurrent_agencies_preowned_start_fachada' => 'tmp_section_agencies_preowned_start_fachada',63 'recurrent_agencies_preowned_start_address' => 'tmp_section_agencies_preowned_start_address',64 'recurrent_agencies_preowned_start_map' => 'tmp_section_agencies_preowned_start_map',6566 // INVENTORIES PRE-OWNED67 'recurrent_inventories_preowned_start_utility_bar_breadcreumb' => 'tmp_section_inventories_preowned_start_utility_bar_breadcreumb',68 'recurrent_inventories_preowned_start_action_bar' => 'tmp_section_inventories_preowned_start_action_bar',69 //'recurrent_inventories_preowned_start_filter_section' => 'tmp_section_inventories_preowned_start_filter_section',70 'recurrent_inventories_preowned_start_panel_filters' => 'tmp_section_inventories_preowned_start_panel_filters',71 'recurrent_inventories_preowned_listing_results' => 'tmp_section_inventories_preowned_listing_results',72 'recurrent_inventories_preowned_views_results_list' => 'tmp_section_inventories_preowned_views_results_list',73 // SELECT FILTER74 'recurrent_inventories_preowned_select_filter_category' => 'tmp_section_inventories_preowned_select_filter_category',75 'recurrent_inventories_preowned_select_filter_brands' => 'tmp_section_inventories_preowned_select_filter_brands',76 'recurrent_inventories_preowned_select_filter_models' => 'tmp_section_inventories_preowned_select_filter_models',7778 // INVENTORIES PRE-OWNED DETAILS79 'recurrent_inventories_preowned_details_start_utility_bar_breadcreumb' => 'tmp_section_inventories_preowned_details_start_utility_bar_breadcreumb',80 'recurrent_inventories_preowned_details_single_vehicle_details' => 'tmp_section_inventories_preowned_details_single_vehicle_details',81 'recurrent_inventories_preowned_details_table_striped_specification' => 'tmp_section_inventories_preowned_details_table_striped_specification',82 'recurrent_inventories_preowned_detalis_vehicle_slider_details' => 'tmp_section_inventories_preowned_detalis_vehicle_slider_details',83 'recurrent_inventories_preowned_detalis_wrapper_map' => 'tmp_section_inventories_preowned_detalis_wrapper_map',84 'recurrent_inventories_preowned_details_carousel_vehicles' => 'tmp_section_inventories_preowned_details_carousel_vehicles',85 'recurrent_inventories_preowned_details_formsem_contact_by_model' => 'tmp_section_inventories_preowned_details_formsem_contact_by_model',8687 // WORKSHOP88 'recurrent_workshop_start_utility_bar_breadcrumb' => 'tmp_section_workshop_start_utility_bar_breadcrumb',89 'recurrent_workshop_start_large_pad_land_mark' => 'tmp_section_workshop_start_large_pad_land_mark',90 'recurrent_workshop_start_large_pad_brand' => 'tmp_section_workshop_start_large_pad_brand',91 'recurrent_workshop_start_image_block' => 'tmp_section_workshop_start_image_block',9293 // RENTAL94 'recurrent_rental_start_utility_bar_breadcrumb' => 'tmp_section_rental_start_utility_bar_breadcrumb',95 'recurrent_rental_start_large_pad_land_mark' => 'tmp_section_rental_start_large_pad_land_mark',96 'recurrent_rental_start_image_block' => 'tmp_section_rental_start_image_block',9798 // SECTION BLOG NEWS99 // UTILITY BAR BREADCRUMB100 'recurrent_blog_news_start_utility_bar_breadcrumb' => 'tmp_section_blog_news_start_utility_bar_breadcrumb',101 // START GRID HOLDER102 'recurrent_blog_news_start_grid_holder' => 'tmp_section_blog_news_start_grid_holder',103104 // SECTION BLOG BY NEWS105 // UTILITY BAR BREADCRUMB106 'recurrent_blog_by_news_start_utility_bar_breadcrumb' => 'tmp_section_blog_by_news_start_utility_bar_breadcrumb',107 // SINGLE POST108 'recurrent_blog_by_news_start_single_post' => 'tmp_section_blog_by_news_start_single_post',109 'recurrent_blog_by_news_start_single_post_galery' => 'tmp_section_blog_by_news_start_single_post_galery',110111 // ABOUT US112 'recurrent_about_us_start_hero_slider' => 'tmp_section_about_us_start_hero_slider',113 'recurrent_about_us_start_duplicatable_content' => 'tmp_section_about_us_start_duplicatable_content',114 'recurrent_about_us_start_large_pad_feature_list' => 'tmp_section_about_us_start_large_pad_feature_list',115 'recurrent_about_us_start_large_pad' => 'tmp_section_about_us_start_large_pad',116117 // UTILITY BAR BREACRUMB118 'recurrent_aboutus_start_utility_bar_breadcrumb' => 'tmp_section_aboutus_start_utility_bar_breadcrumb',119 'recurrent_aboutus_start_large_pad_land_mark' => 'tmp_section_aboutus_start_large_pad_land_mark',120 'recurrent_aboutus_start_large_pad_feature_list' => 'tmp_section_aboutus_start_large_pad_feature_list',121 'recurrent_aboutus_start_large_pad_contact_form' => 'tmp_section_aboutus_start_large_pad_contact_form',122 'recurrent_aboutus_start_contact_main' => 'tmp_section_aboutus_start_contact_main',123 'recurrent_aboutus_start_form_contact_main' => 'tmp_section_aboutus_start_form_contact_main',124125 // CONTACT126 // UTILITY BAR BREACRUMB127 'recurrent_contact_start_utility_bar_breadcrumb' => 'tmp_section_contact_start_utility_bar_breadcrumb',128 'recurrent_contact_start_large_pad_land_mark' => 'tmp_section_contact_start_large_pad_land_mark',129 'recurrent_contact_start_large_pad_feature_list' => 'tmp_section_contact_start_large_pad_feature_list',130 'recurrent_contact_start_large_pad_contact_form' => 'tmp_section_contact_start_large_pad_contact_form',131 'recurrent_contact_start_contact_main' => 'tmp_section_contact_start_contact_main',132 'recurrent_contact_start_form_contact_main' => 'tmp_section_contact_start_form_contact_main',133134 // PRIVACY NOTICE135 'recurrent_privacy_notice_start_utility_bar_breadcreumb' => 'tmp_section_privacy_notice_start_utility_bar_breadcrumb',136 'recurrent_privacy_notice_start_article_wrapper' => 'tmp_section_privacy_notice_start_article_wrapper',137 );138} ...

Full Screen

Full Screen

class.date_generator.inc.php

Source:class.date_generator.inc.php Github

copy

Full Screen

1<?php2 /* This class generates dates based on start date, end date,3 * repeat type(day, week, month, year) and repeat interval4 */56 class date_generator7 {89 private $start_date;10 private $end_date;11 private $period_start_date;12 private $period_end_date;13 private $repeat_type;14 private $repeat_interval;15 private $calendar_array = array();16 private $deadline_end_of_year;1718 public function __construct( $start_date, $end_date, $period_start_date, $period_end_date, $repeat_type, $repeat_interval )19 {20 static $config = array();2122 if(!$config)23 {24 $config = CreateObject('phpgwapi.config', 'controller')->read();25 }2627 $this->deadline_end_of_year = empty($config['deadline_end_of_year']) ? false : true;2829 $this->start_date = $start_date;30 $this->end_date = $end_date;31 $this->period_start_date = $period_start_date;32 $this->period_end_date = $period_end_date;33 $this->repeat_type = $repeat_type;34 $this->repeat_interval = $repeat_interval;3536 $this->generate_calendar();37 }3839 function generate_calendar()40 {41 $control_start_date = $this->find_control_start_date();42 $control_end_date = $this->end_date;4344 if ($control_end_date == null)45 {46 $control_end_date = $this->period_end_date;47 }48 /*49 _debug_array($control_start_date);50 _debug_array($control_end_date);51 */52 $period_start_date = $this->find_start_date_for_period($control_start_date);5354 $interval_date = $period_start_date;5556 while (($interval_date < $this->period_end_date) && ($interval_date <= $control_end_date))57 {58 $this->calendar_array[] = $interval_date;5960 if ($this->repeat_type == 0)61 {62 $interval_date = mktime(0, 0, 0, date("m", $interval_date), date("d", $interval_date) + $this->repeat_interval, date("Y", $interval_date));63 }64 else if ($this->repeat_type == 1)65 {66 $interval_date = mktime(0, 0, 0, date("m", $interval_date), date("d", $interval_date) + ($this->repeat_interval * 7), date("Y", $interval_date));67 }68 else if ($this->repeat_type == 2)69 {70 $month = date("m", $interval_date) + $this->repeat_interval;71 $year = date("Y", $interval_date);72 if ($month > 12)73 {74 $month = $month % 12;75 $year += 1;76 }7778 $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, $month, $year);79 $interval_date = mktime(0, 0, 0, $month, $num_days_in_month, $year);80 }81 else if ($this->repeat_type == 3)82 {83 $interval_date = mktime(0, 0, 0, date("m", $interval_date), date("d", $interval_date), date("Y", $interval_date) + $this->repeat_interval);84 }85 }86 }8788 public function find_control_start_date()89 {90 if ($this->repeat_type == 0)91 {92 $control_start_date = $this->start_date;93 }94 else if ($this->repeat_type == 1)95 {96 $control_start_date = $this->start_date;9798 while (date("l", $control_start_date) != "Sunday")99 {100 $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, date("m", $control_start_date), date("y", $control_start_date));101102 if ($num_days_in_month <= date("d", $control_start_date))103 {104 $control_start_date = mktime(0, 0, 0, date("m", $control_start_date) + 1, 1, date("Y", $control_start_date));105 }106 else107 {108 $control_start_date = mktime(0, 0, 0, date("m", $control_start_date), date("d", $control_start_date) + 1, date("Y", $control_start_date));109 }110 }111 }112 else if ($this->repeat_type == 2)113 {114 $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, date("m", $this->start_date), date("y", $this->start_date));115 $control_start_date = mktime(0, 0, 0, date("m", $this->start_date), $num_days_in_month, date("y", $this->start_date));116 }117 else if ($this->repeat_type == 3)118 {119// $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, 12, date("y", $this->start_date));120 $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, date("m", $this->start_date), date("y", $this->start_date));121// $control_start_date = mktime(0,0,0, 12, $num_days_in_month, date("y", $this->start_date));122 $control_start_year = date('y', $this->start_date);123 $period_start_year = date('y', $this->period_start_date);124 /**125 * In order to be able to place the deadline at the end of the year126 */127 if($control_start_year == $period_start_year)128 {129 $control_start_year -= 1;130 }131132// $control_start_date = mktime(0, 0, 0, date("m", $this->start_date), $num_days_in_month, date("y", $this->start_date));133 $control_start_date = mktime(0, 0, 0, date("m", $this->start_date), $num_days_in_month, $control_start_year);134 }135136 return $control_start_date;137 }138139 public function find_start_date_for_period( $trail_period_start_date )140 {141 while ($trail_period_start_date < $this->period_start_date)142 {143 if ($this->repeat_type == 0)144 {145 $trail_period_start_date = mktime(0, 0, 0, date("m", $trail_period_start_date), date("d", $trail_period_start_date) + $this->repeat_interval, date("Y", $trail_period_start_date));146 }147 else if ($this->repeat_type == 1)148 {149 $trail_period_start_date = mktime(0, 0, 0, date("m", $trail_period_start_date), date("d", $trail_period_start_date) + ($this->repeat_interval * 7), date("Y", $trail_period_start_date));150 }151 else if ($this->repeat_type == 2)152 {153 $month = date("m", $trail_period_start_date) + $this->repeat_interval;154 $year = date("Y", $trail_period_start_date);155156 if ($month > 12)157 {158 $month = $month % 12;159 $year += 1;160 }161162 $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, $month, $year);163 $trail_period_start_date = mktime(0, 0, 0, $month, $num_days_in_month, $year);164 }165 else if ($this->repeat_type == 3)166 {167 //set end date on year-control to last day of the year -> 12/31/<year>168169 if($this->deadline_end_of_year)170 {171 $trail_period_start_date = mktime(0, 0, 0, 12, 31, date("Y", $trail_period_start_date) + $this->repeat_interval);172 }173 else174 {175 $trail_period_start_date = mktime(0, 0, 0, date("m", $trail_period_start_date), date("d", $trail_period_start_date), date("Y", $trail_period_start_date) + $this->repeat_interval);176 }177 }178 }179 180 return $trail_period_start_date;181 }182183 public function get_dates()184 {185 return $this->calendar_array;186 } ...

Full Screen

Full Screen

start

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum;2use \mageekguy\atoum;3use \mageekguy\atoum;4use \mageekguy\atoum;5use \mageekguy\atoum;6use \mageekguy\atoum;7use \mageekguy\atoum;8use \mageekguy\atoum;9use \mageekguy\atoum;10use \mageekguy\atoum;11use \mageekguy\atoum;12use \mageekguy\atoum;13use \mageekguy\atoum;14use \mageekguy\atoum;15use \mageekguy\atoum;16use \mageekguy\atoum;17use \mageekguy\atoum;18use \mageekguy\atoum;19use \mageekguy\atoum;20use \mageekguy\atoum;

Full Screen

Full Screen

start

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum;2{3 public function testOnePlusOne()4 {5 ->integer(1 + 1)6 ->isIdenticalTo(2)7 ;8 }9}10PHP 5.4.4-14+deb7u3 (cli) (built: Sep 18 2013 15:16:35) 11Copyright (c) 1997-2013 The PHP Group12Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies13> PHP 5.4.4-14+deb7u3 (cli) (built: Sep 18 2013 15:16:35)

Full Screen

Full Screen

start

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum;2{3}4{5}6{7}8{9}10{11}12{13}14{15}16{17}18{19}20{21}22{23}24{25}26{27}28{29}30{31}32{33}34{35}36{37}38{39}40{41}42{43}44{45}46{47}48{49}50{51}52{53}

Full Screen

Full Screen

start

Using AI Code Generation

copy

Full Screen

1use mageekguy\atoum;2{3 public function foo()4 {5 return 'bar';6 }7}8{9 public function testFoo()10 {11 $this->string($this->newTestedInstance()->foo())->isEqualTo('bar');12 }13}14class #1 (1 test method) {15 public function testFoo() {}16}

Full Screen

Full Screen

start

Using AI Code Generation

copy

Full Screen

1use \mageekguy\atoum;2{3 public function testFunction()4 {5 $variable = 1;6 $this->integer($variable)->isGreaterThan(0);7 }8}9use \mageekguy\atoum;10{11 public function testFunction()12 {13 $variable = 1;14 $this->integer($variable)->isGreaterThan(0);15 }16}17use \mageekguy\atoum;18{19 public function testFunction()20 {21 $variable = 1;22 $this->integer($variable)->isGreaterThan(0);23 }24}25use \mageekguy\atoum;26{27 public function testFunction()28 {29 $variable = 1;30 $this->integer($variable)->isGreaterThan(0);31 }32}33use \mageekguy\atoum;34{35 public function testFunction()36 {37 $variable = 1;38 $this->integer($variable)->isGreaterThan(0);39 }40}41use \mageekguy\atoum;

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Atoum automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used methods in start

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful