Plugin Directory

Changeset 3328313


Ignore:
Timestamp:
07/15/2025 02:25:21 PM (7 months ago)
Author:
itscoolreally
Message:

Updated URIs in the plugin theme so wordfence can verify me

Location:
ribbon-maker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ribbon-maker/trunk/readme.txt

    r624415 r3328313  
    11=== Ribbon Maker ===
    22Contributors: itscoolreally
    3 Donate link: http://www.cafepress.com/SupportHypershock
     3Donate link: https://patreon.com/kreezxil
    44Tags: ribbon,maker,creator,designer,decoration,corner
    55Requires at Least: 3.0.0
     
    1111== Description ==
    1212
    13 A ribbon creation/corner decorator plugin that will allow you to generate your own ribbons for each of the 4 corners or you can upload your own graphics. 
     13A ribbon creation/corner decorator plugin that will allow you to generate your own ribbons for each of the 4 corners or you can upload your own graphics.
    1414
    1515= Features =
     
    4949Tweaked our use of jscolor to not conflict with other plugins that use jscolor to fix compatibility issues with "colored vote polls".
    5050Added banner link toggle.
    51  
     51
    5252= 1.6.1 =
    5353removed check for image type.
  • ribbon-maker/trunk/ribbon-maker.php

    r624415 r3328313  
    22/*
    33Plugin Name: Ribbon Maker
    4 Plugin URI: http://wordpress.org/extend/plugins/ribbon-maker
     4Plugin URI: http://kreezcraft.com/wpdev/extend/plugins/ribbon-maker
    55Description: When activated, this plugin will put a ribbon of your design, message and custom link on the top right corner of your website.
    6 Author: Al Lamb
    7 Version: 1.6.2
     6Author: Kreezxil (Kree Zuhl)
     7Version: 1.6.2a
    88License: GPLv2
    9 Author URI: http://bowie-tx.com
     9Author URI: https://kreezcraft.com
    1010*/
    1111
    1212function ribbon_maker_getVersion() {
    13     return "1.6.2";
     13    return "1.6.2a";
    1414}
    1515
    1616//Wordpress will call the following function and pass 2 variables to it.
    1717function ribbon_maker_my_plugin_links($links, $file) {
    18     $plugin = plugin_basename(__FILE__); 
     18    $plugin = plugin_basename(__FILE__);
    1919    if ($file == $plugin) // only for this plugin
    2020            return array_merge( $links,
     
    2424    return $links;
    2525}
    26    
     26
    2727//The following is basically a hook into a function in Wordpress called "plugin_row_meta"
    2828add_filter( 'plugin_row_meta', 'ribbon_maker_my_plugin_links', 10, 2 );
    29    
     29
    3030function ribbon_maker_getDownload() {
    3131    return "http://wordpress.org/extend/plugins/ribbon-maker";
     
    6161    ');
    6262    if (get_option('ribbon_maker_url')) { //convert the database entries
    63        
     63
    6464        $ribbon_maker = ribbon_maker_convert_db( 'ribbon_maker_url1', 'ribbon_maker_url' );
    6565        $ribbon_maker .= ribbon_maker_convert_db( 'ribbon_maker_title1', 'ribbon_maker_title');
     
    7373        ribbon_maker_was_it_saved($ribbon_maker);
    7474    }
    75        
     75
    7676        if ( isset( $_POST['regenerate'] ) ) {
    7777        for($i=1;$i<=4;$i++) {
    78             if(get_option("ribbon_maker_do_custom$i")=="inactive" && get_option("ribbon_maker_active$i")=="active") { 
     78            if(get_option("ribbon_maker_do_custom$i")=="inactive" && get_option("ribbon_maker_active$i")=="active") {
    7979                ribbon_maker_create_ribbon($i);
    8080            }
     
    8989            //if(exif_imagetype($_FILES["custom_image"]["tmp_name"])==IMAGETYPE_PNG) {
    9090                $new_name = plugin_dir_path(__FILE__) . "ribbon_maker_ribbon".$_POST['ribbon_maker_slot'].".png";
    91                 move_uploaded_file($_FILES["custom_image"]["tmp_name"],$new_name);         
     91                move_uploaded_file($_FILES["custom_image"]["tmp_name"],$new_name);
    9292                update_option('ribbon_maker_do_custom'.$_POST['ribbon_maker_slot'],'active');
    9393            /*} else {
     
    9898       }
    9999    if ( isset( $_POST['saving'] ) ) {
    100        
     100
    101101        $slot=$_POST['ribbon_maker_slot'];
    102102        if($slot<1 || $slot>4) $slot=1; //slot sanity check!
    103103        $str = strtr( $_POST["ribbon_maker_url$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    104104        $ribbon_maker = update_option( "ribbon_maker_url$slot", $str );
    105        
     105
    106106        $str = strtr( $_POST["ribbon_maker_title$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    107107        $ribbon_maker .= update_option( "ribbon_maker_title$slot", $str);
    108        
     108
    109109        $str = strtr( $_POST["ribbon_maker_z_position$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    110110        $ribbon_maker .= update_option( "ribbon_maker_z_position$slot", $str );
    111        
     111
    112112        $str = strtr( $_POST["ribbon_maker_admin_offset$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    113113        $ribbon_maker .= update_option( "ribbon_maker_admin_offset$slot", $str );
    114        
     114
    115115        $str = strtr( $_POST["ribbon_maker_user_offset$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    116116        $ribbon_maker .= update_option( "ribbon_maker_user_offset$slot", $str );
    117        
     117
    118118        $str = strtr( $_POST["ribbon_maker_user_h_offset$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    119119        $ribbon_maker .= update_option( "ribbon_maker_user_h_offset$slot", $str );
     
    124124        //$str = strtr( $_POST['ribbon_maker_message'], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    125125        $ribbon_maker .= update_option( "ribbon_maker_message$slot", $_POST["ribbon_maker_message$slot"] );
    126        
     126
    127127        $str = strtr( $_POST["ribbon_maker_bgcolor$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    128128        $ribbon_maker .= update_option( "ribbon_maker_bgcolor$slot", $str );
    129        
     129
    130130        $str = strtr( $_POST["ribbon_maker_fgcolor$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    131131        $ribbon_maker .= update_option( "ribbon_maker_fgcolor$slot", $str );
    132        
     132
    133133        $str = strtr( $_POST["ribbon_maker_do_custom$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    134134        $ribbon_maker .= update_option( "ribbon_maker_do_custom$slot", $str );
    135        
     135
    136136        $str = strtr( $_POST["ribbon_maker_active$slot"], array( '"' => '&#34;', '\\' => '', '\'' => '&#39;' ) );
    137137        $ribbon_maker .= update_option( "ribbon_maker_active$slot", $str );
    138        
     138
    139139        //ribbon_maker_slot is transient so we don't save it
    140140        ribbon_maker_was_it_saved ( $ribbon_maker );
    141141        //echo "preparing to create new image for slot $i<br>";
    142         if(get_option("ribbon_maker_do_custom$slot")=="inactive" && get_option("ribbon_maker_active$slot")=="active") { 
     142        if(get_option("ribbon_maker_do_custom$slot")=="inactive" && get_option("ribbon_maker_active$slot")=="active") {
    143143            //echo "flags are go for creation for slot $i<br>";
    144144            ribbon_maker_create_ribbon($slot);
     
    146146
    147147    }
    148    
     148
    149149    //display the 4 corner shots
    150150    echo ("<table><tr><th colspan=4 align='center'>Ribbon Preview</th><tr><th>Upper Right</th><th>Lower Right</th><th>Lower Left</th><th>Upper Left</th></tr>");
     
    198198            break;
    199199    }
    200    
     200
    201201    echo ("<ht><b><h3>Now editing the $announce corner.</h3></b><br>");
    202202    echo('
     
    241241        <td><input type="radio" name="ribbon_maker_do_custom'.$slot.'" value="active" '.ribbon_maker_isChecked('active',get_option("ribbon_maker_do_custom$slot")).'></td>
    242242        </tr>
    243        
     243
    244244        <tr><td>Custom Ribbon Off<br/><span class="ribbon_maker_hint">Don\'t use the custom uploaded ribbon.</span></td>
    245245        <td><input type="radio" name="ribbon_maker_do_custom'.$slot.'" value="inactive" '.ribbon_maker_isChecked('inactive',get_option("ribbon_maker_do_custom$slot")).'></td>
    246246        </tr>
    247        
     247
    248248        <tr><td>Make Ribbon Active<br/><span class="ribbon_maker_hint">If checked, the Ribbon will be visible on your blog.</span></td>
    249249        <td><input type="radio" name="ribbon_maker_active'.$slot.'" value="active" '.ribbon_maker_isChecked('active',get_option("ribbon_maker_active$slot")).'></td>
    250250        </tr>
    251        
     251
    252252        <tr><td>Make Ribbon In-Active<br/><span class="ribbon_maker_hint">If checked, the Ribbon will NOT be visible on your blog.</span></td>
    253253        <td><input type="radio" name="ribbon_maker_active'.$slot.'" value="inactive" '.ribbon_maker_isChecked('inactive',get_option("ribbon_maker_active$slot")).'></td>
    254254        </tr>
    255        
     255
    256256        <hr />
    257257        <tr><td colspan="2"><hr /></td></tr>
     
    320320    $height = ImageFontHeight($font)+8;
    321321    $im = imagecreatetruecolor ($width,$height);
    322    
     322
    323323    $back = imagecolorallocate($im, 0,0,0);
    324324    $draw_color = imagecolorallocate ($im, (int)ribbon_maker_get_color($bgcolor,"red"), (int)ribbon_maker_get_color($bgcolor,"green"), (int)ribbon_maker_get_color($bgcolor,"blue"));
    325325    $text_color = imagecolorallocate ($im, (int)ribbon_maker_get_color($fgcolor,"red"), (int)ribbon_maker_get_color($fgcolor,"green"), (int)ribbon_maker_get_color($fgcolor,"blue"));
    326    
     326
    327327    //well since we are building a ribbon, let's nuke it!
    328328    unlink(plugin_dir_path(__FILE__)."ribbon_maker_ribbon$slot.png");
    329    
     329
    330330    //imagefill($im,0,0,$back);
    331    
     331
    332332    imageline($im, 0,2,$width,2,$draw_color);
    333333    imageline($im, 0,3,$width,3,$draw_color);
     
    362362    $newHeight=imagesy($new_img)-ImageFontHeight($font);
    363363    $im = imagecreatetruecolor($newWidth,$newHeight);
    364    
     364
    365365    /*
    366366    bool imagecopyresampled ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h )
     
    402402        plugins_url('ourJquery.js', __FILE__)
    403403    );
    404 }   
    405  
     404}
     405
    406406function ribbon_maker_add_cookie_mgr() {
    407407    wp_enqueue_script(
     
    417417    for ($i=1;$i<=4;$i++)
    418418    if(get_option("ribbon_maker_active$i")=="active") {
    419         if(is_admin_bar_showing()) 
     419        if(is_admin_bar_showing())
    420420            $offset = get_option("ribbon_maker_admin_offset$i");
    421421        else
    422422            $offset = get_option("ribbon_maker_user_offset$i");
    423        
     423
    424424        $h_offset = get_option("ribbon_maker_user_h_offset$i",'0');
    425425        $z_position = get_option("ribbon_maker_z_position$i",'0');
    426426
    427427        $img = plugins_url("ribbon_maker_ribbon$i.png",__FILE__);
    428        
     428
    429429        $link_url = get_option("ribbon_maker_url$i");
    430430        $link_title = get_option("ribbon_maker_title$i");
    431        
     431
    432432        $link_head = "";
    433433        if($link_url!="")
     
    437437        if($link_url!="" && $link_title!="")
    438438            $link_head = "<a target='_blank' class='ribbon-maker' href='$link_url' title='$link_title'>";
    439        
     439
    440440        if($link_head!="")
    441441            $link_tail="</a>";
    442442        else
    443443            $link_tail="";
    444            
     444
    445445        //now that we have fading, i'm adding cookie management so we can have skipping too!
    446446
     
    475475              ourJquery(\"div.$mydiv\").remove();
    476476                  });
    477                
     477
    478478            }, $timeout);
    479479             });
Note: See TracChangeset for help on using the changeset viewer.