Templatetags¶
- firm_info.templatetags.firm_info.firm_contact(context, template_path)[source]¶
Renders the template which path is provided as param using FirmContact only instance serialized contact data.
- Parameters:
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the firm contact informations.
- Return type:
str
Usage:
{% load firm_info %} {% firm_contact "path/to/template.html" %}
- firm_info.templatetags.firm_info.firm_social_links(context, template_path)[source]¶
Renders the template which path is provided as param using all social network link objects serialized data related the only FirmContact instance.
- Parameters:
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the firm social networks links.
- Return type:
str
Usage:
{% load firm_info %} {% firm_social_links "path/to/template.html" %}
- firm_info.templatetags.firm_info.firm_description(context, template_path)[source]¶
Renders the template which path is provided as param using FirmContact only instance serialized description data.
- Parameters:
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the firm description.
- Return type:
str
Usage:
{% load firm_info %} {% firm_description "path/to/template.html" %}
- firm_info.templatetags.firm_info.firm_logos(context, template_path)[source]¶
Renders the firm logos using the specified template.
- Parameters:
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the firm logos.
- Return type:
str
Usage:
{% load firm_info %} {% firm_logos "path/to/template.html" %}
- firm_info.templatetags.firm_info.firm_social_shares(context, template_path)[source]¶
Renders the template which path is provided as param using all social network shares link objects serialized data related the only SocialSharing instance.
- Parameters:
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the firm social media shares.
- Return type:
str
Usage:
{% load firm_info %} {% firm_social_shares "path/to/template.html" %}
- firm_info.templatetags.firm_info.firm_tag_analytic(value=None)[source]¶
Filters the firm tag analytic value.
- Parameters:
value – The input value (not used).
- Returns:
The tag analytic value from the first Tracking object if it exists, otherwise an empty string.
- Return type:
str
Usage:
{% load firm_info %} {% firm_tag_analytic "path/to/template.html" %}
- firm_info.templatetags.firm_info.app_banner(context, app_type, template_path)[source]¶
Renders the app banner using the specified template and application type.
- Parameters:
app_type (str) – The application type.
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the app banner.
- Return type:
str
Usage:
{% load firm_info %} {% app_banner "path/to/template.html" %}
- firm_info.templatetags.firm_info.firm_complete_info(context, template_path)[source]¶
Renders the firm’s complete information using the specified template.
- Parameters:
template_path (str) – The path to the template file.
- Returns:
The rendered HTML output of the complete firm information.
- Return type:
str
Usage:
{% load firm_info %} {% firm_complete_info "path/to/template.html" %}