Example #1
0
 function NextendGeneratorflexicontent_items($data)
 {
     parent::__construct($data);
     nextendimport('nextend.database.database');
     $db = NextendDatabase::getInstance();
     $this->_variables = array('link' => NextendText::_('Link_to_the_article'));
     $db->setQuery('SELECT * FROM #__flexicontent_fields');
     $result = $db->loadAssocList();
     foreach ($result as $field) {
         $this->_variables[$field['name']] = $field['label'] . ' - ' . $field['description'];
     }
 }
Example #2
0
 function NextendGeneratorK2_Items($data)
 {
     parent::__construct($data);
     $this->extraFields = array();
     $this->_variables = array('title' => NextendText::_('Title_of_the_item'), 'image' => NextendText::_('Image_for_the_item'), 'thumbnail' => NextendText::_('Image_for_the_item'), 'description' => NextendText::_('Intro_of_the_item'), 'url' => NextendText::_('Url_of_the_item'), 'alias' => NextendText::_('Alias_of_the_item'), 'fulltext' => NextendText::_('Text_of_the_item'), 'catid' => NextendText::_('Id_of_the_item_s_category'), 'cat_title' => NextendText::_('Title_of_the_item_s_category'), 'categoryurl' => NextendText::_('Url_to_the_item_s_category'), 'created_by' => NextendText::_('Id_of_the_item_s_creator'), 'author_name' => NextendText::_('Name_of_the_article_s_creator'), 'image_caption' => NextendText::_('Image_caption_for_the_item'), 'image_credits' => NextendText::_('Image_credits_for_the_item'), 'hits' => NextendText::_('Hits_of_the_item'));
     $this->loadExtraFields();
     if (count($this->extraFields) > 0) {
         foreach ($this->extraFields as $v) {
             $this->_variables['extra' . $v['id'] . '_' . preg_replace("/\\W|_/", "", $v['group_name'] . '_' . $v['name'])] = 'Extra field ' . $v['name'] . ' of the item';
         }
     }
 }
Example #3
0
 function NextendGeneratorCobalt_Records($data)
 {
     parent::__construct($data);
     $this->extraFields = array();
     $this->_variables = array('id' => NextendText::_('ID_of_the_record'), 'title' => NextendText::_('Title_of_the_record'), 'url' => NextendText::_('Url_of_the_record'), 'section_id' => NextendText::_('Id_of_the_record_s_section'), 'section_title' => NextendText::_('Title_of_the_record_s_section'), 'section_url' => NextendText::_('Url_to_the_record_s_section'), 'category_id' => NextendText::_('Id_of_the_record_s_category'), 'cat_title' => NextendText::_('Title_of_the_record_s_category'), 'category_url' => NextendText::_('Url_to_the_record_s_category'), 'type_id' => NextendText::_('Id_of_the_record_s_type'), 'type_title' => NextendText::_('Title_of_the_record_s_type'), 'created_by' => NextendText::_('Id_of_the_record_s_creator'), 'created_by_alias' => NextendText::_('Name_of_the_record_s_creator'), 'hits' => NextendText::_('Hits_of_the_record'));
     $this->loadExtraFields();
     if (count($this->extraFields) > 0) {
         foreach ($this->extraFields as $v) {
             $this->_variables['extra' . $v['id'] . '_' . preg_replace("/\\W|_/", "", $v['label'])] = 'Extra field ' . $v['label'] . ' of the record';
         }
     }
 }
 function NextendGeneratorPosts_Posts($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => 'Title of the post', 'image' => 'Featured image of the post', 'thumbnail' => 'Featured image of the post', 'description' => 'Content of the post', 'url' => 'Link to the post', 'author_name' => 'Name of the author', 'author_url' => 'Url of the author', 'id' => 'ID of the post', 'category_name' => 'Post\'s category name', 'category_link' => 'Post\'s category link');
     if (class_exists('acf')) {
         $acfs = get_posts(array('posts_per_page' => 1000, 'post_type' => 'acf'));
         if (count($acfs)) {
             foreach ($acfs as $p) {
                 $fields = get_post_custom($p->ID);
                 foreach ($fields as $k => $f) {
                     if (substr($k, 0, 6) == 'field_') {
                         $field = unserialize($f[0]);
                         if (isset($field['title'])) {
                             $this->_variables[$field['name']] = $field['title'];
                         }
                     }
                 }
             }
         }
     }
 }
