WordPress.org

Plugin Directory

Changeset 1680761


Ignore:
Timestamp:
06/18/17 20:43:20 (4 months ago)
Author:
alimir
Message:

Upgraded to V2.7

Location:
wp-ulike
Files:
149 added
1 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • wp-ulike/trunk/admin/about.php

    r1277050 r1680761  
    66     * @author          Alimir       
    77     * @since           1.7 
     8     * @since           2.7 //added wp_ulike prefix to function name 
    89     * @return          String 
    910     */  
    10     add_filter('get_avatar', 'remove_photo_class'); 
    11     function remove_photo_class($avatar) { 
     11    add_filter('get_avatar', 'wp_ulike_remove_photo_class'); 
     12    function wp_ulike_remove_photo_class($avatar) { 
    1213        return str_replace(' photo', ' gravatar', $avatar); 
     14    } 
     15 
     16    /** 
     17     * Admin enqueue scripts for font-icons stylesheet 
     18     * 
     19     * @author          Alimir       
     20     * @since           2.7 
     21     * @return          Action 
     22     */  
     23    add_action('admin_enqueue_scripts', 'wp_ulike_enqueue_font_icons'); 
     24    function wp_ulike_enqueue_font_icons($avatar) { 
     25        wp_enqueue_style( 'wp_ulike_font_icons', plugins_url( 'classes/css/font-icons.css' , __FILE__ ) ); 
     26    } 
     27 
     28    /** 
     29     * Add rating us notification on wp-ulike admin pages 
     30     * 
     31     * @author          Alimir       
     32     * @since           2.7 
     33     * @return          String 
     34     */  
     35    add_action( 'admin_notices', 'wp_ulike_add_rating_star_notice', 999); 
     36    function wp_ulike_add_rating_star_notice() { 
     37        if(isset($_GET["page"]) && stripos($_GET["page"], "wp-ulike") !== false){ 
     38            ?> 
     39            <div class="notice notice-success" style="margin:15px 0"> 
     40                <p style="font-size:16px"><strong><?php _e('Like this plugin?',WP_ULIKE_SLUG); ?></strong> <?php _e('Show your support by Rating 5 Star in <a href="http://wordpress.org/plugins/wp-ulike"> Plugin Directory reviews</a>',WP_ULIKE_SLUG); ?></p> 
     41            </div> 
     42            <?php 
     43        } else return; 
    1344    } 
    1445 
     
    1950     * @since           1.7 
    2051     * @updated         2.1 
     52     * @updated         2.7 //Removed svg-source & updated some elements 
    2153     * @return          String 
    2254     */      
    2355    function wp_ulike_about_page() { 
    24     include( plugin_dir_path(__FILE__) . 'classes/tmp/svg-source.php'); 
    2556    ?> 
    2657    <style> 
     
    3970        box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); 
    4071    } 
    41     .boxstyle { 
    42         padding: 1px 12px; 
    43         background-color: #FFF; 
    44         box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1); 
    45     } 
    4672    .wp_ulike_version { 
    4773        display: inline-block; 
     
    6288        text-align: center; 
    6389    } 
    64     .about-wrap .feature-list h2 { 
    65         margin: 30px 0px 15px; 
     90    .about-wrap .icon-container { 
    6691        text-align: center; 
     92        font-size: 6vw; 
     93        border: 1px solid #757575; 
     94        padding: 35px 5px; 
     95    }    
     96    .about-wrap .featured-image img { 
     97        border: none; 
    6798    }    
    6899    <?php if(is_rtl()): ?> 
     
    72103        left: 0px; 
    73104    } 
    74     .about-wrap .feature-list svg { 
    75         float: right; 
    76         clear: right; 
    77         margin: 15px 0 0px 15px; 
    78         height: 90px; 
    79         width: 90px; 
    80         background-color: #CCC; 
    81         border-radius: 50%; 
    82         fill: #999; 
    83         border: 1px solid #C1C1C1; 
    84     }    
     105    .boxstyle { 
     106        padding: 1px 12px; 
     107        background-color: #FFF; 
     108        border-right: 3px solid #757575; 
     109    }        
    85110    <?php else: ?> 
    86111    .about-wrap .ulike-badge { 
     
    89114        right: 0px; 
    90115    } 
    91     .about-wrap .feature-list svg { 
    92         float: left; 
    93         clear: left; 
    94         margin: 15px 15px 0px 0px; 
    95         height: 90px; 
    96         width: 90px; 
    97         background-color: #CCC; 
    98         border-radius: 50%; 
    99         fill: #999; 
    100         border: 1px solid #C1C1C1; 
    101     }    
     116    .boxstyle { 
     117        padding: 1px 12px; 
     118        background-color: #FFF; 
     119        border-left: 3px solid #757575; 
     120    }        
    102121    <?php endif; ?> 
    103122    </style> 
     
    108127 
    109128        <div class="about-text"><?php echo _e('Thank you for choosing WP ULike! This version is our leanest and most powerful version yet.', WP_ULIKE_SLUG) ; ?><br /> 
    110         <a target="_blank" href="http://preview.alimir.ir/developer/wp-ulike/"> <?php _e('Visit our homepage',WP_ULIKE_SLUG); ?></a> 
     129        <a target="_blank" href="<?php echo WP_ULIKE_PLUGIN_URI; ?>"> <?php _e('Visit our homepage',WP_ULIKE_SLUG); ?></a> 
    111130        </div> 
    112131        <div class="ulike-badge"><?php echo _e('Version',WP_ULIKE_SLUG) . ' ' . WP_ULIKE_VERSION; ?></div> 
     
    122141         
    123142        <div class="changelog headline-feature"> 
    124             <h2><?php echo _e('Introducing WP ULike',WP_ULIKE_SLUG); ?></h2> 
     143            <h2><?php echo _e('Introducing WP ULike',WP_ULIKE_SLUG); ?> <img draggable="false" class="emoji" alt="emoji" src="https://s.w.org/images/core/emoji/2.2.1/svg/1f60a.svg"></h2> 
    125144            <div class="featured-image"> 
    126                 <img src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-intro.png"> 
     145                <img alt="wp ulike intro" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-intro.png"> 
    127146            </div>        
    128147 
    129148            <div class="feature-section"> 
    130149                <div class="col"> 
    131                     <h3><?php echo _e('About WP ULike',WP_ULIKE_SLUG); ?></h3> 
    132                     <span style="text-align:center"> 
     150                    <h2><?php echo _e('About WP ULike',WP_ULIKE_SLUG); ?></h2> 
     151                    <div style="text-align:center"> 
    133152                    <?php $args = array( 
    134153                       'rating' => 5, 
     
    137156                    ); 
    138157                    wp_star_rating( $args ); ?> 
    139                     </span>           
    140                     <p><?php echo _e('WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.',WP_ULIKE_SLUG); ?></p> 
     158                    </div>           
     159                    <p class="lead-description"><?php echo _e('WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.',WP_ULIKE_SLUG); ?></p> 
    141160                </div> 
    142161            </div> 
     
    144163            <div class="clear"></div> 
    145164        </div> 
    146          
    147         <div class="feature-section three-col"> 
    148             <div class="col"> 
    149                 <div class="svg-container"> 
    150                     <svg viewBox="-10 -10 52 52"> 
    151                         <g filter=""> 
    152                         <use xlink:href="#like"></use> 
    153                         </g> 
    154                     </svg> 
     165        <hr> 
     166        <div class="changelog feature-section three-col"> 
     167            <div class="col"> 
     168                <div class="icon-container"> 
     169                    <i class="wp-ulike-icons-hotairballoon"></i> 
    155170                </div> 
    156171                <h3><?php echo _e('WP Ulike Extension',WP_ULIKE_SLUG); ?></h3> 
     
    158173            </div> 
    159174            <div class="col"> 
    160                 <div class="svg-container"> 
    161                     <svg viewBox="-10 -10 52 52"> 
    162                         <g filter=""> 
    163                           <use xlink:href="#globe"></use> 
    164                         </g> 
    165                     </svg> 
     175                <div class="icon-container"> 
     176                    <i class="wp-ulike-icons-globe"></i> 
    166177                </div> 
    167178                <h3><?php echo _e('Added More Than 20 Language Files',WP_ULIKE_SLUG); ?></h3> 
     
    169180            </div> 
    170181            <div class="col"> 
    171                 <div class="svg-container"> 
    172                     <svg viewBox="-10 -10 52 52"> 
    173                         <g filter=""> 
    174                         <use xlink:href="#happy-smiley"></use> 
    175                         </g> 
    176                     </svg> 
     182                <div class="icon-container"> 
     183                    <i class="wp-ulike-icons-profile-male"></i> 
    177184                </div> 
    178185                <h3><?php echo _e('User Profile Links',WP_ULIKE_SLUG); ?></h3> 
     
    180187            </div> 
    181188            <div class="col"> 
    182                 <div class="svg-container"> 
    183                     <svg viewBox="-10 -10 52 52"> 
    184                         <g filter=""> 
    185                         <use xlink:href="#heart"></use> 
    186                         </g> 
    187                     </svg> 
     189                <div class="icon-container"> 
     190                    <i class="wp-ulike-icons-paintbrush"></i> 
    188191                </div> 
    189192                <h3><?php echo _e('New Themes And Styles',WP_ULIKE_SLUG); ?></h3> 
     
    191194            </div> 
    192195            <div class="col"> 
    193                 <div class="svg-container"> 
    194                     <svg viewBox="-10 -10 52 52"> 
    195                         <g filter=""> 
    196                         <use xlink:href="#prize"></use> 
    197                         </g> 
    198                     </svg> 
     196                <div class="icon-container"> 
     197                    <i class="wp-ulike-icons-trophy"></i> 
    199198                </div> 
    200199                <h3><?php echo _e('myCRED Points Support',WP_ULIKE_SLUG); ?></h3> 
     
    202201            </div> 
    203202            <div class="col"> 
    204                 <div class="svg-container"> 
    205                     <svg viewBox="-10 -10 52 52"> 
    206                         <g filter=""> 
    207                         <use xlink:href="#tag"></use> 
    208                         </g> 
    209                     </svg> 
     203                <div class="icon-container"> 
     204                    <i class="wp-ulike-icons-map"></i> 
    210205                </div> 
    211206                <h3><?php echo _e('Likers World Map',WP_ULIKE_SLUG); ?></h3> 
     
    223218         
    224219        <p class="about-description"><?php echo _e('WP ULike is created by many love and time. Enjoy it :)',WP_ULIKE_SLUG); ?></p>   
    225         <h4 class="wp-people-group"><?php echo _e('Project Leaders',WP_ULIKE_SLUG); ?></h4> 
    226         <ul class="wp-people-group"> 
    227             <li class="wp-person" id="wp-person-alimirzaei"> 
     220        <h3 class="wp-people-group"><?php echo _e('Project Leaders',WP_ULIKE_SLUG); ?></h3> 
     221        <ul id="wp-people-group-project-leaders" class="wp-people-group"> 
     222            <li class="wp-person" id="wp-person-alimir"> 
    228223                <a href="https://profiles.wordpress.org/alimir/"><?php echo get_avatar( 'info@alimir.ir', 64 ); ?></a> 
    229224                <a class="web" target="_blank" href="https://ir.linkedin.com/in/alimirir/">Ali Mirzaei</a> 
     
    232227        </ul> 
    233228             
    234         <h4 class="wp-people-group"><?php _e('Translations',WP_ULIKE_SLUG); ?></h4> 
     229        <h3 class="wp-people-group"><?php _e('Translations',WP_ULIKE_SLUG); ?></h3> 
    235230        <ul> 
    236231        <li>English (United States)</li> 
     
    273268        <p class="about-description"><?php _e('Would you like to help translate the plugin into more languages?',WP_ULIKE_SLUG); ?> <a target="_blank" href="https://www.transifex.com/projects/p/wp-ulike/" title"WP-Translations">[<?php _e('Join our WP-Translations Community',WP_ULIKE_SLUG); ?>]</a></p>   
    274269         
    275         <h4 class="wp-people-group"><?php echo _e('Other Plugins',WP_ULIKE_SLUG); ?></h4> 
     270        <h3 class="wp-people-group"><?php echo _e('Other Plugins',WP_ULIKE_SLUG); ?></h3> 
    276271        <ul class="wp-people-group"> 
    277272            <li class="wp-person" id="wp-person-alimirzaei"> 
     
    292287        </ul>    
    293288         
    294         <h4 class="wp-people-group"><?php _e('Like this plugin?',WP_ULIKE_SLUG); ?></h4> 
     289        <h3 class="wp-people-group"><?php _e('Like this plugin?',WP_ULIKE_SLUG); ?></h3> 
    295290        <div class="boxstyle"><p><strong><?php _e('Show your support by Rating 5 Star in <a href="http://wordpress.org/plugins/wp-ulike"> Plugin Directory reviews</a>',WP_ULIKE_SLUG); ?></strong></p></div> 
    296291         
  • wp-ulike/trunk/admin/admin.php

    r1600118 r1680761  
    7676        'title'    =>  __( 'WP ULike', WP_ULIKE_SLUG ), 
    7777        'position' =>  313, 
    78         'icon_url' => 'dashicons-smiley' 
     78        'icon_url' => 'dashicons-wp-ulike' 
    7979      ), 
    8080      array( 
  • wp-ulike/trunk/admin/classes/css/settings.css

    r1667550 r1680761  
     1/* 
     2/------------------------------------------\ 
     3 _     __     _ _____      _  _  _   _  
     4| |   /  \   | | ___ \    | |(_)| | / / 
     5| |  / /\ \  | | |_/ /   _| || || |/ / ___ 
     6| | / /  \ \ | |  __/ | | | || ||   | / _ \ 
     7| |/ /    \ \| | |  | |_| | || || |\ \  __/ 
     8\___/      \__/\_|   \__,_|_||_||_| \_\___| 
     9 
     10\--> Alimir, 2017 <--/ 
     11 
     12Thanks for using WP ULike plugin... 
     13https://wordpress.org/plugins/wp-ulike/ 
     14 
     15\------------------------------------------/ 
     16*/ 
     17 
    118form.wp-ulike h2, 
    219form.wp-ulike p.submit { 
  • wp-ulike/trunk/admin/classes/css/statistics.css

    r1667550 r1680761  
     1/* 
     2/------------------------------------------\ 
     3 _     __     _ _____      _  _  _   _  
     4| |   /  \   | | ___ \    | |(_)| | / / 
     5| |  / /\ \  | | |_/ /   _| || || |/ / ___ 
     6| | / /  \ \ | |  __/ | | | || ||   | / _ \ 
     7| |/ /    \ \| | |  | |_| | || || |\ \  __/ 
     8\___/      \__/\_|   \__,_|_||_||_| \_\___| 
     9 
     10\--> Alimir, 2017 <--/ 
     11 
     12Thanks for using WP ULike plugin... 
     13https://wordpress.org/plugins/wp-ulike/ 
     14 
     15\------------------------------------------/ 
     16*/ 
     17 
    118#right-log { 
    219    width: 31%; 
  • wp-ulike/trunk/admin/classes/tmp/settings.php

    r1649237 r1680761  
    127127            'description' => __('You can filter theses pages on auto display option.', WP_ULIKE_SLUG) 
    128128          ), 
     129          'google_rich_snippets'  => array( 
     130            'type'          => 'checkbox', 
     131            'default'       => 0, 
     132            'label'         => '*' . __('Google Rich Snippets', WP_ULIKE_SLUG), 
     133            'checkboxlabel' => __('Activate', WP_ULIKE_SLUG), 
     134            'description'   => __('Add rich snippet for ratings in form of schema.org', WP_ULIKE_SLUG) 
     135          ), 
    129136          'only_registered_users'  => array( 
    130137            'type'          => 'checkbox', 
  • wp-ulike/trunk/admin/stats.php

    r1667550 r1680761  
    3636            <h4>'.__('Get Started').'</h4> 
    3737            <a class="button button-primary button-hero" href="admin.php?page=wp-ulike-about">'.__( 'About WP ULike', WP_ULIKE_SLUG ).'</a> 
    38             <p class="hide-if-no-customize">'.__('or',WP_ULIKE_SLUG).', <a href="http://preview.alimir.ir/developer/wp-ulike/">'.__( 'Visit our homepage', WP_ULIKE_SLUG ).'</a></p> 
     38            <p class="hide-if-no-customize">'.__('or',WP_ULIKE_SLUG).', <a target="_blank" href="'.WP_ULIKE_PLUGIN_URI.'">'.__( 'Visit our homepage', WP_ULIKE_SLUG ).'</a></p> 
    3939        </div> 
    4040        <div class="welcome-panel-column"> 
  • wp-ulike/trunk/inc/classes/class-ulike.php

    r1600118 r1680761  
    361361         * @since           2.0 
    362362         * @updated         2.3 
     363         * @updated         2.7 //Added 'wp_ulike_count_box_template' filter 
    363364         * @return          String 
    364365         */      
    365366        public function get_template($id,$method,$liked,$num1,$num2){ 
    366367         
    367             $counter            = '<span class="count-box">'.$liked.'</span>'; 
     368            $counter            = apply_filters('wp_ulike_count_box_template', '<span class="count-box">'.$liked.'</span>', $liked); 
    368369            $button_text        = html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text')); 
    369370            $button_text_u      = html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text_u'));            
  • wp-ulike/trunk/inc/wp-functions.php

    r1649237 r1680761  
    8484     * 
    8585     * @author          Alimir 
    86      * @param           Integer $postID   
     86     * @param           Integer $post_ID      
    8787     * @since           1.7  
    8888     * @return          String 
    8989     */ 
    90     function wp_ulike_get_post_likes($postID){ 
    91         $val = get_post_meta($postID, '_liked', true); 
     90    function wp_ulike_get_post_likes($post_ID){ 
     91        $val = get_post_meta($post_ID, '_liked', true); 
    9292        return wp_ulike_format_number($val); 
    9393    } 
    94      
     94 
     95    /** 
     96     * Add itemtype to wp_ulike_posts_add_attr filter 
     97     * 
     98     * @author          Alimir 
     99     * @since           2.7  
     100     * @return          String 
     101     */ 
     102    add_filter('wp_ulike_posts_add_attr', 'wp_ulike_get_posts_microdata_itemtype'); 
     103    function wp_ulike_get_posts_microdata_itemtype(){ 
     104        $get_ulike_count = get_post_meta(get_the_ID(), '_liked', true); 
     105        if(!is_singular() || !wp_ulike_get_setting( 'wp_ulike_posts', 'google_rich_snippets') || $get_ulike_count == 0) return; 
     106        return 'itemscope itemtype="http://schema.org/CreativeWork"'; 
     107    } 
     108     
     109    /** 
     110     * Add rich snippet for ratings in form of schema.org 
     111     * 
     112     * @author          Alimir 
     113     * @since           2.7  
     114     * @return          String 
     115     */ 
     116    add_filter( 'wp_ulike_posts_microdata', 'wp_ulike_get_posts_microdata'); 
     117    function wp_ulike_get_posts_microdata(){ 
     118        $get_ulike_count = get_post_meta(get_the_ID(), '_liked', true); 
     119        if(!is_singular() || !wp_ulike_get_setting( 'wp_ulike_posts', 'google_rich_snippets') || $get_ulike_count == 0) return; 
     120        $post_meta      = '<meta itemprop="name" content="' . get_the_title() . '" />'; 
     121        $post_meta      .= apply_filters( 'wp_ulike_extra_structured_data', NULL ); 
     122        $post_meta      .= '<span itemprop="author" itemscope itemtype="http://schema.org/Person"><meta itemprop="name" content="' . get_the_author() . '" /></span>'; 
     123        $post_meta      .= '<meta itemprop="datePublished" content="' . mysql2date( 'c', get_the_date(), false ) . '" />'; 
     124        $ratings_meta   = '<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">'; 
     125        $ratings_meta   .= '<meta itemprop="bestRating" content="5" />'; 
     126        $ratings_meta   .= '<meta itemprop="worstRating" content="1" />'; 
     127        $ratings_meta   .= '<meta itemprop="ratingValue" content="'. wp_ulike_get_rating_value(get_the_ID()) .'" />'; 
     128        $ratings_meta   .= '<meta itemprop="ratingCount" content="' . $get_ulike_count . '" />'; 
     129        $ratings_meta   .= '</span>'; 
     130        $itemtype       = apply_filters( 'wp_ulike_remove_microdata_post_meta', false ); 
     131        return apply_filters( 'wp_ulike_generate_google_structured_data', ( $itemtype ? $ratings_meta : ( $post_meta . $ratings_meta ))); 
     132    } 
     133 
     134    /** 
     135     * Calculate rating value by user logs & date_time 
     136     * 
     137     * @author          Alimir 
     138     * @since           2.7  
     139     * @return          String 
     140     */ 
     141    function wp_ulike_get_rating_value($post_ID, $is_decimal = true){ 
     142        global $wpdb; 
     143        if (false === ($rating_value = wp_cache_get($cache_key = 'get_rich_rating_value_' . $post_ID, $cache_group = 'wp_ulike'))) { 
     144            //get the average, likes count & date_time columns by $post_ID 
     145            $request =  "SELECT 
     146                            FORMAT( 
     147                                ( 
     148                                SELECT 
     149                                    AVG(counted.total) 
     150                                FROM 
     151                                    ( 
     152                                    SELECT 
     153                                        COUNT(*) AS total 
     154                                    FROM 
     155                                        ".$wpdb->prefix."ulike AS ulike 
     156                                    GROUP BY 
     157                                        ulike.post_id 
     158                                ) AS counted 
     159                            ), 
     160                            0 
     161                            ) AS average, 
     162                            COUNT(ulike.post_id) AS counter, 
     163                            posts.post_date AS post_date 
     164                        FROM 
     165                            ".$wpdb->prefix."ulike AS ulike 
     166                        JOIN 
     167                            ".$wpdb->prefix."posts AS posts 
     168                        ON 
     169                            ulike.post_id = ".$post_ID." AND posts.ID = ulike.post_id;"; 
     170            //get columns in a row 
     171            $likes  = $wpdb->get_row($request); 
     172            $avg    = $likes->average; 
     173            $count  = $likes->counter; 
     174            $date   = strtotime($likes->post_date); 
     175            //if there is no log data, set $rating_value = 4 
     176            if($count == 0 || $avg == 0){ 
     177                $rating_value = 4; 
     178                return $rating_value; 
     179            } 
     180            $decimal = 0; 
     181            if($is_decimal){ 
     182                list($whole, $decimal) = explode('.', number_format(($count*100/($avg*2)), 1)); 
     183                $decimal = (int)$decimal; 
     184            } 
     185            if( $date > strtotime('-1 month')) { 
     186                if($count < $avg) $rating_value = 4 + ".$decimal"; 
     187                else $rating_value = 5; 
     188            } else if(($date <= strtotime('-1 month')) && ($date > strtotime('-6 month'))) { 
     189                if($count < $avg) $rating_value = 3 + ".$decimal"; 
     190                else if(($count >= $avg) && ($count < ($avg*3/2))) $rating_value = 4 + ".$decimal"; 
     191                else $rating_value = 5; 
     192            } else { 
     193                if($count < ($avg/2)) $rating_value = 1 + ".$decimal"; 
     194                else if(($count >= ($avg/2)) && ($count < $avg)) $rating_value = 2 + ".$decimal"; 
     195                else if(($count >= $avg) && ($count < ($avg*3/2))) $rating_value = 3 + ".$decimal"; 
     196                else if(($count >= ($avg*3/2)) && ($count < ($avg*2))) $rating_value = 4 + ".$decimal"; 
     197                else $rating_value = 5; 
     198            } 
     199            wp_cache_add($cache_key, $rating_value, $cache_group, HOUR_IN_SECONDS); 
     200        } 
     201        return $rating_value; 
     202    } 
    95203     
    96204     
     
    139247     * @return          String 
    140248     */ 
    141     function wp_ulike_get_comment_likes($commentID){ 
    142         $val = get_comment_meta($commentID, '_commentliked', true); 
     249    function wp_ulike_get_comment_likes($comment_ID){ 
     250        $val = get_comment_meta($comment_ID, '_commentliked', true); 
    143251        return wp_ulike_format_number($val); 
    144252    }    
     
    389497                // WordPress Toolbar 
    390498                if ( 'string' === $format ) { 
    391                     $return = apply_filters( 'wp_ulike', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_text ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); 
     499                    $return = apply_filters( 'wp_ulike_bp_notifications_template', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_text ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); 
    392500                // Deprecated BuddyBar 
    393501                } else { 
    394                     $return = apply_filters( 'wp_ulike', array( 
     502                    $return = apply_filters( 'wp_ulike_bp_notifications_template', array( 
    395503                        'text' => $custom_text, 
    396504                        'link' => $custom_link 
  • wp-ulike/trunk/inc/wp-ulike.php

    r1579042 r1680761  
    77     * @since           1.0 
    88     * @updated         2.3 
     9     * @updated         2.7 //added 'wp_ulike_posts_add_attr', 'wp_ulike_posts_microdata' & 'wp_ulike_login_alert_template' filters 
    910     * @return          String 
    1011     */ 
     
    4243        $counter        = $wp_ulike_class->wp_get_ulike($data); 
    4344         
    44         $wp_ulike       = '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'">'; 
     45        $wp_ulike       = '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_posts_add_attr', null).'>'; 
    4546        $wp_ulike       .= '<div class="counter">'.$counter.'</div>'; 
     47        $wp_ulike       .= apply_filters('wp_ulike_posts_microdata', null); 
    4648        $wp_ulike       .= '</div>'; 
    4749        $wp_ulike       .= $wp_ulike_class->get_liked_users($post_ID,'ulike','post_id','wp_ulike_posts'); 
     
    6870            } 
    6971            else 
    70                 return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this post: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'; 
     72                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this post: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'); 
    7173        }//end only_registered_users condition 
    7274         
     
    7981     * @since           1.6 
    8082     * @updated         2.3 
     83     * @updated         2.7 //added 'wp_ulike_login_alert_template' & 'wp_ulike_comments_add_attr' filters 
    8184     * @return          String 
    8285     */ 
     
    114117        $counter        = $wp_ulike_class->wp_get_ulike($data);      
    115118         
    116         $wp_ulike       = '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike '.$theme_class.'">'; 
     119        $wp_ulike       = '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_comments_add_attr', null).'>'; 
    117120        $wp_ulike       .= '<div class="counter">'.$counter.'</div>'; 
    118121        $wp_ulike       .= '</div>'; 
     
    140143            } 
    141144            else 
    142                 return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this comment: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>';    
     145                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this comment: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'); 
    143146        }//end only_registered_users condition 
    144147         
     
    152155     * @updated         2.3 
    153156     * @updated         2.4 
     157     * @updated         2.7 //added 'wp_ulike_login_alert_template' & 'wp_ulike_activities_add_attr' filters 
    154158     * @return          String 
    155159     */ 
     
    196200        $counter        = $wp_ulike_class->wp_get_ulike($data); 
    197201         
    198         $wp_ulike       = '<'.$html_tag.' id="wp-ulike-activity-'.$activityID.'" class="wpulike '.$theme_class.'">'; 
     202        $wp_ulike       = '<'.$html_tag.' id="wp-ulike-activity-'.$activityID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_activities_add_attr', null).'>'; 
    199203        $wp_ulike       .= '<'.$html_tag.' class="counter">'.$counter.'</'.$html_tag.'>'; 
    200204        $wp_ulike       .= '</'.$html_tag.'>'; 
     
    222226            } 
    223227            else         
    224                 return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this activity: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'; 
     228                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this activity: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'); 
    225229        }//end only_registered_users condition 
    226230         
     
    234238     * @updated         2.3 
    235239     * @updated         2.4.1 
     240     * @updated         2.7 //added 'wp_ulike_login_alert_template' & 'wp_ulike_topics_add_attr' filters 
    236241     * @return          String 
    237242     */ 
     
    272277        $counter        = $wp_ulike_class->wp_get_ulike($data); 
    273278         
    274         $wp_ulike       = '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'">'; 
     279        $wp_ulike       = '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_topics_add_attr', null).'>'; 
    275280        $wp_ulike       .= '<div class="counter">'.$counter.'</div>'; 
    276281        $wp_ulike       .= '</div>'; 
     
    298303            } 
    299304            else 
    300                 return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this post: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'; 
     305                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>'.__('You need to login in order to like this post: ',WP_ULIKE_SLUG).'<a href="'.wp_login_url( get_permalink() ).'"> '.__('click here',WP_ULIKE_SLUG).' </a></p>'); 
    301306        }//end only_registered_users condition 
    302307         
     
    359364         
    360365        $data = array( 
    361             "id"            => $post_ID,                //Post ID 
     366            "id"        => $post_ID,                //Post ID 
    362367            "user_id"   => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
    363368            "user_ip"   => $wp_user_IP,             //User IP 
     
    366371            "setting"   => $setting_key,            //Setting Key 
    367372            "type"      => 'process',               //Function type (post/process) 
    368             "table"         => $table_name,             //posts table 
     373            "table"     => $table_name,             //posts table 
    369374            "column"    => $column_name,            //ulike table column name            
    370375            "key"       => $meta_key,               //meta key 
     
    377382            $response->add( 
    378383                array( 
    379                     'what'  =>'wpulike', 
     384                    'what'      =>'wpulike', 
    380385                    'action'    =>'wp_ulike_process', 
    381386                    'id'        => $post_ID, 
     
    388393        $response->send(); 
    389394 
    390         // Always exit when doing Ajax 
     395        // Exit when doing Ajax 
    391396        exit(); 
    392397    } 
  • wp-ulike/trunk/lang/wp-ulike-fa_IR.po

    r1667550 r1680761  
    22msgstr "" 
    33"Project-Id-Version: WP ULike\n" 
    4 "POT-Creation-Date: 2017-05-30 14:31+0330\n" 
    5 "PO-Revision-Date: 2017-05-30 14:31+0330\n" 
     4"POT-Creation-Date: 2017-06-18 16:19+0330\n" 
     5"PO-Revision-Date: 2017-06-18 16:19+0330\n" 
    66"Last-Translator: Alimir <alimir71@yahoo.com>\n" 
    77"Language-Team: alimir.ir <info@alimir.ir>\n" 
     
    1717"X-Poedit-SearchPath-1: ..\n" 
    1818 
    19 #: ../wp-ulike.php:129 
     19#: ../wp-ulike.php:142 
    2020msgid "Settings" 
    2121msgstr "تنظیمات" 
    2222 
    23 #: ../wp-ulike.php:130 
     23#: ../wp-ulike.php:143 
    2424msgid "Statistics" 
    2525msgstr "آماره" 
    2626 
    27 #: ../wp-ulike.php:131 
     27#: ../wp-ulike.php:144 
    2828msgid "About" 
    2929msgstr "درباره" 
    3030 
    31 #: ../admin/about.php:107 
     31#: ../admin/about.php:40 ../admin/about.php:289 
     32msgid "Like this plugin?" 
     33msgstr "این پلاگین چندتا لایک داره؟!؟ :)" 
     34 
     35#: ../admin/about.php:40 ../admin/about.php:290 
     36msgid "" 
     37"Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/" 
     38"wp-ulike\"> Plugin Directory reviews</a>" 
     39msgstr "" 
     40"حمایتتون رو از این افزونه، با امتیاز 5 ستاره در <a href=\"http://wordpress." 
     41"org/plugins/wp-ulike\">مخزن وردپرس</a> ثبت کنید..." 
     42 
     43#: ../admin/about.php:126 
    3244msgid "Welcome to WP ULike" 
    3345msgstr "به وردپرس یولایک خوش آمدید" 
    3446 
    35 #: ../admin/about.php:109 
     47#: ../admin/about.php:128 
    3648msgid "" 
    3749"Thank you for choosing WP ULike! This version is our leanest and most " 
     
    4153"قویترین و کامل ترین نسخه منتشر شده از این افزونه است." 
    4254 
    43 #: ../admin/about.php:110 ../admin/stats.php:36 
     55#: ../admin/about.php:129 ../admin/stats.php:38 
    4456msgid "Visit our homepage" 
    4557msgstr "مشاهده صفحه افزونه" 
    4658 
    47 #: ../admin/about.php:112 
     59#: ../admin/about.php:131 
    4860msgid "Version" 
    4961msgstr "نسخه" 
    5062 
    51 #: ../admin/about.php:114 
     63#: ../admin/about.php:133 
    5264msgid "Getting Started" 
    5365msgstr "شروع " 
    5466 
    55 #: ../admin/about.php:115 
     67#: ../admin/about.php:134 
    5668msgid "Credits" 
    5769msgstr "دست‌اندرکاران" 
    5870 
    59 #: ../admin/about.php:116 ../admin/stats.php:50 
     71#: ../admin/about.php:135 ../admin/stats.php:52 
    6072#: ../admin/classes/class-settings.php:112 
    6173msgid "Support" 
    6274msgstr "پشتیبانی" 
    6375 
    64 #: ../admin/about.php:117 ../admin/stats.php:51 
     76#: ../admin/about.php:136 ../admin/stats.php:53 
    6577#: ../admin/classes/class-settings.php:112 
    6678msgid "FAQ" 
    6779msgstr "سؤالات متداول" 
    6880 
    69 #: ../admin/about.php:118 
     81#: ../admin/about.php:137 
    7082msgid "Reviews" 
    7183msgstr "امتیازدهی" 
    7284 
    73 #: ../admin/about.php:124 
     85#: ../admin/about.php:143 
    7486msgid "Introducing WP ULike" 
    7587msgstr "معرفی وردپرس یولاک" 
    7688 
    77 #: ../admin/about.php:131 ../admin/stats.php:35 ../admin/admin.php:197 
     89#: ../admin/about.php:150 ../admin/stats.php:37 ../admin/admin.php:197 
    7890msgid "About WP ULike" 
    7991msgstr "درباره وردپرس یولایک" 
    8092 
    81 #: ../admin/about.php:140 ../admin/classes/class-settings.php:46 
     93#: ../admin/about.php:159 ../admin/classes/class-settings.php:46 
    8294msgid "" 
    8395"WP ULike plugin allows to integrate a beautiful Ajax Like Button into your " 
     
    93105"اختیار شما قرار میده." 
    94106 
    95 #: ../admin/about.php:156 
     107#: ../admin/about.php:171 
    96108msgid "WP Ulike Extension" 
    97109msgstr "گسترش وردپرس یولایک" 
    98110 
    99 #: ../admin/about.php:157 
     111#: ../admin/about.php:172 
    100112msgid "" 
    101113"Right now, WP ULike support wordpress posts / comments, BuddyPress " 
     
    105117"های بادی پرس و تاپیک های بی بی پرس و... پشتیبانی کامل دارد." 
    106118 
    107 #: ../admin/about.php:167 
     119#: ../admin/about.php:178 
    108120msgid "Added More Than 20 Language Files" 
    109121msgstr "افزودن بیش از 20 فایل زبان جدید" 
    110122 
    111 #: ../admin/about.php:168 
     123#: ../admin/about.php:179 
    112124msgid "" 
    113125"WP ULike is already translated into +20 languages, with more always in " 
     
    117129"توسعه است... :)" 
    118130 
    119 #: ../admin/about.php:178 
     131#: ../admin/about.php:185 
    120132msgid "User Profile Links" 
    121133msgstr "لینک به حساب های کاربری" 
    122134 
    123 #: ../admin/about.php:179 
     135#: ../admin/about.php:186 
    124136msgid "" 
    125137"Since WP ULike 2.3, We have synced the likers profile with BuddyPress & " 
     
    130142"و ابزارک ها تنظیم می شود." 
    131143 
    132 #: ../admin/about.php:189 
     144#: ../admin/about.php:192 
    133145msgid "New Themes And Styles" 
    134146msgstr "قالب ها و استایل های جدید" 
    135147 
    136 #: ../admin/about.php:190 
     148#: ../admin/about.php:193 
    137149msgid "" 
    138150"Since WP ULike 2.3, We have made some new styles and themes and you can " 
     
    142154"سفارشی سازی توسط شما به افزونه اضافه میکنیم." 
    143155 
    144 #: ../admin/about.php:200 
     156#: ../admin/about.php:199 
    145157msgid "myCRED Points Support" 
    146158msgstr "پشتیبانی کامل از امتیازات myCRED" 
    147159 
    148 #: ../admin/about.php:201 
     160#: ../admin/about.php:200 
    149161msgid "" 
    150162"myCRED is an adaptive points management system that lets you award / charge " 
     
    155167"تواند این امتیازات را در سایت خود شما خرج کند." 
    156168 
    157 #: ../admin/about.php:211 ../admin/stats.php:174 ../admin/stats.php:393 
     169#: ../admin/about.php:206 ../admin/stats.php:176 ../admin/stats.php:395 
    158170msgid "Likers World Map" 
    159171msgstr "نقشه جهانی لایک کنندگان" 
    160172 
    161 #: ../admin/about.php:212 
     173#: ../admin/about.php:207 
    162174msgid "" 
    163175"Since WP ULike 2.3, We have made a new ability that you can track your " 
     
    167179"ابزراک ویژه برترین لایک کنندگان اضافه شده است." 
    168180 
    169 #: ../admin/about.php:218 ../admin/stats.php:22 ../admin/admin.php:193 
     181#: ../admin/about.php:213 ../admin/stats.php:24 ../admin/admin.php:193 
    170182msgid "WP ULike Statistics" 
    171183msgstr "آماره وردپرس یولایک" 
    172184 
    173 #: ../admin/about.php:218 ../admin/classes/tmp/settings.php:118 
     185#: ../admin/about.php:213 ../admin/classes/tmp/settings.php:118 
    174186msgid "Home" 
    175187msgstr "خانه" 
    176188 
    177 #: ../admin/about.php:218 
     189#: ../admin/about.php:213 
    178190msgid "OR" 
    179191msgstr "یا" 
    180192 
    181 #: ../admin/about.php:218 ../admin/admin.php:73 
     193#: ../admin/about.php:213 ../admin/admin.php:73 
    182194msgid "WP ULike Settings" 
    183195msgstr "تنظیمات وردپرس یولایک" 
    184196 
    185 #: ../admin/about.php:224 
     197#: ../admin/about.php:219 
    186198msgid "WP ULike is created by many love and time. Enjoy it :)" 
    187199msgstr "" 
     
    189201"ببرید :)" 
    190202 
    191 #: ../admin/about.php:225 
     203#: ../admin/about.php:220 
    192204msgid "Project Leaders" 
    193205msgstr "سازندگان اصلی" 
    194206 
    195 #: ../admin/about.php:230 
     207#: ../admin/about.php:225 
    196208msgid "Project Lead & Developer" 
    197209msgstr "راهبر پروژه، توسعه دهنده ارشد" 
    198210 
    199 #: ../admin/about.php:234 
     211#: ../admin/about.php:229 
    200212msgid "Translations" 
    201213msgstr "ترجمه ها" 
    202214 
    203 #: ../admin/about.php:273 
     215#: ../admin/about.php:268 
    204216msgid "Would you like to help translate the plugin into more languages?" 
    205217msgstr "" 
     
    207219"کنید؟!؟ " 
    208220 
    209 #: ../admin/about.php:273 
     221#: ../admin/about.php:268 
    210222msgid "Join our WP-Translations Community" 
    211223msgstr "به شبکه مترجمان ما بپیوندید" 
    212224 
    213 #: ../admin/about.php:275 
     225#: ../admin/about.php:270 
    214226msgid "Other Plugins" 
    215227msgstr "سایر افزونه ها" 
    216  
    217 #: ../admin/about.php:294 
    218 msgid "Like this plugin?" 
    219 msgstr "این پلاگین چندتا لایک داره؟!؟ :)" 
    220  
    221 #: ../admin/about.php:295 
    222 msgid "" 
    223 "Show your support by Rating 5 Star in <a href=\"http://wordpress.org/plugins/" 
    224 "wp-ulike\"> Plugin Directory reviews</a>" 
    225 msgstr "" 
    226 "حمایتتون رو از این افزونه، با امتیاز 5 ستاره در <a href=\"http://wordpress." 
    227 "org/plugins/wp-ulike\">مخزن وردپرس</a> مشخص کنید..." 
    228228 
    229229#: ../admin/logs.php:17 ../admin/logs.php:143 ../admin/logs.php:213 
     
    242242msgstr "وقایع اتفاقیه در وردپرس یولایک" 
    243243 
    244 #: ../admin/logs.php:140 ../admin/stats.php:41 ../admin/admin.php:177 
     244#: ../admin/logs.php:140 ../admin/stats.php:43 ../admin/admin.php:177 
    245245msgid "Post Likes Logs" 
    246246msgstr "وقایع لایک در نوشتارها" 
     
    285285 
    286286#: ../admin/logs.php:175 ../admin/logs.php:298 ../admin/logs.php:425 
    287 #: ../admin/logs.php:548 ../admin/stats.php:197 
     287#: ../admin/logs.php:548 ../admin/stats.php:199 
    288288msgid "Guest User" 
    289289msgstr "کاربر مهمان" 
     
    298298"است که شما هیچ اطلاعاتی را در این جدول ندارید)" 
    299299 
    300 #: ../admin/logs.php:262 ../admin/stats.php:42 ../admin/admin.php:181 
     300#: ../admin/logs.php:262 ../admin/stats.php:44 ../admin/admin.php:181 
    301301msgid "Comment Likes Logs" 
    302302msgstr "وقایع لایک در دیدگاه ها" 
     
    314314msgstr "متن دیدگاه" 
    315315 
    316 #: ../admin/logs.php:390 ../admin/stats.php:43 ../admin/admin.php:185 
     316#: ../admin/logs.php:390 ../admin/stats.php:45 ../admin/admin.php:185 
    317317msgid "Activity Likes Logs" 
    318318msgstr "وقایع لایک در فعالیت ها" 
     
    331331msgstr "<a href=\"%1$s\">مشاهده فعالیت</a>" 
    332332 
    333 #: ../admin/logs.php:513 ../admin/stats.php:44 ../admin/admin.php:189 
     333#: ../admin/logs.php:513 ../admin/stats.php:46 ../admin/admin.php:189 
    334334msgid "Topics Likes Logs" 
    335335msgstr "وقایع لایک در تاپیک ها" 
     
    343343msgstr "عنوان تاپیک" 
    344344 
    345 #: ../admin/stats.php:29 
     345#: ../admin/stats.php:31 
    346346msgid "Welcome to WP ULike Statistics!" 
    347347msgstr "به آماره وردپرس یولایک خوش آمدید!" 
    348348 
    349 #: ../admin/stats.php:30 
     349#: ../admin/stats.php:32 
    350350msgid "We have provided some useful statistics tools in this page:" 
    351351msgstr "" 
    352352"در این بخش، ما مجموعه ای از ابزارهای کاربردی را برای شما آماده کرده ایم:" 
    353353 
    354 #: ../admin/stats.php:34 
     354#: ../admin/stats.php:36 
    355355msgid "Get Started" 
    356356msgstr "آغاز کنید" 
    357357 
    358 #: ../admin/stats.php:36 
     358#: ../admin/stats.php:38 
    359359msgid "or" 
    360360msgstr "یا" 
    361361 
    362 #: ../admin/stats.php:39 
     362#: ../admin/stats.php:41 
    363363msgid "Other Tools" 
    364364msgstr "سایر ابزارها" 
    365365 
    366 #: ../admin/stats.php:48 
     366#: ../admin/stats.php:50 
    367367msgid "Documentation" 
    368368msgstr "مستندات" 
    369369 
    370 #: ../admin/stats.php:52 
     370#: ../admin/stats.php:54 
    371371msgid "Contact" 
    372372msgstr "تماس با ما" 
    373373 
    374 #: ../admin/stats.php:53 
     374#: ../admin/stats.php:55 
    375375msgid "GitHub Repository" 
    376376msgstr "مخزن گیت هاب" 
    377377 
    378 #: ../admin/stats.php:79 
     378#: ../admin/stats.php:81 
    379379msgid "Posts Likes Summary" 
    380380msgstr "خلاصه لایک در نوشتارها" 
    381381 
    382 #: ../admin/stats.php:87 
     382#: ../admin/stats.php:89 
    383383msgid "Comments Likes Summary" 
    384384msgstr "خلاصه لایک در دیدگاه ها" 
    385385 
    386 #: ../admin/stats.php:95 
     386#: ../admin/stats.php:97 
    387387msgid "Activities Likes Summary" 
    388388msgstr "خلاصه لایک در فعالیت ها" 
    389389 
    390 #: ../admin/stats.php:103 
     390#: ../admin/stats.php:105 
    391391msgid "Topics Likes Summary" 
    392392msgstr "خلاصه لایک در تاپیک ها" 
    393393 
    394 #: ../admin/stats.php:113 ../admin/stats.php:387 
     394#: ../admin/stats.php:115 ../admin/stats.php:389 
    395395msgid "Summary" 
    396396msgstr "خلاصه" 
    397397 
    398 #: ../admin/stats.php:125 
     398#: ../admin/stats.php:127 
    399399msgid "Total Likes" 
    400400msgstr "مجموع کل لایک ها" 
    401401 
    402 #: ../admin/stats.php:137 ../admin/classes/class-widget.php:422 
     402#: ../admin/stats.php:139 ../admin/classes/class-widget.php:422 
    403403msgid "Today" 
    404404msgstr "امروز" 
    405405 
    406 #: ../admin/stats.php:142 ../admin/classes/class-widget.php:421 
     406#: ../admin/stats.php:144 ../admin/classes/class-widget.php:421 
    407407msgid "Yesterday" 
    408408msgstr "دیروز" 
    409409 
    410 #: ../admin/stats.php:147 ../admin/classes/class-widget.php:420 
     410#: ../admin/stats.php:149 ../admin/classes/class-widget.php:420 
    411411msgid "Week" 
    412412msgstr "هفته" 
    413413 
    414 #: ../admin/stats.php:152 ../admin/classes/class-widget.php:419 
     414#: ../admin/stats.php:154 ../admin/classes/class-widget.php:419 
    415415msgid "Month" 
    416416msgstr "ماه" 
    417417 
    418 #: ../admin/stats.php:157 
     418#: ../admin/stats.php:159 
    419419msgid "Total" 
    420420msgstr "کل" 
    421421 
    422 #: ../admin/stats.php:191 ../admin/stats.php:394 
     422#: ../admin/stats.php:193 ../admin/stats.php:396 
    423423msgid "Top Likers" 
    424424msgstr "برترین لایک کنندگان" 
    425425 
    426 #: ../admin/stats.php:204 ../admin/classes/class-widget.php:281 
     426#: ../admin/stats.php:206 ../admin/classes/class-widget.php:281 
    427427#: ../admin/classes/tmp/settings.php:23 ../admin/classes/tmp/settings.php:24 
    428428#: ../admin/classes/tmp/settings.php:32 
     
    430430msgstr "لایک" 
    431431 
    432 #: ../admin/stats.php:217 ../admin/stats.php:395 
     432#: ../admin/stats.php:219 ../admin/stats.php:397 
    433433#: ../admin/classes/class-widget.php:405 ../inc/wp-strings.php:26 
    434434msgid "Most Liked Posts" 
    435435msgstr "پرلایک ترین مطالب" 
    436436 
    437 #: ../admin/stats.php:227 ../admin/stats.php:396 
     437#: ../admin/stats.php:229 ../admin/stats.php:398 
    438438#: ../admin/classes/class-widget.php:406 ../inc/wp-strings.php:27 
    439439msgid "Most Liked Comments" 
    440440msgstr "پرلایک ترین دیدگاه ها" 
    441441 
    442 #: ../admin/stats.php:237 ../admin/stats.php:397 
     442#: ../admin/stats.php:239 ../admin/stats.php:399 
    443443#: ../admin/classes/class-widget.php:407 
    444444msgid "Most Liked Activities" 
    445445msgstr "پرلایک ترین فعالیت ها" 
    446446 
    447 #: ../admin/stats.php:247 ../admin/stats.php:398 
     447#: ../admin/stats.php:249 ../admin/stats.php:400 
    448448#: ../admin/classes/class-widget.php:408 
    449449msgid "Most Liked Topics" 
    450450msgstr "پرلایک ترین تاپیک ها" 
    451451 
    452 #: ../admin/stats.php:266 ../admin/stats.php:272 ../admin/stats.php:278 
    453 #: ../admin/stats.php:284 
     452#: ../admin/stats.php:268 ../admin/stats.php:274 ../admin/stats.php:280 
     453#: ../admin/stats.php:286 
    454454msgid "View Logs" 
    455455msgstr "مشاهده وقایع" 
    456456 
    457 #: ../admin/stats.php:267 ../admin/stats.php:388 
     457#: ../admin/stats.php:269 ../admin/stats.php:390 
    458458msgid "Posts Likes Stats" 
    459459msgstr "نمودار لایک در نوشتارها" 
    460460 
    461 #: ../admin/stats.php:267 ../admin/stats.php:273 ../admin/stats.php:279 
    462 #: ../admin/stats.php:285 ../admin/stats.php:316 
     461#: ../admin/stats.php:269 ../admin/stats.php:275 ../admin/stats.php:281 
     462#: ../admin/stats.php:287 ../admin/stats.php:318 
    463463#, php-format 
    464464msgid "In The Last %s Days" 
    465465msgstr "در %s روز گذشته" 
    466466 
    467 #: ../admin/stats.php:273 ../admin/stats.php:389 
     467#: ../admin/stats.php:275 ../admin/stats.php:391 
    468468msgid "Comments Likes Stats" 
    469469msgstr "نمودار لایک در دیدگاه ها" 
    470470 
    471 #: ../admin/stats.php:279 ../admin/stats.php:390 
     471#: ../admin/stats.php:281 ../admin/stats.php:392 
    472472msgid "Activities Likes Stats" 
    473473msgstr "نمودار لایک در فعالیت ها" 
    474474 
    475 #: ../admin/stats.php:285 ../admin/stats.php:391 
     475#: ../admin/stats.php:287 ../admin/stats.php:393 
    476476msgid "Topics Likes Stats" 
    477477msgstr "نمودار لایک در تاپیک ها" 
    478478 
    479 #: ../admin/stats.php:316 ../admin/stats.php:392 
     479#: ../admin/stats.php:318 ../admin/stats.php:394 
    480480msgid "Likes Percent" 
    481481msgstr "درصد تخصیص لایک ها" 
    482482 
    483 #: ../admin/stats.php:384 
     483#: ../admin/stats.php:386 
    484484msgid "Show on screen" 
    485485msgstr "تنظیمات صفحه" 
    486486 
    487 #: ../admin/stats.php:386 
     487#: ../admin/stats.php:388 
    488488msgid "Welcome" 
    489489msgstr "خوش آمدید" 
    490490 
    491 #: ../admin/stats.php:401 
     491#: ../admin/stats.php:403 
    492492msgid "Days" 
    493493msgstr "روزها" 
    494494 
    495 #: ../admin/stats.php:402 ../admin/classes/class-settings.php:28 
     495#: ../admin/stats.php:404 ../admin/classes/class-settings.php:28 
    496496msgid "Save Settings" 
    497497msgstr "ذخیره تغییرات" 
     
    508508"title=\"Wordpress ULike\" target=\"_blank\">علي ميرزائي</a>" 
    509509 
    510 #: ../admin/admin.php:76 ../inc/wp-functions.php:474 
     510#: ../admin/admin.php:76 ../inc/wp-functions.php:581 
    511511msgid "WP ULike" 
    512512msgstr "وردپرس یولایک" 
     
    583583 
    584584#: ../admin/classes/class-widget.php:430 ../admin/classes/tmp/settings.php:95 
    585 #: ../admin/classes/tmp/settings.php:201 ../admin/classes/tmp/settings.php:349 
    586 #: ../admin/classes/tmp/settings.php:475 
     585#: ../admin/classes/tmp/settings.php:208 ../admin/classes/tmp/settings.php:356 
     586#: ../admin/classes/tmp/settings.php:482 
    587587msgid "Heart" 
    588588msgstr "قلب" 
     
    606606#: ../admin/classes/class-widget.php:455 
    607607#: ../admin/classes/class-settings.php:97 
    608 #: ../admin/classes/tmp/settings.php:341 
     608#: ../admin/classes/tmp/settings.php:348 
    609609msgid "BuddyPress" 
    610610msgstr "بادی پرس" 
     
    635635 
    636636#: ../admin/classes/class-settings.php:48 
    637 #: ../admin/classes/tmp/settings.php:139 ../admin/classes/tmp/settings.php:230 
    638 #: ../admin/classes/tmp/settings.php:384 ../admin/classes/tmp/settings.php:503 
     637#: ../admin/classes/tmp/settings.php:146 ../admin/classes/tmp/settings.php:237 
     638#: ../admin/classes/tmp/settings.php:391 ../admin/classes/tmp/settings.php:510 
    639639msgid "Logging Method" 
    640640msgstr "روش وقایع نگاری" 
     
    749749#: ../admin/classes/class-settings.php:99 
    750750#: ../admin/classes/class-settings.php:107 
    751 #: ../admin/classes/tmp/settings.php:101 ../admin/classes/tmp/settings.php:207 
    752 #: ../admin/classes/tmp/settings.php:355 ../admin/classes/tmp/settings.php:481 
     751#: ../admin/classes/tmp/settings.php:101 ../admin/classes/tmp/settings.php:214 
     752#: ../admin/classes/tmp/settings.php:362 ../admin/classes/tmp/settings.php:488 
    753753msgid "Automatic display" 
    754754msgstr "نمایش خودکار" 
     
    766766#: ../admin/classes/class-settings.php:99 
    767767#: ../admin/classes/class-settings.php:107 
    768 #: ../admin/classes/tmp/settings.php:170 ../admin/classes/tmp/settings.php:261 
    769 #: ../admin/classes/tmp/settings.php:415 ../admin/classes/tmp/settings.php:534 
     768#: ../admin/classes/tmp/settings.php:177 ../admin/classes/tmp/settings.php:268 
     769#: ../admin/classes/tmp/settings.php:422 ../admin/classes/tmp/settings.php:541 
    770770msgid "Users Like Box Template" 
    771771msgstr "قالب جعبه لایک کاربران" 
     
    779779 
    780780#: ../admin/classes/class-settings.php:82 
    781 #: ../admin/classes/tmp/settings.php:169 ../inc/classes/class-ulike.php:426 
     781#: ../admin/classes/tmp/settings.php:176 ../inc/classes/class-ulike.php:427 
    782782msgid "Users who have LIKED this post:" 
    783783msgstr "کاربرانی که این مطلب را پسندیده اند:" 
    784784 
    785785#: ../admin/classes/class-settings.php:89 
    786 #: ../admin/classes/tmp/settings.php:193 
     786#: ../admin/classes/tmp/settings.php:200 
    787787msgid "Comments" 
    788788msgstr "دیدگاه ها" 
     
    797797 
    798798#: ../admin/classes/class-settings.php:91 
    799 #: ../admin/classes/tmp/settings.php:260 
     799#: ../admin/classes/tmp/settings.php:267 
    800800msgid "Users who have LIKED this comment:" 
    801801msgstr "کاربرانی که این دیدگاه را پسندیده اند:" 
     
    812812#: ../admin/classes/class-settings.php:99 
    813813#: ../admin/classes/class-settings.php:107 
    814 #: ../admin/classes/tmp/settings.php:414 
     814#: ../admin/classes/tmp/settings.php:421 
    815815msgid "Users who have liked this activity:" 
    816816msgstr "کاربرانی که این فعالیت را پسندیده اند:" 
    817817 
    818818#: ../admin/classes/class-settings.php:99 
    819 #: ../admin/classes/tmp/settings.php:435 
     819#: ../admin/classes/tmp/settings.php:442 
    820820msgid "Post Activity Text" 
    821821msgstr "متن فعالیت مطالب" 
    822822 
    823823#: ../admin/classes/class-settings.php:99 
    824 #: ../admin/classes/tmp/settings.php:441 
     824#: ../admin/classes/tmp/settings.php:448 
    825825msgid "Comment Activity Text" 
    826826msgstr "متن فعالیت دیدگاه ها" 
    827827 
    828828#: ../admin/classes/class-settings.php:105 
    829 #: ../admin/classes/tmp/settings.php:467 
     829#: ../admin/classes/tmp/settings.php:474 
    830830msgid "bbPress" 
    831831msgstr "بی بی پرس" 
     
    894894 
    895895#: ../admin/classes/tmp/settings.php:33 ../admin/classes/tmp/settings.php:38 
    896 #: ../admin/classes/tmp/settings.php:325 
     896#: ../admin/classes/tmp/settings.php:332 
    897897msgid "Best size: 16x16" 
    898898msgstr "سایز مناسب : 16x16" 
     
    932932#: ../admin/classes/tmp/settings.php:61 ../admin/classes/tmp/settings.php:68 
    933933#: ../admin/classes/tmp/settings.php:102 ../admin/classes/tmp/settings.php:133 
    934 #: ../admin/classes/tmp/settings.php:152 ../admin/classes/tmp/settings.php:208 
    935 #: ../admin/classes/tmp/settings.php:224 ../admin/classes/tmp/settings.php:243 
    936 #: ../admin/classes/tmp/settings.php:290 ../admin/classes/tmp/settings.php:356 
    937 #: ../admin/classes/tmp/settings.php:371 ../admin/classes/tmp/settings.php:378 
    938 #: ../admin/classes/tmp/settings.php:397 ../admin/classes/tmp/settings.php:422 
    939 #: ../admin/classes/tmp/settings.php:429 ../admin/classes/tmp/settings.php:482 
    940 #: ../admin/classes/tmp/settings.php:497 ../admin/classes/tmp/settings.php:516 
     934#: ../admin/classes/tmp/settings.php:140 ../admin/classes/tmp/settings.php:159 
     935#: ../admin/classes/tmp/settings.php:215 ../admin/classes/tmp/settings.php:231 
     936#: ../admin/classes/tmp/settings.php:250 ../admin/classes/tmp/settings.php:297 
     937#: ../admin/classes/tmp/settings.php:363 ../admin/classes/tmp/settings.php:378 
     938#: ../admin/classes/tmp/settings.php:385 ../admin/classes/tmp/settings.php:404 
     939#: ../admin/classes/tmp/settings.php:429 ../admin/classes/tmp/settings.php:436 
     940#: ../admin/classes/tmp/settings.php:489 ../admin/classes/tmp/settings.php:504 
     941#: ../admin/classes/tmp/settings.php:523 
    941942msgid "Activate" 
    942943msgstr "فعال سازی" 
     
    972973msgstr "پیغام اطلاعیه لغو پسندیدن" 
    973974 
    974 #: ../admin/classes/tmp/settings.php:92 ../admin/classes/tmp/settings.php:198 
    975 #: ../admin/classes/tmp/settings.php:346 ../admin/classes/tmp/settings.php:472 
     975#: ../admin/classes/tmp/settings.php:92 ../admin/classes/tmp/settings.php:205 
     976#: ../admin/classes/tmp/settings.php:353 ../admin/classes/tmp/settings.php:479 
    976977#: ../inc/wp-strings.php:10 
    977978msgid "Themes" 
    978979msgstr "قالب ها" 
    979980 
    980 #: ../admin/classes/tmp/settings.php:94 ../admin/classes/tmp/settings.php:200 
    981 #: ../admin/classes/tmp/settings.php:348 ../admin/classes/tmp/settings.php:474 
     981#: ../admin/classes/tmp/settings.php:94 ../admin/classes/tmp/settings.php:207 
     982#: ../admin/classes/tmp/settings.php:355 ../admin/classes/tmp/settings.php:481 
    982983#: ../inc/wp-strings.php:25 
    983984msgid "Default" 
    984985msgstr "پیشفرض" 
    985986 
    986 #: ../admin/classes/tmp/settings.php:106 ../admin/classes/tmp/settings.php:212 
    987 #: ../admin/classes/tmp/settings.php:360 ../admin/classes/tmp/settings.php:486 
     987#: ../admin/classes/tmp/settings.php:106 ../admin/classes/tmp/settings.php:219 
     988#: ../admin/classes/tmp/settings.php:367 ../admin/classes/tmp/settings.php:493 
    988989msgid "Auto Display Position" 
    989990msgstr "محل قرار گیری در نمایش خودکار" 
    990991 
    991 #: ../admin/classes/tmp/settings.php:109 ../admin/classes/tmp/settings.php:215 
    992 #: ../admin/classes/tmp/settings.php:489 
     992#: ../admin/classes/tmp/settings.php:109 ../admin/classes/tmp/settings.php:222 
     993#: ../admin/classes/tmp/settings.php:496 
    993994msgid "Top of Content" 
    994995msgstr "بالای محتوا" 
    995996 
    996 #: ../admin/classes/tmp/settings.php:110 ../admin/classes/tmp/settings.php:216 
    997 #: ../admin/classes/tmp/settings.php:490 
     997#: ../admin/classes/tmp/settings.php:110 ../admin/classes/tmp/settings.php:223 
     998#: ../admin/classes/tmp/settings.php:497 
    998999msgid "Bottom of Content" 
    9991000msgstr "پایین محتوا" 
    10001001 
    1001 #: ../admin/classes/tmp/settings.php:111 ../admin/classes/tmp/settings.php:217 
     1002#: ../admin/classes/tmp/settings.php:111 ../admin/classes/tmp/settings.php:224 
    10021003msgid "Top and Bottom" 
    10031004msgstr "بالا و پایین" 
     
    10401041"شما می توانید بر روی این صفحات فیلتر گذاری کنید تا دکمه لایک نمایش داده نشود" 
    10411042 
    1042 #: ../admin/classes/tmp/settings.php:132 ../admin/classes/tmp/settings.php:223 
    1043 #: ../admin/classes/tmp/settings.php:377 ../admin/classes/tmp/settings.php:496 
     1043#: ../admin/classes/tmp/settings.php:132 
     1044msgid "Google Rich Snippets" 
     1045msgstr "گوگل ریچ اسنیپت" 
     1046 
     1047#: ../admin/classes/tmp/settings.php:134 
     1048msgid "Add rich snippet for ratings in form of schema.org" 
     1049msgstr "این آپشن، رتبه ی نوشته شما را از بین 5 ستاره مشخص می کند." 
     1050 
     1051#: ../admin/classes/tmp/settings.php:139 ../admin/classes/tmp/settings.php:230 
     1052#: ../admin/classes/tmp/settings.php:384 ../admin/classes/tmp/settings.php:503 
    10441053msgid "Only registered Users" 
    10451054msgstr "محدودسازی لایک کاربران" 
    10461055 
    1047 #: ../admin/classes/tmp/settings.php:134 
     1056#: ../admin/classes/tmp/settings.php:141 
    10481057msgid "<strong>Only</strong> registered users have permission to like posts." 
    10491058msgstr "" 
     
    10511060"مطالب را لایک کنند." 
    10521061 
    1053 #: ../admin/classes/tmp/settings.php:141 ../admin/classes/tmp/settings.php:232 
    1054 #: ../admin/classes/tmp/settings.php:386 ../admin/classes/tmp/settings.php:505 
     1062#: ../admin/classes/tmp/settings.php:148 ../admin/classes/tmp/settings.php:239 
     1063#: ../admin/classes/tmp/settings.php:393 ../admin/classes/tmp/settings.php:512 
    10551064msgid "Do Not Log" 
    10561065msgstr "وقایع نگاری نکن" 
    10571066 
    1058 #: ../admin/classes/tmp/settings.php:142 ../admin/classes/tmp/settings.php:233 
    1059 #: ../admin/classes/tmp/settings.php:387 ../admin/classes/tmp/settings.php:506 
     1067#: ../admin/classes/tmp/settings.php:149 ../admin/classes/tmp/settings.php:240 
     1068#: ../admin/classes/tmp/settings.php:394 ../admin/classes/tmp/settings.php:513 
    10601069msgid "Logged By Cookie" 
    10611070msgstr "با کوکی" 
    10621071 
    1063 #: ../admin/classes/tmp/settings.php:143 ../admin/classes/tmp/settings.php:234 
    1064 #: ../admin/classes/tmp/settings.php:388 ../admin/classes/tmp/settings.php:507 
     1072#: ../admin/classes/tmp/settings.php:150 ../admin/classes/tmp/settings.php:241 
     1073#: ../admin/classes/tmp/settings.php:395 ../admin/classes/tmp/settings.php:514 
    10651074msgid "Logged By IP" 
    10661075msgstr "با آی پی" 
    10671076 
    1068 #: ../admin/classes/tmp/settings.php:144 ../admin/classes/tmp/settings.php:235 
    1069 #: ../admin/classes/tmp/settings.php:389 ../admin/classes/tmp/settings.php:508 
     1077#: ../admin/classes/tmp/settings.php:151 ../admin/classes/tmp/settings.php:242 
     1078#: ../admin/classes/tmp/settings.php:396 ../admin/classes/tmp/settings.php:515 
    10701079msgid "Logged By Cookie & IP" 
    10711080msgstr "با کوکی و آی پی" 
    10721081 
    1073 #: ../admin/classes/tmp/settings.php:145 ../admin/classes/tmp/settings.php:236 
    1074 #: ../admin/classes/tmp/settings.php:390 ../admin/classes/tmp/settings.php:509 
     1082#: ../admin/classes/tmp/settings.php:152 ../admin/classes/tmp/settings.php:243 
     1083#: ../admin/classes/tmp/settings.php:397 ../admin/classes/tmp/settings.php:516 
    10751084msgid "Logged By Username" 
    10761085msgstr "با نام کاربری" 
    10771086 
    1078 #: ../admin/classes/tmp/settings.php:151 ../admin/classes/tmp/settings.php:242 
    1079 #: ../admin/classes/tmp/settings.php:396 ../admin/classes/tmp/settings.php:515 
     1087#: ../admin/classes/tmp/settings.php:158 ../admin/classes/tmp/settings.php:249 
     1088#: ../admin/classes/tmp/settings.php:403 ../admin/classes/tmp/settings.php:522 
    10801089msgid "Show Liked Users Box" 
    10811090msgstr "نمایش باکس کاربران لایک کرده" 
    10821091 
    1083 #: ../admin/classes/tmp/settings.php:153 ../admin/classes/tmp/settings.php:244 
    1084 #: ../admin/classes/tmp/settings.php:398 ../admin/classes/tmp/settings.php:517 
     1092#: ../admin/classes/tmp/settings.php:160 ../admin/classes/tmp/settings.php:251 
     1093#: ../admin/classes/tmp/settings.php:405 ../admin/classes/tmp/settings.php:524 
    10851094msgid "" 
    10861095"Active this option to show liked users avatars in the bottom of button like." 
     
    10891098"لایک، نمایش دهید." 
    10901099 
    1091 #: ../admin/classes/tmp/settings.php:158 ../admin/classes/tmp/settings.php:249 
    1092 #: ../admin/classes/tmp/settings.php:403 ../admin/classes/tmp/settings.php:522 
     1100#: ../admin/classes/tmp/settings.php:165 ../admin/classes/tmp/settings.php:256 
     1101#: ../admin/classes/tmp/settings.php:410 ../admin/classes/tmp/settings.php:529 
    10931102msgid "Size of Gravatars" 
    10941103msgstr "سایز آوتار" 
    10951104 
    1096 #: ../admin/classes/tmp/settings.php:159 ../admin/classes/tmp/settings.php:250 
    1097 #: ../admin/classes/tmp/settings.php:404 ../admin/classes/tmp/settings.php:523 
     1105#: ../admin/classes/tmp/settings.php:166 ../admin/classes/tmp/settings.php:257 
     1106#: ../admin/classes/tmp/settings.php:411 ../admin/classes/tmp/settings.php:530 
    10981107msgid "Size of Gravatars to return (max is 512)" 
    10991108msgstr "سایز تصاویر گراواتار (بیشترین اندازه 512)" 
    11001109 
    1101 #: ../admin/classes/tmp/settings.php:164 ../admin/classes/tmp/settings.php:255 
    1102 #: ../admin/classes/tmp/settings.php:409 ../admin/classes/tmp/settings.php:528 
     1110#: ../admin/classes/tmp/settings.php:171 ../admin/classes/tmp/settings.php:262 
     1111#: ../admin/classes/tmp/settings.php:416 ../admin/classes/tmp/settings.php:535 
    11031112msgid "Number Of The Users" 
    11041113msgstr "تعداد کاربران قابل نمایش" 
    11051114 
    1106 #: ../admin/classes/tmp/settings.php:165 ../admin/classes/tmp/settings.php:256 
    1107 #: ../admin/classes/tmp/settings.php:410 ../admin/classes/tmp/settings.php:529 
     1115#: ../admin/classes/tmp/settings.php:172 ../admin/classes/tmp/settings.php:263 
     1116#: ../admin/classes/tmp/settings.php:417 ../admin/classes/tmp/settings.php:536 
    11081117msgid "The number of users to show in the users liked box" 
    11091118msgstr "حداکثر چند کاربر در باکس لایک کنندگان، نمایش داده شوند؟!؟" 
    11101119 
    1111 #: ../admin/classes/tmp/settings.php:171 ../admin/classes/tmp/settings.php:262 
    1112 #: ../admin/classes/tmp/settings.php:416 ../admin/classes/tmp/settings.php:436 
    1113 #: ../admin/classes/tmp/settings.php:442 ../admin/classes/tmp/settings.php:535 
     1120#: ../admin/classes/tmp/settings.php:178 ../admin/classes/tmp/settings.php:269 
     1121#: ../admin/classes/tmp/settings.php:423 ../admin/classes/tmp/settings.php:443 
     1122#: ../admin/classes/tmp/settings.php:449 ../admin/classes/tmp/settings.php:542 
    11141123msgid "Allowed Variables:" 
    11151124msgstr "متغیرهای قابل استفاده:" 
    11161125 
    1117 #: ../admin/classes/tmp/settings.php:175 ../admin/classes/tmp/settings.php:266 
    1118 #: ../admin/classes/tmp/settings.php:446 ../admin/classes/tmp/settings.php:539 
     1126#: ../admin/classes/tmp/settings.php:182 ../admin/classes/tmp/settings.php:273 
     1127#: ../admin/classes/tmp/settings.php:453 ../admin/classes/tmp/settings.php:546 
    11191128msgid "Delete All Logs" 
    11201129msgstr "حذف تمام وقایع" 
    11211130 
    1122 #: ../admin/classes/tmp/settings.php:176 ../admin/classes/tmp/settings.php:267 
    1123 #: ../admin/classes/tmp/settings.php:447 ../admin/classes/tmp/settings.php:540 
     1131#: ../admin/classes/tmp/settings.php:183 ../admin/classes/tmp/settings.php:274 
     1132#: ../admin/classes/tmp/settings.php:454 ../admin/classes/tmp/settings.php:547 
    11241133msgid "You Are About To Delete All Likes Logs. This Action Is Not Reversible." 
    11251134msgstr "" 
     
    11271136"است." 
    11281137 
    1129 #: ../admin/classes/tmp/settings.php:181 ../admin/classes/tmp/settings.php:272 
    1130 #: ../admin/classes/tmp/settings.php:452 ../admin/classes/tmp/settings.php:545 
     1138#: ../admin/classes/tmp/settings.php:188 ../admin/classes/tmp/settings.php:279 
     1139#: ../admin/classes/tmp/settings.php:459 ../admin/classes/tmp/settings.php:552 
    11311140msgid "Delete All Data" 
    11321141msgstr "حذف تمام داده ها" 
    11331142 
    1134 #: ../admin/classes/tmp/settings.php:182 ../admin/classes/tmp/settings.php:273 
    1135 #: ../admin/classes/tmp/settings.php:453 ../admin/classes/tmp/settings.php:546 
     1143#: ../admin/classes/tmp/settings.php:189 ../admin/classes/tmp/settings.php:280 
     1144#: ../admin/classes/tmp/settings.php:460 ../admin/classes/tmp/settings.php:553 
    11361145msgid "You Are About To Delete All Likes Data. This Action Is Not Reversible." 
    11371146msgstr "" 
     
    11391148"پذیر است." 
    11401149 
    1141 #: ../admin/classes/tmp/settings.php:225 
     1150#: ../admin/classes/tmp/settings.php:232 
    11421151msgid "" 
    11431152"<strong>Only</strong> registered users have permission to like comments." 
     
    11461155"دیدگاه ها را لایک کنند." 
    11471156 
    1148 #: ../admin/classes/tmp/settings.php:284 
     1157#: ../admin/classes/tmp/settings.php:291 
    11491158msgid "Customize" 
    11501159msgstr "سفارشی سازی" 
    11511160 
    1152 #: ../admin/classes/tmp/settings.php:289 
     1161#: ../admin/classes/tmp/settings.php:296 
    11531162msgid "Custom Style" 
    11541163msgstr "سفارشی سازی" 
    11551164 
    1156 #: ../admin/classes/tmp/settings.php:294 
     1165#: ../admin/classes/tmp/settings.php:301 
    11571166msgid "Active this option to see the custom style settings." 
    11581167msgstr "" 
     
    11601169"ببرید." 
    11611170 
    1162 #: ../admin/classes/tmp/settings.php:298 
     1171#: ../admin/classes/tmp/settings.php:305 
    11631172msgid "Button style" 
    11641173msgstr "دکمه لایک" 
    11651174 
    1166 #: ../admin/classes/tmp/settings.php:299 ../admin/classes/tmp/settings.php:312 
     1175#: ../admin/classes/tmp/settings.php:306 ../admin/classes/tmp/settings.php:319 
    11671176msgid "Background" 
    11681177msgstr "رنگ پس زمینه" 
    11691178 
    1170 #: ../admin/classes/tmp/settings.php:303 ../admin/classes/tmp/settings.php:316 
     1179#: ../admin/classes/tmp/settings.php:310 ../admin/classes/tmp/settings.php:323 
    11711180msgid "Border Color" 
    11721181msgstr "رنگ حاشیه" 
    11731182 
    1174 #: ../admin/classes/tmp/settings.php:307 ../admin/classes/tmp/settings.php:320 
     1183#: ../admin/classes/tmp/settings.php:314 ../admin/classes/tmp/settings.php:327 
    11751184msgid "Text Color" 
    11761185msgstr "رنگ متن" 
    11771186 
    1178 #: ../admin/classes/tmp/settings.php:311 
     1187#: ../admin/classes/tmp/settings.php:318 
    11791188msgid "Counter Style" 
    11801189msgstr "باکس شمارنده" 
    11811190 
    1182 #: ../admin/classes/tmp/settings.php:324 
     1191#: ../admin/classes/tmp/settings.php:331 
    11831192msgid "Loading Animation" 
    11841193msgstr "انیمیشن بارگذاری" 
    11851194 
    1186 #: ../admin/classes/tmp/settings.php:329 
     1195#: ../admin/classes/tmp/settings.php:336 
    11871196msgid "Custom CSS" 
    11881197msgstr "سفارشی سازی css" 
    11891198 
    1190 #: ../admin/classes/tmp/settings.php:363 
     1199#: ../admin/classes/tmp/settings.php:370 
    11911200msgid "Activity Content" 
    11921201msgstr "در متن فعالیت" 
    11931202 
    1194 #: ../admin/classes/tmp/settings.php:364 
     1203#: ../admin/classes/tmp/settings.php:371 
    11951204msgid "Activity Meta" 
    11961205msgstr "در متاباکس فعالیت" 
    11971206 
    1198 #: ../admin/classes/tmp/settings.php:370 
     1207#: ../admin/classes/tmp/settings.php:377 
    11991208msgid "Activity Comment" 
    12001209msgstr "نظرات فعالیت ها" 
    12011210 
    1202 #: ../admin/classes/tmp/settings.php:372 
     1211#: ../admin/classes/tmp/settings.php:379 
    12031212msgid "Add the possibility to like Buddypress comments in the activity stream" 
    12041213msgstr "" 
     
    12061215"می شود." 
    12071216 
    1208 #: ../admin/classes/tmp/settings.php:379 
     1217#: ../admin/classes/tmp/settings.php:386 
    12091218msgid "" 
    12101219"<strong>Only</strong> registered users have permission to like activities." 
     
    12131222"فعالیت های بادی پرس را لایک کنند." 
    12141223 
    1215 #: ../admin/classes/tmp/settings.php:421 
     1224#: ../admin/classes/tmp/settings.php:428 
    12161225msgid "BuddyPress Activity" 
    12171226msgstr "فعالیت های بادی پرس" 
    12181227 
    1219 #: ../admin/classes/tmp/settings.php:423 
     1228#: ../admin/classes/tmp/settings.php:430 
    12201229msgid "insert new likes in buddyPress activity page" 
    12211230msgstr "" 
     
    12231232"اضافه خواهد شد." 
    12241233 
    1225 #: ../admin/classes/tmp/settings.php:428 
     1234#: ../admin/classes/tmp/settings.php:435 
    12261235msgid "BuddyPress Custom Notification" 
    12271236msgstr "اطلاعیه های خصوصی بادی پرس" 
    12281237 
    1229 #: ../admin/classes/tmp/settings.php:430 
     1238#: ../admin/classes/tmp/settings.php:437 
    12301239msgid "Sends out notifications when you get a like from someone" 
    12311240msgstr "ارسال اطلاعیه های خصوصی به کاربران هنگامی که مطالب آنها لایک می شود" 
    12321241 
    1233 #: ../admin/classes/tmp/settings.php:498 
     1242#: ../admin/classes/tmp/settings.php:505 
    12341243msgid "<strong>Only</strong> registered users have permission to like Topics." 
    12351244msgstr "" 
     
    12371246"تاپیک ها  را لایک کنند." 
    12381247 
    1239 #: ../admin/classes/tmp/settings.php:533 
     1248#: ../admin/classes/tmp/settings.php:540 
    12401249msgid "Users who have liked this topic:" 
    12411250msgstr "کاربرانی که این تاپیک را پسندیده اند:" 
    12421251 
    1243 #: ../inc/wp-ulike.php:70 ../inc/wp-ulike.php:300 
     1252#: ../inc/wp-ulike.php:72 ../inc/wp-ulike.php:305 
    12441253msgid "You need to login in order to like this post: " 
    12451254msgstr "برای امتیاز دهی به این مطلب، لطفا وارد شوید: " 
    12461255 
    1247 #: ../inc/wp-ulike.php:70 ../inc/wp-ulike.php:142 ../inc/wp-ulike.php:224 
    1248 #: ../inc/wp-ulike.php:300 
     1256#: ../inc/wp-ulike.php:72 ../inc/wp-ulike.php:145 ../inc/wp-ulike.php:228 
     1257#: ../inc/wp-ulike.php:305 
    12491258msgid "click here" 
    12501259msgstr "برای ورود کلیک کنید" 
    12511260 
    1252 #: ../inc/wp-ulike.php:142 
     1261#: ../inc/wp-ulike.php:145 
    12531262msgid "You need to login in order to like this comment: " 
    12541263msgstr "برای امتیاز دهی به این دیدگاه، لطفا وارد شوید: " 
    12551264 
    1256 #: ../inc/wp-ulike.php:224 
     1265#: ../inc/wp-ulike.php:228 
    12571266msgid "You need to login in order to like this activity: " 
    12581267msgstr "برای امتیاز دهی به این فعالیت، لطفا وارد شوید: " 
    12591268 
    1260 #: ../inc/wp-ulike.php:353 
     1269#: ../inc/wp-ulike.php:358 
    12611270msgid "Error: This Method Is Not Exist!" 
    12621271msgstr "خطا: این متد وجود خارجی ندارد!" 
    12631272 
    1264 #: ../inc/wp-functions.php:189 
     1273#: ../inc/wp-functions.php:296 
    12651274msgid "WP ULike Activity" 
    12661275msgstr "فعالیت های وردپرس یولایک" 
    12671276 
    1268 #: ../inc/wp-functions.php:309 
     1277#: ../inc/wp-functions.php:416 
    12691278msgid "Likes" 
    12701279msgstr "لایک ها" 
    12711280 
    1272 #: ../inc/wp-functions.php:375 
     1281#: ../inc/wp-functions.php:482 
    12731282msgid "You have a new like from" 
    12741283msgstr "شما یک لایک جدید دریافت کرده اید! توسط :" 
    12751284 
    1276 #: ../inc/wp-functions.php:475 
     1285#: ../inc/wp-functions.php:582 
    12771286msgid "" 
    12781287"This hook award / deducts points from users who Like/Unlike any content of " 
     
    12831292"توانند به ترتیب امتیازات مثبت و منفی دریافت کنند." 
    12841293 
    1285 #: ../inc/wp-functions.php:483 
     1294#: ../inc/wp-functions.php:590 
    12861295msgid "Liking Content" 
    12871296msgstr "لایک نوشته" 
    12881297 
    1289 #: ../inc/wp-functions.php:484 
     1298#: ../inc/wp-functions.php:591 
    12901299msgid "Liked Content" 
    12911300msgstr "نوشته لایک شده" 
    12921301 
    1293 #: ../inc/wp-functions.php:485 
     1302#: ../inc/wp-functions.php:592 
    12941303msgid "Unliking Content" 
    12951304msgstr "لغو لایک نوشته" 
    12961305 
    1297 #: ../inc/wp-functions.php:486 
     1306#: ../inc/wp-functions.php:593 
    12981307msgid "Unliked Content" 
    12991308msgstr "نوشته لغو لایک شده" 
    13001309 
    1301 #: ../inc/wp-functions.php:508 ../inc/wp-functions.php:542 
     1310#: ../inc/wp-functions.php:615 ../inc/wp-functions.php:649 
    13021311msgid "Recent Posts Liked" 
    13031312msgstr "تازه ترین مطالب لایک شده" 
    13041313 
    1305 #: ../inc/wp-functions.php:513 ../inc/wp-functions.php:582 
     1314#: ../inc/wp-functions.php:620 ../inc/wp-functions.php:689 
    13061315msgid "Recent Comments Liked" 
    13071316msgstr "تازه ترین دیدگاه های لایک شده" 
    13081317 
    1309 #: ../inc/wp-functions.php:558 ../inc/wp-functions.php:599 
     1318#: ../inc/wp-functions.php:665 ../inc/wp-functions.php:706 
    13101319msgid "This user has not made any likes." 
    13111320msgstr "این کاربر، هنوز هیچ موردی را نپسندیده است." 
  • wp-ulike/trunk/readme.md

    r1667550 r1680761  
    11# [WP ULike](https://wordpress.org/plugins/wp-ulike/) # 
    22 
    3 ### Welcome to our GitHub Repository 
     3### WP ULike GitHub Repository 
    44 
    55WP ULike is a WordPress plugin that also supports BuddyPress, bbPress and a number of other plugins. It aims to be a comprehensive “Like” system for your site and enables site users to like a wide range of content types, including posts, forum topics and replies, comments and activity updates. It’s very simple to use and supports many options and full Statistics tools. Also, All are free :) 
    66 
    7 More information can be found at [WP ULike](http://preview.alimir.ir/developer/wp-ulike/). 
     7More information can be found at [WP ULike](http://wp-ulike.alimir.ir/). 
    88 
    99<a href="https://wordpress.org/plugins/wp-ulike/"><img src="http://preview.alimir.ir/wp-content/uploads/wp-ulike-created-banner.png"></a> 
     
    8686This will download the latest developer copy of WP ULike. 
    8787 
     88 
     89## How To Use this plugin? ## 
     90Just install the plugin and activate "automatic display" in plugin configuration panel. (WP ULike has four auto options for posts, comments, buddypress activities & bbPress Topics.) 
     91Also you can use of the following function and shortcode for your posts: 
     92*   Function: 
     93```php 
     94if(function_exists('wp_ulike')) wp_ulike('get'); 
     95``` 
     96*   Shortcode: 
     97``` 
     98[wp_ulike] 
     99``` 
     100 
     101## How To Change The Counter Format? ## 
     102Just add a filter on `wp_ulike_format_number`. e.g. If you want to remove `+` character, you need to make use of the sample code below: 
     103```php 
     104add_filter('wp_ulike_format_number','wp_ulike_new_format_number',10,3); 
     105function wp_ulike_new_format_number($value, $num, $plus){ 
     106    if ($num >= 1000 && get_option('wp_ulike_format_number') == '1'): 
     107    $value = round($num/1000, 2) . 'K'; 
     108    else: 
     109    $value = $num; 
     110    endif; 
     111    return $value; 
     112} 
     113``` 
     114 
     115## How To Change Schema Type? ## 
     116The default schema type is `CreativeWork`, if you want to change it to `Article`, you need to make use of the `wp_ulike_posts_add_attr` filter as shown in the sample code below: 
     117```php   
     118add_filter('wp_ulike_posts_add_attr', 'wp_ulike_change_posts_microdata_itemtype', 10);   
     119function wp_ulike_change_posts_microdata_itemtype() {   
     120    return 'itemscope itemtype="http://schema.org/Article"';   
     121} 
     122``` 
     123 
     124## How To Add Extra Microdata? ## 
     125Make use of the `wp_ulike_extra_structured_data` filter as shown in the sample code below: 
     126```php   
     127add_filter('wp_ulike_extra_structured_data', 'wp_ulike_add_extra_structured_data', 10); 
     128function wp_ulike_add_extra_structured_data(){ 
     129    $post_meta = '<div style="display: none;" itemprop="publisher" itemscope itemtype="https://schema.org/Organization">'; 
     130    $post_meta .= '<meta itemprop="name" content="WordPress" />'; 
     131    $post_meta .= '<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">'; 
     132    $post_meta .= '<meta itemprop="url" content="https://s.w.org/about/images/logos/wordpress-logo-hoz-rgb.png" />'; 
     133    $post_meta .= '</div>'; 
     134    $post_meta .= '</div>'; 
     135    return $post_meta; 
     136} 
     137``` 
     138 
     139## How To Remove All Schema Data Except Of aggregateRating? ## 
     140Make use of the `wp_ulike_remove_microdata_post_meta` & `wp_ulike_posts_add_attr` filters as shown in the sample code below: 
     141```php  
     142add_filter('wp_ulike_remove_microdata_post_meta', '__return_true', 10); 
     143add_filter('wp_ulike_posts_add_attr', '__return_null', 10); 
     144``` 
     145 
     146## How To Remove "0" Count If There Are No Likes? ## 
     147Make use of the `wp_ulike_count_box_template` filter as shown in the sample code below: 
     148```php 
     149add_filter('wp_ulike_count_box_template', 'wp_ulike_change_my_count_box_template', 10, 2); 
     150function wp_ulike_change_my_count_box_template($string, $counter) { 
     151    $num = preg_replace("/[^0-9,.]/", "", $counter); 
     152    if($num == 0) return; 
     153    else return $string; 
     154} 
     155``` 
     156 
     157## How To Change The Login Alert Template? ## 
     158Make use of the `wp_ulike_login_alert_template` filter as shown in the sample code below: 
     159```php  
     160add_filter('wp_ulike_login_alert_template', 'wp_ulike_change_login_alert_template', 10); 
     161function wp_ulike_change_login_alert_template(){ 
     162    return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>Please login to your account! :)</p>'; 
     163} 
     164``` 
     165 
     166## How To Get Post Likes Number? ## 
     167Make use of the following function in WP Loop: 
     168```php  
     169if (function_exists('wp_ulike_get_post_likes')): 
     170    echo wp_ulike_get_post_likes(get_the_ID()); 
     171endif; 
     172``` 
     173 
     174## How To Get Comment Likes Number? ## 
     175Make use of the following function in your comments loop: 
     176```php 
     177if (function_exists('wp_ulike_get_comment_likes')): 
     178    echo wp_ulike_get_comment_likes(get_comment_ID()); 
     179endif; 
     180``` 
     181 
     182## How To Sort Most Liked Posts?  ## 
     183Make use of the following query on a loop: 
     184```php 
     185$the_query = new WP_Query(array( 
     186    'post_status' => 'published', 
     187    'post_type' => 'post', 
     188    'orderby' => 'meta_value_num', 
     189    'meta_key' => '_liked', 
     190    'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
     191)); 
     192``` 
     193 
     194## How Can I Create Custom Template In Users Liked Box?  ## 
     195We have provided some variables in setting panel. You can use them in textarea and then save the new options.  
     196Attention: `%START_WHILE%` And `%END_WHILE%` variables are very important and you should use them out of the frequent string. (Such as `<li></li>` tags sample in default template) 
     197 
     198## Receive HTTP ERROR 500 on WP ULike > Statistics   ## 
     199Increasing Your WordPress Memory Limit in wp-config.php to fix this error. It is located in your WordPress site's root folder, and you will need to use an FTP client or file manager in your web hosting control panel. 
     200Next, you need to paste this code in wp-config.php file just before the line that says `That's all, stop editing! Happy blogging.` 
     201```php  
     202define( 'WP_MEMORY_LIMIT', '256M' ); 
     203``` 
     204 
    88205## Bugs ## 
    89206If you find an issue, let us know [here](https://github.com/Alimir/wp-ulike/issues?state=open)! 
  • wp-ulike/trunk/readme.txt

    r1667550 r1680761  
    55Tags: wp ulike, wordpress youlike plugin, like button, rating, vote, voting, most liked posts, wordpress like page, wordpress like post, wordpress vote page, wordpress vote post, wp like page, wp like post, wp like plugin, buddypress like system, buddypress votes, comment like system, voting button, wordpress, buddypress, statistics, stats likes, bbpress, bbPress like, WP-Translations, forums, community, credit, points, mycred, users, ultimate member 
    66Requires at least: 3.5 
    7 Tested up to: 4.7.5 
    8 Stable tag: 2.6 
     7Tested up to: 4.8 
     8Stable tag: 2.7 
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1717 
    1818= More Information = 
    19 *   Visit Our <a target="_blank" href="http://preview.alimir.ir/developer/wp-ulike/">Home Page</a>. 
    20 *   See Online <a target="_blank" href="http://preview.alimir.ir/wp-ulike-plugin">Demo</a>. 
    21 *   Fork Us In <a target="_blank" href="https://github.com/Alimir/wp-ulike">Github</a>. 
    22 *   WP Ulike <a target="_blank" href="http://alimir.github.io/wp-ulike/">Github</a> Page. 
     19*   Visit Our [Home Page](http://wp-ulike.alimir.ir/). 
     20*   See Online [Demo](http://preview.alimir.ir/wp-ulike-plugin). 
     21*   Fork Us In [Github](https://github.com/Alimir/wp-ulike). 
    2322 
    2423= Features = 
     
    8786*   English (United Kingdom) 
    8887 
     88Want to add a new language to WP ULike? Well! You can contribute via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-ulike). 
     89 
    8990= About Author = 
    90 *   My personal website: <a href="http://about.alimir.ir" target="_blank">Ali Mirzaei</a> 
    91 *   Follow me on <a href="https://www.facebook.com/alimir1993" target="_blank">Facebook</a> 
     91*   My personal website: [Ali Mirzaei](http://about.alimir.ir) 
     92*   Follow me on [Facebook](https://www.facebook.com/alimir1993) 
    9293*   Catch me on twitter as @alimirir 
    93 *   And Connect me on <a href="https://ir.linkedin.com/in/alimirir" target="_blank">Linkedin</a> 
     94*   And Connect me on [Linkedin](https://ir.linkedin.com/in/alimirir) 
    9495 
    9596== Installation == 
     
    123124 
    124125= How To Use this plugin? = 
    125 Just install the plugin and activate the "automatic display" in plugin configuration panel. (WP ULike has three auto options for the post, comments, buddypress activities & bbPress Topics.) 
    126  
    127 Also you can use this function and shortcode for the post likes: 
    128  
     126Just install the plugin and activate "automatic display" in plugin configuration panel. (WP ULike has four auto options for posts, comments, buddypress activities & bbPress Topics.) 
     127Also you can use of the following function and shortcode for your posts: 
    129128*   Function: 
    130129`if(function_exists('wp_ulike')) wp_ulike('get');` 
     
    132131`[wp_ulike]` 
    133132 
    134 = How To Change Format Number Function? = 
    135 * You can adding your changes on `wp_ulike_format_number` function with a simple filter. for example, if you want to remove the "+" character you can use this filter: 
     133= How To Change The Counter Format? = 
     134Just add a filter on `wp_ulike_format_number`. e.g. If you want to remove `+` character, you need to make use of the sample code below: 
    136135<code>  
    137136add_filter('wp_ulike_format_number','wp_ulike_new_format_number',10,3); 
     
    146145</code> 
    147146 
    148 = How To Get Posts Likes Number? = 
    149 * Use this function on WP Loop: 
     147= How To Change Schema Type? = 
     148* The default schema type is 'CreativeWork', if you want to change it to 'Article', you need to make use of the `wp_ulike_posts_add_attr` filter as shown in the sample code below: 
     149<code>   
     150add_filter('wp_ulike_posts_add_attr', 'wp_ulike_change_posts_microdata_itemtype', 10);   
     151function wp_ulike_change_posts_microdata_itemtype() {   
     152    return 'itemscope itemtype="http://schema.org/Article"';   
     153} 
     154</code> 
     155 
     156= How To Add Extra Microdata? = 
     157* Make use of the `wp_ulike_extra_structured_data` filter as shown in the sample code below: 
     158<code>   
     159add_filter('wp_ulike_extra_structured_data', 'wp_ulike_add_extra_structured_data', 10); 
     160function wp_ulike_add_extra_structured_data(){ 
     161    $post_meta = '<div style="display: none;" itemprop="publisher" itemscope itemtype="https://schema.org/Organization">'; 
     162    $post_meta .= '<meta itemprop="name" content="WordPress" />'; 
     163    $post_meta .= '<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">'; 
     164    $post_meta .= '<meta itemprop="url" content="https://s.w.org/about/images/logos/wordpress-logo-hoz-rgb.png" />'; 
     165    $post_meta .= '</div>'; 
     166    $post_meta .= '</div>'; 
     167    return $post_meta; 
     168} 
     169</code> 
     170 
     171= How To Remove All Schema Data Except Of aggregateRating? = 
     172* Make use of the `wp_ulike_remove_microdata_post_meta` & 'wp_ulike_posts_add_attr' filters as shown in the sample code below: 
     173<code>  
     174add_filter('wp_ulike_remove_microdata_post_meta', '__return_true', 10); 
     175add_filter('wp_ulike_posts_add_attr', '__return_null', 10); 
     176</code> 
     177 
     178= How To Remove "0" Count If There Are No Likes? = 
     179* Make use of the `wp_ulike_count_box_template` filter as shown in the sample code below: 
     180<code> 
     181<?php   
     182add_filter('wp_ulike_count_box_template', 'wp_ulike_change_my_count_box_template', 10, 2); 
     183function wp_ulike_change_my_count_box_template($string, $counter) { 
     184    $num = preg_replace("/[^0-9,.]/", "", $counter); 
     185    if($num == 0) return; 
     186    else return $string; 
     187} 
     188?> 
     189</code> 
     190 
     191= How To Change The Login Alert Template? = 
     192* Make use of the `wp_ulike_login_alert_template` filter as shown in the sample code below: 
     193<code>  
     194add_filter('wp_ulike_login_alert_template', 'wp_ulike_change_login_alert_template', 10); 
     195function wp_ulike_change_login_alert_template(){ 
     196    return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>Please login to your account! :)</p>'; 
     197} 
     198</code> 
     199 
     200= How To Get Post Likes Number? = 
     201* Make use of the following function in WP Loop: 
    150202<code>  
    151203if (function_exists('wp_ulike_get_post_likes')): 
     
    154206</code> 
    155207 
    156 = How To Get Comments Likes Number? = 
    157 * Use the following function in your comments loop: 
     208= How To Get Comment Likes Number? = 
     209* Make use of the following function in your comments loop: 
    158210<code>  
    159211if (function_exists('wp_ulike_get_comment_likes')): 
     
    163215 
    164216= How To Sort Most Liked Posts?  = 
    165 * Use this query on your theme: 
     217* Make use of the following query on a loop: 
    166218<code>  
    167219$the_query = new WP_Query(array( 
    168 'post_status' =>'published', 
    169 'post_type' =>'post', 
    170 'orderby' => 'meta_value_num', 
    171 'meta_key' => '_liked', 
    172 'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
     220    'post_status' => 'published', 
     221    'post_type' => 'post', 
     222    'orderby' => 'meta_value_num', 
     223    'meta_key' => '_liked', 
     224    'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
    173225)); 
    174226</code> 
     
    179231 
    180232= Receive HTTP ERROR 500 on WP ULike > Statistics   = 
    181 * Increasing Your WordPress Memory Limit in wp-config.php to fix this error. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel. 
    182 * Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’ 
     233* Increasing Your WordPress Memory Limit in wp-config.php to fix this error. It is located in your WordPress site's root folder, and you will need to use an FTP client or file manager in your web hosting control panel. 
     234* Next, you need to paste this code in wp-config.php file just before the line that says "That's all, stop editing! Happy blogging." 
    183235<code>  
    184236define( 'WP_MEMORY_LIMIT', '256M' ); 
     
    186238 
    187239== Changelog == 
     240 
     241= 2.7 = 
     242* Added: Flexible google rich snippets for posts. (Add rich snippet for likes in form of schema.org) 
     243* Added: 'wp_ulike_count_box_template' filter to customize count box template. 
     244* Added: 'wp_ulike_login_alert_template' filter to customize login alert message. 
     245* Added: 'wp_ulike_bp_notifications_template' filter to customize buddypress notification message. 
     246* Added: New admin font icons for dashboard area. 
     247* Removed: svg-source.php file. 
     248* Updated: WP ULike URI. 
     249* Updated: Some elements of "About WP ULike" area. 
     250* Updated: Persian language file. 
    188251 
    189252= 2.6 = 
  • wp-ulike/trunk/wp-ulike.php

    r1667550 r1680761  
    11<?php 
    22/* 
    3 Plugin Name:WP ULike 
    4 Plugin URI: http://preview.alimir.ir/developer/wp-ulike/ 
     3Plugin Name: WP ULike 
     4Plugin URI: http://wp-ulike.alimir.ir/ 
    55Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options. 
    6 Version: 2.6 
     6Version: 2.7 
    77Author: Ali Mirzaei 
    88Author URI: http://about.alimir.ir 
     
    1010Domain Path: /lang/ 
    1111License: GPL2 
     12 
     13/------------------------------------------\ 
     14 _     __     _ _____      _  _  _   _  
     15| |   /  \   | | ___ \    | |(_)| | / / 
     16| |  / /\ \  | | |_/ /   _| || || |/ / ___ 
     17| | / /  \ \ | |  __/ | | | || ||   | / _ \ 
     18| |/ /    \ \| | |  | |_| | || || |\ \  __/ 
     19\___/      \__/\_|   \__,_|_||_||_| \_\___| 
     20 
     21\--> Alimir, 2017 <--/ 
     22 
     23Thanks for using WP ULike plugin! 
     24 
     25\------------------------------------------/ 
     26 
    1227*/ 
    1328 
    1429//Do not change this value 
    15 define( 'WP_ULIKE_VERSION'      , '2.6' ); 
     30define( 'WP_ULIKE_PLUGIN_URI'   , 'http://wp-ulike.alimir.ir/' ); 
     31define( 'WP_ULIKE_VERSION'      , '2.7' ); 
    1632define( 'WP_ULIKE_SLUG'         , 'wp-ulike' ); 
    1733define( 'WP_ULIKE_DB_VERSION'   , '1.3' ); 
Note: See TracChangeset for help on using the changeset viewer.