Example #1
0
    /**
     * Display function for Feeder panel
     */
    function display_feeder_builder()
    {
        echo 'Feeder. <br />';
        if (current_user_can('edit_posts')) {
            ?>
			<div class="tool-box">
				<h3 class="title"><?php 
            _e('Nominate This', 'pf');
            ?>
</h3>
				<p><?php 
            _e('Nominate This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.', 'pf');
            ?>
</p>

				<p><?php 
            _e('Use Nominate This to clip text, images and videos from any web page. Then edit and add more straight from Nominate This before you save or publish it in a post on your site.', 'pf');
            ?>
</p>
				<p class="description"><?php 
            _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.', 'pf');
            ?>
</p>
				<p class="pressthis"><a onclick="return false;" oncontextmenu="if(window.navigator.userAgent.indexOf('WebKit')!=-1||window.navigator.userAgent.indexOf('MSIE')!=-1)jQuery('.pressthis-code').show().find('textarea').focus().select();return false;" href="<?php 
            echo htmlspecialchars(pf_get_shortcut_link());
            ?>
"><span><?php 
            _e('Nominate This', 'pf');
            ?>
</span></a></p>
				<div class="pressthis-code" style="display:none;">
				<p class="description"><?php 
            _e('If your bookmarks toolbar is hidden: copy the code below, open your Bookmarks manager, create new bookmark, type Press This into the name field and paste the code into the URL field.', 'pf');
            ?>
</p>
				<p><textarea rows="5" cols="120" readonly="readonly"><?php 
            echo htmlspecialchars(pf_get_shortcut_link());
            ?>
</textarea></p>
				</div>
			</div>
			<?php 
        }
        ?>
<form method="post" action="options.php"><?php 
        //settings_fields(PF_SLUG . '_feeder_options');
        //$options = get_option(PF_SLUG . '_plugin_feeder_options');
        do_action('feeder_menu');
        ?>
<input type="submit" class="button-primary" value="<?php 
        _e('Save Options', 'pf');
        ?>
" />

			
			</form><?php 
    }
Example #2
0
/**
 * Echoes the Nominate This bookmarklet link
 *
 * @since 1.7
 */
function pf_shortcut_link()
{
    echo pf_get_shortcut_link();
}
				<div class="content">
					<div class="item_excerpt" id="excerpt1">
						<p>
							<?php 
    _e('Use Nominate This to pull in text, images and videos from any web page. 
									Then you can edit, add author and category before 
									you nominate or draft it in a post on your site.', 'pf');
    ?>
						</p>
						<p>
							<?php 
    printf(__('Drag the button up to your bookmark bar or <a href="%s" class="%s">click here to find out more</a>.', 'pf'), esc_url('admin.php?page=pf-tools'), esc_attr('remove-nom-this-prompt'));
    ?>
						</p>
						<p class="pressthis"><a onclick="return false;" oncontextmenu="if(window.navigator.userAgent.indexOf('WebKit')!=-1||window.navigator.userAgent.indexOf('MSIE')!=-1)jQuery('.pressthis-code').show().find('textarea').focus().select();return false;" href="<?php 
    echo htmlspecialchars(pf_get_shortcut_link());
    ?>
"><span><?php 
    _e('Nominate This', 'pf');
    ?>
</span></a></p>
						
					</div>
				</div>

				<footer>
					<p class="pubdate">This item will stay in place until deleted with the top button or the link is clicked.</p>
				</footer>

			</article>