|
<template name="act" value="add_action( '$HOOK$', array( $this, '$FUNCTION$' ) ); $END$" description="add_action OOP WordPress" toReformat="true" toShortenFQNames="true"> |
|
<variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="FUNCTION" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="PHP" value="true" /> |
|
</context> |
|
</template> |
|
<template name="actp" value="add_action( '$HOOK$', array( $this, '$FUNCTION$' ) ); $END$" description="add_action procedural WordPress" toReformat="true" toShortenFQNames="true"> |
|
<variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="FUNCTION" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="PHP" value="true" /> |
|
</context> |
|
</template> |
|
<template name="fil" value="add_filter( '$HOOK$', array( $this, '$FUNCTION$' ), 10 ); $END$" description="add_filter OOP WordPress" toReformat="true" toShortenFQNames="true"> |
|
<variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="FUNCTION" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="PHP" value="true" /> |
|
</context> |
|
</template> |
|
<template name="filp" value="add_filter( '$HOOK$', '$FUNCTION$', 10 ); $END$" description="add_filter procedural WordPress" toReformat="true" toShortenFQNames="true"> |
|
<variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="FUNCTION" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="PHP" value="true" /> |
|
</context> |
|
</template> |
|
<template name="php" value="<?php $END$ ?>" description="php tags with a new line" toReformat="true" toShortenFQNames="true"> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="phpfor" value="<?php for ( $EXP1$; $EXP2$; $EXP3$ ) : ?> $END$ <?php endfor; ?> " description="<?php for...endfor; ?>" toReformat="true" toShortenFQNames="true"> |
|
<variable name="EXP1" expression="phpVar" defaultValue=""$i=0"" alwaysStopAt="true" /> |
|
<variable name="EXP2" expression="" defaultValue=""$i<10"" alwaysStopAt="true" /> |
|
<variable name="EXP3" expression="" defaultValue=""$i++"" alwaysStopAt="true" /> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="phpfore" value="<?php foreach ( $ITERABLE$ as $VAR_VALUE$ ) : ?> $END$ <?php endforeach; ?> " description="<?php foreach...endforeach; ?>" toReformat="true" toShortenFQNames="true"> |
|
<variable name="ITERABLE" expression="phpVar" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="VAR_VALUE" expression="phpSuggestVariableName()" defaultValue=""$item"" alwaysStopAt="true" /> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="phpif" value="<?php if ( $COND$ ) : ?> $END$ <?php endif; ?> " description="<?php if... ?>" toReformat="true" toShortenFQNames="true"> |
|
<variable name="COND" expression="phpSuggestVariableName()" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="phpife" value="<?php if ( $COND$ ) : ?> $END$	 <?php else : ?> <?php endif; ?> " description="<?php if...endif; ?>" toReformat="true" toShortenFQNames="true"> |
|
<variable name="COND" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="phpwil" value="<?php while( $COND$ ) : ?> $END$ <?php endwhile; ?> " description="<?php while...endwile; ?>" toReformat="true" toShortenFQNames="true"> |
|
<variable name="COND" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="tt" value="__('$TEXT$','$TEXTDOMAIN$'); $END$" description="__('text','textdomain')" toReformat="true" toShortenFQNames="true"> |
|
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="TEXTDOMAIN" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="PHP" value="true" /> |
|
</context> |
|
</template> |
|
<template name="tte" value="_e('$TEXT$','$TEXTDOMAIN$'); $END$ " description="_e('text','textdomain')" toReformat="true" toShortenFQNames="true"> |
|
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<variable name="TEXTDOMAIN" expression="" defaultValue="" alwaysStopAt="true" /> |
|
<context> |
|
<option name="PHP" value="true" /> |
|
</context> |
|
</template> |
|
<template name="wpcont" value="<?php the_content(); ?>" description="the_content with php tags" toReformat="true" toShortenFQNames="true"> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="wpexce" value="<?php the_excerpt(); ?>" description="the_excerpt with php tags" toReformat="true" toShortenFQNames="true"> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="wplink" value="<?php the_permalink(); ?>" description="the_permalink with php tags" toReformat="true" toShortenFQNames="true"> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="wploop" value="<?php if(have_posts()) :?> 	<?php while(have_posts()) : the_post();?> 		$END$ 	<?php endwhile;?> <?php else :?> 	 <?php endif;?>" description="wodpress loop with php tags" toReformat="true" toShortenFQNames="true"> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
|
<template name="wptitle" value="<?php the_title(); ?>" description="the_title with php tags" toReformat="true" toShortenFQNames="true"> |
|
<context> |
|
<option name="HTML_TEXT" value="true" /> |
|
<option name="HTML" value="true" /> |
|
</context> |
|
</template> |
I'm shocked. Copying and pasting in a template group actually worked O_O. Thanks for sharing - helped me avoid manual labour quite a bit.