Skip to content

Instantly share code, notes, and snippets.

@JayWood
Created August 18, 2014 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayWood/cb3ad2f8da610ee2b475 to your computer and use it in GitHub Desktop.
Save JayWood/cb3ad2f8da610ee2b475 to your computer and use it in GitHub Desktop.
WordTwit Error
<div id="wt-tags-box" class="wt-widget-bottom" <?php if ( wordtwit_post_box_cookie_check( 'wt-tags' ) ) { echo "style='display:none'"; } ?>>
<h4 class="wt-h4"><?php _e( "Hashtags", "wordtwit-pro" ); ?></h4>
<div class="wt-automatic">
<ul class="tagchecklist">
<?php if ( wordtwit_post_has_hash_tags() ) { ?>
<?php foreach( wordtwit_get_post_hash_tags() as $tag ) { ?>
<li id="<?php echo $tag; ?>-hashtag"><a href="#" class="hash-delete">X</a><span><?php echo $tag; ?></span></li>
<?php } ?>
<?php } ?>
</ul>
<p>
<input type="text" id="wt-add-hashtag" name="wt-add-hashtag" class="newtag" size="24" placeholder="<?php _e( "Add Hashtags", "wordtwit-pro" ); ?>&hellip;" />
<input type="button" class="button" value="<?php _e( "Add", "wordtwit-pro" ); ?>" />
</p>
<p class="howto"><?php _e( "Separate multiple hashtags with commas", "wordtwit-pro" ); ?></p>
<p><a href="#" id="hashtag-toggle"><?php _e( "Choose from recent Hashtags", "wordtwit-pro" ); ?> &raquo;</a></p>
<?php $hash_tags = wordtwit_get_recent_hash_tags(); ?>
<ul id="hashtag-cloud" <?php if ( !isset( $_COOKIE['wordtwit-pro-hashcloud' ] ) ) { echo "style='display:none'"; } else { echo 'class="open"';} ?>>
<?php if ( $hash_tags && count( $hash_tags ) ) { ?>
<?php foreach( $hash_tags as $name => $tag ) { ?>
<li class="<?php echo $name; ?>-hashtag">
<span class="name"><?php echo $name; ?></span><span class="count"><?php echo $tag->count; ?></span>
</li>
<?php } ?>
<?php } ?>
</ul>
<br class="clearer" />
</div>
<div class="wt-manual" style="display:none">
<p><?php _e( "Tweet mode is manual", "wordtwit-pro" ); ?>.</p>
<p><?php _e( "Reset to Automatic to re-enable hashtags", "wordtwit-pro" ); ?>.</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment