<commit_before><?php
$tr_module =  __($module);
$lang = $sf_user->getCulture();

if (!empty($custom_title_text))
{
    $title_text = trim($sf_data->getRaw('custom_title_text'));
}
else
{
    $title_text = __("Latest $module");
}

if (!isset($has_title_link))
{
    $has_title_link = true;
}
if ($has_title_link)
{
    if (!empty($custom_title_link))
    {
        $title_link = $sf_data->getRaw('custom_title_link');
    }
    else
    {
        $title_link =  "@default_index?module=$module";
    }
    
    if (!empty($custom_rss_link))
    {
        $rss_link = $sf_data->getRaw('custom_rss_link');
    }
    else
    {
        $rss_link = "@creations_feed?module=$module&lang=$lang";
    }
    
    if (!empty($custom_rss))
    {
        $rss = $sf_data->getRaw('custom_rss');
    }
    else
    {
        $rss = link_to('', $rss_link,
                       array('class' => 'home_title_right picto_rss',
                             'title' => __("Subscribe to latest $module creations"),
                             'rel' => 'nofollow'));
    }
}
else
{
    $rss = '';
}

if (!empty($custom_title))
{
    $title = $sf_data->getRaw('custom_title');
}
elseif ($has_title_link)
{<commit_msg>do not refer rss picto on mobile home, we are not displaying it<commit_after><?php
$tr_module =  __($module);
$lang = $sf_user->getCulture();

if (!empty($custom_title_text))
{
    $title_text = trim($sf_data->getRaw('custom_title_text'));
}
else
{
    $title_text = __("Latest $module");
}

if (!isset($has_title_link))
{
    $has_title_link = true;
}
if ($has_title_link)
{
    if (!empty($custom_title_link))
    {
        $title_link = $sf_data->getRaw('custom_title_link');
    }
    else
    {
        $title_link =  "@default_index?module=$module";
    }
    

    // no rss link in mobile version
    if (!c2cTools::mobileVersion())
    {
        if (!empty($custom_rss_link))
        {
            $rss_link = $sf_data->getRaw('custom_rss_link');
        }
        else
        {
            $rss_link = "@creations_feed?module=$module&lang=$lang";
        }

        if (!empty($custom_rss))
        {
            $rss = $sf_data->getRaw('custom_rss');
        }
        else
        {
            $rss = link_to('', $rss_link,
                           array('class' => 'home_title_right picto_rss',
                                 'title' => __("Subscribe to latest $module creations"),
                                 'rel' => 'nofollow'));
        }
    }
    else
    {
        $rss = '';
    }
}
else
{
    $rss = '';
}

if (!empty($custom_title))
{
    $title = $sf_data->getRaw('custom_title');
}
elseif ($has_title_link)
{
{'fraction_non_alphanumeric': 0.1662878787878788, 'fraction_numerical': 0.0003787878787878788, 'mean_word_length': 2.193470374848851, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1693538', 'n_tokens_mistral': 916, 'n_tokens_neox': 911, 'n_words': 142}