Migrating From Awesome Studio 1.x to 2.x

The detailed guide is coming soon.

 1.x 2.x
[aw2_set_local query_id='{{aw2_util token}}’ post_class='{{aw2_slug}}_post’ post_unique_class='{{aw2_util token}}’ /]:-[aw2.set module.post_class='{{aw2.get module.slug}}_post’ module.post_unique_class='{token}’ /]
[aw2_less] [/aw2_less]:-[aw2.client less] [/aw2.client]
.[aw2_local post_unique_class] {:-.[aw2.get module.post_class require_once='{module.post_class}’] {
[aw2_local html_id]:-[aw2.get module.html_id]
[aw2_local post_unique_class]:-[aw2.get module.post_unique_class]
[aw2_local post_class]:-[aw2.get module.post_class]
[aw2_local class]:-[aw2.get module.class]
[aw2_local title_class]:-[aw2.get module.title_class]
[aw2_local section_title default=”Default Value Goes Here” /]:-[aw2.get module.section_title default=”Default Value Goes Here” /]
[aw2_module slug=”tracking-input-fields”] [/aw2_module]:-[aw2.run modules.tracking-input-fields.run] [/aw2.run]
[aw2_local entry_into default=’Default Value Goes Here’]:-[aw2.get module.entry_into default=’Request a Demo’]
[aw2_ready_script] [/aw2_ready_script]:-[aw2.client ready] [/aw2.client]
[aw2_spa spa_activity=”core:run_script” lib=”spa_validate”] [/aw2_spa]:-[aw2.spa spa_activity=”core:run_script” lib=”spa_validate”] [/aw2.spa]
[aw2_query_posts part=main id='{{aw2_local query_id}}’]
{
“posts_per_page”: 6,
“post_type”: “asf_logos”,
“post_status”: “publish”,
“order”: “ASC”,
“orderby”: “menu_order ID”
}
[/aw2_query_posts]
:-[aw2.query posts_builder part=start]
{
“posts_per_page”: 6,
“post_type”: “post”,
“post_status”: “publish”,
“order”: “ASC”,
“orderby”: “menu_order ID”
}
[/aw2.query]
[aw2_query_posts part=tax_query not_empty='{{aw2_local type_slug}}’ id='{{aw2_local query_id}}’]
{
“taxonomy”: “logo_type”,
“terms”: “[aw2_local type_slug /]”,
“field”: “slug”
}
[/aw2_query_posts]
:-[aw2.query posts_builder part=tax_query not_empty='{module.category_term}’]
{
“taxonomy”: “category”,
“terms”: “[aw2.get module.category_term /]”,
“field”: “slug”
}
[/aw2.query]
[aw2_loop id='{{aw2_local query_id}}’]
<div class=”logo col-md-4 col-sm-6 no-padding”>
<div class=”logo-content”>
[aw2_if not_empty=”{{aw2_loop_value meta=single website_url}}”]<a class=”link” href=”[aw2_loop_value meta=single website_url]”>[/aw2_if]
<img class=”img-responsive” src=”[aw2_loop_value featured_image_url size=full /]” />
[aw2_if not_empty=”{{aw2_loop_value meta=single website_url}}”]</a>[/aw2_if]
</div>
</div>
[/aw2_loop]
:-[aw2.loop module.query.posts]
<div class=”logo col-md-4 col-sm-6 no-padding”>
<div class=”logo-content”>
[aw2.not_empty item.meta.website_url]<a class=”link” href=”[aw2.get item.meta.website_url]”>[/aw2.not_empty]
<img class=”img-responsive” src=”[aw2.get item.featured_image_url size=full]” />
[aw2.not_empty item.meta.website_url]</a>[/aw2.not_empty]
</div>
</div>
[/aw2.loop]
[aw2_call_func get_bloginfo p1=name]:-
To get Current Archive name on Archive page, we used to do
awesome2_library::setparam(‘current_archive_name’,$post_type);
:-Now we can access that directly in the modules:
[aw2.get wp_query.queried_object.name /]