Plugin Directory

Changeset 1334347


Ignore:
Timestamp:
01/23/2016 11:43:35 AM (10 years ago)
Author:
expresscurate
Message:

new version v2.1.6 with changes:

  • Wordpress 4.4.1 supported now.
  • Miscellaneous bug fixes and improvements.
Location:
expresscurate/trunk
Files:
17 added
8 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • expresscurate/trunk/ExpressCurate.php

    r1319447 r1334347  
    55  Plugin URI: http://www.expresscurate.com/products
    66  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.5
     7  Version: 2.1.6
    88  Author: ExpressCurate
    99  Author URI: http://www.expresscurate.com
  • expresscurate/trunk/ExpressCurate_Actions.php

    r1319447 r1334347  
    9999        add_action('wp_head', array(&$this, 'advanced_seo_update_canonical_url'));
    100100        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()));
    104104        }
    105105
     
    281281    }*/
    282282
    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>
    290290            <script>(function(d, s, id) {
    291291              var js, fjs = d.getElementsByTagName(s)[0];
     
    295295              fjs.parentNode.insertBefore(js, fjs);
    296296            }(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>';
    298298
    299299        return $iframe;
     
    346346    {
    347347        $pluginUrl = plugin_dir_url(__FILE__);
    348         $plugin_array['expresscurate'] = $pluginUrl . 'js/Buttons.js';
     348        $plugin_array['expresscurate'] = $pluginUrl . 'js/editor/tinyMCE.js';
    349349        return $plugin_array;
    350350    }
     
    394394    }
    395395
    396     public function edit_post_permalink(){
     396    public function edit_post_permalink()
     397    {
    397398        global $post;
    398399        ?>
    399400        <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) : ''); ?>">');
    402403            });
    403404        </script>
     
    443444                        <img src="<?php echo plugin_dir_url(__FILE__); ?>/images/loading.gif" id="img-load"/>
    444445                    </div>
    445                 <?php
     446                    <?php
    446447                }
    447448            }
     
    457458                <?php include(sprintf("%s/templates/dialog.php", dirname(__FILE__))); ?>
    458459            </div>
    459         <?php
    460         }
    461     }
    462 
    463     public function add_confirm_dialogs(){
     460            <?php
     461        }
     462    }
     463
     464    public function add_confirm_dialogs()
     465    {
    464466        ?>
    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>-->
    468470        <?php
    469471    }
     
    710712        if ($defined_tags && count($defined_tags)) {
    711713            foreach ($defined_tags as $defined_tag) {
    712                 $defined_tag_insert =  trim($defined_tag);
     714                $defined_tag_insert = trim($defined_tag);
    713715                //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);
    715717                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)) {
    716718                    $ptags[] = $defined_tag_insert;
     
    11661168            self::PLUGIN_NAME . ' Settings', self::PLUGIN_NAME, 'manage_options', 'expresscurate_settings', array(&$this, 'plugin_settings_page')
    11671169        );
    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>");
    11701172        add_menu_page(self::PLUGIN_NAME, self::PLUGIN_NAME, 'edit_posts', 'expresscurate', array(&$this, 'show_dashboard'), '', '9.95458');
    11711173        add_submenu_page('expresscurate', 'Content Feed', $content_feed_label, 'edit_posts', 'expresscurate_feed_list', array(&$this, 'show_feed_list'), '');
     
    12601262            <?php include(sprintf("%s/templates/widget.php", dirname(__FILE__))); ?>
    12611263        </div>
    1262     <?php
     1264        <?php
    12631265    }
    12641266
     
    12711273
    12721274
    1273     <?php
     1275        <?php
    12741276    }
    12751277
     
    12801282            <?php include(sprintf("%s/templates/social_posts_widget.php", dirname(__FILE__))); ?>
    12811283        </div>
    1282     <?php
     1284        <?php
    12831285    }
    12841286
     
    12891291            <?php include(sprintf("%s/templates/sources_coll_widget.php", dirname(__FILE__))); ?>
    12901292        </div>
    1291     <?php
     1293        <?php
    12921294    }
    12931295
     
    16391641    {
    16401642        $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
    16541668        wp_enqueue_style('texpresscurate', $pluginUrl . 'css/expresscurate.css');
    16551669        /* wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css'); */
     
    16701684    public static function getCurationNews($url = self::NEWS_FEED_URL)
    16711685    {
    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);
    16741692        $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
    16891696        return $feed;
    16901697    }
     
    17261733            <?php include(sprintf("%s/templates/dashboard/welcome_widget.php", dirname(__FILE__))); ?>
    17271734        </div>
    1728     <?php
     1735        <?php
    17291736    }
    17301737
     
    17351742            <?php include(sprintf("%s/templates/dashboard/keywords_widget.php", dirname(__FILE__))); ?>
    17361743        </div>
    1737     <?php
     1744        <?php
    17381745    }
    17391746
     
    17441751            <?php include(sprintf("%s/templates/dashboard/smart_publishing_widget.php", dirname(__FILE__))); ?>
    17451752        </div>
    1746     <?php
     1753        <?php
    17471754    }
    17481755
     
    17531760            <?php include(sprintf("%s/templates/dashboard/social_publishing_widget.php", dirname(__FILE__))); ?>
    17541761        </div>
    1755     <?php
     1762        <?php
    17561763    }
    17571764
     
    17621769            <?php include(sprintf("%s/templates/dashboard/feed_widget.php", dirname(__FILE__))); ?>
    17631770        </div>
    1764     <?php
     1771        <?php
    17651772    }
    17661773
     
    17711778            <?php include(sprintf("%s/templates/dashboard/bookmarks_widget.php", dirname(__FILE__))); ?>
    17721779        </div>
    1773     <?php
     1780        <?php
    17741781    }
    17751782
     
    17801787            <?php include(sprintf("%s/templates/dashboard/keywords_interest_over_time_widget.php", dirname(__FILE__))); ?>
    17811788        </div>
    1782     <?php
     1789        <?php
    17831790    }
    17841791
     
    17891796            <?php include(sprintf("%s/templates/dashboard/keywords_related_topics_widget.php", dirname(__FILE__))); ?>
    17901797        </div>
    1791     <?php
     1798        <?php
    17921799    }
    17931800
     
    17981805            <?php include(sprintf("%s/templates/dashboard/search_widget.php", dirname(__FILE__))); ?>
    17991806        </div>
    1800     <?php
     1807        <?php
    18011808    }
    18021809
     
    18491856        }
    18501857
    1851         if(ExpressCurate_HtmlParser::isSafeMode() || strlen(ini_get('open_basedir')) !=0  ) {
     1858        if (ExpressCurate_HtmlParser::isSafeMode() || strlen(ini_get('open_basedir')) != 0) {
    18521859            echo '<div class="update-nag">
    18531860                      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  
    449449    }
    450450
    451     private 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)
    452452    {
    453453        $feeds = array();
     
    752752                    $this->collectBookmark($bookmarks, $item);
    753753
    754                      $result[$bookmarkURL]['status'] = 'success';
     754                    $result[$bookmarkURL]['status'] = 'success';
    755755                }
    756756            }
     
    968968    {
    969969        $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") {
    971971            echo $bookmarks;
    972972            die;
    973         }
    974         else {
     973        } else {
    975974            if ($bookmarks) {
    976975                $bookmarks = json_decode($bookmarks, true);
  • expresscurate/trunk/css/expresscurate.css

    r1319447 r1334347  
    44    src: url('fonts/open-sans/OpenSans-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans/OpenSans-Regular.ttf') format('truetype');
    55}
    6 
    76@font-face {
    87    font-family: OpenSans-Light;
     
    109    src: url('fonts/open-sans/OpenSans-Light.eot?#iefix') format('embedded-opentype'), url('fonts/open-sans/OpenSans-Light.ttf') format('truetype');
    1110}
    12 
    1311@font-face {
    1412    font-family: OpenSans-Semibold;
     
    6462    float: right;
    6563}
    66 
    6764.expresscurate_clear {
    6865    display: block !important;
     
    11481145    .expresscurate_widget_wrapper .expresscurate_background_wrap .statisticsTitle {
    11491146        cursor: pointer;
     1147        height: 47px !important;
    11501148    }
    11511149    .expresscurate_background_wrap .statisticsTitle {
     
    36143612    }
    36153613}
    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
    36713615/*feed_dashboard and bookmarks*/
    36723616.expresscurate_singleColumn .addNewBookmark,
     
    37983742            height: 30px;
    37993743            margin: 0;
    3800             background-image: url("../images/feed_icons.svg");
    3801             background-repeat: no-repeat;
     3744            background: url("../images/feed_icons.svg") no-repeat;
    38023745            background-size: auto 82px;
    38033746            cursor: default;
     
    54785421    margin-top: 50px !important;
    54795422}
    5480 
    54815423.expresscurate_marginTop15{
    54825424    margin-top: 15px !important;
  • expresscurate/trunk/readme.txt

    r1319447 r1334347  
    44Donate link: https://bit.ly/expresscuratedonate
    55Requires at least: 3.9
    6 Tested up to: 4.4.0
    7 Stable tag: 2.1.5
     6Tested up to: 4.4.1
     7Stable tag: 2.1.6
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    132132== Changelog ==
    133133
     134= 2.1.6 =
     135* Wordpress 4.4.1 supported now.
     136* I18N support.
     137* Miscellaneous bug fixes and improvements.
     138
    134139= 2.1.5 =
    135140* Wordpress 4.4 supported now.
  • expresscurate/trunk/templates/bookmarks.php

    r1319447 r1334347  
    1212    } ?>">
    1313    <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>
    1516
    1617        <h2><?php _e('Bookmarks'); ?></h2>
    1718
    1819        <div class="pageDesc">
    19 <?php _e('List of your bookmarked web pages. You can start a post by picking a bookmarked article (or multiple
     20            <?php _e('List of your bookmarked web pages. You can start a post by picking a bookmarked article (or multiple
    2021            articles) and clicking on the curate button.'); ?>
    2122        </div>
     
    3334                <li class="layout expresscurate_floatRight">
    3435                <span class="tooltip"><?php if (get_option('expresscurate_bookmark_layout', '') == 'single') {
    35                          _e('view as grid');
     36                        _e('view as grid');
    3637                    } else {
    37                          _e('view as list');
     38                        _e('view as list');
    3839                    } ?></span>
    3940                </li>
     
    7071                    <ul class="keywords">
    7172                        <?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>';
    7374                        }
    7475                        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>';
    7677                        }
    7778                        if (!empty($item[' keywords'])) { ?>
     
    8889                                    <span class="tooltip">
    8990                              <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-->
    9193                    <span class="inContent"><?php _e('content'); ?><p><?php echo $stats['percent'] * 100 ?>%</p></span>
    9294                  </span>
     
    99101                       target="_blank"><?php echo $item['title'] ?></a><br/>
    100102                    <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>
    102105                    <span class="curatedBy"><?php _e('/ by '); ?><span><?php echo $item['user']; ?></span> /</span>
    103106                <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>
    105108
    106109                    <div class="comment">
     
    110113                               for="comment__<?php echo $i ?>"><?php echo $item['comment'] ? stripslashes($item['comment']) : __('add comment'); ?></label>
    111114                        <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']); ?>">
    113116                        <span class="expresscurate_displayNone">&#215</span>
    114117                    </div>
    115118                    <ul class="controls expresscurate_preventTextSelection">
    116119                        <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>
    118121                        </li>
    119122                        <li class="separator">-</li>
    120123                        <?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                            ?>
    123126                            <li class="share"><?php _e('Share'); ?> </li>
    124127                            <li class="separator">-</li>
     
    151154            <ul class="keywords">
    152155                <# 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                            <# } #>
    158161            </ul>
    159162            <a class="postTitle" href="{{data.link}}" target="_blank">{{data.title}}</a><br/>
    160163            <a class="url" href="{{data.link}}" target="_blank">{{data.domain}}</a>
    161164            <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>
    163166
    164167            <div class="comment">
     
    168171            </div>
    169172            <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>
    171175                <li class="separator">-</li>
    172176                <?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                    ?>
    175179                    <li class="share"><?php _e('Share '); ?></li>
    176180                    <li class="separator">-</li>
     
    184188        </li>
    185189    </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>
    186195</div>
  • expresscurate/trunk/templates/content_feed_archive.php

    r1319447 r1334347  
    22$content_list = array();
    33$feedManager = new ExpressCurate_FeedManager();
    4 $deleted_feeds  = $feedManager->get_deleted_feeds();
     4$deleted_feeds = $feedManager->get_deleted_feeds();
    55$sorted_feeds = array();
    66function array_sort_by_column(&$arr, $col, $dir = SORT_DESC)
     
    1414
    1515if (!empty($deleted_feeds)) {
    16     $domains=array();
    17     $keywords=array();
     16    $domains = array();
     17    $keywords = array();
    1818    foreach ($deleted_feeds as $content) {
    1919        if (is_array($content) && count($content) > 0) {
     
    4545    } ?>">
    4646    <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>
    4849
    4950        <h2><?php _e('Content Feed Archive'); ?></h2>
    5051
    5152        <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.'); ?>
    5354        </div>
    5455        <div class="controlsWrap">
     
    6970                <li class="layout expresscurate_floatRight">
    7071                    <span class="tooltip"><?php if (get_option('expresscurate_bookmark_layout', '') == 'single') {
    71                            _e('view as grid');
     72                            _e('view as grid');
    7273                        } else {
    7374                            _e('view as list');
     
    9495                    <ul class="keywords">
    9596                        <?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>';
    9798                        }
    9899                        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>';
    100101                        }
    101102                        if (!empty($item['keywords'])) { ?>
     
    112113                                    <span class="tooltip">
    113114                      <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-->
    115117                    <span class="inContent"><?php _e('content'); ?><p><?php echo $stats['percent'] * 100 ?>%</p></span>
    116118                  </span>
     
    122124                    <a data-link="<?php echo $item['link']; ?>" class="postTitle" href="<?php echo $item['link'] ?>"
    123125                       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>
    125128                    <?php if (isset($item['author']) && '' != $item['author']) { ?>
    126129                        <span class="curatedBy">/<?php echo $item['curated'] ? 'curated by' : 'author'; ?>
     
    146149        } ?>
    147150        <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
    150154        start.'); ?></label>
    151155    </ul>
  • expresscurate/trunk/templates/faq.php

    r1319447 r1334347  
    2828        <div class="block questions">
    2929            <?php
    30             if (count($feed) > 0) {
    31                 for ($x = 0; $x < $limit; $x++) {
    32                     $title = str_replace(' & ', ' &amp; ', $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(' & ', ' &amp; ', $item['title']);
     38                    $link = $item['link'];
    3439                    ?>
    3540                    <div class="inlineBlock">
     
    3742                           target="_blank"><span><?php echo $title ?></span></a>
    3843                    </div>
    39                 <?php
     44                    <?php
    4045                }
    4146                ?>
     
    5661            <?php if (!$sent) { ?>
    5762                <label for="expresscurate_support_email"><?php _e('Ask a question'); ?></label>
    58             <?php
     63                <?php
    5964            } else {
    6065                ?>
    6166                <label for="expresscurate_support_email"><?php _e('Your question has been sent'); ?></label>
    62             <?php
     67                <?php
    6368            }
    6469            ?>
  • expresscurate/trunk/templates/feed_list.php

    r1319447 r1334347  
    201201        <input type="hidden" name="expresscurate_load_sources" value="1"/>
    202202    </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>
    203208</div>
Note: See TracChangeset for help on using the changeset viewer.