WordPress.org

Plugin Directory

Changeset 1706048


Ignore:
Timestamp:
08/01/17 04:56:39 (6 months ago)
Author:
alimir
Message:

Upgraded to V2.8

Location:
wp-ulike
Files:
145 added
3 deleted
14 edited

Legend:

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

    r1680761 r1706048  
    125125 
    126126        <h1><?php echo _e('Welcome to WP ULike',WP_ULIKE_SLUG) . ' ' . WP_ULIKE_VERSION; ?></h1> 
    127  
    128127        <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 /> 
    129         <a target="_blank" href="<?php echo WP_ULIKE_PLUGIN_URI; ?>"> <?php _e('Visit our homepage',WP_ULIKE_SLUG); ?></a> 
     128         
     129        <?php add_thickbox(); ?> 
     130        <a target="_blank" href="<?php echo WP_ULIKE_PLUGIN_URI . '?TB_iframe=true&amp;width=800&amp;height=600'; ?>" class="thickbox"> <?php _e('Visit our homepage',WP_ULIKE_SLUG); ?></a> 
    130131        </div> 
    131132        <div class="ulike-badge"><?php echo _e('Version',WP_ULIKE_SLUG) . ' ' . WP_ULIKE_VERSION; ?></div> 
  • wp-ulike/trunk/admin/admin.php

    r1680761 r1706048  
    4545 
    4646    //include about menu functions 
    47     include( plugin_dir_path(__FILE__) . 'about.php'); 
     47    require_once( plugin_dir_path(__FILE__) . 'about.php'); 
    4848 
    4949    //include logs menu functions 
    50     include( plugin_dir_path(__FILE__) . 'logs.php'); 
     50    require_once( plugin_dir_path(__FILE__) . 'logs.php'); 
    5151 
    5252    //include statistics menu functions 
    53     include( plugin_dir_path(__FILE__) . 'stats.php'); 
     53    require_once( plugin_dir_path(__FILE__) . 'stats.php'); 
    5454 
    5555    /** 
     
    6060     * @updated         2.0 
    6161     * @updated         2.4.2 
    62      * @return          String 
    63      */ 
    64       
     62     * @updated         2.8 //Added new hooks for default settings. 
     63     * @return          String 
     64     */ 
    6565    //include setting class 
    66     include( plugin_dir_path(__FILE__) . 'classes/class-settings.php' ); 
     66    require_once( plugin_dir_path(__FILE__) . 'classes/class-settings.php' ); 
    6767    //include setting templates 
    68     include( plugin_dir_path(__FILE__) . 'classes/tmp/settings.php' );       
    69  
     68    require_once( plugin_dir_path(__FILE__) . 'classes/tmp/settings.php' ); 
    7069    //activate general setting panel 
    7170    $wp_ulike_setting = wp_ulike_create_settings_page( 
     
    7372      __( 'WP ULike Settings', WP_ULIKE_SLUG ), 
    7473      array( 
    75         'parent'   => false, 
    76         'title'    =>  __( 'WP ULike', WP_ULIKE_SLUG ), 
    77         'position' =>  313, 
    78         'icon_url' => 'dashicons-wp-ulike' 
     74          'parent'   => false, 
     75          'title'    =>  __( 'WP ULike', WP_ULIKE_SLUG ), 
     76          'position' =>  313, 
     77          'icon_url' => 'dashicons-wp-ulike' 
    7978      ), 
    8079      array( 
    81         'wp_ulike_general'  => $wp_ulike_general 
     80          'wp_ulike_general'    => $wp_ulike_general 
    8281      ), 
    8382      array( 
    84         'tabs'              => true, 
    85         'updated'           => __('Settings saved.',WP_ULIKE_SLUG) 
     83          'tabs'                => true, 
     84          'updated'             => __('Settings saved.',WP_ULIKE_SLUG) 
    8685      ) 
    8786    ); 
    88      
     87 
    8988    //activate other settings panels 
    9089    $wp_ulike_setting->apply_settings( array( 
    91       'wp_ulike_posts'      => $wp_ulike_posts, 
    92       'wp_ulike_comments'   => $wp_ulike_comments, 
    93       'wp_ulike_buddypress' => $wp_ulike_buddypress, 
    94       'wp_ulike_bbpress'    => $wp_ulike_bbpress, 
    95       'wp_ulike_customize'  => $wp_ulike_customize 
    96     ) ); 
     90            'wp_ulike_posts'        => apply_filters( 'wp_ulike_posts_settings', $wp_ulike_posts ), 
     91            'wp_ulike_comments'     => apply_filters( 'wp_ulike_comments_settings', $wp_ulike_comments ), 
     92            'wp_ulike_buddypress'   => apply_filters( 'wp_ulike_buddypress_settings', $wp_ulike_buddypress ), 
     93            'wp_ulike_bbpress'      => apply_filters( 'wp_ulike_bbpress_settings', $wp_ulike_bbpress ), 
     94            'wp_ulike_customize'    => apply_filters( 'wp_ulike_customize_settings', $wp_ulike_customize ) 
     95        ) 
     96    ); 
    9797 
    9898    /** 
     
    203203 
    204204    /** 
     205     * Generate templates list 
     206     * 
     207     * @author          Alimir       
     208     * @since           2.8 
     209     * @return          Array 
     210     */ 
     211    function wp_ulike_generate_templates_list(){ 
     212        return array( 
     213            'wpulike-default'   => array( 
     214                'name' => __('Default', WP_ULIKE_SLUG), 
     215                'callback' => 'wp_ulike_set_default_template' 
     216            ), 
     217            'wpulike-heart' => array( 
     218                'name' => __('Heart', WP_ULIKE_SLUG), 
     219                'callback' => 'wp_ulike_set_simple_heart_template'                   
     220            ), 
     221            'wpulike-robeen'    => array( 
     222                'name' => __('Robeen', WP_ULIKE_SLUG), 
     223                'callback' => 'wp_ulike_set_robeen_template'                     
     224            ) 
     225        ); 
     226    } 
     227 
     228    /** 
    205229     * The counter of last likes by the admin last login time. 
    206230     * 
  • wp-ulike/trunk/admin/classes/class-settings.php

    r1667550 r1706048  
    323323        echo "<select {$attrs} id='{$id}'>"; 
    324324        foreach ( $options as $v => $label ) { 
     325          if(is_array($label)){ 
     326              $label = $label['name']; 
     327          } 
    325328          $select = selected( $v, $value, false ); 
    326329          echo "<option value='{$v}' {$select} />{$label}</option>"; 
  • wp-ulike/trunk/admin/classes/tmp/settings.php

    r1680761 r1706048  
    8282    /******************************************************* 
    8383      Posts Settings 
    84     *******************************************************/     
     84    *******************************************************/ 
    8585         
    8686    $wp_ulike_posts         = array( 
     
    9191            'default'       => 'default', 
    9292            'label'         => __( 'Themes',WP_ULIKE_SLUG), 
    93             'options'       => array( 
    94               'wpulike-default' => __('Default', WP_ULIKE_SLUG), 
    95               'wpulike-heart'   => __('Heart', WP_ULIKE_SLUG) 
    96             ) 
     93            'options'       => apply_filters( 'wp_ulike_add_templates_list', call_user_func('wp_ulike_generate_templates_list') ) 
    9794          ), 
    9895          'auto_display'    => array( 
     
    204201            'default'       => 'default', 
    205202            'label'         => __( 'Themes',WP_ULIKE_SLUG), 
    206             'options'       => array( 
    207               'wpulike-default' => __('Default', WP_ULIKE_SLUG), 
    208               'wpulike-heart'   => __('Heart', WP_ULIKE_SLUG) 
    209             ) 
     203            'options'       => apply_filters( 'wp_ulike_add_templates_list', call_user_func('wp_ulike_generate_templates_list') ) 
    210204          ),         
    211205          'auto_display'    => array( 
     
    352346            'default'       => 'default', 
    353347            'label'         => __( 'Themes',WP_ULIKE_SLUG), 
    354             'options'       => array( 
    355               'wpulike-default' => __('Default', WP_ULIKE_SLUG), 
    356               'wpulike-heart'   => __('Heart', WP_ULIKE_SLUG) 
    357             ) 
     348            'options'       => apply_filters( 'wp_ulike_add_templates_list', call_user_func('wp_ulike_generate_templates_list') ) 
    358349          ), 
    359350          'auto_display'  => array( 
     
    478469            'default'       => 'default', 
    479470            'label'         => __( 'Themes',WP_ULIKE_SLUG), 
    480             'options'       => array( 
    481               'wpulike-default' => __('Default', WP_ULIKE_SLUG), 
    482               'wpulike-heart'   => __('Heart', WP_ULIKE_SLUG) 
    483             ) 
     471            'options'       => apply_filters( 'wp_ulike_add_templates_list', call_user_func('wp_ulike_generate_templates_list') ) 
    484472          ),         
    485473          'auto_display'  => array( 
  • wp-ulike/trunk/assets/css/wp-ulike.css

    r1579042 r1706048  
    11/** 
    2  * WP ULike Plugin 2.4.1 
    3  * 
    4  * http://wordpress.org/plugins/wp-ulike/ 
    5  * https://github.com/Alimir/wp-ulike 
    6  * 
     2 * WP ULike 2.8 
     3 * @author Alimir [https://wordpress.org/plugins/wp-ulike/] 
    74 */ 
    8   
    9  /*------------------------- WP ULike Default Styles  -------------------------*/ 
    10   
     5 
     6/* 
     7    => Add Default template styles 
     8*/ 
     9 
    1110.wpulike { 
    1211    display: inline-block; 
    1312    position: relative; 
    1413    vertical-align: middle; 
    15     line-height: 1; 
    16     margin:0; 
    17 } 
    18 .wpulike .counter a { 
     14    overflow: hidden; 
     15    line-height: normal; 
     16    margin: 0 
     17} 
     18 
     19.wp_ulike_click_is_disabled{ 
     20    pointer-events: none; 
     21    cursor: default;     
     22} 
     23 
     24.wpulike .wp_ulike_btn { 
    1925    margin: 0; 
    2026    display: inline-block; 
    2127    border-radius: .25em; 
    2228    border: 1px solid #d3d3d3; 
    23     vertical-align: middle; 
    24     line-height: 1em; 
    25     padding: .25em .5em; 
     29    vertical-align: middle; 
     30    line-height: normal; 
     31    padding: 10px 20px; 
    2632    font-size: .75em; 
    27     cursor: pointer; 
    28     max-height:25px; 
    29  
     33    cursor: pointer; 
    3034    color: #777; 
    3135    background: #dfdfdf; 
    32     box-shadow: 1px 1px 0 rgba(255,255,255,0.5) inset; 
    33     text-shadow: 0 1px 0 rgba(255,255,255,0.5); 
     36    box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5) inset; 
     37    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); 
    3438    text-decoration: none; 
    35 } 
    36  
    37 .wpulike .counter a{ 
    3839    -webkit-transition: .25s; 
    3940    -moz-transition: .25s; 
    4041    -ms-transition: .25s; 
    4142    -o-transition: .25s; 
    42     transition: .25s; 
    43 } 
    44  
    45 .wpulike .counter a:focus{ 
     43    transition: .25s 
     44} 
     45 
     46.wpulike-default .wp_ulike_btn:focus { 
    4647    outline: none; 
    47     border-color: #999; 
    48 } 
    49  
    50 .wpulike .counter a:hover, 
    51 .wpulike .counter a:active { 
    52     text-decoration: none; 
    53     color: #EEE; 
    54     text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3); 
    55     background-color: #bdc3c7; 
    56     border-color: #95a5a6; 
    57 } 
    58  
    59 .wpulike .counter a.image, .wpulike .counter a.image-unlike { 
     48    border-color: #999 
     49} 
     50 
     51.wpulike-default .wp_ulike_btn:hover, 
     52.wpulike-default .wp_ulike_btn:active { 
     53    text-decoration: none; 
     54    color: #EEE; 
     55    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); 
     56    background-color: #bdc3c7; 
     57    border-color: #95a5a6 
     58} 
     59 
     60.wpulike .wp_ulike_btn.wp_ulike_put_text { 
     61    padding: 2px 10px; 
     62} 
     63 
     64.wpulike-default .wp_ulike_btn.wp_ulike_put_image{ 
    6065    background-image: url(../img/icons/add.png); 
    61     background-repeat:no-repeat; 
    62     background-position:center center; 
    63     padding:10px 20px; 
    64 } 
    65 .wpulike .counter a.image-unlike{ 
    66     background-image: url(../img/icons/remove.png); 
    67 } 
    68  
    69 .wpulike .counter a.loading { 
    70     background-image: url(../img/icons/loading.gif); 
    71     background-repeat:no-repeat; 
    72     background-position:center center; 
    73     padding:10px 20px;   
    74 } 
    75  
    76 .wpulike .count-box { 
     66    background-repeat: no-repeat; 
     67    background-position: center center; 
     68} 
     69 
     70.wpulike-default .wp_ulike_btn.wp_ulike_put_image.image-unlike { 
     71    background-image: url(../img/icons/remove.png) 
     72} 
     73 
     74.wpulike-default .count-box { 
    7775    position: relative; 
    7876    display: inline-block; 
     
    8078    border-radius: .25em; 
    8179    vertical-align: middle; 
    82  
    8380    color: #333; 
    8481    font-size: .75em; 
     
    9289    margin-left: .5em; 
    9390    line-height: 1em; 
    94     min-width: 2.25em 
    95 } 
    96  
    97 .wpulike .count-box:before { 
     91    min-width: 2.25em 
     92} 
     93 
     94.wpulike-default .count-box:before { 
    9895    content: ''; 
    9996    width: .25em; 
     
    107104    margin-top: -.2em; 
    108105    border-left-color: #898F9C; 
    109  
    110106    -webkit-transform: rotate(45deg); 
    111107    -moz-transform: rotate(45deg); 
     
    113109    -o-transform: rotate(45deg); 
    114110    transform: rotate(45deg); 
    115     filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476, sizingMethod='auto expand'); 
    116 } 
    117  
    118  /*------------------------- WP ULike Extension Styles  -------------------------*/ 
    119  
    120 .sr-only { 
    121   position: absolute; 
    122   width: 1px; 
    123   height: 1px; 
    124   margin: -1px; 
    125   padding: 0; 
    126   overflow: hidden; 
    127   clip: rect(0, 0, 0, 0); 
    128   border: 0; 
    129 } 
    130 .sr-only-focusable:active, 
    131 .sr-only-focusable:focus { 
    132   position: static; 
    133   width: auto; 
    134   height: auto; 
    135   margin: 0; 
    136   overflow: visible; 
    137   clip: auto; 
    138 } 
    139 .alert { 
    140   padding: 15px; 
    141   margin-bottom: 20px; 
    142   border: 1px solid transparent; 
    143   border-radius: 4px; 
    144 } 
    145 .alert h4 { 
    146   margin-top: 0; 
    147   color: inherit; 
    148 } 
    149 .alert .alert-link { 
    150   font-weight: bold; 
    151 } 
    152 .alert > p, 
    153 .alert > ul { 
    154   margin-bottom: 0; 
    155 } 
    156 .alert > p + p { 
    157   margin-top: 5px; 
    158 } 
    159 .alert-dismissable, 
    160 .alert-dismissible { 
    161   padding-right: 35px; 
    162 } 
    163 .alert-dismissable .close, 
    164 .alert-dismissible .close { 
    165   position: relative; 
    166   top: -2px; 
    167   right: -21px; 
    168   color: inherit; 
    169 } 
    170 .alert-success { 
    171   background-color: #dff0d8; 
    172   border-color: #d6e9c6; 
    173   color: #3c763d; 
    174 } 
    175 .alert-success hr { 
    176   border-top-color: #c9e2b3; 
    177 } 
    178 .alert-success .alert-link { 
    179   color: #2b542c; 
    180 } 
    181 .alert-info { 
    182   background-color: #d9edf7; 
    183   border-color: #bce8f1; 
    184   color: #31708f; 
    185 } 
    186 .alert-info hr { 
    187   border-top-color: #a6e1ec; 
    188 } 
    189 .alert-info .alert-link { 
    190   color: #245269; 
    191 } 
    192 .alert-warning { 
    193   background-color: #fcf8e3; 
    194   border-color: #faebcc; 
    195   color: #8a6d3b; 
    196 } 
    197 .alert-warning hr { 
    198   border-top-color: #f7e1b5; 
    199 } 
    200 .alert-warning .alert-link { 
    201   color: #66512c; 
    202 } 
    203 .alert-danger { 
    204   background-color: #f2dede; 
    205   border-color: #ebccd1; 
    206   color: #a94442; 
    207 } 
    208 .alert-danger hr { 
    209   border-top-color: #e4b9c0; 
    210 } 
    211 .alert-danger .alert-link { 
    212   color: #843534; 
    213 } 
    214 .close { 
    215   float: right; 
    216   font-size: 21px; 
    217   font-weight: bold; 
    218   line-height: 1; 
    219   color: #000000; 
    220   text-shadow: 0 1px 0 #ffffff; 
    221   opacity: 0.2; 
    222   filter: alpha(opacity=20); 
    223 } 
    224 .close:hover, 
    225 .close:focus { 
    226   color: #000000; 
    227   text-decoration: none; 
    228   cursor: pointer; 
    229   opacity: 0.5; 
    230   filter: alpha(opacity=50); 
    231 } 
    232 button.close { 
    233   padding: 0; 
    234   cursor: pointer; 
    235   background: transparent; 
    236   border: 0; 
    237   -webkit-appearance: none; 
    238 } 
    239 .fade { 
    240     opacity:0; 
    241     -webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear; 
    242     transition:opacity .15s linear 
    243 } 
    244 .fade.in { 
    245     opacity:1 
    246 } 
    247  
    248 .tooltip { 
    249   position: absolute; 
    250   z-index: 1030; 
    251   display: block; 
    252   font-size: 11px; 
    253   line-height: 1.4; 
    254   opacity: 0; 
    255   filter: alpha(opacity=0); 
    256   visibility: visible; 
    257 } 
    258  
    259 .tooltip.in { 
    260   opacity: 0.8; 
    261   filter: alpha(opacity=80); 
    262 } 
    263  
    264 .tooltip.top { 
    265   padding: 5px 0; 
    266   margin-top: -3px; 
    267 } 
    268  
    269 .tooltip.right { 
    270   padding: 0 5px; 
    271   margin-left: 3px; 
    272 } 
    273  
    274 .tooltip.bottom { 
    275   padding: 5px 0; 
    276   margin-top: 3px; 
    277 } 
    278  
    279 .tooltip.left { 
    280   padding: 0 5px; 
    281   margin-left: -3px; 
    282 } 
    283  
    284 .tooltip-inner { 
    285   max-width: 200px; 
    286   padding: 8px; 
    287   color: #ffffff; 
    288   text-align: center; 
    289   text-decoration: none; 
    290   background-color: #000000; 
    291   -webkit-border-radius: 4px; 
    292      -moz-border-radius: 4px; 
    293           border-radius: 4px; 
    294 } 
    295  
    296 .tooltip-arrow { 
    297   position: absolute; 
    298   width: 0; 
    299   height: 0; 
    300   border-color: transparent; 
    301   border-style: solid; 
    302 } 
    303  
    304 .tooltip.top .tooltip-arrow { 
    305   bottom: 0; 
    306   left: 50%; 
    307   margin-left: -5px; 
    308   border-top-color: #000000; 
    309   border-width: 5px 5px 0; 
    310 } 
    311  
    312 .tooltip.right .tooltip-arrow { 
    313   top: 50%; 
    314   left: 0; 
    315   margin-top: -5px; 
    316   border-right-color: #000000; 
    317   border-width: 5px 5px 5px 0; 
    318 } 
    319  
    320 .tooltip.left .tooltip-arrow { 
    321   top: 50%; 
    322   right: 0; 
    323   margin-top: -5px; 
    324   border-left-color: #000000; 
    325   border-width: 5px 0 5px 5px; 
    326 } 
    327  
    328 .tooltip.bottom .tooltip-arrow { 
    329   top: 0; 
    330   left: 50%; 
    331   margin-left: -5px; 
    332   border-bottom-color: #000000; 
    333   border-width: 0 5px 5px; 
    334 } 
    335  
    336 .badge { 
    337     display: inline-block; 
    338     min-width: 10px; 
    339     padding: 3px 7px; 
    340     font-size: 12px; 
    341     font-weight: 700; 
    342     line-height: 1; 
    343     color: #FFF; 
    344     text-align: center; 
    345     white-space: nowrap; 
    346     vertical-align: baseline; 
    347     background-color: #777; 
    348     border-radius: 10px; 
    349 } 
    350  
    351  /*------------------------- WP ULike Widget & Likers Styles  -------------------------*/ 
    352  
    353 .tiles,.most_liked_users { 
    354   list-style-type: none !important; 
    355   position: relative !important; 
    356   margin: 10px 0 !important; 
    357   padding: 0 !important; 
    358 } 
    359 .tiles li,.most_liked_users li{ 
    360     display:inline-table !important; 
    361     cursor: pointer !important; 
    362 } 
    363 .most_liked_users li{ 
    364     margin:0 2px !important; 
    365 } 
    366  
    367 .tiles li.inactive,.most_liked_users li.inactive { 
    368   visibility: hidden !important; 
    369   opacity: 0 !important; 
    370 } 
    371  
    372 .tiles li img ,.most_liked_users li img { 
    373   display: block !important; 
    374   float: none !important; 
    375 } 
    376  
    377 .commentlist .tiles .avatar{ 
    378     left:0 !important; 
    379 } 
    380  
    381 .wp_ulike_thumbnail,.most_liked_comment .avatar{ 
    382     vertical-align: middle; 
    383     margin: 0 10px 0 0; 
    384 } 
    385  
    386 .wp_ulike_style_simple .wp_counter_span:before{ 
    387     content: "("; 
    388 } 
    389 .wp_ulike_style_simple .wp_counter_span:after{ 
    390     content: ")"; 
    391 } 
    392 .wp_ulike_style_love .wp_counter_span{ 
    393     float:right; 
    394     display: inline-block; 
    395     background: #f1f1f1 url(../img/icons/heart.png) 5px center no-repeat; 
    396     color: #333; 
    397     font-size: 9px; 
    398     line-height: 17px; 
    399     font-weight: normal; 
    400     margin: 2px 0px 0px 2px; 
    401     vertical-align: middle; 
    402     border-radius: 10px; 
    403     padding:0 5px 0 23px; 
    404     z-index: 26;     
    405 } 
    406  
    407  /*------------------------- WP ULike BuddyPress & bbPress Styles  -------------------------*/ 
    408  
    409 #buddypress .activity ul.item-list li{ 
    410     position:initial; 
    411 } 
    412  
    413 #buddypress div.activity-meta .tiles li a{ 
    414     padding:0; 
    415 } 
    416  
    417 #buddypress .activity-content .wpulike .count-box, #bbpress-forums .bbp-reply-content .wpulike .count-box { 
     111    filter: progid: DXImageTransform.Microsoft.Matrix(M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476, sizingMethod='auto expand') 
     112} 
     113 
     114.wpulike .wp_ulike_is_loading .wp_ulike_btn, 
     115#buddypress .activity-content .wpulike .wp_ulike_is_loading .wp_ulike_btn, 
     116#bbpress-forums .bbp-reply-content .wpulike .wp_ulike_is_loading .wp_ulike_btn { 
     117    background-image: url(../img/icons/loading.gif) !important; 
     118    background-repeat: no-repeat; 
     119    background-position: center center 
     120} 
     121 
     122.wpulike .wp_ulike_is_loading .wp_ulike_btn span{ 
     123    visibility: hidden; 
     124} 
     125 
     126.wpulike-default .wp_ulike_hide_me { 
     127    visibility: hidden; 
     128} 
     129 
     130/* buddyPress & bbPress fix styles */ 
     131 
     132#buddypress .activity ul.item-list li { 
     133    position: initial 
     134} 
     135 
     136#buddypress div.activity-meta .tiles li a { 
     137    padding: 0 
     138} 
     139 
     140#buddypress .activity-content .wpulike-default .count-box, 
     141#bbpress-forums .bbp-reply-content .wpulike-default .count-box { 
    418142    font-size: small; 
    419     padding: .3em .5em; 
    420 } 
    421  
    422 #buddypress div.activity-meta .wpulike .counter a { 
    423     padding: 12px 20px !important; 
    424 } 
    425  
    426 #buddypress div.activity-meta .wpulike .counter a.text { 
    427     padding: 7px 20px !important; 
    428 } 
    429  
    430 #bbpress-forums .bbp-reply-content .wpulike .counter a.text,#bbpress-forums .bbp-reply-content .wpulike .counter a.image,#bbpress-forums .bbp-reply-content .wpulike .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike .counter a.loading{ 
     143    padding: .3em .5em 
     144} 
     145 
     146#buddypress div.activity-meta .wpulike-default .wp_ulike_btn { 
     147    padding: 12px 10px!important 
     148} 
     149 
     150#buddypress div.activity-meta .wpulike-default .wp_ulike_btn.wp_ulike_put_text { 
     151    padding: 7px 10px!important 
     152} 
     153 
     154#bbpress-forums .wpulike-default .wp_ulike_btn { 
    431155    margin: 0; 
    432156    display: inline-block; 
     
    434158    border: 1px solid #d3d3d3; 
    435159    line-height: 1em; 
    436     padding: 0.5em 1em; 
     160    padding: .5em 1em; 
    437161    font-size: 1em; 
    438     cursor: pointer; 
    439     vertical-align: middle; 
    440  
     162    cursor: pointer; 
     163    vertical-align: middle; 
    441164    color: #777; 
    442165    background: #dfdfdf; 
    443     box-shadow: 1px 1px 0 rgba(255,255,255,0.5) inset; 
    444     text-shadow: 0 1px 0 rgba(255,255,255,0.5); 
    445     text-decoration: none; 
    446 } 
    447  
    448 #bbpress-forums .bbp-reply-content .wpulike .counter a.image,#bbpress-forums .bbp-reply-content .wpulike .counter a.image-unlike{ 
     166    box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5) inset; 
     167    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); 
     168    text-decoration: none 
     169} 
     170 
     171#bbpress-forums .wpulike-default .wp_ulike_btn.wp_ulike_put_image { 
    449172    background-image: url(../img/icons/add.png); 
    450     background-repeat:no-repeat; 
    451     background-position:center center;   
    452     padding: 1em 1.8em; 
    453 } 
    454  
    455 #bbpress-forums .bbp-reply-content .wpulike .counter a.image-unlike{ 
    456     background-image: url(../img/icons/remove.png); 
    457 } 
    458  
    459 #bbpress-forums .bbp-reply-content .wpulike .counter a.loading{ 
    460     background-image: url(../img/icons/loading.gif); 
    461     background-repeat:no-repeat; 
    462     background-position:center center; 
    463     padding: 1em 1.8em;  
    464 } 
    465  
    466  /*------------------------- WP ULike Heart Template  -------------------------*/ 
    467  
    468 .wpulike-heart .counter{ 
    469     border: 1px solid #E0E0E0; 
    470     background: url(../img/bg/button-love.png) no-repeat center right; 
    471     border-radius:5px; 
    472     padding: 2px; 
    473     max-height:30px; 
    474 } 
    475  
    476 .wpulike-heart .counter a,#buddypress .wpulike-heart .counter a,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.text,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading{ 
     173    background-repeat: no-repeat; 
     174    background-position: center center; 
     175    padding: 1em 1.8em 
     176} 
     177 
     178#bbpress-forums .wpulike-default .wp_ulike_btn.wp_ulike_put_image.image-unlike{ 
     179    background-image: url(../img/icons/remove.png) 
     180} 
     181 
     182 
     183/* 
     184    => Add Heart theme styles 
     185*/ 
     186 
     187.wpulike-heart .wp_ulike_general_class { 
     188    display: block; 
     189    border: 1px solid #E0E0E0; 
     190    background: url(../img/bg/button-love.png) no-repeat center right; 
     191    border-radius: 5px; 
     192    padding: 3px 
     193} 
     194 
     195.wpulike-heart .wp_ulike_btn, 
     196#buddypress .activity-content  .wpulike-heart .wp_ulike_btn, 
     197#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn { 
    477198    border: none; 
    478     font-weight:bold; 
    479     box-shadow: none; 
    480     background:transparent; 
    481     border-right:1px solid #d3d3d3; 
    482     border-radius:0; 
    483 } 
    484  
    485 .wpulike-heart .counter a:hover, 
    486 .wpulike-heart .counter a:active { 
    487     background-color: transparent; 
    488     box-shadow: none; 
    489     color:#ef0000; 
    490 } 
    491  
    492 .wpulike-heart .counter a.image, .wpulike-heart .counter a.image-unlike,#buddypress .activity-content .wpulike-heart .counter a.image, #buddypress .activity-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike { 
    493     border: none; 
    494     box-shadow: none; 
    495     background-image: url(../img/icons/add-heart-16.png) !important; 
    496     background-repeat:no-repeat !important; 
    497     background-position:center center !important; 
    498     padding:11px 16px !important; 
    499     border-right:1px solid #E0E0E0; 
    500 } 
    501  
    502 .wpulike-heart .counter a.image-unlike,#buddypress .activity-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike { 
    503     background-image: url(../img/icons/remove-heart-16.png) !important; 
    504 } 
    505  
    506 .wpulike-heart .counter a.image:hover { 
    507     background-image: url(../img/icons/add-heart-hover.png) !important; 
    508 } 
    509  
    510 .wpulike-heart .counter a.image-unlike:hover { 
    511     background-image: url(../img/icons/remove-heart-hover.png) !important; 
    512 } 
    513  
    514 .wpulike-heart .counter a.loading,#buddypress .activity-content .wpulike-heart .counter a.loading,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading { 
    515     animation:none; 
    516     background-image: url(../img/icons/loading.gif) !important; 
    517     background-repeat:no-repeat !important; 
    518     background-position:center center !important; 
    519     padding:11px 15px !important;    
    520     border-right:1px solid #E0E0E0; 
     199    padding: 0 10px; 
     200    font-weight: 600; 
     201    box-shadow: none; 
     202    background: transparent; 
     203    border-right: 1px solid #d3d3d3; 
     204    border-radius: 0 
     205} 
     206 
     207.wpulike-heart .wp_ulike_btn:hover, 
     208.wpulike-heart .wp_ulike_btn:active { 
     209    background-color: transparent; 
     210    box-shadow: none; 
     211    color: #ef0000 
     212} 
     213 
     214.wpulike-heart .wp_ulike_btn.wp_ulike_put_image, 
     215#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image, 
     216#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image { 
     217    border: none; 
     218    box-shadow: none; 
     219    background-image: url(../img/icons/add-heart-16.png); 
     220    background-repeat: no-repeat!important; 
     221    background-position: center center!important; 
     222    padding: 11px 16px!important; 
     223    border-right: 1px solid #E0E0E0 
     224} 
     225 
     226.wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike, 
     227#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike, 
     228#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike { 
     229    background-image: url(../img/icons/remove-heart-16.png) 
     230} 
     231 
     232.wpulike-heart .wp_ulike_btn.wp_ulike_put_image:hover, 
     233#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image:hover, 
     234#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image:hover { 
     235    background-image: url(../img/icons/add-heart-hover.png) 
     236} 
     237 
     238.wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike:hover, 
     239#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike:hover, 
     240#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike:hover { 
     241    background-image: url(../img/icons/remove-heart-hover.png) 
    521242} 
    522243 
     
    525246    vertical-align: middle; 
    526247    background-color: transparent; 
    527     padding: .25em .5em .25em; 
     248    padding: .25em .5em; 
    528249    margin-left: 0; 
    529     color:#525252; 
    530     font-size:.8em; 
     250    color: #525252; 
     251    font-size: .8em 
    531252} 
    532253 
    533254.wpulike-heart .count-box:before { 
    534255    border: none; 
    535     background:transparent; 
    536 } 
    537  
    538  /*------------------------- WP ULike RTL support  -------------------------*/ 
    539  
    540 .rtl .wpulike .count-box { 
     256    background: transparent 
     257} 
     258 
     259/* 
     260    => Add Robeen theme styles 
     261*/ 
     262 
     263.wpulike-robeen .count-box { 
     264    position: relative; 
     265    bottom: 18px; 
     266    right: 8px; 
     267    font-weight: 600; 
     268} 
     269.wpulike-robeen svg { 
     270    cursor: pointer; 
     271    overflow: visible; 
     272    width: 50px; 
     273} 
     274.wpulike-robeen svg .heart { 
     275    transform-origin: center; 
     276    animation: animateHeartOut .3s linear forwards; 
     277} 
     278.wpulike-robeen  svg .main-circ { 
     279    transform-origin: 29.5px 29.5px; 
     280} 
     281 
     282.wpulike-robeen .wp_ulike_btn { 
     283    display: none !important; 
     284} 
     285 
     286.wpulike-robeen .wp_ulike_btn:checked +  svg .heart { 
     287    transform: scale(0.2); 
     288    fill: #E2264D; 
     289    animation: animateHeart .3s linear forwards .25s; 
     290} 
     291.wpulike-robeen .wp_ulike_btn:checked +  svg .main-circ { 
     292  transition: all 2s; 
     293  animation: animateCircle .3s linear forwards; 
     294  opacity: 1; 
     295} 
     296.wpulike-robeen .wp_ulike_btn:checked +  svg .grp1 { 
     297  opacity: 1; 
     298  transition: .1s all .3s; 
     299} 
     300.wpulike-robeen .wp_ulike_btn:checked +  svg .grp1 .oval1 { 
     301  transform: scale(0) translate(0, -30px); 
     302  transform-origin: 0 0 0; 
     303  transition: .5s transform .3s; 
     304} 
     305.wpulike-robeen .wp_ulike_btn:checked +  svg .grp1 .oval2 { 
     306  transform: scale(0) translate(10px, -50px); 
     307  transform-origin: 0 0 0; 
     308  transition: 1.5s transform .3s; 
     309} 
     310.wpulike-robeen .wp_ulike_btn:checked +  svg .grp2 { 
     311  opacity: 1; 
     312  transition: .1s all .3s; 
     313} 
     314.wpulike-robeen .wp_ulike_btn:checked +  svg .grp2 .oval1 { 
     315  transform: scale(0) translate(30px, -15px); 
     316  transform-origin: 0 0 0; 
     317  transition: .5s transform .3s; 
     318} 
     319.wpulike-robeen .wp_ulike_btn:checked +  svg .grp2 .oval2 { 
     320  transform: scale(0) translate(60px, -15px); 
     321  transform-origin: 0 0 0; 
     322  transition: 1.5s transform .3s; 
     323} 
     324.wpulike-robeen .wp_ulike_btn:checked +  svg .grp3 { 
     325  opacity: 1; 
     326  transition: .1s all .3s; 
     327} 
     328.wpulike-robeen .wp_ulike_btn:checked +  svg .grp3 .oval1 { 
     329  transform: scale(0) translate(30px, 0px); 
     330  transform-origin: 0 0 0; 
     331  transition: .5s transform .3s; 
     332} 
     333.wpulike-robeen .wp_ulike_btn:checked +  svg .grp3 .oval2 { 
     334  transform: scale(0) translate(60px, 10px); 
     335  transform-origin: 0 0 0; 
     336  transition: 1.5s transform .3s; 
     337} 
     338.wpulike-robeen .wp_ulike_btn:checked +  svg .grp4 { 
     339  opacity: 1; 
     340  transition: .1s all .3s; 
     341} 
     342.wpulike-robeen .wp_ulike_btn:checked +  svg .grp4 .oval1 { 
     343  transform: scale(0) translate(30px, 15px); 
     344  transform-origin: 0 0 0; 
     345  transition: .5s transform .3s; 
     346} 
     347.wpulike-robeen .wp_ulike_btn:checked +  svg .grp4 .oval2 { 
     348  transform: scale(0) translate(40px, 50px); 
     349  transform-origin: 0 0 0; 
     350  transition: 1.5s transform .3s; 
     351} 
     352.wpulike-robeen .wp_ulike_btn:checked +  svg .grp5 { 
     353  opacity: 1; 
     354  transition: .1s all .3s; 
     355} 
     356.wpulike-robeen .wp_ulike_btn:checked +  svg .grp5 .oval1 { 
     357  transform: scale(0) translate(-10px, 20px); 
     358  transform-origin: 0 0 0; 
     359  transition: .5s transform .3s; 
     360} 
     361.wpulike-robeen .wp_ulike_btn:checked +  svg .grp5 .oval2 { 
     362  transform: scale(0) translate(-60px, 30px); 
     363  transform-origin: 0 0 0; 
     364  transition: 1.5s transform .3s; 
     365} 
     366.wpulike-robeen .wp_ulike_btn:checked +  svg .grp6 { 
     367  opacity: 1; 
     368  transition: .1s all .3s; 
     369} 
     370.wpulike-robeen .wp_ulike_btn:checked +  svg .grp6 .oval1 { 
     371  transform: scale(0) translate(-30px, 0px); 
     372  transform-origin: 0 0 0; 
     373  transition: .5s transform .3s; 
     374} 
     375.wpulike-robeen .wp_ulike_btn:checked +  svg .grp6 .oval2 { 
     376  transform: scale(0) translate(-60px, -5px); 
     377  transform-origin: 0 0 0; 
     378  transition: 1.5s transform .3s; 
     379} 
     380.wpulike-robeen .wp_ulike_btn:checked +  svg .grp7 { 
     381  opacity: 1; 
     382  transition: .1s all .3s; 
     383} 
     384.wpulike-robeen .wp_ulike_btn:checked +  svg .grp7 .oval1 { 
     385  transform: scale(0) translate(-30px, -15px); 
     386  transform-origin: 0 0 0; 
     387  transition: .5s transform .3s; 
     388} 
     389.wpulike-robeen .wp_ulike_btn:checked +  svg .grp7 .oval2 { 
     390  transform: scale(0) translate(-55px, -30px); 
     391  transform-origin: 0 0 0; 
     392  transition: 1.5s transform .3s; 
     393} 
     394.wpulike-robeen .wp_ulike_btn:checked +  svg .grp2 { 
     395  opacity: 1; 
     396  transition: .1s opacity .3s; 
     397} 
     398.wpulike-robeen .wp_ulike_btn:checked +  svg .grp3 { 
     399  opacity: 1; 
     400  transition: .1s opacity .3s; 
     401} 
     402.wpulike-robeen .wp_ulike_btn:checked +  svg .grp4 { 
     403  opacity: 1; 
     404  transition: .1s opacity .3s; 
     405} 
     406.wpulike-robeen .wp_ulike_btn:checked +  svg .grp5 { 
     407  opacity: 1; 
     408  transition: .1s opacity .3s; 
     409} 
     410.wpulike-robeen .wp_ulike_btn:checked +  svg .grp6 { 
     411  opacity: 1; 
     412  transition: .1s opacity .3s; 
     413} 
     414.wpulike-robeen .wp_ulike_btn:checked +  svg .grp7 { 
     415  opacity: 1; 
     416  transition: .1s opacity .3s; 
     417} 
     418 
     419@keyframes animateCircle { 
     420  40% { 
     421    transform: scale(10); 
     422    opacity: 1; 
     423    fill: #DD4688; 
     424  } 
     425  55% { 
     426    transform: scale(11); 
     427    opacity: 1; 
     428    fill: #D46ABF; 
     429  } 
     430  65% { 
     431    transform: scale(12); 
     432    opacity: 1; 
     433    fill: #CC8EF5; 
     434  } 
     435  75% { 
     436    transform: scale(13); 
     437    opacity: 1; 
     438    fill: transparent; 
     439    stroke: #CC8EF5; 
     440    stroke-width: .5; 
     441  } 
     442  85% { 
     443    transform: scale(17); 
     444    opacity: 1; 
     445    fill: transparent; 
     446    stroke: #CC8EF5; 
     447    stroke-width: .2; 
     448  } 
     449  95% { 
     450    transform: scale(18); 
     451    opacity: 1; 
     452    fill: transparent; 
     453    stroke: #CC8EF5; 
     454    stroke-width: .1; 
     455  } 
     456  100% { 
     457    transform: scale(19); 
     458    opacity: 1; 
     459    fill: transparent; 
     460    stroke: #CC8EF5; 
     461    stroke-width: 0; 
     462  } 
     463} 
     464@keyframes animateHeart { 
     465  0% { 
     466    transform: scale(0.2); 
     467  } 
     468  40% { 
     469    transform: scale(1.2); 
     470  } 
     471  100% { 
     472    transform: scale(1); 
     473  } 
     474} 
     475@keyframes animateHeartOut { 
     476  0% { 
     477    transform: scale(1.4); 
     478  } 
     479  100% { 
     480    transform: scale(1); 
     481  } 
     482} 
     483 
     484 
     485/* 
     486    =>  Right To Left (RTL) languages support 
     487*/ 
     488 
     489.rtl .wpulike-default .count-box { 
    541490    margin-right: .5em; 
    542     margin-left: inherit; 
    543 } 
    544  
    545 .rtl .wpulike .count-box:before { 
     491    margin-left: inherit 
     492} 
     493 
     494.rtl .wpulike-default .count-box:before { 
    546495    right: -.2125em; 
    547     left:inherit; 
    548     border-top-color: #898F9C; 
    549     border-right-color: #898F9C; 
    550     border-left-color: transparent; 
    551     border-bottom-color: transparent; 
    552 } 
    553  
    554 .rtl .wpulike-heart .counter a,.rtl #buddypress .wpulike-heart .counter a,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.text,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading{ 
    555     border-left:1px solid #d3d3d3; 
    556     border-right: 0; 
    557 } 
    558  
    559 .rtl .wpulike-heart .counter a.image,.rtl .wpulike-heart .counter a.image-unlike,.rtl #buddypress .activity-content .wpulike-heart .counter a.image, .rtl #buddypress .activity-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike,.rtl .wpulike-heart .counter a.loading,.rtl #buddypress .activity-content .wpulike-heart .counter a.loading,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading { 
    560     border-left:1px solid #E0E0E0; 
    561     border-right: 0;     
     496    left: inherit; 
     497    border-color: #898F9C #898F9C transparent transparent 
     498} 
     499 
     500.rtl .wpulike-heart .wp_ulike_btn, 
     501.rtl #buddypress .activity-content .wpulike-heart .wp_ulike_btn, 
     502.rtl #bbpress-forums .wpulike-heart .wp_ulike_btn { 
     503    border-left: 1px solid #d3d3d3; 
     504    border-right: 0 
     505} 
     506 
     507.rtl .wpulike-heart .wp_ulike_btn.wp_ulike_put_image, 
     508.rtl #buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image, 
     509.rtl #bbpress-forums .wpulike-heart .wp_ulike_btn.wp_ulike_put_image, 
     510.rtl .wpulike-heart .wp_ulike_is_loading .wp_ulike_btn, 
     511.rtl #buddypress .activity-content .wpulike-heart wp_ulike_is_loading .wp_ulike_btn, 
     512.rtl #bbpress-forums .wpulike-heart wp_ulike_is_loading .wp_ulike_btn { 
     513    border-left: 1px solid #E0E0E0; 
     514    border-right: 0 
     515} 
     516 
     517.rtl .wpulike-robeen .count-box { 
     518    right: inherit; 
     519    left: 8px; 
    562520} 
    563521 
    564522.rtl .wpulike-heart .count-box { 
    565523    margin-right: 0; 
    566     margin-left: inherit; 
    567 } 
    568  
    569 .rtl .alert-dismissable, 
    570 .rtl .alert-dismissible { 
    571   padding-right: 0; 
    572   padding-left: 35px; 
    573 } 
    574 .rtl .alert-dismissable .close, 
    575 .rtl .alert-dismissible .close { 
    576   right: inherit; 
    577   left: -21px; 
    578 } 
    579  
    580 .rtl .close { 
    581   float: left; 
    582 } 
    583  
    584 .rtl .commentlist .tiles .avatar{ 
    585     left:inherit!important; 
    586     right:0 !important; 
    587 } 
    588  
    589 .rtl .wp_ulike_thumbnail,.rtl .most_liked_comment .avatar{ 
    590     margin: 0 0 0 10px; 
    591 } 
    592  
    593 .rtl .wp_ulike_style_love .wp_counter_span{ 
     524    margin-left: inherit 
     525} 
     526 
     527.rtl .commentlist .tiles .avatar { 
     528    left: inherit!important; 
     529    right: 0!important 
     530} 
     531 
     532.rtl .wp_ulike_thumbnail, 
     533.rtl .most_liked_comment .avatar { 
     534    margin: 0 0 0 10px 
     535} 
     536 
     537.rtl .wp_ulike_style_love .wp_counter_span { 
    594538    float: left; 
    595     background: #F1F1F1 url("../img/icons/heart.png") no-repeat scroll 85% center; 
    596     margin: 2px 2px 0px 0px; 
    597     padding: 0px 23px 0px 5px; 
    598 } 
    599  
    600 /** 
    601  * jQuery toast plugin created by Kamran Ahmed copyright MIT license 2014 
    602  * v1.3.0 
    603  */ 
    604 .jq-toast-wrap { display: block; position: fixed; width: 250px;  pointer-events: none !important; margin: 0; padding: 0; letter-spacing: normal; z-index: 9000 !important; } 
    605 .jq-toast-wrap * { margin: 0; padding: 0; } 
    606  
    607 .jq-toast-wrap.bottom-left { bottom: 20px; left: 20px; } 
    608 .jq-toast-wrap.bottom-right { bottom: 20px; right: 40px; } 
    609 .jq-toast-wrap.top-left { top: 20px; left: 20px; } 
    610 .jq-toast-wrap.top-right { top: 20px; right: 40px; } 
    611  
    612 .jq-toast-single { display: block; width: 100%; padding: 10px; margin: 0px 0px 5px; border-radius: 4px; font-size: 12px; font-family: arial, sans-serif; line-height: 17px; position: relative;  pointer-events: all !important; background-color: #444444; color: white; } 
    613  
    614 .jq-toast-single h2 { font-family: arial, sans-serif; font-size: 14px; margin: 0px 0px 7px; background: none; color: inherit; line-height: inherit; letter-spacing: normal; } 
    615 .jq-toast-single a { color: #eee; text-decoration: none; font-weight: bold; border-bottom: 1px solid white; padding-bottom: 3px; font-size: 12px; } 
    616  
    617 .jq-toast-single ul { margin: 0px 0px 0px 15px; background: none; padding:0px; } 
    618 .jq-toast-single ul li { list-style-type: disc !important; line-height: 17px; background: none; margin: 0; padding: 0; letter-spacing: normal; } 
    619  
    620 .close-jq-toast-single { position: absolute; top: 3px; right: 7px; font-size: 14px; cursor: pointer; } 
    621  
    622 .jq-toast-loader { display: block; position: absolute; top: -2px; height: 5px; width: 0%; left: 0; border-radius: 5px; background: red; } 
    623 .jq-toast-loaded { width: 100%; } 
    624 .jq-has-icon { padding: 10px 10px 10px 50px; background-repeat: no-repeat; background-position: 10px; } 
    625 .jq-icon-info { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII='); background-color: #31708f; color: #d9edf7; border-color: #bce8f1; } 
    626 .jq-icon-warning { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII='); background-color: #8a6d3b; color: #fcf8e3; border-color: #faebcc; } 
    627 .jq-icon-error { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII='); background-color: #a94442; color: #f2dede; border-color: #ebccd1; } 
    628 .jq-icon-success { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg=='); color: #dff0d8; background-color: #3c763d; border-color: #d6e9c6; } 
     539    background: #F1F1F1 url(../img/icons/heart.png) no-repeat scroll 85% center; 
     540    margin: 2px 2px 0 0; 
     541    padding: 0 23px 0 5px 
     542} 
     543 
     544 
     545/* 
     546    =>  widgets & likers box 
     547*/ 
     548 
     549.tiles, 
     550.most_liked_users { 
     551    list-style-type: none!important; 
     552    position: relative!important; 
     553    margin: 10px 0!important; 
     554    padding: 0!important 
     555} 
     556 
     557.tiles li, 
     558.most_liked_users li { 
     559    display: inline-table!important; 
     560    cursor: pointer!important 
     561} 
     562 
     563.most_liked_users li { 
     564    margin: 0 2px!important 
     565} 
     566 
     567.tiles li.inactive, 
     568.most_liked_users li.inactive { 
     569    visibility: hidden!important; 
     570    opacity: 0!important 
     571} 
     572 
     573.tiles li img, 
     574.most_liked_users li img { 
     575    display: block!important; 
     576    float: none!important 
     577} 
     578 
     579.commentlist .tiles .avatar { 
     580    left: 0!important 
     581} 
     582 
     583.wp_ulike_thumbnail, 
     584.most_liked_comment .avatar { 
     585    vertical-align: middle; 
     586    margin: 0 10px 0 0 
     587} 
     588 
     589.wp_ulike_style_simple .wp_counter_span:before { 
     590    content: "(" 
     591} 
     592 
     593.wp_ulike_style_simple .wp_counter_span:after { 
     594    content: ")" 
     595} 
     596 
     597.wp_ulike_style_love .wp_counter_span { 
     598    float: right; 
     599    display: inline-block; 
     600    background: #f1f1f1 url(../img/icons/heart.png) 5px center no-repeat; 
     601    color: #333; 
     602    font-size: 9px; 
     603    line-height: 17px; 
     604    font-weight: 400; 
     605    margin: 2px 0 0 2px; 
     606    vertical-align: middle; 
     607    border-radius: 10px; 
     608    padding: 0 5px 0 23px; 
     609    z-index: 26 
     610} 
     611 
     612/* 
     613    =>  toastr plugin styles 
     614*/ 
     615 
     616.toast-title { 
     617    font-weight: 700 
     618} 
     619 
     620.toast-message { 
     621    -ms-word-wrap: break-word; 
     622    word-wrap: break-word 
     623} 
     624 
     625.toast-message a, 
     626.toast-message label { 
     627    color: #FFF 
     628} 
     629 
     630.toast-message a:hover { 
     631    color: #CCC; 
     632    text-decoration: none 
     633} 
     634 
     635.toast-close-button { 
     636    position: relative; 
     637    right: -.3em; 
     638    top: -.3em; 
     639    float: right; 
     640    font-size: 20px; 
     641    font-weight: 700; 
     642    color: #FFF; 
     643    -webkit-text-shadow: 0 1px 0 #fff; 
     644    text-shadow: 0 1px 0 #fff; 
     645    opacity: .8; 
     646    -ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=80); 
     647    filter: alpha(opacity=80); 
     648    line-height: 1 
     649} 
     650 
     651.toast-close-button:focus, 
     652.toast-close-button:hover { 
     653    color: #000; 
     654    text-decoration: none; 
     655    cursor: pointer; 
     656    opacity: .4; 
     657    -ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=40); 
     658    filter: alpha(opacity=40) 
     659} 
     660 
     661.rtl .toast-close-button { 
     662    left: -.3em; 
     663    float: left; 
     664    right: .3em 
     665} 
     666 
     667button.toast-close-button { 
     668    padding: 0; 
     669    cursor: pointer; 
     670    background: 0 0; 
     671    border: 0; 
     672    -webkit-appearance: none 
     673} 
     674 
     675.toast-top-center { 
     676    top: 0; 
     677    right: 0; 
     678    width: 100% 
     679} 
     680 
     681.toast-bottom-center { 
     682    bottom: 0; 
     683    right: 0; 
     684    width: 100% 
     685} 
     686 
     687.toast-top-full-width { 
     688    top: 0; 
     689    right: 0; 
     690    width: 100% 
     691} 
     692 
     693.toast-bottom-full-width { 
     694    bottom: 0; 
     695    right: 0; 
     696    width: 100% 
     697} 
     698 
     699.toast-top-left { 
     700    top: 12px; 
     701    left: 12px 
     702} 
     703 
     704.toast-top-right { 
     705    top: 12px; 
     706    right: 12px 
     707} 
     708 
     709.toast-bottom-right { 
     710    right: 12px; 
     711    bottom: 12px 
     712} 
     713 
     714.toast-bottom-left { 
     715    bottom: 12px; 
     716    left: 12px 
     717} 
     718 
     719#toast-container { 
     720    position: fixed; 
     721    z-index: 999999; 
     722    pointer-events: none 
     723} 
     724 
     725#toast-container * { 
     726    -moz-box-sizing: border-box; 
     727    -webkit-box-sizing: border-box; 
     728    box-sizing: border-box 
     729} 
     730 
     731#toast-container>div { 
     732    position: relative; 
     733    pointer-events: auto; 
     734    overflow: hidden; 
     735    margin: 0 0 6px; 
     736    padding: 15px 15px 15px 50px; 
     737    width: 300px; 
     738    -moz-border-radius: 3px; 
     739    -webkit-border-radius: 3px; 
     740    border-radius: 3px; 
     741    background-position: 15px center; 
     742    background-repeat: no-repeat; 
     743    -moz-box-shadow: 0 0 12px #999; 
     744    -webkit-box-shadow: 0 0 12px #999; 
     745    box-shadow: 0 0 12px #999; 
     746    color: #FFF; 
     747    opacity: .8; 
     748    -ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=80); 
     749    filter: alpha(opacity=80) 
     750} 
     751 
     752#toast-container>div.rtl { 
     753    direction: rtl; 
     754    padding: 15px 50px 15px 15px; 
     755    background-position: right 15px center 
     756} 
     757 
     758#toast-container>div:hover { 
     759    -moz-box-shadow: 0 0 12px #000; 
     760    -webkit-box-shadow: 0 0 12px #000; 
     761    box-shadow: 0 0 12px #000; 
     762    opacity: 1; 
     763    -ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100); 
     764    filter: alpha(opacity=100); 
     765    cursor: pointer 
     766} 
     767 
     768#toast-container>.toast-info { 
     769    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important 
     770} 
     771 
     772#toast-container>.toast-error { 
     773    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important 
     774} 
     775 
     776#toast-container>.toast-success { 
     777    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important 
     778} 
     779 
     780#toast-container>.toast-warning { 
     781    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important 
     782} 
     783 
     784#toast-container.toast-bottom-center>div, 
     785#toast-container.toast-top-center>div { 
     786    width: 300px; 
     787    margin-left: auto; 
     788    margin-right: auto 
     789} 
     790 
     791#toast-container.toast-bottom-full-width>div, 
     792#toast-container.toast-top-full-width>div { 
     793    width: 96%; 
     794    margin-left: auto; 
     795    margin-right: auto 
     796} 
     797 
     798.toast { 
     799    background-color: #030303 
     800} 
     801 
     802.toast-success { 
     803    background-color: #51A351 
     804} 
     805 
     806.toast-error { 
     807    background-color: #BD362F 
     808} 
     809 
     810.toast-info { 
     811    background-color: #2F96B4 
     812} 
     813 
     814.toast-warning { 
     815    background-color: #F89406 
     816} 
     817 
     818.toast-progress { 
     819    position: absolute; 
     820    left: 0; 
     821    bottom: 0; 
     822    height: 4px; 
     823    background-color: #000; 
     824    opacity: .4; 
     825    -ms-filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=40); 
     826    filter: alpha(opacity=40) 
     827} 
     828 
     829@media all and (max-width:240px) { 
     830    #toast-container>div { 
     831        padding: 8px 8px 8px 50px; 
     832        width: 11em 
     833    } 
     834    #toast-container>div.rtl { 
     835        padding: 8px 50px 8px 8px 
     836    } 
     837    #toast-container .toast-close-button { 
     838        right: -.2em; 
     839        top: -.2em 
     840    } 
     841    #toast-container .rtl .toast-close-button { 
     842        left: -.2em; 
     843        right: .2em 
     844    } 
     845} 
     846 
     847@media all and (min-width:241px) and (max-width:480px) { 
     848    #toast-container>div { 
     849        padding: 8px 8px 8px 50px; 
     850        width: 18em 
     851    } 
     852    #toast-container>div.rtl { 
     853        padding: 8px 50px 8px 8px 
     854    } 
     855    #toast-container .toast-close-button { 
     856        right: -.2em; 
     857        top: -.2em 
     858    } 
     859    #toast-container .rtl .toast-close-button { 
     860        left: -.2em; 
     861        right: .2em 
     862    } 
     863} 
     864 
     865@media all and (min-width:481px) and (max-width:768px) { 
     866    #toast-container>div { 
     867        padding: 15px 15px 15px 50px; 
     868        width: 25em 
     869    } 
     870    #toast-container>div.rtl { 
     871        padding: 15px 50px 15px 15px 
     872    } 
     873} 
  • wp-ulike/trunk/assets/css/wp-ulike.min.css

    r1579042 r1706048  
    11/** 
    2  * WP ULike Plugin 2.4.1 
    3  * 
    4  * http://wordpress.org/plugins/wp-ulike/ 
    5  * https://github.com/Alimir/wp-ulike 
    6  * 
     2 * WP ULike 2.8 
     3 * @author Alimir [https://wordpress.org/plugins/wp-ulike/] 
    74 */ 
    85 
    9 .wpulike{display:inline-block;position:relative;vertical-align:middle;line-height:1;margin:0}.wpulike .counter a{margin:0;display:inline-block;border-radius:.25em;border:1px solid #d3d3d3;vertical-align:middle;line-height:1em;padding:.25em .5em;font-size:.75em;cursor:pointer;max-height:25px;color:#777;background:#dfdfdf;box-shadow:1px 1px 0 rgba(255,255,255,0.5) inset;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-decoration:none;-webkit-transition:.25s;-moz-transition:.25s;-ms-transition:.25s;-o-transition:.25s;transition:.25s}.wpulike .counter a:focus{outline:none;border-color:#999}.wpulike .counter a:hover,.wpulike .counter a:active{text-decoration:none;color:#EEE;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#bdc3c7;border-color:#95a5a6}.wpulike .counter a.image,.wpulike .counter a.image-unlike{background-image:url(../img/icons/add.png);background-repeat:no-repeat;background-position:center center;padding:10px 20px}.wpulike .counter a.image-unlike{background-image:url(../img/icons/remove.png)}.wpulike .counter a.loading{background-image:url(../img/icons/loading.gif);background-repeat:no-repeat;background-position:center center;padding:10px 20px}.wpulike .count-box{position:relative;display:inline-block;border:1px solid #898F9C;border-radius:.25em;vertical-align:middle;color:#333;font-size:.75em;text-align:center;text-decoration:none;background-color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:.25em .5em;margin-left:.5em;line-height:1em;min-width:2.25em}.wpulike .count-box:before{content:'';width:.25em;height:.25em;position:absolute;border:1px solid transparent;background:#fff;border-bottom-color:#898F9C;left:-.2125em;top:50%;margin-top:-.2em;border-left-color:#898F9C;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865476,M12=-0.7071067811865475,M21=0.7071067811865475,M22=0.7071067811865476,sizingMethod='auto expand')}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert > p,.alert > ul{margin-bottom:0}.alert > p + p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.tooltip{position:absolute;z-index:1030;display:block;font-size:11px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.8;filter:alpha(opacity=80)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#FFF;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.tiles,.most_liked_users{list-style-type:none!important;position:relative!important;margin:10px 0!important;padding:0!important}.tiles li,.most_liked_users li{display:inline-table!important;cursor:pointer!important}.most_liked_users li{margin:0 2px!important}.tiles li.inactive,.most_liked_users li.inactive{visibility:hidden!important;opacity:0!important}.tiles li img,.most_liked_users li img{display:block!important;float:none!important}.commentlist .tiles .avatar{left:0!important}.wp_ulike_thumbnail,.most_liked_comment .avatar{vertical-align:middle;margin:0 10px 0 0}.wp_ulike_style_simple .wp_counter_span:before{content:"("}.wp_ulike_style_simple .wp_counter_span:after{content:")"}.wp_ulike_style_love .wp_counter_span{float:right;display:inline-block;background:#f1f1f1 url(../img/icons/heart.png) 5px center no-repeat;color:#333;font-size:9px;line-height:17px;font-weight:400;margin:2px 0 0 2px;vertical-align:middle;border-radius:10px;padding:0 5px 0 23px;z-index:26}#buddypress .activity ul.item-list li{position:initial}#buddypress div.activity-meta .tiles li a{padding:0}#buddypress .activity-content .wpulike .count-box,#bbpress-forums .bbp-reply-content .wpulike .count-box{font-size:small;padding:.3em .5em}#buddypress div.activity-meta .wpulike .counter a{padding:12px 20px!important}#buddypress div.activity-meta .wpulike .counter a.text{padding:7px 20px!important}#bbpress-forums .bbp-reply-content .wpulike .counter a.text,#bbpress-forums .bbp-reply-content .wpulike .counter a.image,#bbpress-forums .bbp-reply-content .wpulike .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike .counter a.loading{margin:0;display:inline-block;border-radius:.25em;border:1px solid #d3d3d3;line-height:1em;padding:.5em 1em;font-size:1em;cursor:pointer;vertical-align:middle;color:#777;background:#dfdfdf;box-shadow:1px 1px 0 rgba(255,255,255,0.5) inset;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-decoration:none}#bbpress-forums .bbp-reply-content .wpulike .counter a.image,#bbpress-forums .bbp-reply-content .wpulike .counter a.image-unlike{background-image:url(../img/icons/add.png);background-repeat:no-repeat;background-position:center center;padding:1em 1.8em}#bbpress-forums .bbp-reply-content .wpulike .counter a.image-unlike{background-image:url(../img/icons/remove.png)}#bbpress-forums .bbp-reply-content .wpulike .counter a.loading{background-image:url(../img/icons/loading.gif);background-repeat:no-repeat;background-position:center center;padding:1em 1.8em}.wpulike-heart .counter{border:1px solid #E0E0E0;background:url(../img/bg/button-love.png) no-repeat center right;border-radius:5px;padding:2px;max-height:30px}.wpulike-heart .counter a,#buddypress .wpulike-heart .counter a,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.text,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading{border:none;font-weight:700;box-shadow:none;background:transparent;border-right:1px solid #d3d3d3;border-radius:0}.wpulike-heart .counter a:hover,.wpulike-heart .counter a:active{background-color:transparent;box-shadow:none;color:#ef0000}.wpulike-heart .counter a.image,.wpulike-heart .counter a.image-unlike,#buddypress .activity-content .wpulike-heart .counter a.image,#buddypress .activity-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike{border:none;box-shadow:none;background-image:url(../img/icons/add-heart-16.png)!important;background-repeat:no-repeat!important;background-position:center center!important;padding:11px 16px!important;border-right:1px solid #E0E0E0}.wpulike-heart .counter a.image-unlike,#buddypress .activity-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike{background-image:url(../img/icons/remove-heart-16.png)!important}.wpulike-heart .counter a.image:hover{background-image:url(../img/icons/add-heart-hover.png)!important}.wpulike-heart .counter a.image-unlike:hover{background-image:url(../img/icons/remove-heart-hover.png)!important}.wpulike-heart .counter a.loading,#buddypress .activity-content .wpulike-heart .counter a.loading,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading{animation:none;background-image:url(../img/icons/loading.gif)!important;background-repeat:no-repeat!important;background-position:center center!important;padding:11px 15px!important;border-right:1px solid #E0E0E0}.wpulike-heart .count-box{border:none;vertical-align:middle;background-color:transparent;padding:.25em .5em;margin-left:0;color:#525252;font-size:.8em}.wpulike-heart .count-box:before{border:none;background:transparent}.rtl .wpulike .count-box{margin-right:.5em;margin-left:inherit}.rtl .wpulike .count-box:before{right:-.2125em;left:inherit;border-color:#898F9C #898F9C transparent transparent}.rtl .wpulike-heart .counter a,.rtl #buddypress .wpulike-heart .counter a,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.text,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading{border-left:1px solid #d3d3d3;border-right:0}.rtl .wpulike-heart .counter a.image,.rtl .wpulike-heart .counter a.image-unlike,.rtl #buddypress .activity-content .wpulike-heart .counter a.image,.rtl #buddypress .activity-content .wpulike-heart .counter a.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.image-unlike,.rtl .wpulike-heart .counter a.loading,.rtl #buddypress .activity-content .wpulike-heart .counter a.loading,.rtl #bbpress-forums .bbp-reply-content .wpulike-heart .counter a.loading{border-left:1px solid #E0E0E0;border-right:0}.rtl .wpulike-heart .count-box{margin-right:0;margin-left:inherit}.rtl .alert-dismissable,.rtl .alert-dismissible{padding-right:0;padding-left:35px}.rtl .alert-dismissable .close,.rtl .alert-dismissible .close{right:inherit;left:-21px}.rtl .close{float:left}.rtl .commentlist .tiles .avatar{left:inherit!important;right:0!important}.rtl .wp_ulike_thumbnail,.rtl .most_liked_comment .avatar{margin:0 0 0 10px}.rtl .wp_ulike_style_love .wp_counter_span{float:left;background:#F1F1F1 url(../img/icons/heart.png) no-repeat scroll 85% center;margin:2px 2px 0 0;padding:0 23px 0 5px}.toast-title{font-weight:700}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#FFF}.toast-message a:hover{color:#CCC;text-decoration:none}.toast-close-button{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:700;color:#FFF;-webkit-text-shadow:0 1px 0 #fff;text-shadow:0 1px 0 #fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);line-height:1}.toast-close-button:focus,.toast-close-button:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}.rtl .toast-close-button{left:-.3em;float:left;right:.3em}button.toast-close-button{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.toast-top-center{top:0;right:0;width:100%}.toast-bottom-center{bottom:0;right:0;width:100%}.toast-top-full-width{top:0;right:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{top:12px;left:12px}.toast-top-right{top:12px;right:12px}.toast-bottom-right{right:12px;bottom:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999;pointer-events:none}#toast-container *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#toast-container>div{position:relative;pointer-events:auto;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-position:15px center;background-repeat:no-repeat;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#FFF;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}#toast-container>div.rtl{direction:rtl;padding:15px 50px 15px 15px;background-position:right 15px center}#toast-container>div:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important}#toast-container>.toast-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important}#toast-container>.toast-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important}#toast-container>.toast-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important}#toast-container.toast-bottom-center>div,#toast-container.toast-top-center>div{width:300px;margin-left:auto;margin-right:auto}#toast-container.toast-bottom-full-width>div,#toast-container.toast-top-full-width>div{width:96%;margin-left:auto;margin-right:auto}.toast{background-color:#030303}.toast-success{background-color:#51A351}.toast-error{background-color:#BD362F}.toast-info{background-color:#2F96B4}.toast-warning{background-color:#F89406}.toast-progress{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}@media all and (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width:241px) and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width:481px) and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}#toast-container>div.rtl{padding:15px 50px 15px 15px}} 
     6.wpulike{display:inline-block;position:relative;vertical-align:middle;overflow:hidden;line-height:normal;margin:0}.wp_ulike_click_is_disabled{pointer-events:none;cursor:default}.wpulike .wp_ulike_btn{margin:0;display:inline-block;border-radius:.25em;border:1px solid #d3d3d3;vertical-align:middle;line-height:normal;padding:10px 20px;font-size:.75em;cursor:pointer;color:#777;background:#dfdfdf;box-shadow:1px 1px 0 rgba(255,255,255,0.5) inset;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-decoration:none;-webkit-transition:.25s;-moz-transition:.25s;-ms-transition:.25s;-o-transition:.25s;transition:.25s}.wpulike-default .wp_ulike_btn:focus{outline:none;border-color:#999}.wpulike-default .wp_ulike_btn:hover,.wpulike-default .wp_ulike_btn:active{text-decoration:none;color:#EEE;text-shadow:0 1px 0 rgba(0,0,0,0.3);background-color:#bdc3c7;border-color:#95a5a6}.wpulike .wp_ulike_btn.wp_ulike_put_text{padding:2px 10px}.wpulike-default .wp_ulike_btn.wp_ulike_put_image{background-image:url(../img/icons/add.png);background-repeat:no-repeat;background-position:center center}.wpulike-default .wp_ulike_btn.wp_ulike_put_image.image-unlike{background-image:url(../img/icons/remove.png)}.wpulike-default .count-box{position:relative;display:inline-block;border:1px solid #898F9C;border-radius:.25em;vertical-align:middle;color:#333;font-size:.75em;text-align:center;text-decoration:none;background-color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:.25em .5em;margin-left:.5em;line-height:1em;min-width:2.25em}.wpulike-default .count-box:before{content:'';width:.25em;height:.25em;position:absolute;border:1px solid transparent;background:#fff;border-bottom-color:#898F9C;left:-.2125em;top:50%;margin-top:-.2em;border-left-color:#898F9C;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);filter:progid: DXImageTransform.Microsoft.Matrix(M11=0.7071067811865476,M12=-0.7071067811865475,M21=0.7071067811865475,M22=0.7071067811865476,sizingMethod='auto expand')}.wpulike .wp_ulike_is_loading .wp_ulike_btn,#buddypress .activity-content .wpulike .wp_ulike_is_loading .wp_ulike_btn,#bbpress-forums .bbp-reply-content .wpulike .wp_ulike_is_loading .wp_ulike_btn{background-image:url(../img/icons/loading.gif)!important;background-repeat:no-repeat;background-position:center center}.wpulike .wp_ulike_is_loading .wp_ulike_btn span{visibility:hidden}.wpulike-default .wp_ulike_hide_me{visibility:hidden}#buddypress .activity ul.item-list li{position:initial}#buddypress div.activity-meta .tiles li a{padding:0}#buddypress .activity-content .wpulike-default .count-box,#bbpress-forums .bbp-reply-content .wpulike-default .count-box{font-size:small;padding:.3em .5em}#buddypress div.activity-meta .wpulike-default .wp_ulike_btn{padding:12px 10px!important}#buddypress div.activity-meta .wpulike-default .wp_ulike_btn.wp_ulike_put_text{padding:7px 10px!important}#bbpress-forums .wpulike-default .wp_ulike_btn{margin:0;display:inline-block;border-radius:.25em;border:1px solid #d3d3d3;line-height:1em;padding:.5em 1em;font-size:1em;cursor:pointer;vertical-align:middle;color:#777;background:#dfdfdf;box-shadow:1px 1px 0 rgba(255,255,255,0.5) inset;text-shadow:0 1px 0 rgba(255,255,255,0.5);text-decoration:none}#bbpress-forums .wpulike-default .wp_ulike_btn.wp_ulike_put_image{background-image:url(../img/icons/add.png);background-repeat:no-repeat;background-position:center center;padding:1em 1.8em}#bbpress-forums .wpulike-default .wp_ulike_btn.wp_ulike_put_image.image-unlike{background-image:url(../img/icons/remove.png)}.wpulike-heart .wp_ulike_general_class{display:block;border:1px solid #E0E0E0;background:url(../img/bg/button-love.png) no-repeat center right;border-radius:5px;padding:3px}.wpulike-heart .wp_ulike_btn,#buddypress .activity-content .wpulike-heart .wp_ulike_btn,#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn{border:none;padding:0 10px;font-weight:600;box-shadow:none;background:transparent;border-right:1px solid #d3d3d3;border-radius:0}.wpulike-heart .wp_ulike_btn:hover,.wpulike-heart .wp_ulike_btn:active{background-color:transparent;box-shadow:none;color:#ef0000}.wpulike-heart .wp_ulike_btn.wp_ulike_put_image,#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image,#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image{border:none;box-shadow:none;background-image:url(../img/icons/add-heart-16.png);background-repeat:no-repeat!important;background-position:center center!important;padding:11px 16px!important;border-right:1px solid #E0E0E0}.wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike,#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike,#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike{background-image:url(../img/icons/remove-heart-16.png)}.wpulike-heart .wp_ulike_btn.wp_ulike_put_image:hover,#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image:hover,#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image:hover{background-image:url(../img/icons/add-heart-hover.png)}.wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike:hover,#buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike:hover,#bbpress-forums .bbp-reply-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image.image-unlike:hover{background-image:url(../img/icons/remove-heart-hover.png)}.wpulike-heart .count-box{border:none;vertical-align:middle;background-color:transparent;padding:.25em .5em;margin-left:0;color:#525252;font-size:.8em}.wpulike-heart .count-box:before{border:none;background:transparent}.wpulike-robeen .count-box{position:relative;bottom:18px;right:8px;font-weight:600}.wpulike-robeen svg{cursor:pointer;overflow:visible;width:50px}.wpulike-robeen svg .heart{transform-origin:center;animation:animateHeartOut .3s linear forwards}.wpulike-robeen svg .main-circ{transform-origin:29.5px 29.5px}.wpulike-robeen .wp_ulike_btn{display:none!important}.wpulike-robeen .wp_ulike_btn:checked + svg .heart{transform:scale(0.2);fill:#E2264D;animation:animateHeart .3s linear forwards .25s}.wpulike-robeen .wp_ulike_btn:checked + svg .main-circ{transition:all 2s;animation:animateCircle .3s linear forwards;opacity:1}.wpulike-robeen .wp_ulike_btn:checked + svg .grp1{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp1 .oval1{transform:scale(0) translate(0,-30px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp1 .oval2{transform:scale(0) translate(10px,-50px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp2{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp2 .oval1{transform:scale(0) translate(30px,-15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp2 .oval2{transform:scale(0) translate(60px,-15px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp3{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp3 .oval1{transform:scale(0) translate(30px,0px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp3 .oval2{transform:scale(0) translate(60px,10px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp4{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp4 .oval1{transform:scale(0) translate(30px,15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp4 .oval2{transform:scale(0) translate(40px,50px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp5{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp5 .oval1{transform:scale(0) translate(-10px,20px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp5 .oval2{transform:scale(0) translate(-60px,30px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp6{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp6 .oval1{transform:scale(0) translate(-30px,0px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp6 .oval2{transform:scale(0) translate(-60px,-5px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp7{opacity:1;transition:.1s all .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp7 .oval1{transform:scale(0) translate(-30px,-15px);transform-origin:0 0 0;transition:.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp7 .oval2{transform:scale(0) translate(-55px,-30px);transform-origin:0 0 0;transition:1.5s transform .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp2{opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp3{opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp4{opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp5{opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp6{opacity:1;transition:.1s opacity .3s}.wpulike-robeen .wp_ulike_btn:checked + svg .grp7{opacity:1;transition:.1s opacity .3s}@keyframes animateCircle{40%{transform:scale(10);opacity:1;fill:#DD4688}55%{transform:scale(11);opacity:1;fill:#D46ABF}65%{transform:scale(12);opacity:1;fill:#CC8EF5}75%{transform:scale(13);opacity:1;fill:transparent;stroke:#CC8EF5;stroke-width:.5}85%{transform:scale(17);opacity:1;fill:transparent;stroke:#CC8EF5;stroke-width:.2}95%{transform:scale(18);opacity:1;fill:transparent;stroke:#CC8EF5;stroke-width:.1}100%{transform:scale(19);opacity:1;fill:transparent;stroke:#CC8EF5;stroke-width:0}}@keyframes animateHeart{0%{transform:scale(0.2)}40%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes animateHeartOut{0%{transform:scale(1.4)}100%{transform:scale(1)}}.rtl .wpulike-default .count-box{margin-right:.5em;margin-left:inherit}.rtl .wpulike-default .count-box:before{right:-.2125em;left:inherit;border-color:#898F9C #898F9C transparent transparent}.rtl .wpulike-heart .wp_ulike_btn,.rtl #buddypress .activity-content .wpulike-heart .wp_ulike_btn,.rtl #bbpress-forums .wpulike-heart .wp_ulike_btn{border-left:1px solid #d3d3d3;border-right:0}.rtl .wpulike-heart .wp_ulike_btn.wp_ulike_put_image,.rtl #buddypress .activity-content .wpulike-heart .wp_ulike_btn.wp_ulike_put_image,.rtl #bbpress-forums .wpulike-heart .wp_ulike_btn.wp_ulike_put_image,.rtl .wpulike-heart .wp_ulike_is_loading .wp_ulike_btn,.rtl #buddypress .activity-content .wpulike-heart wp_ulike_is_loading .wp_ulike_btn,.rtl #bbpress-forums .wpulike-heart wp_ulike_is_loading .wp_ulike_btn{border-left:1px solid #E0E0E0;border-right:0}.rtl .wpulike-robeen .count-box{right:inherit;left:8px}.rtl .wpulike-heart .count-box{margin-right:0;margin-left:inherit}.rtl .commentlist .tiles .avatar{left:inherit!important;right:0!important}.rtl .wp_ulike_thumbnail,.rtl .most_liked_comment .avatar{margin:0 0 0 10px}.rtl .wp_ulike_style_love .wp_counter_span{float:left;background:#F1F1F1 url(../img/icons/heart.png) no-repeat scroll 85% center;margin:2px 2px 0 0;padding:0 23px 0 5px}.tiles,.most_liked_users{list-style-type:none!important;position:relative!important;margin:10px 0!important;padding:0!important}.tiles li,.most_liked_users li{display:inline-table!important;cursor:pointer!important}.most_liked_users li{margin:0 2px!important}.tiles li.inactive,.most_liked_users li.inactive{visibility:hidden!important;opacity:0!important}.tiles li img,.most_liked_users li img{display:block!important;float:none!important}.commentlist .tiles .avatar{left:0!important}.wp_ulike_thumbnail,.most_liked_comment .avatar{vertical-align:middle;margin:0 10px 0 0}.wp_ulike_style_simple .wp_counter_span:before{content:"("}.wp_ulike_style_simple .wp_counter_span:after{content:")"}.wp_ulike_style_love .wp_counter_span{float:right;display:inline-block;background:#f1f1f1 url(../img/icons/heart.png) 5px center no-repeat;color:#333;font-size:9px;line-height:17px;font-weight:400;margin:2px 0 0 2px;vertical-align:middle;border-radius:10px;padding:0 5px 0 23px;z-index:26}.toast-title{font-weight:700}.toast-message{-ms-word-wrap:break-word;word-wrap:break-word}.toast-message a,.toast-message label{color:#FFF}.toast-message a:hover{color:#CCC;text-decoration:none}.toast-close-button{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:700;color:#FFF;-webkit-text-shadow:0 1px 0 #fff;text-shadow:0 1px 0 #fff;opacity:.8;-ms-filter:progid: DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);line-height:1}.toast-close-button:focus,.toast-close-button:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;-ms-filter:progid: DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}.rtl .toast-close-button{left:-.3em;float:left;right:.3em}button.toast-close-button{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.toast-top-center{top:0;right:0;width:100%}.toast-bottom-center{bottom:0;right:0;width:100%}.toast-top-full-width{top:0;right:0;width:100%}.toast-bottom-full-width{bottom:0;right:0;width:100%}.toast-top-left{top:12px;left:12px}.toast-top-right{top:12px;right:12px}.toast-bottom-right{right:12px;bottom:12px}.toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999;pointer-events:none}#toast-container *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}#toast-container>div{position:relative;pointer-events:auto;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-position:15px center;background-repeat:no-repeat;-moz-box-shadow:0 0 12px #999;-webkit-box-shadow:0 0 12px #999;box-shadow:0 0 12px #999;color:#FFF;opacity:.8;-ms-filter:progid: DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80)}#toast-container>div.rtl{direction:rtl;padding:15px 50px 15px 15px;background-position:right 15px center}#toast-container>div:hover{-moz-box-shadow:0 0 12px #000;-webkit-box-shadow:0 0 12px #000;box-shadow:0 0 12px #000;opacity:1;-ms-filter:progid: DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>.toast-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=)!important}#toast-container>.toast-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=)!important}#toast-container>.toast-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==)!important}#toast-container>.toast-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=)!important}#toast-container.toast-bottom-center>div,#toast-container.toast-top-center>div{width:300px;margin-left:auto;margin-right:auto}#toast-container.toast-bottom-full-width>div,#toast-container.toast-top-full-width>div{width:96%;margin-left:auto;margin-right:auto}.toast{background-color:#030303}.toast-success{background-color:#51A351}.toast-error{background-color:#BD362F}.toast-info{background-color:#2F96B4}.toast-warning{background-color:#F89406}.toast-progress{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4;-ms-filter:progid: DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40)}@media all and (max-width:240px){#toast-container>div{padding:8px 8px 8px 50px;width:11em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width:241px) and (max-width:480px){#toast-container>div{padding:8px 8px 8px 50px;width:18em}#toast-container>div.rtl{padding:8px 50px 8px 8px}#toast-container .toast-close-button{right:-.2em;top:-.2em}#toast-container .rtl .toast-close-button{left:-.2em;right:.2em}}@media all and (min-width:481px) and (max-width:768px){#toast-container>div{padding:15px 15px 15px 50px;width:25em}#toast-container>div.rtl{padding:15px 50px 15px 15px}} 
  • wp-ulike/trunk/inc/classes/class-ulike.php

    r1680761 r1706048  
    33 
    44    class wp_ulike{ 
     5         
    56        private $wpdb; 
     7        /** 
     8         * Instance of this class. 
     9         * 
     10         * @var      object 
     11         */ 
     12        protected static $instance  = null;      
    613 
    714        /** 
     
    1522         
    1623        /** 
    17          * Select logging method 
     24         * Select the logging type 
    1825         * 
    1926         * @author          Alimir 
    2027         * @param           Array $data 
    2128         * @since           2.0 
     29         * @since           2.8 //Added switch statement 
    2230         * @return          String 
    2331         */              
     
    2533            //get loggin method option 
    2634            $loggin_method = wp_ulike_get_setting( $data['setting'], 'logging_method'); 
    27              
    28             //select function from logging method 
    29             if($loggin_method == 'do_not_log') 
    30             return $this->do_not_log_method($data); 
    31              
    32             else if($loggin_method == 'by_cookie') 
    33             return $this->loggedby_cookie_method($data); 
    34              
    35             else if($loggin_method == 'by_ip') 
    36             return $this->loggedby_ip_method($data); 
    37              
    38             else 
    39             return $this->loggedby_other_ways($data); 
     35            //Select the logging functionality 
     36            switch($loggin_method){ 
     37                case 'do_not_log': 
     38                    return $this->do_not_log_method($data); 
     39                    break; 
     40                case 'by_cookie': 
     41                    return $this->loggedby_cookie_method($data); 
     42                    break; 
     43                case 'by_ip': 
     44                    return $this->loggedby_ip_method($data); 
     45                    break; 
     46                default: 
     47                    return $this->loggedby_other_ways($data); 
     48            } 
    4049        } 
    4150 
     
    4756         * @since           2.0 
    4857         * @updated         2.3 
     58         * @updated         2.8 //Added 'get_template' changes & Removed some variables 
    4959         * @return          String 
    5060         */          
    5161        public function do_not_log_method(array $data){ 
    52             $liked      = wp_ulike_format_number($data["get_like"]); 
    53             $template   = $this->get_template($data["id"],$data["method"],$liked,2,2); 
    54             $counter    = ''; 
     62            $output     = ''; 
    5563             
    5664            if($data["type"] == 'post'){ 
    57                 if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') { 
    58                     $counter = $template['like_img']; 
    59                 } 
    60                 else { 
    61                     $counter = $template['like_text']; 
    62                 } 
     65                $output = $this->get_template( $data, 1 ); 
    6366            }//end post button 
    6467            else if($data["type"] == 'process'){ 
     
    7073                } 
    7174                do_action('wp_ulike_mycred_like', $data['id'], $data['key']); 
    72                 $counter = wp_ulike_format_number($newLike); 
     75                $output = wp_ulike_format_number($newLike); 
    7376            }//end post process 
    74             return $counter;             
     77            return $output;          
    7578        } 
    7679 
     
    8285         * @since           2.0 
    8386         * @updated         2.3 
     87         * @updated         2.8 //Added 'get_template' changes & Removed some variables 
    8488         * @return          String 
    8589         */      
    86         public function loggedby_cookie_method(array $data){ 
    87             $liked          = wp_ulike_format_number($data["get_like"]); 
    88             $template       = $this->get_template($data["id"],$data["method"],$liked,1,2); 
     90        public function loggedby_cookie_method( array $data ){ 
    8991            $condition      = isset($_COOKIE[$data["cookie"].$data["id"]]); 
    9092            $button_type    = wp_ulike_get_setting( 'wp_ulike_general', 'button_type'); 
    91             $counter        = ''; 
     93            $output         = ''; 
    9294             
    9395            if($data["type"] == 'post'){ 
    9496                if(!$condition){ 
    95                     if ($button_type == 'image') { 
    96                         $counter = $template['like_img']; 
    97                     } 
    98                     else { 
    99                         $counter = $template['like_text']; 
    100                     } 
     97                    $output = $this->get_template( $data, 1 ); 
    10198                } 
    10299                else{ 
    103                     if ($button_type == 'image') { 
    104                         $counter = $template['permission_img']; 
    105                     } 
    106                     else { 
    107                         $counter = $template['permission_text']; 
    108                     }                
     100                    $output = $this->get_template( $data, 4 ); 
    109101                } 
    110102            }//end post button 
     
    119111                    } 
    120112                    do_action('wp_ulike_mycred_like', $data['id'], $data['key']); 
    121                     $counter = wp_ulike_format_number($newLike); 
     113                    $output = wp_ulike_format_number($newLike); 
    122114                } 
    123115                else{ 
    124                     $counter = wp_ulike_format_number($data["get_like"]); 
     116                    $output = wp_ulike_format_number($data["get_like"]); 
    125117                } 
    126118            }//end post process 
    127             return $counter;                 
     119            return $output;              
    128120        } 
    129121         
     
    134126         * @param           Array $data 
    135127         * @since           2.0 
    136          * @updated         2.3       
     128         * @updated         2.3 
     129         * @updated         2.8 //Added 'get_template' changes & Removed some variables 
    137130         * @return          String 
    138131         */      
    139         public function loggedby_ip_method(array $data){ 
    140             $liked          = wp_ulike_format_number($data["get_like"]); 
    141             $tmp1           = $this->get_template($data["id"],$data["method"],$liked,1,0); 
    142             $tmp2           = $this->get_template($data["id"],$data["method"],$liked,1,1); 
    143             $button_type    = wp_ulike_get_setting( 'wp_ulike_general', 'button_type'); 
     132        public function loggedby_ip_method( array $data ){ 
    144133            $condition      = $this->wpdb->get_var("SELECT COUNT(*) FROM ".$this->wpdb->prefix.$data['table']." WHERE ".$data['column']." = '".$data['id']."' AND ip = '".$data['user_ip']."'"); 
     134            $output         = ''; 
    145135             
    146136            if($data["type"] == 'post'){ 
    147137                if($condition == 0){ 
    148                     if ($button_type == 'image') { 
    149                         $counter = $tmp1['like_img']; 
    150                     } 
    151                     else { 
    152                         $counter = $tmp1['like_text']; 
    153                     } 
     138                    $output = $this->get_template( $data, 1 ); 
    154139                } 
    155140                else{ 
    156141                    if($this->get_user_status($data['table'],$data['column'],'ip',$data['id'],$data['user_ip']) == "like"){ 
    157                         if ($button_type == 'image') { 
    158                             $counter = $tmp2['unlike_img'];  
    159                         } 
    160                         else { 
    161                             $counter = $tmp2['unlike_text']; 
    162                         }                        
     142                        $output = $this->get_template( $data, 2 );                   
    163143                    } 
    164144                    else{ 
    165                         if ($button_type == 'image') { 
    166                             $counter = $tmp1['like_img'];        
    167                         } 
    168                         else { 
    169                             $counter = $tmp1['like_text']; 
    170                         } 
     145                        $output = $this->get_template( $data, 3 ); 
    171146                    }            
    172147                } 
     
    181156                    } 
    182157                    do_action('wp_ulike_mycred_like', $data['id'], $data['key']); 
    183                     $counter = wp_ulike_format_number($newLike); 
     158                    $output = wp_ulike_format_number($newLike); 
    184159                } 
    185160                else{ 
     
    194169                        "); 
    195170                        do_action('wp_ulike_mycred_unlike', $data['id'], $data['key']); 
    196                         $counter = wp_ulike_format_number($newLike);                 
     171                        $output = wp_ulike_format_number($newLike);              
    197172                    } 
    198173                    else{ 
     
    206181                        "); 
    207182                        do_action('wp_ulike_mycred_like', $data['id'], $data['key']); 
    208                         $counter = wp_ulike_format_number($newLike); 
     183                        $output = wp_ulike_format_number($newLike); 
    209184                    } 
    210185                } 
    211186            }//end post process 
    212             return $counter;             
     187            return $output;          
    213188        } 
    214189         
     
    220195         * @since           2.0 
    221196         * @updated         2.3       
    222          * @updated         2.4.2         
     197         * @updated         2.4.2 
     198         * @updated         2.8 //Added 'get_template' changes & Removed some variables 
    223199         * @return          String 
    224200         */  
    225         public function loggedby_other_ways(array $data){ 
    226             $liked              = wp_ulike_format_number($data["get_like"]); 
    227             $tmp1               = $this->get_template($data["id"],$data["method"],$liked,1,0); 
    228             $tmp2               = $this->get_template($data["id"],$data["method"],$liked,1,1); 
    229             $loggin_method      = wp_ulike_get_setting( $data['setting'], 'logging_method'); 
    230             $button_type        = wp_ulike_get_setting( 'wp_ulike_general', 'button_type'); 
     201        public function loggedby_other_ways( array $data ){ 
     202            $loggin_method      = wp_ulike_get_setting( $data['setting'], 'logging_method' ); 
    231203            $second_condition   = true; //check for by_username login method 
     204            $output             = ''; 
    232205             
    233206            /* I removed this section (by_cookie_ip method) for some tests on v2.4.2 
     
    238211            }*/ 
    239212            //else if($loggin_method    == 'by_username'){ 
    240                 $condition      = $this->wpdb->get_var("SELECT COUNT(*) FROM ".$this->wpdb->prefix.$data['table']." WHERE ".$data['column']." = '".$data['id']."' AND user_id = '".$data['user_id']."'"); 
    241                 $user_info      = get_userdata($data['user_id']);// check for user data 
    242                 if(!$user_info) $second_condition = false;// if user not exist, condition will be false 
    243                 $second_column  = 'user_id'; 
    244                 $second_val     = $data['user_id']; 
    245                 if(!is_user_logged_in()) 
    246                 $tmp1           = $this->get_template($data["id"],$data["method"],$liked,1,2); 
     213            $condition      = $this->wpdb->get_var("SELECT COUNT(*) FROM ".$this->wpdb->prefix.$data['table']." WHERE ".$data['column']." = '".$data['id']."' AND user_id = '".$data['user_id']."'"); 
     214            $user_info      = get_userdata($data['user_id']);// check for user data 
     215            if(!$user_info) $second_condition = false;// if user not exist, condition will be false 
     216            $second_column  = 'user_id'; 
     217            $second_val     = $data['user_id']; 
    247218            //} 
    248219             
     
    250221            if($data["type"] == 'post'){ 
    251222                if($condition == 0 /*&& !isset($_COOKIE[$data["cookie"].$data["id"]])*/){ 
    252                     if ($button_type == 'image') { 
    253                         $counter = $tmp1['like_img']; 
    254                     } 
    255                     else { 
    256                         $counter = $tmp1['like_text']; 
    257                     } 
     223                    $output = $this->get_template( $data, 1 ); 
    258224                } 
    259225                else if($condition != 0 /*&& isset($_COOKIE[$data["cookie"].$data["id"]])*/ && $second_condition){ 
    260226                    if($this->get_user_status($data['table'],$data['column'],$second_column,$data['id'],$second_val) == "like"){ 
    261                         if ($button_type == 'image') { 
    262                             $counter = $tmp2['unlike_img'];  
    263                         } 
    264                         else { 
    265                             $counter = $tmp2['unlike_text']; 
    266                         } 
     227                        $output = $this->get_template( $data, 2 ); 
    267228                    } 
    268229                    else{ 
    269                         if ($button_type == 'image') { 
    270                             $counter = $tmp1['like_img'];        
    271                         } 
    272                         else { 
    273                             $counter = $tmp1['like_text']; 
    274                         } 
    275                     } 
    276                 } 
    277                 else{ 
    278                     if ($button_type == 'image') { 
    279                         $counter = $tmp1['permission_img']; 
    280                     } 
    281                     else { 
    282                         $counter = $tmp1['permission_text']; 
    283                     }                       } 
     230                        $output = $this->get_template( $data, 3 ); 
     231                    } 
     232                } 
     233                else { 
     234                    $output = $this->get_template( $data, 4 ); 
     235                } 
    284236            }//end post button 
    285237            else if($data["type"] == 'process'){ 
     
    293245                    //setcookie($data["cookie"].$data["id"], time(), time()+3600*24*365, '/'); 
    294246                    do_action('wp_ulike_mycred_like', $data['id'], $data['key']);    
    295                     $counter = wp_ulike_format_number($newLike); 
     247                    $output = wp_ulike_format_number($newLike); 
    296248                } 
    297249                else if($condition != 0  /*&&isset($_COOKIE[$data["cookie"].$data["id"]])*/ && $second_condition){ 
     
    306258                        "); 
    307259                        do_action('wp_ulike_mycred_unlike', $data['id'], $data['key']); 
    308                         $counter = wp_ulike_format_number($newLike);                 
     260                        $output = wp_ulike_format_number($newLike);              
    309261                    } 
    310262                    else{ 
     
    318270                        "); 
    319271                        do_action('wp_ulike_mycred_like', $data['id'], $data['key']); 
    320                         $counter = wp_ulike_format_number($newLike); 
     272                        $output = wp_ulike_format_number($newLike); 
    321273                    } 
    322274                } 
    323275                else{ 
    324                     $counter = wp_ulike_format_number($data["get_like"]); 
     276                    $output = wp_ulike_format_number($data["get_like"]); 
    325277                } 
    326278            }//end post process 
    327             return $counter;                 
     279            return $output;              
    328280        } 
    329281 
     
    349301                return 0; 
    350302        } 
     303         
    351304 
    352305        /** 
     
    354307         * 
    355308         * @author          Alimir 
    356          * @param           Integer $id 
    357          * @param           String $method 
    358          * @param           Integer $liked 
    359          * @param           Integer $num1 
    360          * @param           Integer $num2 
     309         * @param           Array $args 
     310         * @param           Integer $status ( 0 = Is not logged, 1 = Is not liked, 2 = Is liked in the past, 3 = Is unliked, 4 = Is already liked ) 
    361311         * @since           2.0 
    362312         * @updated         2.3 
    363313         * @updated         2.7 //Added 'wp_ulike_count_box_template' filter 
     314         * @updated         2.8 //Removed some old variables & added a new functionality 
    364315         * @return          String 
    365316         */      
    366         public function get_template($id,$method,$liked,$num1,$num2){ 
    367          
    368             $counter            = apply_filters('wp_ulike_count_box_template', '<span class="count-box">'.$liked.'</span>', $liked); 
    369             $button_text        = html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text')); 
    370             $button_text_u      = html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text_u'));            
    371             $permission_text    = html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'permission_text')); 
    372             $login_text         = html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'login_text')); 
    373             $status             = $num1 + $num2; 
    374              
    375             return array( 
    376             "like_img"          => '<a data-ulike-id="'.$id.'" data-ulike-type="'.$method.'" data-ulike-status="'.$status.'" class="wp_ulike_btn image"></a>'.$counter.'', 
    377             "like_text"         => '<a data-ulike-id="'.$id.'" data-ulike-type="'.$method.'" data-ulike-status="'.$status.'" class="wp_ulike_btn text">'.$button_text.'</a>'.$counter.'', 
    378             "unlike_img"        => '<a data-ulike-id="'.$id.'" data-ulike-type="'.$method.'" data-ulike-status="'.$status.'" class="wp_ulike_btn image-unlike"></a>'.$counter.'', 
    379             "unlike_text"       => '<a data-ulike-id="'.$id.'" data-ulike-type="'.$method.'" data-ulike-status="'.$status.'" class="wp_ulike_btn text">'.$button_text_u.'</a>'.$counter.'', 
    380             "permission_text"   => '<a title="'.$permission_text.'" class="text user-tooltip">'.$button_text_u.'</a>'.$counter.'', 
    381             "permission_img"    => '<a title="'.$permission_text.'" class="image-unlike user-tooltip"></a>'.$counter.'', 
    382             "login_img"         => '<a title="'.$login_text.'" class="image user-tooltip"></a>'.$counter.'',                 
    383             "login_text"        => '<a title="'.$login_text.'" class="text user-tooltip">'.$button_text.'</a>'.$counter.''               
     317        public function get_template( array $args, $status ){        
     318             
     319            $button_type        = wp_ulike_get_setting( 'wp_ulike_general', 'button_type' ); 
     320            //Primary button class name 
     321            $button_class_name  = str_replace( ".", "", apply_filters( 'wp_ulike_button_selector', 'wp_ulike_btn' ) ); 
     322            //Button text value 
     323            $button_text        = ''; 
     324             
     325            if( $button_type == 'image' ){ 
     326                $button_class_name .= ' wp_ulike_put_image'; 
     327                if($status == 2){ 
     328                    $button_class_name .= ' image-unlike'; 
     329                } 
     330            } else { 
     331                $button_class_name .= ' wp_ulike_put_text'; 
     332                if($status == 2){ 
     333                    $button_text = html_entity_decode( wp_ulike_get_setting( 'wp_ulike_general', 'button_text_u' ) ); 
     334                } else { 
     335                    $button_text = html_entity_decode( wp_ulike_get_setting( 'wp_ulike_general', 'button_text' ) ); 
     336                } 
     337            } 
     338             
     339            $general_class_name = str_replace( ".", "", apply_filters( 'wp_ulike_general_selector', 'wp_ulike_general_class' ) ); 
     340             
     341            switch ($status){ 
     342                case 0: 
     343                    $general_class_name .= ' wp_ulike_is_not_logged'; 
     344                    break; 
     345                case 1: 
     346                    $general_class_name .= ' wp_ulike_is_not_liked'; 
     347                    break; 
     348                case 2: 
     349                    $general_class_name .= ' wp_ulike_is_liked'; 
     350                    break; 
     351                case 3: 
     352                    $general_class_name .= ' wp_ulike_is_unliked'; 
     353                    break; 
     354                case 4: 
     355                    $general_class_name .= ' wp_ulike_is_already_liked';   
     356            }        
     357             
     358            $counter = apply_filters( 'wp_ulike_count_box_template', '<span class="count-box">'. wp_ulike_format_number( $args['get_like'] ) .'</span>' , $args['get_like'] ); 
     359             
     360            $wp_ulike_template  = apply_filters( 'wp_ulike_add_templates_args', array( 
     361                    "ID"            => $args['id'], 
     362                    "slug"          => $args['slug'], 
     363                    "counter"       => $counter, 
     364                    "type"          => $args['method'], 
     365                    "status"        => $status, 
     366                    "attributes"    => $args['attributes'], 
     367                    "microdata"     => $args['microdata'], 
     368                    "style"         => $args['style'], 
     369                    "button_type"   => $button_type, 
     370                    "button_text"   => $button_text, 
     371                    "general_class" => $general_class_name, 
     372                    "button_class"  => $button_class_name 
     373                ) 
    384374            ); 
     375             
     376             
     377            $wp_ulike_callback = apply_filters( 'wp_ulike_add_templates_list', call_user_func('wp_ulike_generate_templates_list') ); 
     378             
     379            $output         = ''; 
     380             
     381            foreach( $wp_ulike_callback as $key => $value ){ 
     382               if ( $key === $args['style'] ) { 
     383                   $output = call_user_func( $value['callback'], $wp_ulike_template ); 
     384                   break; 
     385               }             
     386            } 
     387             
     388            return apply_filters( 'wp_ulike_return_final_templates', trim( preg_replace( '/\s+/',' ', $output ) ), $wp_ulike_template ); 
     389         
    385390        }        
    386391         
     
    398403         */ 
    399404        public function get_user_status($table,$first_column,$second_column,$first_val,$second_val){ 
     405             
    400406            $like_status = $this->wpdb->get_var("SELECT status FROM ".$this->wpdb->prefix."$table WHERE $first_column = '$first_val' AND $second_column = '$second_val'"); 
    401             if ($like_status == "like") 
    402             return "like"; 
    403             else 
    404             return "unlike"; 
     407             
     408            if ($like_status == "like") { 
     409                return "like"; 
     410            } else { 
     411                return "unlike"; 
     412            } 
    405413        } 
    406414         
     
    522530        function get_reutrn_id(){ 
    523531            global $user_ID,$wp_user_IP; 
     532             
    524533            if(!is_user_logged_in()){ 
    525534                return ip2long($wp_user_IP); 
    526535            } 
    527             else 
     536            else { 
    528537                return $user_ID; 
    529         } 
     538            } 
     539        } 
     540         
     541        /** 
     542         * Return an instance of this class. 
     543         * 
     544         * @return    object    A single instance of this class. 
     545         */ 
     546        public static function get_instance() { 
     547 
     548            // If the single instance hasn't been set, set it now. 
     549            if ( null == self::$instance ) { 
     550                self::$instance = new self; 
     551            } 
     552 
     553            return self::$instance; 
     554        }        
    530555         
    531556         
     
    534559    //global variables 
    535560    global $wp_ulike_class; 
    536     $wp_ulike_class = new wp_ulike(); 
     561    $wp_ulike_class = wp_ulike::get_instance(); 
    537562     
    538563} 
  • wp-ulike/trunk/inc/wp-functions.php

    r1680761 r1706048  
    11<?php 
     2 
     3    if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed 
    24     
    35/******************************************************* 
     
    112114     * @author          Alimir 
    113115     * @since           2.7  
     116     * @since           2.8 //Replaced 'mysql2date' with 'get_post_time' function 
    114117     * @return          String 
    115118     */ 
     
    121124        $post_meta      .= apply_filters( 'wp_ulike_extra_structured_data', NULL ); 
    122125        $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 ) . '" />'; 
     126        $post_meta      .= '<meta itemprop="datePublished" content="' . get_post_time('c') . '" />'; 
    124127        $ratings_meta   = '<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">'; 
    125128        $ratings_meta   .= '<meta itemprop="bestRating" content="5" />'; 
     
    268271    if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'auto_display' ) == '1') { 
    269272        function wp_ulike_put_buddypress() { 
    270             echo wp_ulike_buddypress('put'); 
     273            wp_ulike_buddypress('get'); 
    271274        } 
    272275         
     
    550553         
    551554        function wp_ulike_put_bbpress() { 
    552              echo wp_ulike_bbpress('put'); 
     555             wp_ulike_bbpress('get'); 
    553556        } 
    554557         
     
    750753     * @updated         2.3 
    751754     * @updated         2.4 
     755     * @updated         2.8 //Added new element names 
    752756     * @return          Void (Print new CSS styles) 
    753757     */ 
     
    768772        if(wp_ulike_get_setting( 'wp_ulike_customize', 'custom_style') == '1'){ 
    769773         
    770         //get custom options 
    771         $customstyle    = get_option( 'wp_ulike_customize' ); 
    772          
    773         //button style 
    774         $btn_bg         = $customstyle['btn_bg']; 
    775         $btn_border     = $customstyle['btn_border']; 
    776         $btn_color      = $customstyle['btn_color']; 
    777          
    778         //counter style 
    779         $counter_bg     = $customstyle['counter_bg']; 
    780         $counter_border = $customstyle['counter_border']; 
    781         $counter_color  = $customstyle['counter_color']; 
    782          
    783         //Loading animation 
    784         $customloading  = $customstyle['loading_animation']; 
    785         $loadingurl     = wp_get_attachment_url( $customloading ); 
    786          
    787         $custom_css     = $customstyle['custom_css']; 
    788  
    789          
    790         if($btn_bg != ''){ 
    791             $btn_style .= "background-color:$btn_bg;"; 
    792         }            
    793         if($btn_border != ''){ 
    794             $btn_style .= "border-color:$btn_border; "; 
    795         }            
    796         if($btn_color != ''){ 
    797             $btn_style .= "color:$btn_color;text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3);"; 
    798         } 
    799  
    800         if($counter_bg != ''){ 
    801             $counter_style .= "background-color:$counter_bg; "; 
    802         }            
    803         if($counter_border != ''){ 
    804             $counter_style .= "border-color:$counter_border; "; 
    805             $before_style  = "border-color:transparent; border-bottom-color:$counter_border; border-left-color:$counter_border;"; 
    806         }            
    807         if($counter_color != ''){ 
    808             $counter_style .= "color:$counter_color;"; 
    809         } 
     774            //get custom options 
     775            $customstyle    = get_option( 'wp_ulike_customize' ); 
     776 
     777            //button style 
     778            $btn_bg         = $customstyle['btn_bg']; 
     779            $btn_border     = $customstyle['btn_border']; 
     780            $btn_color      = $customstyle['btn_color']; 
     781 
     782            //counter style 
     783            $counter_bg     = $customstyle['counter_bg']; 
     784            $counter_border = $customstyle['counter_border']; 
     785            $counter_color  = $customstyle['counter_color']; 
     786 
     787            //Loading animation 
     788            $customloading  = $customstyle['loading_animation']; 
     789            $loadingurl     = wp_get_attachment_url( $customloading ); 
     790 
     791            $custom_css     = $customstyle['custom_css']; 
     792 
     793 
     794            if($btn_bg != ''){ 
     795                $btn_style .= "background-color:$btn_bg;"; 
     796            }            
     797            if($btn_border != ''){ 
     798                $btn_style .= "border-color:$btn_border; "; 
     799            }            
     800            if($btn_color != ''){ 
     801                $btn_style .= "color:$btn_color;text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3);"; 
     802            } 
     803 
     804            if($counter_bg != ''){ 
     805                $counter_style .= "background-color:$counter_bg; "; 
     806            }            
     807            if($counter_border != ''){ 
     808                $counter_style .= "border-color:$counter_border; "; 
     809                $before_style  = "border-color:transparent; border-bottom-color:$counter_border; border-left-color:$counter_border;"; 
     810            }            
     811            if($counter_color != ''){ 
     812                $counter_style .= "color:$counter_color;"; 
     813            } 
    810814         
    811815        } 
     
    813817        if($getlikeicon != '' || $getunlikeicon != '' || $customstyle != ''){ 
    814818                 
    815         if($getlikeicon != ''){ 
    816         $return_style .= ' 
    817         .wpulike .counter a.image { 
    818             background-image: url('.$getlikeurl.') !important; 
    819         } 
    820         .wpulike-heart .counter a.image:hover { 
    821             background-image:  url('.$getlikeurl.') !important; 
    822         } 
    823          '; 
    824         } 
    825          
    826         if($getunlikeicon != ''){ 
    827         $return_style .= ' 
    828         .wpulike .counter a.image-unlike { 
    829             background-image: url('.$getunlikeurl.') !important; 
    830         } 
    831         .wpulike-heart .counter a.image-unlike:hover { 
    832             background-image:  url('.$getunlikeurl.') !important; 
    833         } 
    834          '; 
    835         } 
    836          
    837         if($customloading != ''){ 
    838         $return_style .= ' 
    839         .wpulike .counter a.loading { 
    840             background-image: url('.$loadingurl.') !important; 
    841         } 
    842          '; 
    843         } 
    844          
    845         if($btn_style != ''){ 
    846         $return_style .= " 
    847         .wpulike-default .counter a{ 
    848             $btn_style   
    849         } 
    850         .wpulike-heart .counter{ 
    851             $btn_style 
    852         } 
    853         "; 
    854         } 
    855          
    856         if($counter_style != ''){ 
    857         $return_style .= " 
    858         .wpulike-default .count-box,.wpulike-default .count-box:before{ 
    859             $counter_style 
    860         } 
    861         .wpulike-default .count-box:before{ 
    862             $before_style 
    863         } "; 
    864         } 
    865          
    866         if($custom_css != ''){ 
    867         $return_style .= $custom_css; 
    868         } 
     819            if($getlikeicon != ''){ 
     820                $return_style .= ' 
     821                    .wp_ulike_btn.wp_ulike_put_image { 
     822                        background-image: url('.$getlikeurl.') !important; 
     823                    } 
     824                '; 
     825            } 
     826 
     827            if($getunlikeicon != ''){ 
     828                $return_style .= ' 
     829                    .wp_ulike_btn.wp_ulike_put_image.image-unlike { 
     830                        background-image: url('.$getunlikeurl.') !important; 
     831                    } 
     832                 '; 
     833            } 
     834 
     835            if($customloading != ''){ 
     836                $return_style .= ' 
     837                    .wpulike .wp_ulike_is_loading .wp_ulike_btn, 
     838    #buddypress .activity-content .wpulike .wp_ulike_is_loading .wp_ulike_btn, 
     839    #bbpress-forums .bbp-reply-content .wpulike .wp_ulike_is_loading .wp_ulike_btn { 
     840                        background-image: url('.$loadingurl.') !important; 
     841                    } 
     842                 '; 
     843            } 
     844 
     845            if($btn_style != ''){ 
     846                $return_style .= ' 
     847                    .wpulike-default .wp_ulike_btn, .wpulike-default .wp_ulike_btn:hover, #bbpress-forums .wpulike-default .wp_ulike_btn, #bbpress-forums .wpulike-default .wp_ulike_btn:hover{ 
     848                        '.$btn_style.'   
     849                    } 
     850                    .wpulike-heart .wp_ulike_general_class{ 
     851                        '.$btn_style.'   
     852                    } 
     853                '; 
     854            } 
     855 
     856            if($counter_style != ''){ 
     857                $return_style .= ' 
     858                    .wpulike-default .count-box,.wpulike-default .count-box:before{ 
     859                        '.$counter_style.' 
     860                    } 
     861                    .wpulike-default .count-box:before{ 
     862                        '.$before_style.' 
     863                    } 
     864                '; 
     865            }    
     866 
     867            if($custom_css != ''){ 
     868                $return_style .= $custom_css; 
     869            } 
     870             
    869871        } 
    870872         
     
    906908     
    907909/******************************************************* 
    908   WP ULike Class 
     910  WP ULike Class & Templates 
    909911*******************************************************/ 
    910      
    911     include( plugin_dir_path(__FILE__) . 'classes/class-ulike.php');     
     912    //Include wp_ulike class 
     913    require_once( plugin_dir_path( __FILE__ ) . 'classes/class-ulike.php' );     
     914    //Include templates functions 
     915    require_once( plugin_dir_path( __FILE__ ) . 'wp-templates.php' );    
  • wp-ulike/trunk/inc/wp-script.php

    r1579042 r1706048  
    1010     * @updated         2.2   
    1111     * @updated         2.4.1     
     12     * @updated         2.8 //Removed  like_notice & unlike_notice variables of 'wp_localize_script' function + Dequeued 'wp_ulike_plugins' script 
    1213     * @return          void 
    1314     */ 
     
    1718        //enqueue JQuery script 
    1819        wp_enqueue_script( 'jquery' ); 
    19         //Add ulike script file with special functions. 
    20         wp_enqueue_script('wp_ulike', plugins_url('assets/js/wp-ulike-scripts.min.js', dirname(__FILE__)), array('jquery'), '1.2.3'); 
    21         //Add ulike plugin file, such as: tooltip, transaction, ... 
    22         wp_enqueue_script('wp_ulike_plugins', plugins_url('assets/js/wp-ulike-plugins.js', dirname(__FILE__)), array('jquery'), '1.0.1', true);  
     20        //Add wp_ulike script file with special functions. 
     21        wp_enqueue_script('wp_ulike', plugins_url('assets/js/wp-ulike.min.js', dirname(__FILE__)), array('jquery'), '2.8', true); 
    2322        //localize script 
    24         wp_localize_script( 'wp_ulike', 'ulike_obj', array( 
    25             'ajaxurl'       => admin_url( 'admin-ajax.php' ), 
    26             'button_text_u' => wp_ulike_get_setting( 'wp_ulike_general', 'button_text_u'), 
    27             'button_text'   => wp_ulike_get_setting( 'wp_ulike_general', 'button_text'), 
    28             'button_type'   => wp_ulike_get_setting( 'wp_ulike_general', 'button_type'), 
    29             'notifications' => wp_ulike_get_setting( 'wp_ulike_general', 'notifications'), 
    30             'like_notice'   => wp_ulike_get_setting( 'wp_ulike_general', 'like_notice'), 
    31             'unlike_notice' => wp_ulike_get_setting( 'wp_ulike_general', 'unlike_notice') 
     23        wp_localize_script( 'wp_ulike', 'wp_ulike_params', array( 
     24            'ajax_url'          => admin_url( 'admin-ajax.php' ), 
     25            'counter_selector'  => apply_filters('wp_ulike_counter_selector', '.count-box'), 
     26            'button_selector'   => apply_filters('wp_ulike_button_selector', '.wp_ulike_btn'), 
     27            'general_selector'  => apply_filters('wp_ulike_general_selector', '.wp_ulike_general_class'), 
     28            'button_type'       => wp_ulike_get_setting( 'wp_ulike_general', 'button_type'), 
     29            'notifications'     => wp_ulike_get_setting( 'wp_ulike_general', 'notifications') 
    3230        )); 
    3331        //wp_ajax hooks for the custom AJAX requests 
  • wp-ulike/trunk/inc/wp-ulike.php

    r1680761 r1706048  
    11<?php 
     2 
     3    if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed 
    24     
    35    /** 
     
    810     * @updated         2.3 
    911     * @updated         2.7 //added 'wp_ulike_posts_add_attr', 'wp_ulike_posts_microdata' & 'wp_ulike_login_alert_template' filters 
    10      * @return          String 
    11      */ 
    12     function wp_ulike($arg) { 
     12     * @updated         2.8 //Removed some old functions & added new filters support. 
     13     * @return          String 
     14     */ 
     15    function wp_ulike( $type = 'get', $args = array() ) { 
    1316        //global variables 
    14         global $post,$wp_ulike_class,$wp_user_IP; 
     17        global $post, $wp_ulike_class, $wp_user_IP; 
    1518         
    1619        $post_ID        = $post->ID; 
    17         $get_post_meta  = get_post_meta($post_ID, '_liked', true); 
     20        $get_post_meta  = get_post_meta( $post_ID, '_liked', true ); 
    1821        $get_like       = $get_post_meta != '' ? $get_post_meta : 0; 
    1922        $return_userID  = $wp_ulike_class->get_reutrn_id(); 
    20         $theme_class    = wp_ulike_get_setting( 'wp_ulike_posts', 'theme');      
    21          
    22         if( 
    23             (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') != '1') 
    24         or 
    25             (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && is_user_logged_in()) 
    26         ){ 
    27          
    28         $data = array( 
    29             "id"        => $post_ID,                //Post ID 
    30             "user_id"   => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
    31             "user_ip"   => $wp_user_IP,             //User IP 
    32             "get_like"  => $get_like,               //Number Of Likes 
    33             "method"    => 'likeThis',              //JavaScript method 
    34             "setting"   => 'wp_ulike_posts',        //Setting Key 
    35             "type"      => 'post',                  //Function type (post/process) 
    36             "table"     => 'ulike',                 //posts table 
    37             "column"    => 'post_id',               //ulike table column name            
    38             "key"       => '_liked',                //meta key 
    39             "cookie"    => 'liked-'                 //Cookie Name 
     23        $attributes     = apply_filters( 'wp_ulike_posts_add_attr', null ); 
     24        $microdata      = apply_filters( 'wp_ulike_posts_microdata', null ); 
     25        $style          = wp_ulike_get_setting( 'wp_ulike_posts', 'theme' ); 
     26         
     27        //Main data 
     28        $args = array( 
     29            "id"            => $post_ID,                //Post ID 
     30            "user_id"       => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
     31            "user_ip"       => $wp_user_IP,             //User IP 
     32            "get_like"      => $get_like,               //Number Of Likes 
     33            "method"        => 'likeThis',              //JavaScript method 
     34            "setting"       => 'wp_ulike_posts',        //Setting Key 
     35            "type"          => 'post',                  //Function type (post/process) 
     36            "table"         => 'ulike',                 //posts table 
     37            "column"        => 'post_id',               //ulike table column name 
     38            "key"           => '_liked',                //meta key 
     39            "cookie"        => 'liked-',                //Cookie Name 
     40            "slug"          => 'post',                  //Slug Name 
     41            "style"         => $style,                  //Get Default Theme 
     42            "microdata"     => $microdata,              //Get Microdata Filter 
     43            "attributes"    => $attributes              //Get Attributes Filter 
    4044        );       
    4145         
    42         //call wp_get_ulike function from class-ulike calss 
    43         $counter        = $wp_ulike_class->wp_get_ulike($data); 
    44          
    45         $wp_ulike       = '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_posts_add_attr', null).'>'; 
    46         $wp_ulike       .= '<div class="counter">'.$counter.'</div>'; 
    47         $wp_ulike       .= apply_filters('wp_ulike_posts_microdata', null); 
    48         $wp_ulike       .= '</div>'; 
    49         $wp_ulike       .= $wp_ulike_class->get_liked_users($post_ID,'ulike','post_id','wp_ulike_posts'); 
    50          
    51         if ($arg == 'put') { 
    52             return $wp_ulike; 
    53         } 
    54         else { 
    55             echo $wp_ulike; 
    56         } 
     46        if( ( wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') != '1' ) or ( wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users' ) == '1' && is_user_logged_in() ) ) { 
     47            //call wp_get_ulike function from wp_ulike class 
     48            $wp_ulike       = $wp_ulike_class->wp_get_ulike( $args ); 
     49            $wp_ulike       .= $wp_ulike_class->get_liked_users( $post_ID, 'ulike', 'post_id', 'wp_ulike_posts' ); 
     50 
     51            if ($type == 'put') { 
     52                return $wp_ulike; 
     53            } 
     54            else { 
     55                echo $wp_ulike; 
     56            } 
    5757         
    5858        }//end !only_registered_users condition 
    59          
    60         else if (wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && !is_user_logged_in()){ 
    61             $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type'); 
    62             if($login_type == "button"){ 
    63                 $template = $wp_ulike_class->get_template($post_ID,'likeThis',$get_like,1,0); 
    64                 if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') { 
    65                     return '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'"><div class="counter">' . $template['login_img'] . '</div></div>';       
    66                 } 
    67                 else { 
    68                     return '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'"><div class="counter">' . $template['login_text'] . '</div></div>';  
    69                 } 
    70             } 
    71             else 
    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>'); 
     59        elseif ( wp_ulike_get_setting( 'wp_ulike_posts', 'only_registered_users') == '1' && ! is_user_logged_in() ) { 
     60            if(wp_ulike_get_setting( 'wp_ulike_general', 'login_type') == "button") { 
     61                return $wp_ulike_class->get_template( $args, 0 );        
     62            } else { 
     63                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert">'.__('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>'); 
     64            } 
    7365        }//end only_registered_users condition 
    7466         
     
    8274     * @updated         2.3 
    8375     * @updated         2.7 //added 'wp_ulike_login_alert_template' & 'wp_ulike_comments_add_attr' filters 
    84      * @return          String 
    85      */ 
    86     function wp_ulike_comments($arg) { 
     76     * @updated         2.8 //Removed some old functions & added new filters support.  
     77     * @return          String 
     78     */ 
     79    function wp_ulike_comments( $type = 'get', $args = array() ) { 
    8780        //global variables 
    88         global $wp_ulike_class,$wp_user_IP; 
     81        global $wp_ulike_class, $wp_user_IP; 
    8982         
    9083        $CommentID      = get_comment_ID(); 
    91         $comment_meta   = get_comment_meta($CommentID, '_commentliked', true); 
     84        $comment_meta   = get_comment_meta( $CommentID, '_commentliked', true ); 
    9285        $get_like       = $comment_meta != '' ? $comment_meta : 0; 
    9386        $return_userID  = $wp_ulike_class->get_reutrn_id(); 
    94         $theme_class    = wp_ulike_get_setting( 'wp_ulike_comments', 'theme'); 
    95          
    96         if( 
    97         (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') != '1') 
    98         or 
    99         (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && is_user_logged_in()) 
    100         ){ 
    101          
    102         $data = array( 
    103             "id"        => $CommentID,              //Comment ID 
    104             "user_id"   => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
    105             "user_ip"   => $wp_user_IP,             //User IP 
    106             "get_like"  => $get_like,               //Number Of Likes 
    107             "method"    => 'likeThisComment',       //JavaScript method 
    108             "setting"   => 'wp_ulike_comments',     //Setting Key 
    109             "type"      => 'post',                  //Function type (post/process) 
    110             "table"     => 'ulike_comments',        //Comments table 
    111             "column"    => 'comment_id',            //ulike_comments table column name           
    112             "key"       => '_commentliked',         //meta key 
    113             "cookie"    => 'comment-liked-'         //Cookie Name 
     87        $attributes     = apply_filters( 'wp_ulike_comments_add_attr', null ); 
     88        $microdata      = apply_filters( 'wp_ulike_comments_microdata', null ); 
     89        $style          = wp_ulike_get_setting( 'wp_ulike_comments', 'theme' );  
     90         
     91        //Main Data 
     92        $args = array( 
     93            "id"            => $CommentID,              //Comment ID 
     94            "user_id"       => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
     95            "user_ip"       => $wp_user_IP,             //User IP 
     96            "get_like"      => $get_like,               //Number Of Likes 
     97            "method"        => 'likeThisComment',       //JavaScript method 
     98            "setting"       => 'wp_ulike_comments',     //Setting Key 
     99            "type"          => 'post',                  //Function type (post/process) 
     100            "table"         => 'ulike_comments',        //Comments table 
     101            "column"        => 'comment_id',            //ulike_comments table column name 
     102            "key"           => '_commentliked',         //meta key 
     103            "cookie"        => 'comment-liked-',        //Cookie Name 
     104            "slug"          => 'comment',               //Slug Name 
     105            "style"         => $style,                  //Get Default Theme 
     106            "microdata"     => $microdata,              //Get Microdata Filter 
     107            "attributes"    => $attributes              //Get Attributes Filter 
    114108        );       
    115109         
    116         //call wp_get_ulike function from class-ulike calss 
    117         $counter        = $wp_ulike_class->wp_get_ulike($data);      
    118          
    119         $wp_ulike       = '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_comments_add_attr', null).'>'; 
    120         $wp_ulike       .= '<div class="counter">'.$counter.'</div>'; 
    121         $wp_ulike       .= '</div>'; 
    122         $wp_ulike       .= $wp_ulike_class->get_liked_users($CommentID,'ulike_comments','comment_id','wp_ulike_comments'); 
    123          
    124         if ($arg == 'put') { 
    125             return $wp_ulike; 
    126         } 
    127         else { 
    128             echo $wp_ulike; 
    129         } 
     110        if( ( wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users' ) != '1' ) or ( wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users' ) == '1' && is_user_logged_in() ) ) {    
     111            //call wp_get_ulike function from wp_ulike class 
     112            $wp_ulike       = $wp_ulike_class->wp_get_ulike( $args );        
     113            $wp_ulike       .= $wp_ulike_class->get_liked_users( $CommentID, 'ulike_comments', 'comment_id', 'wp_ulike_comments' ); 
     114 
     115            if ($type == 'put') { 
     116                return $wp_ulike; 
     117            } 
     118            else { 
     119                echo $wp_ulike; 
     120            } 
    130121         
    131122        }//end !only_registered_users condition 
    132          
    133         else if (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && !is_user_logged_in()){ 
    134             $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type'); 
    135             if($login_type == "button"){ 
    136                 $template = $wp_ulike_class->get_template($CommentID,'likeThisComment',$get_like,1,0); 
    137                 if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') { 
    138                     return '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike '.$theme_class.'"><div class="counter">' . $template['login_img'] . '</div></div>';         
    139                 } 
    140                 else { 
    141                     return '<div id="wp-ulike-comment-'.$CommentID.'" class="wpulike '.$theme_class.'"><div class="counter">' . $template['login_text'] . '</div></div>';    
    142                 } 
    143             } 
    144             else 
    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>'); 
     123        elseif (wp_ulike_get_setting( 'wp_ulike_comments', 'only_registered_users') == '1' && ! is_user_logged_in()){ 
     124            if( wp_ulike_get_setting( 'wp_ulike_general', 'login_type' ) == "button" ){ 
     125                return $wp_ulike_class->get_template( $args, 0 );    
     126            } else { 
     127                return apply_filters( 'wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert">'.__('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>' ); 
     128            } 
    146129        }//end only_registered_users condition 
    147130         
     
    156139     * @updated         2.4 
    157140     * @updated         2.7 //added 'wp_ulike_login_alert_template' & 'wp_ulike_activities_add_attr' filters 
    158      * @return          String 
    159      */ 
    160     function wp_ulike_buddypress($arg) { 
     141     * @updated         2.8 //Removed some old functions & added new filters support. 
     142     * @return          String 
     143     */ 
     144    function wp_ulike_buddypress( $type = 'get', $args = array() ) { 
    161145        //global variables 
    162         global $wp_ulike_class,$wp_user_IP; 
     146        global $wp_ulike_class, $wp_user_IP; 
    163147         
    164         if ( bp_get_activity_comment_id() != null ) 
    165             $activityID     = bp_get_activity_comment_id(); 
    166         else 
    167             $activityID     = bp_get_activity_id();             
    168  
     148        if ( bp_get_activity_comment_id() != null ){ 
     149            $activityID     = bp_get_activity_comment_id(); 
     150        } else { 
     151            $activityID     = bp_get_activity_id();  
     152        } 
     153         
    169154        $bp_get_meta    = bp_activity_get_meta($activityID, '_activityliked'); 
    170155        $get_like       = $bp_get_meta != '' ? $bp_get_meta : 0; 
    171156        $return_userID  = $wp_ulike_class->get_reutrn_id(); 
    172         $theme_class    = wp_ulike_get_setting( 'wp_ulike_buddypress', 'theme'); 
    173          
    174         if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'auto_display_position' ) == 'meta') 
    175         $html_tag = 'span'; 
    176         else 
    177         $html_tag = 'div';       
    178      
    179         if( 
    180         (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') != '1') 
    181         or 
    182         (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && is_user_logged_in()) 
    183         ){ 
    184          
    185         $data = array( 
    186             "id"        => $activityID,             //Activity ID 
    187             "user_id"   => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
    188             "user_ip"   => $wp_user_IP,             //User IP 
    189             "get_like"  => $get_like,               //Number Of Likes 
    190             "method"    => 'likeThisActivity',      //JavaScript method 
    191             "setting"   => 'wp_ulike_buddypress',   //Setting Key 
    192             "type"      => 'post',                  //Function type (post/process) 
    193             "table"     => 'ulike_activities',      //Activities table 
    194             "column"    => 'activity_id',           //ulike_activities table column name             
    195             "key"       => '_activityliked',        //meta key 
    196             "cookie"    => 'activity-liked-'        //Cookie Name 
    197         );   
    198      
    199         //call wp_get_ulike function from class-ulike calss 
    200         $counter        = $wp_ulike_class->wp_get_ulike($data); 
    201          
    202         $wp_ulike       = '<'.$html_tag.' id="wp-ulike-activity-'.$activityID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_activities_add_attr', null).'>'; 
    203         $wp_ulike       .= '<'.$html_tag.' class="counter">'.$counter.'</'.$html_tag.'>'; 
    204         $wp_ulike       .= '</'.$html_tag.'>'; 
    205         $wp_ulike       .= $wp_ulike_class->get_liked_users($activityID,'ulike_activities','activity_id','wp_ulike_buddypress'); 
    206          
    207         if ($arg == 'put') { 
    208             return $wp_ulike; 
    209         } 
    210         else { 
    211             echo $wp_ulike; 
    212         } 
    213          
     157        $attributes     = apply_filters( 'wp_ulike_activities_add_attr', null ); 
     158        $microdata      = apply_filters( 'wp_ulike_activities_microdata', null ); 
     159        $style          = wp_ulike_get_setting( 'wp_ulike_buddypress', 'theme' ); 
     160         
     161        //Main Data 
     162        $args = array( 
     163            "id"            => $activityID,             //Activity ID 
     164            "user_id"       => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
     165            "user_ip"       => $wp_user_IP,             //User IP 
     166            "get_like"      => $get_like,               //Number Of Likes 
     167            "method"        => 'likeThisActivity',      //JavaScript method 
     168            "setting"       => 'wp_ulike_buddypress',   //Setting Key 
     169            "type"          => 'post',                  //Function type (post/process) 
     170            "table"         => 'ulike_activities',      //Activities table 
     171            "column"        => 'activity_id',           //ulike_activities table column name             
     172            "key"           => '_activityliked',        //meta key 
     173            "cookie"        => 'activity-liked-',       //Cookie Name 
     174            "slug"          => 'activity',              //Slug Name 
     175            "style"         => $style,                  //Get Default Theme 
     176            "microdata"     => $microdata,              //Get Microdata Filter 
     177            "attributes"    => $attributes              //Get Attributes Filter 
     178        ); 
     179         
     180        if( ( wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') != '1' ) or ( wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users' ) == '1' && is_user_logged_in() ) ) { 
     181            //call wp_get_ulike function from wp_ulike class 
     182            $wp_ulike       = $wp_ulike_class->wp_get_ulike($args); 
     183            $wp_ulike       .= $wp_ulike_class->get_liked_users( $activityID, 'ulike_activities', 'activity_id', 'wp_ulike_buddypress' ); 
     184 
     185            if ($type == 'put') { 
     186                return $wp_ulike; 
     187            } 
     188            else { 
     189                echo $wp_ulike; 
     190            } 
     191             
    214192        }//end !only_registered_users condition 
    215          
    216         else if (wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && !is_user_logged_in()){ 
    217             $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type'); 
    218             if($login_type == "button"){ 
    219                 $template = $wp_ulike_class->get_template($activityID,'likeThisActivity',$get_like,1,0); 
    220                 if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') { 
    221                     return '<'.$html_tag.' id="wp-ulike-activity-'.$activityID.'" class="wpulike '.$theme_class.'"><'.$html_tag.' class="counter">' . $template['login_img'] . '</'.$html_tag.'></'.$html_tag.'>';       
    222                 } 
    223                 else { 
    224                     return '<'.$html_tag.' id="wp-ulike-activity-'.$activityID.'" class="wpulike '.$theme_class.'"><'.$html_tag.' class="counter">' . $template['login_text'] . '</'.$html_tag.'></'.$html_tag.'>';  
    225                 } 
    226             } 
    227             else         
    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>'); 
     193        elseif ( wp_ulike_get_setting( 'wp_ulike_buddypress', 'only_registered_users') == '1' && ! is_user_logged_in() ) { 
     194            if( wp_ulike_get_setting( 'wp_ulike_general', 'login_type') == "button" ){ 
     195                return $wp_ulike_class->get_template( $args, 0 ); 
     196            } 
     197            else{ 
     198                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert">'.__('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>'); 
     199            }    
    229200        }//end only_registered_users condition 
    230201         
     
    239210     * @updated         2.4.1 
    240211     * @updated         2.7 //added 'wp_ulike_login_alert_template' & 'wp_ulike_topics_add_attr' filters 
    241      * @return          String 
    242      */ 
    243     function wp_ulike_bbpress($arg) { 
     212     * @updated         2.8 //Removed some old functions & added new filters support. 
     213     * @return          String 
     214     */ 
     215    function wp_ulike_bbpress( $type = 'get', $args = array() ) { 
    244216        //global variables 
    245217        global $post,$wp_ulike_class,$wp_user_IP; 
     
    249221        $post_ID        = !$replyID ? $post->ID : $replyID; 
    250222 
    251         $get_post_meta  = get_post_meta($post_ID, '_topicliked', true); 
     223        $get_post_meta  = get_post_meta( $post_ID, '_topicliked', true ); 
    252224        $get_like       = $get_post_meta != '' ? $get_post_meta : 0; 
    253         $return_userID  = $wp_ulike_class->get_reutrn_id(); 
    254         $theme_class    = wp_ulike_get_setting( 'wp_ulike_bbpress', 'theme');        
    255          
    256         if( 
    257             (wp_ulike_get_setting( 'wp_ulike_bbpress', 'only_registered_users') != '1') 
    258         or 
    259             (wp_ulike_get_setting( 'wp_ulike_bbpress', 'only_registered_users') == '1' && is_user_logged_in()) 
    260         ){ 
    261          
    262         $data = array( 
    263             "id"        => $post_ID,                //Post ID 
    264             "user_id"   => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
    265             "user_ip"   => $wp_user_IP,             //User IP 
    266             "get_like"  => $get_like,               //Number Of Likes 
    267             "method"    => 'likeThisTopic',         //JavaScript method 
    268             "setting"   => 'wp_ulike_bbpress',      //Setting Key 
    269             "type"      => 'post',                  //Function type (post/process) 
    270             "table"     => 'ulike_forums',          //posts table 
    271             "column"    => 'topic_id',              //ulike table column name            
    272             "key"       => '_topicliked',           //meta key 
    273             "cookie"    => 'topic-liked-'           //Cookie Name 
    274         );       
    275          
    276         //call wp_get_ulike function from class-ulike calss 
    277         $counter        = $wp_ulike_class->wp_get_ulike($data); 
    278          
    279         $wp_ulike       = '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'" '.apply_filters('wp_ulike_topics_add_attr', null).'>'; 
    280         $wp_ulike       .= '<div class="counter">'.$counter.'</div>'; 
    281         $wp_ulike       .= '</div>'; 
    282         $wp_ulike       .= $wp_ulike_class->get_liked_users($post_ID,'ulike_forums','topic_id','wp_ulike_bbpress'); 
    283          
    284         if ($arg == 'put') { 
    285             return $wp_ulike; 
    286         } 
    287         else { 
    288             echo $wp_ulike; 
    289         } 
     225        $return_userID  = $wp_ulike_class->get_reutrn_id();  
     226        $attributes     = apply_filters( 'wp_ulike_topics_add_attr', null ); 
     227        $microdata      = apply_filters( 'wp_ulike_topics_microdata', null ); 
     228        $style          = wp_ulike_get_setting( 'wp_ulike_bbpress', 'theme' );   
     229         
     230        //Main Data 
     231        $args = array( 
     232            "id"            => $post_ID,                //Post ID 
     233            "user_id"       => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
     234            "user_ip"       => $wp_user_IP,             //User IP 
     235            "get_like"      => $get_like,               //Number Of Likes 
     236            "method"        => 'likeThisTopic',         //JavaScript method 
     237            "setting"       => 'wp_ulike_bbpress',      //Setting Key 
     238            "type"          => 'post',                  //Function type (post/process) 
     239            "table"         => 'ulike_forums',          //posts table 
     240            "column"        => 'topic_id',              //ulike table column name 
     241            "key"           => '_topicliked',           //meta key 
     242            "cookie"        => 'topic-liked-',          //Cookie Name 
     243            "slug"          => 'topic',                 //Slug Name 
     244            "style"         => $style,                  //Get Default Theme 
     245            "microdata"     => $microdata,              //Get Microdata Filter 
     246            "attributes"    => $attributes              //Get Attributes Filter 
     247        ); 
     248         
     249        if( ( wp_ulike_get_setting( 'wp_ulike_bbpress', 'only_registered_users' ) != '1' ) or ( wp_ulike_get_setting( 'wp_ulike_bbpress', 'only_registered_users' ) == '1' && is_user_logged_in() ) ) { 
     250            //call wp_get_ulike function from wp_ulike class 
     251            $wp_ulike       = $wp_ulike_class->wp_get_ulike( $args ); 
     252            $wp_ulike       .= $wp_ulike_class->get_liked_users( $post_ID, 'ulike_forums', 'topic_id', 'wp_ulike_bbpress' ); 
     253 
     254            if ($type == 'put') { 
     255                return $wp_ulike; 
     256            } 
     257            else { 
     258                echo $wp_ulike; 
     259            } 
    290260         
    291261        }//end !only_registered_users condition 
    292262         
    293         else if (wp_ulike_get_setting( 'wp_ulike_bbpress', 'only_registered_users') == '1' && !is_user_logged_in()){ 
    294             $login_type = wp_ulike_get_setting( 'wp_ulike_general', 'login_type'); 
    295             if($login_type == "button"){ 
    296                 $template = $wp_ulike_class->get_template($post_ID,'likeThisTopic',$get_like,1,0); 
    297                 if (wp_ulike_get_setting( 'wp_ulike_general', 'button_type') == 'image') { 
    298                     return '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'"><div class="counter">' . $template['login_img'] . '</div></div>';       
    299                 } 
    300                 else { 
    301                     return '<div id="wp-ulike-'.$post_ID.'" class="wpulike '.$theme_class.'"><div class="counter">' . $template['login_text'] . '</div></div>';  
    302                 } 
    303             } 
    304             else 
    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>'); 
     263        else if ( wp_ulike_get_setting( 'wp_ulike_bbpress', 'only_registered_users' ) == '1' && !is_user_logged_in()) { 
     264            if( wp_ulike_get_setting( 'wp_ulike_general', 'login_type') ){ 
     265                return $wp_ulike_class->get_template( $args, 0 );    
     266            } 
     267            else { 
     268                return apply_filters('wp_ulike_login_alert_template', '<p class="alert alert-info fade in" role="alert">'.__('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>'); 
     269            } 
    306270        }//end only_registered_users condition 
    307271         
     
    315279     * @updated         2.2 
    316280     * @updated         2.4.1 
     281     * @updated         2.8 //Replaced 'WP_Ajax_Response' class with 'wp_send_json' function + Added message respond 
    317282     * @return          String 
    318283     */ 
     
    322287        $post_ID        = $_POST['id']; 
    323288        $post_type      = $_POST['type']; 
     289        $like_status    = $_POST['status']; 
     290        $nonce_token    = $_POST['nonce']; 
     291        $response       = array(); 
    324292         
    325293        if($post_type == 'likeThis'){ 
     
    359327        } 
    360328         
    361          
    362329        $get_like       = $get_meta_data != '' ? $get_meta_data : 0; 
    363330        $return_userID  = $wp_ulike_class->get_reutrn_id(); 
    364331         
    365         $data = array( 
     332        $args = array( 
    366333            "id"        => $post_ID,                //Post ID 
    367334            "user_id"   => $return_userID,          //User ID (if the user is guest, we save ip as user_id with "ip2long" function) 
     
    376343            "cookie"    => $cookie_name             //Cookie Name 
    377344        ); 
    378          
    379         $response = new WP_Ajax_Response; 
    380          
    381         if($post_ID != null) { 
    382             $response->add( 
    383                 array( 
    384                     'what'      =>'wpulike', 
    385                     'action'    =>'wp_ulike_process', 
    386                     'id'        => $post_ID, 
    387                     'data'      => $wp_ulike_class->wp_get_ulike($data) 
    388                 ) 
    389             ); 
    390         } 
    391          
    392         // Whatever the outcome, send the Response back 
    393         $response->send(); 
    394  
    395         // Exit when doing Ajax 
    396         exit(); 
     345                 
     346        if( $post_ID == null || ! wp_verify_nonce( $nonce_token, $post_type . $post_ID ) ) wp_die(); 
     347         
     348        switch ( $like_status ){ 
     349            case 0: 
     350                $response = array( 
     351                            'message'   => wp_ulike_get_setting( 'wp_ulike_general', 'login_text'), 
     352                            'btnText'   => html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text')), 
     353                            'data'      => NULL 
     354                        ); 
     355                break;               
     356            case 1: 
     357                $response = array( 
     358                            'message'   => wp_ulike_get_setting( 'wp_ulike_general', 'like_notice'), 
     359                            'btnText'   => html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text')), 
     360                            'data'      => $wp_ulike_class->wp_get_ulike($args) 
     361                        ); 
     362                break; 
     363            case 2: 
     364                $response = array( 
     365                            'message'   => wp_ulike_get_setting( 'wp_ulike_general', 'unlike_notice'), 
     366                            'btnText'   => html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text')), 
     367                            'data'      => $wp_ulike_class->wp_get_ulike($args) 
     368                        ); 
     369                break;               
     370            case 3: 
     371                $response = array( 
     372                            'message'   => wp_ulike_get_setting( 'wp_ulike_general', 'like_notice'), 
     373                            'btnText'   => html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text_u')), 
     374                            'data'      => $wp_ulike_class->wp_get_ulike($args) 
     375                        ); 
     376                break; 
     377            default: 
     378                $response = array( 
     379                            'message'   => wp_ulike_get_setting( 'wp_ulike_general', 'permission_text'), 
     380                            'btnText'   => html_entity_decode(wp_ulike_get_setting( 'wp_ulike_general', 'button_text')), 
     381                            'data'      => NULL 
     382                        ); 
     383                break;               
     384        } 
     385 
     386        wp_send_json($response); 
    397387    } 
  • wp-ulike/trunk/lang/wp-ulike-fa_IR.po

    r1680761 r1706048  
    22msgstr "" 
    33"Project-Id-Version: WP ULike\n" 
    4 "POT-Creation-Date: 2017-06-18 16:19+0330\n" 
    5 "PO-Revision-Date: 2017-06-18 16:19+0330\n" 
     4"POT-Creation-Date: 2017-07-24 13:30+0330\n" 
     5"PO-Revision-Date: 2017-07-24 13:30+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:142 
     19#: ../wp-ulike.php:141 
    2020msgid "Settings" 
    2121msgstr "تنظیمات" 
    2222 
    23 #: ../wp-ulike.php:143 
     23#: ../wp-ulike.php:142 
    2424msgid "Statistics" 
    2525msgstr "آماره" 
    2626 
    27 #: ../wp-ulike.php:144 
     27#: ../wp-ulike.php:143 
    2828msgid "About" 
    2929msgstr "درباره" 
     
    8787msgstr "معرفی وردپرس یولاک" 
    8888 
    89 #: ../admin/about.php:150 ../admin/stats.php:37 ../admin/admin.php:197 
     89#: ../admin/about.php:150 ../admin/stats.php:37 ../admin/admin.php:198 
    9090msgid "About WP ULike" 
    9191msgstr "درباره وردپرس یولایک" 
     
    179179"ابزراک ویژه برترین لایک کنندگان اضافه شده است." 
    180180 
    181 #: ../admin/about.php:213 ../admin/stats.php:24 ../admin/admin.php:193 
     181#: ../admin/about.php:213 ../admin/stats.php:24 ../admin/admin.php:194 
    182182msgid "WP ULike Statistics" 
    183183msgstr "آماره وردپرس یولایک" 
    184184 
    185 #: ../admin/about.php:213 ../admin/classes/tmp/settings.php:118 
     185#: ../admin/about.php:213 ../admin/classes/tmp/settings.php:115 
    186186msgid "Home" 
    187187msgstr "خانه" 
     
    191191msgstr "یا" 
    192192 
    193 #: ../admin/about.php:213 ../admin/admin.php:73 
     193#: ../admin/about.php:213 ../admin/admin.php:74 
    194194msgid "WP ULike Settings" 
    195195msgstr "تنظیمات وردپرس یولایک" 
     
    242242msgstr "وقایع اتفاقیه در وردپرس یولایک" 
    243243 
    244 #: ../admin/logs.php:140 ../admin/stats.php:43 ../admin/admin.php:177 
     244#: ../admin/logs.php:140 ../admin/stats.php:43 ../admin/admin.php:178 
    245245msgid "Post Likes Logs" 
    246246msgstr "وقایع لایک در نوشتارها" 
     
    298298"است که شما هیچ اطلاعاتی را در این جدول ندارید)" 
    299299 
    300 #: ../admin/logs.php:262 ../admin/stats.php:44 ../admin/admin.php:181 
     300#: ../admin/logs.php:262 ../admin/stats.php:44 ../admin/admin.php:182 
    301301msgid "Comment Likes Logs" 
    302302msgstr "وقایع لایک در دیدگاه ها" 
     
    314314msgstr "متن دیدگاه" 
    315315 
    316 #: ../admin/logs.php:390 ../admin/stats.php:45 ../admin/admin.php:185 
     316#: ../admin/logs.php:390 ../admin/stats.php:45 ../admin/admin.php:186 
    317317msgid "Activity Likes Logs" 
    318318msgstr "وقایع لایک در فعالیت ها" 
     
    331331msgstr "<a href=\"%1$s\">مشاهده فعالیت</a>" 
    332332 
    333 #: ../admin/logs.php:513 ../admin/stats.php:46 ../admin/admin.php:189 
     333#: ../admin/logs.php:513 ../admin/stats.php:46 ../admin/admin.php:190 
    334334msgid "Topics Likes Logs" 
    335335msgstr "وقایع لایک در تاپیک ها" 
     
    508508"title=\"Wordpress ULike\" target=\"_blank\">علي ميرزائي</a>" 
    509509 
    510 #: ../admin/admin.php:76 ../inc/wp-functions.php:581 
     510#: ../admin/admin.php:77 ../inc/wp-functions.php:585 
    511511msgid "WP ULike" 
    512512msgstr "وردپرس یولایک" 
    513513 
    514 #: ../admin/admin.php:85 
     514#: ../admin/admin.php:86 
    515515msgid "Settings saved." 
    516516msgstr "تنظیمات ذخیره شد" 
    517517 
    518 #: ../admin/admin.php:121 ../admin/admin.php:156 
     518#: ../admin/admin.php:122 ../admin/admin.php:157 
    519519msgid "Failed! An Error Has Occurred While Deleting All ULike Logs/Data" 
    520520msgstr "خطا! مشکلی در عملیات حذف وقایع/داده ها وجود دارد" 
    521521 
    522 #: ../admin/admin.php:123 ../admin/admin.php:158 
     522#: ../admin/admin.php:124 ../admin/admin.php:159 
    523523msgid "Success! All ULike Logs/Data Have Been Deleted" 
    524524msgstr "هووورا! همه وقایع/داده ها با موفقیت حذف شدند" 
     525 
     526#: ../admin/admin.php:215 ../inc/wp-strings.php:25 
     527msgid "Default" 
     528msgstr "پیشفرض" 
     529 
     530#: ../admin/admin.php:219 ../admin/classes/class-widget.php:430 
     531msgid "Heart" 
     532msgstr "قلب" 
     533 
     534#: ../admin/admin.php:223 
     535msgid "Robeen" 
     536msgstr "روبین" 
    525537 
    526538#: ../admin/classes/class-widget.php:11 
     
    582594msgstr "ساده" 
    583595 
    584 #: ../admin/classes/class-widget.php:430 ../admin/classes/tmp/settings.php:95 
    585 #: ../admin/classes/tmp/settings.php:208 ../admin/classes/tmp/settings.php:356 
    586 #: ../admin/classes/tmp/settings.php:482 
    587 msgid "Heart" 
    588 msgstr "قلب" 
    589  
    590596#: ../admin/classes/class-widget.php:435 
    591597msgid "Title Trim (Length):" 
     
    606612#: ../admin/classes/class-widget.php:455 
    607613#: ../admin/classes/class-settings.php:97 
    608 #: ../admin/classes/tmp/settings.php:348 
     614#: ../admin/classes/tmp/settings.php:342 
    609615msgid "BuddyPress" 
    610616msgstr "بادی پرس" 
     
    635641 
    636642#: ../admin/classes/class-settings.php:48 
    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 
     643#: ../admin/classes/tmp/settings.php:143 ../admin/classes/tmp/settings.php:231 
     644#: ../admin/classes/tmp/settings.php:382 ../admin/classes/tmp/settings.php:498 
    639645msgid "Logging Method" 
    640646msgstr "روش وقایع نگاری" 
     
    749755#: ../admin/classes/class-settings.php:99 
    750756#: ../admin/classes/class-settings.php:107 
    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 
     757#: ../admin/classes/tmp/settings.php:98 ../admin/classes/tmp/settings.php:208 
     758#: ../admin/classes/tmp/settings.php:353 ../admin/classes/tmp/settings.php:476 
    753759msgid "Automatic display" 
    754760msgstr "نمایش خودکار" 
     
    766772#: ../admin/classes/class-settings.php:99 
    767773#: ../admin/classes/class-settings.php:107 
    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 
     774#: ../admin/classes/tmp/settings.php:174 ../admin/classes/tmp/settings.php:262 
     775#: ../admin/classes/tmp/settings.php:413 ../admin/classes/tmp/settings.php:529 
    770776msgid "Users Like Box Template" 
    771777msgstr "قالب جعبه لایک کاربران" 
     
    779785 
    780786#: ../admin/classes/class-settings.php:82 
    781 #: ../admin/classes/tmp/settings.php:176 ../inc/classes/class-ulike.php:427 
     787#: ../admin/classes/tmp/settings.php:173 ../inc/classes/class-ulike.php:470 
    782788msgid "Users who have LIKED this post:" 
    783789msgstr "کاربرانی که این مطلب را پسندیده اند:" 
    784790 
    785791#: ../admin/classes/class-settings.php:89 
    786 #: ../admin/classes/tmp/settings.php:200 
     792#: ../admin/classes/tmp/settings.php:197 
    787793msgid "Comments" 
    788794msgstr "دیدگاه ها" 
     
    797803 
    798804#: ../admin/classes/class-settings.php:91 
    799 #: ../admin/classes/tmp/settings.php:267 
     805#: ../admin/classes/tmp/settings.php:261 
    800806msgid "Users who have LIKED this comment:" 
    801807msgstr "کاربرانی که این دیدگاه را پسندیده اند:" 
     
    812818#: ../admin/classes/class-settings.php:99 
    813819#: ../admin/classes/class-settings.php:107 
    814 #: ../admin/classes/tmp/settings.php:421 
     820#: ../admin/classes/tmp/settings.php:412 
    815821msgid "Users who have liked this activity:" 
    816822msgstr "کاربرانی که این فعالیت را پسندیده اند:" 
    817823 
    818824#: ../admin/classes/class-settings.php:99 
    819 #: ../admin/classes/tmp/settings.php:442 
     825#: ../admin/classes/tmp/settings.php:433 
    820826msgid "Post Activity Text" 
    821827msgstr "متن فعالیت مطالب" 
    822828 
    823829#: ../admin/classes/class-settings.php:99 
    824 #: ../admin/classes/tmp/settings.php:448 
     830#: ../admin/classes/tmp/settings.php:439 
    825831msgid "Comment Activity Text" 
    826832msgstr "متن فعالیت دیدگاه ها" 
    827833 
    828834#: ../admin/classes/class-settings.php:105 
    829 #: ../admin/classes/tmp/settings.php:474 
     835#: ../admin/classes/tmp/settings.php:465 
    830836msgid "bbPress" 
    831837msgstr "بی بی پرس" 
     
    846852#: ../admin/classes/class-settings.php:311 
    847853#: ../admin/classes/class-settings.php:322 
    848 #: ../admin/classes/class-settings.php:346 
     854#: ../admin/classes/class-settings.php:349 
    849855msgid "No options defined." 
    850856msgstr "هیچ تنظیماتی تعریف نشده است." 
    851857 
    852 #: ../admin/classes/class-settings.php:333 
     858#: ../admin/classes/class-settings.php:336 
    853859#, php-format 
    854860msgid "Select %s" 
    855861msgstr "انتخاب %s" 
    856862 
    857 #: ../admin/classes/class-settings.php:334 
     863#: ../admin/classes/class-settings.php:337 
    858864#, php-format 
    859865msgid "Remove %s" 
    860866msgstr "حذف %s" 
    861867 
    862 #: ../admin/classes/class-settings.php:358 
     868#: ../admin/classes/class-settings.php:361 
    863869msgid "No action defined." 
    864870msgstr "هیچ کاری تعریف نشده است." 
     
    894900 
    895901#: ../admin/classes/tmp/settings.php:33 ../admin/classes/tmp/settings.php:38 
    896 #: ../admin/classes/tmp/settings.php:332 
     902#: ../admin/classes/tmp/settings.php:326 
    897903msgid "Best size: 16x16" 
    898904msgstr "سایز مناسب : 16x16" 
     
    931937 
    932938#: ../admin/classes/tmp/settings.php:61 ../admin/classes/tmp/settings.php:68 
    933 #: ../admin/classes/tmp/settings.php:102 ../admin/classes/tmp/settings.php:133 
    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 
     939#: ../admin/classes/tmp/settings.php:99 ../admin/classes/tmp/settings.php:130 
     940#: ../admin/classes/tmp/settings.php:137 ../admin/classes/tmp/settings.php:156 
     941#: ../admin/classes/tmp/settings.php:209 ../admin/classes/tmp/settings.php:225 
     942#: ../admin/classes/tmp/settings.php:244 ../admin/classes/tmp/settings.php:291 
     943#: ../admin/classes/tmp/settings.php:354 ../admin/classes/tmp/settings.php:369 
     944#: ../admin/classes/tmp/settings.php:376 ../admin/classes/tmp/settings.php:395 
     945#: ../admin/classes/tmp/settings.php:420 ../admin/classes/tmp/settings.php:427 
     946#: ../admin/classes/tmp/settings.php:477 ../admin/classes/tmp/settings.php:492 
     947#: ../admin/classes/tmp/settings.php:511 
    942948msgid "Activate" 
    943949msgstr "فعال سازی" 
     
    973979msgstr "پیغام اطلاعیه لغو پسندیدن" 
    974980 
    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 
     981#: ../admin/classes/tmp/settings.php:92 ../admin/classes/tmp/settings.php:202 
     982#: ../admin/classes/tmp/settings.php:347 ../admin/classes/tmp/settings.php:470 
    977983#: ../inc/wp-strings.php:10 
    978984msgid "Themes" 
    979985msgstr "قالب ها" 
    980986 
    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 
    983 #: ../inc/wp-strings.php:25 
    984 msgid "Default" 
    985 msgstr "پیشفرض" 
    986  
    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 
     987#: ../admin/classes/tmp/settings.php:103 ../admin/classes/tmp/settings.php:213 
     988#: ../admin/classes/tmp/settings.php:358 ../admin/classes/tmp/settings.php:481 
    989989msgid "Auto Display Position" 
    990990msgstr "محل قرار گیری در نمایش خودکار" 
    991991 
    992 #: ../admin/classes/tmp/settings.php:109 ../admin/classes/tmp/settings.php:222 
    993 #: ../admin/classes/tmp/settings.php:496 
     992#: ../admin/classes/tmp/settings.php:106 ../admin/classes/tmp/settings.php:216 
     993#: ../admin/classes/tmp/settings.php:484 
    994994msgid "Top of Content" 
    995995msgstr "بالای محتوا" 
    996996 
    997 #: ../admin/classes/tmp/settings.php:110 ../admin/classes/tmp/settings.php:223 
    998 #: ../admin/classes/tmp/settings.php:497 
     997#: ../admin/classes/tmp/settings.php:107 ../admin/classes/tmp/settings.php:217 
     998#: ../admin/classes/tmp/settings.php:485 
    999999msgid "Bottom of Content" 
    10001000msgstr "پایین محتوا" 
    10011001 
    1002 #: ../admin/classes/tmp/settings.php:111 ../admin/classes/tmp/settings.php:224 
     1002#: ../admin/classes/tmp/settings.php:108 ../admin/classes/tmp/settings.php:218 
    10031003msgid "Top and Bottom" 
    10041004msgstr "بالا و پایین" 
    10051005 
    1006 #: ../admin/classes/tmp/settings.php:116 
     1006#: ../admin/classes/tmp/settings.php:113 
    10071007msgid "Auto Display Filter" 
    10081008msgstr "فیلتر گذاری در نمایش خودکار" 
    10091009 
    1010 #: ../admin/classes/tmp/settings.php:119 
     1010#: ../admin/classes/tmp/settings.php:116 
    10111011msgid "Single Posts" 
    10121012msgstr "تک نوشته ها" 
    10131013 
    1014 #: ../admin/classes/tmp/settings.php:120 
     1014#: ../admin/classes/tmp/settings.php:117 
    10151015msgid "Pages" 
    10161016msgstr "برگه ها" 
    10171017 
    1018 #: ../admin/classes/tmp/settings.php:121 
     1018#: ../admin/classes/tmp/settings.php:118 
    10191019msgid "Archives" 
    10201020msgstr "بایگانی" 
    10211021 
    1022 #: ../admin/classes/tmp/settings.php:122 
     1022#: ../admin/classes/tmp/settings.php:119 
    10231023msgid "Categories" 
    10241024msgstr "دسته بندی ها" 
    10251025 
    1026 #: ../admin/classes/tmp/settings.php:123 
     1026#: ../admin/classes/tmp/settings.php:120 
    10271027msgid "Search Results" 
    10281028msgstr "نتایج جستجوها" 
    10291029 
    1030 #: ../admin/classes/tmp/settings.php:124 
     1030#: ../admin/classes/tmp/settings.php:121 
    10311031msgid "Tags" 
    10321032msgstr "برچسب ها" 
    10331033 
    1034 #: ../admin/classes/tmp/settings.php:125 
     1034#: ../admin/classes/tmp/settings.php:122 
    10351035msgid "Author Page" 
    10361036msgstr "صفحه نویسنده" 
    10371037 
    1038 #: ../admin/classes/tmp/settings.php:127 
     1038#: ../admin/classes/tmp/settings.php:124 
    10391039msgid "You can filter theses pages on auto display option." 
    10401040msgstr "" 
    10411041"شما می توانید بر روی این صفحات فیلتر گذاری کنید تا دکمه لایک نمایش داده نشود" 
    10421042 
    1043 #: ../admin/classes/tmp/settings.php:132 
     1043#: ../admin/classes/tmp/settings.php:129 
    10441044msgid "Google Rich Snippets" 
    10451045msgstr "گوگل ریچ اسنیپت" 
    10461046 
    1047 #: ../admin/classes/tmp/settings.php:134 
     1047#: ../admin/classes/tmp/settings.php:131 
    10481048msgid "Add rich snippet for ratings in form of schema.org" 
    10491049msgstr "این آپشن، رتبه ی نوشته شما را از بین 5 ستاره مشخص می کند." 
    10501050 
    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 
     1051#: ../admin/classes/tmp/settings.php:136 ../admin/classes/tmp/settings.php:224 
     1052#: ../admin/classes/tmp/settings.php:375 ../admin/classes/tmp/settings.php:491 
    10531053msgid "Only registered Users" 
    10541054msgstr "محدودسازی لایک کاربران" 
    10551055 
    1056 #: ../admin/classes/tmp/settings.php:141 
     1056#: ../admin/classes/tmp/settings.php:138 
    10571057msgid "<strong>Only</strong> registered users have permission to like posts." 
    10581058msgstr "" 
     
    10601060"مطالب را لایک کنند." 
    10611061 
    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 
     1062#: ../admin/classes/tmp/settings.php:145 ../admin/classes/tmp/settings.php:233 
     1063#: ../admin/classes/tmp/settings.php:384 ../admin/classes/tmp/settings.php:500 
    10641064msgid "Do Not Log" 
    10651065msgstr "وقایع نگاری نکن" 
    10661066 
    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 
     1067#: ../admin/classes/tmp/settings.php:146 ../admin/classes/tmp/settings.php:234 
     1068#: ../admin/classes/tmp/settings.php:385 ../admin/classes/tmp/settings.php:501 
    10691069msgid "Logged By Cookie" 
    10701070msgstr "با کوکی" 
    10711071 
    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 
     1072#: ../admin/classes/tmp/settings.php:147 ../admin/classes/tmp/settings.php:235 
     1073#: ../admin/classes/tmp/settings.php:386 ../admin/classes/tmp/settings.php:502 
    10741074msgid "Logged By IP" 
    10751075msgstr "با آی پی" 
    10761076 
    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 
     1077#: ../admin/classes/tmp/settings.php:148 ../admin/classes/tmp/settings.php:236 
     1078#: ../admin/classes/tmp/settings.php:387 ../admin/classes/tmp/settings.php:503 
    10791079msgid "Logged By Cookie & IP" 
    10801080msgstr "با کوکی و آی پی" 
    10811081 
    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 
     1082#: ../admin/classes/tmp/settings.php:149 ../admin/classes/tmp/settings.php:237 
     1083#: ../admin/classes/tmp/settings.php:388 ../admin/classes/tmp/settings.php:504 
    10841084msgid "Logged By Username" 
    10851085msgstr "با نام کاربری" 
    10861086 
    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 
     1087#: ../admin/classes/tmp/settings.php:155 ../admin/classes/tmp/settings.php:243 
     1088#: ../admin/classes/tmp/settings.php:394 ../admin/classes/tmp/settings.php:510 
    10891089msgid "Show Liked Users Box" 
    10901090msgstr "نمایش باکس کاربران لایک کرده" 
    10911091 
    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 
     1092#: ../admin/classes/tmp/settings.php:157 ../admin/classes/tmp/settings.php:245 
     1093#: ../admin/classes/tmp/settings.php:396 ../admin/classes/tmp/settings.php:512 
    10941094msgid "" 
    10951095"Active this option to show liked users avatars in the bottom of button like." 
     
    10981098"لایک، نمایش دهید." 
    10991099 
    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 
     1100#: ../admin/classes/tmp/settings.php:162 ../admin/classes/tmp/settings.php:250 
     1101#: ../admin/classes/tmp/settings.php:401 ../admin/classes/tmp/settings.php:517 
    11021102msgid "Size of Gravatars" 
    11031103msgstr "سایز آوتار" 
    11041104 
    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 
     1105#: ../admin/classes/tmp/settings.php:163 ../admin/classes/tmp/settings.php:251 
     1106#: ../admin/classes/tmp/settings.php:402 ../admin/classes/tmp/settings.php:518 
    11071107msgid "Size of Gravatars to return (max is 512)" 
    11081108msgstr "سایز تصاویر گراواتار (بیشترین اندازه 512)" 
    11091109 
    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 
     1110#: ../admin/classes/tmp/settings.php:168 ../admin/classes/tmp/settings.php:256 
     1111#: ../admin/classes/tmp/settings.php:407 ../admin/classes/tmp/settings.php:523 
    11121112msgid "Number Of The Users" 
    11131113msgstr "تعداد کاربران قابل نمایش" 
    11141114 
    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 
     1115#: ../admin/classes/tmp/settings.php:169 ../admin/classes/tmp/settings.php:257 
     1116#: ../admin/classes/tmp/settings.php:408 ../admin/classes/tmp/settings.php:524 
    11171117msgid "The number of users to show in the users liked box" 
    11181118msgstr "حداکثر چند کاربر در باکس لایک کنندگان، نمایش داده شوند؟!؟" 
    11191119 
    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 
     1120#: ../admin/classes/tmp/settings.php:175 ../admin/classes/tmp/settings.php:263 
     1121#: ../admin/classes/tmp/settings.php:414 ../admin/classes/tmp/settings.php:434 
     1122#: ../admin/classes/tmp/settings.php:440 ../admin/classes/tmp/settings.php:530 
    11231123msgid "Allowed Variables:" 
    11241124msgstr "متغیرهای قابل استفاده:" 
    11251125 
    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 
     1126#: ../admin/classes/tmp/settings.php:179 ../admin/classes/tmp/settings.php:267 
     1127#: ../admin/classes/tmp/settings.php:444 ../admin/classes/tmp/settings.php:534 
    11281128msgid "Delete All Logs" 
    11291129msgstr "حذف تمام وقایع" 
    11301130 
    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 
     1131#: ../admin/classes/tmp/settings.php:180 ../admin/classes/tmp/settings.php:268 
     1132#: ../admin/classes/tmp/settings.php:445 ../admin/classes/tmp/settings.php:535 
    11331133msgid "You Are About To Delete All Likes Logs. This Action Is Not Reversible." 
    11341134msgstr "" 
     
    11361136"است." 
    11371137 
    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 
     1138#: ../admin/classes/tmp/settings.php:185 ../admin/classes/tmp/settings.php:273 
     1139#: ../admin/classes/tmp/settings.php:450 ../admin/classes/tmp/settings.php:540 
    11401140msgid "Delete All Data" 
    11411141msgstr "حذف تمام داده ها" 
    11421142 
    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 
     1143#: ../admin/classes/tmp/settings.php:186 ../admin/classes/tmp/settings.php:274 
     1144#: ../admin/classes/tmp/settings.php:451 ../admin/classes/tmp/settings.php:541 
    11451145msgid "You Are About To Delete All Likes Data. This Action Is Not Reversible." 
    11461146msgstr "" 
     
    11481148"پذیر است." 
    11491149 
    1150 #: ../admin/classes/tmp/settings.php:232 
     1150#: ../admin/classes/tmp/settings.php:226 
    11511151msgid "" 
    11521152"<strong>Only</strong> registered users have permission to like comments." 
     
    11551155"دیدگاه ها را لایک کنند." 
    11561156 
    1157 #: ../admin/classes/tmp/settings.php:291 
     1157#: ../admin/classes/tmp/settings.php:285 
    11581158msgid "Customize" 
    11591159msgstr "سفارشی سازی" 
    11601160 
    1161 #: ../admin/classes/tmp/settings.php:296 
     1161#: ../admin/classes/tmp/settings.php:290 
    11621162msgid "Custom Style" 
    11631163msgstr "سفارشی سازی" 
    11641164 
    1165 #: ../admin/classes/tmp/settings.php:301 
     1165#: ../admin/classes/tmp/settings.php:295 
    11661166msgid "Active this option to see the custom style settings." 
    11671167msgstr "" 
     
    11691169"ببرید." 
    11701170 
    1171 #: ../admin/classes/tmp/settings.php:305 
     1171#: ../admin/classes/tmp/settings.php:299 
    11721172msgid "Button style" 
    11731173msgstr "دکمه لایک" 
    11741174 
    1175 #: ../admin/classes/tmp/settings.php:306 ../admin/classes/tmp/settings.php:319 
     1175#: ../admin/classes/tmp/settings.php:300 ../admin/classes/tmp/settings.php:313 
    11761176msgid "Background" 
    11771177msgstr "رنگ پس زمینه" 
    11781178 
    1179 #: ../admin/classes/tmp/settings.php:310 ../admin/classes/tmp/settings.php:323 
     1179#: ../admin/classes/tmp/settings.php:304 ../admin/classes/tmp/settings.php:317 
    11801180msgid "Border Color" 
    11811181msgstr "رنگ حاشیه" 
    11821182 
    1183 #: ../admin/classes/tmp/settings.php:314 ../admin/classes/tmp/settings.php:327 
     1183#: ../admin/classes/tmp/settings.php:308 ../admin/classes/tmp/settings.php:321 
    11841184msgid "Text Color" 
    11851185msgstr "رنگ متن" 
    11861186 
    1187 #: ../admin/classes/tmp/settings.php:318 
     1187#: ../admin/classes/tmp/settings.php:312 
    11881188msgid "Counter Style" 
    11891189msgstr "باکس شمارنده" 
    11901190 
    1191 #: ../admin/classes/tmp/settings.php:331 
     1191#: ../admin/classes/tmp/settings.php:325 
    11921192msgid "Loading Animation" 
    11931193msgstr "انیمیشن بارگذاری" 
    11941194 
    1195 #: ../admin/classes/tmp/settings.php:336 
     1195#: ../admin/classes/tmp/settings.php:330 
    11961196msgid "Custom CSS" 
    11971197msgstr "سفارشی سازی css" 
    11981198 
    1199 #: ../admin/classes/tmp/settings.php:370 
     1199#: ../admin/classes/tmp/settings.php:361 
    12001200msgid "Activity Content" 
    12011201msgstr "در متن فعالیت" 
    12021202 
    1203 #: ../admin/classes/tmp/settings.php:371 
     1203#: ../admin/classes/tmp/settings.php:362 
    12041204msgid "Activity Meta" 
    12051205msgstr "در متاباکس فعالیت" 
    12061206 
    1207 #: ../admin/classes/tmp/settings.php:377 
     1207#: ../admin/classes/tmp/settings.php:368 
    12081208msgid "Activity Comment" 
    12091209msgstr "نظرات فعالیت ها" 
    12101210 
    1211 #: ../admin/classes/tmp/settings.php:379 
     1211#: ../admin/classes/tmp/settings.php:370 
    12121212msgid "Add the possibility to like Buddypress comments in the activity stream" 
    12131213msgstr "" 
     
    12151215"می شود." 
    12161216 
    1217 #: ../admin/classes/tmp/settings.php:386 
     1217#: ../admin/classes/tmp/settings.php:377 
    12181218msgid "" 
    12191219"<strong>Only</strong> registered users have permission to like activities." 
     
    12221222"فعالیت های بادی پرس را لایک کنند." 
    12231223 
    1224 #: ../admin/classes/tmp/settings.php:428 
     1224#: ../admin/classes/tmp/settings.php:419 
    12251225msgid "BuddyPress Activity" 
    12261226msgstr "فعالیت های بادی پرس" 
    12271227 
    1228 #: ../admin/classes/tmp/settings.php:430 
     1228#: ../admin/classes/tmp/settings.php:421 
    12291229msgid "insert new likes in buddyPress activity page" 
    12301230msgstr "" 
     
    12321232"اضافه خواهد شد." 
    12331233 
    1234 #: ../admin/classes/tmp/settings.php:435 
     1234#: ../admin/classes/tmp/settings.php:426 
    12351235msgid "BuddyPress Custom Notification" 
    12361236msgstr "اطلاعیه های خصوصی بادی پرس" 
    12371237 
    1238 #: ../admin/classes/tmp/settings.php:437 
     1238#: ../admin/classes/tmp/settings.php:428 
    12391239msgid "Sends out notifications when you get a like from someone" 
    12401240msgstr "ارسال اطلاعیه های خصوصی به کاربران هنگامی که مطالب آنها لایک می شود" 
    12411241 
    1242 #: ../admin/classes/tmp/settings.php:505 
     1242#: ../admin/classes/tmp/settings.php:493 
    12431243msgid "<strong>Only</strong> registered users have permission to like Topics." 
    12441244msgstr "" 
     
    12461246"تاپیک ها  را لایک کنند." 
    12471247 
    1248 #: ../admin/classes/tmp/settings.php:540 
     1248#: ../admin/classes/tmp/settings.php:528 
    12491249msgid "Users who have liked this topic:" 
    12501250msgstr "کاربرانی که این تاپیک را پسندیده اند:" 
    12511251 
    1252 #: ../inc/wp-ulike.php:72 ../inc/wp-ulike.php:305 
     1252#: ../inc/wp-ulike.php:56 ../inc/wp-ulike.php:240 
    12531253msgid "You need to login in order to like this post: " 
    12541254msgstr "برای امتیاز دهی به این مطلب، لطفا وارد شوید: " 
    12551255 
    1256 #: ../inc/wp-ulike.php:72 ../inc/wp-ulike.php:145 ../inc/wp-ulike.php:228 
    1257 #: ../inc/wp-ulike.php:305 
     1256#: ../inc/wp-ulike.php:56 ../inc/wp-ulike.php:113 ../inc/wp-ulike.php:177 
     1257#: ../inc/wp-ulike.php:240 
    12581258msgid "click here" 
    12591259msgstr "برای ورود کلیک کنید" 
    12601260 
    1261 #: ../inc/wp-ulike.php:145 
     1261#: ../inc/wp-ulike.php:113 
    12621262msgid "You need to login in order to like this comment: " 
    12631263msgstr "برای امتیاز دهی به این دیدگاه، لطفا وارد شوید: " 
    12641264 
    1265 #: ../inc/wp-ulike.php:228 
     1265#: ../inc/wp-ulike.php:177 
    12661266msgid "You need to login in order to like this activity: " 
    12671267msgstr "برای امتیاز دهی به این فعالیت، لطفا وارد شوید: " 
    12681268 
    1269 #: ../inc/wp-ulike.php:358 
     1269#: ../inc/wp-ulike.php:297 
    12701270msgid "Error: This Method Is Not Exist!" 
    12711271msgstr "خطا: این متد وجود خارجی ندارد!" 
    12721272 
    1273 #: ../inc/wp-functions.php:296 
     1273#: ../inc/wp-functions.php:300 
    12741274msgid "WP ULike Activity" 
    12751275msgstr "فعالیت های وردپرس یولایک" 
    12761276 
    1277 #: ../inc/wp-functions.php:416 
     1277#: ../inc/wp-functions.php:420 
    12781278msgid "Likes" 
    12791279msgstr "لایک ها" 
    12801280 
    1281 #: ../inc/wp-functions.php:482 
     1281#: ../inc/wp-functions.php:486 
    12821282msgid "You have a new like from" 
    12831283msgstr "شما یک لایک جدید دریافت کرده اید! توسط :" 
    12841284 
    1285 #: ../inc/wp-functions.php:582 
     1285#: ../inc/wp-functions.php:586 
    12861286msgid "" 
    12871287"This hook award / deducts points from users who Like/Unlike any content of " 
     
    12921292"توانند به ترتیب امتیازات مثبت و منفی دریافت کنند." 
    12931293 
    1294 #: ../inc/wp-functions.php:590 
     1294#: ../inc/wp-functions.php:594 
    12951295msgid "Liking Content" 
    12961296msgstr "لایک نوشته" 
    12971297 
    1298 #: ../inc/wp-functions.php:591 
     1298#: ../inc/wp-functions.php:595 
    12991299msgid "Liked Content" 
    13001300msgstr "نوشته لایک شده" 
    13011301 
    1302 #: ../inc/wp-functions.php:592 
     1302#: ../inc/wp-functions.php:596 
    13031303msgid "Unliking Content" 
    13041304msgstr "لغو لایک نوشته" 
    13051305 
    1306 #: ../inc/wp-functions.php:593 
     1306#: ../inc/wp-functions.php:597 
    13071307msgid "Unliked Content" 
    13081308msgstr "نوشته لغو لایک شده" 
    13091309 
    1310 #: ../inc/wp-functions.php:615 ../inc/wp-functions.php:649 
     1310#: ../inc/wp-functions.php:619 ../inc/wp-functions.php:653 
    13111311msgid "Recent Posts Liked" 
    13121312msgstr "تازه ترین مطالب لایک شده" 
    13131313 
    1314 #: ../inc/wp-functions.php:620 ../inc/wp-functions.php:689 
     1314#: ../inc/wp-functions.php:624 ../inc/wp-functions.php:693 
    13151315msgid "Recent Comments Liked" 
    13161316msgstr "تازه ترین دیدگاه های لایک شده" 
    13171317 
    1318 #: ../inc/wp-functions.php:665 ../inc/wp-functions.php:706 
     1318#: ../inc/wp-functions.php:669 ../inc/wp-functions.php:710 
    13191319msgid "This user has not made any likes." 
    13201320msgstr "این کاربر، هنوز هیچ موردی را نپسندیده است." 
  • wp-ulike/trunk/readme.txt

    r1680761 r1706048  
    66Requires at least: 3.5 
    77Tested up to: 4.8 
    8 Stable tag: 2.7 
     8Stable tag: 2.8 
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    2222 
    2323= Features = 
    24 *   Clean Design. 
     24*   Clean Design + Pretty styles.  
    2525*   Full myCRED Points Support. 
    26 *   Full Statistics tools. 
     26*   Flexible google rich snippets support. (Microdata) 
     27*   Full Statistics tools with many widgets. 
    2728*   Supporting UltimateMember & BuddyPress Profiles. 
    2829*   Likers World Map & Top Likers Widget. 
     
    132133 
    133134= How To Change The Counter Format? = 
    134 Just 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: 
    135 <code>  
    136 add_filter('wp_ulike_format_number','wp_ulike_new_format_number',10,3); 
    137 function wp_ulike_new_format_number($value, $num, $plus){ 
    138     if ($num >= 1000 && get_option('wp_ulike_format_number') == '1'): 
    139     $value = round($num/1000, 2) . 'K'; 
    140     else: 
    141     $value = $num; 
    142     endif; 
    143     return $value; 
    144 } 
    145 </code> 
     135Documentation : https://github.com/alimir/wp-ulike#how-to-change-the-counter-format 
    146136 
    147137= 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>   
    150 add_filter('wp_ulike_posts_add_attr', 'wp_ulike_change_posts_microdata_itemtype', 10);   
    151 function wp_ulike_change_posts_microdata_itemtype() {   
    152     return 'itemscope itemtype="http://schema.org/Article"';   
    153 } 
    154 </code> 
     138Documentation : https://github.com/alimir/wp-ulike#how-to-change-schema-type 
    155139 
    156140= 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>   
    159 add_filter('wp_ulike_extra_structured_data', 'wp_ulike_add_extra_structured_data', 10); 
    160 function 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> 
     141Documentation : https://github.com/alimir/wp-ulike#how-to-add-extra-microdata 
    170142 
    171143= 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>  
    174 add_filter('wp_ulike_remove_microdata_post_meta', '__return_true', 10); 
    175 add_filter('wp_ulike_posts_add_attr', '__return_null', 10); 
    176 </code> 
     144Documentation : https://github.com/alimir/wp-ulike#how-to-remove-all-schema-data-except-of-aggregaterating 
    177145 
    178146= 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   
    182 add_filter('wp_ulike_count_box_template', 'wp_ulike_change_my_count_box_template', 10, 2); 
    183 function 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> 
     147Documentation : https://github.com/alimir/wp-ulike#how-to-remove-0-count-if-there-are-no-likes 
    190148 
    191149= 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>  
    194 add_filter('wp_ulike_login_alert_template', 'wp_ulike_change_login_alert_template', 10); 
    195 function 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> 
     150Documentation : https://github.com/alimir/wp-ulike#how-to-change-the-login-alert-template 
    199151 
    200152= How To Get Post Likes Number? = 
    201 * Make use of the following function in WP Loop: 
    202 <code>  
    203 if (function_exists('wp_ulike_get_post_likes')): 
    204     echo wp_ulike_get_post_likes(get_the_ID()); 
    205 endif; 
    206 </code> 
     153Documentation : https://github.com/alimir/wp-ulike#how-to-get-post-likes-number 
    207154 
    208155= How To Get Comment Likes Number? = 
    209 * Make use of the following function in your comments loop: 
    210 <code>  
    211 if (function_exists('wp_ulike_get_comment_likes')): 
    212     echo wp_ulike_get_comment_likes(get_comment_ID()); 
    213 endif; 
    214 </code> 
     156Documentation : https://github.com/alimir/wp-ulike#how-to-get-comment-likes-number 
    215157 
    216158= How To Sort Most Liked Posts?  = 
    217 * Make use of the following query on a loop: 
    218 <code>  
    219 $the_query = new WP_Query(array( 
    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 
    225 )); 
    226 </code> 
     159Documentation : https://github.com/alimir/wp-ulike#how-to-sort-most-liked-posts 
    227160 
    228161= How Can I Create Custom Template In Users Liked Box?  = 
     
    238171 
    239172== Changelog == 
     173 
     174= 2.8 = 
     175* Added: Robeen (Animated Heart) template. (New Theme) 
     176* Added: New hooks for better front-end/back-end development. 
     177* Added: New library for AJAX functionalities. 
     178* Added: New hooks support for default settings. 
     179* Added: New response functionality with JSON. 
     180* Updated: 'wp_ulike' core class functionality. 
     181* Updated: FAQ documentation. 
     182* Removed: Old script files and enqueue new wp-ulike script.  
     183* Removed: Old version of 'mysql2date' function. 
    240184 
    241185= 2.7 = 
     
    460404== Upgrade Notice == 
    461405 
     406= 2.8 = 
     407Attention Please!! In this version, we have made a new script library (wp-ulike.js), variables, templates, and functionalities. Besides, we have removed old ones, which may destroy your previous changes. That is very important to clear your browser cache and reset your customization with our new class names after updating the plugin. If you have a development version, please take some time to review our new changes. 
     408 
    462409= 2.5 = 
    463410In this version, we have made a new option for buddypress custom notifications with some bug fixes. Attention! This new option does not work with bbPress -V2.6. 
  • wp-ulike/trunk/wp-ulike.php

    r1680761 r1706048  
    44Plugin 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.7 
     6Version: 2.8 
    77Author: Ali Mirzaei 
    88Author URI: http://about.alimir.ir 
     
    2828 
    2929//Do not change this value 
    30 define( 'WP_ULIKE_PLUGIN_URI'   , 'http://wp-ulike.alimir.ir/' ); 
    31 define( 'WP_ULIKE_VERSION'      , '2.7' ); 
     30define( 'WP_ULIKE_PLUGIN_URI'   , 'http://wp-ulike.alimir.ir' ); 
     31define( 'WP_ULIKE_VERSION'      , '2.8' ); 
    3232define( 'WP_ULIKE_SLUG'         , 'wp-ulike' ); 
    3333define( 'WP_ULIKE_DB_VERSION'   , '1.3' ); 
    3434 
    35 //Load Translations 
     35//Load Translations  
    3636load_plugin_textdomain( WP_ULIKE_SLUG, false, dirname( plugin_basename( __FILE__ ) ) .'/lang/' ); 
    3737 
     
    172172 * @author          Alimir 
    173173 * @since           1.7 
     174 * @updated         2.8 //Added 'call_user_func' for better callbacks  
    174175 * @return          Void 
    175176 */ 
     
    177178function wp_ulike_update_db_check() { 
    178179    if ( get_site_option( 'wp_ulike_dbVersion' ) != WP_ULIKE_DB_VERSION ) { 
    179         wp_ulike_install(); 
     180        call_user_func('wp_ulike_install'); 
    180181    } 
    181182} 
    182183 
     184/** 
     185 * Initialize the plugin 
     186 * ===========================================================================*/ 
     187 
    183188//Include plugin setting file 
    184 include plugin_dir_path( __FILE__ ) . 'admin/admin.php'; 
     189require_once( plugin_dir_path( __FILE__ ) . 'admin/admin.php' ); 
     190//Include general functions 
     191require_once( plugin_dir_path( __FILE__ ) . 'inc/wp-functions.php' ); 
     192//Include plugin scripts 
     193require_once( plugin_dir_path( __FILE__ ) . 'inc/wp-script.php'); 
     194//Load WP ULike functions 
     195require_once( plugin_dir_path( __FILE__ ) . 'inc/wp-ulike.php' ); 
    185196 
    186 //Include general functions 
    187 include plugin_dir_path( __FILE__ ) . 'inc/wp-functions.php'; 
    188  
    189 //Include plugin scripts 
    190 include plugin_dir_path( __FILE__ ) . 'inc/wp-script.php'; 
    191  
    192 //Load WP ULike functions 
    193 include plugin_dir_path( __FILE__ ) . 'inc/wp-ulike.php'; 
     197/*============================================================================*/ 
Note: See TracChangeset for help on using the changeset viewer.