WordPress.org

Plugin Directory

Changeset 1267560


Ignore:
Timestamp:
10/16/15 18:20:08 (2 years ago)
Author:
fracturedatlas
Message:

Version 1.1

Location:
artfully-widget/trunk
Files:
4 added
11 deleted
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • artfully-widget/trunk/css/artful_style.css

    r615874 r1267560  
    11/*  
    22    Document   : WP Artful.ly Style 
    3     Description: 
    4         Purpose of the stylesheet follows. 
    5 */ 
    6  
    7 /*  
    8    TODO customize this sample style 
    9    Syntax recommendation http://www.w3.org/TR/REC-CSS2/ 
    103*/ 
    114 
     
    1710    padding: 2px 5px; 
    1811} 
     12 
     13.entry-content #artfully-event ul > li { 
     14    list-style-type:none; 
     15} 
     16 
     17#artfully-event .event-name { 
     18    margin-top:0; 
     19    margin-bottom:10px; 
     20} 
     21 
     22#artfully-event .event-subtitle { 
     23    margin-top:0; 
     24    margin-bottom:10px; 
     25} 
     26 
     27#artfully-event .event-producer { 
     28    margin-top:0; 
     29    margin-bottom:20px; 
     30} 
     31 
     32#donation input { 
     33    margin-bottom:10px; 
     34} 
  • artfully-widget/trunk/readme.txt

    r1083977 r1267560  
    11=== Artful.ly Widget === 
    22 
    3 Contributors: fracturedatlas, jakilevy, markoof, rzvagelsky 
     3Contributors: fracturedatlas, jakilevy, markoof, rzvagelsky, alisynthesis 
    44Tags: artful.ly api, widget, ticket, ticket sales, Artful.ly, Artfully, ticketing, donations, donation, arts 
    55Requires at least: 3.3.1 
    6 Tested up to: 4.1 
    7 Stable tag: 1.0.1 
     6Tested up to: 4.3.1 
     7Stable tag: 1.1 
    88License: GPLv3 
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html 
  • artfully-widget/trunk/wp_artful.ly.php

    r1083978 r1267560  
    11<?php 
    22/* 
    3  * Plugin Name: artfully-widget 
    4  * Description: Adds a Shortcode to Wordpress Post/Page with an Event ID. You can easily include a Dynamic Event ID Shortcode into your WordPress's Blog Post/Page. 
    5  * Version: 1.0.1 
     3 * Plugin Name: Artfully Widget 
     4 * Description: Adds an easy-to-use shortcode for embedding Artful.ly widgets for taking donations and selling tickets on your WordPress site. 
     5 * Version: 1.1 
    66 */ 
    77?> 
     
    1212    wp_enqueue_script('artfully.js', 'https://artfully-production.s3.amazonaws.com/assets/artfully-v3.js', array('jquery')); 
    1313    wp_enqueue_style('artfully.css', 'https://artfully-production.s3.amazonaws.com/assets/themes/default.css'); 
     14    wp_enqueue_style('artfully-plugin.css', plugins_url('artfully-widget/css/artful_style.css')); 
    1415} 
    1516 
     
    3940 
    4041add_action('admin_enqueue_scripts', 'nme_load_admin_script'); 
    41  
    4242function nme_load_admin_script() { 
    4343    wp_register_script('artful_setting_js', NME_PLUGIN_URL . '/js/artful-setting.js', array('jquery')); 
     
    4747 
    4848add_action('admin_menu', 'nme_artful_menu'); 
    49  
    5049function nme_artful_menu() { 
    5150    add_options_page('Artful.ly', 'Artful.ly', 'manage_options', 'artful-settings', 'nme_artful_options'); 
     
    5756    } 
    5857    echo '<div class="wrap" style="margin-top:20px; margin-left:20px;">'; 
    59     echo 'Hello! We hope using this plugin will help you integrate <a href="http://artful.ly" target="blank">artful.ly</a> into your site.<br/><br/>'; 
    60     echo 'All you need to get donations and events into your site is right below :<br/><br/>'; 
    61     echo '<strong>DONATIONS</strong><br/><br/><br/>'; 
    62     echo 'For donations, you can add a shortcode to your pages<br/><br/>'; 
    63     echo 'Here is a sample shortcode for donations : <strong>[art-donation id="organizationID"]</strong><br/><br/>'; 
    64     echo '* Make sure you replace "organizationID" with your actual Organization ID. Organization ID\'s can be found by logging into your <a href="http://artful.ly" target="blank">artful.ly</a> account<br/><br/><br/>'; 
    65     echo '<strong>EVENTS</strong><br/><br/>'; 
    66     echo 'For events, simply add<br/><br/>'; 
    67     echo '<strong>[art-event id="eventID"]</strong><br/><br/>'; 
    68     echo '* Make sure you replace "eventID" with your actual event ID. Event ID\'s can be found by logging into your <a href="http://artful.ly" target="blank">artful.ly</a> account<br/><br/><br/>'; 
    69     echo '<strong>NIFTY BUTTONS</strong><br/><br/><br/>'; 
    70     echo 'If you forget the shortcodes, don\'t worry - there\'s a handy button on every post and page to access your <a href="http://artful.ly" target="blank">artful.ly</a> content<br/><br/>'; 
    71     echo 'Simple, wasn\'t it :-)<br/><br/><br/><br/>'; 
    72     echo 'And of course, if you have any questions, please submit a support request via our helpdesk :<br/><br/>'; 
    73     echo '<a href="https://artfully.zendesk.com/home" target="blank">https://artfully.zendesk.com/home</a><br/><br/>'; 
    74     echo '--<br/><br/>'; 
    75     echo 'created by Fractured Atlas and Arrow Root Media'; 
     58    echo '<h2>How to Use the Artful.ly Widget Plugin</h2>'; 
     59    echo '<span style="font-size:1.2em;">Hello! We hope using this plugin will help you integrate <a href="http://artful.ly" target="blank">artful.ly</a> into your site.</span><br/><br/>'; 
     60    echo 'All you need to get donations and events into your site is right below.'; 
     61    echo '<h3>Donations</h3>'; 
     62    echo 'For donations, you can add a shortcode to your pages.<br/><br/>'; 
     63    echo 'Here is a sample shortcode for donations : <code>[art-donation id="organizationID"]</code><br/><br/>'; 
     64    echo '<i>Make sure you replace "organizationID" with your actual Organization ID. Organization ID\'s can be found by logging into your <a href="http://artful.ly" target="blank">artful.ly</a> account.</i>'; 
     65    echo '<h3>Events</h3>'; 
     66    echo 'For events, simply add the following shortcode: <code>[art-event id="eventID"]</code><br/><br/>'; 
     67    echo '<i>Make sure you replace "eventID" with your actual event ID. Event IDs can be found by logging into your <a href="http://artful.ly" target="blank">artful.ly</a> account.</i>'; 
     68    echo '<h3>Automatically Insert Shortcodes</h3>'; 
     69    echo '<strong>If you forget the shortcodes, don\'t worry</strong> - there\'s a handy button on every post and page to access your <a href="http://artful.ly" target="blank">artful.ly</a> content. Look for the little Artful.ly icon on the right side of the buttons above your Visual Editor when you edit a post or page. Simple, wasn\'t it :-)<br/><br/>'; 
     70    echo '<span style="font-size:1.2em;">And of course, if you have any questions, please check out our help pages or submit a support request via our <a href="https://www.fracturedatlas.org/site/knowledgebase/topic/Artful.ly" target="blank">knowledgebase</a>.</span><br/><br/>'; 
     71    echo 'This plugin was created by <a href="http://fracturedatlas.org" target="_blank">Fractured Atlas</a>, Arrow Root Media and <a href="http://punktdigital.com">Punkt Digital</a>'; 
    7672    echo '</div>'; 
    7773} 
    7874 
    7975add_action('admin_notices', 'nme_art_notice'); 
    80  
    8176function nme_art_notice() { 
    8277    if (get_option('art_activated') != 'true') { 
     
    9085} 
    9186 
    92 add_action('init', 'nme_artful_tinymce_addbuttons'); 
    93  
    94 function nme_artful_tinymce_addbuttons() { 
    95     if (!current_user_can('edit_posts') && !current_user_can('edit_pages')) { 
    96         return; 
    97     } 
    98     add_filter("mce_external_plugins", "nme_artful_tinymce_addplugin"); 
    99     add_filter('mce_buttons', 'nme_artful_tinymce_registerbutton'); 
    100 } 
    101  
    102 function nme_artful_tinymce_registerbutton($buttons) { 
    103     array_push($buttons, 'separator', 'polls'); 
    104     return $buttons; 
    105 } 
    106  
    107 function nme_artful_tinymce_addplugin($plugin_array) { 
    108     $plugin_array['polls'] = plugins_url('artfully-widget/lib/tinymce/plugins/polls/editor_plugin.js'); 
    109     return $plugin_array; 
    110 } 
    111  
    11287add_filter('plugin_action_links', 'nme_art_plugin_action_links', 10, 2); 
    113  
    11488function nme_art_plugin_action_links($links, $file) { 
    11589    static $this_plugin; 
     
    12599    return $links; 
    126100} 
     101 
     102add_action( 'init', 'artfully_buttons' ); 
     103function artfully_buttons() { 
     104    if (!current_user_can('edit_posts') && !current_user_can('edit_pages')) { 
     105        return; 
     106    } 
     107    add_filter( 'mce_external_plugins', 'artfully_add_buttons' ); 
     108    add_filter( 'mce_buttons', 'artfully_register_buttons' ); 
     109   
     110} 
     111function artfully_add_buttons( $plugin_array ) { 
     112    $plugin_array['artfullybutton'] = plugins_url('artfully-widget/lib/tinymce/plugins/artfully-button/artful_editor.js'); 
     113    return $plugin_array; 
     114} 
     115function artfully_register_buttons( $buttons ) { 
     116    array_push( $buttons, 'separator', 'artfulbutton' ); 
     117    return $buttons; 
     118} 
     119 
    127120?> 
Note: See TracChangeset for help on using the changeset viewer.