wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
 * Show a box with some dontate-links and stuff
 */
Show a box with some dontate-links and stuff
Show a box with some dontate - links and stuff
function cms_tpv_show_annoying_box() {
	if ( isset($_GET["action"]) && "cms_tpv_remove_annoying_box" == $_GET["action"] ) {
		$show_box = 0;
		update_option('cms_tpv_show_annoying_little_box', $show_box);
	} else {
		$show_box = get_option('cms_tpv_show_annoying_little_box', 1);
	}
	if ($show_box) {
		?>
		<div class="cms_tpv_annoying_little_box">
			<h3><?php _e('Thanks for using my plugin', 'cms-tree-page-view') ?></h3>
			<p class="cms_tpv_annoying_little_box_gravatar"><a href="https://twitter.com/eskapism"><?php echo get_avatar("par.thernstrom@gmail.com", '64'); ?></a></p>
			<p><?php _e('Hi there! I just wanna says thanks for using my plugin. I hope you like it as much as I do.', 'cms-tree-page-view') ?></p>
			<p class="cms_tpv_annoying_little_box_author"><a href="https://twitter.com/eskapism"><?php _e('/Pär Thernström - plugin creator', 'cms-tree-page-view') ?></a></p>
			<h3><?php _e('I like this plugin<br>– how can I thank you?', 'cms-tree-page-view') ?></h3>
			<p><?php _e('There are serveral ways for you to show your appreciation:', 'cms-tree-page-view') ?></p>
			<ul>
				<li><?php printf(__('<a href="%1$s">Give it a nice review</a> over at the WordPress Plugin Directory', 'cms-tree-page-view'), "http://wordpress.org/support/view/plugin-reviews/cms-tree-page-view") ?></li>
				<li><?php printf(__('<a href="%1$s">Give a donation</a> – any amount will make me happy', 'cms-tree-page-view'), "http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox") ?></li>
				<li><?php printf(__('<a href="%1$s">Post a nice tweet</a> or make a nice blog post about the plugin', 'cms-tree-page-view'), "https://twitter.com/intent/tweet?text=I really like the CMS Tree Page View plugin for WordPress http://wordpress.org/extend/plugins/cms-tree-page-view/") ?></li>
			</ul>
			<h3><?php _e('Support', 'cms-tree-page-view') ?></h3>
			<p><?php printf(__('Please see the <a href="%1$s">support forum</a> for help.', 'cms-tree-page-view'), "http://wordpress.org/support/plugin/cms-tree-page-view") ?></p>
			<p class="cms_tpv_annoying_little_box_close">
				<a href="<?php echo esc_url( add_query_arg("action", "cms_tpv_remove_annoying_box") ) ?>">
					<?php _e("Hide until next upgrade", 'cms-tree-page-view') ?>
				</a>
			</p>
		</div>
		<?php
	}
}
function cms_tpv_show_annoying_box ( ) { if ( isset ( $ _GET [ " action " ] ) && " cms_tpv_remove_annoying_box " == $ _GET [ " action " ] ) { $ show_box = 0 ; update_option ( 'cms_tpv_show_annoying_little_box' , $ show_box ) ; } else { $ show_box = get_option ( 'cms_tpv_show_annoying_little_box' , 1 ) ; } if ( $ show_box ) { ?> <div class="cms_tpv_annoying_little_box">

			<h3> <?php _e ( 'Thanks for using my plugin' , 'cms-tree-page-view' ) ?> </h3>
			<p class="cms_tpv_annoying_little_box_gravatar"><a href="https://twitter.com/eskapism"> <?php echo get_avatar ( " par.thernstrom@gmail.com " , '64' ) ; ?> </a></p>
			<p> <?php _e ( 'Hi there! I just wanna says thanks for using my plugin. I hope you like it as much as I do.' , 'cms-tree-page-view' ) ?> </p>
			<p class="cms_tpv_annoying_little_box_author"><a href="https://twitter.com/eskapism"> <?php _e ( '/Pär Thernström - plugin creator',  ' ms-tree-page-view')  ? </ a></p>

			<h3> <?php _e ( 'I like this plugin<br>– how can I thank you?',  ' ms-tree-page-view')  ? </ h3>
			<p> <?php _e ( 'There are serveral ways for you to show your appreciation:' , 'cms-tree-page-view' ) ?> </p>
			<ul>
				<li> <?php printf ( __ ( '<a href="%1$s">Give it a nice review</a> over at the WordPress Plugin Directory' , 'cms-tree-page-view' ) , " http://wordpress.org/support/view/plugin-reviews/cms-tree-page-view " ) ?> </li>
				<li> <?php printf ( __ ( '<a href="%1$s">Give a donation</a> – any amount will make me happy',  ' ms-tree-page-view'), " t tp://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=banner&utm_campaign=promobox") ? </ li>
				<li> <?php printf ( __ ( '<a href="%1$s">Post a nice tweet</a> or make a nice blog post about the plugin' , 'cms-tree-page-view' ) , " https://twitter.com/intent/tweet?text=I really like the CMS Tree Page View plugin for WordPress http://wordpress.org/extend/plugins/cms-tree-page-view/ " ) ?> </li>
			</ul>

			<h3> <?php _e ( 'Support' , 'cms-tree-page-view' ) ?> </h3>
			<p> <?php printf ( __ ( 'Please see the <a href="%1$s">support forum</a> for help.' , 'cms-tree-page-view' ) , " http://wordpress.org/support/plugin/cms-tree-page-view " ) ?> </p>

			<p class="cms_tpv_annoying_little_box_close">
				<a href=" <?php echo esc_url ( add_query_arg ( " action " , " cms_tpv_remove_annoying_box " ) ) ?> ">
					 <?php _e ( " Hide until next upgrade " , 'cms-tree-page-view' ) ?> </a>
			</p>
		</div>
		 <?php } }
Show a box with some dontate-links and stuff
Show a box with some dontate - links and stuff
//update_option('cms_tpv_show_annoying_little_box', 1); // enable this to show box while testing