Wiki Plume Community : DisplayTitle

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Display the title of a news with remove_numbers option / Afficher le titre d'une news avec l'option remove_numbers


By Pepper

In/Dans manager\frontinc\functions.php modify like this / modifier comme suit :

/**
 Display the title of a news.

 @proto function pxNewsTitle
 @param string s Substitution string ('%s')

*/

function pxNewsTitle($s='%s')
{
    */echo sprintf($s, $GLOBALS['_PX_render']['m']->news->f('title'));*/    <- Old Line / Ancienne Ligne

    $title = $GLOBALS['_PX_render']['m']->news->f('title');
    $remove_numbers = $GLOBALS['_PX_render']['m']->getParam('remove_numbers');
    if ($remove_numbers) $title = px_removeNumbers($title);
    echo sprintf($s, $title);
} 
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.1
Page was generated in 0.1315 seconds