Plugin Directory

Changeset 2551111


Ignore:
Timestamp:
06/20/2021 07:58:05 PM (5 years ago)
Author:
shawon.info
Message:

v1.0.3

Location:
socialmark
Files:
212 added
7 edited

Legend:

Unmodified
Added
Removed
  • socialmark/trunk/assets/css/socialmark.css

    r2519387 r2551111  
    1010    border-bottom: 1px solid white;
    1111}
     12
     13.ac-socialmark label {
     14    height: 30px !important;
     15    padding: 5px 20px;
     16    position: relative;
     17    z-index: 20;
     18    display: block;
     19    height: 30px;
     20    cursor: pointer;
     21    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
     22    line-height: 33px;
     23    font-size: 19px;
     24    background: #fff;
     25    background: -moz-linear-gradient(top,#fff 1%,#eaeaea 100%);
     26    background: -webkit-gradient(linear,left top,left bottom,color-stop(1%,#fff),color-stop(100%,#eaeaea));
     27    background: -webkit-linear-gradient(top,#fff 1%,#eaeaea 100%);
     28    background: -o-linear-gradient(top,#fff 1%,#eaeaea 100%);
     29    background: -ms-linear-gradient(top,#fff 1%,#eaeaea 100%);
     30    background: linear-gradient(top,#fff 1%,#eaeaea 100%);
     31    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff',endColorstr='#eaeaea',GradientType=0 );
     32    box-shadow: 0 0 0 1px rgba(155,155,155,0.3),1px 0 0 rgba(255,255,255,0.9) inset,0 2px 2px rgba(0,0,0,0.1);
     33    line-height: 20px;
     34}
     35
     36.ac-socialmark {
     37    width: 100%;
     38    margin: 10px auto 30px auto;
     39    text-align: left;
     40}
     41
     42.ac-socialmark label:hover {
     43    background: #fff;
     44}
     45
     46.ac-socialmark input:checked + label,.ac-socialmark input:checked + label:hover {
     47    background: #f1f2f3;
     48    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
     49    box-shadow: 0 0 0 1px rgba(155,155,155,0.3),0 2px 2px rgba(0,0,0,0.1);
     50    height: 30px;
     51    line-height: 21px;
     52}
     53
     54.ac-socialmark label:hover:after,.ac-socialmark input:checked + label:hover:after {
     55    content: '';
     56    position: absolute;
     57    width: 24px;
     58    height: 24px;
     59    right: 13px;
     60    top: 7px;
     61}
     62
     63
     64.ac-socialmark input {
     65    display: none;
     66}
     67
     68.ac-socialmark article {
     69    background: rgba(255,255,255,0.5);
     70    margin-top: -1px;
     71    overflow: hidden;
     72    height: 0;
     73    position: relative;
     74    z-index: 10;
     75    -webkit-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
     76    -moz-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
     77    -o-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
     78    -ms-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
     79    transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
     80}
     81
     82.ac-socialmark article p {
     83    font-style: normal;
     84    line-height: 23px;
     85    font-size: 16px;
     86    padding: 20px;
     87    text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
     88}
     89
     90.ac-socialmark input:checked ~ article {
     91    -webkit-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
     92    -moz-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
     93    -o-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
     94    -ms-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
     95    transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
     96    box-shadow: 0 0 0 1px rgba(155,155,155,0.3);
     97}
     98
     99.ac-socialmark input:checked ~ article.ac-small {
     100    height: 140px;
     101}
     102
     103.ac-socialmark input:checked ~ article.ac-medium {
     104    height: 140px;
     105}
     106
     107.ac-socialmark input:checked ~ article.ac-large {
     108    height: 140px;
     109}
  • socialmark/trunk/assets/js/socialmark.js

    r2519387 r2551111  
    3636                .open();
    3737    });
    38 
    3938});
    4039
  • socialmark/trunk/changelog.txt

    r2550586 r2551111  
    66= 1.0.2 =
    77 * dynamic image path generation added. Easy to debug now. WooCommerce support for paid version implemented.
     8= 1.0.3 =
     9 * socialmark excluded from homepage. Yoast SEO issue fixed. Debug tab added to admin panel
  • socialmark/trunk/includes/admin/admin-options.php

    r2550586 r2551111  
    2222            <a href="?page=socialmark&tab=overlay-images"
    2323               class="nav-tab <?php if ($tab === 'overlay-images'): ?>nav-tab-active<?php endif; ?>"><?php _e('Overlay Images'); ?></a>
     24            <a href="?page=socialmark&tab=not-working"
     25               class="nav-tab <?php if ($tab === 'not-working'): ?>nav-tab-active<?php endif; ?>"><?php _e('Not Working?'); ?></a>
    2426        </nav>
    2527        <div class="tab-content">
     
    2729                case 'overlay-images':
    2830                    include_once SOCIALMARK_INCLUDES . '/admin/overlay-tab.php';
     31                    break;
     32                case 'not-working':
     33                    include_once SOCIALMARK_INCLUDES . '/admin/not-working.php';
    2934                    break;
    3035                default:
  • socialmark/trunk/includes/frontend.php

    r2550586 r2551111  
    99    function socialmark_change_wpseo_og_img_url($url)
    1010    {
    11         $post_id = get_the_ID();
    12         return str_replace(wp_get_attachment_url(get_post_thumbnail_id($post_id)), socialmark_generate_og_image($post_id), $url);
     11        if(!is_front_page() && !is_home()) {
     12            if (is_singular('post') || is_singular('page') || is_singular('product')) {
     13                $post_id = get_the_ID();
     14
     15                if (get_post_type($post_id) === "post" && get_option('disable_socialmark') !== "on" && get_option('disable_socialmark_posts') !== "on" && get_post_meta($post_id, 'socialmark_post_disable', true) !== "on") {
     16                    $post_id = get_the_ID();
     17                    //return str_replace(wp_get_attachment_url(get_post_thumbnail_id($post_id)), socialmark_generate_og_image($post_id), $url);
     18                    return socialmark_generate_og_image($post_id);
     19                }elseif (get_post_type($post_id) === "page" && get_option('disable_socialmark') !== "on" && get_option('disable_socialmark_pages') !== "on" && get_post_meta($post_id, 'socialmark_post_disable', true) !== "on") {
     20                    $post_id = get_the_ID();
     21                    //return str_replace(wp_get_attachment_url(get_post_thumbnail_id($post_id)), socialmark_generate_og_image($post_id), $url);
     22                    return socialmark_generate_og_image($post_id);
     23                }
     24            }
     25        }
    1326    }
    1427} else if (in_array('seo-by-rank-math/rank-math.php', apply_filters('active_plugins', get_option('active_plugins')))) {
     
    1629    function socialmark_change_rankmath_og_img_url($attachment_url)
    1730    {
    18         $post_id = get_the_ID();
    19         return $attachment_url = socialmark_generate_og_image($post_id);
     31        if(!is_front_page() && !is_home()) {
     32            if (is_singular('post') || is_singular('page') || is_singular('product')) {
     33                $post_id = get_the_ID();
     34                if (get_post_type($post_id) === "post" && get_option('disable_socialmark') !== "on" && get_option('disable_socialmark_posts') !== "on" && get_post_meta($post_id, 'socialmark_post_disable', true) !== "on") {
     35                    return $attachment_url = socialmark_generate_og_image($post_id);
     36                }elseif (get_post_type($post_id) === "page" && get_option('disable_socialmark') !== "on" && get_option('disable_socialmark_pages') !== "on" && get_post_meta($post_id, 'socialmark_post_disable', true) !== "on") {
     37                    return $attachment_url = socialmark_generate_og_image($post_id);
     38                }
     39            }
     40        }
    2041    }
    2142    add_filter("rank_math/opengraph/facebook/image", 'socialmark_change_rankmath_og_img_url');
  • socialmark/trunk/readme.txt

    r2550586 r2551111  
    11=== SocialMark - Add Watermark/Overlay to Social Media Post Preview  ===
    22Contributors: shawon.info, freemius
    3 Tags: watermark, open graph, facebook, twitter card, social media, og, share, opengraph
     3Tags: watermark, open graph, facebook, twitter card, social media, og, share, opengraph, overlay
    44Requires at least: 4.0
    55Tested up to: 5.7.1
    66Requires PHP: 5.3.0 or higher
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    120120= 1.0.2 =
    121121 * dynamic image path generation added. Easy to debug now. WooCommerce support for paid version implemented.
     122= 1.0.3 =
     123 * socialmark excluded from homepage. Yoast SEO issue fixed. Debug tab added to admin panel
  • socialmark/trunk/socialmark.php

    r2550586 r2551111  
    55 * Plugin URI:        https://shawonpro.com/socialmark-wp-plugin/
    66 * Description:       Easy way to add/change overlay/watermark to Facebook, Twitter, open graph post preview images.
    7  * Version:           1.0.2
     7 * Version:           1.0.3
    88 * Author:            ShawonPro
    99 * Author URI:        https://shawonpro.com/
Note: See TracChangeset for help on using the changeset viewer.