Hello,
I am looking for some guidance on typogrifying my node title inside the template. Specifically, I can already format ampersands, but I'm still trying to figure out how to make curly quotes.

  <?php
  module_load_include('class.php', 'typogrify');
  $title_typogrified = Typogrify::amp($title);
  ?>

What module and function do I need to use to format for curly quotes?

Thank you. Patrick

Comments

mikl’s picture

The curly quotes comes via the SmartyPants function in smartypants.php. You could call that, but I'd recommend you set up an input format for the purpose instead and call it via the check_markup function, since that will cache the filtered result. This can be very beneficial, considering the heavy processing that's done in Typogrify, plus it'll be a lot more configurable.

mikl’s picture

Status: Active » Fixed
funkytraffic’s picture

Assigned: Unassigned » funkytraffic

Sorry, but I donnot understand how to typogrify titels? Could you give a step by step instruction.

I am not very deep into coding.

Where put what?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.