https://github.com/PressForward/pressforward
Tip revision: 183bf049b5f98147f83e407762a14304cf5c3397 authored by dependabot[bot] on 04 September 2020, 03:16:15 UTC
Bump lodash.mergewith from 4.6.0 to 4.6.2 in /assets/stats-app
Bump lodash.mergewith from 4.6.0 to 4.6.2 in /assets/stats-app
Tip revision: 183bf04
nominate-this.tpl.php
<?php
if ( 'as_paragraph' == $context ) {
?>
<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 class="button" 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><br />
<!--
<div>
<h3><?php _e( 'Nominate This Extension', 'pf' ); ?></h3>
<p><?php _e( 'Nominate This now has an extension for Chrome with additional functionality.', 'pf' );?></p>
<p><a href="https://github.com/PressForward/PressForwardChromeExtension/releases" target="_blank"><?php _e( 'You can download this new extension at our GitHub repository.', 'pf' );?></a></p>
<p><?php _e( 'Once you have installed the extension, it needs your API keys.', 'pf' );?></p>
<p>
<?php _e( 'Click here to send the installed extension your API keys:', 'pf' );?><br />
<a class="button" id="pressforward-nt__setup-button" onclick=""><?php _e( 'Send API Keys to Extension', 'pf' ); ?></span></a> <br /><br />
<?php _e( 'Click here to regenerate API keys:', 'pf' );?><br />
<a class="button" id="pressforward-nt__regenerate-button" onclick=""><?php _e( 'Regenerate and send API Keys to Extension', 'pf' ); ?></span></a> <br />
</p>
</div>
</div>
-->
<?php
} elseif ( 'as_feed' == $context ) {
?>
<div class="pf-opt-group span5">
<div class="rss-box postbox">
<div class="handlediv"><br></div>
<h3 class="hndle"><span><?php _e( 'Nominate This', 'pf' ); ?></span></h3>
<div class="inside">
<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 class="button" 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>
</div>
</div>
<?php
} elseif ( 'as_feed_item' == $context && empty( $_GET['pc'] ) ) {
?>
<article class="feed-item entry nominate-this-preview">
<div class="box-controls">
<i class="icon-remove pf-item-remove remove-nom-this-prompt" id="remove_nominate_this_preview" title="Delete"></i>
</div>
<header>
<h1 class="item_title">
Nominate posts using PressForward's Bookmarklet
</h1>
</header>
<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="%1$s" class="%1$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 class="button" 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>
<?php
} elseif ( empty( $_GET['pc'] ) ) {
_e( 'Try Nominate This in PressForward\'s Tools menu.', 'pf' );
}