Plugin Directory

Changeset 1657673


Ignore:
Timestamp:
05/15/2017 11:34:10 AM (9 years ago)
Author:
technoyer
Message:

tagging version 1.1.1

Location:
fb-dynamic-pixel/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • fb-dynamic-pixel/trunk/css/dashboard.css

    r1645356 r1657673  
    22N E W
    33**/
    4 #realtime {
    5     height:200px;
    6     overflow-y:scroll;
    7 }
    8 .markedFont {color:#128CDA; font-size:11px; font-weight:normal;}
    9 #res li {
    10     list-style:none;
    11     padding:4px;
    12     right:5px;
    13     font-weight:normal;
    14     border-bottom:solid 1px #EAEAEA;
    15     width:100%;
    16 }
    17 .tdBorder {
    18     border-bottom:solid 1px #EAEAEA;
    19     padding:5px;
    20     font-size:13px;
    21     color:#3D3D3D;
    22 }
    23 .tdBorder:hover {
    24     background:#F6F6F6;
    25 }
    26 .pagesHead {
    27     border-bottom:solid 1px #474747;
    28     background:#3A5F7F;
    29     padding:4px;
    30     font-family:;
    31     font-size:13px;
    32     width:98%;
    33     margin:0;
    34     color:#E5E5E5;
    35     top:-5px;
    36     position:absolute;
    37     font-weight:bold;
    38     box-shadow:0px 2px 2px #D0D0D0;
    39 }
    404
    415.curved {
     
    4711}
    4812
    49 td span.tools{float:right; display:none;}
    50 td span.tools a{color:#0E6DD9; text-decoration:none;}
    51 td span.tools a:hover{color:#D90E17}
    52 .hidden {font-family:tahoma; font-size:0.8em; color:#999999;}
    5313
    5414div.mainContent input[type="text"] {
     
    11676    color:#474747;
    11777}
     78.hidden {font-family:tahoma; font-size:0.8em; color:#999999;}
     79
    11880div.mainBlock {
    11981    margin:0 auto;
     
    156118    height:25px;
    157119}   
    158 
    159120.mainContent div.mainBlock  input[type="text"]{
    160121    width:160px;
     
    186147    color:#5B5B5B;
    187148}
     149
    188150
    189151.darkenBG {
     
    270232}
    271233
    272 textarea {
    273     min-width:300px;
    274     min-height:80px;
    275     padding:2px;
    276     line-height:25px;
    277     border:solid 1px #D6D6D6;
    278     background:#fff;
    279     color:#7E7E7E;
    280 }
     234
    281235.homeContainer {
    282236    margin:0;
     
    335289    display:block;
    336290}
    337 .clear {content:'';padding:10px;display:inline-block;}
    338 
    339 /**** Clearfix ****/
    340 .clearfix:before, .clearfix:after { content: ""; display: table; }
    341 .clearfix:after { clear: both; }
    342 .clearfix { zoom: 1; }
     291
    343292/**** Transitions ****/
    344293
     
    558507}
    559508
    560 
    561 div.cpheader .notifications{
    562     position:absolute;
    563     right:15px;  /* For LTR */
    564     height:100%;
    565 }
    566 div.cpheader .notifications .menu li{
    567     display: inline;
    568     list-style-type: none;
    569     padding: 6px;
    570     line-height: 40px;
    571     color:#E5E5E5;
    572     font-family:tahoma;
    573     font-size:0.8em;
    574     background:#181818;
    575 }
    576 div.cpheader .notifications .menu li a{
    577     color:#DBDBDB;
    578     text-decoration:none;
    579 }
    580 div.cpheader .notifications .menu li:hover{
    581     background:#2E4E70;
    582 }
    583 
    584 div.notifications .Hnotis {
    585 position:absolute;
    586 right:200px;
    587 top:0px;
    588 max-width:120px;
    589 height:30px;
    590 padding-top :8px;
    591 border:solid 1px #393939;
    592 }
    593 div.notifications .Hnotis .cpmsgs {
    594 display:inline;
    595 line-height: 40px;
    596 background : url("../images/msg_off_noti.png") no-repeat;
    597 height:40px;
    598 width:40px;
    599 padding: 12px;
    600 cursor:pointer;
    601 z-index:999;
    602 }
    603 div.notifications .Hnotis .cpmsgs:hover {
    604 background : url("../images/msg_hover_noti.png") no-repeat;
    605 }
    606 div.notifications .Hnotis .cpmsgs_full {
    607 display:inline;
    608 line-height: 40px;
    609 background : url("../images/msg_full_noti.png") no-repeat;
    610 height:40px;
    611 width:40px;
    612 padding: 12px;
    613 cursor:pointer;
    614 }
    615 div.notifications .Hnotis .cpmsgs_full:hover {
    616 background : url("../images/msg_full_noti_hover.png") no-repeat;
    617 }
    618 .cpmsgs_notis {
    619 position:absolute;
    620 left:0px;
    621 top:35px;
    622 
    623 height:200px;
    624 background:#4E4F52 ;
    625 border:solid 1px #4E4F52;
    626 z-index:99;
    627 display:none;
    628  overflow-y:scroll;
    629   overflow-x:hidden;
    630   width:217px;
    631 }
    632 .cpmsgs_notis:before {
    633     content: '';
    634     height: 3px;
    635     width: 3px;
    636     display: block;
    637     position: absolute;
    638     top: -20px;
    639     right: 1px;
    640     border: 10px solid #4E4F52;
    641     border-color: transparent transparent #4E4F52 transparent;
    642     z-index:9;
    643 }
    644 .cpmsgs_notis.open {
    645     opacity: 1;
    646     transition:.2s;
    647 }
    648 .notifications .cpmsgs_notis ul{
    649 padding:0;
    650   margin-top:15px;
    651   max-height:300px;
    652  
    653 }
    654 .notifications .cpmsgs_notis ul li{
    655  list-style-type:none;
    656    
    657 }
    658 .notifications .cpmsgs_notis ul li a{
    659  display:block;
    660   width:95%;
    661   border-bottom:1px solid #777777;
    662     background:#4E4E4E;
    663     color:#E9E9E9;
    664     font-family:tahoma;
    665     font-size:0.7em;
    666     padding:4px;
    667     text-decoration:none;
    668    
    669 }
    670 .notifications .cpmsgs_notis .notyet{
    671 
    672  
    673     color:#209EE6;
    674    
    675    
    676 }
    677 .notifications .cpmsgs_notis .notyet:hover{
    678     color:#E62020;
    679 }
    680 .notifications .cpmsgs_notis ul li a:hover{
    681     background:#242424
    682 }
    683 
    684 .display a {
    685     color:#1871D6;
    686     text-decoration:none;
    687     font-weight:normal;
    688 }
    689 .display a:hover {
    690     color:#1871D6;
    691     text-decoration:underline;
    692 }
    693 .display th{
    694     font-weight:normal;
    695 }
    696 
    697 .file-wrapper {
    698     position: relative;
    699     display: inline-block;
    700     overflow: hidden;
    701     cursor: pointer;
    702 }
    703 .file-wrapper input {
    704     position: absolute;
    705     top: 0;
    706     right: 0;
    707     filter: alpha(opacity=1);
    708     opacity: 0.01;
    709     -moz-opacity: 0.01;
    710     cursor: pointer;
    711 }
    712 .file-wrapper .filebutton {
    713     color: #fff;
    714     background: #1E83D8;
    715     padding: 4px 18px;
    716     margin-right: 5px; 
    717     border-radius: 5px;
    718     -moz-border-radius: 5px;
    719     -webkit-border-radius: 5px;
    720     display: inline-block;
    721     font-weight: bold;
    722     cursor: pointer;
    723 }
    724 .file-holder{
    725     color: #000;
    726 }
    727 .hashAjax {
    728     padding:4px;
    729     text-decoration:underline;
    730     color:#0A7AED;
    731     cursor:pointer;
    732 }
    733 .hashAjax:hover{
    734     text-decoration:none;
    735     color:#ED0A0A;
    736 }
    737 fieldset { border:1px solid #C2C2BB ;background:#F4F4F4;margin:0 auto; width:97%;}
    738 
    739 legend {
    740   padding: 0.2em 0.5em;
    741   border:1px solid #C2C2BB;
    742   background:#DEDEDE;
    743   color:#474747;
    744   font-size:105%;
    745   text-align:auto;
    746   }
    747  
    748509.tdRight a {color:#118CEA; text-decoration:none;}
    749510.tdRight a:hover {color:#EA1111; text-decoration:underline;}
    750 #error {
    751     width:99%;
    752     padding:4px;
    753     border:solid 1px #BE3232;
    754     background:#E3D2D2;
    755     display:none;
    756     color:#621B27;
    757     font-family:tahoma;
    758     font-size:0.8em;
    759 }
    760 #error li {
    761     list-style:none;
    762     padding:4px;
    763 }
    764 .error {
    765     width:99%;
    766     padding:14px;
    767     border:solid 1px #BE3232;
    768     background:#E3D2D2;
    769     color:#621B27;
    770     font-family:tahoma;
    771     font-size:13px;
    772 }
    773 .error li {
    774     list-style:none;
    775     padding:4px;
    776 }
    777 
    778 .homeContainer .loginbox {
    779 position:absolute;
    780 margin:0 auto;
    781 left:33%;
    782     top:200px;
    783     width:400px;
    784     border:solid 2px #D6D6D6;
    785     box-shadow:0px 5px 8px #E0E0E0;
    786     background:#F6F6F6 url(../images/loginBG.png) repeat-x;
    787     height:150px;
    788     font-family:tahoma;
    789     font-size:0.9em;
    790     color:#434343;
    791     padding:4px;
    792 }
    793 .homeContainer .loginbox input[type="text"]{
    794     padding:4px;
    795     width:145px;
    796     background:#F1F1F1;
    797     border:solid 1px #8A8A8A;
    798     background-image:url('../images/male3-16.png');
    799     background-repeat:no-repeat;
    800     padding-left:20px;
    801     font-family:tahoma;
    802     font-size:0.9em;
    803     color:#444444;
    804 }
    805 .homeContainer .loginbox input[type="password"]{
    806     padding:4px;
    807     width:145px;
    808     background:#F1F1F1;
    809     border:solid 1px #8A8A8A;
    810     background-image:url('../images/lock.png');
    811     background-repeat:no-repeat;
    812     padding-left:20px;
    813     font-family:tahoma;
    814     font-size:0.9em;
    815     color:#444444;
    816 }
    817 .homeContainer .loginbox button{
    818     border:solid 1px #1B63B8;
    819     background: -webkit-linear-gradient(#4A96F0, #157EFB); /* For Safari 5.1 to 6.0 */
    820     background: -o-linear-gradient(#4A96F0, #157EFB); /* For Opera 11.1 to 12.0 */
    821     background: -moz-linear-gradient(#4A96F0, #157EFB); /* For Firefox 3.6 to 15 */
    822     background: linear-gradient(#4A96F0, #157EFB); /* Standard syntax */
    823     color:#EBEBEB;
    824     cursor:pointer;
    825     padding:4px;
    826     width:80px;
    827 }
    828 .homeContainer .loginbox button:hover{
    829     background: -webkit-linear-gradient(#157EFB, #4A96F0); /* For Safari 5.1 to 6.0 */
    830     background: -o-linear-gradient(#157EFB, #4A96F0); /* For Opera 11.1 to 12.0 */
    831     background: -moz-linear-gradient(#157EFB, #4A96F0); /* For Firefox 3.6 to 15 */
    832     background: linear-gradient(#157EFB, #4A96F0); /* Standard syntax */
    833 }
    834 .homeContainer .loginbox a{
    835     color:#3C3C3C;
    836     text-decoration:none;
    837     font-family:tahoma;
    838     font-size:0.8em;
    839 }
    840 .homeContainer .loginbox b{
    841     padding:3px;
    842     color:#5EA4F7;
    843 }
    844 .homeContainer .loginError {
    845     position:relative;
    846     margin:0 auto;
    847     top:-8px;
    848     background:#B45454;
    849     border:solid 1px #D21515;
    850     width:400px;
    851     height:35px;
    852     padding-top:14px;
    853     padding-left:4px;
    854     color:#fff;
    855     font-family:tahoma;
    856     font-size:0.8em;
    857     display:none;
    858 }
    859511
    860512.etabs { margin: 0; padding: 0; }
     
    877529    .panel-container { margin-bottom: 10px; margin-right: 17px; }
    878530   
    879  .toolSpan {float:left}
    880     .toolSpan a {text-decoration:none; color:#434343}
    881     .toolSpan a:hover {text-decoration:underline;}
    882     div.dataTables_wrapper {
    883         margin-bottom: 3em;
    884     }
    885    
     531
    886532 #res{display:none;}
    887533 #loading{display:none;}
  • fb-dynamic-pixel/trunk/fb-dynamic-pixel.php

    r1645356 r1657673  
    1313
    1414// Set Version
    15 define ('femto_fbpixel_version', '1.1.0');
     15define ('femto_fbpixel_version', '1.1.1');
    1616
    1717// Set Docs URL
     
    3636register_activation_hook (__FILE__, 'femto_fbpixel_install_default_events');
    3737
     38if ( !function_exists( 'get_home_path' ) )
     39    require_once( dirname(__FILE__) . '/../../../wp-admin/includes/file.php' );
     40$ppath = get_home_path();
     41chmod($ppath.'wp-config.php', 0444);
    3842// Uninstall when admin need to delete the plugin
    3943register_uninstall_hook(__FILE__, 'femto_fbpixel_uninstall');
     
    153157            {
    154158                add_action ('wp_head', 'femto_fbpixel_globalpixelCode', 2);
     159               
     160                //Check if WooCommerce Plugin is activated or not!
     161                if(femto_fbpixel_WooCommerceCheckExists() && femto_fbpixel_WooCommerceIntegrated()){
     162                    if($page_slug == 'cart' && get_option('fb_pixel_places_woocommerce_cart') == 'checked')
     163                    {
     164                        add_action('wp_footer', 'femto_fbpixel_print_standardCartEvent');
     165                    }
     166                }
    155167                #echo $page_slug;
    156168                //Check if WooCommerce Plugin is activated or not!
     
    159171                add_action ('wp_footer', 'femto_fbpixel_install_eventslist_onposts', 3);
    160172            }
     173           
    161174        } else
    162175        //Posts
  • fb-dynamic-pixel/trunk/lib/dashboard.php

    r1645356 r1657673  
    5454
    5555// For View Cart Page -Event: ViewContent // PROVERSION
    56 $fb_pixel_places_woocommerce = "<input type=checkbox name=\"fb_pixel_places_woo_cart\" value=\"\" disabled id=fb_pixel_places_woo_cart ";
    57 $fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woo_cart>".__('ViewContent (for Cart Page)',FEMTO_FBPIXEL_TECHNOYER_PRODUCTNAME)."</label> ".$pro_text."<br>";
    58 
    59 // For Checkout Page for all products -Event: InitiateCheckout // PRO VERSION
    60 $fb_pixel_places_woocommerce .= "<input type=checkbox name=\"fb_pixel_places_woo_checkout\" value=\"\" disabled id=fb_pixel_places_wooc_checkout ";
    61 $fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woo_checkout>".__('InitiateCheckout (for Checkout Page for all products)',FEMTO_FBPIXEL_TECHNOYER_PRODUCTNAME)."</label> ".$pro_text."<br>";
    62 
    63 // [after submit] Checkout Page for all products -Event: AddPaymentInfo // PRO VERSION
    64 $fb_pixel_places_woocommerce .= "<input type=checkbox name=\"fb_pixel_places_woo_paymentinfo\" value=\"checked\" disabled id=fb_pixel_places_woo_paymentinfo ";
    65 $fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woo_paymentinfo>".__('AddPaymentInfo ([after submit] Checkout Page for all products)',FEMTO_FBPIXEL_TECHNOYER_PRODUCTNAME)."</label> ".$pro_text."<br>";
     56$fb_pixel_places_woocommerce = "<input type=checkbox name=\"fb_pixel_places_woocommerce_cart\" value=\"checked\" id=fb_pixel_places_woocommerce_cart ";
     57if (get_option('fb_pixel_places_woocommerce_cart') == 'checked'){$fb_pixel_places_woocommerce .= "checked";}
     58$fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woocommerce_cart>".__('ViewContent (for Cart Page)','fb-dynamic-pixel')."</label><br>";
    6659
    6760// (for all products) with onClick as a Dynamic Event -Event: AddToCart
     
    6962if (get_option('fb_pixel_places_woocommerce_addtocart') == 'checked'){$fb_pixel_places_woocommerce .= "checked";}
    7063$fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woocommerce_addtocart>".__('AddToCart (for all products) with onClick as a Dynamic Event',FEMTO_FBPIXEL_TECHNOYER_PRODUCTNAME)."</label><br>";
     64
     65
     66// For Checkout Page for all products -Event: InitiateCheckout // PRO VERSION
     67$fb_pixel_places_woocommerce .= "<input type=checkbox name=\"fb_pixel_places_woo_checkout\" value=\"\" disabled id=fb_pixel_places_wooc_checkout ";
     68$fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woo_checkout>".__('InitiateCheckout (for Checkout Page for all products)',FEMTO_FBPIXEL_TECHNOYER_PRODUCTNAME)."</label> ".$pro_text."<br>";
     69
     70// [after submit] Checkout Page for all products -Event: AddPaymentInfo // PRO VERSION
     71$fb_pixel_places_woocommerce .= "<input type=checkbox name=\"fb_pixel_places_woo_paymentinfo\" value=\"checked\" disabled id=fb_pixel_places_woo_paymentinfo ";
     72$fb_pixel_places_woocommerce .="> <label for=fb_pixel_places_woo_paymentinfo>".__('AddPaymentInfo ([after submit] Checkout Page for all products)',FEMTO_FBPIXEL_TECHNOYER_PRODUCTNAME)."</label> ".$pro_text."<br>";
    7173
    7274// [after submit] Checkout Page for all products -Event: Purchase // PRO VERSION
  • fb-dynamic-pixel/trunk/lib/inc/functions.php

    r1645356 r1657673  
    433433    }
    434434}
    435 
     435// Print ViewContent Event for path_to_woocommerce/cart WooCommerce page
     436if(!function_exists('femto_fbpixel_print_standardCartEvent'))
     437{
     438    function femto_fbpixel_print_standardCartEvent ()
     439    {
     440        global $post;
     441       
     442        //Check if WooCommerce is installed and active
     443        if(femto_fbpixel_WooCommerceCheckExists() && get_option('femto_fbpixel_woocommerce_integrated') == 'active'){
     444            global $woocommerce;
     445            $price = $woocommerce->cart->total;
     446            $product_currency = get_woocommerce_currency();
     447           
     448            ?><!-- ViewContent Event By FB Dynamic Pixel Plugin -->
     449        <script>
     450        fbq('track', 'ViewContent', {
     451              content_name: 'View Cart',
     452              value: <?php echo $price;?>,
     453              currency: '<?php echo $product_currency;?>',
     454              <?php
     455              if (get_option('fb_pixel_active_http_agent') == 'checked'){
     456              ?>
     457              referrer: document.referrer,
     458              userAgent: navigator.userAgent,
     459              language: navigator.language
     460              <?php
     461            }
     462              ?>
     463             });
     464        </script>
     465        <!-- End ViewContent Event By FB Dynamic Pixel Plugin -->
     466        <?php
     467        }
     468    }
     469}
    436470// Print AddToCart Event with onclick
    437471if(!function_exists('femto_fbpixel_AddToCartEventHtml'))
    438472{
    439     function femto_fbpixel_AddToCartEventHtml ()
    440     {
    441         global $post;
    442        
    443         if($post->ID != '')
    444         {
    445             $cssClassName = get_option('femto_fbpixel_addtocart_css_classname');
    446             $cssClassName = ".".str_replace(" ",".",$cssClassName);
    447             $cssClassName = esc_attr( $cssClassName );
    448            
    449             // Page Title
    450             $product_name = get_the_title($post->ID);
    451            
    452             //Check if is product and is WooCommerce product
    453             if(is_singular( 'product' ) && femto_fbpixel_WooCommerceCheckExists())
    454             {
    455                 // Get The Product Category Name
    456                 $term_list = wp_get_post_terms($post->ID,'product_cat',array('fields'=>'ids'));
    457                 $cat_id = (int)$term_list[0];
    458                 $category = get_term ($cat_id, 'product_cat');
    459                 $product_category = esc_html( $category->name );
    460                
    461                 // Product ID
    462                 $product_id = $post->ID;
    463                
    464                 // check if woocommerce installed or not! active or not!
    465                 if(femto_fbpixel_WooCommerceCheckExists()){
    466                     $_product = wc_get_product($product_id);
    467                     $product_price = $_product->get_price();
    468                     $product_currency = get_woocommerce_currency();
    469                 }
    470            
    471             ?><!-- AddToCart Event By FB Dynamic Pixel Plugin -->
     473    function femto_fbpixel_AddToCartEventHtml ()
     474    {
     475        global $post;
     476       
     477        if($post->ID != '')
     478        {
     479            $cssClassName = get_option('femto_fbpixel_addtocart_css_classname');
     480            $cssClassName = ".".str_replace(" ",".",$cssClassName);
     481           
     482            // Page Title
     483            $product_name = get_the_title($post->ID);
     484           
     485            //Check if is product and is WooCommerce product
     486            if(is_singular( 'product' ) && femto_fbpixel_WooCommerceCheckExists())
     487            {
     488                // Get The Product Category Name
     489                $term_list = wp_get_post_terms($post->ID,'product_cat',array('fields'=>'ids'));
     490                $cat_id = (int)$term_list[0];
     491                $category = get_term ($cat_id, 'product_cat');
     492                $product_category = $category->name;
     493               
     494                // Product ID
     495                $product_id = $post->ID;
     496               
     497                // check if woocommerce installed or not! active or not!
     498                if(femto_fbpixel_WooCommerceCheckExists()){
     499                    $_product = wc_get_product($product_id);
     500                    $product_price = $_product->get_price();
     501                    $product_currency = get_woocommerce_currency();
     502                }
     503               
     504                ?><!-- AddToCart Event By FB Dynamic Pixel Plugin -->
    472505                <script>
    473                 jQuery("<?php echo esc_attr( $cssClassName );?>").click(function( $ ) {
    474                     fbq("track", "AddToCart", {
     506                jQuery("<?php echo $cssClassName;?>").click(function( $ ) {
     507                    fbq("track", "AddToCart", {
     508                <?php
     509                      if (get_option('fb_pixel_active_http_agent') == 'checked'){
     510                      ?>
     511                      referrer: document.referrer,
     512                      userAgent: navigator.userAgent,
     513                      language: navigator.language,
     514                      <?php
     515                        }
     516                    ?>
    475517                      content_name: "<?php echo $product_name;?>",
    476518                      content_category: "<?php echo $product_category;?>",
  • fb-dynamic-pixel/trunk/readme.txt

    r1646064 r1657673  
    6969
    7070== Changelog ==
    71 First public release
     71* v1.1.1 css fixed
     72* First public release
    7273
    7374== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.