?php /* Plugin Name: Awesome Flickr Gallery Plugin URI: http://www.ronakg.com/projects/awesome-flickr-gallery-wordpress-plugin/ Description: Awesome Flickr Gallery is a simple, fast and light plugin to create a gallery of your Flickr photos on your WordPress enabled website. This plugin aims at providing a simple yet customizable way to create stunning Flickr gallery. Version: 3.5.6 Author: Ronak Gandhi Author URI: http://www.ronakg.com License: GPL2 Copyright 2017 Ronak Gandhi (email : me@ronakg.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require_once('afgFlickr/afgFlickr.php'); include_once('afg_admin_settings.php'); include_once('afg_libs.php'); function afg_enqueue_cbox_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('afg_colorbox_script', BASE_URL . "/colorbox/jquery.colorbox-min.js" , array('jquery')); wp_enqueue_script('afg_colorbox_js', BASE_URL . "/colorbox/mycolorbox.js" , array('jquery')); } function afg_enqueue_swipebox_scripts() { wp_enqueue_script('jquery'); wp_enqueue_script('afg_swipebox_script', BASE_URL . "/swipebox/js/jquery.swipebox.min.js" , array('jquery')); wp_enqueue_script('afg_swipebox_js', BASE_URL . "/swipebox/myswipebox.js" , array('jquery')); } function afg_enqueue_cbox_styles() { wp_enqueue_style('afg_colorbox_css', BASE_URL . "/colorbox/colorbox.css"); } function afg_enqueue_swipebox_styles() { wp_enqueue_style('afg_swipebox_css', BASE_URL . "/swipebox/css/swipebox.min.css"); } function afg_enqueue_styles() { wp_enqueue_style('afg_css', BASE_URL . "/afg.css"); } $enable_colorbox = get_option('afg_slideshow_option') == 'colorbox'; $enable_swipebox = get_option('afg_slideshow_option') == 'swipebox'; if (!is_admin()) { global $enable_colorbox, $enable_swipebox; /* Short code to load Awesome Flickr Gallery plugin. Detects the word * [AFG_gallery] in posts or pages and loads the gallery. */ add_shortcode('AFG_gallery', 'afg_display_gallery'); add_filter('widget_text', 'do_shortcode', 11); $galleries = get_option('afg_galleries'); foreach ($galleries as $gallery) { if ($gallery['slideshow_option'] == 'colorbox') { $enable_colorbox = true; break; } if ($gallery['slideshow_option'] == 'swipebox') { $enable_swipebox = true; break; } } if ($enable_colorbox) { add_action('wp_print_scripts', 'afg_enqueue_cbox_scripts'); add_action('wp_print_styles', 'afg_enqueue_cbox_styles'); } if ($enable_swipebox) { add_action('wp_print_scripts', 'afg_enqueue_swipebox_scripts'); add_action('wp_print_styles', 'afg_enqueue_swipebox_styles'); } add_action('wp_print_styles', 'afg_enqueue_styles'); } add_action('wp_head', 'add_afg_headers'); function add_afg_headers() { echo ""; } function afg_return_error_code($rsp) { return $rsp['message']; } /* Main function that loads the gallery. */ function afg_display_gallery($atts) { global $size_heading_map, $afg_text_color_map, $pf; if (!get_option('afg_pagination')) update_option('afg_pagination', 'on'); extract( shortcode_atts( array( 'id' => '0', ), $atts ) ); $cur_page = 1; $cur_page_url = afg_get_cur_url(); preg_match("/afg{$id}_page_id=(?P\d+)/", $cur_page_url, $matches); if ($matches) { $cur_page = ($matches['page_id']); $match_pos = strpos($cur_page_url, "afg{$id}_page_id=$cur_page") - 1; $cur_page_url = substr($cur_page_url, 0, $match_pos); if(function_exists('qtrans_convertURL')) { $cur_page_url = qtrans_convertURL($cur_page_url); } } if (strpos($cur_page_url,'?') === false) $url_separator = '?'; else $url_separator = '&'; $galleries = get_option('afg_galleries'); if (!isset($galleries) || array_key_exists($id, $galleries) == false) { return afg_error("Gallery ID {$id} has been either deleted or not configured."); } $gallery = $galleries[$id]; $api_key = get_option('afg_api_key'); $user_id = get_option('afg_user_id'); $disable_slideshow = (get_afg_option($gallery, 'slideshow_option') == 'disable'); $slideshow_option = get_afg_option($gallery, 'slideshow_option'); $per_page = get_afg_option($gallery, 'per_page'); $sort_order = get_afg_option($gallery, 'sort_order'); $photo_size = get_afg_option($gallery, 'photo_size'); $photo_title = get_afg_option($gallery, 'captions'); $photo_descr = get_afg_option($gallery, 'descr'); $bg_color = get_afg_option($gallery, 'bg_color'); $columns = get_afg_option($gallery, 'columns'); $credit_note = get_afg_option($gallery, 'credit_note'); $gallery_width = get_afg_option($gallery, 'width'); $pagination = get_afg_option($gallery, 'pagination'); $cache_refresh_interval = get_afg_option($gallery, 'cache_refresh_interval'); if ($photo_size == 'custom') { $custom_size = get_afg_option($gallery, 'custom_size'); $custom_size_square = get_afg_option($gallery, 'custom_size_square'); if ($custom_size <= 70) $photo_size = '_s'; else if ($custom_size <= 90) $photo_size = '_t'; else if ($custom_size <= 220) $photo_size = '_m'; else if ($custom_size <= 500) $photo_size = 'NULL'; } else { $custom_size = 0; $custom_size_square = 'false'; } $photoset_id = NULL; $gallery_id = NULL; $group_id = NULL; $tags = NULL; $popular = false; if (!isset($gallery['photo_source'])) $gallery['photo_source'] = 'photostream'; if ($gallery['photo_source'] == 'photoset') $photoset_id = $gallery['photoset_id']; else if ($gallery['photo_source'] == 'gallery') $gallery_id = $gallery['gallery_id']; else if ($gallery['photo_source'] == 'group') $group_id = $gallery['group_id']; else if ($gallery['photo_source'] == 'tags') $tags = $gallery['tags']; else if ($gallery['photo_source'] == 'popular') $popular = true; $disp_gallery = ""; $disp_gallery .= ""; $extras = 'url_l, description, date_upload, date_taken, owner_name'; if (!DEBUG) { $photos = get_transient('afg_id_' . $id); } if ($photos === false) { $photos = array(); if (isset($photoset_id) && $photoset_id) { $rsp_obj = $pf->photosets_getPhotos($photoset_id, NULL, 1, 1); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); $total_photos = $rsp_obj['photoset']['total']; } else if (isset($gallery_id) && $gallery_id) { $rsp_obj = $pf->galleries_getInfo($gallery_id); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); $total_photos = $rsp_obj['gallery']['count_photos']['_content']; } else if (isset($group_id) && $group_id) { $rsp_obj = $pf->groups_pools_getPhotos($group_id, NULL, NULL, NULL, NULL, 1, 1); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); $total_photos = $rsp_obj['photos']['total']; if ($total_photos > 500) $total_photos = 500; } else if (isset($tags) && $tags) { $rsp_obj = $pf->photos_search(array('user_id'=>$user_id, 'tags'=>$tags, 'extras'=>$extras, 'per_page'=>1)); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); $total_photos = $rsp_obj['photos']['total']; } else if (isset($popular) && $popular) { $rsp_obj = $pf->photos_search(array('user_id'=>$user_id, 'sort'=>'interestingness-desc', 'extras'=>$extras, 'per_page'=>1)); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); $total_photos = $rsp_obj['photos']['total']; if ($total_photos > 500) $total_photos = 500; } else { $rsp_obj = $pf->people_getInfo($user_id); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); $total_photos = $rsp_obj['photos']['count']['_content']; } for($i=1; $i<($total_photos/500)+1; $i++) { $flickr_api = 'photos'; if ($photoset_id) { $flickr_api = 'photoset'; $rsp_obj_total = $pf->photosets_getPhotos($photoset_id, $extras, NULL, 500, $i); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); } else if ($gallery_id) { $rsp_obj_total = $pf->galleries_getPhotos($gallery_id, $extras, 500, $i); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); } else if ($group_id) { $rsp_obj_total = $pf->groups_pools_getPhotos($group_id, NULL, NULL, NULL, $extras, 500, $i); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); } else if ($tags) { $rsp_obj_total = $pf->photos_search(array('user_id'=>$user_id, 'tags'=>$tags, 'extras'=>$extras, 'per_page'=>500, 'page'=>$i)); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); } else if ($popular) { $rsp_obj_total = $pf->photos_search(array('user_id'=>$user_id, 'sort'=>'interestingness-desc', 'extras'=>$extras, 'per_page'=>500, 'page'=>$i)); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); } else { if (get_option('afg_flickr_token')) $rsp_obj_total = $pf->people_getPhotos($user_id, array('extras' => $extras, 'per_page' => 500, 'page' => $i)); else $rsp_obj_total = $pf->people_getPublicPhotos($user_id, NULL, $extras, 500, $i); if ($pf->error_code) return $disp_gallery . afg_error($pf->error_msg); } $photos = array_merge($photos, $rsp_obj_total[$flickr_api]['photo']); } if (!DEBUG) set_transient('afg_id_' . $id, $photos, afg_get_cache_refresh_interval_secs($cache_refresh_interval)); } else { $total_photos = count($photos); } if (($total_photos % $per_page) == 0) { $total_pages = (int)($total_photos / $per_page); } else { $total_pages = (int)($total_photos / $per_page) + 1; } if ($gallery_width == 'auto') $gallery_width = 100; $text_color = isset($afg_text_color_map[$bg_color])? $afg_text_color_map[$bg_color]: ''; $disp_gallery .= "'; // Pagination if ($pagination == 'on' && $total_pages > 1) { $disp_gallery .= "
"; $disp_gallery .= "

