Plugin Directory

Changeset 831074


Ignore:
Timestamp:
01/01/2014 08:21:04 AM (12 years ago)
Author:
thangnv27
Message:
  • Remove list pages post type. Using pages of WordPress for exit pop-up & welcome pop-up
  • Add chosen style for select box
Location:
wp-multitasking/trunk
Files:
5 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • wp-multitasking/trunk/includes/floating-popup/exit-popup.php

    r831023 r831074  
    224224                                    <?php echo ($default_exit_embed_content == 0) ? "checked" : ""; ?> />
    225225                                <label for="embed_content_0">Nhúng từ nội dung sau:</label><br />
    226                                 <select name="default_exit_content_popup">
     226                                <select name="default_exit_content_popup" class="wpmt-chosen-select">
    227227                                    <?php
    228228                                    $default_exit_content_popup = get_settings('default_exit_content_popup');
    229229                                    query_posts(array(
    230                                         'post_type' => 'list_pages',
     230                                        'post_type' => 'page',
    231231                                        'posts_per_page' => -1,
    232232                                    ));
     
    373373                        <?php echo ($exit_embed_content == 0) ? "checked" : ""; ?> />
    374374                    <label for="embed_content_0">Nhúng từ nội dung sau:</label><br />
    375                     <select name="exit_content_popup">
     375                    <select name="exit_content_popup" class="wpmt-chosen-select">
    376376                        <?php
    377377                        $exit_content_popup = get_post_meta($post_id, 'exit_content_popup', true);
    378378                        query_posts(array(
    379                             'post_type' => 'list_pages',
     379                            'post_type' => 'page',
    380380                            'posts_per_page' => -1,
    381381                        ));
  • wp-multitasking/trunk/includes/floating-popup/welcome-popup.php

    r831023 r831074  
    235235                                    <?php echo ($default_wcome_embed_content == 0) ? "checked" : ""; ?> />
    236236                                <label for="embed_content_0">Nhúng từ nội dung sau:</label><br />
    237                                 <select name="default_wcome_content_popup">
     237                                <select name="default_wcome_content_popup" class="wpmt-chosen-select">
    238238                                    <?php
    239239                                    $default_wcome_content_popup = get_settings('default_wcome_content_popup');
    240240                                    query_posts(array(
    241                                         'post_type' => 'list_pages',
     241                                        'post_type' => 'page',
    242242                                        'posts_per_page' => -1,
    243243                                    ));
     
    386386                        <?php echo ($wcome_embed_content == 0) ? "checked" : ""; ?> />
    387387                    <label for="embed_content_0">Nhúng từ nội dung sau:</label><br />
    388                     <select name="wcome_content_popup">
     388                    <select name="wcome_content_popup" class="wpmt-chosen-select">
    389389                        <?php
    390390                        $wcome_content_popup = get_post_meta($post_id, 'wcome_content_popup', true);
    391391                        query_posts(array(
    392                             'post_type' => 'list_pages',
     392                            'post_type' => 'page',
    393393                            'posts_per_page' => -1,
    394394                        ));
  • wp-multitasking/trunk/readme.txt

    r831023 r831074  
    11=== WP MultiTasking ===
    22Contributors: thangnv27
    3 Donate link: http://ppo.vn/
     3Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ADQPKM8RFF4A
    44Tags: shorcode,mark id,bbcode,welcome popup,exit popup,popup,addquicktag,custom post type,post type
    55Requires at least: 2.0.2
     
    1818* BBCode
    1919* Include custom post type for AddQuickTag plugin settings
    20 * Exit popup
    21 * Welcome popup
     20* Exit pop-up each per post, page
     21* Welcome pop-up each per post, page
    2222
    2323== Installation ==
     
    4545* Enter the name you want
    4646
     47= How To using BBCode =
     48Bold: [b]bold[/b]
     49Italics: [i]italics[/i]
     50Underline: [u]underline[/u]
     51URL: [url]http://wordpress.org/[/url] [url="http://wordpress.org/"]WordPress[/url]
     52Image: [img]http://s.wordpress.org/style/images/codeispoetry.png[/img]
     53Quote: [quote]Lorem ipsum dolor sit amet, consectetuer adipiscing elit,[/quote]
     54Named Quote: [quote="NAME"]Lorem ipsum dolor sit amet[/quote]
     55Color: [color="red"]something red[/color]
     56Strikeout:[s]striked this out[/s]
     57Center Text:[center]center me[/center]
     58Computer code:[code]10 GOTO 10[/code]
     59Font size: [size=10]10px font size[/size]
     60Ordered lists: [ol][li][/li][/ol]
     61Unordered lists: [ul][li][/li][/ul]
     62List Item: [li]item[/li]
     63Youtube Links: [youtube]Youtube ID[/youtube]
     64Google Video Links: [gvideo]Google Video ID[/gvideo]
     65Named Spoiler: [spoiler=two plus two]four[/spoiler]
     66Unnamed Spoiler: [spoiler]Boo![/spoiler]
     67
    4768== Screenshots ==
    4869
     
    5374
    5475== Changelog ==
     76
     77= 0.1.2 =
     78* Remove list pages post type. Using pages of WordPress for exit pop-up & welcome pop-up
     79* Add chosen style for select box
    5580
    5681= 0.1.1 =
  • wp-multitasking/trunk/wp-multitasking.php

    r831023 r831074  
    22/***************************************************************************
    33Plugin Name: WP MultiTasking
    4 Plugin URI:  http://ppo.vn/plugins/wp-multitasking-0.1.1.zip
     4Plugin URI:  http://wordpress.org/plugins/wp-multitasking/
    55Description: This plugin is synthetic utility for your WordPress site
    6 Version:     0.1.1
     6Version:     0.1.2
    77Author:      thangnv27
    88Author URI:  http://ppo.vn/
     
    9696<?php
    9797}
     98/* ----------------------------------------------------------------------------------- */
     99# Register main Scripts and Styles
     100/* ----------------------------------------------------------------------------------- */
     101add_action('admin_enqueue_scripts', 'wpmt_register_scripts');
     102
     103function wpmt_register_scripts(){
     104    wp_enqueue_media();
     105   
     106    ## Register All Styles
     107    wp_register_style('wpmt-chosen-template', WPMT_PLUGIN_URL . 'css/chosen.min.css');
     108    ## Get Global Styles
     109    wp_enqueue_style('wpmt-chosen-template');
     110   
     111    ## Register All Scripts
     112    wp_register_script('wpmt-chosen', WPMT_PLUGIN_URL . 'js/chosen.jquery.min.js', array('jquery'));
     113    ## Get Global Scripts
     114    wp_enqueue_script('wpmt-chosen');
     115}
     116
     117add_action('admin_print_footer_scripts', 'wpmt_admin_add_custom_js', 99);
     118
     119function wpmt_admin_add_custom_js(){
     120    ?>
     121    <script type="text/javascript">/* <![CDATA[ */
     122        jQuery(function($){
     123            $("select.wpmt-chosen-select").chosen({width: "40%"});
     124        });
     125        /* ]]> */
     126    </script>
     127<?php
     128}
    98129
    99130require_once WPMT_PLUGIN_DIR . '/includes/bbcode.php';
    100131require_once WPMT_PLUGIN_DIR . '/includes/shortcode_markid.php';
    101132require_once WPMT_PLUGIN_DIR . '/includes/addquicktag_cpt.php';
    102 require_once WPMT_PLUGIN_DIR . '/includes/list-pages.php';
    103133require_once WPMT_PLUGIN_DIR . '/includes/floating-popup/welcome-popup.php';
    104134require_once WPMT_PLUGIN_DIR . '/includes/floating-popup/exit-popup.php';
Note: See TracChangeset for help on using the changeset viewer.