Example #5
0
 function NextendGeneratorZoo_Items($data)
 {
     global $nextendzooapp;
     parent::__construct($data);
     preg_match('/.*?__(.*?)___(.*)/', $data->get('source'), $out);
     $this->appid = intval($out[1]);
     $this->typealias = $out[2];
     require_once JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_zoo' . DIRECTORY_SEPARATOR . 'config.php';
     $this->zoo = App::getInstance('zoo');
     $this->extraFields = array();
     $this->_variables = array('name' => NextendText::_('Name_of_the_item'), 'url' => NextendText::_('Url_of_the_item'), 'hits' => NextendText::_('Hits_of_the_item'));
     $this->_fieldVariables = array();
     $nextendzooapp = $this->zoo->table->application->get($this->appid);
     $this->_fieldVariables[$nextendzooapp->alias] = array();
     foreach ($nextendzooapp->getTypes() as $type) {
         if ($type->identifier != $this->typealias) {
             continue;
         }
         $this->_fieldVariables[$nextendzooapp->alias][$this->typealias] = array();
         foreach ($type->getElements() as $el) {
             $this->_fieldVariables[$nextendzooapp->alias][$this->typealias][$el->config->get('type') . '_' . $el->identifier] = $el->config->get('name') . ' field ';
         }
     }
 }
Example #6
0
 function NextendGeneratorInstagram_Myfeed($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => NextendText::_('Caption_of_the_image'), 'image' => NextendText::_('Url_of_the_photo'), 'thumbnail' => NextendText::_('Thumbnail_image_url'), 'url' => NextendText::_('Website_of_the_photo_s_owner'), 'author_name' => NextendText::_('Full_name_of_the_photo_s_owner'), 'author_url' => NextendText::_('Website_of_the_photo_s_owner'), 'low_res_image' => NextendText::_('Low_resolution_image_url'), 'owner_username' => NextendText::_('Username_of_the_photo_s_owner'), 'owner_website' => NextendText::_('Website_of_the_photo_s_owner'), 'owner_profile_picture' => NextendText::_('Profile_picture_of_the_photo_s_owner'), 'owner_bio' => NextendText::_('Bio_of_the_photo_s_owner'), 'comment_count' => NextendText::_('Comment_count_on_the_image'));
 }
Example #7
0
 function NextendGeneratorphocagallery_phocagalleryimages($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => NextendText::_('Title_of_the_image'), 'image' => NextendText::_('Image'), 'thumbnail' => NextendText::_('Thumbnail'), 'description' => NextendText::_('Description'), 'url' => NextendText::_('Url_of_the_image'), 'id' => NextendText::_('ID_of_the_image'), 'alias' => NextendText::_('Alias_of_the_image'), 'catid' => NextendText::_('Id_of_the_image_s_category'), 'cat_title' => NextendText::_('Title_of_the_image_s_category'), 'categoryurl' => NextendText::_('Url_to_the_image_s_category'), 'hits' => NextendText::_('Hits_of_the_image'));
 }
Example #8
0
 function NextendGeneratorMijoshop_Products($data)
 {
     parent::__construct($data);
     $this->extraFields = array();
     $this->_variables = array('title' => NextendText::_('Name_of_the_product'), 'image' => NextendText::_('Image_for_the_product'), 'thumbnail' => NextendText::_('Image_for_the_product'), 'short_description' => NextendText::_('Description_of_the_product'), 'url' => NextendText::_('Url_of_the_product'), 'addtocart' => NextendText::_('Url_of_the_product'), 'sku' => NextendText::_('SKU_of_the_product'), 'model' => NextendText::_('Model_of_the_product'), 'quantity' => NextendText::_('Quantity_of_the_product'), 'manufacturer' => NextendText::_('Name_of_the_product_s_manufacturer'), 'price' => NextendText::_('Price_for_the_product'), 'price_ex_tax' => NextendText::_('Price_excluded_tax'), 'special_price' => NextendText::_('Special_price'));
 }