"; if ($cur_page == 1) { $disp_gallery .=" « prev     "; $disp_gallery .=" 1  "; } else { $prev_page = $cur_page - 1; $disp_gallery .= " « prev     "; $disp_gallery .= " 1  "; } if ($cur_page - 2 > 2) { $start_page = $cur_page - 2; $end_page = $cur_page + 2; $disp_gallery .= " ... "; } else { $start_page = 2; $end_page = 6; } for ($count = $start_page; $count <= $end_page; $count += 1) { if ($count > $total_pages) break; if ($cur_page == $count) $disp_gallery .= " {$count}  "; else $disp_gallery .= " {$count}  "; } if ($count < $total_pages) $disp_gallery .= " ... "; if ($count <= $total_pages) $disp_gallery .= " {$total_pages}  "; if ($cur_page == $total_pages) $disp_gallery .= "    next » "; else { $next_page = $cur_page + 1; $disp_gallery .= "    next »  "; } $disp_gallery .= "
({$total_photos} Photos)"; $disp_gallery .= "
"; } if ($credit_note == 'on') { $disp_gallery .= "
"; $disp_gallery .= "
Powered by " . "AFG"; $disp_gallery .= "
"; } $disp_gallery .= ""; $disp_gallery .= ""; return $disp_gallery; } ?> ?php require_once WPCF7_PLUGIN_DIR . '/includes/functions.php'; require_once WPCF7_PLUGIN_DIR . '/includes/l10n.php'; require_once WPCF7_PLUGIN_DIR . '/includes/formatting.php'; require_once WPCF7_PLUGIN_DIR . '/includes/pipe.php'; require_once WPCF7_PLUGIN_DIR . '/includes/form-tag.php'; require_once WPCF7_PLUGIN_DIR . '/includes/form-tags-manager.php'; require_once WPCF7_PLUGIN_DIR . '/includes/shortcodes.php'; require_once WPCF7_PLUGIN_DIR . '/includes/capabilities.php'; require_once WPCF7_PLUGIN_DIR . '/includes/contact-form-template.php'; require_once WPCF7_PLUGIN_DIR . '/includes/contact-form.php'; require_once WPCF7_PLUGIN_DIR . '/includes/contact-form-functions.php'; require_once WPCF7_PLUGIN_DIR . '/includes/mail.php'; require_once WPCF7_PLUGIN_DIR . '/includes/special-mail-tags.php'; require_once WPCF7_PLUGIN_DIR . '/includes/submission.php'; require_once WPCF7_PLUGIN_DIR . '/includes/upgrade.php'; require_once WPCF7_PLUGIN_DIR . '/includes/integration.php'; require_once WPCF7_PLUGIN_DIR . '/includes/config-validator.php'; require_once WPCF7_PLUGIN_DIR . '/includes/rest-api.php'; if ( is_admin() ) { require_once WPCF7_PLUGIN_DIR . '/admin/admin.php'; } else { require_once WPCF7_PLUGIN_DIR . '/includes/controller.php'; } class WPCF7 { public static function load_modules() { self::load_module( 'acceptance' ); self::load_module( 'akismet' ); self::load_module( 'checkbox' ); self::load_module( 'constant-contact' ); self::load_module( 'count' ); self::load_module( 'date' ); self::load_module( 'file' ); self::load_module( 'flamingo' ); self::load_module( 'hidden' ); self::load_module( 'listo' ); self::load_module( 'number' ); self::load_module( 'quiz' ); self::load_module( 'really-simple-captcha' ); self::load_module( 'recaptcha' ); self::load_module( 'response' ); self::load_module( 'select' ); self::load_module( 'submit' ); self::load_module( 'text' ); self::load_module( 'textarea' ); } protected static function load_module( $mod ) { $dir = WPCF7_PLUGIN_MODULES_DIR; if ( empty( $dir ) or ! is_dir( $dir ) ) { return false; } $file = path_join( $dir, $mod . '.php' ); if ( file_exists( $file ) ) { include_once $file; } } public static function get_option( $name, $default = false ) { $option = get_option( 'wpcf7' ); if ( false === $option ) { return $default; } if ( isset( $option[$name] ) ) { return $option[$name]; } else { return $default; } } public static function update_option( $name, $value ) { $option = get_option( 'wpcf7' ); $option = ( false === $option ) ? array() : (array) $option; $option = array_merge( $option, array( $name => $value ) ); update_option( 'wpcf7', $option ); } } add_action( 'plugins_loaded', 'wpcf7', 10, 0 ); function wpcf7() { wpcf7_load_textdomain(); WPCF7::load_modules(); /* Shortcodes */ add_shortcode( 'contact-form-7', 'wpcf7_contact_form_tag_func' ); add_shortcode( 'contact-form', 'wpcf7_contact_form_tag_func' ); } add_action( 'init', 'wpcf7_init', 10, 0 ); function wpcf7_init() { wpcf7_get_request_uri(); wpcf7_register_post_types(); do_action( 'wpcf7_init' ); } add_action( 'admin_init', 'wpcf7_upgrade', 10, 0 ); function wpcf7_upgrade() { $old_ver = WPCF7::get_option( 'version', '0' ); $new_ver = WPCF7_VERSION; if ( $old_ver == $new_ver ) { return; } do_action( 'wpcf7_upgrade', $new_ver, $old_ver ); WPCF7::update_option( 'version', $new_ver ); } /* Install and default settings */ add_action( 'activate_' . WPCF7_PLUGIN_BASENAME, 'wpcf7_install', 10, 0 ); function wpcf7_install() { if ( $opt = get_option( 'wpcf7' ) ) { return; } wpcf7_load_textdomain(); wpcf7_register_post_types(); wpcf7_upgrade(); if ( get_posts( array( 'post_type' => 'wpcf7_contact_form' ) ) ) { return; } $contact_form = WPCF7_ContactForm::get_template( array( 'title' => /* translators: title of your first contact form. %d: number fixed to '1' */ sprintf( __( 'Contact form %d', 'contact-form-7' ), 1 ), ) ); $contact_form->save(); WPCF7::update_option( 'bulk_validate', array( 'timestamp' => current_time( 'timestamp' ), 'version' => WPCF7_VERSION, 'count_valid' => 1, 'count_invalid' => 0, ) ); } ?php /** * Plugin Name: Rescue Shortcodes * Plugin URI: https://rescuethemes.com/wordpress-plugins/rescue-shortcodes-plugin/ * Description: A lightweight shortcodes plugin. * Version: 2.4 * Author: Rescue Themes * Author URI: https://rescuethemes.com * Text Domain: rescue-shortcodes * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt */ /* Copyright 2015 Rescue Themes ( email : hello@rescuethemes.com ) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * Exit if accessed directly */ if ( ! defined( 'ABSPATH' ) ) exit; /** * Load scripts and styles */ require_once( plugin_dir_path( __FILE__ ) . '/includes/scripts.php' ); /** * Shortcode functions */ require_once( plugin_dir_path( __FILE__ ) . '/includes/shortcode-functions.php'); /** * Add button to WP editor */ require_once( plugin_dir_path( __FILE__ ) . '/includes/shortcodes-button.php'); add_action( 'plugins_loaded', 'rescue_shortcodes_load_textdomain' ); /** * Load plugin textdomain. */ function rescue_shortcodes_load_textdomain() { load_plugin_textdomain( 'rescue-shortcodes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); } Hinduism In Bangladesh | BPCSSA.COM.AU

