Changeset 1334347
- Timestamp:
- 01/23/2016 11:43:35 AM (10 years ago)
- Location:
- expresscurate/trunk
- Files:
-
- 17 added
- 8 deleted
- 9 edited
-
ExpressCurate.php (modified) (1 diff)
-
ExpressCurate_Actions.php (modified) (25 diffs)
-
ExpressCurate_FeedManager.php (modified) (3 diffs)
-
css/expresscurate.css (modified) (7 diffs)
-
js/Buttons.js (deleted)
-
js/Dialog.js (deleted)
-
js/bookmarks.js (deleted)
-
js/editor (added)
-
js/editor/dialog.js (added)
-
js/editor/tinyMCE.js (added)
-
js/feed/contentFeed.js (deleted)
-
js/feed/feedSettings.js (deleted)
-
js/feedManager (added)
-
js/feedManager/bookmarks.js (added)
-
js/feedManager/feed.js (added)
-
js/feedManager/rss.js (added)
-
js/feedManager/topSources.js (added)
-
js/keywords/SEOControlCenter.js (deleted)
-
js/keywords/keywordUtils.js (added)
-
js/keywords/keywords.js (added)
-
js/settings.js (added)
-
js/socialPostWidget.js (deleted)
-
js/sourceCollection.js (deleted)
-
js/support.js (added)
-
js/utils.js (added)
-
js/widgets (added)
-
js/widgets/seoControlCenter.js (added)
-
js/widgets/socialPost.js (added)
-
js/widgets/sources.js (added)
-
readme.txt (modified) (2 diffs)
-
templates/bookmarks.php (modified) (9 diffs)
-
templates/content_feed_archive.php (modified) (8 diffs)
-
templates/faq.php (modified) (3 diffs)
-
templates/feed_list.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
expresscurate/trunk/ExpressCurate.php
r1319447 r1334347 5 5 Plugin URI: http://www.expresscurate.com/products 6 6 Description: ExpressCurate plugin is a content curation tool for WordPress. It enables you to create and publish high quality content within minutes. 7 Version: 2.1. 57 Version: 2.1.6 8 8 Author: ExpressCurate 9 9 Author URI: http://www.expresscurate.com -
expresscurate/trunk/ExpressCurate_Actions.php
r1319447 r1334347 99 99 add_action('wp_head', array(&$this, 'advanced_seo_update_canonical_url')); 100 100 add_filter('wp_title', array(&$this, 'advanced_seo_update_title')); 101 if ($_GET['page'] == "expresscurate_feed_list"){102 update_option('unseen_feeds_count', 0);103 update_option('feedpage_last_time_opened', date('Y-m-d H:i:s',time()));101 if ($_GET['page'] == "expresscurate_feed_list") { 102 update_option('unseen_feeds_count', 0); 103 update_option('feedpage_last_time_opened', date('Y-m-d H:i:s', time())); 104 104 } 105 105 … … 281 281 }*/ 282 282 283 public function facebook_post($atts, $content="")284 { 285 /* $atts = shortcode_atts(array(286 'src' => ' '287 ), $atts, 'facebook');*/288 $href =$content;289 $iframe ='<div id="fb-root"></div>283 public function facebook_post($atts, $content = "") 284 { 285 /* $atts = shortcode_atts(array( 286 'src' => ' ' 287 ), $atts, 'facebook');*/ 288 $href = $content; 289 $iframe = '<div id="fb-root"></div> 290 290 <script>(function(d, s, id) { 291 291 var js, fjs = d.getElementsByTagName(s)[0]; … … 295 295 fjs.parentNode.insertBefore(js, fjs); 296 296 }(document, "script", "facebook-jssdk"));</script> 297 <div class="fb-post" data-href="' .$href.'" data-width="100%"></div>';297 <div class="fb-post" data-href="' . $href . '" data-width="100%"></div>'; 298 298 299 299 return $iframe; … … 346 346 { 347 347 $pluginUrl = plugin_dir_url(__FILE__); 348 $plugin_array['expresscurate'] = $pluginUrl . 'js/ Buttons.js';348 $plugin_array['expresscurate'] = $pluginUrl . 'js/editor/tinyMCE.js'; 349 349 return $plugin_array; 350 350 } … … 394 394 } 395 395 396 public function edit_post_permalink(){ 396 public function edit_post_permalink() 397 { 397 398 global $post; 398 399 ?> 399 400 <script> 400 jQuery(document).ready(function () {401 jQuery('#titlediv').append('<input type="hidden" name="post_old_permalink" value="<?php echo (get_permalink($post->ID)?get_permalink($post->ID):''); ?>">');401 jQuery(document).ready(function () { 402 jQuery('#titlediv').append('<input type="hidden" name="post_old_permalink" value="<?php echo(get_permalink($post->ID) ? get_permalink($post->ID) : ''); ?>">'); 402 403 }); 403 404 </script> … … 443 444 <img src="<?php echo plugin_dir_url(__FILE__); ?>/images/loading.gif" id="img-load"/> 444 445 </div> 445 <?php446 <?php 446 447 } 447 448 } … … 457 458 <?php include(sprintf("%s/templates/dialog.php", dirname(__FILE__))); ?> 458 459 </div> 459 <?php 460 } 461 } 462 463 public function add_confirm_dialogs(){ 460 <?php 461 } 462 } 463 464 public function add_confirm_dialogs() 465 { 464 466 ?> 465 <div id="expresscurate_delete_dialog" class="expresscurate_dialog" title="Confirm Delete"></div>466 <!-- <div id="expresscurate_remove_dialog" class="expresscurate_dialog" title="Confirm Permanent Remove"></div>-->467 <!--<div id="expresscurate_restore_dialog" class="expresscurate_dialog" title="Confirm Restore"></div>-->467 <div id="expresscurate_delete_dialog" class="expresscurate_dialog" title="Confirm Delete"></div> 468 <!-- <div id="expresscurate_remove_dialog" class="expresscurate_dialog" title="Confirm Permanent Remove"></div>--> 469 <!--<div id="expresscurate_restore_dialog" class="expresscurate_dialog" title="Confirm Restore"></div>--> 468 470 <?php 469 471 } … … 710 712 if ($defined_tags && count($defined_tags)) { 711 713 foreach ($defined_tags as $defined_tag) { 712 $defined_tag_insert = trim($defined_tag);714 $defined_tag_insert = trim($defined_tag); 713 715 //adding defined tag to post tags if tag exists in posttitle or post content 714 preg_match("/(?!<\w)(?=[^>]*(<|$))" . $defined_tag_insert . "(\W|$)/i", $post_content, $tag_in_content);716 preg_match("/(?!<\w)(?=[^>]*(<|$))" . $defined_tag_insert . "(\W|$)/i", $post_content, $tag_in_content); 715 717 if ((isset($tag_in_content[0]) || strpos($post->title, $defined_tag_insert)) && !in_array($defined_tag_insert, $post_tags) && !in_array($defined_tag_insert, $ptags)) { 716 718 $ptags[] = $defined_tag_insert; … … 1166 1168 self::PLUGIN_NAME . ' Settings', self::PLUGIN_NAME, 'manage_options', 'expresscurate_settings', array(&$this, 'plugin_settings_page') 1167 1169 ); 1168 $unseen_feeds_count = get_option('unseen_feeds_count')?get_option('unseen_feeds_count'):0;1169 $content_feed_label = sprintf( __( 'Content Feed %s' ),"<span class='awaiting-mod count-$unseen_feeds_count'><span class='$unseen_feeds_count'>$unseen_feeds_count </span></span>");1170 $unseen_feeds_count = get_option('unseen_feeds_count') ? get_option('unseen_feeds_count') : 0; 1171 $content_feed_label = sprintf(__('Content Feed %s'), "<span class='awaiting-mod count-$unseen_feeds_count'><span class='$unseen_feeds_count'>$unseen_feeds_count </span></span>"); 1170 1172 add_menu_page(self::PLUGIN_NAME, self::PLUGIN_NAME, 'edit_posts', 'expresscurate', array(&$this, 'show_dashboard'), '', '9.95458'); 1171 1173 add_submenu_page('expresscurate', 'Content Feed', $content_feed_label, 'edit_posts', 'expresscurate_feed_list', array(&$this, 'show_feed_list'), ''); … … 1260 1262 <?php include(sprintf("%s/templates/widget.php", dirname(__FILE__))); ?> 1261 1263 </div> 1262 <?php1264 <?php 1263 1265 } 1264 1266 … … 1271 1273 1272 1274 1273 <?php1275 <?php 1274 1276 } 1275 1277 … … 1280 1282 <?php include(sprintf("%s/templates/social_posts_widget.php", dirname(__FILE__))); ?> 1281 1283 </div> 1282 <?php1284 <?php 1283 1285 } 1284 1286 … … 1289 1291 <?php include(sprintf("%s/templates/sources_coll_widget.php", dirname(__FILE__))); ?> 1290 1292 </div> 1291 <?php1293 <?php 1292 1294 } 1293 1295 … … 1639 1641 { 1640 1642 $pluginUrl = plugin_dir_url(__FILE__); 1641 wp_enqueue_script('expresscurate_utils', $pluginUrl . 'js/Utils.js', array('jquery', 'masonry', 'jquery-ui-sortable', 'wp-util')); 1642 wp_enqueue_script('expresscurate_dialog', $pluginUrl . 'js/Dialog.js', array('jquery', 'jquery-ui-core', 'jquery-ui-dialog')); 1643 wp_enqueue_script('expresscurate_settings', $pluginUrl . 'js/Settings.js', array('jquery', 'jquery-ui-autocomplete')); 1644 wp_enqueue_script('expresscurate_source_collection', $pluginUrl . 'js/sourceCollection.js', array('jquery')); 1645 wp_enqueue_script('expresscurate_social_post_widget', $pluginUrl . 'js/socialPostWidget.js', array('jquery')); 1646 wp_enqueue_script('expresscurate_bookmarks', $pluginUrl . 'js/bookmarks.js', array('jquery', 'masonry')); 1647 wp_enqueue_script('expresscurate_feed_settings', $pluginUrl . 'js/feed/feedSettings.js', array('jquery')); 1648 wp_enqueue_script('expresscurate_content_feed', $pluginUrl . 'js/feed/contentFeed.js', array('jquery', 'masonry')); 1649 1650 wp_enqueue_script('expresscurate_keyword_utils', $pluginUrl . 'js/keywords/KeywordUtils.js', array('jquery')); 1651 wp_enqueue_script('expresscurate_keywords', $pluginUrl . 'js/keywords/Keywords.js', array('jquery', 'jquery-ui-core')); 1652 wp_enqueue_script('expresscurate_seo_control_center', $pluginUrl . 'js/keywords/SEOControlCenter.js', array('jquery', 'jquery-ui-draggable', 'jquery-ui-droppable')); 1653 // 1643 //$currentPage = $_GET['page']; 1644 global $pagenow; 1645 1646 /*helper*/ 1647 wp_enqueue_script('expresscurate_utils', $pluginUrl . 'js/utils.js', array('jquery', 'masonry', 'jquery-ui-sortable', 'wp-util')); 1648 1649 if ('edit.php' == $pagenow || 'post.php' == $pagenow || 'post-new.php' == $pagenow) { 1650 wp_enqueue_script('expresscurate_keyword_utils', $pluginUrl . 'js/keywords/keywordUtils.js', array('jquery')); 1651 /*widgets*/ 1652 wp_enqueue_script('expresscurate_seo_control_center', $pluginUrl . 'js/widgets/seoControlCenter.js', array('jquery', 'jquery-ui-draggable', 'jquery-ui-droppable')); 1653 wp_enqueue_script('expresscurate_source_collection', $pluginUrl . 'js/widgets/sources.js', array('jquery')); 1654 wp_enqueue_script('expresscurate_social_post_widget', $pluginUrl . 'js/widgets/socialPost.js', array('jquery')); 1655 /*editor*/ 1656 wp_enqueue_script('expresscurate_dialog', $pluginUrl . 'js/editor/dialog.js', array('jquery', 'jquery-ui-core', 'jquery-ui-dialog')); 1657 } 1658 wp_enqueue_script('expresscurate_settings', $pluginUrl . 'js/settings.js', array('jquery', 'jquery-ui-autocomplete')); 1659 wp_enqueue_script('expresscurate_content_feed', $pluginUrl . 'js/feedManager/feed.js', array('jquery', 'masonry', 'jquery-ui-dialog')); 1660 wp_enqueue_script('expresscurate_bookmarks', $pluginUrl . 'js/feedManager/bookmarks.js', array('jquery', 'masonry')); 1661 wp_enqueue_script('expresscurate_keyword_utils', $pluginUrl . 'js/keywords/keywordUtils.js', array('jquery')); 1662 wp_enqueue_script('expresscurate_keywords', $pluginUrl . 'js/keywords/keywords.js', array('jquery', 'jquery-ui-core')); 1663 wp_enqueue_script('expresscurate_top_sources', $pluginUrl . 'js/feedManager/topSources.js', array('jquery')); 1664 wp_enqueue_script('expresscurate_support', $pluginUrl . 'js/support.js', array('jquery')); 1665 wp_enqueue_script('expresscurate_rss', $pluginUrl . 'js/feedManager/rss.js', array('jquery')); 1666 1667 1654 1668 wp_enqueue_style('texpresscurate', $pluginUrl . 'css/expresscurate.css'); 1655 1669 /* wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css'); */ … … 1670 1684 public static function getCurationNews($url = self::NEWS_FEED_URL) 1671 1685 { 1672 libxml_disable_entity_loader(false); 1673 $rss = new DOMDocument('1.0', 'UTF-8'); 1686 // pull content 1687 $lookup_url = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=-1&q=" . urlencode($url); 1688 $htmlparser = new ExpressCurate_HtmlParser($lookup_url); 1689 $res = $htmlparser->download(); 1690 // decode and collect 1691 $result = json_decode($res, true); 1674 1692 $feed = array(); 1675 if (ini_get('allow_url_fopen') && $rss->load($url, LIBXML_NOWARNING) === true) { 1676 foreach ($rss->getElementsByTagName('item') as $i => $node) { 1677 $item = array( 1678 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 1679 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 1680 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 1681 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, 1682 ); 1683 array_push($feed, $item); 1684 if ($i == self::NEWS_FEED_COUNT) { 1685 break; 1686 } 1687 } 1688 } 1693 $feedManager = new ExpressCurate_FeedManager(); 1694 $feedManager->collect_feed($result, array(), $feed, 'feed'); 1695 1689 1696 return $feed; 1690 1697 } … … 1726 1733 <?php include(sprintf("%s/templates/dashboard/welcome_widget.php", dirname(__FILE__))); ?> 1727 1734 </div> 1728 <?php1735 <?php 1729 1736 } 1730 1737 … … 1735 1742 <?php include(sprintf("%s/templates/dashboard/keywords_widget.php", dirname(__FILE__))); ?> 1736 1743 </div> 1737 <?php1744 <?php 1738 1745 } 1739 1746 … … 1744 1751 <?php include(sprintf("%s/templates/dashboard/smart_publishing_widget.php", dirname(__FILE__))); ?> 1745 1752 </div> 1746 <?php1753 <?php 1747 1754 } 1748 1755 … … 1753 1760 <?php include(sprintf("%s/templates/dashboard/social_publishing_widget.php", dirname(__FILE__))); ?> 1754 1761 </div> 1755 <?php1762 <?php 1756 1763 } 1757 1764 … … 1762 1769 <?php include(sprintf("%s/templates/dashboard/feed_widget.php", dirname(__FILE__))); ?> 1763 1770 </div> 1764 <?php1771 <?php 1765 1772 } 1766 1773 … … 1771 1778 <?php include(sprintf("%s/templates/dashboard/bookmarks_widget.php", dirname(__FILE__))); ?> 1772 1779 </div> 1773 <?php1780 <?php 1774 1781 } 1775 1782 … … 1780 1787 <?php include(sprintf("%s/templates/dashboard/keywords_interest_over_time_widget.php", dirname(__FILE__))); ?> 1781 1788 </div> 1782 <?php1789 <?php 1783 1790 } 1784 1791 … … 1789 1796 <?php include(sprintf("%s/templates/dashboard/keywords_related_topics_widget.php", dirname(__FILE__))); ?> 1790 1797 </div> 1791 <?php1798 <?php 1792 1799 } 1793 1800 … … 1798 1805 <?php include(sprintf("%s/templates/dashboard/search_widget.php", dirname(__FILE__))); ?> 1799 1806 </div> 1800 <?php1807 <?php 1801 1808 } 1802 1809 … … 1849 1856 } 1850 1857 1851 if (ExpressCurate_HtmlParser::isSafeMode() || strlen(ini_get('open_basedir')) !=0) {1858 if (ExpressCurate_HtmlParser::isSafeMode() || strlen(ini_get('open_basedir')) != 0) { 1852 1859 echo '<div class="update-nag"> 1853 1860 For the plugin to perform properly make sure those settings on your server in the following states.</br> -
expresscurate/trunk/ExpressCurate_FeedManager.php
r1319447 r1334347 449 449 } 450 450 451 p rivate function collect_feed($result, $deleted_urls, &$feed_array, $type = 'feed', $date = false, &$unseen_feeds)451 public function collect_feed($result, $deleted_urls, &$feed_array, $type = 'feed', $date = false, &$unseen_feeds = null) 452 452 { 453 453 $feeds = array(); … … 752 752 $this->collectBookmark($bookmarks, $item); 753 753 754 $result[$bookmarkURL]['status'] = 'success';754 $result[$bookmarkURL]['status'] = 'success'; 755 755 } 756 756 } … … 968 968 { 969 969 $bookmarks = get_option('expresscurate_bookmarks', ''); 970 if (isset($_REQUEST['action']) && $_REQUEST['action'] == "expresscurate_bookmarks_get"){970 if (isset($_REQUEST['action']) && $_REQUEST['action'] == "expresscurate_bookmarks_get") { 971 971 echo $bookmarks; 972 972 die; 973 } 974 else { 973 } else { 975 974 if ($bookmarks) { 976 975 $bookmarks = json_decode($bookmarks, true); -
expresscurate/trunk/css/expresscurate.css
r1319447 r1334347 4 4 src: url('fonts/open-sans/OpenSans-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans/OpenSans-Regular.ttf') format('truetype'); 5 5 } 6 7 6 @font-face { 8 7 font-family: OpenSans-Light; … … 10 9 src: url('fonts/open-sans/OpenSans-Light.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans/OpenSans-Light.ttf') format('truetype'); 11 10 } 12 13 11 @font-face { 14 12 font-family: OpenSans-Semibold; … … 64 62 float: right; 65 63 } 66 67 64 .expresscurate_clear { 68 65 display: block !important; … … 1148 1145 .expresscurate_widget_wrapper .expresscurate_background_wrap .statisticsTitle { 1149 1146 cursor: pointer; 1147 height: 47px !important; 1150 1148 } 1151 1149 .expresscurate_background_wrap .statisticsTitle { … … 3614 3612 } 3615 3613 } 3616 /*menu*/ 3617 .expresscurate_tabMenu{ 3618 border-bottom: solid 2px #0074a2; 3619 max-width:1020px; 3620 width: 1020px; 3621 margin-top: 30px; 3622 position: relative; 3623 font-size: 0; 3624 } 3625 .expresscurate_tabMenu a{ 3626 display: inline-block; 3627 text-align: center; 3628 text-decoration: none; 3629 font-family: OpenSans-Regular, Verdana, Geneva, sans-serif; 3630 font-size: 20px; 3631 width: 16%; 3632 line-height: 65px; 3633 color: #989898; 3634 transition: color 300ms ; 3635 } 3636 .expresscurate_tabMenu a:hover{ 3637 color: #0074a2; 3638 } 3639 .expresscurate_tabMenu .arrow{ 3640 content: ''; 3641 display: block; 3642 width: 0; 3643 height: 0; 3644 position: absolute; 3645 border-right: 5px solid transparent; 3646 border-left: 5px solid transparent; 3647 border-bottom: 5px solid #0074a2; 3648 transition: left 500ms ; 3649 -webkit-transition: left 500ms ; 3650 -moz-transition: left 500ms ; 3651 -o-transition: left 500ms ; 3652 -ms-transition: left 500ms ; 3653 right: auto; 3654 bottom: 0px; 3655 z-index: 1; 3656 } 3657 @media (max-width: 1020px){ 3658 .expresscurate_tabMenu{ 3659 width: 100%; 3660 } 3661 .expresscurate_tabMenu a{ 3662 font-size: 16px; 3663 } 3664 } 3665 .expresscurate_tabMenu .blue{ 3666 color: #0074a2; 3667 } 3668 .expresscurate_tabMenu .gray{ 3669 color: #989898; 3670 } 3614 3671 3615 /*feed_dashboard and bookmarks*/ 3672 3616 .expresscurate_singleColumn .addNewBookmark, … … 3798 3742 height: 30px; 3799 3743 margin: 0; 3800 background-image: url("../images/feed_icons.svg"); 3801 background-repeat: no-repeat; 3744 background: url("../images/feed_icons.svg") no-repeat; 3802 3745 background-size: auto 82px; 3803 3746 cursor: default; … … 5478 5421 margin-top: 50px !important; 5479 5422 } 5480 5481 5423 .expresscurate_marginTop15{ 5482 5424 margin-top: 15px !important; -
expresscurate/trunk/readme.txt
r1319447 r1334347 4 4 Donate link: https://bit.ly/expresscuratedonate 5 5 Requires at least: 3.9 6 Tested up to: 4.4. 07 Stable tag: 2.1. 56 Tested up to: 4.4.1 7 Stable tag: 2.1.6 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 132 132 == Changelog == 133 133 134 = 2.1.6 = 135 * Wordpress 4.4.1 supported now. 136 * I18N support. 137 * Miscellaneous bug fixes and improvements. 138 134 139 = 2.1.5 = 135 140 * Wordpress 4.4 supported now. -
expresscurate/trunk/templates/bookmarks.php
r1319447 r1334347 12 12 } ?>"> 13 13 <div class="expresscurate_headBorderBottom expresscurate_OpenSansRegular"> 14 <a href="admin.php?page=expresscurate_support" class="expresscurate_writeUs"><?php _e('Suggestions? '); ?><span><?php _e('Submit here!'); ?></span></a> 14 <a href="admin.php?page=expresscurate_support" class="expresscurate_writeUs"><?php _e('Suggestions? '); ?> 15 <span><?php _e('Submit here!'); ?></span></a> 15 16 16 17 <h2><?php _e('Bookmarks'); ?></h2> 17 18 18 19 <div class="pageDesc"> 19 <?php _e('List of your bookmarked web pages. You can start a post by picking a bookmarked article (or multiple20 <?php _e('List of your bookmarked web pages. You can start a post by picking a bookmarked article (or multiple 20 21 articles) and clicking on the curate button.'); ?> 21 22 </div> … … 33 34 <li class="layout expresscurate_floatRight"> 34 35 <span class="tooltip"><?php if (get_option('expresscurate_bookmark_layout', '') == 'single') { 35 _e('view as grid');36 _e('view as grid'); 36 37 } else { 37 _e('view as list');38 _e('view as list'); 38 39 } ?></span> 39 40 </li> … … 70 71 <ul class="keywords"> 71 72 <?php if (!empty($item['media']['videos'])) { 72 echo '<li class="media videos"><span class="tooltip"> Video(s): '.$item["media"]["videos"].'</span></li>';73 echo '<li class="media videos"><span class="tooltip">' . __('Video(s): ') . $item["media"]["videos"] . '</span></li>'; 73 74 } 74 75 if (!empty($item['media']['images'])) { 75 echo '<li class="media images"><span class="tooltip"> Image(s): '.$item["media"]["images"].'</span></li>';76 echo '<li class="media images"><span class="tooltip">' . __('Image(s): ') . $item["media"]["images"] . '</span></li>'; 76 77 } 77 78 if (!empty($item[' keywords'])) { ?> … … 88 89 <span class="tooltip"> 89 90 <div class="<?php echo $color ?>"><?php _e('Keyword match'); ?></div> 90 <span class="inTitle"><?php _e('title'); ?><p class=""><?php echo $stats['title'] ?></p></span><!--inTitle yes|no--> 91 <span class="inTitle"><?php _e('title'); ?><p class=""><?php echo $stats['title'] ?></p></span> 92 <!--inTitle yes|no--> 91 93 <span class="inContent"><?php _e('content'); ?><p><?php echo $stats['percent'] * 100 ?>%</p></span> 92 94 </span> … … 99 101 target="_blank"><?php echo $item['title'] ?></a><br/> 100 102 <a target="_blank"><?php echo $item['title'] ?></a><br/> 101 <a data-encodedurl="<?php echo base64_encode(urlencode($item['link'])) ?>" class="url" target="_blank" href="<?php echo $item['link'] ?>"><?php echo $item['domain'] ?></a> 103 <a data-encodedurl="<?php echo base64_encode(urlencode($item['link'])) ?>" class="url" 104 target="_blank" href="<?php echo $item['link'] ?>"><?php echo $item['domain'] ?></a> 102 105 <span class="curatedBy"><?php _e('/ by '); ?><span><?php echo $item['user']; ?></span> /</span> 103 106 <span 104 class="time"><?php echo human_time_diff(strtotime($item['bookmark_date']), current_time('timestamp')) . ' ago';?></span>107 class="time"><?php echo human_time_diff(strtotime($item['bookmark_date']), current_time('timestamp')) .' ago' ?></span> 105 108 106 109 <div class="comment"> … … 110 113 for="comment__<?php echo $i ?>"><?php echo $item['comment'] ? stripslashes($item['comment']) : __('add comment'); ?></label> 111 114 <input type="text" class="expresscurate_disableInputStyle expresscurate_displayNone" 112 id="comment__<?php echo $i ?>" value="<?php echo stripslashes( $item['comment']); ?>">115 id="comment__<?php echo $i ?>" value="<?php echo stripslashes($item['comment']); ?>"> 113 116 <span class="expresscurate_displayNone">×</span> 114 117 </div> 115 118 <ul class="controls expresscurate_preventTextSelection"> 116 119 <li class="curate"><a 117 href="<?php echo esc_url(get_admin_url() . "post-new.php?expresscurate_load_source=" . base64_encode(urlencode($item['link'])) . "&expresscurate_load_title=" . urlencode($item['title'])); ?>"> Curate</a>120 href="<?php echo esc_url(get_admin_url() . "post-new.php?expresscurate_load_source=" . base64_encode(urlencode($item['link'])) . "&expresscurate_load_title=" . urlencode($item['title'])); ?>"><?php _e('Curate'); ?></a> 118 121 </li> 119 122 <li class="separator">-</li> 120 123 <?php 121 if (get_option('expresscurate_social_publishing', '') == "on" && strlen(get_option('expresscurate_buffer_access_token')) > 2) {122 ?>124 if (get_option('expresscurate_social_publishing', '') == "on" && strlen(get_option('expresscurate_buffer_access_token')) > 2) { 125 ?> 123 126 <li class="share"><?php _e('Share'); ?> </li> 124 127 <li class="separator">-</li> … … 151 154 <ul class="keywords"> 152 155 <# if (data.media.videos) { #> 153 <li class="media videos"><span class="tooltip"> Video(s):{{data.media.videos}}</span></li>154 <# } #>155 <# if (data.media.images) { #>156 <li class="media images"><span class="tooltip">Image(s):{{data.media.images}}</span></li>157 <# } #>156 <li class="media videos"><span class="tooltip"><?php _e('Video(s): '); ?>{{data.media.videos}}</span></li> 157 <# } #> 158 <# if (data.media.images) { #> 159 <li class="media images"><span class="tooltip"><?php _e('Image(s): '); ?>{{data.media.images}}</span></li> 160 <# } #> 158 161 </ul> 159 162 <a class="postTitle" href="{{data.link}}" target="_blank">{{data.title}}</a><br/> 160 163 <a class="url" href="{{data.link}}" target="_blank">{{data.domain}}</a> 161 164 <span class="curatedBy"><?php _e('/ by '); ?><span>{{data.user}}</span> /</span> 162 <span class="time"> Just now</span>165 <span class="time"><?php _e('Just now'); ?></span> 163 166 164 167 <div class="comment"> … … 168 171 </div> 169 172 <ul class="controls expresscurate_preventTextSelection"> 170 <li><a class="curate" href="post-new.php?expresscurate_load_source={{data.curateLink}}"><?php _e('Curate'); ?></a></li> 173 <li><a class="curate" 174 href="post-new.php?expresscurate_load_source={{data.curateLink}}"><?php _e('Curate'); ?></a></li> 171 175 <li class="separator">-</li> 172 176 <?php 173 if (get_option('expresscurate_social_publishing', '') == "on" && strlen(get_option('expresscurate_buffer_access_token')) > 2) {174 ?>177 if (get_option('expresscurate_social_publishing', '') == "on" && strlen(get_option('expresscurate_buffer_access_token')) > 2) { 178 ?> 175 179 <li class="share"><?php _e('Share '); ?></li> 176 180 <li class="separator">-</li> … … 184 188 </li> 185 189 </script> 190 <script type="text/html" id="tmpl-confirmDialog"> 191 <div> 192 <p class='dialog_text'>{{data.text}}<span class='confirm_post_title'>{{data.title}}</span></p> 193 </div> 194 </script> 186 195 </div> -
expresscurate/trunk/templates/content_feed_archive.php
r1319447 r1334347 2 2 $content_list = array(); 3 3 $feedManager = new ExpressCurate_FeedManager(); 4 $deleted_feeds = $feedManager->get_deleted_feeds();4 $deleted_feeds = $feedManager->get_deleted_feeds(); 5 5 $sorted_feeds = array(); 6 6 function array_sort_by_column(&$arr, $col, $dir = SORT_DESC) … … 14 14 15 15 if (!empty($deleted_feeds)) { 16 $domains =array();17 $keywords =array();16 $domains = array(); 17 $keywords = array(); 18 18 foreach ($deleted_feeds as $content) { 19 19 if (is_array($content) && count($content) > 0) { … … 45 45 } ?>"> 46 46 <div class="expresscurate_headBorderBottom expresscurate_OpenSansRegular"> 47 <a href="admin.php?page=expresscurate_support" class="expresscurate_writeUs"><?php _e('Suggestions? '); ?><span><?php _e('Submit here!'); ?></span></a> 47 <a href="admin.php?page=expresscurate_support" class="expresscurate_writeUs"><?php _e('Suggestions? '); ?> 48 <span><?php _e('Submit here!'); ?></span></a> 48 49 49 50 <h2><?php _e('Content Feed Archive'); ?></h2> 50 51 51 52 <div class="pageDesc"> 52 <?php _e('This page contains all posts were deleted from Content feed page which you can be restore or delete permanently.'); ?>53 <?php _e('This page contains all posts were deleted from Content feed page which you can be restore or delete permanently.'); ?> 53 54 </div> 54 55 <div class="controlsWrap"> … … 69 70 <li class="layout expresscurate_floatRight"> 70 71 <span class="tooltip"><?php if (get_option('expresscurate_bookmark_layout', '') == 'single') { 71 _e('view as grid');72 _e('view as grid'); 72 73 } else { 73 74 _e('view as list'); … … 94 95 <ul class="keywords"> 95 96 <?php if (!empty($item['media']['videos'])) { 96 echo '<li class="media videos"><span class="tooltip"> Video(s): '. $item["media"]["videos"] . '</span></li>';97 echo '<li class="media videos"><span class="tooltip">' . __('Video(s): ') . $item["media"]["videos"] . '</span></li>'; 97 98 } 98 99 if (!empty($item['media']['images'])) { 99 echo '<li class="media images"><span class="tooltip"> Image(s): '. $item["media"]["images"] . '</span></li>';100 echo '<li class="media images"><span class="tooltip">' . __('Image(s): ') . $item["media"]["images"] . '</span></li>'; 100 101 } 101 102 if (!empty($item['keywords'])) { ?> … … 112 113 <span class="tooltip"> 113 114 <div class="<?php echo $color ?>"><?php _e('Keyword match'); ?></div> 114 <span class="inTitle"><?php _e('title'); ?><p class=""><?php echo $stats['title'] ?></p></span><!--inTitle yes|no--> 115 <span class="inTitle"><?php _e('title'); ?><p class=""><?php echo $stats['title'] ?></p></span> 116 <!--inTitle yes|no--> 115 117 <span class="inContent"><?php _e('content'); ?><p><?php echo $stats['percent'] * 100 ?>%</p></span> 116 118 </span> … … 122 124 <a data-link="<?php echo $item['link']; ?>" class="postTitle" href="<?php echo $item['link'] ?>" 123 125 target="_blank"><?php echo $item['title'] ?></a><br/> 124 <a data-encodedurl="<?php echo base64_encode(urlencode($item['link'])) ?>" class="url" href="<?php echo $item['link'] ?>"><?php echo $item['domain'] ?></a> 126 <a data-encodedurl="<?php echo base64_encode(urlencode($item['link'])) ?>" class="url" 127 href="<?php echo $item['link'] ?>"><?php echo $item['domain'] ?></a> 125 128 <?php if (isset($item['author']) && '' != $item['author']) { ?> 126 129 <span class="curatedBy">/<?php echo $item['curated'] ? 'curated by' : 'author'; ?> … … 146 149 } ?> 147 150 <label class="expresscurate_notDefined expresscurate_displayNone"><?php _e('Your content feed is 148 empty. '); echo (strlen(get_option('expresscurate_links_rss', '')) > 2) ? '' : _e('Configure'); ?> <a 149 href="admin.php?page=expresscurate_feeds"><?php _e('RSS feeds'); ?></a> <?php _e('to 151 empty. '); 152 echo (strlen(get_option('expresscurate_links_rss', '')) > 2) ? '' : _e('Configure'); ?> <a 153 href="admin.php?page=expresscurate_feeds"><?php _e('RSS feeds'); ?></a> <?php _e('to 150 154 start.'); ?></label> 151 155 </ul> -
expresscurate/trunk/templates/faq.php
r1319447 r1334347 28 28 <div class="block questions"> 29 29 <?php 30 if (count($feed) > 0) { 31 for ($x = 0; $x < $limit; $x++) { 32 $title = str_replace(' & ', ' & ', $feed[$x]['title']); 33 $link = $feed[$x]['link']; 30 if (!empty($feed)) { 31 $i = 0; 32 foreach ($feed as $item) { 33 if ($i == $limit) { 34 break; 35 } 36 $i++; 37 $title = str_replace(' & ', ' & ', $item['title']); 38 $link = $item['link']; 34 39 ?> 35 40 <div class="inlineBlock"> … … 37 42 target="_blank"><span><?php echo $title ?></span></a> 38 43 </div> 39 <?php44 <?php 40 45 } 41 46 ?> … … 56 61 <?php if (!$sent) { ?> 57 62 <label for="expresscurate_support_email"><?php _e('Ask a question'); ?></label> 58 <?php63 <?php 59 64 } else { 60 65 ?> 61 66 <label for="expresscurate_support_email"><?php _e('Your question has been sent'); ?></label> 62 <?php67 <?php 63 68 } 64 69 ?> -
expresscurate/trunk/templates/feed_list.php
r1319447 r1334347 201 201 <input type="hidden" name="expresscurate_load_sources" value="1"/> 202 202 </form> 203 <script type="text/html" id="tmpl-confirmDialog"> 204 <div> 205 <p class='dialog_text'>{{data.text}}<span class='confirm_post_title'>{{data.title}}</span></p> 206 </div> 207 </script> 203 208 </div>
Note: See TracChangeset
for help on using the changeset viewer.