Example #9
0
 function NextendGeneratorimagefromfolder_quickimage($data)
 {
     parent::__construct($data);
     $this->_variables = array('image' => NextendText::_('Url_to_the_image'), 'title' => NextendText::_('Title'), 'description' => NextendText::_('Description'), 'url' => NextendText::_('Link'));
 }
 function NextendGeneratorNextgenGallery_Gallery($data)
 {
     parent::__construct($data);
     $this->_variables = array('image' => 'Url to the image', 'thumbnail' => 'Url to the thumbnail', 'alt_text' => 'Alternative text to the image');
 }
 function NextendGeneratorYoutube_ByPlaylist($data)
 {
     parent::__construct($data);
     $this->_variables = array('video_id' => NextendText::_('Use_this_with_Youtube_item_YouTube_video_code'), 'video_url' => NextendText::_('Url_to_the_video'), 'title' => NextendText::_('Video_title'), 'description' => NextendText::_('Video_description'), 'channel_title' => NextendText::_('Channel_title'), 'channel_url' => NextendText::_('Url_to_the_channel'), 'thumbnail_default' => NextendText::_('Default_thumbnail_image'), 'thumbnail_medium' => NextendText::_('Medium_thumbnail_image'), 'thumbnail_high' => NextendText::_('High_thumbnail_image'));
 }
Example #12
0
 function NextendGeneratorFacebook_Albumbyuser($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => NextendText::_('Creator_name'), 'image' => NextendText::_('Image_original_size'), 'thumbnail' => NextendText::_('Image_480_longest_side'), 'description' => NextendText::_('Image_description'), 'url' => NextendText::_('Url_to_the_image_post'), 'author_name' => NextendText::_('Full_name_of_the_photo_s_owner'), 'author_url' => NextendText::_('Author url'), 'likes' => NextendText::_('Likes_on_the_image'), 'comments' => NextendText::_('Comments_on_the_image'), 'icon' => NextendText::_('Icon_of_the_image'), 'picture' => NextendText::_('Picture_of_the_image'), 'source' => NextendText::_('Source_of_the_image'), 'image1' => NextendText::_('Image_original_size'), 'image2' => NextendText::_('Image_960_longest_side'), 'image3' => NextendText::_('Image_720_longest_side'), 'image4' => NextendText::_('Image_600_longest_side'), 'image5' => NextendText::_('Image_480_longest_side'), 'image6' => NextendText::_('Image_320_longest_side'), 'image7' => NextendText::_('Image_215_longest_side'), 'image8' => NextendText::_('Image_130_longest_side'), 'image9' => NextendText::_('Image_75_width'));
 }
Example #13
0
 function NextendGeneratorJoomlaContent_JoomlaContent($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => NextendText::_('Title_of_the_article'), 'image' => '', 'thumbnail' => '', 'description' => NextendText::_('Intro_of_the_article'), 'url' => NextendText::_('Url_of_the_article'), 'fulltext' => NextendText::_('Text_of_the_article'), 'cat_title' => NextendText::_('Title_of_the_article_s_category'), 'categorylisturl' => NextendText::_('Url_to_the_article_s_category_with_list_layout'), 'categoryblogurl' => NextendText::_('Url_to_the_article_s_category_with_blog_layout'), 'created_by' => NextendText::_('Id_of_the_article_s_creator'), 'author_name' => NextendText::_('Name_of_the_article_s_creator'), 'fulltext_image' => '');
 }
 function NextendGeneratorFacebook_Postsbypage($data)
 {
     parent::__construct($data);
     $this->_variables = array('link' => NextendText::_('Url_of_post'), 'description' => NextendText::_('Description_of_the_post'), 'picture' => NextendText::_('Picture_of_the_post'), 'story' => NextendText::_('Story_of_the_post_only_for_status_type'));
 }
Example #15
0
 function NextendGeneratorredshop_products($data)
 {
     parent::__construct($data);
     $this->extraFields = array();
     $this->_variables = array('product_id' => NextendText::_('ID_of_the_product'), 'title' => NextendText::_('Name_of_the_product'), 'price' => NextendText::_('Price_of_the_product'), 'url' => NextendText::_('Url_of_the_product'), 'short_description' => NextendText::_('Short_description_of_the_product'), 'description' => NextendText::_('Description_of_the_product'), 'category_id' => NextendText::_('Id_of_the_product_s_category'), 'category_name' => NextendText::_('Name_of_the_product_s_category'), 'category_short_description' => NextendText::_('Short_description_of_the_product_s_category'), 'category_description' => NextendText::_('Description_of_the_product_s_category'), 'category_url' => NextendText::_('Url_to_the_product_s_category'), 'man_name' => NextendText::_('Name_of_the_product_s_manufacturer'), 'image' => NextendText::_('Image_for_the_product'), 'thumbnail' => NextendText::_('Image_for_the_product'));
 }