Hinduism In Bangladesh

Hinduism is the second largest religious affiliation in Bangladesh, covering more than 8.2% of the population, according to the Bangladesh Bureau of Statistics. In terms of population, Bangladesh is the third largest Hindu state in the world after India and Nepal.

In nature, Bangladeshi Hinduism closely resembles the forms and customs of Hinduism practised in the neighbouring Indian state of West Bengal, with which Bangladesh (at one time known as East Bengal) was united until the partition of India in 1947.

The Goddess (Devi) – usually venerated as Durga or Kali – is widely revered, often alongside her consort Shiva. The worship of Shiva has generally found adherents among the higher castes in Bangladesh. Worship of Vishnu (typically in the form of his Avatars or incarnation Rama or Krishna) more explicitly cuts across caste lines by teaching the fundamental oneness of humankind in spirit. Vishnu worship in Bengal expresses the union of the male and female principles in a tradition of love and devotion. This form of Hindu belief and the Sufi tradition of Islam have influenced and interacted with each other in Bengal. Both were popular mystical movements emphasizing the personal relationship of religious leader and disciple instead of the dry stereotypes of the brahmins or the ulama. As in Bengali Islamic practice, worship of Vishnu frequently occurs in a small devotional society (shomaj). Both use the language of earthly love to express communion with the divine. In both traditions, the Bengali language is the vehicle of a large corpus of mystical literature of great beauty and emotional impact.

In Bangladeshi Hinduism ritual bathing, vows, and pilgrimages to sacred rivers, mountains, and shrines are common practice. An ordinary Hindu will worship at the shrines of Muslim pirs, without being concerned with the religion to which that place is supposed to be affiliated. Hindus revere many holy men and ascetics conspicuous for their bodily mortifications. Some believe that they attain spiritual benefit merely by looking at a great holy man.

The principle of ahimsa is expressed in almost universally observed rules against eating beef. By no means are all Bangladeshi Hindus vegetarians, but abstinence from all kinds of meat is regarded as a “higher” virtue. Brahmin (Bram-mon) or “Upper-caste” Bangladeshi Hindus, unlike their counterparts elsewhere in South Asia, ordinarily eat fish and chicken. This is similar to the Indian state of West Bengal, which has a similar climate to that of Bangladesh where Hindus also consume fish.