public function enqueue_script_style() { include_once self::$abs_path . '/includes/wp_cpl_css_filters.php'; $css_mng = new itgdb_wp_cpl_css_filter(); $css_mng->enqueue_css_style(); }
/** * Settings page */ public function gen_set_page() { /** * If the user has got the permission */ if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.', itgdb_wp_cpl_loader::$text_domain)); } $wp_cpl_css = new itgdb_wp_cpl_css_filter(); /** * Update options on POST */ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $r = $this->save_post(); if (true === $r) { $this->print_update('Options Saved'); } else { if (1 === $r) { $this->print_update('Master Reset successful'); } else { $this->print_error('You did not change anything to save. If this is not the case, please contact developer - <a href="mailto:swashata@intechgrity.com">Swashata</a>'); } } } /** * Get the options for future use */ extract(get_option('wp-cpl-itg-op')); ?> <script type="text/javascript"> jQuery(document).ready(function($) { $('.postbox').children('h3, .handlediv').click(function(){ $(this).siblings('.inside').toggle(); }); }); </script> <div class="wrap"> <h2><?php _e('Configure the Global options of WP CPL', itgdb_wp_cpl_loader::$text_domain); ?> </h2> <p><small>Plugin developed by <a href="http://www.swashata.com/">Swashata</a> | View Blog - <a href="http://www.intechgrity.com">InTechgrity</a> | <a href="http://www.intechgrity.com/about/buy-us-some-beer/">Donate</a> | <a href="http://www.intechgrity.com/contct-us/">Hire</a> | <strong>Version:</strong> <?php echo itgdb_wp_cpl_loader::$version; ?> </small></p> <div id="poststuff" class="metabox-holder"> <div class="meta-box-sortables"> <div class="wp-cpl-wrap"> <div class="wp-cpl-wrap-left"> <!-- <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"></h3> <div class="inside"> </div> </div> --> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-op"><span></span><?php _e('Global Options', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <form action="<?php echo $_SERVER['REQUEST_URI']; ?> " method="post"> <ul> <li> <label for="wp-cpl-def-css"><?php _e('Use Default CSS? »', itgdb_wp_cpl_loader::$text_domain); ?> </label> <input type="checkbox" id="wp-cpl-def-css" name="wp-cpl-def-css"<?php if (true == $wp_cpl_use_def_css) { ?> checked="checked"<?php } ?> /> </li> <li> <span class="description"> <?php _e('This will add the default CSS file to your theme. Make sure your theme has something like <code>wp_head()</code> inside the header.php file.', itgdb_wp_cpl_loader::$text_domain); ?> </span> </li> <li> <label for="wp-cpl-thumb-sizew"><?php _e('Widget Thumbnail Size Width - Height: »', itgdb_wp_cpl_loader::$text_domain); ?> </label> <input type="text" class="" id="wp-cpl-thumb-sizew" name="wp-cpl-thumb-sizew" value="<?php echo $wp_cpl_thumb_size[0]; ?> " /> - <input type="text" class="" id="wp-cpl-thumb-sizeh" name="wp-cpl-thumb-sizeh" value="<?php echo $wp_cpl_thumb_size[1]; ?> " /> </li> <li> <label for="wp-cpl-sc-thumb-size"><?php _e('Shortcode Thumbnail Size Width - Height: »', itgdb_wp_cpl_loader::$text_domain); ?> </label> <input type="text" class="" id="wp-cpl-sc-thumb-sizew" name="wp-cpl-sc-thumb-sizew" value="<?php echo $wp_cpl_sc_thumb_size[0]; ?> " /> - <input type="text" class="" id="wp-cpl-sc-thumb-sizeh" name="wp-cpl-sc-thumb-sizeh" value="<?php echo $wp_cpl_sc_thumb_size[1]; ?> " /> </li> <li> <span class="description"> <?php _e('Make sure to Run <a href="http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/">Regenerate Thumbnail Plugin</a> After modifying the thumbnail size. This is necessary if the thumb size is not already generated.', itgdb_wp_cpl_loader::$text_domain); ?> </span> </li> <li> <label for="wp-cpl-css-theme"><?php _e('Select Theme: »', itgdb_wp_cpl_loader::$text_domain); ?> </label> </li> <li> <ul class="ul-square"> <?php $wp_cpl_css->list_admin_selectbox($wp_cpl_css_theme); ?> </ul> </li> <li> <div style="border: 1px solid #ff6666; background: #ffcccc; padding-left: 5px; padding-right: 5px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px;"><p> <label for="master_reset">Do Master Reset?</label> <input type="checkbox" id="master_reset" name="master_reset" value="do" /> <span class="description"><?php _e('Warning! Everything will be reset to default. Do this if you are having errors in the admin section', itgdb_wp_cpl_loader::$text_domain); ?> </span> </p></div> </li> <li> <input class="button-primary" type="submit" value="<?php _e('Save Options', itgdb_wp_cpl_loader::$text_domain); ?> " /> </li> </ul> </form> </div> </div> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-ins"><span></span><?php _e('Usage Instruction', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <p> <?php _e('The Wordpress Category Post Lists is a powerful Wordpress Widget & Shortcode plugin, giving you complete control over how your posts are displayed on your sidebar filtered by categories or directly on pages.', itgdb_wp_cpl_loader::$text_domain); ?> <br /> <?php _e('The only options you need to set here are the global thumbnail sizes and whether you want to use the default CSS file provided with this plugin.', itgdb_wp_cpl_loader::$text_domain); ?> <br /> <?php _e('Everything else can be set from the widgets options page. Here are all the information about the options, and the available parameters', itgdb_wp_cpl_loader::$text_domain); ?> </p> <h4>Widget Options</h4> <table class="widefat fixed"> <thead> <tr> <th width="14%" scope="col"><?php _e('Option', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th width="20%" scope="col"><?php _e('Description', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th width="30%" scope="col"><?php _e('Parameter', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th width="18%" scope="col"><?php _e('Default', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th width="18%" scope="col"><?php _e('Example', itgdb_wp_cpl_loader::$text_domain); ?> </th> </tr> </thead> <tfoot> <tr> <th scope="col"><?php _e('Option', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th scope="col"><?php _e('Description', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th scope="col"><?php _e('Parameter', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th scope="col"><?php _e('Default', itgdb_wp_cpl_loader::$text_domain); ?> </th> <th scope="col"><?php _e('Example', itgdb_wp_cpl_loader::$text_domain); ?> </th> </tr> </tfoot> <tbody> <tr> <td colspan="5" align="right"><strong> <?php _e('Basic Options', itgdb_wp_cpl_loader::$text_domain); ?> </strong></td> </tr> <tr> <th><?php _e('Title', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('The Title of the widget. This will be displayed over the top of each widget', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('It has the following options paramter. You can insert them on the title and it will get replaced by the corresponding values', itgdb_wp_cpl_loader::$text_domain); ?> <ul class="wp-cpl-admin-ul"> <li> <strong>%widget_num%</strong> : <?php _e('The number of posts you want to display', itgdb_wp_cpl_loader::$text_domain); ?> </li> <li> <strong>%cat_count%</strong> : <?php _e('The total number of posts the category has', itgdb_wp_cpl_loader::$text_domain); ?> </li> <li> <strong>%cat_name%</strong> : <?php _e('The category name', itgdb_wp_cpl_loader::$text_domain); ?> </li> </ul> </td> <td> Browse %cat_name% </td> <td> <?php _e('Be creative and form your own', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Teaser', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('A one liner shown below the widget, just above the Read More button(if present)', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Offers Same options as Title', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td colspan="2"> Featuring Top %widget_num%/%cat_count% of %cat_name% </td> </tr> <tr> <th> <?php _e('Category', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('The category you want to chose. Select one from the list', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('CSS Theme', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong>... Choose the CSS theme for this widget. Global themes are not applied to any widget anymore', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td colspan="3"> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Number of Posts', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('The total number of posts that would be shown on the widget. This excludes the number of sticky posts.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> 10 </td> <td> <?php _e('What ever you can imagine', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Comment count', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('Whether you want to show comment count beside every posts.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Unticked. Not shown by default', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Show date', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> If ticked publish date will be placed below the post title.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Unticked.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Show author', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> If ticked author name hyperlinked to author archive will be placed below the post title.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Unticked.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Show excerpt', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> If ticked post excerpt will be placed below the post title.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Unticked.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Excerpt', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> The length of characters of the excerpt', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('50', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Numerical value', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Post Excerpt', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> Gives preference to manually entered WP excerpts on posts. This will override the excerpt length.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Unticked', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Show Feed', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('If ticked a link will be placed before the title to the feed of the category.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Ticked. Attempts to show the feed', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Show Readmore', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('If ticked this will show a <strong>Read More</strong> link at the end of the widget. This will link to the category', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('By default this is ticked', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Feed HTML/Text', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> This HTML or text will be wrapped inside an anchor text hyperlinked to the category feed.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('If you would like to use image then do it like <code><img src="http://path.to/img.jpg"" /> or simply a Text <code>[Syndicate]</code>', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Readmore HTML/Text', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('<strong>NEW on V2</strong> This HTML or text will be wrapped inside an anchor text hyperlinked to the category link.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('If you would like to use image then do it like <code><img src="http://path.to/img.jpg"" /> or simply a Text <code>[More...]</code>', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Show Thumbnail & Thumb Class', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('Whether you want to show thumbnail beside every post, and if showing then the css class applied to the thumbnail', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('The Structure of the thumbnail is as follows', itgdb_wp_cpl_loader::$text_domain); ?> <p> <pre style="max-width: 200px; overflow: auto;"><code> <span class="wp-thumb-overlay"> <span class="thumb_lay or userclass"> <img width="40" height="40" title="Title" alt="alt" class="attachment-wp-cpl-post-thumb wp-post-image" src="path/to/img.jpg" /> </span> </span></code></pre> </p> </td> <td> thumb_lay </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Sorting', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('Here you have two options. Sort Order and Sort Using. You can choose from a number of available options for the Sort Using, and make it ascending or descending', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Sort Using has ID, title, comment (count)<strong>NEW on V2</strong> , date, comment or random options.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Date -> Ascendng', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <td colspan="5" align="right"> <strong> <?php _e('Advanced Options. Just Click to Toggle button to reveal', itgdb_wp_cpl_loader::$text_domain); ?> </strong> </td> </tr> <tr> <th> <?php _e('List Style', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('How the HTML list is formed. This is basically the HTML nesting', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Unordered list is the basic ul li type listing. You can select Custom Style to insert your own HTML tags before/after the list/links', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('HTML Unordered List', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Widget Style', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('The CSS class applied to the widget', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td colspan="3"> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Before/After List/Link', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('The HTML tag before the whole Widget List', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <p> <?php _e('Before List supports only one parameter.', itgdb_wp_cpl_loader::$text_domain); ?> <br /> <strong>%widget_class%</strong> : <?php _e('Gets replaced by system generated widget class and your own widget class', itgdb_wp_cpl_loader::$text_domain); ?> </p> <p> <?php _e('Similarly Before Link supports one paramter', itgdb_wp_cpl_loader::$text_domain); ?> <br /> <strong>%list_class%</strong> : <?php _e('Gets replaced by system generated list class. This is needed if you are applying alternate list css classes', 'wp-cpl-list-itg'); ?> </p> </td> <td> <ul class="wp-cpl-admin-ul"> <li> <strong><?php _e('Before List', itgdb_wp_cpl_loader::$text_domain); ?> :<code><ul class="%widget_class%"></code></strong> </li> <li> <strong><?php _e('After List', itgdb_wp_cpl_loader::$text_domain); ?> : <code></ul></code></strong> </li> <li> <strong><?php _e('Before Link', itgdb_wp_cpl_loader::$text_domain); ?> : <code><li class="%list_class%"></code></strong> </li> <li> <strong><?php _e('After Link', itgdb_wp_cpl_loader::$text_domain); ?> : <code></li></code></strong> </li> </ul> </td> <td> <ul class="wp-cpl-admin-ul"> <li> <strong><?php _e('Before List', itgdb_wp_cpl_loader::$text_domain); ?> :<code><div class="my_class %widget_class%"></code></strong> </li> <li> <strong><?php _e('After List', itgdb_wp_cpl_loader::$text_domain); ?> : <code></div></code></strong> </li> <li> <strong><?php _e('Before Link', itgdb_wp_cpl_loader::$text_domain); ?> : <code><p class="my_post class %list_class%"></code></strong> </li> <li> <strong><?php _e('After Link', itgdb_wp_cpl_loader::$text_domain); ?> : <code></p></code></strong> </li> </ul> </td> </tr> <tr> <th> <?php _e('Exclude Posts', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('Comma Seperated values of IDs of posts to exclude', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('The following ID format will work', itgdb_wp_cpl_loader::$text_domain); ?> <br /><br /> <code>12, 34,65 75,12 ,45</code> </td> <td colspan="2"> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Sticky Posts', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td colspan="4"> <?php _e('Same as Exclude Posts. Only the posts will become sticky. This will not verify whether they belong to the selected category or not. They will be placed before the normal list and CSS class wp-cpl-sticky will be applied to them', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Open in', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('Whether to open in the current tab or new tab', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Basically <code>_blank</code> or <code>_self</code> will be added to the anchor tag', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('Current Tab', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> <tr> <th> <?php _e('Alternate List CSS', itgdb_wp_cpl_loader::$text_domain); ?> </th> <td> <?php _e('Applies Alternate Listing CSS classes to the list HTML tag.', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td> <?php _e('wp-cpl-odd or wp-cpl-even CSS classes will be added accordingly', itgdb_wp_cpl_loader::$text_domain); ?> </td> <td colspan="2"> <?php _e('N/A', itgdb_wp_cpl_loader::$text_domain); ?> </td> </tr> </tbody> </table> <h4><?php _e('Shortcode usage:', itgdb_wp_cpl_loader::$text_domain); ?> </h4> <p> <?php _e('The basic shortcode is ', itgdb_wp_cpl_loader::$text_domain); ?> <code>[wp_cpl_sc cat_id=40 list_num=4 css_theme=2 sticky_post="79"]</code> <?php _e(' where you edit the cat_id (main category ID), list_num (number of posts), css_theme (the id of the theme), sticky_post (ID list of posts) etc. For more information please check the <a target="_blank" href="http://www.intechgrity.com/wp-plugins/wp-category-post-list-wordpress-plugin/">Documentation</a>', itgdb_wp_cpl_loader::$text_domain); ?> </p> </div> </div> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-faq"><span></span><?php _e('FAQs', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <h4>¿ <?php _e('My Thumbnails are not showing up exactly as the size I have selected', itgdb_wp_cpl_loader::$text_domain); ?> </h4> <p> <?php _e('WP CPL uses the default Thumbnail or Featured Image Feature of WP 2.9+. So, the thumbs are created when you upload the picture. For older pictures, it is not generated automatically. In such case just install and run this <a href="http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/">Regenerate Thumbnail Plugin</a>. After installing it first time or whenever you change the Thumb size, it is recommended that you run this plugin once', itgdb_wp_cpl_loader::$text_domain); ?> </p> <h4>¿ <?php _e('Can I use different thumbnail for different widget?', itgdb_wp_cpl_loader::$text_domain); ?> </h4> <p> <?php _e('This is not yet supported and I really don\'t feel like using timthumb to generate thumbnails. However in future if I ever feel, then I will incorporate this feature', itgdb_wp_cpl_loader::$text_domain); ?> </p> <h4>¿ <?php _e('How can I use my own CSS for the widget', itgdb_wp_cpl_loader::$text_domain); ?> </h4> <p> <?php _e('Now this can be done using our CSS Theme filter API. A detailed instruction can be found <a href="http://www.intechgrity.com/wp-plugins/wp-category-post-list-wordpress-plugin/">HERE</a>', itgdb_wp_cpl_loader::$text_domain); ?> </p> <h4>¿ <?php _e('Is it possible to use different CSS for different widget?', itgdb_wp_cpl_loader::$text_domain); ?> </h4> <p> <?php _e('Technically & simply Yes. Now you can simply choose the css theme from the dropdown (widgets) or mention the id in shortcode.', itgdb_wp_cpl_loader::$text_domain); ?> </p> <h4>¿ <?php _e('Okay, I dont have time or I want to you to setup my Wordpress with this and other widgets. Do you accept freelancing jobs?', itgdb_wp_cpl_loader::$text_domain); ?> </h4> <p> <?php _e('Yes we do. Just drop in a message from <a href="http://www.intechgrity.com/contct-us/">HERE</a> and we will get back to you.', itgdb_wp_cpl_loader::$text_domain); ?> </p> </div> </div> </div> <div class="wp-cpl-wrap-right"> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-donate"><span></span><?php _e('Support Us', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <p> <?php _e('There\'s a lot of effort behind the development of this plugin. Please support us by doing any of the following :) ', itgdb_wp_cpl_loader::$text_domain); ?> <ul class="wp-cpl-admin-ul"> <li><?php _e('Buy us some beer!', itgdb_wp_cpl_loader::$text_domain); ?> </li> <li><?php _e('Write about this plugin on your blog. <a href="http://www.intechgrity.com/?p=714">Read about it here</a>', itgdb_wp_cpl_loader::$text_domain); ?> </li> <li><?php _e('Help the community by translating the plugin.', itgdb_wp_cpl_loader::$text_domain); ?> </li> </ul> </p> <p> <?php _e('If you like to donate, then please use the link below', itgdb_wp_cpl_loader::$text_domain); ?> </p> <a class="don_but" href="http://www.intechgrity.com/about/buy-us-some-beer/"> <img src="<?php echo plugins_url('static/css/images/donate.png', itgdb_wp_cpl_loader::$abs_file); ?> " /> </a> <p> <?php _e('Thanks you for your support', itgdb_wp_cpl_loader::$text_domain); ?> </p> </div> </div> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-social"><span></span><?php _e('Get Social', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <ul> <li><a href="http://www.facebook.com/swashata"><img src="<?php echo plugins_url('static/css/images/facebook_add.png', itgdb_wp_cpl_loader::$abs_file); ?> " /></a></li> <li><a href="http://www.facebook.com/pages/inTechgrity-Amalgamating-Life-Technology/232884556318"><img src="<?php echo plugins_url('static/css/images/facebook_follow.png', itgdb_wp_cpl_loader::$abs_file); ?> " /></a></li> <li><a href="http://twitter.com/swashata"><img src="<?php echo plugins_url('static/css/images/twitter_follow.png', itgdb_wp_cpl_loader::$abs_file); ?> " /></a></li> <li>Badges from <a href="http://twitterbuttons.sociableblog.com/">Sociableblog</a> :)</li> </ul> </div> </div> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-itg"><span></span><?php _e('InTechgrity', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <script src="http://feeds.feedburner.com/greentechspot?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/greentechspot"></a><br/>Powered by FeedBurner</p> </noscript> <p><a href="http://feedburner.google.com/fb/a/mailverify?uri=greentechspot&loc=en_US">Subscribe to inTechgrity by Email</a></p> </div> </div> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-proj"><span></span><?php _e('Projects', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <script src="http://feeds.feedburner.com/IntechgrityProjects?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/IntechgrityProjects"></a><br/>Powered by FeedBurner</p> </noscript> </div> </div> <div class="postbox"> <div class="handlediv" title="<?php _e('Click to Toggle', itgdb_wp_cpl_loader::$text_domain); ?> "><br /></div> <h3 class="hndle"><span class="wp-cpl-admin-spon"><span></span><?php _e('Sponsors', itgdb_wp_cpl_loader::$text_domain); ?> </span></h3> <div class="inside"> <a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=5226_0_1_3" target="_blank"><img border="0" src="<?php echo plugins_url('/static/css/images/et.gif', itgdb_wp_cpl_loader::$abs_file); ?> " width="125" height="125" /></a> <a href="http://www.flexihostnz.com/aff.php?aff=016"><img src="<?php echo plugins_url('/static/css/images/fh.gif', itgdb_wp_cpl_loader::$abs_file); ?> " width="125" height="125" border="0" /></a> <a href="http://codecanyon.net?ref=swashata"><img src="<?php echo plugins_url('/static/css/images/cc.gif', itgdb_wp_cpl_loader::$abs_file); ?> " width="125" height="125" border="0" /></a> <a href="http://themeforest.net?ref=swashata"><img src="<?php echo plugins_url('/static/css/images/tf.gif', itgdb_wp_cpl_loader::$abs_file); ?> " width="125" height="125" border="0" /></a> </div> </div> </div> </div> </div> </div> </div> <?php }
/** * The backend form * @param string $title The title of the widget * @param string $teaser The teaser to display below the list * @param int $cat_id The category id to list * @param bool $show_feed Link to the Feed of the category * @param string $feed_html html inside the feed link anchor * @param bool $show_read_more Show a read more button * @param string $read_more_html html inside the read more anchor tag * @param bool $is_thumb Whether or not to display thumbnail * @param string $thumb_class The CSS Class applied to the thumbnail * @param int $list_num The number of posts to list down * @param string $widget_class The CSS class of the widget <div class="blah"></div> * @param bool $list_style Whether or not ul li list style or custom * @param bool $show_comments Whether or not to show comment count * @param int $sort_using 1=>Date 2=>Comment 3=>ID 4=>Title 5=> Random * @param bool $sort_order TURE=>ASC FALSE=>DESC * @param string $before_main_widget HTML or whatever before the link list starts * @param string $before_link HTML before the <a> tag * @param strong $after_link HTML after the </a> tag * @param string $after_main_widget HTML or whatever after the link list ends * @param string $exclude_post CSV of posts to exclude * @param string $sticky_post CSV of posts to make sticky * @param bool $highlight_sticky to add custom class to sticky post X NOT USING * @param string $sticky_class Class added to sticky posts X NOT USING. As I thought giving a default class can save the user using custom CSS selector and also can save me by excluding a couple of options :) * @param bool $open_in New tab(false) or current tab(true) * @param bool $alternate_list_css YES(TRUE) NO(FALSE) * @param bool $show_date Show date to the list * @param bool $show_author link author url to the list * @param bool $show_excerpt add excerpt of the posts to the list * @param string $error If there exists any error */ function form($instance) { /** The translator domain */ $wp_cat_list_itg_tans = 'wp-cat-list-itg'; /** Register the instance */ $instance = wp_parse_args((array) $instance, array('title' => 'Browse %cat_name%', 'teaser' => 'Featuring Top %widget_num%/%cat_count% of %cat_name%', 'cat_id' => NULL, 'css_theme' => 0, 'show_feed' => true, 'show_read_more' => true, 'feed_html' => 'Subscribe', 'read_more_html' => 'Read more', 'is_thumb' => true, 'thumb_class' => 'thumb_lay', 'list_num' => 10, 'widget_class' => '', 'list_style' => true, 'show_comments' => false, 'sort_using' => 1, 'sort_order' => true, 'before_main_widget' => '<div class="%widget_class%">', 'before_link' => '<p class="%list_class%">', 'after_link' => '</p>', 'after_main_widget' => '</div>', 'exclude_post' => '', 'sticky_post' => '', 'open_in' => true, 'alternate_list_css' => true, 'show_date' => false, 'show_author' => false, 'show_excerpt' => false, 'excerpt_length' => 50, 'optional_excerpt' => false, 'title_hyper' => false, 'error' => false)); /** The css class */ $wp_cpl_css = new itgdb_wp_cpl_css_filter(); /** Parse the value */ extract($instance); /** Category list */ $cat_lists = get_categories(array('type' => 'post', 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC', 'taxonomy' => 'category')); /** Output the form */ if ($error) { ?> <h4 style="color: #830000;"><strong><?php _e('The following errors have occured', $wp_cat_list_itg_tans); ?> </strong></h4> <?php echo $error; ?> <?php } ?> <!-- Basic options --> <h3><?php _e('Basic Options »', $wp_cat_list_itg_tans); ?> </h3> <p> <!-- Title --> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title of Widget: ', $wp_cat_list_itg_tans); ?> </label> <input type="text" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " value="<?php echo $title; ?> " class="widefat" /> <br /> <label for="<?php echo $this->get_field_id('title_hyper'); ?> "><?php _e('Hyperlink the title to the selected category: »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" id="<?php echo $this->get_field_id('title_hyper'); ?> " name="<?php echo $this->get_field_name('title_hyper'); ?> "<?php if (true == $title_hyper) { ?> checked="checked"<?php } ?> /> </p> <p><!-- Teaser --> <label for="<?php echo $this->get_field_id('teaser'); ?> "><?php _e('Teaser Text: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" id="<?php echo $this->get_field_id('teaser'); ?> " name="<?php echo $this->get_field_name('teaser'); ?> " value="<?php echo $teaser; ?> " class="widefat" /> </p> <p> <span class="description"> <?php _e('Title and Teaser supports the same dynamic tags/parameters. Leave teaser empty to hide it. For a list of available parameters go to <a href="options-general.php?page=wp_cpl_itg_page">WP CPL settings page</a>', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- Category --> <label for="<?php echo $this->get_field_id('cat_id'); ?> "><?php _e('Category: ', $wp_cat_list_itg_tans); ?> </label> <select id="<?php echo $this->get_field_id('cat_id'); ?> " name="<?php echo $this->get_field_name('cat_id'); ?> "> <option value="-1"<?php if (-1 == $cat_id) { ?> selected="selected"<?php } ?> >Current category of post</option> <?php foreach ($cat_lists as $cat_list) { ?> <option value="<?php echo $cat_list->term_id; ?> "<?php if ($cat_list->term_id == $cat_id) { ?> selected="selected"<?php } ?> ><?php echo $cat_list->name . ' (' . $cat_list->count . ')'; ?> </option> <?php } ?> </select> </p> <p><!-- CSS Theme --> <label for="<?php echo $this->get_field_id('css_theme'); ?> "><?php _e('CSS Theme: ', $wp_cat_list_itg_tans); ?> </label> <select id="<?php echo $this->get_field_id('css_theme'); ?> " name="<?php echo $this->get_field_name('css_theme'); ?> "> <option value="no">No CSS Theme</option> <?php echo $wp_cpl_css->list_widget_selectbox($css_theme); ?> </select> </p> <p> <span class="description"> <?php _e('Selecting the No CSS Theme will make the widget hold no special css class but just the default ones. So only the default formatting will get applied.', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- Number | Comment --> <label for="<?php echo $this->get_field_id('list_num'); ?> "><?php _e('Number of Posts to show: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('list_num'); ?> " id="<?php echo $this->get_field_id('list_num'); ?> " class="small-text code" value="<?php echo $list_num; ?> " /> </p> <p> <!-- Comment | Date --> <label for="<?php echo $this->get_field_id('show_comments'); ?> "><?php _e('Show Comment count? » ', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('show_comments'); ?> " id="<?php echo $this->get_field_id('show_comments'); ?> "<?php if (true == $show_comments) { ?> checked="checked"<?php } ?> /> | <label for="<?php echo $this->get_field_id('show_date'); ?> "><?php _e('Show date: »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('show_date'); ?> " id="<?php echo $this->get_field_id('show_date'); ?> "<?php if (true == $show_date) { ?> checked="checked"<?php } ?> /> </p> <p> <!-- Author | Excerpt --> <label for="<?php echo $this->get_field_id('show_author'); ?> "><?php _e('Show Author: »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('show_author'); ?> " id="<?php echo $this->get_field_id('show_author'); ?> "<?php if (true == $show_author) { ?> checked="checked"<?php } ?> /> | <label for="<?php echo $this->get_field_id('show_excerpt'); ?> "><?php _e('Show Excerpt: »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('show_excerpt'); ?> " id="<?php echo $this->get_field_id('show_excerpt'); ?> "<?php if (true == $show_excerpt) { ?> checked="checked"<?php } ?> /> </p> <p> <label for="<?php echo $this->get_field_id('excerpt_length'); ?> "><?php _e('Excerpt length: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" class="small-text code" name="<?php echo $this->get_field_name('excerpt_length'); ?> " id="<?php echo $this->get_field_id('excerpt_length'); ?> " value="<?php echo $excerpt_length; ?> " /> | <label for="<?php echo $this->get_field_id('optional_excerpt'); ?> "><?php _e('Use post excerpt if available', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('optional_excerpt'); ?> " id="<?php echo $this->get_field_id('optional_excerpt'); ?> "<?php if (true == $optional_excerpt) { ?> checked="checked"<?php } ?> /> <br /> <span class="description"><?php _e(' Post content will be chopped off upto the entered character length. If you tick the Post Excerpt then it will be used if available, instead of chopping the original content', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- Show Feed | Show Read More --> <label for="<?php echo $this->get_field_id('show_feed'); ?> "><?php _e('Show Feed? »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('show_feed'); ?> " id="<?php echo $this->get_field_id('show_feed'); ?> "<?php if (true == $show_feed) { ?> checked="checked"<?php } ?> /> | <label for="<?php echo $this->get_field_id('show_read_more'); ?> "><?php _e('Show Read more? »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('show_read_more'); ?> " id="<?php echo $this->get_field_id('show_read_more'); ?> "<?php if (true == $show_read_more) { ?> checked="checked"<?php } ?> /> <br /> <span class="description"> <?php _e('Whether to or not to show feed link and read more link at the end of the widget(After the teaser)', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- Feed HTML | Read More HTML --> <label for="<?php echo $this->get_field_id('feed_html'); ?> "><?php _e('Feed HTML/Text »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('feed_html'); ?> " id="<?php echo $this->get_field_id('feed_html'); ?> " value="<?php echo $feed_html; ?> " /> <br /> <label for="<?php echo $this->get_field_id('read_more_html'); ?> "><?php _e('Read more HTML/Text »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('read_more_html'); ?> " id="<?php echo $this->get_field_id('read_more_html'); ?> " value="<?php echo $read_more_html; ?> " /> <br /> <span class="description"> <?php _e('Works only if Show Feed Link and/or Read more link is checked. Enter simple text or some HTML, preferably image code like <img src="e;http://path/to/img/url.jpg"e; />. They will be placed inside the anchor tag.', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- is thumb | Thumb class --> <label for="<?php echo $this->get_field_id('is_thumb'); ?> "><?php _e('Show Thumbnail? » ', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('is_thumb'); ?> " id="<?php echo $this->get_field_id('is_thumb'); ?> "<?php if (true == $is_thumb) { ?> checked="checked"<?php } ?> /> | <label for="<?php echo $this->get_field_id('thumb_class'); ?> "><?php _e('Thumbnail Class: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('thumb_class'); ?> " id="<?php echo $this->get_field_id('thumb_class'); ?> " value="<?php echo $thumb_class; ?> " /> <span class="description"><?php _e('Optional', $wp_cat_list_itg_tans); ?> </span> </p> <p><!-- Sort Using | Sort Order --> <label for="<?php echo $this->get_field_id('sort_using'); ?> "><?php _e('Sort Using: » ', $wp_cat_list_itg_tans); ?> </label> <select name="<?php echo $this->get_field_name('sort_using'); ?> " id="<?php echo $this->get_field_id('sort_using'); ?> "> <?php $sort_using_ops = array(1 => 'Date', 2 => 'Comment', 3 => 'ID', 4 => 'Title', 5 => 'Random'); foreach ($sort_using_ops as $sort_using_op_key => $sort_using_op_value) { ?> <option value="<?php echo $sort_using_op_key; ?> "<?php if ($sort_using == $sort_using_op_key) { ?> selected="selected"<?php } ?> ><?php _e($sort_using_op_value, $wp_cat_list_itg_tans); ?> </option> <?php } ?> </select> | <label for="<?php echo $this->get_field_id('sort_order'); ?> "><?php _e('Sort Order »', $wp_cat_list_itg_tans); ?> </label> <select name="<?php echo $this->get_field_name('sort_order'); ?> " id="<?php echo $this->get_field_id('sort_order'); ?> "> <option value="0"<?php if (false == $sort_order) { echo ' selected="selected"'; } ?> ><?php _e('Descending', $wp_cat_list_itg_tans); ?> </option> <option value="1"<?php if (true == $sort_order) { echo ' selected="selected"'; } ?> ><?php _e('Ascending', $wp_cat_list_itg_tans); ?> </option> </select> </p> <!-- Advanced Options --> <h3><?php _e('Advance Options »', $wp_cat_list_itg_tans); ?> </h3> <div> <a class="button-secondary wp-cpl-itg-but" href="#"><?php _e('Toggle Options', $wp_cat_list_itg_tans); ?> </a> <div class="wp-cpl-itg-advop" style="display: none;"> <br class="clear clearfix" style="height: 10px" /> <p> <!-- list style | Widget Class --> <label for="<?php echo $this->get_field_id('list_style'); ?> "><?php _e('List Style: »', $wp_cat_list_itg_tans); ?> </label> <select name="<?php echo $this->get_field_name('list_style'); ?> " id="<?php echo $this->get_field_id('list_style'); ?> "> <option value="0"<?php if (false == $list_style) { echo ' selected="selected"'; } ?> >Custom Style</option> <option value="1"<?php if (true == $list_style) { echo ' selected="selected"'; } ?> >HTML unordered list</option> </select> | <label for="<?php echo $this->get_field_id('widget_class'); ?> "><?php _e('Widget Class: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('widget_class'); ?> " id="<?php echo $this->get_field_id('widget_class'); ?> " value="<?php echo $widget_class; ?> " /> <br /> <span class="description"><?php _e('These classes will be added to the <code><ul class="your_class"></code> if using the default listing style. Else you should use options parameters for constructing your custom HTML structure. For example <div class="your_class %widget_class%">. The %widget_class% will be replaced by the default class by the widget. For more read the FAQ from the plugins Settings page.', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- Before main widget | After main widget --> <label for="<?php echo $this->get_field_id('before_main_widget'); ?> "><?php _e('Before List: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('before_main_widget'); ?> " id="<?php echo $this->get_field_id('before_main_widget'); ?> " value="<?php echo esc_html($before_main_widget); ?> " /> | <label for="<?php echo $this->get_field_id('after_main_widget'); ?> "><?php _e('After List: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" value="<?php echo esc_html($after_main_widget); ?> " name="<?php echo $this->get_field_name('after_main_widget'); ?> " id="<?php echo $this->get_field_id('after_main_widget'); ?> " /> </p> <p> <!-- Before Link | After Link --> <label for="<?php echo $this->get_field_id('before_link'); ?> "><?php _e('Before Link: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('before_link'); ?> " id="<?php echo $this->get_field_id('before_link'); ?> " value="<?php echo esc_html($before_link); ?> " /> | <label for="<?php echo $this->get_field_id('after_link'); ?> "><?php _e('After Link: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('after_link'); ?> " id="<?php echo $this->get_field_id('after_link'); ?> " value="<?php echo esc_html($after_link); ?> " /> <br /> <span class="description"> <?php _e('Before link and after will appear before and after the <a href="your_link.html">anchor_text</a>. <br />Similarly, before list and after list will wrap the whole link list', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- exclude post and sticky post --> <label for="<?php echo $this->get_field_id('exclude_post'); ?> "><?php _e('Exclude: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('exclude_post'); ?> " id="<?php echo $this->get_field_id('exclude_post'); ?> " value="<?php echo $exclude_post; ?> " /> <label for="<?php echo $this->get_field_id('sticky_post'); ?> "><?php _e('Sticky: »', $wp_cat_list_itg_tans); ?> </label> <input type="text" name="<?php echo $this->get_field_name('sticky_post'); ?> " id="<?php echo $this->get_field_id('sticky_post'); ?> " value="<?php echo $sticky_post; ?> " /> <br /> <span class="description"> <?php _e('Comma seperated values of post ids. Eg: 34,56,98,13,54 etc. No white space no trailing comma', $wp_cat_list_itg_tans); ?> </span> </p> <p> <!-- Open in option --> <label for="<?php echo $this->get_field_id('open_in'); ?> "><?php _e('Open in? »', $wp_cat_list_itg_tans); ?> </label> <select name="<?php echo $this->get_field_name('open_in'); ?> " id="<?php echo $this->get_field_id('open_in'); ?> "> <option value="0"<?php if (false == $open_in) { echo ' selected="selected"'; } ?> >New Tab or Window</option> <option value="1"<?php if (true == $open_in) { echo ' selected="selected"'; } ?> >Current Tab or Window</option> </select> </p> <p> <!-- Alternate listing style --> <label for="<?php echo $this->get_field_id('alternate_list_css'); ?> "><?php _e('Apply alternate style? »', $wp_cat_list_itg_tans); ?> </label> <input type="checkbox" name="<?php echo $this->get_field_name('alternate_list_css'); ?> " id="<?php echo $this->get_field_id('alternate_list_css'); ?> "<?php if (true == $alternate_list_css) { echo ' checked="checked"'; } ?> /> <br /> <span class="description"> <?php _e('If checked, then the classes wp-cpl-odd or wp-cpl-even will be added to the respective odd or even items of the list', $wp_cat_list_itg_tans); ?> </span> </p> </div> </div> <?php }