Home | History | Annotate | Download | only in PHP-SmartyPants-1.5.1e

Lines Matching refs:attr

66 function smarty_modifier_smartypants($text, $attr = NULL) {
67 return SmartyPants($text, $attr);
72 function SmartyPants($text, $attr = NULL, $ctx = NULL) {
76 $attr; # value of the smart_quotes="" attribute
78 if ($attr == NULL) $attr = $smartypants_attr;
99 if ($attr == "0") {
103 else if ($attr == "1") {
110 else if ($attr == "2") {
117 else if ($attr == "3") {
124 else if ($attr == "-1") {
129 $chars = preg_split('//', $attr);
223 function SmartQuotes($text, $attr = NULL, $ctx = NULL) {
227 $attr; # value of the smart_quotes="" attribute
229 if ($attr == NULL) $attr = $smartypants_attr;
233 if ($attr == 0) {
237 else if ($attr == 2) {
317 function SmartDashes($text, $attr = NULL, $ctx = NULL) {
321 $attr; # value of the smart_dashes="" attribute
323 if ($attr == NULL) $attr = $smartypants_attr;
328 if ($attr == 0) {
332 else if ($attr == 2) {
336 else if ($attr == 3) {
366 function SmartEllipses($text, $attr = NULL, $ctx = NULL) {
369 $attr; # value of the smart_ellipses="" attribute
371 if ($attr == NULL) $attr = $smartypants_attr;
373 if ($attr == 0) {