Example #16
0
 function NextendGeneratorJoomlaContent_JoomlaCategory($data)
 {
     parent::__construct($data);
     $this->_variables = array('id' => NextendText::_('ID_of_the_category'), 'title' => NextendText::_('Title_of_the_category'), 'url' => NextendText::_('Url_of_the_category_with_list_layout'), 'url_blog' => NextendText::_('Url_of_the_category_with_blog_layout'), 'alias' => NextendText::_('Alias_of_the_category'), 'description' => NextendText::_('Description_of_the_category'), 'image' => NextendText::_('Image_of_the_category'), 'parent_id' => NextendText::_('ID_of_the_parent_category'), 'parent_title' => NextendText::_('Title_of_the_parent_category'), 'parent_url' => NextendText::_('Url_of_the_parent_category_with_list_layout'), 'parent_url_blog' => NextendText::_('Url_of_the_parent_category_with_blog_layout'));
 }
Example #17
0
 function NextendGeneratorIgnitegallery_Ignitegalleryimages($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => NextendText::_('Alt_text_of_the_image'), 'image' => NextendText::_('Image'), 'thumbnail' => NextendText::_('Thumbnail'), 'description' => NextendText::_('Description_of_the_image'), 'url' => NextendText::_('Url_of_the_image'), 'filename' => NextendText::_('Filename_of_the_image'), 'link' => NextendText::_('Link_of_the_image'), 'gallery_id' => NextendText::_('Id_of_the_image_s_category'), 'cat_title' => NextendText::_('Title_of_the_image_s_category'), 'cat_alias' => NextendText::_('Alias_of_the_image_s_category'), 'categoryurl' => NextendText::_('Url_to_the_image_s_category'), 'hits' => NextendText::_('Hits_of_the_image'));
 }
 function NextendGeneratorTwitter_Timeline($data)
 {
     parent::__construct($data);
     $this->_variables = array('author_name' => NextendText::_('Screen_name_of_the_user'), 'author_url' => NextendText::_('Url_of_the_user'), 'author_image' => NextendText::_('Image_of_the_user'), 'message' => NextendText::_('Tweet'), 'url' => NextendText::_('Url to the tweet'), 'source' => NextendText::_('Source'), 'user_name' => NextendText::_('Name_of_the_user'), 'user_description' => NextendText::_('Description_of_the_user'), 'user_location' => NextendText::_('Location_of_the_user'));
 }
Example #19
0
 function NextendGeneratorEasyBlog_Posts($data)
 {
     parent::__construct($data);
     $this->_variables = array("title" => NextendText::_('The_title_of_the_post'), "image" => NextendText::_('URL_of_the_image_that_is_associated_with_your_blog_post_Suggested_to_insert_as_an_image_item'), "thumbnail" => NextendText::_('URL_of_the_thumbnail_of_image_that_is_associated_with_your_blog_post_Suggested_to_insert_as_an_image_item'), "description" => NextendText::_('The_main_part_of_the_post_If_there_is_no_Read_more_section_this_contains_the_entire_post_otherwise_it_contains_the_intro_part_of_it'), "url" => NextendText::_('URL_of_the_current_EasyBlog_post'), "rest_of_the_post" => NextendText::_('The_rest_of_the_post_If_the_post_is_divided_by_a_Read_more_tag_this_contains_the_section_placed_after_it_empty_otherwise'), "author_name" => NextendText::_('Represents_the_username_of_the_post_creator'), "blogger_avatar_picture" => NextendText::_('Contains_the_URL_of_the_blogger_s_avatar_picture_Suggested_to_insert_as_an_image_item'), "cat_title" => NextendText::_('The_title_of_the_EasyBlog_category_that_contains_the_post'), "blog_image_icon" => NextendText::_('URL_of_the_icon_of_the_image_that_is_associated_with_your_blog_post_Suggested_to_insert_as_an_image_item'), "categoryurl" => NextendText::_('URL_of_the_category_By_navigating_there_EasyBlog_is_going_to_list_all_the_posts_this_category_contains'));
 }
 function NextendGeneratorImagefromfolder_fromfolder($data)
 {
     parent::__construct($data);
     $this->_variables = array('image' => NextendText::_('Url_to_the_image'), 'title' => NextendText::_('Name_of_the_image_file'));
 }
Example #21
0
 function NextendGeneratorjoomshopping_products($data)
 {
     parent::__construct($data);
     $this->extraFields = array();
     $this->_variables = array('name' => NextendText::_('Name_of_the_product'), 'image' => NextendText::_('Image_for_the_product'), 'thumbnail' => NextendText::_('Thumbnail_for_the_product'), 'short_description' => NextendText::_('Short_description_of_the_product'), 'url' => NextendText::_('Url_of_the_product'), 'addtocart' => NextendText::_('Add_to_cart_url_of_the_product'), 'category_name' => NextendText::_('Name_of_the_product_s_category'), 'category_url' => NextendText::_('Url_to_the_product_s_category'), 'price' => NextendText::_('Price_of_the_product'), 'id' => NextendText::_('ID_of_the_product'), 'ean' => NextendText::_('Product_code'), 'product_old_price' => NextendText::_('Old_price_of_the_product'), 'category_id' => NextendText::_('Id_of_the_product_s_category'), 'category_short_description' => NextendText::_('Short_description_of_the_product_s_category'), 'category_description' => NextendText::_('Description_of_the_product_s_category'), 'man_name' => NextendText::_('Name_of_the_product_s_manufacturer'), 'image_full' => NextendText::_('Full_image_for_the_product'), 'hits' => NextendText::_('Hits_for_the_product'));
 }
 function NextendGeneratorFlickr_Peoplephotostream($data)
 {
     parent::__construct($data);
     $this->_variables = array('title' => NextendText::_('Title_of_the_photo'), 'image' => NextendText::_('Image'), 'thumbnail' => NextendText::_('Thumbnail'), 'description' => NextendText::_('Description_of_the_photo'), 'url' => NextendText::_('Photos_url_of_the_photo_s_owner'), 'url_label' => NextendText::_('Label'), 'author_name' => NextendText::_('Real_name_of_the_photo_s_owner'), 'author_url' => NextendText::_('Profile_url_of_the_photo_s_owner'));
 }
Example #23
0
 function NextendGeneratorVirtuemart2_Products($data)
 {
     parent::__construct($data);
     $this->extraFields = array();
     $this->_variables = array('id' => NextendText::_('ID_of_the_product'), 'sku' => NextendText::_('SKU_of_the_product'), 'title' => NextendText::_('Name_of_the_product'), 'url' => NextendText::_('Url_of_the_product'), 'short_description' => NextendText::_('Short_description_of_the_product'), 'description' => NextendText::_('Description_of_the_product'), 'slug' => NextendText::_('Slug_of_the_product'), 'category_id' => NextendText::_('Id_of_the_product_s_category'), 'category_name' => NextendText::_('Name_of_the_product_s_category'), 'category_description' => NextendText::_('Description_of_the_product_s_category'), 'category_slug' => NextendText::_('Slug_of_the_product_s_category'), 'category_url' => NextendText::_('Url_to_the_product_s_category'), 'manufacturer_id' => NextendText::_('Id_of_the_product_s_manufacturer'), 'manufacturer_name' => NextendText::_('Name_of_the_product_s_manufacturer'), 'manufacturer_email' => NextendText::_('Email_of_the_product_s_manufacturer'), 'manufacturer_description' => NextendText::_('Description_of_the_product_s_manufacturer'), 'manufacturer_url' => NextendText::_('Url_to_the_product_s_manufacturer'), 'manufacturer_slug' => NextendText::_('Slug_of_the_product_s_manufacturer'), 'image' => NextendText::_('Image_for_the_product'), 'thumbnail' => NextendText::_('Thumbnail_for_the_product'), 'hits' => NextendText::_('Hits_of_the_product'), 'price' => NextendText::_('Cost_price'), 'cost_price' => NextendText::_('Cost_price'), 'base_price' => NextendText::_('Base_price'), 'base_price_variant' => NextendText::_('Base_price_variant'), 'base_price_with_tax' => NextendText::_('Base_price_with_tax'), 'discounted_price_without_tax' => NextendText::_('Discounted_price_without_tax'), 'price_before_tax' => NextendText::_('Price_before_tax'), 'sales_price' => NextendText::_('Sales_price'), 'tax_amount' => NextendText::_('Tax_amount'), 'sales_price_with_discount' => NextendText::_('Sales_price_with_discount'), 'sales_price_temp' => NextendText::_('Sales_price_temp'), 'unit_price' => NextendText::_('Unit_price'), 'price_without_tax' => NextendText::_('Price_without_tax'), 'discount_amount' => NextendText::_('Discount_amount'), 'variant_modification' => NextendText::_('Variant_modification'));
 }