{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \r\n \r\n 3,\n\t\t 'meta_key' => 'featuredPost-checkbox',\n\t\t 'meta_value' => 'yes'\n\t\t);\n\t\t$featured_posts = new WP_Query($featured_args);\n\t\twhile($featured_posts->have_posts()):\n\t\t\t$featured_posts->the_post();\n\t\t\tarray_push($exlude_post_ids, get_the_ID());\n\t\tendwhile;\n\t\twp_reset_postdata(); \n\n\t\t// Exclude 3 'Latest' Posts\n\t\t$latest_args = array(\n\t\t 'posts_per_page' => 3,\n\t\t 'post__not_in' => $exlude_post_ids\n\t\t);\n\t\t$latest_posts = new WP_Query($latest_args);\n\t\twhile($latest_posts->have_posts()):\n\t\t\t$latest_posts->the_post();\n\t\t\tarray_push($exlude_post_ids, get_the_ID());\n\t\tendwhile;\n\t\twp_reset_postdata(); \n\n\t\t// Get All posts, except selected posts from above\n\t\t$args = array(\n\t\t 'post__not_in' => $exlude_post_ids\n\t\t);\n\t\t$query = new WP_Query($args);\n\n\n\t} else if($section == 'single'){\n\t\t$args = array(\n\t\t\t'cat'\t\t\t\t=> array(get_the_category($query->post->ID)[0]->term_id),\n\t\t\t'posts_per_page'\t=> 1,\n\t\t\t'post__not_in'\t\t=> array($post->ID)\n\t\t);\n\t\t$query = new WP_Query($args);\n\n\n\t} else if($section == 'category'){\n\t\t$args = array(\n\t\t\t'cat'\t\t\t\t=> array(get_category(get_query_var( 'cat' ))->cat_ID),\n\t\t\t'posts_per_page'\t=> 7,\n\t\t\t'offset'\t\t\t=> 10\n\t\t);\n\t\t$query = new WP_Query($args);\n\t}\n\n\t$reference_object = array(\n\t\t'base'\t\t\t\t=> get_template_directory_uri(),\n\t\t'ajaxurl'\t\t\t=> admin_url( 'admin-ajax.php' ),\n\t\t'query_vars' \t\t=> json_encode( $query->query_vars ),\n\t\t'actual_page'\t\t=> get_query_var('paged') > 1 ? get_query_var('paged') : 1,\n\t\t'total_pages'\t\t=> $query->max_num_pages,\n\t\t'section'\t\t\t=> $section,\n\t\t'isMobile'\t\t\t=> wp_is_mobile() ? 'true' : 'false',\n 'category' => get_category($query->query_vars['cat'])->slug\n\n\t);\n\twp_localize_script('main_js', 'base_reference', $reference_object );\n}","function ineedmyjava() {\n\tif (!is_admin()) {\n \n\t\twp_deregister_script('jquery');\n\t\twp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', false, '1.11.0', true);\n\t\twp_enqueue_script('jquery');\n\t\t\n\t\t// other scripts...\n\t\twp_register_script(\n\t\t\t'custom',\n\t\t\tget_bloginfo('template_directory') . '/js/custom.js',\n\t\t\tarray('jquery') );\n\t\twp_enqueue_script('custom');\n\t\t\n\t\t\n\t\t// other scripts...\n\t\twp_register_script(\n\t\t\t'isotope',\n\t\t\tget_bloginfo('template_directory') . '/js/isotope.js',\n\t\t\tarray('jquery') );\n\t\twp_enqueue_script('isotope');\n\t\t\n\t\t\n\t\t// other scripts...\n\t\twp_register_script(\n\t\t\t'images',\n\t\t\tget_bloginfo('template_directory') . '/js/images-loaded.js',\n\t\t\tarray('jquery') );\n\t\twp_enqueue_script('images');\n\t\t\n\t\t\n\t\t// other scripts...\n\t\twp_register_script(\n\t\t\t'bootstrap',\n\t\t\tget_bloginfo('template_directory') . '/js/bootstrap.js',\n\t\t\tarray('jquery') );\n\t\twp_enqueue_script('bootstrap');\n\t\t\n\t\t\n\t\t// other scripts...\n\t\twp_register_script(\n\t\t\t'colorbox',\n\t\t\tget_bloginfo('template_directory') . '/js/colorbox.js',\n\t\t\tarray('jquery') );\n\t\twp_enqueue_script('colorbox');\n\t\t\n\t\t\n\t\t\n\t}\n}","function childtheme_override_postfooter() {}","function neobeat_include_masonry_scripts() {\n\t\twp_enqueue_script( 'isotope' );\n\t\twp_enqueue_script( 'packery' );\n\t}","function get_all_product_posts($query ) {\n if (is_post_type_archive( 'product') && !is_admin() && $query->is_main_query()) {\n $query->set('posts_per_page' , '16');\n $query->set('orderby', 'title');\n $query->set('order' , 'ASC');\n } //elseif for categories\n}","public static function alm_enqueue_filters_admin_scripts(){\n\n \twp_enqueue_style( 'alm-filters-admin', ALM_FILTERS_URL. '/dist/css/admin_styles.css', '');\n \twp_enqueue_script( 'alm-filters-admin', ALM_FILTERS_URL. '/dist/js/admin.js', '', ALM_FILTERS_VERSION, true);\n\n \twp_localize_script(\n \t\t'alm-filters-admin', 'alm_filters_localize', array(\n \t\t\t'root' => esc_url_raw( rest_url() ),\n \t\t\t'nonce' => wp_create_nonce( 'wp_rest' ),\n \t\t\t'base_url' => get_admin_url() .'admin.php?page=ajax-load-more-filters',\n \t\t\t'delete_filter' => __('Are you sure you want to delete', 'ajax-load-more-filters'),\n \t\t\t'ordering_parameters' => __('Ordering Parameters', 'ajax-load-more-filters'),\n \t\t\t'date_parameters' => __('Date Parameters', 'ajax-load-more-filters'),\n \t\t\t'category_parameters' => __('Category Parameters', 'ajax-load-more-filters'),\n\t\t\t\t\t'field_type_beta' => __('Beta', 'ajax-load-more-filters'),\n\t\t\t\t\t'field_type_basic' => __('Basic Form Fields', 'ajax-load-more-filters'),\n\t\t\t\t\t'field_type_adv' => __('Advanced Form Fields', 'ajax-load-more-filters'),\n \t\t\t'tag_parameters' => __('Tag Parameters', 'ajax-load-more-filters'),\n \t\t\t'create_filter' => __('Create Filter', 'ajax-load-more-filters'),\n \t\t\t'update_filter' => __('Save Changes', 'ajax-load-more-filters'),\n \t\t\t'saved_filter' => __('Filter Saved', 'ajax-load-more-filters')\n \t\t)\n \t);\n\n \t}","public function dld_enqueue_scripts($hook)\n {\n if (array_key_exists('page', $_GET) && $_GET['page'] == 'woocommerce-delivery-schedular') {\n wp_enqueue_script('jquery-ui-datepicker');\n wp_enqueue_script('WOO-QB-bootstrap-javascript', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js');\n }\n global $post;\n if ($hook == 'post-new.php' || $hook == 'post.php' || (array_key_exists('page', $_GET) && $_GET['page'] == 'woocommerce-delivery-schedular')) {\n if ($post && 'product' === $post->post_type || (array_key_exists('page', $_GET) && $_GET['page'] == 'woocommerce-delivery-schedular')) {\n wp_enqueue_script($this->plugin_name . '-admin', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/delivery-date-admin.js', array('jquery'), $this->version, false);\n wp_enqueue_script($this->plugin_name . '-custom-admin', plugin_dir_url(__FILE__) . '/custom-delivery-date-admin.js', array('jquery'), $this->version, false);\n wp_enqueue_script($this->plugin_name . '-multiDatepicker', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/jquery-ui.multidatespicker.js', array('jquery'), $this->version, false);\n\n wp_enqueue_script($this->plugin_name . '-moment', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/moment.min.js', array('jquery'), $this->version, false);\n wp_enqueue_script($this->plugin_name . '-daterangepicker', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/daterangepicker.min.js', array('jquery'), $this->version, false);\n }\n }\n }","function Helsingborg_scripts() {\n wp_deregister_script( 'jquery' );\n\n // register scripts\n wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js', array(), '1.0.0', false );\n wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery/dist/jquery.min.js', array(), '1.0.0', false );\n wp_enqueue_script( 'jquery-ui', get_template_directory_uri() . '/js/jquery/dist/jquery-ui.min.js', array(), '1.0.0', false );\n\n /**\n * EVENT LIST PAGE\n **/\n if ( is_page_template( 'templates/event-list-page.php' )) {\n // Register scripts\n wp_enqueue_script( 'zurb5-multiselect', get_template_directory_uri() . '/js/foundation-multiselect/zmultiselect/zurb5-multiselect.js', array(), '1.0.0', false );\n wp_enqueue_script( 'jquery-datetimepicker', get_template_directory_uri() . '/js/jquery.datetimepicker.js', array(), '1.0.0', false );\n wp_enqueue_script( 'knockout', get_template_directory_uri() . '/js/knockout/dist/knockout.js', array(), '3.2.0', false );\n wp_enqueue_script( 'event-list-model', get_template_directory_uri() . '/js/helsingborg/event_list_model.js', array(), '1.0.0', false );\n\n // Register styles\n wp_enqueue_style( 'zurb5-multiselect', get_template_directory_uri() . '/css/multiple-select.css', array(), '1.0.0', 'all' );\n wp_enqueue_style( 'jquery-datetimepicker', get_template_directory_uri() . '/js/jquery.datetimepicker.css', array(), '1.0.0', 'all' );\n \n }\n\n wp_enqueue_script( 'foundation', get_template_directory_uri() . '/js/app.js', array('jquery'), '1.0.0', true );\n wp_enqueue_script( 'tablesorter', get_template_directory_uri() . '/js/plugins/jquery.tablesorter.min.js', array(), '1.0.0', true );\n\n // TODO: Remove! This should be merged into app.js\n wp_enqueue_script( 'dev', get_template_directory_uri() . '/js/dev/hbg.dev.js', array(), '1.0.0', true );\n\t\t\n\t\n // Readspeaker should be added last\n wp_enqueue_script( 'readspeaker', 'http://f1.eu.readspeaker.com/script/5507/ReadSpeaker.js?pids=embhl', array(), '1.0.0', false);\n \n // Enqueue vergic.js previously in footer.php\n\twp_enqueue_script( 'script-vergic', get_template_directory_uri() . '/js/helsingborg/vergic.js', array(), '1.0.0', true );\n // Enqueue styles previously in header.php\n wp_enqueue_style( 'style-normalize', get_template_directory_uri() . '/css/normalize.css' );\n wp_enqueue_style( 'style-app', get_template_directory_uri() . '/css/app.css' ); \n \n }","function shutdown() {\n // Safety for themes not using wp_footer\n SLPlus_Actions::ManageTheScripts();\n\t\t}","public static function _wp_footer()\n\t{\n\t\tforeach (static::$footer_scripts as $params) {\n\t\t\tif (!isset($params['url'])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (isset($params['localize']) && isset($params['localize']['name']) && isset($params['localize']['data'])) {\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t\\n\";\n\t\t}\n\t}","function add_admin_scripts() {\n\t\tglobal $post;\n\t\t$post_type = $post->post_type;\n\t\tif ( 'product' == $post_type ) {\n\t\t\twp_enqueue_script(\n 'heweb17-admin',\n plugins_url( '/js/heweb17-admin.js', __FILE__ ),\n array( 'jquery' ) );\n\t\t}\n\t}","function add_ordin_widget_scripts() {\n if( ! apply_filters( 'add_ordin_widget_scripts', true, $this->id_base ) )\n return;\n ?>\n \n addAction('wp_footer', array('Chayka\\\\LinkedIn\\\\HtmlHelper', 'renderJsInit'));\n \t/* chayka: registerActions */\n }"],"string":"[\n \"function jigoshop_categories_scripts () {\\n\\t\\n\\tif( !isset($_GET['taxonomy']) || $_GET['taxonomy'] !== 'product_cat') return;\\n\\t\\n\\twp_register_script('jigoshop-categories-ordering', jigoshop::plugin_url() . '/assets/js/categories-ordering.js', array('jquery-ui-sortable'));\\n\\twp_print_scripts('jigoshop-categories-ordering');\\n\\t\\n}\",\n \"function _asc_footer_scripts() {\\n\\tprint_late_styles();\\n\\tprint_footer_scripts();\\n}\",\n \"function script_enqueue() {\\n\\t$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );\\n\\tisset($term->term_id) ? $is_detailed_category = get_woocommerce_term_meta( $term->term_id, '_woocommerce_detailed_category', true ) : $is_detailed_category = 0;\\n\\tif ($is_detailed_category) {\\n\\t\\t// only load ad-gallery if is post : prevent from loading on other pages\\n\\t\\twp_register_script('wc_dc_sortable', plugins_url('/assets/js/sortable.min.js', __FILE__));\\n\\t\\twp_enqueue_script('wc_dc_sortable');\\n\\t\\twp_register_script('wc_dc_loading_cart', plugins_url('/assets/js/loading-cart.min.js', __FILE__));\\n\\t\\twp_enqueue_script('wc_dc_loading_cart');\\n\\t\\twp_register_style( 'wc_dc_sortable_style', plugins_url('/assets/css/style.css', __FILE__) );\\n\\t\\twp_enqueue_style( 'wc_dc_sortable_style' );\\n\\t}\\n}\",\n \"function bh_products_category_loop(){\\n//post sorting\\n\\n\\n?>\\n\\n\\t\\n\\n
\\n
\\ncategory_parent) {\\n$parent_cat = get_category($this_category->category_parent);\\n//check for third-level cat\\n\\tif($parent_cat->category_parent){\\n\\t\\t$parent_parent = get_category($parent_cat->category_parent);\\n\\t\\techo '

cat_ID) .'\\\">'. $parent_parent->name .'

';\\n\\t\\techo '
    ';\\n\\t\\t$categorylist = wp_list_categories('show_count=0&title_li=&use_desc_for_title=0&child_of='.$parent_cat->category_parent.\\\"&orderby=slug&hide_empty=0&exclude=1649\\\"); \\t\\n\\t\\techo '
';\\n\\t\\t\\n\\tif ($parent_parent->name == \\\"Apps\\\"){\\n\\techo '

 

';\\n\\techo '

Platforms

';\\n\\techo '
    ';\\n\\t$platforms = \\twp_list_categories('show_count=0&title_li=&use_desc_for_title=0&hide_empty=0&child_of=1649');\\n\\techo '
';\\n\\t\\n}\\n\\t\\t\\n\\t}else{\\n\\t\\techo '

cat_ID) .'\\\">'. $parent_cat->name .'

';\\n\\t\\techo '
    ';\\n\\t\\t$categorylist = wp_list_categories('show_count=0&title_li=&use_desc_for_title=0&child_of='.$this_category->category_parent.\\\"&orderby=slug&hide_empty=0&exclude=1649\\\"); \\n\\t\\techo '
';\\n\\t\\t\\n\\t\\tif ($parent_cat->name == \\\"Apps\\\"){\\n\\techo '

 

';\\n\\techo '

Platforms

';\\n\\techo '
    ';\\n\\t$platforms = \\twp_list_categories('show_count=0&title_li=&use_desc_for_title=0&hide_empty=0&child_of=1649');\\n\\techo '
';\\n\\t\\n}\\n\\t}\\n}else{\\n\\n//if top-level category\\necho '

'. $this_category->name .'

';\\necho '
    ';\\n$categorylist = wp_list_categories('show_count=0&title_li=&use_desc_for_title=0&child_of='.$this_category->cat_ID.\\\"&orderby=slug&hide_empty=0&exclude=1649\\\");\\necho '
';\\n\\nif ($this_category->name == \\\"Apps\\\"){\\n\\techo '

 

';\\n\\techo '

Platforms

';\\n\\techo '
    ';\\n\\t$platforms = \\twp_list_categories('show_count=0&title_li=&use_desc_for_title=0&hide_empty=0&child_of=1649');\\n\\techo '
';\\n\\t\\n}\\n}\\necho '

 

';\\n\\n\\n\\n ?>\\n\\t\\n\\n
\\n\\n
\\n \\n\\t\\tparent;\\n\\t\\t\\n\\t\\t$parent_info = get_category($category_info->parent);\\n\\t\\t//echo 'Is second level? = '. $parent_info->parent;\\n\\t\\t\\n\\t\\t$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; //pagination\\t\\t\\n\\t\\t//$ext_query = '&meta_key=wpcf-pubdate&orderby=meta_value_num&posts_per_page=25&paged='.$paged.'';\\n\\t\\t$sort_meta_key = 0; //init\\n\\t\\t//get sort information from query vars or defaults\\n\\t\\t$sort_orderby = (get_query_var('orderby')) ? get_query_var('orderby') : 'pubdate';\\n\\t\\t$sort_order = (get_query_var('order')) ? get_query_var('order') : 'DESC';\\n\\t\\t$sort_posts_per_page = (get_query_var('ppp')) ? get_query_var('ppp') : '25';\\n\\t\\t\\n\\t\\tif($sort_orderby =='pubdate'){\\n\\t\\t\\t$sort_orderby = 'meta_value_num';\\n\\t\\t\\t$sort_meta_key = 'wpcf-pubdate';\\n\\t\\t}\\n\\t\\n\\t\\t$ext_query = array(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'post_type'=>'products',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'category_name'=>$category_info->slug,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'meta_key'=>'wpcf-pubdate',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'orderby'=>'meta_value_num',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'order'=>'DESC',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'posts_per_page'=>'25',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'tag'=>'listed',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'paged'=>$paged\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\tif($sort_meta_key){\\n\\t\\t\\t$ext_query['meta_key'] = $sort_meta_key;\\t\\n\\t\\t}\\n\\t\\t\\n\\t\\t$title_qual = \\\"\\\";\\n\\t\\t//query_posts($query_string . $ext_query );\\n\\t\\tglobal $wp_query;\\n\\t\\t//show only main product of groups, if product-group-parent field is populated, hide the post\\n\\t\\t//edit: needs refinement - only for Bibles, and needs to compare non-existent OR blank\\n\\t\\t// modified 3/18/14 to use custom SQL searching indexed taxonomy instead of custom field\\n\\t\\t\\n\\t\\t\\n\\t\\t$newQuery = $ext_query;\\n\\t\\t//$newQuery = array_replace($wp_query->query_vars, $ext_query);// + $p_groups; //changed for WP 4.0 something in WP_Query changed, found 0 posts\\n\\t\\t//var_dump($newQuery);\\n\\t\\n\\t\\t\\t$books_in_cat = new WP_Query($newQuery);\\n\\t\\t\\n\\t\\t//echo '
#posts: '.$books_in_cat->found_posts; //troubleshooting\\n\\t\\t\\t\\nif ($books_in_cat->have_posts()) : ?>\\n
\\n
\\n

\\n
    \\n\\t\\thave_posts()) : $books_in_cat->the_post(); ?>\\n \\n
  • \\\" >\\n\\t\\t'names'));\\n\\t\\t\\t\\t if (!empty($pg_names)){\\n\\t\\t\\t\\t\\t$product_title = reset($pg_names);//change to product group title\\n\\t\\t\\t\\t }\\n\\t\\t\\t\\t $pg_names = array(); //re-initalize array\\n\\t\\t\\t }\\n\\t\\t\\t \\n\\t\\t\\t $short_title = wp_trim_words($product_title,8);\\n?>\\n \\\">\\n \\t\\t\\t\\tslug;\\n\\t\\t\\t\\t\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t$current_cat = $category_info->slug;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t//ge\\tt subtitle\\n\\t\\t\\t\\t\\t\\t\\t$p_subtitle = types_render_field('subtitle', array(\\\"raw\\\"=>\\\"true\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t//if Bibles or Reference, show subtitle\\n\\t\\t\\t\\t\\t\\t\\t//echo $current_cat;\\n\\t\\t\\t\\t\\t\\t\\tif($current_cat =='bibles' || $current_cat == 'reference' || $category_info->slug == 'commentaries' ):\\n\\t\\t\\t\\t\\t\\t\\t?>\\n \\n \\\"names\\\"));\\n\\t\\t\\t\\t\\t\\t\\tif($a_terms){\\n\\t\\t\\t\\t\\t\\t\\t\\t$a_list = implode(', ', $a_terms);\\t\\n\\t\\t\\t\\t\\t\\t\\t}\\t\\n\\t\\t\\t\\t\\t\\t\\tif($a_list){\\n\\t\\t\\t\\t\\t\\t\\t?>\\n \\n \\n\\t\\t\\t\\t\\t\\t \\n \\n
  • \\n \\n\\n \\n $books_in_cat \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t); \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t }\\n\\t\\t\\n\\t\\t?> \\n \\n\\t\\t
\\n
\\n\\t \\n\\n \\n \\n

name.' > '. single_cat_title('',false) .'.', 'minimum'); ?>

\\n \\n \\n\\n \\n \\n
\\n
\\n
\\n\\n \\n render('footer.php');\\n }\",\n \"function woocommerce_rrp_add_bulk_admin_footer() {\\n\\t\\t\\tglobal $post_type;\\n\\t\\t\\t\\n\\t\\t\\tif($post_type == 'product') {\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\ttodo_late_scripts = 'footer' . $this->late_script_order;\\n\\t}\",\n \"function addWPActions ()\\n\\t{\\n\\t\\t//Add Front End Jquery and CSS\\n\\t\\t//add_action( 'wp_footer', array( $this, 'frontendEnqueues' ) );\\n\\t\\t\\n\\t}\",\n \"function ajax_footer_js(){\\n ?>\\n \\n wp_create_nonce( 'afp_nonce' ), // Create nonce which we later will use to verify AJAX request\\n 'afp_ajax_url' => admin_url( 'admin-ajax.php' ),\\n )\\n );\\n}\",\n \"function wp_print_footer_scripts()\\n {\\n }\",\n \"public function bulk_action_scripts() {\\n\\t\\t \\tglobal $post_type;\\n\\t\\t\\tif( $post_type == 'shop_order' ) {\\n\\t\\t\\t\\twp_register_script(\\n\\t\\t\\t\\t\\t'dropbox-export',\\n\\t\\t\\t\\t\\tplugins_url( 'js/dropbox-export.js' , dirname(__FILE__) ),\\n\\t\\t\\t\\t\\tarray( 'jquery', 'thickbox' )\\n\\t\\t\\t\\t);\\n\\t\\t\\t\\twp_enqueue_script( 'dropbox-export' );\\n\\t\\t\\t\\twp_enqueue_style( 'thickbox' );\\n\\t\\t\\t}\\n\\n\\t\\t}\",\n \"public function print_scripts() {\\n\\t\\tglobal $pagenow, $hook_suffix;\\n\\t\\t$pages = array( 'edit.php' );\\n\\n\\t\\tif ( in_array( $pagenow, $pages ) ) {\\n\\t\\t\\twp_register_script( 'reorder_nested', AERIA_RESOURCE_URL . 'js/jquery.mjs.nestedSortable.js', array( 'jquery-ui-sortable' ), '1.3.5', true );\\n\\t\\t\\twp_enqueue_script( 'reorder_posts', AERIA_RESOURCE_URL . 'js/reorder-sort.js', array( 'reorder_nested' ) );\\n\\t\\t\\twp_localize_script( 'reorder_posts', 'reorder_posts', array(\\n\\t\\t\\t\\t'expand' => esc_js( __( 'Expand', 'reorder' ) ),\\n\\t\\t\\t\\t'collapse' => esc_js( __( 'Collapse', 'reorder' ) ),\\n\\t\\t\\t\\t'sortnonce' => wp_create_nonce( 'sortnonce' ),\\n\\t\\t\\t\\t'hierarchical' => is_post_type_hierarchical( $this->post_type ) ? 'true' : 'false',\\n\\t\\t\\t) );\\n\\t\\t}\\n\\t}\",\n \"public function hookFooter()\\n {\\n $ga_scripts = '';\\n $this->js_state = 0;\\n\\n if (isset($this->context->cookie->ga_cart)) {\\n $this->filterable = 0;\\n\\n $gacarts = unserialize($this->context->cookie->ga_cart);\\n foreach ($gacarts as $gacart) {\\n if ($gacart['quantity'] > 0) {\\n } elseif ($gacart['quantity'] < 0) {\\n $gacart['quantity'] = abs($gacart['quantity']);\\n }\\n }\\n unset($this->context->cookie->ga_cart);\\n }\\n\\n $controller_name = Tools::getValue('controller');\\n $products = $this->wrapProducts($this->context->smarty->getTemplateVars('products'), [], true);\\n\\n if ($controller_name == 'order' || $controller_name == 'orderopc') {\\n $this->eligible = 1;\\n $step = Tools::getValue('step');\\n if (empty($step)) {\\n $step = 0;\\n }\\n }\\n\\n if (version_compare(_PS_VERSION_, '1.5', '<')) {\\n if ($controller_name == 'orderconfirmation') {\\n $this->eligible = 1;\\n }\\n } else {\\n $confirmation_hook_id = (int) Hook::getIdByName('orderConfirmation');\\n if (isset(Hook::$executed_hooks[$confirmation_hook_id])) {\\n $this->eligible = 1;\\n }\\n }\\n\\n if (isset($products) && count($products) && $controller_name != 'index') {\\n if ($this->eligible == 0) {\\n $ga_scripts .= $this->addProductImpression($products);\\n }\\n $ga_scripts .= $this->addProductClick($products);\\n }\\n\\n return $this->_runJs($ga_scripts);\\n }\",\n \"function my_footer_shh() {\\n remove_filter( 'update_footer', 'core_update_footer' );\\n}\",\n \"function tmpl_archives_sorting_opt(){\\r\\n\\tglobal $wp_query,$sort_post_type;\\r\\n\\t\\r\\n\\tif(!is_search()){\\r\\n\\t\\t$post_type = (get_post_type()!='')? get_post_type() : get_query_var('post_type');\\r\\n\\t\\t$sort_post_type = apply_filters('tmpl_tev_sorting_for_'.$post_type,$post_type);\\r\\n\\t\\t\\r\\n\\t}else{\\r\\n\\t\\t/* on search page what happens if user search with multiple post types */\\r\\n\\t\\tif(isset($_REQUEST['post_type'])){\\r\\n\\t\\t\\tif(is_array($_REQUEST['post_type']) && count($_REQUEST['post_type'])==1){\\r\\n\\t\\t\\t\\t$sort_post_type= $_REQUEST['post_type'][0];\\r\\n\\t\\t\\t}else{\\r\\n\\t\\t\\t\\t$sort_post_type= $_REQUEST['post_type'];\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t\\tif(!$sort_post_type){\\r\\n\\t\\t\\t\\t$sort_post_type='directory';\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\r\\n\\t}\\r\\n\\t\\r\\n\\t$templatic_settings=get_option('templatic_settings');\\r\\n\\t$googlemap_setting=get_option('city_googlemap_setting');\\r\\n\\t\\r\\n\\t/*custom post type link */\\r\\n\\t$current_posttype = get_post_type();\\r\\n\\t\\r\\n\\tif(empty($current_posttype)){\\r\\n\\t\\t$current_posttype = $wp_query->query['post_type'];\\r\\n\\t}\\r\\n\\t\\t\\r\\n\\tif(!is_tax() && is_archive() && !is_search())\\r\\n\\t{\\r\\n\\t\\t$current_term = $wp_query->get_queried_object();\\t\\t\\r\\n\\t\\t$permalink = get_post_type_archive_link($current_posttype);\\r\\n\\t\\t$permalink=str_replace('&'.$sort_post_type.'_sortby=alphabetical&sortby='.$_REQUEST['sortby'],'',$permalink);\\r\\n\\t}elseif(is_search()){\\r\\n\\t\\t$search_query_str=str_replace('&'.$sort_post_type.'_sortby=alphabetical&sortby='.@$_REQUEST['sortby'],'',$_SERVER['QUERY_STRING']);\\r\\n\\t\\t$permalink= site_url().\\\"?\\\".$search_query_str;\\r\\n\\t}else{\\r\\n\\t\\t$current_term = $wp_query->get_queried_object();\\r\\n\\t\\t$permalink=($current_term->slug) ? get_term_link($current_term->slug, $current_term->taxonomy):'';\\r\\n\\t\\tif(isset($_REQUEST['sortby']) && $_REQUEST['sortby']!='')\\r\\n\\t\\t\\t$permalink=str_replace('&'.$sort_post_type.'_sortby=alphabetical&sortby='.$_REQUEST['sortby'],'',$permalink);\\r\\n\\t\\t\\r\\n\\t}\\r\\n\\t\\r\\n\\t$post_type= get_post_type_object( get_post_type());\\r\\n\\t\\r\\n\\t/* get all the request url and con-cat with permalink to get the exact results */\\r\\n $req_uri = '';\\r\\n\\tforeach($_GET as $key=>$val){\\r\\n\\t\\tif($key !='' && !strstr($key,'_sortby')){\\r\\n\\t\\t\\t$req_uri .= $key.\\\"=\\\".$val.\\\"&\\\";\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\t\\r\\n\\t/* permalink */\\r\\n\\tif(false===strpos($permalink,'?')){\\r\\n\\t $url_glue = '?'.$req_uri;\\r\\n\\t}else{\\r\\n\\t\\t$url_glue = '&amp;'.$req_uri;\\t\\r\\n\\t}\\r\\n\\t\\r\\n\\t/* no grid view list view if no results found */\\r\\n\\t\\r\\n\\tif($wp_query->found_posts!=0){\\r\\n\\t?>\\r\\n\\t
\\r\\n\\t
\\r\\n\\t\\r\\n\\t\\t\\t\\r\\n\\t\\r\\n\\t\\t
\\r\\n\\t\\t\\t
\\\" method=\\\"get\\\" id=\\\"\\\" name=\\\"\\\">\\r\\n \\r\\n\\t\\t\\t
\\r\\n \\r\\n\\t\\t
\\r\\n \\r\\n \\t
\\r\\n
\\r\\n\\t\\r\\n
\\r\\n\\t\\t \\r\\n\\t
    \\r\\n\\t\\t\\t
  • \\\">\\\">
  • \\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\t
  • \\\">\\\">
  • \\r\\n\\t\\t\\t\\t\\r\\n\\t
\\r\\n
\\r\\n \\n\\n\\t\\t\\t
\\n\\t\\t
\\n\\n\\t\\n\\t\\t\\n\\t\\t
\\n\\t\\t\\t\\n\\t\\t\\t

\\n\\t\\t\\t\\theading; ?>
\\n\\t\\t\\t\\tTrascina per determinare l'ordine manuale di visualizzazione degli elementi.\\n\\t\\t\\t\\t\\\" id=\\\"loading-animation\\\" />\\n\\t\\t\\t

\\n\\t\\t\\t
\\n\\t\\t\\tinitial; ?>\\n\\t\\t\\t
\\n\\t\\t\\t\\n\\t\\t\\t
\\n\\t

ATTENZIONE

Il sistema di ordinamento è disabilitato nella lista filtrata. Rimuovere i criteri di ricerca per riabilitare il sistema.

\\n\\t
\\n\\t\\t\\t\\n\\t\\t
\\n\\t\\tfinal;\\n\\t\\t?>\\n\\t\\t
\\n\\t\\tget_url_core('frontend/css/style.css'));\\n\\n\\t\\t\\tforeach ( $this->get_scripts() as $script ) {\\n\\t\\t\\t\\tif(!$script->get_is_backend() && !$script->get_load_in_header()) {\\n\\t\\t\\t\\t\\t$this->add_script($script);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// inline styles are printed\\n\\t\\t\\twp_enqueue_style('sv_core_init_style');\\n\\n\\t\\t\\tob_start();\\n\\t\\t\\t// now remove the attached style\\n\\t\\t\\tadd_action('wp_print_footer_scripts', function(){\\n\\t\\t\\t\\t$this->replace_type_attributes();\\n\\t\\t\\t});\\n\\t\\t}\",\n \"public function do_footer_items()\\n {\\n }\",\n \"public function do_footer_items()\\n {\\n }\",\n \"function fashe_woocommerce_short_code_shop($atts) {\\n\\n $atts = shortcode_atts( array(\\n 'per_page' => '6',\\n 'page' => 1,\\n 'paginate' =>true\\n ), $atts);\\n\\n $query_cat_name = isset($_GET['query_cat_name']) ? wc_clean( wp_unslash( $_GET['query_cat_name'])) : '';\\n?>\\n\\n\\n\\n\\ndo_concat = $concatenate_scripts;\\n\\t$asc_scripts->do_footer_items();\\n\\n\\t/**\\n\\t * Filter whether to print the footer scripts.\\n\\t *\\n\\t * @since 2.8.0\\n\\t *\\n\\t * @param bool $print Whether to print the footer scripts. Default true.\\n\\t */\\n\\tif ( apply_filters( 'print_footer_scripts', true ) ) {\\n\\t\\t_print_scripts();\\n\\t}\\n\\n\\t$asc_scripts->reset();\\n\\treturn $asc_scripts->done;\\n}\",\n \"public function move_js_to_footer() {\\n\\t\\t$this->remove_action( 'wp_head', 'wp_print_scripts' );\\n\\t\\t$this->remove_action( 'wp_head', 'wp_print_head_scripts', 9 );\\n\\t\\t$this->remove_action( 'wp_head', 'wp_enqueue_scripts', 1 );\\n\\t}\",\n \"function bethel_add_frontend_javascript() {\\n global $post;\\n if (is_front_page()) {\\n wp_enqueue_script('bethel-frontend', get_stylesheet_directory_uri().'/js/frontend.js', array('jquery'), '0.1', true);\\n wp_localize_script('bethel-frontend', 'bethel', array('siteurl'=>site_url()));\\n }\\n if ((is_page() || is_single()) && (strpos ($post->post_content, '[gallery ') !== FALSE)) {\\n wp_enqueue_script('bethel_gallery', get_stylesheet_directory_uri().'/js/colorbox/jquery.colorbox'.(WP_DEBUG ? '.js' : '-min.js'), 'jquery', '1.6.0', true);\\n wp_enqueue_style('bethel_gallery', get_stylesheet_directory_uri().'/js/colorbox/colorbox.css');\\n }\\n //add_action ('wp_print_footer_scripts', 'bethel_viewport_js_to_footer');\\n}\",\n \"function enqueue_scripts() {\\n\\t\\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ), 21 );\\n\\t\\tadd_action( 'admin_init', array( $this, 'add_pagination' ) );\\n\\t\\tadd_action( \\\"bc_plugin_browser_content_{$this->page_slug}\\\", array( $this, 'display_plugins_browser' ), 10, 2 );\\n\\t}\",\n \"function truethemes_hook_footer_scripts(){\\n\\n\\t//get option values\\n global $ttso;\\n\\t$jcycle_timeout = $ttso->ka_jcycle_timeout; // jQuery banner cycle time\\n\\t$jcycle_pause_hover = $ttso->ka_jcycle_pause_hover; //whether pause on hover.\\n\\n\\tif ($jcycle_pause_hover == \\\"true\\\"){\\n\\t\\t$jcycle_pause_hover_results = '1';\\n\\t}else{\\n\\t\\t$jcycle_pause_hover_results = '';\\n\\t}\\n\\n\\n//init slider if is Template Homepage :: jQuery 2\\nif(is_page_template('template-homepage-jquery-2.php')){\\n\\necho \\\"\\\\n\\\";\\t\\necho \\\"\\\\n\\\";\\n}\\n\\n//init slider if is Template Homepage :: jQuery\\nif(is_page_template('template-homepage-jquery.php')){\\n\\necho \\\"\\\\n\\\";\\t\\necho \\\"\\\\n\\\";\\t\\n}\\n\\n//Testimonial init script\\nglobal $ttso;\\n$testimonial_enable = $ttso->ka_testimonial_enable;\\n\\nif($testimonial_enable == \\\"true\\\"){\\n$testimonial_timeout = $ttso->ka_testimonial_timeout;\\n$testimonial_pause_hover = $ttso->ka_testimonial_pause_hover;\\n\\tif ($testimonial_pause_hover == \\\"true\\\"){\\n\\t\\t$testimonial_pause_hover_results = '1';\\n\\t}else{\\n\\t$testimonial_pause_hover_results = '0';\\n\\t}\\n\\necho \\\"\\\\n\\\";\\necho \\\"\\\\n\\\";\\n}\\t\\t\\t\\t\\t\\n}\",\n \"function santo_flickr_gallery_shortcode_exist() {\\r\\n\\t\\tadd_action( 'wp_footer', 'santo_flickr_js',100 );\\r\\n\\t\\tadd_action( 'wp_enqueue_scripts', 'santo_flickr_scripting' );\\r\\n}\",\n \"function tdl_custom_latest_products($atts, $content = null) {\\n\\t$sliderrandomid = rand();\\n\\textract(shortcode_atts(array(\\n\\t\\t\\\"title\\\" => '',\\n\\t\\t'per_page' => '8',\\n\\t\\t'orderby' => 'date',\\n\\t\\t'order' => 'desc',\\n\\t\\t'category' => '',\\n\\t), $atts));\\n\\tob_start();\\n\\n\\t?>\\n\\t\\n\\t\\n\\t\\n\\t\\n\\t\\n\\t
four_side\\\">\\n\\t\\n\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t
\\n\\n\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t 'product',\\n\\t\\t\\t\\t\\t\\t'product_cat' => $category,\\n\\t\\t\\t\\t\\t\\t'post_status' => 'publish',\\n\\t\\t\\t\\t\\t\\t'ignore_sticky_posts' => 1,\\n\\t\\t\\t\\t\\t\\t'posts_per_page' => $per_page\\n\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t$products = new WP_Query( $args );\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tif ( $products->have_posts() ) : ?>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\thave_posts() ) : $products->the_post(); ?>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t
\\n\\t\\n\\t
\\n\\t\\n\\t\\n\\n\\tadd_activate_switch();\\n $this->change_title_html();\\n do_action('mo_optin_customizer_footer_scripts', $this);\\n }\",\n \"function print_footer_scripts()\\n {\\n }\",\n \"function reviews_scripts() {\\n if(is_archive('review')){\\n wp_enqueue_script( 'isotope-lib', get_stylesheet_directory_uri() . '/js/isotope.min.js', array('jquery'), 11112014, false );\\n wp_enqueue_script( 'isotope-settings', get_stylesheet_directory_uri() . '/js/isotope.settings.js', array('isotope-lib'), 11112014, false );\\n }\\n}\",\n \"public function after()\\n {\\n if($this->auto_render)\\n {\\n // Define defaults\\n $styles = array( \\n 'assets/css/style-responsive.css'=>'screen',\\n 'assets/css/style.css'=>'screen', \\n 'assets/font-awesome/css/font-awesome.css'=>'screen', \\n 'assets/css/bootstrap.css'=>'screen',\\n );\\n $scripts = array( \\n 'assets/js/jquery.nicescroll.js', \\n 'assets/js/jquery.scrollTo.min.js', \\n 'assets/js/jquery.dcjqaccordion.2.7.js', \\n 'assets/js/jquery.ui.touch-punch.min.js', \\n 'assets/js/jquery-ui-1.9.2.custom.min.js',\\n 'assets/js/bootstrap.min.js',\\n //'assets/js/jquery.js',\\n 'media/js/jquery-1.10.1.min.js',\\n );\\n\\n // Add defaults to template variables.\\n $this->template->styles = array_reverse(array_merge($this->template->styles, $styles));\\n $this->template->scripts = array_reverse(array_merge($this->template->scripts, $scripts));\\n }\\n // Run anything that needs to run after this.\\n parent::after();\\n }\",\n \"function ft_hook_add_js_call_footer() {}\",\n \"public function print_footer_scripts()\\n {\\n }\",\n \"static function on_td_wp_booster_after_header() {\\r\\n $page_id = get_queried_object_id();\\r\\n\\r\\n if (is_page()) {\\r\\n\\r\\n\\t // previous meta\\r\\n\\t //$td_unique_articles = get_post_meta($page_id, 'td_unique_articles', true);\\r\\n\\r\\n\\t $meta_key = 'td_page';\\r\\n\\t $td_page_template = get_post_meta($page_id, '_wp_page_template', true);\\r\\n\\t if (!empty($td_page_template) && ($td_page_template == 'page-pagebuilder-latest.php')) {\\r\\n\\t\\t $meta_key = 'td_homepage_loop';\\r\\n\\r\\n\\t }\\r\\n\\r\\n\\t $td_unique_articles = get_post_meta($page_id, $meta_key, true);\\r\\n\\t if (!empty($td_unique_articles['td_unique_articles'])) {\\r\\n\\t\\t self::$keep_rendered_posts_ids = true; //for new module hook\\r\\n\\t\\t self::$unique_articles_enabled = true; //for datasource\\r\\n\\t }\\r\\n }\\r\\n if (td_util::get_option('tds_ajax_post_view_count') == 'enabled') {\\r\\n self::$keep_rendered_posts_ids = true;\\r\\n }\\r\\n }\",\n \"public function print_footer_scripts()\\n {\\n }\",\n \"function udesign_blog_entry_after() {\\r\\n do_action('udesign_blog_entry_after');\\r\\n}\",\n \"function bs_disable_footer( $args = array() ){\\n global $flag_disable_footer, $current_page_base, $cPath_array;\\n \\n if ( in_array( $current_page_base, $args['page'] ) ) {\\n $flag_disable_footer = true;\\n }\\n\\n if ( !$flag_disable_footer && zen_not_null( $args['categories'] ) ){\\n foreach ( $cPath_array as $category_id ) {\\n if ( in_array( $category_id, $args['categories'] ) ) {\\n $flag_disable_footer = true;\\n }\\n }\\n }\\n\\n if ( !$flag_disable_footer && isset( $_GET['products_id'] ) && zen_not_null( $args['products'] ) ) {\\n if ( in_array( (int) $_GET['products_id'], $args['products'] ) ) {\\n $flag_disable_footer = true;\\n }\\n }\\n\\n}\",\n \"public function _post_filter()\\n {\\n }\",\n \"public function adminScripts()\\n\\t{\\n\\t\\twp_enqueue_script('jquery');\\n\\t\\twp_enqueue_script('wpm-sort_post_types-interface', $this->jsUrl . '/interface-1.2.js', array('jquery'));\\n\\t\\twp_enqueue_script('wpm-sort_post_types-nested', $this->jsUrl . '/inestedsortable.js', array('wpm-sort_post_types-interface'));\\n\\t\\twp_enqueue_script('wpm-sort_post_types', $this->jsUrl . '/sort-post-types.js', array('wpm-sort_post_types-nested'));\\n\\t}\",\n \"private function init_hooks(){ \\r\\n add_filter('manage_edit-category_columns', array($this, 'bamobile_manage_category_columns'));\\r\\n add_filter('manage_category_custom_column', array($this, 'bamobile_manage_category_columns_fields'), 10, 3);\\r\\n $taxonomies = get_taxonomies();\\r\\n foreach ((array)$taxonomies as $taxonomy) {\\r\\n $this->bamobile_add_custom_column_fields($taxonomy);\\r\\n }\\r\\n add_action('edit_term', array($this, 'bamobile_save_image'));\\r\\n add_action('create_term', array($this, 'bamobile_save_image'));\\r\\n add_action( 'admin_enqueue_scripts',array($this,'bamobile_add_styles'));\\r\\n }\",\n \"public static function move_jquery_to_footer() {\\n\\t\\tadd_action('wp_enqueue_scripts', function() {\\n\\t\\t\\tif (is_admin()) {\\n\\t\\t return;\\n\\t\\t }\\n\\n\\t\\t $wp_scripts = wp_scripts();\\n\\n\\t\\t $wp_scripts->add_data('jquery', 'group', 1);\\n\\t\\t $wp_scripts->add_data('jquery-core', 'group', 1);\\n\\t\\t $wp_scripts->add_data('jquery-migrate', 'group', 1);\\n\\t\\t}, 0);\\n\\t}\",\n \"function get_product_list() {\\n/**\\nif You haven't category object, please use this request\\n$catData = current_category_data($post->ID);\\n*/\\n$catData = current_category_data($post->ID);\\n\\n?>\\n\\n\\n\\n\\n\\n\\n admin_url('admin-ajax.php'),\\n 'query_vars' => $this->current_query_vars,\\n ));\\n }\",\n \"function footer_scripts(){\\n\\tglobal $post;\\n\\n\\tif( wp_script_is( 'functions', 'done' ) ) :\\n\\n?>\\n\\t\\t\\nouter_template = null;\\n\\n // Require admin login\\n if(!(isset($_SESSION['active_user']) && $_SESSION['active_user']['type'] == 'admin'))\\n die;\\n\\n if(!isset($_POST['SortOrder']))\\n die;\\n\\n $order = explode(',', $_POST['SortOrder']); \\n\\n $m_categories = instance_model('member_categories');\\n\\n $m_categories->update_sort($order);\\n }\",\n \"function feature_filter_order($orderby){\\r\\n\\tglobal $wpdb,$wp_query;\\r\\n\\t\\r\\n\\tif((is_category() || is_tax() || is_archive() || is_search()) && $wp_query->tax_query->queries[0]['taxonomy'] != 'product_cat'){\\r\\n\\t\\r\\n\\t\\tif (isset($_REQUEST['tevolution_sortby']) && ($_REQUEST['tevolution_sortby'] == 'title_asc' || $_REQUEST['tevolution_sortby'] == 'alphabetical')){\\r\\n\\t\\t\\t$orderby= \\\"$wpdb->posts.post_title ASC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') ASC\\\";\\r\\n\\t\\t}elseif (isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'title_desc' ){\\r\\n\\t\\t\\t$orderby = \\\"$wpdb->posts.post_title DESC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\\\";\\r\\n\\t\\t}elseif (isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'date_asc' ){\\r\\n\\t\\t\\t$orderby = \\\"$wpdb->posts.post_date ASC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\\\";\\r\\n\\t\\t}elseif (isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'date_desc' ){\\r\\n\\t\\t\\t$orderby = \\\"$wpdb->posts.post_date DESC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\\\";\\r\\n\\t\\t}elseif(isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'random' ){\\r\\n\\t\\t\\t$orderby = \\\" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC,rand()\\\";\\r\\n\\t\\t}elseif(isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'reviews' ){\\r\\n\\t\\t\\t$orderby = 'DESC';\\r\\n\\t\\t\\t$orderby = \\\" comment_count $orderby,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\\\";\\r\\n\\t\\t}elseif(isset($_REQUEST['tevolution_sortby']) && $_REQUEST['tevolution_sortby'] == 'rating' ){\\r\\n\\r\\n\\t\\t\\t$orderby = \\\" (select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id = $wpdb->posts.ID and $wpdb->postmeta.meta_key like \\\\\\\"average_rating\\\\\\\") DESC,(select distinct $wpdb->postmeta.meta_value from $wpdb->postmeta where $wpdb->postmeta.post_id=$wpdb->posts.ID and $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC\\\";\\r\\n\\t\\t}else{\\r\\n\\t\\t\\t$orderby = \\\" (SELECT DISTINCT $wpdb->postmeta.meta_value from $wpdb->postmeta where ($wpdb->posts.ID = $wpdb->postmeta.post_id) AND $wpdb->postmeta.meta_key = 'featured_c' AND $wpdb->postmeta.meta_value = 'c') DESC,$wpdb->posts.post_date DESC\\\";\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\treturn $orderby;\\r\\n}\",\n \"public function onBeforeCompileHead() {\\n\\t\\t$document = JFactory::getDocument();\\n\\t\\t$headData = $document->getHeadData();\\n\\t\\t$scripts = &$headData['scripts'];\\n\\n\\t\\t// удалить скрипт из массива в админке\\n\\t\\tunset($scripts['/media/k2/assets/js/k2.frontend.js?v=2.8.0&amp;sitepath=/']);\\n\\t\\t$headData['scripts'] = $scripts;\\n\\t\\t$document->setHeadData($headData);\\n\\n // Проверить это это страницы админки\\n $app = JFactory::getApplication();\\n if ($app->isSite()) {\\n return;\\n }\\n\\n $document = JFactory::getDocument();\\n\\n // подключить скрипт для сортировки\\n $document->addScript(JUri::root().'plugins/system/newwallet_sort/js/sort.js' );\\n\\t}\",\n \"function modifyThemeFooter() {\\n?>\\n\\n\\n\\t\\t\\n\\t\\t 10,\\n\\t\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t\\t'author_name'\\t\\t=> $selection\\n\\t\\t\\t\\t); \\n\\t\\t} else if($filterType == 'year' && $pageType == 'category') {\\n\\t\\t\\t//if filtering by year on a category page and loading more\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'cat'\\t\\t\\t\\t=> $pageCategory,\\n\\t\\t\\t\\t'date_query' => array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'year' => $year,\\n\\t\\t\\t\\t\\t\\t\\t'month' => $month\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'year' && $pageType == 'tag') {\\n\\t\\t\\t//if filtering by year on a tag page and loading more\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'tag_id'\\t\\t\\t=> $pageCategory,\\n\\t\\t\\t\\t'date_query' => array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'year' => $year,\\n\\t\\t\\t\\t\\t\\t\\t'month' => $month\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'year' && $pageType == 'press') {\\n\\t\\t\\t//if filtering by year on press page and loading more\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'press',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'date_query' => array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'year' => $year,\\n\\t\\t\\t\\t\\t\\t\\t'month' => $month\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'press_tag') {\\n\\t\\t\\t//if filtering by press_tag on press page and loading more\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'press',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'tax_query' \\t\\t=> array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'taxonomy' => 'press_tag',\\n\\t\\t\\t\\t\\t\\t\\t'field' => 'term_id',\\n\\t\\t\\t\\t\\t\\t\\t'terms' => $selection,\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'category' && $pageType == 'blog') {\\n\\t\\t\\t//if loading more on a category page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'category__in'\\t\\t=> $selectionArray \\n\\t\\t\\t); \\n\\t\\t} else if($pageType == 'blog') {\\n\\t\\t\\t//if loading more on blog landing page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'category') {\\n\\t\\t\\t//if loading more on a category page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'category__in'\\t\\t=> $selectionArray \\n\\t\\t\\t); \\n\\t\\t} else if($pageType == 'press') {\\n\\t\\t\\t//if loading more on a press page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'press',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'tag') {\\n\\t\\t\\t//if loading more on a tag page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t\\t'tag__in'\\t\\t\\t=> $selectionArray \\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'type') {\\n\\t\\t\\t//if filtering by post type\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> $selectionArray,\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t's'\\t\\t\\t\\t\\t=> $search,\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t); \\n\\t\\t}\\t\\n\\t} else {\\n\\t\\t//if we are filtering\\n\\n\\t\\tif($filterType == 'year' && $pageType == 'category') {\\n\\t\\t\\t//if filtering by year on a category page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'cat'\\t\\t\\t\\t=> $pageCategory,\\n\\t\\t\\t\\t'date_query' \\t\\t=> array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'year' => $year,\\n\\t\\t\\t\\t\\t\\t\\t'month' => $month\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'year' && $pageType == 'tag') {\\n\\t\\t\\t//if filtering by year on a tag page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'tag_id'\\t\\t\\t=> $pageCategory,\\n\\t\\t\\t\\t'date_query' \\t\\t=> array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'year' => $year,\\n\\t\\t\\t\\t\\t\\t\\t'month' => $month\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'year' && $pageType == 'press') {\\n\\t\\t\\t//if filtering by year on a press page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'press',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'date_query' \\t\\t=> array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'year' => $year,\\n\\t\\t\\t\\t\\t\\t\\t'month' => $month\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'press_tag' && $pageType == 'press') {\\n\\t\\t\\t//if filtering by press tag on a press page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'press',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'tax_query' \\t\\t=> array(\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'taxonomy' => 'press_tag',\\n\\t\\t\\t\\t\\t\\t\\t'field' => 'term_id',\\n\\t\\t\\t\\t\\t\\t\\t'terms' => $selection,\\n\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'category' && $pageType == 'blog') {\\n\\t\\t\\t//if filtering by category on blog landing page\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> 'post',\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t'cat'\\t\\t\\t\\t=> $selection,\\n\\t\\t\\t); \\n\\t\\t} else if($filterType == 'type') {\\n\\t\\t\\t//if filtering by post type\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' \\t=> 10,\\n\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t'order' \\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t'post_type' \\t\\t=> $selectionArray,\\n\\t\\t\\t\\t'post_status' \\t\\t=> 'publish',\\n\\t\\t\\t\\t's'\\t\\t\\t\\t\\t=> $search,\\n\\t\\t\\t\\t'post__not_in'\\t\\t=> $exclude,\\n\\t\\t\\t); \\n\\t\\t}\\n \\n\\n\\t}\\n\\n\\t$query = new WP_Query( $args );\\n\\t$count = $query->post_count;\\n\\n\\tif ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post();\\n\\t\\t\\t\\t\\n\\t\\t\\tif($search) {\\n\\t\\t\\t\\t$search = 'true';\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$search = 'false';\\n\\t\\t\\t}\\n\\n\\t\\t\\t$postID = get_the_ID();\\n\\t\\t\\t$maxPages = $query->max_num_pages;\\n\\t\\t\\t$link = get_the_permalink($postID);\\n\\t\\t\\t$postType = get_post_type($postID);\\n\\t\\t\\t$category = get_the_category($postID);\\n\\t\\t\\t$thumbnail = get_the_post_thumbnail_url($postID, 'full');\\n\\n\\t\\t\\tif($thumbnail) {\\n\\t\\t\\t\\t $thumbnail = '
\\\"\\\"
';\\n\\t\\t\\t\\t $thumbnailClass = ' feed-item-image';\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$thumbnail = '';\\n\\t\\t\\t\\t$thumbnailClass = '';\\n\\t\\t\\t}\\n\\n\\n\\n\\t\\t\\t$results = '';\\n\\n\\t\\t\\tif(($postType == 'post') || ($search == 'true') || ($postType == 'press')) {\\n\\t\\t\\t\\t$results = '
  • '.$thumbnail.'

    '.get_the_title($postID).'

    '.excerpt(15).'

    Posted '.get_the_time('F j, Y').' &mdash; Read more
  • ';\\n\\t\\t\\t\\t\\n\\t\\t\\t} else if($postType == 'challenges') {\\n\\t\\t\\t\\t$results = '
  • '.get_field('challenges_header', $postID).'

    '.get_the_title($postID).'

  • ';\\n\\t\\t\\t} else if($postType == 'campaigns') {\\n\\t\\t\\t\\t$results = '
    \\\"'.get_the_title($postID).'\\\"
    ';\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$results = '
  • '.$thumbnail.'

    '.get_the_title($postID).'

    '.excerpt(15).'

    Read more
  • ';\\n\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t$result['response'][] = $results;\\n\\t\\t\\t$result['status'] = 'done';\\n\\t\\n\\tendwhile; else:\\n\\t\\t$result['response'] = '
  • There is no content that matches your filter

  • ';\\n\\t\\t$result['status'] = '404';\\n\\tendif;\\n \\n\\t$result = json_encode($result);\\n\\techo $result;\\n\\t\\n\\n\\tdie();\\n}\",\n \"public static function footer_scripts()\\n\\t{\\n\\t\\tself::$_configInstance->footer_scripts();\\n\\t}\",\n \"function wck_page_load_scripts() {\\t\\t\\r\\n\\t\\t?>\\r\\n\\t\\t 'product',\\n 'posts_per_page' => POST_PER_PAGE,\\n);\\n$products = new WP_Query($args);\\n$variables = $products->query_vars;\\n$page = $variables['paged'];\\n\\n//var_dump($products->max_num_pages);\\n // In most cases it is already included on the page and this line can be removed\\n wp_enqueue_script('jquery');\\n\\n wp_register_script('loadmore', get_stylesheet_directory_uri() . '/js/loadmore.js', array('jquery'));\\n\\n \\n wp_localize_script('loadmore', 'jb_dripdeals_loadmore_params', array(\\n 'ajaxurl' => site_url() . '/wp-admin/admin-ajax.php', // WordPress AJAX\\n 'posts' => json_encode($variables), // everything about our loop is here\\n 'current_page' => $page ? $page : 1,\\n 'max_page' => $products->max_num_pages,\\n ));\\n\\n wp_enqueue_script('loadmore');\\n}\",\n \"function rssmi_footer_scripts() {\\n\\twp_enqueue_style( 'frontend', plugins_url( 'css/frontend.css', dirname( __FILE__ ) ) );\\n\\twp_enqueue_script( 'showexcerpt', plugins_url( 'scripts/show-excerpt.js', dirname( __FILE__ ) ) );\\n}\",\n \"public function after() {\\n if ($this->auto_render) {\\n // Define defaults\\n $styles = array('assets/css/main.css' => 'screen');\\n $scripts = array('assets/js/jquery-1.10.1.js');\\n\\n // Add defaults to template variables.\\n $this->template->styles = array_reverse(array_merge($this->template->styles, $styles));\\n $this->template->scripts = array_reverse(array_merge($this->template->scripts, $scripts));\\n }\\n\\n // Run anything that needs to run after this.\\n parent::after();\\n }\",\n \"public function init()\\r\\n {\\r\\n add_action('wp_footer', array($this, 'display'));\\r\\n }\",\n \"function _appthemes_register_theme_scripts() {\\n\\n\\t// Minimize prod or show expanded in dev.\\n\\t$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';\\n\\n\\trequire_once APP_THEME_FRAMEWORK_DIR . '/js/localization.php';\\n\\n\\twp_register_script( 'colorbox', APP_THEME_FRAMEWORK_URI . \\\"/js/colorbox/jquery.colorbox{$min}.js\\\", array( 'jquery' ), '1.6.1' );\\n\\twp_register_style( 'colorbox', APP_THEME_FRAMEWORK_URI . \\\"/js/colorbox/colorbox{$min}.css\\\", false, '1.6.1' );\\n\\twp_register_style( 'font-awesome', APP_THEME_FRAMEWORK_URI . \\\"/lib/font-awesome/css/font-awesome{$min}.css\\\", false, '4.7.0' );\\n\\n\\twp_register_script( 'footable', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable{$min}.js\\\", array( 'jquery' ), '2.0.3' );\\n\\twp_register_script( 'footable-grid', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable.grid{$min}.js\\\", array( 'footable' ), '2.0.3' );\\n\\twp_register_script( 'footable-sort', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable.sort{$min}.js\\\", array( 'footable' ), '2.0.3' );\\n\\twp_register_script( 'footable-filter', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable.filter{$min}.js\\\", array( 'footable' ), '2.0.3' );\\n\\twp_register_script( 'footable-striping', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable.striping{$min}.js\\\", array( 'footable' ), '2.0.3' );\\n\\twp_register_script( 'footable-paginate', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable.paginate{$min}.js\\\", array( 'footable' ), '2.0.3' );\\n\\twp_register_script( 'footable-bookmarkable', APP_THEME_FRAMEWORK_URI . \\\"/js/footable/jquery.footable.bookmarkable{$min}.js\\\", array( 'footable' ), '2.0.3' );\\n\\n\\t_appthemes_localize_theme_scripts();\\n}\",\n \"function udesign_page_content_after() {\\r\\n do_action('udesign_page_content_after');\\r\\n}\",\n \"function cmdeals_meta_scripts() {\\n\\t?>\\n\\t\\n\\tisAdmin()) return;\\t\\r\\n\\r\\n $input = $output = JResponse::getBody();\\r\\n $bparts = explode('1)\\r\\n \\t{\\r\\n \\t$before = $bparts[0];\\r\\n \\t$input = ' 0) // any plugins?\\r\\n \\t{\\r\\n\\t\\tforeach ($matches[0] as $match) // loop through all plugins\\r\\n\\t\\t\\t{\\t\\r\\n\\t\\t\\t$parts = explode('|',trim($match,'{}'));\\r\\n \\t\\t\\tif ($parts[0]=='hotelgallery') // found a match!\\r\\n \\t\\t\\t\\t{\\r\\n\\t \\t\\t\\t\\t$pluginRoot = JURI::root().\\\"/plugins/system/hotelgallery\\\";\\r\\n \\t\\t\\t\\t\\t$id = $parts[1];\\r\\n \\t\\t\\t\\t\\t\\r\\n \\t\\t\\t\\t\\t$db = JFactory::getDBO();\\r\\n \\t\\t\\t\\t\\t$db->setQuery(\\\"SELECT * FROM `#__hotelreservation_hotel_pictures` WHERE hotel_id=$id\\\");\\r\\n \\t\\t\\t\\t\\t$pictures= $db->loadObjectList();\\r\\n \\t\\t\\t\\t\\t//dmp($pictures);\\r\\n \\t\\t\\t\\t\\t$div = \\\"
    \\r\\n \\t\\t\\t\\t\\t\\t\\t
      \\\";\\r\\n \\t\\t\\t\\t\\t$script = \\\"
    \\r\\n \\t\\t\\t\\t\\t
    \\r\\n\\t\\t \\r\\n\\t\\t
    \\r\\n\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\\";\\r\\n\\r\\n \\t\\t\\t\\t\\tforeach( $pictures as $index=>$picture ){\\r\\n \\t\\t\\t\\t\\t\\t$picture->hotel_picture_path = JURI::root() .PATH_PICTURES.$picture->hotel_picture_path;\\r\\n$replace .= <<\\r\\n\\t\\t
    {$pictures[$index]->hotel_picture_info}\\\" data-max-width=\\\"1800\\\" data-max-height=\\\"2400\\\">\\r\\n\\t\\t
    hotel_picture_path}\\\" data-min-width=\\\"1300\\\">
    \\r\\n\\t\\t
    hotel_picture_path}\\\" data-min-width=\\\"1000\\\">
    \\r\\n\\t\\t
    hotel_picture_path}\\\" data-min-width=\\\"700\\\">
    \\r\\n\\t\\t
    hotel_picture_path}\\\" data-min-width=\\\"300\\\">
    \\r\\n\\t\\t
    hotel_picture_path}\\\" data-min-width=\\\"200\\\">
    \\r\\n\\t\\t
    hotel_picture_path}\\\" data-min-width=\\\"140\\\">
    \\r\\n\\t\\t
    hotel_picture_path}\\\">
    \\r\\n\\t\\t \\r\\n\\t\\t
    \\r\\n\\t\\t \\r\\n\\t\\t\\t\\t\\t\\t \\t\\t\\t \\t\\t \\t\\t \\r\\n\\t\\t \\r\\n\\t\\t \\r\\n\\t\\t \\r\\nASDF;\\r\\n$valor = $div.$replace.$script;\\r\\n\\t\\t\\t\\t\\t} \\r\\n\\r\\n \\t\\t\\t\\t// replace\\r\\n \\t\\t\\t\\t$output\\t= str_replace($match,$valor,$output);\\r\\n \\t\\t\\t\\t}\\r\\n \\t\\t}\\r\\n \\t}\\r\\n\\t\\tif ($input != $output) JResponse::setBody($before . $output);\\r\\n\\t\\treturn true;\\r\\n\\t\\t}\",\n \"public static function displayFooter() {\\r\\n ?>\\r\\n


    \\r\\n
    \\r\\n \\r\\n

    &copy 2016 Power House. All Rights Reserved.
    \\r\\n \\r\\n \\r\\n \\r\\n 3,\\n\\t\\t 'meta_key' => 'featuredPost-checkbox',\\n\\t\\t 'meta_value' => 'yes'\\n\\t\\t);\\n\\t\\t$featured_posts = new WP_Query($featured_args);\\n\\t\\twhile($featured_posts->have_posts()):\\n\\t\\t\\t$featured_posts->the_post();\\n\\t\\t\\tarray_push($exlude_post_ids, get_the_ID());\\n\\t\\tendwhile;\\n\\t\\twp_reset_postdata(); \\n\\n\\t\\t// Exclude 3 'Latest' Posts\\n\\t\\t$latest_args = array(\\n\\t\\t 'posts_per_page' => 3,\\n\\t\\t 'post__not_in' => $exlude_post_ids\\n\\t\\t);\\n\\t\\t$latest_posts = new WP_Query($latest_args);\\n\\t\\twhile($latest_posts->have_posts()):\\n\\t\\t\\t$latest_posts->the_post();\\n\\t\\t\\tarray_push($exlude_post_ids, get_the_ID());\\n\\t\\tendwhile;\\n\\t\\twp_reset_postdata(); \\n\\n\\t\\t// Get All posts, except selected posts from above\\n\\t\\t$args = array(\\n\\t\\t 'post__not_in' => $exlude_post_ids\\n\\t\\t);\\n\\t\\t$query = new WP_Query($args);\\n\\n\\n\\t} else if($section == 'single'){\\n\\t\\t$args = array(\\n\\t\\t\\t'cat'\\t\\t\\t\\t=> array(get_the_category($query->post->ID)[0]->term_id),\\n\\t\\t\\t'posts_per_page'\\t=> 1,\\n\\t\\t\\t'post__not_in'\\t\\t=> array($post->ID)\\n\\t\\t);\\n\\t\\t$query = new WP_Query($args);\\n\\n\\n\\t} else if($section == 'category'){\\n\\t\\t$args = array(\\n\\t\\t\\t'cat'\\t\\t\\t\\t=> array(get_category(get_query_var( 'cat' ))->cat_ID),\\n\\t\\t\\t'posts_per_page'\\t=> 7,\\n\\t\\t\\t'offset'\\t\\t\\t=> 10\\n\\t\\t);\\n\\t\\t$query = new WP_Query($args);\\n\\t}\\n\\n\\t$reference_object = array(\\n\\t\\t'base'\\t\\t\\t\\t=> get_template_directory_uri(),\\n\\t\\t'ajaxurl'\\t\\t\\t=> admin_url( 'admin-ajax.php' ),\\n\\t\\t'query_vars' \\t\\t=> json_encode( $query->query_vars ),\\n\\t\\t'actual_page'\\t\\t=> get_query_var('paged') > 1 ? get_query_var('paged') : 1,\\n\\t\\t'total_pages'\\t\\t=> $query->max_num_pages,\\n\\t\\t'section'\\t\\t\\t=> $section,\\n\\t\\t'isMobile'\\t\\t\\t=> wp_is_mobile() ? 'true' : 'false',\\n 'category' => get_category($query->query_vars['cat'])->slug\\n\\n\\t);\\n\\twp_localize_script('main_js', 'base_reference', $reference_object );\\n}\",\n \"function ineedmyjava() {\\n\\tif (!is_admin()) {\\n \\n\\t\\twp_deregister_script('jquery');\\n\\t\\twp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', false, '1.11.0', true);\\n\\t\\twp_enqueue_script('jquery');\\n\\t\\t\\n\\t\\t// other scripts...\\n\\t\\twp_register_script(\\n\\t\\t\\t'custom',\\n\\t\\t\\tget_bloginfo('template_directory') . '/js/custom.js',\\n\\t\\t\\tarray('jquery') );\\n\\t\\twp_enqueue_script('custom');\\n\\t\\t\\n\\t\\t\\n\\t\\t// other scripts...\\n\\t\\twp_register_script(\\n\\t\\t\\t'isotope',\\n\\t\\t\\tget_bloginfo('template_directory') . '/js/isotope.js',\\n\\t\\t\\tarray('jquery') );\\n\\t\\twp_enqueue_script('isotope');\\n\\t\\t\\n\\t\\t\\n\\t\\t// other scripts...\\n\\t\\twp_register_script(\\n\\t\\t\\t'images',\\n\\t\\t\\tget_bloginfo('template_directory') . '/js/images-loaded.js',\\n\\t\\t\\tarray('jquery') );\\n\\t\\twp_enqueue_script('images');\\n\\t\\t\\n\\t\\t\\n\\t\\t// other scripts...\\n\\t\\twp_register_script(\\n\\t\\t\\t'bootstrap',\\n\\t\\t\\tget_bloginfo('template_directory') . '/js/bootstrap.js',\\n\\t\\t\\tarray('jquery') );\\n\\t\\twp_enqueue_script('bootstrap');\\n\\t\\t\\n\\t\\t\\n\\t\\t// other scripts...\\n\\t\\twp_register_script(\\n\\t\\t\\t'colorbox',\\n\\t\\t\\tget_bloginfo('template_directory') . '/js/colorbox.js',\\n\\t\\t\\tarray('jquery') );\\n\\t\\twp_enqueue_script('colorbox');\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t}\\n}\",\n \"function childtheme_override_postfooter() {}\",\n \"function neobeat_include_masonry_scripts() {\\n\\t\\twp_enqueue_script( 'isotope' );\\n\\t\\twp_enqueue_script( 'packery' );\\n\\t}\",\n \"function get_all_product_posts($query ) {\\n if (is_post_type_archive( 'product') && !is_admin() && $query->is_main_query()) {\\n $query->set('posts_per_page' , '16');\\n $query->set('orderby', 'title');\\n $query->set('order' , 'ASC');\\n } //elseif for categories\\n}\",\n \"public static function alm_enqueue_filters_admin_scripts(){\\n\\n \\twp_enqueue_style( 'alm-filters-admin', ALM_FILTERS_URL. '/dist/css/admin_styles.css', '');\\n \\twp_enqueue_script( 'alm-filters-admin', ALM_FILTERS_URL. '/dist/js/admin.js', '', ALM_FILTERS_VERSION, true);\\n\\n \\twp_localize_script(\\n \\t\\t'alm-filters-admin', 'alm_filters_localize', array(\\n \\t\\t\\t'root' => esc_url_raw( rest_url() ),\\n \\t\\t\\t'nonce' => wp_create_nonce( 'wp_rest' ),\\n \\t\\t\\t'base_url' => get_admin_url() .'admin.php?page=ajax-load-more-filters',\\n \\t\\t\\t'delete_filter' => __('Are you sure you want to delete', 'ajax-load-more-filters'),\\n \\t\\t\\t'ordering_parameters' => __('Ordering Parameters', 'ajax-load-more-filters'),\\n \\t\\t\\t'date_parameters' => __('Date Parameters', 'ajax-load-more-filters'),\\n \\t\\t\\t'category_parameters' => __('Category Parameters', 'ajax-load-more-filters'),\\n\\t\\t\\t\\t\\t'field_type_beta' => __('Beta', 'ajax-load-more-filters'),\\n\\t\\t\\t\\t\\t'field_type_basic' => __('Basic Form Fields', 'ajax-load-more-filters'),\\n\\t\\t\\t\\t\\t'field_type_adv' => __('Advanced Form Fields', 'ajax-load-more-filters'),\\n \\t\\t\\t'tag_parameters' => __('Tag Parameters', 'ajax-load-more-filters'),\\n \\t\\t\\t'create_filter' => __('Create Filter', 'ajax-load-more-filters'),\\n \\t\\t\\t'update_filter' => __('Save Changes', 'ajax-load-more-filters'),\\n \\t\\t\\t'saved_filter' => __('Filter Saved', 'ajax-load-more-filters')\\n \\t\\t)\\n \\t);\\n\\n \\t}\",\n \"public function dld_enqueue_scripts($hook)\\n {\\n if (array_key_exists('page', $_GET) && $_GET['page'] == 'woocommerce-delivery-schedular') {\\n wp_enqueue_script('jquery-ui-datepicker');\\n wp_enqueue_script('WOO-QB-bootstrap-javascript', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js');\\n }\\n global $post;\\n if ($hook == 'post-new.php' || $hook == 'post.php' || (array_key_exists('page', $_GET) && $_GET['page'] == 'woocommerce-delivery-schedular')) {\\n if ($post && 'product' === $post->post_type || (array_key_exists('page', $_GET) && $_GET['page'] == 'woocommerce-delivery-schedular')) {\\n wp_enqueue_script($this->plugin_name . '-admin', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/delivery-date-admin.js', array('jquery'), $this->version, false);\\n wp_enqueue_script($this->plugin_name . '-custom-admin', plugin_dir_url(__FILE__) . '/custom-delivery-date-admin.js', array('jquery'), $this->version, false);\\n wp_enqueue_script($this->plugin_name . '-multiDatepicker', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/jquery-ui.multidatespicker.js', array('jquery'), $this->version, false);\\n\\n wp_enqueue_script($this->plugin_name . '-moment', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/moment.min.js', array('jquery'), $this->version, false);\\n wp_enqueue_script($this->plugin_name . '-daterangepicker', plugin_dir_url(__FILE__) . '../woocommerce-delivery-schedular/admin/js/daterangepicker.min.js', array('jquery'), $this->version, false);\\n }\\n }\\n }\",\n \"function Helsingborg_scripts() {\\n wp_deregister_script( 'jquery' );\\n\\n // register scripts\\n wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js', array(), '1.0.0', false );\\n wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery/dist/jquery.min.js', array(), '1.0.0', false );\\n wp_enqueue_script( 'jquery-ui', get_template_directory_uri() . '/js/jquery/dist/jquery-ui.min.js', array(), '1.0.0', false );\\n\\n /**\\n * EVENT LIST PAGE\\n **/\\n if ( is_page_template( 'templates/event-list-page.php' )) {\\n // Register scripts\\n wp_enqueue_script( 'zurb5-multiselect', get_template_directory_uri() . '/js/foundation-multiselect/zmultiselect/zurb5-multiselect.js', array(), '1.0.0', false );\\n wp_enqueue_script( 'jquery-datetimepicker', get_template_directory_uri() . '/js/jquery.datetimepicker.js', array(), '1.0.0', false );\\n wp_enqueue_script( 'knockout', get_template_directory_uri() . '/js/knockout/dist/knockout.js', array(), '3.2.0', false );\\n wp_enqueue_script( 'event-list-model', get_template_directory_uri() . '/js/helsingborg/event_list_model.js', array(), '1.0.0', false );\\n\\n // Register styles\\n wp_enqueue_style( 'zurb5-multiselect', get_template_directory_uri() . '/css/multiple-select.css', array(), '1.0.0', 'all' );\\n wp_enqueue_style( 'jquery-datetimepicker', get_template_directory_uri() . '/js/jquery.datetimepicker.css', array(), '1.0.0', 'all' );\\n \\n }\\n\\n wp_enqueue_script( 'foundation', get_template_directory_uri() . '/js/app.js', array('jquery'), '1.0.0', true );\\n wp_enqueue_script( 'tablesorter', get_template_directory_uri() . '/js/plugins/jquery.tablesorter.min.js', array(), '1.0.0', true );\\n\\n // TODO: Remove! This should be merged into app.js\\n wp_enqueue_script( 'dev', get_template_directory_uri() . '/js/dev/hbg.dev.js', array(), '1.0.0', true );\\n\\t\\t\\n\\t\\n // Readspeaker should be added last\\n wp_enqueue_script( 'readspeaker', 'http://f1.eu.readspeaker.com/script/5507/ReadSpeaker.js?pids=embhl', array(), '1.0.0', false);\\n \\n // Enqueue vergic.js previously in footer.php\\n\\twp_enqueue_script( 'script-vergic', get_template_directory_uri() . '/js/helsingborg/vergic.js', array(), '1.0.0', true );\\n // Enqueue styles previously in header.php\\n wp_enqueue_style( 'style-normalize', get_template_directory_uri() . '/css/normalize.css' );\\n wp_enqueue_style( 'style-app', get_template_directory_uri() . '/css/app.css' ); \\n \\n }\",\n \"function shutdown() {\\n // Safety for themes not using wp_footer\\n SLPlus_Actions::ManageTheScripts();\\n\\t\\t}\",\n \"public static function _wp_footer()\\n\\t{\\n\\t\\tforeach (static::$footer_scripts as $params) {\\n\\t\\t\\tif (!isset($params['url'])) {\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (isset($params['localize']) && isset($params['localize']['name']) && isset($params['localize']['data'])) {\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\\\n\\\";\\n\\t\\t}\\n\\t}\",\n \"function add_admin_scripts() {\\n\\t\\tglobal $post;\\n\\t\\t$post_type = $post->post_type;\\n\\t\\tif ( 'product' == $post_type ) {\\n\\t\\t\\twp_enqueue_script(\\n 'heweb17-admin',\\n plugins_url( '/js/heweb17-admin.js', __FILE__ ),\\n array( 'jquery' ) );\\n\\t\\t}\\n\\t}\",\n \"function add_ordin_widget_scripts() {\\n if( ! apply_filters( 'add_ordin_widget_scripts', true, $this->id_base ) )\\n return;\\n ?>\\n \\n addAction('wp_footer', array('Chayka\\\\\\\\LinkedIn\\\\\\\\HtmlHelper', 'renderJsInit'));\\n \\t/* chayka: registerActions */\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.7241142","0.6526731","0.6444402","0.6413683","0.6400463","0.63700396","0.6369376","0.6338886","0.630546","0.6296617","0.6249045","0.6207119","0.61928964","0.61739033","0.61543816","0.61080056","0.6093143","0.6033762","0.6032027","0.6030236","0.60086805","0.6001226","0.59697604","0.59487045","0.594843","0.5941049","0.5938484","0.59146017","0.5896967","0.5896967","0.5896967","0.5896967","0.5896967","0.5890156","0.5876459","0.5831385","0.5811524","0.5810624","0.57903826","0.57903826","0.5789098","0.5785293","0.5777126","0.5773174","0.5757678","0.57439184","0.5743063","0.5738771","0.5737273","0.5734238","0.5729473","0.57263756","0.5720172","0.5715475","0.57134646","0.57082045","0.5687526","0.5685971","0.5680793","0.5680456","0.5672112","0.56681","0.56662184","0.5665719","0.5656073","0.56534725","0.56457865","0.5635625","0.5633864","0.56325173","0.563149","0.56310403","0.56287545","0.5628627","0.5628423","0.56232315","0.56176054","0.56105","0.5595017","0.55882615","0.5556301","0.5544112","0.55396146","0.55195075","0.5511016","0.55038005","0.549943","0.54945177","0.5492116","0.5490358","0.5489363","0.5485369","0.5483127","0.5474342","0.5471772","0.54681563","0.5464937","0.546027","0.54596937","0.5450936"],"string":"[\n \"0.7241142\",\n \"0.6526731\",\n \"0.6444402\",\n \"0.6413683\",\n \"0.6400463\",\n \"0.63700396\",\n \"0.6369376\",\n \"0.6338886\",\n \"0.630546\",\n \"0.6296617\",\n \"0.6249045\",\n \"0.6207119\",\n \"0.61928964\",\n \"0.61739033\",\n \"0.61543816\",\n \"0.61080056\",\n \"0.6093143\",\n \"0.6033762\",\n \"0.6032027\",\n \"0.6030236\",\n \"0.60086805\",\n \"0.6001226\",\n \"0.59697604\",\n \"0.59487045\",\n \"0.594843\",\n \"0.5941049\",\n \"0.5938484\",\n \"0.59146017\",\n \"0.5896967\",\n \"0.5896967\",\n \"0.5896967\",\n \"0.5896967\",\n \"0.5896967\",\n \"0.5890156\",\n \"0.5876459\",\n \"0.5831385\",\n \"0.5811524\",\n \"0.5810624\",\n \"0.57903826\",\n \"0.57903826\",\n \"0.5789098\",\n \"0.5785293\",\n \"0.5777126\",\n \"0.5773174\",\n \"0.5757678\",\n \"0.57439184\",\n \"0.5743063\",\n \"0.5738771\",\n \"0.5737273\",\n \"0.5734238\",\n \"0.5729473\",\n \"0.57263756\",\n \"0.5720172\",\n \"0.5715475\",\n \"0.57134646\",\n \"0.57082045\",\n \"0.5687526\",\n \"0.5685971\",\n \"0.5680793\",\n \"0.5680456\",\n \"0.5672112\",\n \"0.56681\",\n \"0.56662184\",\n \"0.5665719\",\n \"0.5656073\",\n \"0.56534725\",\n \"0.56457865\",\n \"0.5635625\",\n \"0.5633864\",\n \"0.56325173\",\n \"0.563149\",\n \"0.56310403\",\n \"0.56287545\",\n \"0.5628627\",\n \"0.5628423\",\n \"0.56232315\",\n \"0.56176054\",\n \"0.56105\",\n \"0.5595017\",\n \"0.55882615\",\n \"0.5556301\",\n \"0.5544112\",\n \"0.55396146\",\n \"0.55195075\",\n \"0.5511016\",\n \"0.55038005\",\n \"0.549943\",\n \"0.54945177\",\n \"0.5492116\",\n \"0.5490358\",\n \"0.5489363\",\n \"0.5485369\",\n \"0.5483127\",\n \"0.5474342\",\n \"0.5471772\",\n \"0.54681563\",\n \"0.5464937\",\n \"0.546027\",\n \"0.54596937\",\n \"0.5450936\"\n]"},"document_score":{"kind":"string","value":"0.71792096"},"document_rank":{"kind":"string","value":"1"}}},{"rowIdx":431,"cells":{"query":{"kind":"string","value":"handle plugin lifecycle events"},"document":{"kind":"string","value":"function abl_droploader_lifecycle($event, $step) {\n\t\tglobal $prefs;\n\n\t\t$msg = '';\n\t\t$msg1 = '';\n\t\tswitch ($step) {\n\t\t\tcase 'enabled':\n\t\t\t\t// setup plugin: prefs, textpacks, load order\n\t\t\t\tif (!function_exists('soo_plugin_pref')) {\n\t\t\t\t\t$msg1 = 'Please install soo_plugin_pref to edit preferences (Default preferences apply).';\n\t\t\t\t}\n\t\t\t\t$rc = abl_droploader_enable($event, $step);\n\t\t\t\tbreak;\n\t\t\tcase 'installed':\n\t\t\t\t// install resources: css, js\n\t\t\t\t$rc = abl_droploader_install($event, $step);\n\t\t\t\tbreak;\n\t\t\tcase 'disabled':\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\t\t\tcase 'deleted':\n\t\t\t\t// remove prefs, textpacks and other resources\n\t\t\t\t$rc = abl_droploader_uninstall($event, $step);\n\t\t\t\tbreak;\n\t\t}\n\t\tif ($rc == E_ERROR) {\n\t\t\t$msg = 'An error occurred. Please check the servers error-log.';\n\t\t} elseif ($rc == E_WARNING || $rc == E_NOTICE) {\n\t\t\t$msg = 'abl_droploader successfully ' . $step . '. Please check the servers error-log.';\n\t\t} else {\n\t\t\t$msg = 'abl_droploader successfully ' . $step . '.';\n\t\t}\n\t\t$msg .= ($msg1 != '') ? ' ' . $msg1 : '';\n\t\treturn $msg;\n\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["public function initializePlugin();","protected function init_lifecycle_handler() {\n\n\t\trequire_once( $this->get_plugin_path() . '/includes/Lifecycle.php' );\n\n\t\t$this->lifecycle_handler = new \\SkyVerge\\WooCommerce\\Elavon_Converge\\Lifecycle( $this );\n\t}","public function onPluginsInitialized()\n {\n if ($this->isAdmin()) {\n // For speed-up when the admin plugin is active\n $this->active = false;\n } else {\n if ($this->config->get('plugins.googlemaps.enabled')) {\n // if the plugin is active globally, subscribe to additional events\n $this->enable([\n 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],\n 'onPageInitialized' => ['onPageInitialized', 0]\n ]);\n }\n }\n }","public function init_plugin()\n {\n }","public function onPluginsInitialized()\n {\n $this->processDeprecatedSettings();\n }","public function bootPlugin();","protected function init_lifecycle_handler() {\n\n\t\trequire_once( $this->get_plugin_path() . '/includes/class-wc-pip-lifecycle.php' );\n\n\t\t$this->lifecycle_handler = new \\SkyVerge\\WooCommerce\\PIP\\Lifecycle( $this );\n\t}","public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n // Register services\n $this->setComponents([\n 'oembed' => oEmbedService::class,\n 'providers' => Providers::class\n ]);\n\n // Caching\n Event::on(\n ClearCaches::class,\n ClearCaches::EVENT_REGISTER_TAG_OPTIONS,\n function(RegisterCacheOptionsEvent $event)\n {\n $event->options[] = [\n 'tag' => 'oembed',\n 'label' => Craft::t('oembed', 'oEmbed caches'),\n ];\n }\n );\n\n // Register our field type.\n Event::on(\n Fields::class,\n Fields::EVENT_REGISTER_FIELD_TYPES,\n function(RegisterComponentTypesEvent $event) {\n $event->types[] = Field::class;\n }\n );\n\n // Register variable\n Event::on(\n CraftVariable::class,\n CraftVariable::EVENT_INIT,\n static function (Event $event) {\n /** @var CraftVariable $variable */\n $variable = $event->sender;\n $variable->set('oembed', oEmbedVariable::class);\n }\n );\n\n /**\n * Logging in Craft involves using one of the following methods:\n *\n * http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html\n */\n Craft::info(\n Craft::t(\n 'oembed',\n '{name} plugin loaded',\n ['name' => $this->name]\n ),\n __METHOD__\n );\n }","public static function init()\n {\n add_action('plugins_loaded', array(self::instance(), '_setup'));\n }","public function plugin_construction() {\t\r\n\t\r\n\t}","function Doku_Event_Handler() {\n\n // load action plugins\n $plugin = NULL;\n $pluginlist = plugin_list('action');\n\n foreach ($pluginlist as $plugin_name) {\n $plugin =& plugin_load('action',$plugin_name);\n\n if ($plugin !== NULL) $plugin->register($this);\n }\n }","public function onPluginsInitialized()\n {\n if ($this->isAdmin()) {\n $this->active = false;\n return;\n }\n\n /** @var Uri $uri */\n $uri = $this->grav['uri'];\n $route = $this->config->get('plugins.random.route');\n\n if ($route && $route == $uri->path()) {\n $this->enable([\n 'onPageInitialized' => ['onPageInitialized', 0]\n ]);\n }\n }","public function onPluginsInitialized()\n\t{\n\t\tif ( $this->isAdmin() ) {\n\t\t\t$this->active = false;\n\t\t\treturn;\n\t\t}\n\n\t\t$this->enable([\n//\t\t\t'onTwigSiteVariables' => ['onTwigSiteVariables', 0]\n\t\t\t'onTwigPageVariables' => ['onTwigSiteVariables', 0]\n\t\t]);\n\t}","function Plugin()\n\t{\n\t\t$this->Plugin_Base();\n\t}","public function onLoad()\n {\n $plugins = $this->getPluginHandler();\n $plugins->getPlugin('Message');\n }","public function onPluginsInitialized()\n {\n if (!$this->isAdmin()) {\n return;\n }\n\n $this->enable([\n 'onAdminTwigTemplatePaths' => ['onAdminTwigTemplatePaths', 0]\n ]);\n\n $this->useShortCode();\n }","function plugins_loaded(){\r\n\r\n\t\t$this->plugin_integration();\r\n\r\n\t\tWP_Job_Manager_Field_Editor_Job_Writepanels::get_instance();\r\n\t\tif( $this->wprm_active() ) WP_Job_Manager_Field_Editor_Resume_Writepanels::get_instance();\r\n\t}","public function onPluginsInitialized()\n\t{\n\t\tif ($this->isAdmin())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->enable([\n\t\t\t'onTwigExtensions' => ['onTwigExtensions', 0]\n\t\t]);\n\t}","public function onPluginsInitialized()\n {\n // if this value isset\n if (isset($_GET['return-as']) && in_array($_GET['return-as'], array('json', 'xml', 'yaml'))) {\n $this->enable([\n 'onPageInitialized' => ['deliverFormatAs', 0]\n ]);\n }\n }","function initPlugin()\n {\n $this->getAdminOptions();\n }","public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n Event::on(DataTypes::class, DataTypes::EVENT_AFTER_FETCH_FEED, function(FeedDataEvent $event) {\n if ($event->response['success']) {\n $this->_processFeed($event);\n }\n });\n\n Event::on(DataTypes::class, DataTypes::EVENT_AFTER_PARSE_FEED, function(FeedDataEvent $event) {\n if ($event->response['success']) {\n $this->_enhanceFeed($event);\n }\n });\n }","private function _postInit()\n {\n // Register all the listeners for config items\n $this->_registerConfigListeners();\n\n // Register all the listeners for invalidating GraphQL Cache.\n $this->_registerGraphQlListeners();\n\n // Load the plugins\n $this->getPlugins()->loadPlugins();\n\n $this->_isInitialized = true;\n\n // Fire an 'init' event\n if ($this->hasEventHandlers(WebApplication::EVENT_INIT)) {\n $this->trigger(WebApplication::EVENT_INIT);\n }\n\n if (!$this->getUpdates()->getIsCraftDbMigrationNeeded()) {\n // Possibly run garbage collection\n $this->getGc()->run();\n }\n }","private function hooks() {\n\t\t\t// check for EDD when plugin is activated\n\t\t\tadd_action( 'admin_init', array( $this, 'activation' ), 1 );\n\t\t\t\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// settings link on plugin page\n\t\t\tadd_filter( 'plugin_action_links_' . $this->basename, array( $this, 'settings_link' ), 10, 2 );\n\t\t\t\n\t\t\t// insert actions\n\t\t\tdo_action( 'edd_sd_setup_actions' );\n\t\t}","public function init(){\n\t\tadd_action( 'admin_init', array( $this, 'init_plugin' ), 20 );\n\t}","public function postInit()\n {\n }","public function postInit()\n {\n }","public function postInit()\n {\n }","protected function _initLoadPlugin() {\n\t\t$front = Zend_Controller_Front::getInstance();\n\t\t$front->registerPlugin(new Plugins_Myplugin() );\t\n\t}","function __construct() {\n\t\t$request = Request::getInstance();\n\t\t$plugin = Plugin::getInstance();\n\t\t$plugin->triggerEvents('load' . $request->getController());\n\t}","public function initialize_postProc() {}","public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n // Register our CP routes\n Event::on(\n UrlManager::class,\n UrlManager::EVENT_REGISTER_CP_URL_RULES,\n function(RegisterUrlRulesEvent $event) {\n $event->rules['open-id-login'] = 'open-id-login/default/defaults';\n }\n );\n \n // Do something after we're installed\n Event::on(\n Plugins::class,\n Plugins::EVENT_AFTER_LOAD_PLUGINS,\n function() {\n $this->executeLogic();\n }\n );\n\n/**\n * Logging in Craft involves using one of the following methods:\n *\n * Craft::trace(): record a message to trace how a piece of code runs. This is mainly for development use.\n * Craft::info(): record a message that conveys some useful information.\n * Craft::warning(): record a warning message that indicates something unexpected has happened.\n * Craft::error(): record a fatal error that should be investigated as soon as possible.\n *\n * Unless `devMode` is on, only Craft::warning() & Craft::error() will log to `craft/storage/logs/web.log`\n *\n * It's recommended that you pass in the magic constant `__METHOD__` as the second parameter, which sets\n * the category to the method (prefixed with the fully qualified class name) where the constant appears.\n *\n * To enable the Yii debug toolbar, go to your user account in the AdminCP and check the\n * [] Show the debug toolbar on the front end & [] Show the debug toolbar on the Control Panel\n *\n * http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html\n */\n Craft::info(\n Craft::t(\n 'open-id-login',\n '{name} plugin loaded',\n ['name' => $this->name]\n ),\n __METHOD__\n );\n }","function qa_initialize_postdb_plugins()\n{\n\tglobal $qa_pluginManager;\n\n\trequire_once QA_INCLUDE_DIR . 'app/options.php';\n\tqa_preload_options();\n\n\t$qa_pluginManager->loadPluginsAfterDbInit();\n\tqa_load_override_files();\n\n\tqa_report_process_stage('plugins_loaded');\n}","public function run()\n {\n // Attach CSS and JS files of the plugin to chat window.\n $dispatcher = EventDispatcher::getInstance();\n $dispatcher->attachListener(Events::PAGE_ADD_CSS, $this, 'attachCssFiles');\n $dispatcher->attachListener(Events::PAGE_ADD_JS, $this, 'attachJsFiles');\n $dispatcher->attachListener(Events::PAGE_ADD_JS_PLUGIN_OPTIONS, $this, 'attachPluginOptions');\n }","abstract protected function activate_plugin();","protected function _setPlugin() {\n\t\tif (!isset($this->plugin)) {\n\t\t\t$this->plugin = str_replace('EventsTest', '', get_class($this));\n\t\t}\n\t}","public function onPluginsInitialized()\n {\n if ($this->isAdmin()) {\n $this->enable( [\n 'onAdminTwigTemplatePaths' => ['onAdminTwigTemplatePaths', 0]\n ]);\n return;\n }\n\n // Enable events we are interested in\n $this->enable([\n 'onPagesInitialized' => ['onPagesInitialized', 0 ],\n 'onPageInitialized' => ['onPageInitialized', 0],\n 'onTwigTemplatePaths' => ['onTwigTemplatePaths',0]\n ]);\n $path = DATA_DIR . $this->edits_loc . DS . 'editing_for_' . date('Y-m_M_Y') . '.yaml';\n $this->logfile = File::instance($path);\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff.php';\n switch ( $this->config->get('plugins.content-edit.editReport') ) {\n case 'html_side_side':\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Html/SideBySide.php';\n $this->renderer = new \\Diff_Renderer_Html_SideBySide;\n break;\n case 'html_inline':\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Html/Inline.php';\n $this->renderer = new \\Diff_Renderer_Html_Inline;\n break;\n case 'txt_unified':\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Text/Unified.php';\n $this->renderer = new \\Diff_Renderer_Text_Unified;\n break;\n case 'txt_context':\n default:\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Text/Context.php';\n $this->renderer = new \\Diff_Renderer_Text_Context;\n }\n # verify data directory exists with correct permissions\n if (!file_exists(DATA_DIR . $this->edits_loc )) {\n mkdir(DATA_DIR . $this->edits_loc , 0775, true);\n }\n }","public function onRun()\n {\n try {\n $api = new PluginApi($this->secret, $this->dataFolder);\n $this->setResult($api->basicGet(\"/information\"));\n } catch (\\Exception $e) {\n $this->setResult($e);\n }\n }","public function admin_init () {\n $data = get_plugin_data(__FILE__);\n $this->plugin_name = $data['Name'];\n $this->plugin_version = $data['Version'];\n $this->plugin_slug = plugin_basename(__FILE__, '.php');\n $this->plugin_name_sanitized = basename(__FILE__, '.php');\n\n // init updater class to plugin updates check\n $this->updater();\n }","public function init() {\n\n // register plugin controller under /gallery/\n DatawrapperHooks::register(DatawrapperHooks::GET_PLUGIN_CONTROLLER, array($this, 'process'));\n\n DatawrapperHooks::register(DatawrapperHooks::ALTERNATIVE_SIGNIN, array($this, 'showTwitterSignInButton'));\n\n $this->checkLogin();\n }","function wp_aff_3rd_party_handle_plugins_loaded_hook() {\n wp_aff_pp_ipn_listener();\n wp_aff_check_clickbank_transaction();\n wp_aff_check_gumroad_ping();\n}","public function init() {\n\t\tadd_filter( 'plugin_action_links_meta-box/meta-box.php', [ $this, 'plugin_links' ], 20 );\n\n\t\t// Add a shared top-level admin menu and Dashboard page. Use priority 5 to show Dashboard at the top.\n\t\tadd_action( 'admin_menu', [ $this, 'add_menu' ], 5 );\n\t\tadd_action( 'admin_menu', [ $this, 'add_submenu' ], 5 );\n\n\t\t// If no admin menu, then hide the About page.\n\t\tadd_action( 'admin_head', [ $this, 'hide_page' ] );\n\n\t\t// Redirect to about page after activation.\n\t\tadd_action( 'activated_plugin', [ $this, 'redirect' ], 10, 2 );\n\t}","function __construct(){\n //\"Constants\" setup\n $this->plugin_url = plugin_dir_url(__FILE__).'/';\n $this->plugin_path = plugin_dir_path(__FILE__).'/';\n //Initialize the options\n $this->get_options();\n //check requirements\n register_activation_hook(__FILE__, array(&$this,'check_requirements'));\n //get sub-packages\n requireDir(plugin_dir_path(__FILE__).'/lib/inc');\n //here are some examples to get started with\n if(class_exists('PageTemplater')){\n add_action( 'plugins_loaded', array( 'PageTemplater', 'get_instance' ) );\n }\n if(class_exists('MSDSimpleSectionedPage')){\n add_action('admin_print_footer_scripts',array('MSDSimpleSectionedPage','info_footer_hook') ,100); \n add_action('admin_enqueue_scripts',array('MSDSimpleSectionedPage','enqueue_admin')); \n }\n if(class_exists('MSDSectionedPage')){\n add_action('admin_print_footer_scripts',array('MSDSectionedPage','info_footer_hook') ,100); \n add_action('admin_enqueue_scripts',array('MSDSectionedPage','enqueue_admin')); \n add_action( 'init', array( 'MSDSectionedPage', 'add_metaboxes' ) );\n }\n }","public function __construct() {\r\n add_action( 'plugins_loaded', [ $this, 'update_db_check' ] );\r\n \r\n }","public function plugins_loaded()\n\t{\n\t\t// Have the login plugin use frontend notifictions plugin\n\t\tif ( apply_filters( \"{$this->prefix}/create_object/use_sewn_notifications\", true ) )\n\t\t{\n\t\t\tif (! class_exists('Sewn_Notifications') ) {\n\t\t\t\tadd_filter( \"{$this->prefix}/create_object/use_sewn_notifications\", '__return_false', 9999 );\n\t\t\t}\n\t\t}\n\t}","function init_plugin() : void {\n\n\t// CSS/JS.\n\tadd_action( 'enqueue_block_assets', __NAMESPACE__ . '\\load_block_frontend_assets' );\n\tadd_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\\load_block_editor_assets' );\n\tadd_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\load_full_assets' );\n\tadd_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\load_messaging_assets' );\n\n\t// Admin-only CSS/JS.\n\tadd_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\\Admin\\load_admin_assets' );\n\tadd_filter( 'admin_body_class', __NAMESPACE__ . '\\Admin\\add_admin_body_class' );\n\n\t// Modify output.\n\tadd_filter( 'body_class', __NAMESPACE__ . '\\add_body_class' );\n\tadd_filter( 'the_content', __NAMESPACE__ . '\\Gating\\maybe_restrict_content' );\n\tadd_filter( 'the_title', __NAMESPACE__ . '\\Gating\\maybe_add_padlock_to_title', 10, 2 );\n\tadd_action( 'wp_head', __NAMESPACE__ . '\\print_meta_tag' );\n\n\t// Admin screens and settings.\n\tadd_filter( 'plugin_action_links_coil-web-monetization/plugin.php', __NAMESPACE__ . '\\Admin\\add_plugin_action_links' );\n\tadd_filter( 'plugin_row_meta', __NAMESPACE__ . '\\Admin\\add_plugin_meta_link', 10, 2 );\n\tadd_action( 'admin_menu', __NAMESPACE__ . '\\Settings\\register_admin_menu' );\n\tadd_action( 'admin_init', __NAMESPACE__ . '\\Settings\\register_admin_content_settings' );\n\tadd_action( 'admin_notices', __NAMESPACE__ . '\\Settings\\admin_welcome_notice' );\n\tadd_action( 'wp_ajax_dismiss_welcome_notice', __NAMESPACE__ . '\\Settings\\dismiss_welcome_notice' );\n\n\t// Term meta.\n\tadd_action( 'edit_term', __NAMESPACE__ . '\\Admin\\maybe_save_term_meta', 10, 3 );\n\tadd_action( 'create_term', __NAMESPACE__ . '\\Admin\\maybe_save_term_meta', 10, 3 );\n\tadd_action( 'delete_term', __NAMESPACE__ . '\\Admin\\delete_term_monetization_meta' );\n\tadd_term_edit_save_form_meta_actions();\n\n\t// Customizer settings.\n\tadd_action( 'customize_register', __NAMESPACE__ . '\\Admin\\add_customizer_messaging_panel' );\n\tadd_action( 'customize_register', __NAMESPACE__ . '\\Admin\\add_customizer_options_panel' );\n\tadd_action( 'customize_register', __NAMESPACE__ . '\\Admin\\add_customizer_learn_more_button_settings_panel' );\n\n\t// User profile settings.\n\tadd_action( 'personal_options', __NAMESPACE__ . '\\User\\add_user_profile_payment_pointer_option' );\n\tadd_action( 'personal_options_update', __NAMESPACE__ . '\\User\\maybe_save_user_profile_payment_pointer_option' );\n\tadd_action( 'edit_user_profile_update', __NAMESPACE__ . '\\User\\maybe_save_user_profile_payment_pointer_option' );\n\tadd_filter( 'option_coil_payment_pointer_id', __NAMESPACE__ . '\\User\\maybe_output_user_payment_pointer' );\n\n\t// Metaboxes.\n\tadd_action( 'load-post.php', __NAMESPACE__ . '\\Admin\\load_metaboxes' );\n\tadd_action( 'load-post-new.php', __NAMESPACE__ . '\\Admin\\load_metaboxes' );\n\tadd_action( 'save_post', __NAMESPACE__ . '\\Admin\\maybe_save_post_metabox' );\n\n\t// Modal messaging\n\tadd_action( 'wp_footer', __NAMESPACE__ . '\\load_plugin_templates' );\n\n\t// Load order - important.\n\tadd_action( 'init', __NAMESPACE__ . '\\Gating\\register_content_meta' );\n\tadd_action( 'init', __NAMESPACE__ . '\\Gating\\register_term_meta' );\n}","protected function _registerPlugins()\n\t{\n\t\t//$aclPlugin = new AclPlugins($adminAclController);\n\t\t//$logPlugin = new LogPlugins();\n\t\t\n\t\t//Daophp::getInstance() -> registerPlugin('acl', $aclPlugin);\n\t\t//Daophp::getInstance() -> registerPlugin('log', $logPlugin);\n\t}","abstract public function registerPlugin(Swift_Events_EventListener $plugin);","protected function _afterInit() {\n\t}","function __construct() {\n add_action( 'plugins_loaded', array( $this, 'ssSearchPluginsLoadedHandlers' ) );\n }","public function activatePlugin();","abstract public function register_plugin();","function _on_initialize()\n {\n }","function on_creation() {\n $this->init();\n }","function init() {\n\t\tevent_declare('EVENT_MANAGE_USER_FORM');\n\t\tplugin_event_hook('EVENT_MANAGE_USER_FORM', 'DefUgroup');\n\t\t// Delete usergroups when user is deleted\n\t\tevent_declare('EVENT_ACCOUNT_DELETED');\n\t\tplugin_event_hook('EVENT_ACCOUNT_DELETED', 'DelUgroup');\n\t}","public function _on_initialize()\n {\n }","function _init_plugin() {\n\t\tglobal $db, $apcms;\n\t\t\n\t\treturn true;\n\t}","public function eXpOnInit()\n {\n $this->addDependency(\n new \\ManiaLive\\PluginHandler\\Dependency(\"\\\\ManiaLivePlugins\\\\eXpansion\\\\Database\\\\Database\")\n );\n }","public function postConnect()\n {\n $this->Lexer->addExitPattern('', 'plugin_' . webcomponent::PLUGIN_NAME . '_' . $this->getPluginComponent());\n\n }","private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\n\t\t\t// Plugin update notifications\n\t\t\tadd_action( 'admin_init', array( $this, 'plugin_update' ) );\n\t\t}","private function hooks() {\n\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// Add template folder\n\t\t\tadd_filter( 'affwp_template_paths', array( $this, 'template' ) );\n\n\t\t}","protected function initPluginData()\n\t{\n\t\t// code here\n\t\t$this->slug = plugin_basename($this->pluginFile);\n\t\t$this->pluginData = get_plugin_data($this->pluginFile);\n\t}","static public function init() {\n\n\t\tadd_action( 'plugins_loaded', __CLASS__ . '::setup_hooks' );\n\t}","public function onLoad() {\n\t\tglobal $app;\n\n\t\t//* Register for actions\n\t\t$app->plugins->registerAction('backup_download', $this->plugin_name, 'backup_action');\n\t\t$app->plugins->registerAction('backup_restore', $this->plugin_name, 'backup_action');\n\t\t$app->plugins->registerAction('backup_delete', $this->plugin_name, 'backup_action');\n\t\t//$app->plugins->registerAction('backup_download_mail', $this->plugin_name, 'backup_action_mail');\n\t\t$app->plugins->registerAction('backup_restore_mail', $this->plugin_name, 'backup_action_mail');\n\t\t$app->plugins->registerAction('backup_delete_mail', $this->plugin_name, 'backup_action_mail');\n\t}","protected function init() {\n // Provides info to parent class, so do it early.\n if (is_admin() ) {\n $this->pluginAdmin = new Yfp_Ganalytics_Basic_Admin(__FILE__);\n }\n else {\n $this->pluginCommon = new Yfp_Ganalytics_Basic_Common();\n\n // Don't track if we aren't enabled.\n if ($this->pluginCommon->optIsEnabled()) {\n // The location of the code depends on the inHead option.\n add_action(\n $this->pluginCommon->optInHead() ? self::TOP_HOOK : self::BOTTOM_HOOK,\n array($this, 'insert_js_code')\n );\n }\n else {\n // Add a comment so we can tell the plugin is functioning, but disabled.\n add_action(\n $this->pluginCommon->optInHead() ? self::TOP_HOOK : self::BOTTOM_HOOK,\n array($this, 'disabled_message')\n );\n }\n }\n }","public function onStart()\n {\n }","protected function _initPlugins()\n {\n $front = Zend_Controller_Front::getInstance();\n $front->registerPlugin(new Mylib_Controller_Plugin_Auth());\n $front->registerPlugin(new Mylib_Controller_Plugin_Routes());\n }","public function plugin_activate(){\n\t\t\n\t\t//call our custom content type function\n\t \t$this->register_location_content_type();\n\t\t//flush permalinks\n\t\tflush_rewrite_rules();\n\t}","public function init() { \n // Check if Elementor installed and activated\n if ( ! did_action( 'elementor/loaded' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\n return;\n }\n \n // Check for required Elementor version\n if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\n return;\n }\n \n // Check for required PHP version\n if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\n return;\n }\n \n add_action( 'elementor/elements/categories_registered', 'add_elementor_widget_categories' );\n\n // Once we get here, We have passed all validation checks so we can safely include our plugin\n // require_once( __DIR__ . '/handlers/UtterancesHandler.php' );\n // require_once( __DIR__ . '/handlers/ResponsesHandler.php' );\n // require_once( __DIR__ . '/handlers/WidgetHandler.php' );\n\n Init::register_handlers([\n Handlers\\ResponsesHandler,\n ]);\n // $this->register_handlers( __DIR__ . '/handlers/');\n\n require_once( 'plugin.php' );\n }","public function __construct(){\r\n $this->init_hooks();\r\n }","protected function after_load(){\n\n\n }","function postCopyHook()\n {\n foreach ($this->plugins as &$plugin) {\n $plugin->postCopyHook();\n }\n unset($plugin);\n }","public function onAfterRouting() {\n\t\tforeach ( $this->getInstantiablePlugins() as $pluginContainer ) {\n\t\t\t$pluginContainer->trigger(\"onAfterRouting\");\n\t\t}\n\t}","public function __construct() {\n require_once __DIR__ . '/vendor/autoload.php';\n $this->define_constants();\n register_activation_hook( __FILE__, array( $this, 'activate' ) ); \n add_action( 'plugins_loaded', array( $this, 'init_plugin' ) ); \n }","function init_hooks() {\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\activate_plugin' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\deactivate_plugin' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\uninstall_plugin' );\n}","public function onShutDown()\n {\n }","public function onShutDown()\n {\n }","public function __construct() {\n\t\t/*Define Autoloader class for plugin*/\n\t\t$autoloader_path = 'includes/class-autoloader.php';\n\t\t/**\n\t\t * Include autoloader class to load all of classes inside this plugin\n\t\t */\n\t\trequire_once trailingslashit( plugin_dir_path( __FILE__ ) ) . $autoloader_path;\n\n\t\t/*Define required constant for plugin*/\n\t\tConstant::define_constant();\n\n\t\t/**\n\t\t * Register activation hook.\n\t\t * Register activation hook for this plugin by invoking activate\n\t\t * in Restaurant_Booking_Plugin class.\n\t\t *\n\t\t * @param string $file path to the plugin file.\n\t\t * @param callback $function The function to be run when the plugin is activated.\n\t\t */\n\t\tregister_activation_hook(\n\t\t\t__FILE__,\n\t\t\tfunction () {\n\t\t\t\t$this->activate(\n\t\t\t\t\tnew Activator()\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\t\t/**\n\t\t * Register deactivation hook.\n\t\t * Register deactivation hook for this plugin by invoking deactivate\n\t\t * in Restaurant_Booking_Plugin class.\n\t\t *\n\t\t * @param string $file path to the plugin file.\n\t\t * @param callback $function The function to be run when the plugin is deactivated.\n\t\t */\n\t\tregister_deactivation_hook(\n\t\t\t__FILE__,\n\t\t\tfunction () {\n\t\t\t\t$this->deactivate(\n\t\t\t\t\tnew Deactivator()\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\t\t/**\n\t\t * Register uninstall hook.\n\t\t * Register uninstall hook for this plugin by invoking uninstall\n\t\t * in Restaurant_Booking_Plugin class.\n\t\t *\n\t\t * @param string $file path to the plugin file.\n\t\t * @param callback $function The function to be run when the plugin is uninstalled.\n\t\t */\n\t\tregister_uninstall_hook(\n\t\t\t__FILE__,\n\t\t\tarray( 'Restaurant_Booking_Plugin', 'uninstall' )\n\t\t);\n\t}","protected function init($plugin_url){\n $this->plugin_url = $plugin_url;\n \treturn;\n }","private function define_admin_hooks() {\n\t\t$plugin_admin = new Soisy_Pagamento_Rateale_Admin( $this->get_plugin_name(), $this->get_version() );\n\n\t\t$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );\n $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );\n $this->loader->add_filter( 'woocommerce_payment_gateways', $plugin_admin, 'payment_methods' );\n\t\t\n $this->loader->add_filter( 'soisy_settings', $plugin_admin, 'soisy_vars' );\n\t\t\n\t\t$this->loader->add_filter('plugin_action_links', $plugin_admin,'add_soisy_action_links', 10, 2);\n\t\t\n\t\t/*\n\t\t * Payments Gateways extend WC_Payment_Gateway\n\t\t * To have them work properly they must be hooked to 'plugins_loaded'\n\t\t */\n add_action( 'plugins_loaded', 'init_Soisy_Pagamento_Rateale_Gateway_Settings');\n\t}","public function onStart() {\r\n\r\n }","protected function onInit() {}","public static function init()\n\t{\n\t\tif ( get_option( 'Activated_Plugin' ) == 'jh-data-tables' ) \n\t\t{\n\t\t\tdelete_option( 'Activated_Plugin' );\n\n\t\t\t// eg. flush the perma-link structure\n\t\t\tglobal $wp_rewrite;\n\t \t\t$wp_rewrite->flush_rules( true );\n\t\t}\n\t\t\n\t\twp_register_style( 'jh-data-tables-admin-css', plugins_url('admin.css', __FILE__) );\n\t\twp_register_script( 'jh-data-tables-ui-util-js', plugins_url('ui-util.js', __FILE__) );\n\t\twp_register_script( 'jh-data-tables-admin-js', plugins_url('admin.js', __FILE__) );\n\t\twp_register_script( 'jh-data-tables-tinymce-js', plugins_url( 'tinymce/tinymce.min.js', __FILE__) );\n\t\tadd_action( 'admin_enqueue_scripts', array('JHDataTablesAdmin', 'admin_scripts') );\n\t\t\n\t\tadd_action( 'add_meta_boxes', array('JHDataTablesAdmin', 'add_table_editor') );\n\t\tadd_action( 'save_post', array('JHDataTablesAdmin', 'save_table') );\n\t\t//add_action('admin_menu', array('JHDataTablesAdmin', 'add_admin_menus'));\n\t}","function plugins_loaded(){\r\n // $current_time = current_time('timestamp');\r\n // $this->logger->debug( 'plugins_loaded ' . $current_time );\r\n \r\n // perform recover from member mail\r\n add_action( 'wp_loaded', array( &$this->cartController, 'restore_abandon_cart' ) );\r\n }","function __construct() {\n\n // Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.\n register_activation_hook( __FILE__, array( $this, 'activate' ) );\n \n // MOVE uninstall feature to uninstall.php\n //register_uninstall_hook( __FILE__, array( $this, 'uninstall' ) );\n\n // Register hook executes just before WordPress determines which template page to load\n //add_action( 'template_redirect', array( $this, 'increase_counter_when_home_visited' ) );\n \n // Add extra submenu to the admin panel\n add_action( 'admin_menu', array( $this, 'create_menu_admin_panel' ) );\n \n // Handle POST request, admin_action_($action)\n //add_action( 'admin_action_tk_slideshow_action', array( $this, 'tk_slideshow_admin_action' ) );\n\n add_action( 'admin_post_tk_slideshow_new_action', array( $this, 'tk_slideshow_admin_new_action' ) );\n add_action( 'admin_post_tk_slideshow_edit_action', array( $this, 'tk_slideshow_admin_edit_action' ) );\n \n }","public function onStart();","function __construct() {\n\t\tPluginUpdateIgnore::__construct();\n\t\tadd_action('admin_head-plugins.php', array(&$this, 'admin_jquery'));\n\t\tadd_action('admin_head-plugins.php', array(&$this, 'admin_css'));\n\t\tadd_action('admin_footer-plugins.php', array(&$this, 'admin_js'));\n\t}","public function postLoad() { }","public function initialize() {\n\n // callback to run after theme is loaded\n add_action(\"init\", function() {\n $this->addServiceProvider( FractalProvider::class );\n $this->addServiceProvider( RouterProvider::class );\n });\n\n\n /**\n * This causes the plugin's routes to kick in only if WordPress experiences a 404\n */\n add_action(\"wp\", function() {\n\n if( is_404() )\n $this->dispatch();\n\n });\n\n // code to run when admin is loaded\n add_action(\"admin_init\", function() {\n $this->addServiceProvider( PlatesProvider::class );\n });\n\n //\n add_action(\"admin_menu\", function() {\n\n new SettingsPage($this);\n\n });\n }","public function postLoad() {}","public function init() {\n\t\tadd_action( 'admin_bar_menu', array( $this, 'health_check_troubleshoot_menu_bar' ), 999 );\n\n\t\tadd_filter( 'option_active_plugins', array( $this, 'health_check_loopback_test_disable_plugins' ) );\n\t\tadd_filter( 'option_active_sitewide_plugins', array( $this, 'health_check_loopback_test_disable_plugins' ) );\n\n\t\tadd_filter( 'pre_option_template', array( $this, 'health_check_troubleshoot_theme_template' ) );\n\t\tadd_filter( 'pre_option_stylesheet', array( $this, 'health_check_troubleshoot_theme_stylesheet' ) );\n\n\t\tadd_filter( 'wp_fatal_error_handler_enabled', array( $this, 'wp_fatal_error_handler_enabled' ) );\n\n\t\tadd_filter( 'bulk_actions-plugins', array( $this, 'remove_plugin_bulk_actions' ) );\n\t\tadd_filter( 'handle_bulk_actions-plugins', array( $this, 'handle_plugin_bulk_actions' ), 10, 3 );\n\n\t\tadd_action( 'admin_notices', array( $this, 'prompt_install_default_theme' ) );\n\t\tadd_filter( 'user_has_cap', array( $this, 'remove_plugin_theme_install' ) );\n\n\t\tadd_action( 'plugin_action_links', array( $this, 'plugin_actions' ), 50, 4 );\n\n\t\tadd_action( 'admin_notices', array( $this, 'display_dashboard_widget' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'dashboard_widget_scripts' ) );\n\n\t\tadd_action( 'wp_logout', array( $this, 'health_check_troubleshooter_mode_logout' ) );\n\t\tadd_action( 'init', array( $this, 'health_check_troubleshoot_get_captures' ) );\n\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) );\n\n\t\t/*\n\t\t * Plugin activations can be forced by other tools in things like themes, so let's\n\t\t * attempt to work around that by forcing plugin lists back and forth.\n\t\t *\n\t\t * This is not an ideal scenario, but one we must accept as reality.\n\t\t */\n\t\tadd_action( 'activated_plugin', array( $this, 'plugin_activated' ) );\n\n\t\t$this->load_options();\n\t}","private function __construct() {\n\t\t$plugin = Tribe__Events__Main::instance();\n\n\t\tadd_action( 'admin_menu', array( $this, 'register_menu_item' ) );\n\t\tadd_action( 'current_screen', array( $this, 'action_request' ) );\n\t\tadd_action( 'init', array( $this, 'init' ) );\n\n\t\t// check if the license is valid each time the page is accessed\n\t\tadd_action( 'tribe_aggregator_page_request', array( $this, 'check_for_license_updates' ) );\n\n\t\t// filter the plupload default settings to remove mime type restrictions\n\t\tadd_filter( 'plupload_default_settings', array( $this, 'filter_plupload_default_settings' ) );\n\n\t\t// Setup Tabs Instance\n\t\t$this->tabs = Tribe__Events__Aggregator__Tabs::instance();\n\n\t\ttribe_notice( 'tribe-aggregator-legacy-import-plugins-active', array( $this, 'notice_legacy_plugins' ), 'type=warning' );\n\t}","function onLoad() {\n\t\t$this->enableDedicatedEvents();\n\t\t$this->config = Config::getInstance();\n\t\t\n\n\t\tif ($this->isPluginLoaded('MLEPP\\Admin', '0.3.0')) {\n\t\t\t$this->callPublicMethod('MLEPP\\Admin', 'addAdminCommand', array($this, 'setText'), array(\"set\", \"headsup\", \"text\"), true, false, false);\n\t\t\t$this->callPublicMethod('MLEPP\\Admin', 'addAdminCommand', array($this, 'setUrl'), array(\"set\", \"headsup\", \"url\"), true, false, false);\n\t\t\t$this->callPublicMethod('MLEPP\\Admin', 'addAdminCommand', array($this, 'setWidth'), array(\"set\", \"headsup\", \"width\"), true, false, false);\n\t\t\t$this->callPublicMethod('MLEPP\\Admin', 'addAdminCommand', array($this, 'setPos'), array(\"set\", \"headsup\", \"pos\"), true, false, false);\n\t\t}\n\n\t\tConsole::println('[' . date('H:i:s') . '] [MLEPP] Plugin: HeadsUp r' . $this->getVersion());\n\t}","public function init() {\n // Check if Elementor installed and activated\n if ( ! did_action( 'elementor/loaded' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\n return;\n }\n\n // Check for required Elementor version\n if ( ! version_compare( ELEMENTOR_VERSION, MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\n return;\n }\n\n // Check for required PHP version\n if ( version_compare( PHP_VERSION, MINIMUM_PHP_VERSION, '<' ) ) {\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\n return;\n }\n\n // Once we get here, We have passed all validation checks so we can safely include our plugin\n require_once( 'plugin.php' );\n }","public static function _setup_plugin() {\n\t\t\tadd_filter( 'mce_external_plugins', array( __CLASS__, 'mce_external_plugins' ) );\n\t\t\tadd_filter( 'mce_buttons_2', array( __CLASS__, 'mce_buttons_2' ) );\n\t\t\tadd_filter( 'content_save_pre', array( __CLASS__, 'content_save_pre' ), 20 );\n\t\t}","public function loadPlugins()\n {\n try {\n $pluginModel = Plugin::model(); \n $records = $pluginModel->findAllByAttributes(array('active'=>1));\n \n foreach ($records as $record) {\n $this->loadPlugin($record->name, $record->id);\n }\n } catch (Exception $exc) {\n // Something went wrong, maybe no database was present so we load no plugins\n }\n\n $this->dispatchEvent(new PluginEvent('afterPluginLoad', $this)); // Alow plugins to do stuff after all plugins are loaded\n }","private function define_admin_hooks()\n {\n $this->loader->add_action('init',$this,'load_options');\n $this->loader->add_action('plugins_loaded','WordPress_Reactro_Admin', 'load_framework');\n }","public function init_hooks() {\n\t\tadd_action( 'vc_after_mapping', array( $this, 'vc_after_mapping' ) );\n\t}","public function admin_init(){\n\t\t\t/* Add theme update data */\n\t\t\tif('plugin' !== $this->config['type']){\n\t\t\t\tadd_filter('pre_set_site_transient_update_themes', array($this, 'add_theme_update_data'), 10, 2);\n\t\t\t}\n\t\t\t/* Add plugin update data */\n\t\t\tif('theme' !== $this->config['type']){\n\t\t\t\tadd_filter('pre_set_site_transient_update_plugins', array($this, 'add_plugin_update_data'), 10, 2);\n\t\t\t}\n\t\t\t/* Plugin Information */\n\t\t\tif('theme' !== $this->config['type']){\n\t\t\t\tadd_filter('plugins_api_result', array($this, 'plugin_info'), 10, 3);\n\t\t\t}\n\t\t}","public function __construct() {\n\n\t\t\t/* Load plugin files */\n\t\t\tself::load_plugin_files();\n\t\t}","public function init() {\n\n\t\t\t// Set up localisation\n\t\t\t$this->load_plugin_textdomain();\n\t\t}","function plugin_action_handler( $plugin='' ) {\n\t\t$this->add_ping( 'plugins', array( 'name' => $plugin ) );\n\t}"],"string":"[\n \"public function initializePlugin();\",\n \"protected function init_lifecycle_handler() {\\n\\n\\t\\trequire_once( $this->get_plugin_path() . '/includes/Lifecycle.php' );\\n\\n\\t\\t$this->lifecycle_handler = new \\\\SkyVerge\\\\WooCommerce\\\\Elavon_Converge\\\\Lifecycle( $this );\\n\\t}\",\n \"public function onPluginsInitialized()\\n {\\n if ($this->isAdmin()) {\\n // For speed-up when the admin plugin is active\\n $this->active = false;\\n } else {\\n if ($this->config->get('plugins.googlemaps.enabled')) {\\n // if the plugin is active globally, subscribe to additional events\\n $this->enable([\\n 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],\\n 'onPageInitialized' => ['onPageInitialized', 0]\\n ]);\\n }\\n }\\n }\",\n \"public function init_plugin()\\n {\\n }\",\n \"public function onPluginsInitialized()\\n {\\n $this->processDeprecatedSettings();\\n }\",\n \"public function bootPlugin();\",\n \"protected function init_lifecycle_handler() {\\n\\n\\t\\trequire_once( $this->get_plugin_path() . '/includes/class-wc-pip-lifecycle.php' );\\n\\n\\t\\t$this->lifecycle_handler = new \\\\SkyVerge\\\\WooCommerce\\\\PIP\\\\Lifecycle( $this );\\n\\t}\",\n \"public function init()\\n {\\n parent::init();\\n self::$plugin = $this;\\n\\n // Register services\\n $this->setComponents([\\n 'oembed' => oEmbedService::class,\\n 'providers' => Providers::class\\n ]);\\n\\n // Caching\\n Event::on(\\n ClearCaches::class,\\n ClearCaches::EVENT_REGISTER_TAG_OPTIONS,\\n function(RegisterCacheOptionsEvent $event)\\n {\\n $event->options[] = [\\n 'tag' => 'oembed',\\n 'label' => Craft::t('oembed', 'oEmbed caches'),\\n ];\\n }\\n );\\n\\n // Register our field type.\\n Event::on(\\n Fields::class,\\n Fields::EVENT_REGISTER_FIELD_TYPES,\\n function(RegisterComponentTypesEvent $event) {\\n $event->types[] = Field::class;\\n }\\n );\\n\\n // Register variable\\n Event::on(\\n CraftVariable::class,\\n CraftVariable::EVENT_INIT,\\n static function (Event $event) {\\n /** @var CraftVariable $variable */\\n $variable = $event->sender;\\n $variable->set('oembed', oEmbedVariable::class);\\n }\\n );\\n\\n /**\\n * Logging in Craft involves using one of the following methods:\\n *\\n * http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html\\n */\\n Craft::info(\\n Craft::t(\\n 'oembed',\\n '{name} plugin loaded',\\n ['name' => $this->name]\\n ),\\n __METHOD__\\n );\\n }\",\n \"public static function init()\\n {\\n add_action('plugins_loaded', array(self::instance(), '_setup'));\\n }\",\n \"public function plugin_construction() {\\t\\r\\n\\t\\r\\n\\t}\",\n \"function Doku_Event_Handler() {\\n\\n // load action plugins\\n $plugin = NULL;\\n $pluginlist = plugin_list('action');\\n\\n foreach ($pluginlist as $plugin_name) {\\n $plugin =& plugin_load('action',$plugin_name);\\n\\n if ($plugin !== NULL) $plugin->register($this);\\n }\\n }\",\n \"public function onPluginsInitialized()\\n {\\n if ($this->isAdmin()) {\\n $this->active = false;\\n return;\\n }\\n\\n /** @var Uri $uri */\\n $uri = $this->grav['uri'];\\n $route = $this->config->get('plugins.random.route');\\n\\n if ($route && $route == $uri->path()) {\\n $this->enable([\\n 'onPageInitialized' => ['onPageInitialized', 0]\\n ]);\\n }\\n }\",\n \"public function onPluginsInitialized()\\n\\t{\\n\\t\\tif ( $this->isAdmin() ) {\\n\\t\\t\\t$this->active = false;\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t$this->enable([\\n//\\t\\t\\t'onTwigSiteVariables' => ['onTwigSiteVariables', 0]\\n\\t\\t\\t'onTwigPageVariables' => ['onTwigSiteVariables', 0]\\n\\t\\t]);\\n\\t}\",\n \"function Plugin()\\n\\t{\\n\\t\\t$this->Plugin_Base();\\n\\t}\",\n \"public function onLoad()\\n {\\n $plugins = $this->getPluginHandler();\\n $plugins->getPlugin('Message');\\n }\",\n \"public function onPluginsInitialized()\\n {\\n if (!$this->isAdmin()) {\\n return;\\n }\\n\\n $this->enable([\\n 'onAdminTwigTemplatePaths' => ['onAdminTwigTemplatePaths', 0]\\n ]);\\n\\n $this->useShortCode();\\n }\",\n \"function plugins_loaded(){\\r\\n\\r\\n\\t\\t$this->plugin_integration();\\r\\n\\r\\n\\t\\tWP_Job_Manager_Field_Editor_Job_Writepanels::get_instance();\\r\\n\\t\\tif( $this->wprm_active() ) WP_Job_Manager_Field_Editor_Resume_Writepanels::get_instance();\\r\\n\\t}\",\n \"public function onPluginsInitialized()\\n\\t{\\n\\t\\tif ($this->isAdmin())\\n\\t\\t{\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t$this->enable([\\n\\t\\t\\t'onTwigExtensions' => ['onTwigExtensions', 0]\\n\\t\\t]);\\n\\t}\",\n \"public function onPluginsInitialized()\\n {\\n // if this value isset\\n if (isset($_GET['return-as']) && in_array($_GET['return-as'], array('json', 'xml', 'yaml'))) {\\n $this->enable([\\n 'onPageInitialized' => ['deliverFormatAs', 0]\\n ]);\\n }\\n }\",\n \"function initPlugin()\\n {\\n $this->getAdminOptions();\\n }\",\n \"public function init()\\n {\\n parent::init();\\n self::$plugin = $this;\\n\\n Event::on(DataTypes::class, DataTypes::EVENT_AFTER_FETCH_FEED, function(FeedDataEvent $event) {\\n if ($event->response['success']) {\\n $this->_processFeed($event);\\n }\\n });\\n\\n Event::on(DataTypes::class, DataTypes::EVENT_AFTER_PARSE_FEED, function(FeedDataEvent $event) {\\n if ($event->response['success']) {\\n $this->_enhanceFeed($event);\\n }\\n });\\n }\",\n \"private function _postInit()\\n {\\n // Register all the listeners for config items\\n $this->_registerConfigListeners();\\n\\n // Register all the listeners for invalidating GraphQL Cache.\\n $this->_registerGraphQlListeners();\\n\\n // Load the plugins\\n $this->getPlugins()->loadPlugins();\\n\\n $this->_isInitialized = true;\\n\\n // Fire an 'init' event\\n if ($this->hasEventHandlers(WebApplication::EVENT_INIT)) {\\n $this->trigger(WebApplication::EVENT_INIT);\\n }\\n\\n if (!$this->getUpdates()->getIsCraftDbMigrationNeeded()) {\\n // Possibly run garbage collection\\n $this->getGc()->run();\\n }\\n }\",\n \"private function hooks() {\\n\\t\\t\\t// check for EDD when plugin is activated\\n\\t\\t\\tadd_action( 'admin_init', array( $this, 'activation' ), 1 );\\n\\t\\t\\t\\n\\t\\t\\t// plugin meta\\n\\t\\t\\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\\n\\n\\t\\t\\t// settings link on plugin page\\n\\t\\t\\tadd_filter( 'plugin_action_links_' . $this->basename, array( $this, 'settings_link' ), 10, 2 );\\n\\t\\t\\t\\n\\t\\t\\t// insert actions\\n\\t\\t\\tdo_action( 'edd_sd_setup_actions' );\\n\\t\\t}\",\n \"public function init(){\\n\\t\\tadd_action( 'admin_init', array( $this, 'init_plugin' ), 20 );\\n\\t}\",\n \"public function postInit()\\n {\\n }\",\n \"public function postInit()\\n {\\n }\",\n \"public function postInit()\\n {\\n }\",\n \"protected function _initLoadPlugin() {\\n\\t\\t$front = Zend_Controller_Front::getInstance();\\n\\t\\t$front->registerPlugin(new Plugins_Myplugin() );\\t\\n\\t}\",\n \"function __construct() {\\n\\t\\t$request = Request::getInstance();\\n\\t\\t$plugin = Plugin::getInstance();\\n\\t\\t$plugin->triggerEvents('load' . $request->getController());\\n\\t}\",\n \"public function initialize_postProc() {}\",\n \"public function init()\\n {\\n parent::init();\\n self::$plugin = $this;\\n\\n // Register our CP routes\\n Event::on(\\n UrlManager::class,\\n UrlManager::EVENT_REGISTER_CP_URL_RULES,\\n function(RegisterUrlRulesEvent $event) {\\n $event->rules['open-id-login'] = 'open-id-login/default/defaults';\\n }\\n );\\n \\n // Do something after we're installed\\n Event::on(\\n Plugins::class,\\n Plugins::EVENT_AFTER_LOAD_PLUGINS,\\n function() {\\n $this->executeLogic();\\n }\\n );\\n\\n/**\\n * Logging in Craft involves using one of the following methods:\\n *\\n * Craft::trace(): record a message to trace how a piece of code runs. This is mainly for development use.\\n * Craft::info(): record a message that conveys some useful information.\\n * Craft::warning(): record a warning message that indicates something unexpected has happened.\\n * Craft::error(): record a fatal error that should be investigated as soon as possible.\\n *\\n * Unless `devMode` is on, only Craft::warning() & Craft::error() will log to `craft/storage/logs/web.log`\\n *\\n * It's recommended that you pass in the magic constant `__METHOD__` as the second parameter, which sets\\n * the category to the method (prefixed with the fully qualified class name) where the constant appears.\\n *\\n * To enable the Yii debug toolbar, go to your user account in the AdminCP and check the\\n * [] Show the debug toolbar on the front end & [] Show the debug toolbar on the Control Panel\\n *\\n * http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html\\n */\\n Craft::info(\\n Craft::t(\\n 'open-id-login',\\n '{name} plugin loaded',\\n ['name' => $this->name]\\n ),\\n __METHOD__\\n );\\n }\",\n \"function qa_initialize_postdb_plugins()\\n{\\n\\tglobal $qa_pluginManager;\\n\\n\\trequire_once QA_INCLUDE_DIR . 'app/options.php';\\n\\tqa_preload_options();\\n\\n\\t$qa_pluginManager->loadPluginsAfterDbInit();\\n\\tqa_load_override_files();\\n\\n\\tqa_report_process_stage('plugins_loaded');\\n}\",\n \"public function run()\\n {\\n // Attach CSS and JS files of the plugin to chat window.\\n $dispatcher = EventDispatcher::getInstance();\\n $dispatcher->attachListener(Events::PAGE_ADD_CSS, $this, 'attachCssFiles');\\n $dispatcher->attachListener(Events::PAGE_ADD_JS, $this, 'attachJsFiles');\\n $dispatcher->attachListener(Events::PAGE_ADD_JS_PLUGIN_OPTIONS, $this, 'attachPluginOptions');\\n }\",\n \"abstract protected function activate_plugin();\",\n \"protected function _setPlugin() {\\n\\t\\tif (!isset($this->plugin)) {\\n\\t\\t\\t$this->plugin = str_replace('EventsTest', '', get_class($this));\\n\\t\\t}\\n\\t}\",\n \"public function onPluginsInitialized()\\n {\\n if ($this->isAdmin()) {\\n $this->enable( [\\n 'onAdminTwigTemplatePaths' => ['onAdminTwigTemplatePaths', 0]\\n ]);\\n return;\\n }\\n\\n // Enable events we are interested in\\n $this->enable([\\n 'onPagesInitialized' => ['onPagesInitialized', 0 ],\\n 'onPageInitialized' => ['onPageInitialized', 0],\\n 'onTwigTemplatePaths' => ['onTwigTemplatePaths',0]\\n ]);\\n $path = DATA_DIR . $this->edits_loc . DS . 'editing_for_' . date('Y-m_M_Y') . '.yaml';\\n $this->logfile = File::instance($path);\\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff.php';\\n switch ( $this->config->get('plugins.content-edit.editReport') ) {\\n case 'html_side_side':\\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Html/SideBySide.php';\\n $this->renderer = new \\\\Diff_Renderer_Html_SideBySide;\\n break;\\n case 'html_inline':\\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Html/Inline.php';\\n $this->renderer = new \\\\Diff_Renderer_Html_Inline;\\n break;\\n case 'txt_unified':\\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Text/Unified.php';\\n $this->renderer = new \\\\Diff_Renderer_Text_Unified;\\n break;\\n case 'txt_context':\\n default:\\n require_once __DIR__ . '/embedded/php-diff-master/lib/Diff/Renderer/Text/Context.php';\\n $this->renderer = new \\\\Diff_Renderer_Text_Context;\\n }\\n # verify data directory exists with correct permissions\\n if (!file_exists(DATA_DIR . $this->edits_loc )) {\\n mkdir(DATA_DIR . $this->edits_loc , 0775, true);\\n }\\n }\",\n \"public function onRun()\\n {\\n try {\\n $api = new PluginApi($this->secret, $this->dataFolder);\\n $this->setResult($api->basicGet(\\\"/information\\\"));\\n } catch (\\\\Exception $e) {\\n $this->setResult($e);\\n }\\n }\",\n \"public function admin_init () {\\n $data = get_plugin_data(__FILE__);\\n $this->plugin_name = $data['Name'];\\n $this->plugin_version = $data['Version'];\\n $this->plugin_slug = plugin_basename(__FILE__, '.php');\\n $this->plugin_name_sanitized = basename(__FILE__, '.php');\\n\\n // init updater class to plugin updates check\\n $this->updater();\\n }\",\n \"public function init() {\\n\\n // register plugin controller under /gallery/\\n DatawrapperHooks::register(DatawrapperHooks::GET_PLUGIN_CONTROLLER, array($this, 'process'));\\n\\n DatawrapperHooks::register(DatawrapperHooks::ALTERNATIVE_SIGNIN, array($this, 'showTwitterSignInButton'));\\n\\n $this->checkLogin();\\n }\",\n \"function wp_aff_3rd_party_handle_plugins_loaded_hook() {\\n wp_aff_pp_ipn_listener();\\n wp_aff_check_clickbank_transaction();\\n wp_aff_check_gumroad_ping();\\n}\",\n \"public function init() {\\n\\t\\tadd_filter( 'plugin_action_links_meta-box/meta-box.php', [ $this, 'plugin_links' ], 20 );\\n\\n\\t\\t// Add a shared top-level admin menu and Dashboard page. Use priority 5 to show Dashboard at the top.\\n\\t\\tadd_action( 'admin_menu', [ $this, 'add_menu' ], 5 );\\n\\t\\tadd_action( 'admin_menu', [ $this, 'add_submenu' ], 5 );\\n\\n\\t\\t// If no admin menu, then hide the About page.\\n\\t\\tadd_action( 'admin_head', [ $this, 'hide_page' ] );\\n\\n\\t\\t// Redirect to about page after activation.\\n\\t\\tadd_action( 'activated_plugin', [ $this, 'redirect' ], 10, 2 );\\n\\t}\",\n \"function __construct(){\\n //\\\"Constants\\\" setup\\n $this->plugin_url = plugin_dir_url(__FILE__).'/';\\n $this->plugin_path = plugin_dir_path(__FILE__).'/';\\n //Initialize the options\\n $this->get_options();\\n //check requirements\\n register_activation_hook(__FILE__, array(&$this,'check_requirements'));\\n //get sub-packages\\n requireDir(plugin_dir_path(__FILE__).'/lib/inc');\\n //here are some examples to get started with\\n if(class_exists('PageTemplater')){\\n add_action( 'plugins_loaded', array( 'PageTemplater', 'get_instance' ) );\\n }\\n if(class_exists('MSDSimpleSectionedPage')){\\n add_action('admin_print_footer_scripts',array('MSDSimpleSectionedPage','info_footer_hook') ,100); \\n add_action('admin_enqueue_scripts',array('MSDSimpleSectionedPage','enqueue_admin')); \\n }\\n if(class_exists('MSDSectionedPage')){\\n add_action('admin_print_footer_scripts',array('MSDSectionedPage','info_footer_hook') ,100); \\n add_action('admin_enqueue_scripts',array('MSDSectionedPage','enqueue_admin')); \\n add_action( 'init', array( 'MSDSectionedPage', 'add_metaboxes' ) );\\n }\\n }\",\n \"public function __construct() {\\r\\n add_action( 'plugins_loaded', [ $this, 'update_db_check' ] );\\r\\n \\r\\n }\",\n \"public function plugins_loaded()\\n\\t{\\n\\t\\t// Have the login plugin use frontend notifictions plugin\\n\\t\\tif ( apply_filters( \\\"{$this->prefix}/create_object/use_sewn_notifications\\\", true ) )\\n\\t\\t{\\n\\t\\t\\tif (! class_exists('Sewn_Notifications') ) {\\n\\t\\t\\t\\tadd_filter( \\\"{$this->prefix}/create_object/use_sewn_notifications\\\", '__return_false', 9999 );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function init_plugin() : void {\\n\\n\\t// CSS/JS.\\n\\tadd_action( 'enqueue_block_assets', __NAMESPACE__ . '\\\\load_block_frontend_assets' );\\n\\tadd_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\\\\load_block_editor_assets' );\\n\\tadd_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\\\load_full_assets' );\\n\\tadd_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\\\load_messaging_assets' );\\n\\n\\t// Admin-only CSS/JS.\\n\\tadd_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\\\\Admin\\\\load_admin_assets' );\\n\\tadd_filter( 'admin_body_class', __NAMESPACE__ . '\\\\Admin\\\\add_admin_body_class' );\\n\\n\\t// Modify output.\\n\\tadd_filter( 'body_class', __NAMESPACE__ . '\\\\add_body_class' );\\n\\tadd_filter( 'the_content', __NAMESPACE__ . '\\\\Gating\\\\maybe_restrict_content' );\\n\\tadd_filter( 'the_title', __NAMESPACE__ . '\\\\Gating\\\\maybe_add_padlock_to_title', 10, 2 );\\n\\tadd_action( 'wp_head', __NAMESPACE__ . '\\\\print_meta_tag' );\\n\\n\\t// Admin screens and settings.\\n\\tadd_filter( 'plugin_action_links_coil-web-monetization/plugin.php', __NAMESPACE__ . '\\\\Admin\\\\add_plugin_action_links' );\\n\\tadd_filter( 'plugin_row_meta', __NAMESPACE__ . '\\\\Admin\\\\add_plugin_meta_link', 10, 2 );\\n\\tadd_action( 'admin_menu', __NAMESPACE__ . '\\\\Settings\\\\register_admin_menu' );\\n\\tadd_action( 'admin_init', __NAMESPACE__ . '\\\\Settings\\\\register_admin_content_settings' );\\n\\tadd_action( 'admin_notices', __NAMESPACE__ . '\\\\Settings\\\\admin_welcome_notice' );\\n\\tadd_action( 'wp_ajax_dismiss_welcome_notice', __NAMESPACE__ . '\\\\Settings\\\\dismiss_welcome_notice' );\\n\\n\\t// Term meta.\\n\\tadd_action( 'edit_term', __NAMESPACE__ . '\\\\Admin\\\\maybe_save_term_meta', 10, 3 );\\n\\tadd_action( 'create_term', __NAMESPACE__ . '\\\\Admin\\\\maybe_save_term_meta', 10, 3 );\\n\\tadd_action( 'delete_term', __NAMESPACE__ . '\\\\Admin\\\\delete_term_monetization_meta' );\\n\\tadd_term_edit_save_form_meta_actions();\\n\\n\\t// Customizer settings.\\n\\tadd_action( 'customize_register', __NAMESPACE__ . '\\\\Admin\\\\add_customizer_messaging_panel' );\\n\\tadd_action( 'customize_register', __NAMESPACE__ . '\\\\Admin\\\\add_customizer_options_panel' );\\n\\tadd_action( 'customize_register', __NAMESPACE__ . '\\\\Admin\\\\add_customizer_learn_more_button_settings_panel' );\\n\\n\\t// User profile settings.\\n\\tadd_action( 'personal_options', __NAMESPACE__ . '\\\\User\\\\add_user_profile_payment_pointer_option' );\\n\\tadd_action( 'personal_options_update', __NAMESPACE__ . '\\\\User\\\\maybe_save_user_profile_payment_pointer_option' );\\n\\tadd_action( 'edit_user_profile_update', __NAMESPACE__ . '\\\\User\\\\maybe_save_user_profile_payment_pointer_option' );\\n\\tadd_filter( 'option_coil_payment_pointer_id', __NAMESPACE__ . '\\\\User\\\\maybe_output_user_payment_pointer' );\\n\\n\\t// Metaboxes.\\n\\tadd_action( 'load-post.php', __NAMESPACE__ . '\\\\Admin\\\\load_metaboxes' );\\n\\tadd_action( 'load-post-new.php', __NAMESPACE__ . '\\\\Admin\\\\load_metaboxes' );\\n\\tadd_action( 'save_post', __NAMESPACE__ . '\\\\Admin\\\\maybe_save_post_metabox' );\\n\\n\\t// Modal messaging\\n\\tadd_action( 'wp_footer', __NAMESPACE__ . '\\\\load_plugin_templates' );\\n\\n\\t// Load order - important.\\n\\tadd_action( 'init', __NAMESPACE__ . '\\\\Gating\\\\register_content_meta' );\\n\\tadd_action( 'init', __NAMESPACE__ . '\\\\Gating\\\\register_term_meta' );\\n}\",\n \"protected function _registerPlugins()\\n\\t{\\n\\t\\t//$aclPlugin = new AclPlugins($adminAclController);\\n\\t\\t//$logPlugin = new LogPlugins();\\n\\t\\t\\n\\t\\t//Daophp::getInstance() -> registerPlugin('acl', $aclPlugin);\\n\\t\\t//Daophp::getInstance() -> registerPlugin('log', $logPlugin);\\n\\t}\",\n \"abstract public function registerPlugin(Swift_Events_EventListener $plugin);\",\n \"protected function _afterInit() {\\n\\t}\",\n \"function __construct() {\\n add_action( 'plugins_loaded', array( $this, 'ssSearchPluginsLoadedHandlers' ) );\\n }\",\n \"public function activatePlugin();\",\n \"abstract public function register_plugin();\",\n \"function _on_initialize()\\n {\\n }\",\n \"function on_creation() {\\n $this->init();\\n }\",\n \"function init() {\\n\\t\\tevent_declare('EVENT_MANAGE_USER_FORM');\\n\\t\\tplugin_event_hook('EVENT_MANAGE_USER_FORM', 'DefUgroup');\\n\\t\\t// Delete usergroups when user is deleted\\n\\t\\tevent_declare('EVENT_ACCOUNT_DELETED');\\n\\t\\tplugin_event_hook('EVENT_ACCOUNT_DELETED', 'DelUgroup');\\n\\t}\",\n \"public function _on_initialize()\\n {\\n }\",\n \"function _init_plugin() {\\n\\t\\tglobal $db, $apcms;\\n\\t\\t\\n\\t\\treturn true;\\n\\t}\",\n \"public function eXpOnInit()\\n {\\n $this->addDependency(\\n new \\\\ManiaLive\\\\PluginHandler\\\\Dependency(\\\"\\\\\\\\ManiaLivePlugins\\\\\\\\eXpansion\\\\\\\\Database\\\\\\\\Database\\\")\\n );\\n }\",\n \"public function postConnect()\\n {\\n $this->Lexer->addExitPattern('', 'plugin_' . webcomponent::PLUGIN_NAME . '_' . $this->getPluginComponent());\\n\\n }\",\n \"private function init_hooks() {\\n\\t\\t\\tadd_action( 'init', array( $this, 'init' ), 0 );\\n\\t\\t\\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\\n\\n\\t\\t\\t// Plugin update notifications\\n\\t\\t\\tadd_action( 'admin_init', array( $this, 'plugin_update' ) );\\n\\t\\t}\",\n \"private function hooks() {\\n\\n\\t\\t\\t// plugin meta\\n\\t\\t\\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\\n\\n\\t\\t\\t// Add template folder\\n\\t\\t\\tadd_filter( 'affwp_template_paths', array( $this, 'template' ) );\\n\\n\\t\\t}\",\n \"protected function initPluginData()\\n\\t{\\n\\t\\t// code here\\n\\t\\t$this->slug = plugin_basename($this->pluginFile);\\n\\t\\t$this->pluginData = get_plugin_data($this->pluginFile);\\n\\t}\",\n \"static public function init() {\\n\\n\\t\\tadd_action( 'plugins_loaded', __CLASS__ . '::setup_hooks' );\\n\\t}\",\n \"public function onLoad() {\\n\\t\\tglobal $app;\\n\\n\\t\\t//* Register for actions\\n\\t\\t$app->plugins->registerAction('backup_download', $this->plugin_name, 'backup_action');\\n\\t\\t$app->plugins->registerAction('backup_restore', $this->plugin_name, 'backup_action');\\n\\t\\t$app->plugins->registerAction('backup_delete', $this->plugin_name, 'backup_action');\\n\\t\\t//$app->plugins->registerAction('backup_download_mail', $this->plugin_name, 'backup_action_mail');\\n\\t\\t$app->plugins->registerAction('backup_restore_mail', $this->plugin_name, 'backup_action_mail');\\n\\t\\t$app->plugins->registerAction('backup_delete_mail', $this->plugin_name, 'backup_action_mail');\\n\\t}\",\n \"protected function init() {\\n // Provides info to parent class, so do it early.\\n if (is_admin() ) {\\n $this->pluginAdmin = new Yfp_Ganalytics_Basic_Admin(__FILE__);\\n }\\n else {\\n $this->pluginCommon = new Yfp_Ganalytics_Basic_Common();\\n\\n // Don't track if we aren't enabled.\\n if ($this->pluginCommon->optIsEnabled()) {\\n // The location of the code depends on the inHead option.\\n add_action(\\n $this->pluginCommon->optInHead() ? self::TOP_HOOK : self::BOTTOM_HOOK,\\n array($this, 'insert_js_code')\\n );\\n }\\n else {\\n // Add a comment so we can tell the plugin is functioning, but disabled.\\n add_action(\\n $this->pluginCommon->optInHead() ? self::TOP_HOOK : self::BOTTOM_HOOK,\\n array($this, 'disabled_message')\\n );\\n }\\n }\\n }\",\n \"public function onStart()\\n {\\n }\",\n \"protected function _initPlugins()\\n {\\n $front = Zend_Controller_Front::getInstance();\\n $front->registerPlugin(new Mylib_Controller_Plugin_Auth());\\n $front->registerPlugin(new Mylib_Controller_Plugin_Routes());\\n }\",\n \"public function plugin_activate(){\\n\\t\\t\\n\\t\\t//call our custom content type function\\n\\t \\t$this->register_location_content_type();\\n\\t\\t//flush permalinks\\n\\t\\tflush_rewrite_rules();\\n\\t}\",\n \"public function init() { \\n // Check if Elementor installed and activated\\n if ( ! did_action( 'elementor/loaded' ) ) {\\n add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\\n return;\\n }\\n \\n // Check for required Elementor version\\n if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\\n return;\\n }\\n \\n // Check for required PHP version\\n if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {\\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\\n return;\\n }\\n \\n add_action( 'elementor/elements/categories_registered', 'add_elementor_widget_categories' );\\n\\n // Once we get here, We have passed all validation checks so we can safely include our plugin\\n // require_once( __DIR__ . '/handlers/UtterancesHandler.php' );\\n // require_once( __DIR__ . '/handlers/ResponsesHandler.php' );\\n // require_once( __DIR__ . '/handlers/WidgetHandler.php' );\\n\\n Init::register_handlers([\\n Handlers\\\\ResponsesHandler,\\n ]);\\n // $this->register_handlers( __DIR__ . '/handlers/');\\n\\n require_once( 'plugin.php' );\\n }\",\n \"public function __construct(){\\r\\n $this->init_hooks();\\r\\n }\",\n \"protected function after_load(){\\n\\n\\n }\",\n \"function postCopyHook()\\n {\\n foreach ($this->plugins as &$plugin) {\\n $plugin->postCopyHook();\\n }\\n unset($plugin);\\n }\",\n \"public function onAfterRouting() {\\n\\t\\tforeach ( $this->getInstantiablePlugins() as $pluginContainer ) {\\n\\t\\t\\t$pluginContainer->trigger(\\\"onAfterRouting\\\");\\n\\t\\t}\\n\\t}\",\n \"public function __construct() {\\n require_once __DIR__ . '/vendor/autoload.php';\\n $this->define_constants();\\n register_activation_hook( __FILE__, array( $this, 'activate' ) ); \\n add_action( 'plugins_loaded', array( $this, 'init_plugin' ) ); \\n }\",\n \"function init_hooks() {\\n\\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\\\activate_plugin' );\\n\\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\\\deactivate_plugin' );\\n\\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\\\uninstall_plugin' );\\n}\",\n \"public function onShutDown()\\n {\\n }\",\n \"public function onShutDown()\\n {\\n }\",\n \"public function __construct() {\\n\\t\\t/*Define Autoloader class for plugin*/\\n\\t\\t$autoloader_path = 'includes/class-autoloader.php';\\n\\t\\t/**\\n\\t\\t * Include autoloader class to load all of classes inside this plugin\\n\\t\\t */\\n\\t\\trequire_once trailingslashit( plugin_dir_path( __FILE__ ) ) . $autoloader_path;\\n\\n\\t\\t/*Define required constant for plugin*/\\n\\t\\tConstant::define_constant();\\n\\n\\t\\t/**\\n\\t\\t * Register activation hook.\\n\\t\\t * Register activation hook for this plugin by invoking activate\\n\\t\\t * in Restaurant_Booking_Plugin class.\\n\\t\\t *\\n\\t\\t * @param string $file path to the plugin file.\\n\\t\\t * @param callback $function The function to be run when the plugin is activated.\\n\\t\\t */\\n\\t\\tregister_activation_hook(\\n\\t\\t\\t__FILE__,\\n\\t\\t\\tfunction () {\\n\\t\\t\\t\\t$this->activate(\\n\\t\\t\\t\\t\\tnew Activator()\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\t\\t);\\n\\t\\t/**\\n\\t\\t * Register deactivation hook.\\n\\t\\t * Register deactivation hook for this plugin by invoking deactivate\\n\\t\\t * in Restaurant_Booking_Plugin class.\\n\\t\\t *\\n\\t\\t * @param string $file path to the plugin file.\\n\\t\\t * @param callback $function The function to be run when the plugin is deactivated.\\n\\t\\t */\\n\\t\\tregister_deactivation_hook(\\n\\t\\t\\t__FILE__,\\n\\t\\t\\tfunction () {\\n\\t\\t\\t\\t$this->deactivate(\\n\\t\\t\\t\\t\\tnew Deactivator()\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\t\\t);\\n\\t\\t/**\\n\\t\\t * Register uninstall hook.\\n\\t\\t * Register uninstall hook for this plugin by invoking uninstall\\n\\t\\t * in Restaurant_Booking_Plugin class.\\n\\t\\t *\\n\\t\\t * @param string $file path to the plugin file.\\n\\t\\t * @param callback $function The function to be run when the plugin is uninstalled.\\n\\t\\t */\\n\\t\\tregister_uninstall_hook(\\n\\t\\t\\t__FILE__,\\n\\t\\t\\tarray( 'Restaurant_Booking_Plugin', 'uninstall' )\\n\\t\\t);\\n\\t}\",\n \"protected function init($plugin_url){\\n $this->plugin_url = $plugin_url;\\n \\treturn;\\n }\",\n \"private function define_admin_hooks() {\\n\\t\\t$plugin_admin = new Soisy_Pagamento_Rateale_Admin( $this->get_plugin_name(), $this->get_version() );\\n\\n\\t\\t$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );\\n $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );\\n $this->loader->add_filter( 'woocommerce_payment_gateways', $plugin_admin, 'payment_methods' );\\n\\t\\t\\n $this->loader->add_filter( 'soisy_settings', $plugin_admin, 'soisy_vars' );\\n\\t\\t\\n\\t\\t$this->loader->add_filter('plugin_action_links', $plugin_admin,'add_soisy_action_links', 10, 2);\\n\\t\\t\\n\\t\\t/*\\n\\t\\t * Payments Gateways extend WC_Payment_Gateway\\n\\t\\t * To have them work properly they must be hooked to 'plugins_loaded'\\n\\t\\t */\\n add_action( 'plugins_loaded', 'init_Soisy_Pagamento_Rateale_Gateway_Settings');\\n\\t}\",\n \"public function onStart() {\\r\\n\\r\\n }\",\n \"protected function onInit() {}\",\n \"public static function init()\\n\\t{\\n\\t\\tif ( get_option( 'Activated_Plugin' ) == 'jh-data-tables' ) \\n\\t\\t{\\n\\t\\t\\tdelete_option( 'Activated_Plugin' );\\n\\n\\t\\t\\t// eg. flush the perma-link structure\\n\\t\\t\\tglobal $wp_rewrite;\\n\\t \\t\\t$wp_rewrite->flush_rules( true );\\n\\t\\t}\\n\\t\\t\\n\\t\\twp_register_style( 'jh-data-tables-admin-css', plugins_url('admin.css', __FILE__) );\\n\\t\\twp_register_script( 'jh-data-tables-ui-util-js', plugins_url('ui-util.js', __FILE__) );\\n\\t\\twp_register_script( 'jh-data-tables-admin-js', plugins_url('admin.js', __FILE__) );\\n\\t\\twp_register_script( 'jh-data-tables-tinymce-js', plugins_url( 'tinymce/tinymce.min.js', __FILE__) );\\n\\t\\tadd_action( 'admin_enqueue_scripts', array('JHDataTablesAdmin', 'admin_scripts') );\\n\\t\\t\\n\\t\\tadd_action( 'add_meta_boxes', array('JHDataTablesAdmin', 'add_table_editor') );\\n\\t\\tadd_action( 'save_post', array('JHDataTablesAdmin', 'save_table') );\\n\\t\\t//add_action('admin_menu', array('JHDataTablesAdmin', 'add_admin_menus'));\\n\\t}\",\n \"function plugins_loaded(){\\r\\n // $current_time = current_time('timestamp');\\r\\n // $this->logger->debug( 'plugins_loaded ' . $current_time );\\r\\n \\r\\n // perform recover from member mail\\r\\n add_action( 'wp_loaded', array( &$this->cartController, 'restore_abandon_cart' ) );\\r\\n }\",\n \"function __construct() {\\n\\n // Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.\\n register_activation_hook( __FILE__, array( $this, 'activate' ) );\\n \\n // MOVE uninstall feature to uninstall.php\\n //register_uninstall_hook( __FILE__, array( $this, 'uninstall' ) );\\n\\n // Register hook executes just before WordPress determines which template page to load\\n //add_action( 'template_redirect', array( $this, 'increase_counter_when_home_visited' ) );\\n \\n // Add extra submenu to the admin panel\\n add_action( 'admin_menu', array( $this, 'create_menu_admin_panel' ) );\\n \\n // Handle POST request, admin_action_($action)\\n //add_action( 'admin_action_tk_slideshow_action', array( $this, 'tk_slideshow_admin_action' ) );\\n\\n add_action( 'admin_post_tk_slideshow_new_action', array( $this, 'tk_slideshow_admin_new_action' ) );\\n add_action( 'admin_post_tk_slideshow_edit_action', array( $this, 'tk_slideshow_admin_edit_action' ) );\\n \\n }\",\n \"public function onStart();\",\n \"function __construct() {\\n\\t\\tPluginUpdateIgnore::__construct();\\n\\t\\tadd_action('admin_head-plugins.php', array(&$this, 'admin_jquery'));\\n\\t\\tadd_action('admin_head-plugins.php', array(&$this, 'admin_css'));\\n\\t\\tadd_action('admin_footer-plugins.php', array(&$this, 'admin_js'));\\n\\t}\",\n \"public function postLoad() { }\",\n \"public function initialize() {\\n\\n // callback to run after theme is loaded\\n add_action(\\\"init\\\", function() {\\n $this->addServiceProvider( FractalProvider::class );\\n $this->addServiceProvider( RouterProvider::class );\\n });\\n\\n\\n /**\\n * This causes the plugin's routes to kick in only if WordPress experiences a 404\\n */\\n add_action(\\\"wp\\\", function() {\\n\\n if( is_404() )\\n $this->dispatch();\\n\\n });\\n\\n // code to run when admin is loaded\\n add_action(\\\"admin_init\\\", function() {\\n $this->addServiceProvider( PlatesProvider::class );\\n });\\n\\n //\\n add_action(\\\"admin_menu\\\", function() {\\n\\n new SettingsPage($this);\\n\\n });\\n }\",\n \"public function postLoad() {}\",\n \"public function init() {\\n\\t\\tadd_action( 'admin_bar_menu', array( $this, 'health_check_troubleshoot_menu_bar' ), 999 );\\n\\n\\t\\tadd_filter( 'option_active_plugins', array( $this, 'health_check_loopback_test_disable_plugins' ) );\\n\\t\\tadd_filter( 'option_active_sitewide_plugins', array( $this, 'health_check_loopback_test_disable_plugins' ) );\\n\\n\\t\\tadd_filter( 'pre_option_template', array( $this, 'health_check_troubleshoot_theme_template' ) );\\n\\t\\tadd_filter( 'pre_option_stylesheet', array( $this, 'health_check_troubleshoot_theme_stylesheet' ) );\\n\\n\\t\\tadd_filter( 'wp_fatal_error_handler_enabled', array( $this, 'wp_fatal_error_handler_enabled' ) );\\n\\n\\t\\tadd_filter( 'bulk_actions-plugins', array( $this, 'remove_plugin_bulk_actions' ) );\\n\\t\\tadd_filter( 'handle_bulk_actions-plugins', array( $this, 'handle_plugin_bulk_actions' ), 10, 3 );\\n\\n\\t\\tadd_action( 'admin_notices', array( $this, 'prompt_install_default_theme' ) );\\n\\t\\tadd_filter( 'user_has_cap', array( $this, 'remove_plugin_theme_install' ) );\\n\\n\\t\\tadd_action( 'plugin_action_links', array( $this, 'plugin_actions' ), 50, 4 );\\n\\n\\t\\tadd_action( 'admin_notices', array( $this, 'display_dashboard_widget' ) );\\n\\t\\tadd_action( 'admin_footer', array( $this, 'dashboard_widget_scripts' ) );\\n\\n\\t\\tadd_action( 'wp_logout', array( $this, 'health_check_troubleshooter_mode_logout' ) );\\n\\t\\tadd_action( 'init', array( $this, 'health_check_troubleshoot_get_captures' ) );\\n\\n\\t\\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) );\\n\\n\\t\\t/*\\n\\t\\t * Plugin activations can be forced by other tools in things like themes, so let's\\n\\t\\t * attempt to work around that by forcing plugin lists back and forth.\\n\\t\\t *\\n\\t\\t * This is not an ideal scenario, but one we must accept as reality.\\n\\t\\t */\\n\\t\\tadd_action( 'activated_plugin', array( $this, 'plugin_activated' ) );\\n\\n\\t\\t$this->load_options();\\n\\t}\",\n \"private function __construct() {\\n\\t\\t$plugin = Tribe__Events__Main::instance();\\n\\n\\t\\tadd_action( 'admin_menu', array( $this, 'register_menu_item' ) );\\n\\t\\tadd_action( 'current_screen', array( $this, 'action_request' ) );\\n\\t\\tadd_action( 'init', array( $this, 'init' ) );\\n\\n\\t\\t// check if the license is valid each time the page is accessed\\n\\t\\tadd_action( 'tribe_aggregator_page_request', array( $this, 'check_for_license_updates' ) );\\n\\n\\t\\t// filter the plupload default settings to remove mime type restrictions\\n\\t\\tadd_filter( 'plupload_default_settings', array( $this, 'filter_plupload_default_settings' ) );\\n\\n\\t\\t// Setup Tabs Instance\\n\\t\\t$this->tabs = Tribe__Events__Aggregator__Tabs::instance();\\n\\n\\t\\ttribe_notice( 'tribe-aggregator-legacy-import-plugins-active', array( $this, 'notice_legacy_plugins' ), 'type=warning' );\\n\\t}\",\n \"function onLoad() {\\n\\t\\t$this->enableDedicatedEvents();\\n\\t\\t$this->config = Config::getInstance();\\n\\t\\t\\n\\n\\t\\tif ($this->isPluginLoaded('MLEPP\\\\Admin', '0.3.0')) {\\n\\t\\t\\t$this->callPublicMethod('MLEPP\\\\Admin', 'addAdminCommand', array($this, 'setText'), array(\\\"set\\\", \\\"headsup\\\", \\\"text\\\"), true, false, false);\\n\\t\\t\\t$this->callPublicMethod('MLEPP\\\\Admin', 'addAdminCommand', array($this, 'setUrl'), array(\\\"set\\\", \\\"headsup\\\", \\\"url\\\"), true, false, false);\\n\\t\\t\\t$this->callPublicMethod('MLEPP\\\\Admin', 'addAdminCommand', array($this, 'setWidth'), array(\\\"set\\\", \\\"headsup\\\", \\\"width\\\"), true, false, false);\\n\\t\\t\\t$this->callPublicMethod('MLEPP\\\\Admin', 'addAdminCommand', array($this, 'setPos'), array(\\\"set\\\", \\\"headsup\\\", \\\"pos\\\"), true, false, false);\\n\\t\\t}\\n\\n\\t\\tConsole::println('[' . date('H:i:s') . '] [MLEPP] Plugin: HeadsUp r' . $this->getVersion());\\n\\t}\",\n \"public function init() {\\n // Check if Elementor installed and activated\\n if ( ! did_action( 'elementor/loaded' ) ) {\\n add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) );\\n return;\\n }\\n\\n // Check for required Elementor version\\n if ( ! version_compare( ELEMENTOR_VERSION, MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {\\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_elementor_version' ) );\\n return;\\n }\\n\\n // Check for required PHP version\\n if ( version_compare( PHP_VERSION, MINIMUM_PHP_VERSION, '<' ) ) {\\n add_action( 'admin_notices', array( $this, 'admin_notice_minimum_php_version' ) );\\n return;\\n }\\n\\n // Once we get here, We have passed all validation checks so we can safely include our plugin\\n require_once( 'plugin.php' );\\n }\",\n \"public static function _setup_plugin() {\\n\\t\\t\\tadd_filter( 'mce_external_plugins', array( __CLASS__, 'mce_external_plugins' ) );\\n\\t\\t\\tadd_filter( 'mce_buttons_2', array( __CLASS__, 'mce_buttons_2' ) );\\n\\t\\t\\tadd_filter( 'content_save_pre', array( __CLASS__, 'content_save_pre' ), 20 );\\n\\t\\t}\",\n \"public function loadPlugins()\\n {\\n try {\\n $pluginModel = Plugin::model(); \\n $records = $pluginModel->findAllByAttributes(array('active'=>1));\\n \\n foreach ($records as $record) {\\n $this->loadPlugin($record->name, $record->id);\\n }\\n } catch (Exception $exc) {\\n // Something went wrong, maybe no database was present so we load no plugins\\n }\\n\\n $this->dispatchEvent(new PluginEvent('afterPluginLoad', $this)); // Alow plugins to do stuff after all plugins are loaded\\n }\",\n \"private function define_admin_hooks()\\n {\\n $this->loader->add_action('init',$this,'load_options');\\n $this->loader->add_action('plugins_loaded','WordPress_Reactro_Admin', 'load_framework');\\n }\",\n \"public function init_hooks() {\\n\\t\\tadd_action( 'vc_after_mapping', array( $this, 'vc_after_mapping' ) );\\n\\t}\",\n \"public function admin_init(){\\n\\t\\t\\t/* Add theme update data */\\n\\t\\t\\tif('plugin' !== $this->config['type']){\\n\\t\\t\\t\\tadd_filter('pre_set_site_transient_update_themes', array($this, 'add_theme_update_data'), 10, 2);\\n\\t\\t\\t}\\n\\t\\t\\t/* Add plugin update data */\\n\\t\\t\\tif('theme' !== $this->config['type']){\\n\\t\\t\\t\\tadd_filter('pre_set_site_transient_update_plugins', array($this, 'add_plugin_update_data'), 10, 2);\\n\\t\\t\\t}\\n\\t\\t\\t/* Plugin Information */\\n\\t\\t\\tif('theme' !== $this->config['type']){\\n\\t\\t\\t\\tadd_filter('plugins_api_result', array($this, 'plugin_info'), 10, 3);\\n\\t\\t\\t}\\n\\t\\t}\",\n \"public function __construct() {\\n\\n\\t\\t\\t/* Load plugin files */\\n\\t\\t\\tself::load_plugin_files();\\n\\t\\t}\",\n \"public function init() {\\n\\n\\t\\t\\t// Set up localisation\\n\\t\\t\\t$this->load_plugin_textdomain();\\n\\t\\t}\",\n \"function plugin_action_handler( $plugin='' ) {\\n\\t\\t$this->add_ping( 'plugins', array( 'name' => $plugin ) );\\n\\t}\"\n]"},"negative_scores":{"kind":"list like","value":["0.7031586","0.7015926","0.69344616","0.6934219","0.66588676","0.6656148","0.65598875","0.6369212","0.6366392","0.63332224","0.63289505","0.6320001","0.63069284","0.6293605","0.62911415","0.6285604","0.6242794","0.623756","0.62302303","0.62060505","0.6169109","0.61680764","0.6163417","0.6160058","0.61567134","0.61567134","0.61567134","0.6089008","0.60438746","0.603394","0.60334533","0.60310996","0.6023321","0.6005818","0.5988477","0.59876084","0.59825134","0.5957071","0.5948873","0.5942696","0.59415054","0.59380555","0.5888073","0.58819294","0.5877073","0.587688","0.5866507","0.5864727","0.5856347","0.5856167","0.585588","0.5827748","0.58245283","0.5818911","0.5812058","0.5811004","0.5804901","0.5804731","0.5796798","0.5794551","0.57781285","0.57689446","0.57626235","0.57594436","0.5754299","0.5751373","0.575114","0.57433486","0.5734287","0.5734182","0.5733908","0.57298917","0.57211107","0.57198936","0.57187134","0.57187134","0.57011056","0.5696513","0.5695091","0.5688405","0.5687924","0.5679977","0.56793886","0.56766313","0.56733","0.567232","0.567025","0.56702316","0.56660473","0.56619924","0.5658256","0.5653175","0.56486815","0.56468296","0.56396234","0.5637373","0.56348985","0.5633313","0.5633248","0.5628674","0.5628269"],"string":"[\n \"0.7031586\",\n \"0.7015926\",\n \"0.69344616\",\n \"0.6934219\",\n \"0.66588676\",\n \"0.6656148\",\n \"0.65598875\",\n \"0.6369212\",\n \"0.6366392\",\n \"0.63332224\",\n \"0.63289505\",\n \"0.6320001\",\n \"0.63069284\",\n \"0.6293605\",\n \"0.62911415\",\n \"0.6285604\",\n \"0.6242794\",\n \"0.623756\",\n \"0.62302303\",\n \"0.62060505\",\n \"0.6169109\",\n \"0.61680764\",\n \"0.6163417\",\n \"0.6160058\",\n \"0.61567134\",\n \"0.61567134\",\n \"0.61567134\",\n \"0.6089008\",\n \"0.60438746\",\n \"0.603394\",\n \"0.60334533\",\n \"0.60310996\",\n \"0.6023321\",\n \"0.6005818\",\n \"0.5988477\",\n \"0.59876084\",\n \"0.59825134\",\n \"0.5957071\",\n \"0.5948873\",\n \"0.5942696\",\n \"0.59415054\",\n \"0.59380555\",\n \"0.5888073\",\n \"0.58819294\",\n \"0.5877073\",\n \"0.587688\",\n \"0.5866507\",\n \"0.5864727\",\n \"0.5856347\",\n \"0.5856167\",\n \"0.585588\",\n \"0.5827748\",\n \"0.58245283\",\n \"0.5818911\",\n \"0.5812058\",\n \"0.5811004\",\n \"0.5804901\",\n \"0.5804731\",\n \"0.5796798\",\n \"0.5794551\",\n \"0.57781285\",\n \"0.57689446\",\n \"0.57626235\",\n \"0.57594436\",\n \"0.5754299\",\n \"0.5751373\",\n \"0.575114\",\n \"0.57433486\",\n \"0.5734287\",\n \"0.5734182\",\n \"0.5733908\",\n \"0.57298917\",\n \"0.57211107\",\n \"0.57198936\",\n \"0.57187134\",\n \"0.57187134\",\n \"0.57011056\",\n \"0.5696513\",\n \"0.5695091\",\n \"0.5688405\",\n \"0.5687924\",\n \"0.5679977\",\n \"0.56793886\",\n \"0.56766313\",\n \"0.56733\",\n \"0.567232\",\n \"0.567025\",\n \"0.56702316\",\n \"0.56660473\",\n \"0.56619924\",\n \"0.5658256\",\n \"0.5653175\",\n \"0.56486815\",\n \"0.56468296\",\n \"0.56396234\",\n \"0.5637373\",\n \"0.56348985\",\n \"0.5633313\",\n \"0.5633248\",\n \"0.5628674\",\n \"0.5628269\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":432,"cells":{"query":{"kind":"string","value":"add plugin prefs to database"},"document":{"kind":"string","value":"function abl_droploader_prefs($event, $step) {\n\t\tif (function_exists('soo_plugin_pref')) {\n\t\t\tsoo_plugin_pref($event, $step, abl_droploader_defaults());\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$msg = 'Please install soo_plugin_pref to edit preferences (Default preferences apply).';\n\t\t\tpagetop(gTxt('edit_preferences') . \" &#8250; abl_droploader\", $msg);\n\t\t\t$default_prefs = abl_droploader_defaults();\n\t\t\t$html = '\n\n\n\n\n\n\n\n\n\n\n';\n\t\t\tforeach ($default_prefs as $key => $pref) {\n\t\t\t\t$html .= '\n\n\n\n';\n\t\t\t}\n\t\t\t$html .= '\n

    DropLoader default preferences

    OptionValue
    ' . htmlspecialchars($pref['text']) . '' . htmlspecialchars($pref['val']) . '
    \n';\n\t\t\techo $html;\n\t\t\treturn false;\n\t\t}\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function save_addon_prefs(){\n\t\tglobal $sql,$pref;\n// $query = \"SELECT * FROM #plugin WHERE plugin_installflag = 1 AND plugin_addons !='' ORDER BY plugin_path ASC\";\n $query = \"SELECT * FROM #plugin WHERE plugin_addons !='' ORDER BY plugin_path ASC\";\n\n\t\t// clear all addon prefs before re-creation. \n\t\tunset($pref['shortcode_list'],$pref['bbcode_list'],$pref['e_sql_list']);\n foreach($this->plugin_addons as $plg)\n\t\t{\n \tunset($pref[$plg.\"_list\"]);\n\t\t}\n\n\t\tif ($sql -> db_Select_gen($query))\n\t\t{\n\t\t\twhile($row = $sql-> db_Fetch())\n\t\t\t{\n\t\t\t $is_installed = ($row['plugin_installflag'] == 1 );\n $tmp = explode(\",\",$row['plugin_addons']);\n\t\t\t\t$path = $row['plugin_path'];\n\n\t\t\t if ($is_installed)\n\t\t\t {\n \t\tforeach($this->plugin_addons as $val)\n\t\t\t\t{\n \tif(in_array($val,$tmp))\n\t\t\t\t\t{\n \t\t\t\t\t\t$pref[$val.\"_list\"][$path] = $path;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t }\n // search for .bb and .sc files.\n\t\t\t\t$sc_array = array();\n\t\t\t\t$bb_array = array();\n\t\t\t\t$sql_array = array();\n\n foreach($tmp as $adds)\n\t\t\t\t{\n \tif(substr($adds,-3) == \".sc\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$sc_name = substr($adds, 0,-3); // remove the .sc\n\t\t\t\t\t\tif ($is_installed)\n\t\t\t\t\t\t{\n \t $sc_array[$sc_name] = \"0\"; // default userclass = e_UC_PUBLIC\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n \t $sc_array[$sc_name] = e_UC_NOBODY; // register shortcode, but disable it\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif($is_installed && (substr($adds,-3) == \".bb\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t$bb_name = substr($adds, 0,-3); // remove the .bb\n \t$bb_array[$bb_name] = \"0\"; // default userclass.\n\t\t\t\t\t}\n\n\t\t\t\t\tif($is_installed && (substr($adds,-4) == \"_sql\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t$pref['e_sql_list'][$path] = $adds;\n\t\t\t\t\t}\n\t\t\t\t}\n\n // Build Bbcode list (will be empty if plugin not installed)\n if(count($bb_array) > 0)\n\t\t\t\t{\n\t\t\t\t\tksort($bb_array);\n \t$pref['bbcode_list'][$path] = $bb_array;\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n if (isset($pref['bbcode_list'][$path])) unset($pref['bbcode_list'][$path]);\n\t\t\t\t}\n\n // Build shortcode list - do if uninstalled as well\n\t\t\t\tif(count($sc_array) > 0)\n\t\t\t\t{\n\t\t\t\t ksort($sc_array);\n\t\t\t\t $pref['shortcode_list'][$path] = $sc_array;\n }\n\t\t\t\telse\n\t\t\t\t{\n if(isset($pref['shortcode_list'][$path])) unset($pref['shortcode_list'][$path]);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t \tsave_prefs();\n\t\treturn;\n\n\t}","function install() {\n\t\tsafe_query('DELETE FROM '.safe_pfx('txp_prefs').' WHERE name LIKE \"wlk_phsb_%\"');\n\t\tsafe_insert('txp_prefs',\"prefs_id = '1',name = 'wlk_phsb_notifications_instant',val = '1',type = '1',event = 'wlk_phsb',html = 'yesnoradio',position = '10',user_name = ''\");\n\t\tsafe_insert('txp_prefs',\"prefs_id = '1',name = 'wlk_phsb_endpoints',val = '\".implode(\"\\n\", $this->vars['endpoints']).\"',type = '1',event = 'wlk_phsb',html = 'wlk_phsb_textarea',position = '60',user_name = ''\");\n\t}","function wp_register_persisted_preferences_meta()\n {\n }","function _sql_add_prefs()\n\t{\n\t\t$sql\t= array();\n\n\t\t$prefs\t= array(\n\t\t\t'max_message_chars'\t\t\t\t=> 6000,\n\t\t\t'message_waiting_period'\t\t=> 24,\n\t\t\t'message_throttling'\t\t\t=> 30,\n\t\t\t'message_day_limit'\t\t\t\t=> 1000,\n\t\t\t'max_recipients_per_message'\t=> 20,\n\t\t);\n\n\t\t$prefs\t= base64_encode( serialize( $prefs ) );\n\n\t\t//\t----------------------------------------\n\t\t//\tGet site ids\n\t\t//\t----------------------------------------\n\n\t\t$query\t= ee()->db->query( \"SELECT site_id FROM exp_sites\" );\n\n\t\tforeach ( $query->result_array() as $row )\n\t\t{\n\t\t\t$sql[]\t= ee()->db->insert_string(\n\t\t\t\t'exp_friends_preferences',\n\t\t\t\tarray(\n\t\t\t\t\t'site_id' \t\t=> $row['site_id'],\n\t\t\t\t\t'preferences' \t=> $prefs\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn $sql;\n\t}","function insert_default_prefs($id){\n\t\t\t\tglobal $sql, $aa, $plugintable, $eArrayStorage;\n\t\t\t\t$plugintable\t= \"pcontent\";\n\t\t\t\t$plugindir\t\t= e_PLUGIN.\"content/\";\n\t\t\t\tunset($content_pref, $tmp);\n\t\t\t\t\n\t\t\t\tif(!is_object($aa)){\n\t\t\t\t\trequire_once($plugindir.\"handlers/content_class.php\");\n\t\t\t\t\t$aa = new content;\n\t\t\t\t}\n\n\t\t\t\t$content_pref = $aa -> ContentDefaultPrefs($id);\n\t\t\t\t$tmp = $eArrayStorage->WriteArray($content_pref);\n\n\t\t\t\t$sql -> db_Update($plugintable, \"content_pref='$tmp' WHERE content_id='$id' \");\n\t\t}","function add_prefs($galerie)\r\n\t{\r\n\t\tglobal $nuked, $user, $language, $niveau_upload;\r\n\t\tif($user[1] >= $niveau_upload)\r\n\t\t{\r\n\t\t\t$sql = mysql_query(\"SELECT id FROM \".ESPACE_MEMBRE_GALERY_TABLE.\" WHERE user_id='\" . $user[0] . \"' \");\r\n\t\t\t$test = mysql_num_rows($sql);\r\n\t\t\tif($test == 0)\r\n\t\t\t{\r\n\t\t\t\t$add=mysql_query(\"INSERT INTO \".ESPACE_MEMBRE_GALERY_TABLE.\" VALUES ('' , '\" . $user[0] . \"' , '\" . $galerie . \"' )\");\r\n\t\t\t}else{\r\n\t\t\t\t$upd1 = mysql_query(\"UPDATE \".ESPACE_MEMBRE_GALERY_TABLE.\" SET value = '\" . $galerie . \"' WHERE user_id = '\" . $user[0] . \"' \");\r\n\t\t\t}\r\n\t\t\techo \"\t


    \" . _PREFUPDATED . \"

    \";\r\n\t\t\tredirect(\"index.php?file=Espace_membre&op=compte\", 2);\r\n\t\t}else{\r\n\t\t\techo\"\t


    \" . _NOTACCES . \"

    \";\r\n\t\t\tredirect(\"index.php?file=Espace_membre\", 3);\r\n\t\t}\r\n\t}","function wlms_plugin_install()\n{\n wlms_create_table();\n wlms_settings_data();\n}","function _savesettings()\r\n {\r\n\t\t$settings = JRequest::getVar('settings');\r\n\r\n\t\tjimport('joomla.registry.registry');\r\n\t\t$reg = new JRegistry();\r\n\t\t$reg->loadArray($settings);\r\n\t\t\t\t\r\n\t\tif(JFusionConnect::isJoomlaVersion('1.6')) {\r\n\t\t\t$component =& JTable::getInstance('extension');\r\n\t\t\t$componentid = $component->find(array('type' => 'component','element' => 'com_jfusionconnect'));\r\n\t\t\t$component->load($componentid);\r\n\t\t\t\r\n\t\t\t$plugin =& JTable::getInstance('extension');\r\n\t\t\t$pluginid = $plugin->find(array('type' => 'plugin','element' => 'jfusionconnect'));\r\n\t\t\t$plugin->load($pluginid);\r\n\t\t\t$key='enabled';\r\n\t\t} else {\r\n\t\t\t$component =& JTable::getInstance('component');\r\n\t\t\t$component->loadByOption('com_jfusionconnect');\r\n\t\t\t\r\n\t\t\t$plugin =& JTable::getInstance('plugin');\r\n\t\t\t$plugin->_tbl_key = 'element';\r\n\t\t\t$plugin->load('jfusionconnect');\r\n\t\t\t$key='published';\r\n\t\t}\r\n\t\t$component->params = $reg->toString();\r\n\t\t$component->store();\r\n \tif ($settings['enabled']) {\r\n\t\t\t$plugin->$key = 1;\r\n\t\t} else {\r\n\t\t\t$plugin->$key = 0;\r\n\t\t}\r\n\t\t$plugin->store();\r\n }","function manage_plugin_prefs($action, $prefname, $plugin_folder, $varArray = '') \n\t{\n\t\tglobal $pref;\n\t\tif ($prefname == 'plug_sc' || $prefname == 'plug_bb') \n\t\t{ // Special cases - shortcodes and bbcodes - each plugin may contribute several elements\n\t\t\tforeach($varArray as $code) {\n\t\t\t\t$prefvals[] = \"$code:$plugin_folder\";\n\t\t\t}\n\t\t} else {\n\t\t\t$prefvals[] = $varArray;\n//\t\t\t$prefvals[] = $plugin_folder;\n\t\t}\n\t\t$curvals = explode(',', $pref[$prefname]);\n\n\t\tif ($action == 'add') \n\t\t{\n\t\t\t$newvals = array_merge($curvals, $prefvals);\n\t\t}\n\t\tif ($action == 'remove') \n\t\t{\n\t\t foreach($prefvals as $v) \n\t\t {\n\t\t\tif (($i = array_search($v, $curvals)) !== FALSE) \n\t\t\t{\n\t\t\t unset($curvals[$i]);\n\t\t\t}\n\t\t }\n\t\t $newvals = $curvals;\n\t\t}\n\t\t$newvals = array_unique($newvals);\n\t\t$pref[$prefname] = implode(',', $newvals);\n\n\t\tif(substr($pref[$prefname], 0, 1) == \",\")\n\t\t{\n\t\t $pref[$prefname] = substr($pref[$prefname], 1);\n\t\t}\n\t\tsave_prefs();\n\t}","function save()\n {\n foreach ($this->plugins as $name => $obj) {\n $this->updateServicesVars($name);\n\n if ($this->plugins[$name]->is_account) {\n $this->plugins[$name]->save();\n } elseif ($this->plugins[$name]->initially_was_account) {\n $this->plugins[$name]->remove_from_parent();\n }\n }\n }","function store(){\n update_option( $this->option_name, $this->settings );\n }","private function savePluginData($plugins)\n {\n $dbtable = $this->project->id . '_plugins';\n foreach ($plugins as $plugin) {\n $plugin['timestamp'] = $this->timestamp;\n \\DB::table($dbtable)->insert($plugin);\n }\n }","public abstract function settingsSave(array &$pluginInfo);","public function Save() {\n\t\t\n\t\tglobal $sql;\n\t\tforeach( $this->settings as $option => $value ) {\n\t\t\t\n\t\t\t$this->update_option( $option, $value, $this->username );\n\t\t}\n\t}","function update_plugins_table() \n\t{\n\t\tglobal $sql, $sql2, $mySQLprefix, $menu_pref, $tp, $pref;\n\n\t\trequire_once(e_HANDLER.'file_class.php');\n\n\t\t$fl = new e_file;\n\t\t$pluginList = $fl->get_files(e_PLUGIN, \"^plugin\\.php$\", \"standard\", 1);\n\t\t$sp = FALSE;\n\n// Read all the plugin DB info into an array to save lots of accesses\n\t\t$pluginDBList = array();\n\t\tif ($sql->db_Select('plugin',\"*\"))\n\t\t{\n\t\t while ($row = $sql->db_Fetch())\n\t\t {\n\t\t $pluginDBList[$row['plugin_path']] = $row;\n\t\t $pluginDBList[$row['plugin_path']]['status'] = 'read';\n//\t\t\techo \"Found plugin: \".$row['plugin_path'].\" in DB
    \";\n\t\t }\n\t\t}\n\n\t\t// Get rid of any variables previously defined which may occur in plugin.php\n\t\tforeach($pluginList as $p)\n\t\t{\n\t\t $defined_vars = array_keys(get_defined_vars());\n\t\t foreach($defined_vars as $varname) \n\t\t {\n\t\t\tif ((substr($varname, 0, 6) == 'eplug_') || (substr($varname, 0, 8) == 'upgrade_')) \n\t\t\t{\n\t\t\t unset($$varname);\n\t\t\t}\n\t\t }\n\n\t\t // We have to include here to set the variables, otherwise we only get uninstalled plugins\n\t\t // Would be nice to eval() the file contents to pick up errors better, but too many path issues\n\t\t $plug['plug_action'] = 'scan';\t\t\t// Make sure plugin.php knows what we're up to\n\t\t include(\"{$p['path']}{$p['fname']}\");\n\t\t $plugin_path = substr(str_replace(e_PLUGIN,\"\",$p['path']),0,-1);\n\n\t\t // scan for addons.\n\t\t $eplug_addons = $this->getAddons($plugin_path);\t\t\t// Returns comma-separated list\n//\t\t $eplug_addons = $this->getAddons($plugin_path,'check');\t\t// Checks opening/closing tags on addon files\n\n\t\t // See whether the plugin needs installation - it does if one or more variables defined\n\t\t $no_install_needed = 1;\n\t\t foreach ($this->all_eplug_install_variables as $check_var)\n\t\t {\n\t\t if (isset($$check_var) && ($$check_var)) { $no_install_needed = 0; }\n\t\t }\n\n\t\t if ($plugin_path == $eplug_folder)\n\t\t {\n\t\t\tif(array_key_exists($plugin_path,$pluginDBList))\n\t\t\t{ // Update the addons needed by the plugin\n\t\t $pluginDBList[$plugin_path]['status'] = 'exists';\n\t\t\t // If plugin not installed, and version number of files changed, update version as well\n\t\t\t if (($pluginDBList[$plugin_path]['plugin_installflag'] == 0) && ($pluginDBList[$plugin_path]['plugin_version'] != $eplug_version))\n\t\t\t { // Update stored version\n\t\t\t\t$pluginDBList[$plugin_path]['plugin_version'] = $eplug_version;\n\t\t\t\t$pluginDBList[$plugin_path]['status'] = 'update';\n\t\t\t }\n\t\t\t if ($pluginDBList[$plugin_path]['plugin_addons'] != $eplug_addons)\n\t\t\t { // Update stored addons list\n\t\t\t\t$pluginDBList[$plugin_path]['plugin_addons'] = $eplug_addons;\n\t\t\t\t$pluginDBList[$plugin_path]['status'] = 'update';\n\t\t\t }\n\t\t\t \n\t\t\t if ($pluginDBList[$plugin_path]['plugin_installflag'] == 0)\n\t\t\t { // Plugin not installed - make sure $pref not set\n\t\t\t if (isset($pref['plug_installed'][$plugin_path]))\n\t\t\t\t{\n\t\t\t unset($pref['plug_installed'][$plugin_path]);\n//\t\t\t\t echo \"Remove: \".$plugin_path.\"->\".$ep_row['plugin_version'].\"
    \";\n\t\t\t\t $sp = TRUE;\n\t\t\t\t}\n\t\t\t }\n\t\t\t else\n\t\t\t {\t// Plugin installed - make sure $pref is set\n\t\t\t\tif (!isset($pref['plug_installed'][$plugin_path]) || ($pref['plug_installed'][$plugin_path] != $pluginDBList[$plugin_path]['plugin_version']))\n\t\t\t\t{\t// Update prefs array of installed plugins\n\t\t\t $pref['plug_installed'][$plugin_path] = $pluginDBList[$plugin_path]['plugin_version'];\n//\t\t\t\t echo \"Add: \".$plugin_path.\"->\".$ep_row['plugin_version'].\"
    \";\n\t\t\t\t $sp = TRUE;\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\telse\n\t\t\t{ // New plugin - not in table yet, so add it. If no install needed, mark it as 'installed'\n\t\t\t if ($eplug_name)\n\t\t\t {\n\t\t\t\t// Can just add to DB - shouldn''t matter that its not in our current table\n//\t\t\t\techo \"Trying to insert: \".$eplug_folder.\"
    \";\n\t\t\t\t$sql->db_Insert(\"plugin\", \"0, '\".$tp -> toDB($eplug_name, true).\"', '\".$tp -> toDB($eplug_version, true).\"', '\".$tp -> toDB($eplug_folder, true).\"', {$no_install_needed}, '{$eplug_addons}' \");\n\t\t\t }\n\t\t\t}\n\t\t }\n\t\t else\n\t\t { // May be useful that we ignore what will usually be copies/backups of plugins - but don't normally say anything\n//\t\t echo \"Plugin copied to wrong directory. Is in: {$plugin_path} Should be: {$eplug_folder}

    \";\n\t\t }\n\t\t}\n\n\t\t// Now scan the table, updating the DB where needed\n\t\tforeach ($pluginDBList as $plug_path => $plug_info)\n\t\t{\n\t\t if ($plug_info['status'] == 'read')\n\t\t {\t// In table, not on server - delete it\n\t\t\t$sql->db_Delete('plugin', \"`plugin_id`='{$plug_info['plugin_id']}'\");\n//\t\t\techo \"Deleted: \".$plug_path.\"
    \";\n\t\t }\n\t\t if ($plug_info['status'] == 'update')\n\t\t {\n\t\t $temp = array();\n\t\t\tforeach ($this->all_editable_db_fields as $p_f)\n\t\t\t{\n\t\t\t $temp[] =\"`{$p_f}` = '{$plug_info[$p_f]}'\";\n\t\t\t}\n\t\t $sql->db_Update('plugin', implode(\", \",$temp).\" WHERE `plugin_id`='{$plug_info['plugin_id']}'\");\n//\t\t\techo \"Updated: \".$plug_path.\"
    \";\n\t\t }\n\t\t}\n\t if ($sp) save_prefs();\n\t}","public function add_plugin($plugin_name, $plugin_url, $checked){\n\t \t$this->load->model('download_model');\t\n\n\t\t\t$query = $this\n\t\t\t\t\t\t->download_model\n\t\t\t\t\t\t->get_site_credentials();\n\n\t\t\t$host = $query[0]->admin_host;\n\t\t\t$user = $query[0]->admin_user;\n\t\t\t$pass = $query[0]->admin_password;\t\t\t\t\n\n\t\t\t$config['hostname'] = \"localhost\";\n\t\t $config['username'] = $user;\n\t\t $config['password'] = $pass;\n\t\t $config['database'] = \"wordpress_default_plugins\";\n\t\t $config['dbdriver'] = \"mysql\";\n\t\t $config['dbprefix'] = \"\";\n\t\t $config['pconnect'] = FALSE;\n\t\t $config['db_debug'] = TRUE;\n\t\t $config['cache_on'] = FALSE;\n\t\t $config['cachedir'] = \"\";\n\t\t $config['char_set'] = \"utf8\";\n\t\t $config['dbcollat'] = \"utf8_general_ci\";\n\n\t\t \t$db2 = $this->load->database($config,TRUE);\n\n\t\t\t$data = array(\n\t\t\t 'plugin_name' => $plugin_name,\n\t\t\t 'plugin_path' => $plugin_url ,\n\t\t\t 'checked' => $checked\n\t\t\t);\n\n\t\t\t$db2->insert('default_plugins', $data); \n\t\t\t\n\t\t\treturn true;\t\t\n\n\t\t}","public function save_settings()\n\t{\n\t\t// Create settings array.\n\t\t$settings = array();\n\n\t\t// Loop through default settings and check for saved values.\n\t\tforeach (ee()->simple_cloner_settings->_default_settings as $key => $value)\n\t\t{\n\t\t\tif(($settings[$key] = ee()->input->post($key)) == FALSE)\n\t\t\t{\n\t\t\t\t$settings[$key] = $value;\n\t\t\t}\n\t\t}\n\n\t\t// Serialize settings array and update the extensions table.\n\t\tee()->db->where('class', $this->class_name.'_ext');\n\t\tee()->db->update('extensions', array('settings' => serialize($settings)));\n\n\t\t// Create alert when settings are saved and redirect back to settings page.\n\t\tee('CP/Alert')->makeInline('simple-cloner-save')\n\t\t\t->asSuccess()\n\t\t\t->withTitle(lang('message_success'))\n\t\t\t->addToBody(lang('preferences_updated'))\n\t\t\t->defer();\n\n\t\tee()->functions->redirect(ee('CP/URL')->make('addons/settings/simple_cloner'));\n\t}","function prefs_save($args)\n {\n if ($args['section'] != 'mailbox') {\n return $args;\n }\n\n // Load configuration\n $this->load_config();\n\n // Check that configuration is not disabled\n $dont_override = (array) $this->rc->config->get('dont_override', array());\n\n foreach (array('basic', 'desktop', 'sound') as $type) {\n $key = 'newmail_notifier_' . $type;\n if (!in_array($key, $dont_override)) {\n $args['prefs'][$key] = rcube_utils::get_input_value('_' . $key, rcube_utils::INPUT_POST) ? true : false;\n }\n }\n\n $option = 'newmail_notifier_desktop_timeout';\n if (!in_array($option, $dont_override)) {\n if ($value = (int) rcube_utils::get_input_value('_' . $option, rcube_utils::INPUT_POST)) {\n $args['prefs'][$option] = $value;\n }\n }\n\n return $args;\n }","function save_settings() {\n\t\t$this->update_option( static::SETTINGS_KEY, $this->settings );\n\t}","function install_plugin($id) \n\t{\n\t\tglobal $sql, $ns, $sysprefs,$mySQLprefix, $tp;\n\n\t\t// install plugin ...\n\t\t$plug = $this->getinfo($id);\n\t\t$plug['plug_action'] = 'install';\n\n\t\tif ($plug['plugin_installflag'] == FALSE) {\n\t\t\tinclude_once(e_PLUGIN.$plug['plugin_path'].'/plugin.php');\n\n\t\t\t$func = $eplug_folder.'_install';\n\t\t\tif (function_exists($func)) {\n\t\t\t\t$text .= call_user_func($func);\n\t\t\t}\n\n\t\t\tif (is_array($eplug_tables)) {\n\t\t\t\t$result = $this->manage_tables('add', $eplug_tables);\n\t\t\t\tif ($result === TRUE) {\n\t\t\t\t\t$text .= EPL_ADLAN_19.'
    ';\n\t\t\t\t\t//success\n\t\t\t\t} else {\n\t\t\t\t\t$text .= EPL_ADLAN_18.'
    ';\n\t\t\t\t\t//fail\n\t\t\t\t}\n\t\t\t}\n\n\n\n\t\t\tif (is_array($eplug_prefs)) {\n\t\t\t\t$this->manage_prefs('add', $eplug_prefs);\n\t\t\t\t$text .= EPL_ADLAN_8.'
    ';\n\t\t\t}\n\n\n\n\t\t\tif (is_array($eplug_array_pref)){\n\t\t\t\tforeach($eplug_array_pref as $key => $val){\n\t\t\t\t\t$this->manage_plugin_prefs('add', $key, $eplug_folder, $val);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (is_array($eplug_sc)) {\n\t\t\t\t$this->manage_plugin_prefs('add', 'plug_sc', $eplug_folder, $eplug_sc);\n\t\t\t}\n\n\t\t\tif (is_array($eplug_bb)) {\n\t\t\t\t$this->manage_plugin_prefs('add', 'plug_bb', $eplug_folder, $eplug_bb);\n\t\t\t}\n\n\t\t\tif (is_array($eplug_user_prefs)) {\n\t\t\t\t$sql->db_Select(\"core\", \" e107_value\", \" e107_name = 'user_entended'\");\n\t\t\t\t$row = $sql->db_Fetch();\n\t\t\t\t$user_entended = unserialize($row[0]);\n\t\t\t\twhile (list($e_user_pref, $default_value) = each($eplug_user_prefs)) {\n\t\t\t\t\t$user_entended[] = $e_user_pref;\n\t\t\t\t\t$user_pref['$e_user_pref'] = $default_value;\n\t\t\t\t}\n\t\t\t\tsave_prefs(\"user\");\n\t\t\t\t$tmp = addslashes(serialize($user_entended));\n\t\t\t\tif ($sql->db_Select(\"core\", \"e107_value\", \" e107_name = 'user_entended'\")) {\n\t\t\t\t\t$sql->db_Update(\"core\", \"e107_value = '{$tmp}' WHERE e107_name = 'user_entended' \");\n\t\t\t\t} else {\n\t\t\t\t\t$sql->db_Insert(\"core\", \"'user_entended', '{$tmp}' \");\n\t\t\t\t}\n\t\t\t\t$text .= EPL_ADLAN_8.\"
    \";\n\t\t\t}\n\n\t\t\tif ($eplug_link === TRUE && $eplug_link_url != '' && $eplug_link_name != '') {\n $plug_perm['everyone'] = e_UC_PUBLIC;\n\t\t\t\t$plug_perm['guest'] = e_UC_GUEST;\n\t\t\t\t$plug_perm['member'] = e_UC_MEMBER;\n\t\t\t\t$plug_perm['mainadmin'] = e_UC_MAINADMIN;\n\t\t\t\t$plug_perm['admin'] = e_UC_ADMIN;\n\t\t\t\t$plug_perm['nobody'] = e_UC_NOBODY;\n\t\t\t\t$eplug_link_perms = strtolower($eplug_link_perms);\n $linkperm = ($plug_perm[$eplug_link_perms]) ? $plug_perm[$eplug_link_perms] : e_UC_PUBLIC;\n\t\t\t\t$this->manage_link('add', $eplug_link_url, $eplug_link_name,$linkperm);\n\t\t\t}\n\n\t\t\tif ($eplug_userclass) {\n\t\t\t\t$this->manage_userclass('add', $eplug_userclass, $eplug_userclass_description);\n\t\t\t}\n\n\t\t\t$this -> manage_search('add', $eplug_folder);\n\n\t\t\t$this -> manage_notify('add', $eplug_folder);\n\n\t\t\t$eplug_addons = $this->getAddons($eplug_folder);\n\n\t\t\t$sql->db_Update('plugin', \"plugin_installflag = 1, plugin_addons = '{$eplug_addons}' WHERE plugin_id = '\".intval($id).\"'\");\n\t\t\t$pref['plug_installed'][$plugin_path] = $plug['plugin_version'];\n\t\t\tsave_prefs();\n\t\t\t\n if($rssmess) { $text .= $rssmess; }\n\t\t\t$text .= (isset($eplug_done) ? \"
    {$eplug_done}\" : \"
    \".LAN_INSTALL_SUCCESSFUL);\n\t\t} else {\n\t\t\t$text = EPL_ADLAN_21;\n\t\t}\n\t\tif($eplug_conffile){ $text .= \"&nbsp;[\".LAN_CONFIGURE.\"]\"; }\n\t\t$ns->tablerender(EPL_ADLAN_33, $text);\n\t}","function plugin_postinstall()\n{\n global $_CONF, $_TABLES, $pi_admin;\n\n require_once $_CONF['path_system'] . 'classes/config.class.php';\n\n $plg_config = config::get_instance();\n $_PLG_CONF = $plg_config->get_config('{plugin}');\n\n $admin_group_id = DB_getItem($_TABLES['groups'], 'grp_id', \"grp_name = '{$pi_admin}'\");\n $blockadmin_id = DB_getItem($_TABLES['groups'], 'grp_id', \"grp_name = 'Block Admin'\");\n\n $DEFVALUES = array();\n $DEFVALUES[] = \"INSERT INTO {$_TABLES['{plugin}']} (up_title, up_value, owner_id, group_id) \"\n . \"VALUES ('Sample Data', 100, 2, #group#)\";\n $DEFVALUES[] = \"INSERT INTO {$_TABLES['{plugin}']} (up_title, up_value, owner_id, group_id) \"\n . \"VALUES ('More Sample Data', 200, 2, #group#)\";\n\n foreach ($DEFVALUES as $sql) {\n $sql = str_replace('#group#', $admin_group_id, $sql);\n DB_query($sql, 1);\n if (DB_error()) {\n COM_error(\"SQL error in {plugin} plugin postinstall, SQL: \" . $sql);\n return false;\n }\n }\n\n return true;\n}","protected function doPrePluginOptionsSave() {\n\t\t$oDp = $this->loadDP();\n\n\t\tif ( $this->getOpt( 'activated_at', 0 ) <= 0 ) {\n\t\t\t$this->setOpt( 'activated_at', $oDp->time() );\n\t\t}\n\t\tif ( $this->getOpt( 'installation_time', 0 ) <= 0 ) {\n\t\t\t$this->setOpt( 'installation_time', $oDp->time() );\n\t\t}\n\n\t\t$this->setOpt( 'installed_version', $this->getController()->getVersion() );\n\t}","function notification_user_settings_save() {\n\tglobal $CONFIG;\n\t//@todo Wha??\n\tinclude($CONFIG->path . \"actions/notifications/settings/usersettings/save.php\");\n}","function store_data($data, $data_name)\n{\n /* @todo store the PUA data in its own table */\n update_option($data_name, serialize($data));\n}","function _arc_meta_install_prefs()\n{\n if (!isset($prefs['arc_meta_homepage_title'])) {\n set_pref('arc_meta_homepage_title', '%n | %t', 'arc_meta', PREF_PLUGIN, 'text_input', 10);\n }\n if (!isset($prefs['arc_meta_article_title'])) {\n set_pref('arc_meta_article_title', '%a | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 20);\n }\n if (!isset($prefs['arc_meta_comment_title'])) {\n set_pref('arc_meta_comment_title', gTxt('comments_on').' %a | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 30);\n }\n if (!isset($prefs['arc_meta_search_title'])) {\n set_pref('arc_meta_search_title', gTxt('search_results') . ': ' . '%q | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 40);\n }\n if (!isset($prefs['arc_meta_category_title'])) {\n set_pref('arc_meta_category_title', '%c | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 50);\n }\n if (!isset($prefs['arc_meta_section_title'])) {\n set_pref('arc_meta_section_title', '%s | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 60);\n }\n if (!isset($prefs['arc_meta_section_category_title'])) {\n set_pref('arc_meta_section_category_title', '%c - %s | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 70);\n }\n if (!isset($prefs['arc_meta_section_tab'])) {\n set_pref('arc_meta_section_tab', 'content', 'arc_meta', PREF_PLUGIN, '_arc_meta_section_tab_select', 80);\n }\n return;\n}","function plugin_install () {\n global $wpdb;\n $charset_collate = $wpdb->get_charset_collate();\n\n // First we define our tables. We need 3, so let's create the names\n $pollsTable = $wpdb->prefix . \"polls_\" .\"polls\";\n $optionsTable = $wpdb->prefix . \"polls_\" .\"options\";\n $votesTable = $wpdb->prefix . \"polls_\" .\"votes\";\n\n // Let's now create the tables with the names we built\n\n // Poll is the \"master container\" of our little system\n $createPollTable = \"CREATE TABLE $pollsTable (\n id mediumint(9) NOT NULL AUTO_INCREMENT,\n name tinytext NOT NULL,\n creationDate TIMESTAMP NOT NULL,\n PRIMARY KEY (id)\n ) $charset_collate;\";\n \n // Then we need to create options that are tied to each poll\n $createOptionsTable = \"CREATE TABLE $optionsTable (\n id mediumint(9) NOT NULL AUTO_INCREMENT,\n poll_id mediumInt(9) NOT NULL,\n name tinytext NOT NULL,\n PRIMARY KEY (id),\n FOREIGN KEY (poll_id) REFERENCES {$pollsTable} (id)\n ) $charset_collate;\";\n\n // And finally, we need to store each vote as a row. Each vote belongs to a poll\n // and represents one option from it\n $createVotesTable = \"CREATE TABLE $votesTable (\n id mediumint(9) NOT NULL AUTO_INCREMENT,\n poll_id mediumInt(9) NOT NULL,\n option_id mediumInt(9) NOT NULL,\n creationDate TIMESTAMP NOT NULL,\n PRIMARY KEY (id),\n FOREIGN KEY (poll_id) REFERENCES {$pollsTable} (id),\n FOREIGN KEY (option_id) REFERENCES {$optionsTable} (id)\n ) $charset_collate;\";\n\n // We need to import the upgrade script to make the plugin create the tables upon activation:\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n\n // And now let's execute our queries\n dbDelta($createPollTable);\n dbDelta($createOptionsTable);\n dbDelta($createVotesTable);\n}","function install_hooks() {\n // Info that the plugin is activated.\n update_option( 'DB_Plugin_Hooks', true );\n }","function upgrade_1_22_prefs($content_pref){\n\n\t\t\t//create : item page\n\t\t\t$content_pref['content_admin_subheading'] = '1';\n\t\t\t$content_pref['content_admin_summary'] = '1';\n\t\t\t$content_pref['content_admin_startdate'] = '1';\n\t\t\t$content_pref['content_admin_enddate'] = '1';\n\n\t\t\t//create : category page\n\t\t\t$content_pref['content_admincat_subheading'] = '1';\n\t\t\t$content_pref['content_admincat_comment'] = '1';\n\t\t\t$content_pref['content_admincat_rating'] = '1';\n\t\t\t$content_pref['content_admincat_pe'] = '1';\n\t\t\t$content_pref['content_admincat_visibility'] = '1';\n\t\t\t$content_pref['content_admincat_startdate'] = '1';\n\t\t\t$content_pref['content_admincat_enddate'] = '1';\n\t\t\t$content_pref['content_admincat_uploadicon'] = '1';\n\t\t\t$content_pref['content_admincat_selecticon'] = '1';\n\n\t\t\t//create : submit page\n\t\t\t$content_pref['content_submit_subheading'] = '1';\n\t\t\t$content_pref['content_submit_summary'] = '1';\n\t\t\t$content_pref['content_submit_startdate'] = '1';\n\t\t\t$content_pref['content_submit_enddate'] = '1';\n\n\t\t\t//content manager\n\t\t\t$content_pref['content_manager_approve'] = '255';\n\t\t\t$content_pref['content_manager_personal'] = '255';\n\t\t\t$content_pref['content_manager_category'] = '255';\n\n\t\t\treturn $content_pref;\n\t\t}","public function refresh_plugin_settings() {\n self::$instance->plugin_settings = self::$instance->get_plugin_settings();\n }","function addPreference($link,$profile_id,$value)\n\t\t{\n\t\t\t$value = mysqli_escape_string($link,$value);\n\t\t\t$profile_id = mysqli_escape_string($link,$profile_id);\n\t\t\t$sql = 'INSERT INTO preference (profile_id,value) VALUES ('.$profile_id.',\"'.$value.'\")';\n\t\t\tif (mysqli_query($link, $sql)) {\n\t\t\t\t//success\n\t\t\t\treturn \"success\";\n\t\t\t}else{\n\t\t\t\t//error\n\t\t\t\treturn '{\"status\":\"error\",\"message\":\"preference not inserted\"}';\n\t\t\t}\n\t\t}","function install_settings()\n\t{\n\t\t//-----------------------------------------\n\t\t// Get DB\n\t\t//-----------------------------------------\n\t\t\n\t\trequire_once( INS_KERNEL_PATH . 'class_db_' . $this->install->saved_data['sql_driver'] . '.php' );\t\t\n\t\t\n\t\t$this->install->ipsclass->init_db_connection( $this->install->saved_data['db_name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $this->install->saved_data['db_user'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $this->install->saved_data['db_pass'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $this->install->saved_data['db_host'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $this->install->saved_data['db_pre'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $this->install->ipsclass->vars['mysql_codepage'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $this->install->saved_data['sql_driver'] );\t\n\t\t//-----------------------------------------\n\t\t// Install settings\n\t\t//-----------------------------------------\n\t\n\t\t$output[] = \"Добавление настроек...\";\n\t\t$xml = new class_xml();\n\t\t$xml->lite_parser = 1;\n\t\t\n\t\t$content = implode( \"\", file( INS_DOC_ROOT_PATH . 'resources/settings.xml' ) );\n\t\t$xml->xml_parse_document( $content );\n\n\t\t//-----------------------------------------\n\t\t// Known settings\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( substr( $this->install->saved_data['install_url'], -1 ) == '/' )\n\t\t{\n\t\t\t$this->install->saved_data['install_url'] = substr( $this->install->saved_data['install_url'], 0, -1 );\n\t\t}\n\t\t\n\t\t$_urls = parse_url( $this->install->saved_data['install_url'] );\n\t\t\n\t\t$known = array( 'email_in' => $this->install->saved_data['admin_email'],\n\t\t\t\t\t\t 'email_out' => $this->install->saved_data['admin_email'],\n\t\t\t\t\t\t 'base_dir' => $this->install->saved_data['install_dir'],\n\t\t\t\t\t\t 'upload_dir' => $this->install->saved_data['install_dir'] . '/uploads',\n\t\t\t\t\t\t 'upload_url' => $this->install->saved_data['install_url'] . '/uploads',\n\t\t\t\t\t\t 'search_sql_method' => $this->install->ipsclass->DB->sql_can_fulltext() ? 'ftext' : 'man',\n\t\t\t\t\t\t //'cookie_domain' => $_urls['host'] != 'localhost' ? '.' . preg_replace( \"#^(?:.+?\\.)?([a-z0-9\\-]{3,})\\.(([a-z]{2,4})(\\.([a-z]{2}))?|museum)$#is\", \"\\\\1.\\\\2\", $_urls['host'] ) : '',\n\t\t\t\t\t );\n\t\t\t\t\t\n\t\t//-----------------------------------------\n\t\t// Parse\n\t\t//-----------------------------------------\n\n\t\t$fields = array( 'conf_title' , 'conf_description', 'conf_group' , 'conf_type' , 'conf_key' , 'conf_default',\n\t\t\t\t\t\t 'conf_extra' , 'conf_evalphp' , 'conf_protected', 'conf_position', 'conf_start_group', 'conf_end_group',\n\t\t\t\t\t\t 'conf_help_key', 'conf_add_cache' , 'conf_title_keyword' );\n\n\t\t$setting_fields = array( 'conf_title_keyword', 'conf_title_title', 'conf_title_desc', 'conf_title_noshow', 'conf_title_module' );\n\n\t\t//-----------------------------------------\n\t\t// Fix up...\n\t\t//-----------------------------------------\n \n\t\tif ( ! is_array( $xml->xml_array['settingexport']['settinggroup']['setting'][0] ) )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Ensure [0] is populated\n\t\t\t//-----------------------------------------\n\n\t\t\t$tmp = $xml->xml_array['settingexport']['settinggroup']['setting'];\n\n\t\t\tunset($xml->xml_array['settingexport']['settinggroup']['setting']);\n\n\t\t\t$xml->xml_array['settingexport']['settinggroup']['setting'][0] = $tmp;\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// Loop through and sort out settings...\n\t\t//-----------------------------------------\n\n\t\tforeach( $xml->xml_array['settingexport']['settinggroup']['setting'] as $id => $entry )\n\t\t{\n\t\t\t$newrow = array();\n\n\t\t\t//-----------------------------------------\n\t\t\t// Is setting?\n\t\t\t//-----------------------------------------\n\n\t\t\tif ( ! $entry['conf_is_title']['VALUE'] )\n\t\t\t{\n\t\t\t\tforeach( $fields as $f )\n\t\t\t\t{\n\t\t\t\t\t$newrow[$f] = $entry[ $f ]['VALUE'];\n\t\t\t\t}\n\n\t\t\t\t$new_settings[] = $newrow;\n\t\t\t}\n\n\t\t\t//-----------------------------------------\n\t\t\t// Is title?\n\t\t\t//-----------------------------------------\n\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach( $setting_fields as $f )\n\t\t\t\t{\n\t\t\t\t\t$newrow[$f] = $entry[ $f ]['VALUE'];\n\t\t\t\t}\n\n\t\t\t\t$new_titles[] = $newrow;\n\t\t\t}\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// Sort out titles...\n\t\t//-----------------------------------------\n\n\t\tif ( is_array( $new_titles ) and count( $new_titles ) )\n\t\t{\n\t\t\tforeach( $new_titles as $idx => $data )\n\t\t\t{\n\t\t\t\tif ( $data['conf_title_title'] AND $data['conf_title_keyword'] )\n\t\t\t\t{\n\t\t\t\t\t//-----------------------------------------\n\t\t\t\t\t// Get ID based on key\n\t\t\t\t\t//-----------------------------------------\n\n\t\t\t\t\t$save = array( 'conf_title_title' => $data['conf_title_title'],\n\t\t\t\t\t\t\t\t 'conf_title_desc' => $data['conf_title_desc'],\n\t\t\t\t\t\t\t\t 'conf_title_keyword' => $data['conf_title_keyword'],\n\t\t\t\t\t\t\t\t 'conf_title_noshow' => $data['conf_title_noshow'],\n\t\t\t\t\t\t\t\t 'conf_title_module' => $data['conf_title_module'] );\n\n\t\t\t\t\t//-----------------------------------------\n\t\t\t\t\t// Insert first\n\t\t\t\t\t//-----------------------------------------\n\n\t\t\t\t\t$this->install->ipsclass->DB->do_insert( 'conf_settings_titles', $save );\n\n\t\t\t\t\t$conf_id = $this->install->ipsclass->DB->get_insert_id();\n\t\t\t\t\t$save['conf_title_id'] = $conf_id;\n\n\t\t\t\t\t//-----------------------------------------\n\t\t\t\t\t// Update settings cache\n\t\t\t\t\t//-----------------------------------------\n\n\t\t\t\t\t$setting_groups_by_key[ $save['conf_title_keyword'] ] = $save;\n\t\t\t\t\t$setting_groups[ $save['conf_title_id'] ] = $save;\n\n\t\t\t\t\t$need_update[] = $conf_id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// Sort out settings\n\t\t//-----------------------------------------\n\n\t\tif ( is_array( $new_settings ) and count( $new_settings ) )\n\t\t{\n\t\t\tforeach( $new_settings as $idx => $data )\n\t\t\t{\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Insert known\n\t\t\t\t//-----------------------------------------\n\n\t\t\t\tif ( in_array( $data['conf_key'], array_keys( $known ) ) )\n\t\t\t\t{\n\t\t\t\t\t$data['conf_value'] = $known[ $data['conf_key'] ];\n\t\t\t\t\t#$data['conf_default'] = $known[ $data['conf_key'] ];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data['conf_value'] = '';\n\t\t\t\t}\n\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Now assign to the correct ID based on\n\t\t\t\t// our title keyword...\n\t\t\t\t//-----------------------------------------\n\n\t\t\t\t$data['conf_group'] = $setting_groups_by_key[ $data['conf_title_keyword'] ]['conf_title_id'];\n\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Remove from array\n\t\t\t\t//-----------------------------------------\n\n\t\t\t\tunset( $data['conf_title_keyword'] );\n\n\t\t\t\t$this->install->ipsclass->DB->do_insert( 'conf_settings', $data );\n\t\t\t}\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// Update group counts...\n\t\t//-----------------------------------------\n\n\t\tif ( count( $need_update ) )\n\t\t{\n\t\t\tforeach( $need_update as $i => $idx )\n\t\t\t{\n\t\t\t\t$conf = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as count', 'from' => 'conf_settings', 'where' => 'conf_group='.$idx ) );\n\n\t\t\t\t$count = intval($conf['count']);\n\n\t\t\t\t$this->install->ipsclass->DB->do_update( 'conf_settings_titles', array( 'conf_title_count' => $count ), 'conf_title_id='.$idx );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Next...\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->install->template->append( $this->install->template->install_page_refresh( $output ) );\n\t\t$this->install->template->next_action = '?p=install&sub=acpperms';\n\t\t$this->install->template->hide_next = 1;\n\t}","function load_plugin() {\n global $fb_opt_name, $gp_opt_name, $popup_fb_page, $popup_delay, $fb_popup_box;\n \n if(is_admin()&& get_option('Activated_Plugin')=='Plugin-Slug') {\n delete_option('Activated_Plugin');\n add_option($fb_opt_name,'on');\n add_option($gp_opt_name,'on');\n add_option($popup_fb_page,'codesamplez');\n add_option($popup_delay,'2');\n add_option($fb_popup_box,'on');\n }\n}","function qa_initialize_postdb_plugins()\n{\n\tglobal $qa_pluginManager;\n\n\trequire_once QA_INCLUDE_DIR . 'app/options.php';\n\tqa_preload_options();\n\n\t$qa_pluginManager->loadPluginsAfterDbInit();\n\tqa_load_override_files();\n\n\tqa_report_process_stage('plugins_loaded');\n}","protected function set_plugin_fields()\n {\n global $DB;\n\n $this->plugins=array();\n\n $sql = \"SELECT *\n FROM {block_ilp_plugin} as p,\n {block_ilp_report_field} as rf\n WHERE rf.plugin_id = p.id\n AND rf.report_id = :report_id\";\n\n foreach($DB->get_records_sql($sql, array('report_id'=>$this->id)) as $item)\n {\n $this->plugins[$item->name]=$item;\n }\n }","function hookInstall() {\n// $db = get_db()cou;\n//die(\"got to the installer method...\");\n $this->_saveVocabularies();\n }","public function update_site_system_preferences($prefs, $site_id = '')\n\t{\n\t\tif ($site_id != '')\n\t\t{\n\t\t\t$this->db->where('site_id', $site_id);\n\t\t}\n\n\t\t$this->db->set('site_system_preferences', base64_encode(serialize($prefs)));\n\t\t$this->db->update('sites');\n\t}","function updatenote_regsettings() {\n\tregister_setting( 'updatenote-settings', 'updatenote_options', 'updatenote_validate' );\n}","private function _saveSeo() {\r\n\r\n // get plugins details\r\n $plugin = JPluginHelper::getPlugin( 'system', 'shmobile');\r\n $params = new JRegistry();\r\n $params->loadString( $plugin->params);\r\n\r\n // get current values\r\n $defaultEnabled = $params->get('mobile_switch_enabled');\r\n $defaultTemplate = $params->get('mobile_template');\r\n\r\n // save mobile template switcher params, stored in system plugin\r\n $mobile_switch_enabled = JRequest::getBool( 'mobile_switch_enabled', $defaultEnabled);\r\n $mobile_template = JRequest::getCmd( 'mobile_template', $defaultTemplate);\r\n\r\n // set params\r\n $params->set('mobile_switch_enabled', $mobile_switch_enabled);\r\n $params->set('mobile_template', $mobile_template);\r\n $textParams = (string) $params;\r\n\r\n try {\r\n ShlDbHelper::update( '#__extensions', array('params' => $textParams), array( 'element' => 'shmobile', 'folder' => 'system', 'type' => 'plugin'));\r\n } catch (Exception $e) {\r\n\r\n }\r\n\r\n }","public function preferences() {\n $prefs = $this->prefs;\n ?>\n \n
      \n
    1. \n
      field_name( array( 'added' => 'creds' ) ); ?>\" id=\"field_id( array( 'added' => 'creds' ) ); ?>\" value=\"core->number( $prefs['added']['creds'] ); ?>\" size=\"8\" />
      \n
    2. \n
    3. \n \n hook_limit_setting( $this->field_name( array( 'added' => 'limit' ) ), $this->field_id( array( 'added' => 'limit' ) ), $prefs['added']['limit'] ); ?>\n
    4. \n
    \n \n
      \n
    1. \n
      field_name( array( 'added' => 'log' ) ); ?>\" id=\"field_id( array( 'added' => 'log' ) ); ?>\" value=\"\" class=\"long\" />
      \n available_template_tags( array( 'general', 'post' ) ); ?>\n
    2. \n
    \n\n \n
      \n
    1. \n
      field_name( array( 'removed' => 'creds' ) ); ?>\" id=\"field_id( array( 'removed' => 'creds' ) ); ?>\" value=\"core->number( $prefs['removed']['creds'] ); ?>\" size=\"8\" />
      \n
    2. \n
    \n \n
      \n
    1. \n
      field_name( array( 'removed' => 'log' ) ); ?>\" id=\"field_id( array( 'removed' => 'log' ) ); ?>\" value=\"\" class=\"long\" />
      \n available_template_tags( array( 'general', 'post' ) ); ?>\n
    2. \n
    \n options_key, $this->options_key, array( $this, 'save_settings' ) );\n\t}","public function add_settings() {\n if (self::$settings !== null) {\n $this->print_settings(self::$settings);\n }\n }","function setModulePref($module,$var,$value,$userID=0)\n {\n $db = & JxSingleton::factory('db');\n\n if(!$userID)\n {\n $user = & JxSingleton::factory('user');\n $userID = $user->userID;\n }\n\n if(!DB::isError($db))\n {\n\n $sql = \"REPLACE INTO preferences\n SET userID='\".$userID.\"',\n module='$module',\n var='$var',\n value='$value'\";\n \n $result = $db->query($sql);\n \n return (!DB::isError($result));\n }\n }","function append_settings( $addthis ){\n if( $addthis == '' ){ return false; }\n $save = escapeshellarg(\"$addthis\\n\");\n //exec(\"echo $save >> '$this->_settings_file'\");\n exec(\"printf $save >> '$this->_settings_file'\");\n }","function add_plugin($plugin)\n {\n }","function saveSettings() {\n\t\t//# convert class variables into an array and save using\n\t\t//# Wordpress functions, \"update_option\" or \"add_option\"\n\t\t//#convert class into array...\n\t\t$settings_array = array();\n\t\t$obj = $this;\n\t\tforeach (array_keys(get_class_vars(get_class($obj))) as $k){\n\t\t\tif (is_array($obj->$k)) {\n\t\t\t\t//serialize any arrays within $obj\n\t\t\t\tif (count($obj->$k)>0) {\n\t\t\t\t\t$settings_array[$k] = esc_attr(serialize($obj->$k));\n\t\t\t\t} else {\n\t\t\t\t\t$settings_array[$k] = \"\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$settings_array[$k] = \"{$obj->$k}\";\n\t\t\t}\n\t\t}\n\t\t//#save array to options table...\n\t\t$options_check = get_option('wassup_settings');\n\t\tif (!empty($options_check)) {\n\t\t\tupdate_option('wassup_settings', $settings_array);\n\t\t} else {\n\t\t\tadd_option('wassup_settings', $settings_array, 'Options for WassUp');\n\t\t}\n\t\treturn true;\n\t}","private function _add_hook($hook)\n\t{\n\t\tee()->db->insert('extensions', array(\n\t\t\t'class' => $this->class_name,\n\t\t\t'method' => $hook,\n\t\t\t'hook' => $hook,\n\t\t\t'settings' => serialize($this->settings),\n\t\t\t'priority' => 5,\n\t\t\t'version' => $this->version,\n\t\t\t'enabled' => 'y'\n\t\t));\n\t}","function acf_append_setting($name, $value)\n{\n}","function plugin_postinstall_nexcontent($pi_name)\r\n{\r\n global $_DB_dbms, $_CONF, $_DB_table_prefix, $_TABLES ;\r\n\r\n $sql= \"INSERT INTO {$_TABLES['nexcontent_pages']} (id,pid,type,pageorder,name,blockformat,heading,content,meta_description,meta_keywords) VALUES (1, 0, 'category', '10', 'frontpage', 'none', 'Front Page Folder', 'Create a page under this folder if you want to have a page loaded as the frontpage', '', '');\";\r\n DB_query($sql);\r\n\r\n return true;\r\n}","public function save_plugin_settings($user_id, $full_request, $type = \"SAVE\", $allowed_plugins = null)\n {\n global $cnf;\n global $local_server_path;\n\t \n\t if($allowed_plugins != null) {\n\t //OK we have an array of allowed plugins\n\t $plugins = $allowed_plugins;\n\t } else {\n\t //Otherwise, assume all plugins in the global config\n\t $plugins = $cnf['plugins'];\n\t }\n\t \n\t $reloadScreen = false;\n\t \t \n\t //Loop through each class and call each plugin_* -> on_message() function\n\t for($cnt=0; $cnt < count($plugins); $cnt++) {\n\t $plugin_name = $plugins[$cnt];\n\t \n\t \n\t include_once($local_server_path . \"plugins/\" . $plugin_name . \"/index.php\");\n\t $class_name = \"plugin_\" . $plugin_name;\n\t \n\t $pg = new $class_name();\n\t \n\t if(method_exists($pg,\"on_save_settings\") == true) {\n\t //OK call the on_settings function of the plugin\n\t $returns = $pg->on_save_settings($user_id, $full_request, $type);\n\t \n\t \n\t if(strcmp($returns, \"RELOAD\") == 0) {\n\t $reloadScreen = true;\n\t }\n\t } else {\n\t //No on_save_settings() in plugin - do nothing\n\n\t }\n\t }\n\t if($reloadScreen === true) {\n\t return \"RELOAD\"; //This option reloads the entire frame e.g. for a language change\n\t } else {\n\t return true;\n }\n \n }","public function register_plugin_admin_add_page()\n {\n $self = $this;\n add_options_page(\n 'VivoKey OpenID',\n 'VivoKey OpenID',\n 'manage_options',\n 'VivoKey OpenID Connect',\n function () use ($self) {\n $self->load_view('settings', null);\n }\n );\n }","protected function doPrePluginOptionsSave() {\r\n\r\n\t\t\t$oDp = $this->loadDataProcessor();\r\n\r\n\t\t\t$sAuthKey = $this->getPluginAuthKey();\r\n\t\t\tif ( empty( $sAuthKey ) || strlen( $sAuthKey ) != 24 ) {\r\n\t\t\t\t$this->setOpt( 'key', $oDp->GenerateRandomString( 24, 7 ) );\r\n\t\t\t}\r\n\r\n\t\t\t$nActivatedAt = $this->getOpt( 'activated_at' );\r\n\t\t\tif ( empty( $nActivatedAt ) ) {\r\n\t\t\t\t$this->setOpt( 'activated_at', $oDp->GetRequestTime() );\r\n\t\t\t}\r\n\t\t\t$nInstalledAt = $this->getOpt( 'installed_at' );\r\n\t\t\tif ( empty( $nInstalledAt ) ) {\r\n\t\t\t\t$this->setOpt( 'installed_at', $oDp->GetRequestTime() );\r\n\t\t\t}\r\n\r\n\t\t\t$this->setOpt( 'installed_version', $this->getController()->getVersion() );\r\n\r\n\t\t\t$nInstalledAt = $this->getOpt( 'installation_time' );\r\n\t\t\tif ( empty( $nInstalledAt ) || $nInstalledAt <= 0 ) {\r\n\t\t\t\t$this->setOpt( 'installation_time', time() );\r\n\t\t\t}\r\n\t\t}","public function set_plugin_properties() {\n $this->plugin\t= get_plugin_data( SALESFORCE__PLUGIN_FILE );\n $this->basename = plugin_basename( SALESFORCE__PLUGIN_FILE );\n $this->active\t= is_plugin_active( $this->basename );\n }","public function preferences() {\n\n\t\t\t$prefs = $this->prefs;\n\n?>\n
    \n\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t\n\t\t\t\tfield_name( 'creds' ); ?>\" id=\"field_id( 'creds' ); ?>\" value=\"core->number( $prefs['creds'] ); ?>\" class=\"form-control\" />\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t\n\t\t\t\tfield_name( 'log' ); ?>\" id=\"field_id( 'log' ); ?>\" placeholder=\"\" value=\"\" class=\"form-control\" />\n\t\t\t\tavailable_template_tags( array( 'general' ) ); ?>\n\t\t\t
    \n\t\t
    \n\t
    \n
    \n_found) { // if the block's instance hasn't been cached\n // lookup the DB to check if this block instance already exists\n $result = $DB->get_record('block_group_choice', array('course_id' => $COURSE->id, 'instance_id' => $this->instance->id));\n if($result) { // if the block's instance already exist in the DB\n $this->_found = true;\n }\n else { // if this block instance doesn't exist we insert a first set of preferences\n $entries = new stdClass();\n $entries->instance_id = $this->instance->id;\n $entries->course_id = $COURSE->id;\n $entries->showgroups = 1;\n $entries->maxmembers = 2;\n $entries->allowchangegroups = 0;\n $entries->allowstudentteams = 1;\n $entries->allowmultipleteams = 0;\n $DB->insert_record('block_group_choice', $entries);\n }\n }\n }","function install($parent)\n\t{\n\t\t// Connect with DB\n\t\t$db = JFactory::getDbo();\n\n\t\t// Query to update plugin\n\t\t$query = $db->getQuery(true);\n\n\t\t$fields = array(\n\t\t\t$db->quoteName('enabled') . ' = 1',\n\t\t\t$db->quoteName('params') . ' = ' . $db->quote('{\"enabled\":\"1\",\"autopurge\":\"1\",\"maxage\":60,\"excluded_components\":[\"com_users\"]}'),\n\t\t);\n\n\t\t$conditions = array(\n\t\t\t$db->quoteName('element') . ' = ' . $db->quote('bytevarnish'),\n\t\t\t$db->quoteName('type') . ' = ' . $db->quote('plugin'),\n\t\t);\n\n\t\t$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);\n\t\t$db->setQuery($query);\n\t\t$result = $db->execute();\n\n\t\tJFactory::getApplication()->enqueueMessage('Plugin \\'Byte Varnish\\' is enabled', 'message');\n\t}","function refresh_plugins_transient()\n {\n }","function the_champ_replicate_settings($blogId){\r\n\t\tglobal $theChampFacebookOptions, $theChampLoginOptions, $theChampSharingOptions;\r\n\t\tadd_blog_option($blogId, 'the_champ_facebook', $theChampFacebookOptions);\r\n\t\tadd_blog_option($blogId, 'the_champ_login', $theChampLoginOptions);\r\n\t\tadd_blog_option($blogId, 'the_champ_sharing', $theChampSharingOptions);\r\n\t}","function saveSettings() {\n\tglobal $settings;\n\n\tfile_put_contents(\"settings.json\",json_encode($settings));\n}","function _add_setting( $data=array() )\n\t{\n\t\t$setting = array();\n\t\t\n\t\t$setting['conf_title'] = $data['conf_title']['VALUE'];\n\t\t$setting['conf_description'] = $data['conf_description']['VALUE'];\n\t\t$setting['conf_group'] = $data['conf_group']['VALUE'];\n\t\t$setting['conf_type'] = $data['conf_type']['VALUE'];\n\t\t$setting['conf_key'] = $data['conf_key']['VALUE'];\n\t\t$setting['conf_default'] = $data['conf_default']['VALUE'];\n\t\t$setting['conf_extra'] = $data['conf_extra']['VALUE'];\n\t\t$setting['conf_evalphp'] = $data['conf_evalphp']['VALUE'];\n\t\t$setting['conf_protected'] = 1;\n\t\t$setting['conf_position'] = $data['conf_position']['VALUE'];\n\t\t$setting['conf_start_group'] = $data['conf_start_group']['VALUE'];\n\t\t$setting['conf_end_group'] = isset( $data['conf_end_group']['VALUE'] ) ? $data['conf_end_group']['VALUE'] : 0;\n\t\t$setting['conf_help_key'] = $data['conf_help_key']['VALUE'];\n\t\t$setting['conf_add_cache'] = 1;\n\t\t\n\t\tif ( !$this->ipsclass->DB->field_exists( 'conf_help_key', 'conf_settings' ) )\n\t\t{\n\t\t\tunset( $setting['conf_help_key'] );\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->do_insert( 'conf_settings', $setting );\n\t}","function load($plugin) {\r\n $descriptorFileName=\"../plugin/$plugin/pluginDescriptor.xml\";\r\n if (! is_file($descriptorFileName)) {\r\n \terrorLog(\"cannot find file $descriptorFileName for plugin $plugin\");\r\n \techo \"cannot find descriptor for plugin $plugin\";\r\n \texit;\r\n }\r\n $descriptorXml=file_get_contents($descriptorFileName);\r\n $parse = xml_parser_create();\r\n xml_parse_into_struct($parse, $descriptorXml, $value, $index);\r\n xml_parser_free($parse);\r\n \r\n foreach($value as $prop) {\r\n \tif ($prop['tag']=='PROPERTY') {\r\n \t\t//print_r($prop);\r\n \t\t$name=$prop['attributes']['NAME'];\r\n \t\t$value=$prop['attributes']['VALUE'];\r\n \t\t$$name=$value;\r\n \t}\r\n }\r\n \r\n if (isset($sql)) {\r\n \t$sqlfile=\"../plugin/$plugin/$sql\";\r\n \tif (! is_file($sqlfile)) {\r\n \t\terrorLog(\"cannot find file $sqlfile for plugin $plugin\");\r\n \t\techo \"cannot find Sql file for plugin $plugin\";\r\n \t\texit;\r\n \t}\r\n \t//$enforceUTF8=true;\r\n \t//Sql::query(\"SET NAMES utf8\");\r\n \trunScript(null,$sqlfile);\r\n }\r\n // TODO : delete zip file (in the end when all is OK\r\n}","protected function initPluginData()\n\t{\n\t\t// code here\n\t\t$this->slug = plugin_basename($this->pluginFile);\n\t\t$this->pluginData = get_plugin_data($this->pluginFile);\n\t}","abstract public function register_plugin();","public static function rdv_insert_settings() {\n\t\t\tglobal $wpdb, $rdv_table_settings;\n\t\t\t$rdv_table_settings = $wpdb->prefix . 'rendez_vous_settings';\n\n\t\t\t$default_query_array = array(\n\t\t\t\t'rdv_settings_id' => null,\n\t\t\t\t'rdv_sending' => 1,\n\t\t\t\t'rdv_receiving' => 1\n\t\t\t);\n\n\t\t\t$wpdb->insert( $rdv_table_settings, $default_query_array );\n\t\t}","public function saveSettings()\n {\n $this->store->save($this->data);\n }","function install_plugin_information()\n {\n }","function myplugin_activate() {\n\n\tglobal $myplugin_options_all, $myplugin_dbtables_all, $myplugin_dbtables_data_all;\n\n\tif ( myplugin_installed_version() != MYPLUGIN_VERSION ) {\n\n\t\tmyplugin_activate_dbtables( $myplugin_dbtables_all, $myplugin_dbtables_data_all );\n\t\tmyplugin_activate_options( $myplugin_options_all );\n\t}\n\n\tadd_option( MYPLUGIN_NAME, MYPLUGIN_VERSION );\n}","function add_core_data()\n {\n $pncore = array();\n $pncore['version_num'] = _PN_VERSION_NUM;\n $pncore['version_id'] = _PN_VERSION_ID;\n $pncore['version_sub'] = _PN_VERSION_SUB;\n $pncore['logged_in'] = pnUserLoggedIn();\n $pncore['language'] = pnUserGetLang();\n $pncore['themeinfo'] = pnThemeInfo(pnUserGetTheme());\n\n \tpnThemeLoad($pncore['themeinfo']['name']);\n\t\t$colors = array();\n $colors['bgcolor1'] = pnThemeGetVar('bgcolor1');\n $colors['bgcolor2'] = pnThemeGetVar('bgcolor2');\n $colors['bgcolor3'] = pnThemeGetVar('bgcolor3');\n $colors['bgcolor4'] = pnThemeGetVar('bgcolor4');\n $colors['bgcolor5'] = pnThemeGetVar('bgcolor5');\n $colors['sepcolor'] = pnThemeGetVar('sepcolor');\n $colors['textcolor1'] = pnThemeGetVar('textcolor1');\n $colors['textcolor2'] = pnThemeGetVar('textcolor2');\n\n // add userdata\n $pncore['user'] = pnUserGetVars(pnSessionGetVar('uid'));\n\n // add modvars of current module\n $pncore[$this->module] = pnModGetVar($this->module);\n\n // add mod vars of all modules supplied as parameter\n \tforeach (func_get_args() as $modulename) {\n\t // if the modulename is empty do nothing\n\t if(!empty($modulename) && !is_array($modulename) && ($modulename<>$this->module)) {\n // check if user wants to have /PNConfig\n if($modulename==_PN_CONFIG_MODULE) {\n $pnconfig = pnModGetVar(_PN_CONFIG_MODULE);\n foreach($pnconfig as $key => $value) {\n // unserialize all config vars\n \t\t $pncore['pnconfig'][$key] = @unserialize($value);\n }\n } else {\n $pncore[$modulename] = pnModGetVar($modulename);\n }\n }\n }\n\n $this->assign('pncore', $pncore);\n\t\t$this->assign($colors);\n return true;\n }","public function add_setting( $wp_customize ) {}","function phpgwapi_upgrade0_9_14_502()\n\t{\n\t\t// we use an additional temp. table for postgres and not rename the existing one, but drop it.\n\t\tif ($GLOBALS['phpgw_setup']->oProc->sType == 'pgsql')\t\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->query(\"SELEcT * INTO TEMPORARY TABLE old_preferences FROM phpgw_preferences\",__LINE__,__FILE__);\n\t\t\t$GLOBALS['phpgw_setup']->oProc->DropTable('phpgw_preferences');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$GLOBALS['phpgw_setup']->oProc->RenameTable('phpgw_preferences','old_preferences');\n\t\t}\n\t\t$GLOBALS['phpgw_setup']->oProc->CreateTable('phpgw_preferences',array(\n\t\t\t'fd' => array(\n\t\t\t\t'preference_owner' => array('type' => 'int','precision' => '4','nullable' => False),\n\t\t\t\t'preference_app' => array('type' => 'varchar','precision' => '25','nullable' => False),\n\t\t\t\t'preference_value' => array('type' => 'text','nullable' => False)\n\t\t\t),\n\t\t\t'pk' => array('preference_owner','preference_app'),\n\t\t\t'fk' => array(),\n\t\t\t'ix' => array(),\n\t\t\t'uc' => array()\n\t\t));\n\t\t$db2 = $GLOBALS['phpgw_setup']->db;\t// we need a 2. result-set\n\t\t$GLOBALS['phpgw_setup']->oProc->query(\"SELECT * FROM old_preferences\");\n\t\twhile ($GLOBALS['phpgw_setup']->oProc->next_record())\n\t\t{\n\t\t\t$owner = (int)$GLOBALS['phpgw_setup']->oProc->f('preference_owner');\n\t\t\t$prefs = unserialize($GLOBALS['phpgw_setup']->oProc->f('preference_value'));\n\n\t\t\tif (is_array($prefs))\n\t\t\t{\n\t\t\t\tforeach ($prefs as $app => $pref)\n\t\t\t\t{\n\t\t\t\t\tif (!empty($app) && count($pref))\n\t\t\t\t\t{\n\t\t\t\t\t\t$app = addslashes($app);\n\t\t\t\t\t\t$pref = serialize($pref);\n\t\t\t\t\t\t$db2->query(\"INSERT INTO phpgw_preferences\".\n\t\t\t\t\t\t\t\" (preference_owner,preference_app,preference_value)\".\n\t\t\t\t\t\t\t\" VALUES ($owner,'$app','$pref')\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$GLOBALS['phpgw_setup']->oProc->DropTable('old_preferences');\n\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.503';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}","function qa_initialize_predb_plugins()\n{\n\tglobal $qa_pluginManager;\n\t$qa_pluginManager = new Q2A_Plugin_PluginManager();\n\t$qa_pluginManager->readAllPluginMetadatas();\n\n\t$qa_pluginManager->loadPluginsBeforeDbInit();\n\tqa_load_override_files();\n}","function bdpp_register_settings() {\n\tregister_setting( 'bdpp_settings', 'bdpp_opts', 'bdpp_validate_settings' );\n}","public function add()\n\t{\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_enable'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_icon_display'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_display_empty'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_select_menu'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_text'\n\t\t);\n\t\t\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_icon'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_ccm_enable'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_ccm_text'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_dc_enable'\n\t\t);\n\t}","function save_config()\n\t{\n\t\t$i=0;\n\t\t$rows=list_to_map('id',$GLOBALS['SITE_DB']->query_select('pstore_customs',array('*')));\n\t\twhile (array_key_exists('custom_'.strval($i),$_POST))\n\t\t{\n\t\t\t$id=post_param_integer('custom_'.strval($i));\n\t\t\t$title=post_param('custom_title_'.strval($i));\n\t\t\t$description=post_param('custom_description_'.strval($i));\n\t\t\t$enabled=post_param_integer('custom_enabled_'.strval($i),0);\n\t\t\t$cost=post_param_integer('custom_cost_'.strval($i));\n\t\t\t$one_per_member=post_param_integer('custom_one_per_member_'.strval($i),0);\n\t\t\t$delete=post_param_integer('delete_custom_'.strval($i),0);\n\t\t\t$_title=$rows[$id]['c_title'];\n\t\t\t$_description=$rows[$id]['c_description'];\n\t\t\tif ($delete==1)\n\t\t\t{\n\t\t\t\tdelete_lang($_title);\n\t\t\t\tdelete_lang($_description);\n\t\t\t\t$GLOBALS['SITE_DB']->query_delete('pstore_customs',array('id'=>$id),'',1);\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$GLOBALS['SITE_DB']->query_update('pstore_customs',array(\n\t\t\t\t\t'c_title'=>lang_remap($_title,$title),\n\t\t\t\t\t'c_description'=>lang_remap($_description,$description),\n\t\t\t\t\t'c_enabled'=>$enabled,\n\t\t\t\t\t'c_cost'=>$cost,\n\t\t\t\t\t'c_one_per_member'=>$one_per_member,\n\t\t\t\t),array('id'=>$id),'',1);\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t$title=post_param('custom_title',NULL);\n\t\tif (!is_null($title))\n\t\t{\n\t\t\t$description=post_param('custom_description');\n\t\t\t$enabled=post_param_integer('custom_enabled',0);\n\t\t\t$cost=post_param_integer('custom_cost');\n\t\t\t$one_per_member=post_param_integer('custom_one_per_member',0);\n\n\t\t\t$GLOBALS['SITE_DB']->query_insert('pstore_customs',array(\n\t\t\t\t'c_title'=>insert_lang($title,2),\n\t\t\t\t'c_description'=>insert_lang($description,2),\n\t\t\t\t'c_enabled'=>$enabled,\n\t\t\t\t'c_cost'=>$cost,\n\t\t\t\t'c_one_per_member'=>$one_per_member,\n\t\t\t));\n\t\t}\n\t}","function addSettings ($name, $value, $type, $protected)\n{\n\tglobal $conn;\n\tglobal $database_table_prefix;\n\t$sql = \"SELECT id FROM \".$database_table_prefix.\"settings WHERE name = '$name' LIMIT 1\";\n\t$rs = $conn->query($sql);\n\tif($conn->query($sql) === false) {\n\t\ttrigger_error('Error: '.$conn->error, E_USER_ERROR);\n\t}\n\n\t$exist = $rs->num_rows;\n\tif($exist==0)\n\t{\n\t\t// insert\n\t\t$query = \"INSERT INTO \".$database_table_prefix.\"settings (id, name, value, type, protected) VALUES (NULL, '$name', '$value', '$type', '$protected')\";\n\t\t$rs = $conn->query($query);\n\t\t$last_inserted_id = $conn->insert_id;\n\t\t$affected_rows = $conn->affected_rows;\n\t}\n\telse\n\t{\n\t\t// update\n\t\t$query = \"UPDATE \".$database_table_prefix.\"settings SET value = '$value' WHERE name = '$name' LIMIT 1\";\n\t\t$rs = $conn->query($query);\n\t\t$affected_rows = $conn->affected_rows;\n\t}\n}","public function loadSettings()\n\t{\n\t\t// Update picto for Dolibarr 12++\n\t\tif (function_exists('version_compare') && version_compare(DOL_VERSION, '12.0.0') >= 0) {\n\t\t\t$this->picto = \"quicknotes_128.png@quicknotes\";\n\t\t}\n\n\t\t$this->addJsFile('quicknotes.js.php');\n\t\t$this->enableHooks(array(\n\t\t\t'toprightmenu',\n\t\t\t'main',\n\t\t\t'login'\n\t\t));\n\t}","private function loadPlugins()\n\t{\n\t\t$plugins = plugin_installed_list();\n\t\t$plugins = collect($plugins)->map(function ($item, $key) {\n\t\t\tif (is_object($item)) {\n\t\t\t\t$item = Arr::fromObject($item);\n\t\t\t}\n\t\t\tif (isset($item['item_id']) && !empty($item['item_id'])) {\n\t\t\t\t$item['installed'] = plugin_check_purchase_code($item);\n\t\t\t}\n\t\t\t\n\t\t\treturn $item;\n\t\t})->toArray();\n\t\t\n\t\tConfig::set('plugins', $plugins);\n\t\tConfig::set('plugins.installed', collect($plugins)->whereStrict('installed', true)->toArray());\n\t}","public function save_settings() {\n\n\t\tif ( !isset( $_REQUEST['action'] ) || !isset( $_GET['page'] ) )\n\t\t\treturn;\n\n\t\tif ( 'vfb-settings' !== $_GET['page'] )\n\t\t\treturn;\n\n\t\tif ( 'vfb_settings' !== $_REQUEST['action'] )\n\t\t\treturn;\n\n\t\tcheck_admin_referer( 'vfb-update-settings' );\n\n\t\t$data = array();\n\n\t\tforeach ( $_POST['vfb-settings'] as $key => $val ) {\n\t\t\t$data[ $key ] = esc_html( $val );\n\t\t}\n\n\t\tupdate_option( 'vfb-settings', $data );\n\t}","public function action_preferences() {\n $package = Model::factory('package');\n $get_langcolor_info = $package->get_langcolor_info();\n $this->template->meta_description = CLOUD_SITENAME . \" | Preferences \";\n $this->template->meta_keywords = CLOUD_SITENAME . \" | Preferences \";\n $this->template->title = CLOUD_SITENAME . \" | \" . __('Preferences');\n $this->template->page_title = __('Preferences');\n $this->template->content = View::factory(\"admin/package_plan/preferences\")->bind('langcolor_info', $get_langcolor_info);\n }","function addSetting($link,$profile_id,$type,$value)\n\t\t{\n\t\t\t$type = mysqli_escape_string($link,$type);\n\t\t\t$value = mysqli_escape_string($link,$value);\n\t\t\t$sql = 'INSERT INTO setting (profile_id,type,value) VALUES ('.$profile_id.',\"'.$type.'\",'.$value.')';\n\t\t\tif (mysqli_query($link, $sql)) {\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}","function top10_install() {\r\n/* Creates new database field */\r\n//add_option('omekafeedpull_omekaroot', '/omeka', '', 'yes');\r\n}","public function sync()\n {\n $class = explode('\\\\', get_called_class());\n $manager = \\Str::studly(str_replace('EntryModel', null, end($class)));\n\n $existingAddons = $manager::getAll();\n $databaseAddons = $this->all();\n\n // Sync TO the database\n foreach ($existingAddons as $addon) {\n if (!$databaseAddons->findBySlug($addon->slug)) {\n $this->addons->insert(\n array(\n 'slug' => $addon->slug,\n )\n );\n }\n }\n }","function plugin_install_now()\n{\n global $pi_name, $pi_version, $gl_version, $pi_url, $NEWTABLE, $DEFVALUES, $NEWFEATURE;\n global $_TABLES, $_CONF;\n\n COM_errorLog(\"Attempting to install the $pi_name Plugin\",1);\n $uninstall_plugin = 'plugin_uninstall_' . $pi_name;\n\n // Create the Plugins Tables\n require_once($_CONF['path'] . 'plugins/forum/sql/mysql_install_2.6.php');\n\n for ($i = 1; $i <= count($_SQL); $i++) {\n $progress .= \"executing \" . current($_SQL) . \"\\n\";\n COM_errorLOG(\"executing \" . current($_SQL));\n DB_query(current($_SQL),'1');\n if (DB_error()) {\n COM_errorLog(\"Error Creating $table table\",1);\n $uninstall_plugin ('DeletePlugin');\n return false;\n exit;\n }\n next($_SQL);\n }\n COM_errorLog(\"Success - Created $table table\",1);\n \n // Insert Default Data\n \n foreach ($DEFVALUES as $table => $sql) {\n COM_errorLog(\"Inserting default data into $table table\",1);\n DB_query($sql,1);\n if (DB_error()) {\n COM_errorLog(\"Error inserting default data into $table table\",1);\n $uninstall_plugin ();\n return false;\n exit;\n }\n COM_errorLog(\"Success - inserting data into $table table\",1);\n }\n \n // Create the plugin admin security group\n COM_errorLog(\"Attempting to create $pi_name admin group\", 1);\n DB_query(\"INSERT INTO {$_TABLES['groups']} (grp_name, grp_descr) \"\n . \"VALUES ('$pi_name Admin', 'Users in this group can administer the $pi_name plugin')\",1);\n if (DB_error()) {\n $uninstall_plugin();\n return false;\n exit;\n }\n COM_errorLog('...success',1);\n $query = DB_query(\"SELECT max(grp_id) FROM {$_TABLES['groups']} \");\n list ($group_id) = DB_fetchArray($query);\n\n // Save the grp id for later uninstall\n COM_errorLog('About to save group_id to vars table for use during uninstall',1);\n DB_query(\"INSERT INTO {$_TABLES['vars']} VALUES ('{$pi_name}_admin', $group_id)\",1);\n if (DB_error()) {\n $uninstall_plugin ();\n return false;\n exit;\n }\n COM_errorLog('...success',1);\n \n // Add plugin Features\n foreach ($NEWFEATURE as $feature => $desc) {\n COM_errorLog(\"Adding $feature feature\",1);\n DB_query(\"INSERT INTO {$_TABLES['features']} (ft_name, ft_descr) \"\n . \"VALUES ('$feature','$desc')\",1);\n if (DB_error()) {\n COM_errorLog(\"Failure adding $feature feature\",1);\n $uninstall_plugin ();\n return false;\n exit;\n }\n $query = DB_query(\"SELECT max(ft_id) FROM {$_TABLES['features']} \");\n list ($feat_id) = DB_fetchArray($query);\n\n COM_errorLog(\"Success\",1);\n COM_errorLog(\"Adding $feature feature to admin group\",1);\n DB_query(\"INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($feat_id, $group_id)\");\n if (DB_error()) {\n COM_errorLog(\"Failure adding $feature feature to admin group\",1);\n $uninstall_plugin ();\n return false;\n exit;\n }\n COM_errorLog(\"Success\",1);\n } \n \n // OK, now give Root users access to this plugin now! NOTE: Root group should always be 1\n COM_errorLog(\"Attempting to give all users in Root group access to $pi_name admin group\",1);\n DB_query(\"INSERT INTO {$_TABLES['group_assignments']} VALUES ($group_id, NULL, 1)\");\n if (DB_error()) {\n $uninstall_plugin ();\n return false;\n exit;\n }\n\n // Register the plugin with Geeklog\n COM_errorLog(\"Registering $pi_name plugin with Geeklog\", 1);\n DB_delete($_TABLES['plugins'],'pi_name',$pi_name);\n DB_query(\"INSERT INTO {$_TABLES['plugins']} (pi_name, pi_version, pi_gl_version, pi_homepage, pi_enabled) \"\n . \"VALUES ('$pi_name', '$pi_version', '$gl_version', '$pi_url', 1)\");\n\n if (DB_error()) {\n $uninstall_plugin ();\n return false;\n exit;\n }\n\n COM_errorLog(\"Succesfully installed the $pi_name Plugin!\",1);\n return true;\n}","function tb_addTagBeepToWpAdmin() { \r\n //add in /settings manu\r\n add_options_page(\"tagBeep uptime\", \"tagBeep uptime\", 8, \"tagBeepUptimeMonitor\", \"tb_load_tagBeepAdmin\"); \r\n //add in the /plugins menu\r\n add_plugins_page(\"tagBeep uptime\", \"tagBeep uptime\", 8, \"tagBeepUptimeMonitorPlugin\", \"tb_load_tagBeepAdmin\"); \r\n}","function setDefaultPrefs($module,$prefs)\n {\n if(is_array($prefs) && count($prefs))\n {\n while(list($var,$value) = each($prefs))\n {\n JxPref::setModulePref($module,$var,$value);\n }\n }\n }","function create_tbl_woo2app_setting(){\r global $wpdb;\r $charset_collate = $wpdb->get_charset_collate();\r $table_name = $wpdb->prefix . 'woo2app_setting';\r $sql = \"CREATE TABLE $table_name (\r\t\tst_id bigint(20) NOT NULL AUTO_INCREMENT,\r\t\tPRIMARY KEY (st_id),\r\t\tst_name varchar(100) NOT NULL,\r\t\tst_value varchar(200) NOT NULL,\r\t\tst_desc\tvarchar(200) NOT NULL\r\t) $charset_collate;\";\r require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\r dbDelta( $sql );\r add_option( 'woo2app_version', '1.3' );\r }","function dbInstall($data='') {\n/*\nmixcloud_favorites - \n*/\n $data = << $val) {\n $data[$key] = esc_html($val);\n }\n\n update_option('swpm-settings', $data);\n }","public static function register()\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//IMPORTANT\n\t\t\t\t//Register all of the options that will be used\n\t\t\t\n//\t\t\t\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_po_quote');\n\n\t\t\t\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_userid');\n\t\t\t\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_popup_option');\n\t\t\t\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_copypaste_option');\n\t\t\t\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_freecode');\n\t\t\t\t\n\t\t\t\t\n\t\t\t}","protected function updateSettings()\n {\n $this->settings = array();\n $raw_settings = $this->db->fetchAll('SELECT name, value FROM settings');\n\n foreach ($raw_settings as $raw_setting) {\n $this->settings[$raw_setting['name']] = $raw_setting['value'];\n }\n }","public function save()\n {\n update_option($this->optionKey, $this->fields);\n }","function install(){\r\n $options = $this->get_options();\r\n $isnew = false;\r\n if(!$installed_version = get_option('twitlink_version')){\r\n // no cl_version saved yet, set it to start of version 3\r\n $installed_version = '2.30';\r\n $isnew = true;\r\n }\r\n if(!$isnew){\r\n // new recode version from 1.27 to 1.30\r\n if(version_compare($this->php_version($installed_version),'1.2.7','>') && version_compare($this->php_version($installed_version),'1.3.0','<')){\r\n // use new default values\r\n $options = $this->get_options(true);\r\n }\r\n\r\n // update options (do this at the end so all the updates can happen first)\r\n update_option($this->db_option,$options); \r\n }\r\n // update twitlink_version in db\r\n if($this->version != $installed_version){\r\n update_option('twitlink_version',$this->version);\r\n }\r\n // add db table if it doesn't exist (backwards compatible with wp-twitip-id plugin)\r\n global $wpdb;\r\n $table_name = $wpdb->prefix . \"wptwitipid\";\r\n if($wpdb->get_var(\"show tables like '$table_name'\") != $table_name) {\r\n $sql = \"CREATE TABLE \" . $table_name . \" (\r\n id mediumint(9) NOT NULL AUTO_INCREMENT,\r\n email varchar(120) NOT NULL,\r\n twitid varchar(120) NOT NULL,\r\n PRIMARY KEY (id),\r\n UNIQUE KEY (email)\r\n );\";\r\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\r\n dbDelta($sql); \r\n }\r\n }","public function updateUserPreferences()\n {\n $userList = $this->_userDao->getUserList();\n\n // loop through every user and fix it\n foreach ($userList as $user) {\n /*\n * Because we do not get all users' properties from\n * getUserList, retrieve the users' settings from scratch\n */\n $user = $this->_userDao->getUser($user['userid']);\n\n // set the users' preferences\n $this->setSettingIfNot($user['prefs'], 'perpage', 25);\n $this->setSettingIfNot($user['prefs'], 'date_formatting', 'human');\n $this->setSettingIfNot($user['prefs'], 'normal_template', 'we1rdo');\n $this->setSettingIfNot($user['prefs'], 'mobile_template', 'mobile');\n $this->setSettingIfNot($user['prefs'], 'tablet_template', 'we1rdo');\n $this->setSettingIfNot($user['prefs'], 'count_newspots', true);\n $this->setSettingIfNot($user['prefs'], 'mouseover_subcats', true);\n $this->setSettingIfNot($user['prefs'], 'keep_seenlist', true);\n $this->setSettingIfNot($user['prefs'], 'auto_markasread', true);\n $this->setSettingIfNot($user['prefs'], 'keep_downloadlist', true);\n $this->setSettingIfNot($user['prefs'], 'keep_watchlist', true);\n $this->setSettingIfNot($user['prefs'], 'nzb_search_engine', 'nzbindex');\n $this->setSettingIfNot($user['prefs'], 'show_filesize', true);\n $this->setSettingIfNot($user['prefs'], 'show_reportcount', true);\n $this->setSettingIfNot($user['prefs'], 'minimum_reportcount', 1);\n $this->setSettingIfNot($user['prefs'], 'show_nzbbutton', true);\n $this->setSettingIfNot($user['prefs'], 'show_multinzb', true);\n $this->setSettingIfNot($user['prefs'], 'customcss', '');\n $this->setSettingIfNot($user['prefs'], 'newspotdefault_tag', $user['username']);\n $this->setSettingIfNot($user['prefs'], 'newspotdefault_body', '');\n $this->setSettingIfNot($user['prefs'], 'user_language', 'en_US');\n $this->setSettingIfNot($user['prefs'], 'show_avatars', true);\n $this->setSettingIfNot($user['prefs'], 'usemailaddress_for_gravatar', true);\n\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'action', 'disable');\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'local_dir', '/tmp');\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'prepare_action', 'merge');\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'command', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'url', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'apikey', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'username', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'password', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'host', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'port', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'ssl', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'username', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'password', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'timeout', 15);\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbvortex'], 'host', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbvortex'], 'port', '');\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbvortex'], 'apikey', '');\n\n $this->setSettingIfNot($user['prefs']['notifications']['growl'], 'host', '');\n $this->setSettingIfNot($user['prefs']['notifications']['growl'], 'password', '');\n /* Notifo and NMA are discontinued. */\n $this->unsetSetting($user['prefs']['notifications'], 'nma');\n $this->unsetSetting($user['prefs']['notifications'], 'notifo');\n $this->setSettingIfNot($user['prefs']['notifications']['prowl'], 'apikey', '');\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'screen_name', '');\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'request_token', '');\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'request_token_secret', '');\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'access_token', '');\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'access_token_secret', '');\n $notifProviders = Notifications_Factory::getActiveServices();\n foreach ($notifProviders as $notifProvider) {\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider], 'enabled', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'watchlist_handled', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'nzb_handled', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'retriever_finished', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'report_posted', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'spot_posted', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'user_added', false);\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'newspots_for_filter', false);\n } // foreach\n\n // make sure a sort preference is defined. An empty field means relevancy\n $this->setSettingIfNot($user['prefs'], 'defaultsortfield', '');\n\n // Remove deprecated preferences\n $this->unsetSetting($user['prefs'], 'search_url');\n $this->unsetSetting($user['prefs'], 'template');\n $this->unsetSetting($user['prefs']['notifications'], 'libnotify');\n\n // Make sure the user has a valid RSA key\n if ($user['userid'] > 2) {\n $rsaKey = $this->_userDao->getUserPrivateRsaKey($user['userid']);\n if (empty($rsaKey)) {\n // Creer een private en public key paar voor deze user\n $spotSigning = Services_Signing_Base::factory();\n $userKey = $spotSigning->createPrivateKey($this->_settings->get('openssl_cnf_path'));\n\n $this->_userDao->setUserRsaKeys($user['userid'], $userKey['public'], $userKey['private']);\n } // if\n } // if\n\n /*\n * In earlier versions, we always appended \"sabnzbd/\" to the URL, so we do this once\n * manually\n */\n if ($this->_settings->get('securityversion') < 0.31) {\n if (!empty($user['prefs']['nzbhandling']['sabnzbd']['url'])) {\n $user['prefs']['nzbhandling']['sabnzbd']['url'] = $user['prefs']['nzbhandling']['sabnzbd']['url'].'sabnzbd/';\n } // if\n } // if\n\n // update the user record in the database\n $this->_userDao->setUser($user);\n } // foreach\n }","protected function storeExtension()\n\t{\n\t\t// Discover installs are stored a little differently\n\t\tif ($this->route === 'discover_install')\n\t\t{\n\t\t\t$manifest_details = Installer::parseXMLInstallFile($this->parent->getPath('manifest'));\n\n\t\t\t$this->extension->manifest_cache = json_encode($manifest_details);\n\t\t\t$this->extension->state = 0;\n\t\t\t$this->extension->name = $manifest_details['name'];\n\t\t\t$this->extension->enabled = 'editors' === $this->extension->folder ? 1 : 0;\n\t\t\t$this->extension->params = $this->parent->getParams();\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\\JText::_('JLIB_INSTALLER_ERROR_PLG_DISCOVER_STORE_DETAILS'));\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Was there a plugin with the same name already installed?\n\t\tif ($this->currentExtensionId)\n\t\t{\n\t\t\tif (!$this->parent->isOverwrite())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_PLG_INSTALL_ALLREADY_EXISTS',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->name\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$this->extension->load($this->currentExtensionId);\n\t\t\t$this->extension->name = $this->name;\n\t\t\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\n\n\t\t\t// Update the manifest cache and name\n\t\t\t$this->extension->store();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Store in the extensions table (1.6)\n\t\t\t$this->extension->name = $this->name;\n\t\t\t$this->extension->type = 'plugin';\n\t\t\t$this->extension->ordering = 0;\n\t\t\t$this->extension->element = $this->element;\n\t\t\t$this->extension->folder = $this->group;\n\t\t\t$this->extension->enabled = 0;\n\t\t\t$this->extension->protected = 0;\n\t\t\t$this->extension->access = 1;\n\t\t\t$this->extension->client_id = 0;\n\t\t\t$this->extension->params = $this->parent->getParams();\n\n\t\t\t// Custom data\n\t\t\t$this->extension->custom_data = '';\n\n\t\t\t// System data\n\t\t\t$this->extension->system_data = '';\n\t\t\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\n\n\t\t\t// Editor plugins are published by default\n\t\t\tif ($this->group === 'editors')\n\t\t\t{\n\t\t\t\t$this->extension->enabled = 1;\n\t\t\t}\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_PLG_INSTALL_ROLLBACK',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->extension->getError()\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Since we have created a plugin item, we add it to the installation step stack\n\t\t\t// so that if we have to rollback the changes we can undo it.\n\t\t\t$this->parent->pushStep(array('type' => 'extension', 'id' => $this->extension->extension_id));\n\t\t}\n\t}","public function system_save_preference()\n {\n System_helper::save_preference();\n }","function seed_csp4_activation(){\r\n // Store the plugin version when initial install occurred.\r\n $has_seed_csp4_settings_content = get_option('seed_csp4_settings_content');\r\n if(!empty($has_seed_csp4_settings_content)){\r\n add_option( 'seed_csp4_initial_version', 0, '', false );\r\n }else{\r\n add_option( 'seed_csp4_initial_version', SEED_CSP4_VERSION, '', false );\r\n }\r\n \r\n\r\n // Store the plugin version activated to reference with upgrades.\r\n update_option( 'seed_csp4_version', SEED_CSP4_VERSION, false );\r\n\trequire_once( 'inc/default-settings.php' );\r\n\tadd_option('seed_csp4_settings_content',unserialize($seed_csp4_settings_deafults['seed_csp4_settings_content']));\r\n\tadd_option('seed_csp4_settings_design',unserialize($seed_csp4_settings_deafults['seed_csp4_settings_design']));\r\n\tadd_option('seed_csp4_settings_advanced',unserialize($seed_csp4_settings_deafults['seed_csp4_settings_advanced']));\r\n}","function webplayer_db_install_data() {\r\n\tglobal $wpdb;\r\n\tglobal $installed_webplayer_version;\r\n\tglobal $webplayer_version;\r\n\r\n\tif ($installed_webplayer_version != $webplayer_version) {\r\n\t\t$table_name = $wpdb->prefix . \"webplayer\";\t\r\n\t\t$wpdb->insert($table_name, array( \r\n\t\t'id' => 1,\r\n\t\t'videoid' => 1,\r\n\t\t'playlistid' => 0,\r\n\t\t'width' => 640, \r\n\t\t'height' => 360, \r\n\t\t'skinmode' => 'static',\r\n \t\t'stretchtype' => 'fill',\r\n \t\t'buffertime' => 3,\r\n \t\t'volumelevel' => 50,\r\n \t\t'autoplay' => 0,\r\n\t\t'playlistautoplay' => 0,\r\n \t\t'playlistopen' => 0,\r\n \t\t'playlistrandom' => 0,\r\n\t\t'controlbar' => 1,\r\n \t\t'playpause' => 1,\r\n \t\t'progressbar' => 1,\r\n \t\t'timer' => 1,\r\n \t\t'share' => 1,\r\n \t\t'volume' => 1,\r\n \t\t'fullscreen' => 1,\r\n \t\t'playdock' => 1,\r\n\t\t'playlist' => 1\r\n\t\t));\r\n\t\t\r\n\t\t$table_name = $wpdb->prefix . \"webplayer_license\";\t\r\n\t\t$wpdb->insert( $table_name, array( \r\n\t\t'id' => 1,\r\n\t\t'licensekey' => 'HD_Webplayer_Commercial_Key', \r\n\t\t'logo' => 'logo.jpg', \r\n\t\t'logoposition' => 'topleft',\r\n\t\t'logoalpha' => 50,\r\n\t\t'logotarget' => 'http://hdwebplayer.com'\r\n\t\t));\r\n\t\t\r\n\t\t$table_name = $wpdb->prefix . \"webplayer_videos\";\t\r\n\t\t$wpdb->insert( $table_name, array( \r\n\t\t'id' => 1,\r\n\t\t'title' => 'Sample Video',\r\n\t\t'type' => 'video',\r\n\t\t'streamer' => '',\r\n\t\t'dvr' => 0,\r\n\t\t'video' => 'http://hdwebplayer.com/player/videos/300.mp4',\r\n\t\t'hdvideo' => '',\r\n\t\t'preview' => '',\r\n\t\t'thumb' => '',\r\n\t\t'token' => '',\r\n\t\t'playlistid' => 0\r\n\t\t));\r\n\t}\r\n}","function bfa_import_settings_now() {\r\n\tcheck_ajax_referer( \"import_bfa_settings\" );\r\n\t$new_options = maybe_unserialize(bfa_file_get_contents($_FILES['userfile']['tmp_name']));\r\n\tupdate_option('bfa_new_test', $new_options);\r\n\tdie();\r\n}","function install_plugins_favorites_form()\n {\n }"],"string":"[\n \"function save_addon_prefs(){\\n\\t\\tglobal $sql,$pref;\\n// $query = \\\"SELECT * FROM #plugin WHERE plugin_installflag = 1 AND plugin_addons !='' ORDER BY plugin_path ASC\\\";\\n $query = \\\"SELECT * FROM #plugin WHERE plugin_addons !='' ORDER BY plugin_path ASC\\\";\\n\\n\\t\\t// clear all addon prefs before re-creation. \\n\\t\\tunset($pref['shortcode_list'],$pref['bbcode_list'],$pref['e_sql_list']);\\n foreach($this->plugin_addons as $plg)\\n\\t\\t{\\n \\tunset($pref[$plg.\\\"_list\\\"]);\\n\\t\\t}\\n\\n\\t\\tif ($sql -> db_Select_gen($query))\\n\\t\\t{\\n\\t\\t\\twhile($row = $sql-> db_Fetch())\\n\\t\\t\\t{\\n\\t\\t\\t $is_installed = ($row['plugin_installflag'] == 1 );\\n $tmp = explode(\\\",\\\",$row['plugin_addons']);\\n\\t\\t\\t\\t$path = $row['plugin_path'];\\n\\n\\t\\t\\t if ($is_installed)\\n\\t\\t\\t {\\n \\t\\tforeach($this->plugin_addons as $val)\\n\\t\\t\\t\\t{\\n \\tif(in_array($val,$tmp))\\n\\t\\t\\t\\t\\t{\\n \\t\\t\\t\\t\\t\\t$pref[$val.\\\"_list\\\"][$path] = $path;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t }\\n // search for .bb and .sc files.\\n\\t\\t\\t\\t$sc_array = array();\\n\\t\\t\\t\\t$bb_array = array();\\n\\t\\t\\t\\t$sql_array = array();\\n\\n foreach($tmp as $adds)\\n\\t\\t\\t\\t{\\n \\tif(substr($adds,-3) == \\\".sc\\\")\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t$sc_name = substr($adds, 0,-3); // remove the .sc\\n\\t\\t\\t\\t\\t\\tif ($is_installed)\\n\\t\\t\\t\\t\\t\\t{\\n \\t $sc_array[$sc_name] = \\\"0\\\"; // default userclass = e_UC_PUBLIC\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\telse\\n\\t\\t\\t\\t\\t\\t{\\n \\t $sc_array[$sc_name] = e_UC_NOBODY; // register shortcode, but disable it\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tif($is_installed && (substr($adds,-3) == \\\".bb\\\"))\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t$bb_name = substr($adds, 0,-3); // remove the .bb\\n \\t$bb_array[$bb_name] = \\\"0\\\"; // default userclass.\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tif($is_installed && (substr($adds,-4) == \\\"_sql\\\"))\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t$pref['e_sql_list'][$path] = $adds;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n // Build Bbcode list (will be empty if plugin not installed)\\n if(count($bb_array) > 0)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tksort($bb_array);\\n \\t$pref['bbcode_list'][$path] = $bb_array;\\n\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t{\\n if (isset($pref['bbcode_list'][$path])) unset($pref['bbcode_list'][$path]);\\n\\t\\t\\t\\t}\\n\\n // Build shortcode list - do if uninstalled as well\\n\\t\\t\\t\\tif(count($sc_array) > 0)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t ksort($sc_array);\\n\\t\\t\\t\\t $pref['shortcode_list'][$path] = $sc_array;\\n }\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t{\\n if(isset($pref['shortcode_list'][$path])) unset($pref['shortcode_list'][$path]);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t \\tsave_prefs();\\n\\t\\treturn;\\n\\n\\t}\",\n \"function install() {\\n\\t\\tsafe_query('DELETE FROM '.safe_pfx('txp_prefs').' WHERE name LIKE \\\"wlk_phsb_%\\\"');\\n\\t\\tsafe_insert('txp_prefs',\\\"prefs_id = '1',name = 'wlk_phsb_notifications_instant',val = '1',type = '1',event = 'wlk_phsb',html = 'yesnoradio',position = '10',user_name = ''\\\");\\n\\t\\tsafe_insert('txp_prefs',\\\"prefs_id = '1',name = 'wlk_phsb_endpoints',val = '\\\".implode(\\\"\\\\n\\\", $this->vars['endpoints']).\\\"',type = '1',event = 'wlk_phsb',html = 'wlk_phsb_textarea',position = '60',user_name = ''\\\");\\n\\t}\",\n \"function wp_register_persisted_preferences_meta()\\n {\\n }\",\n \"function _sql_add_prefs()\\n\\t{\\n\\t\\t$sql\\t= array();\\n\\n\\t\\t$prefs\\t= array(\\n\\t\\t\\t'max_message_chars'\\t\\t\\t\\t=> 6000,\\n\\t\\t\\t'message_waiting_period'\\t\\t=> 24,\\n\\t\\t\\t'message_throttling'\\t\\t\\t=> 30,\\n\\t\\t\\t'message_day_limit'\\t\\t\\t\\t=> 1000,\\n\\t\\t\\t'max_recipients_per_message'\\t=> 20,\\n\\t\\t);\\n\\n\\t\\t$prefs\\t= base64_encode( serialize( $prefs ) );\\n\\n\\t\\t//\\t----------------------------------------\\n\\t\\t//\\tGet site ids\\n\\t\\t//\\t----------------------------------------\\n\\n\\t\\t$query\\t= ee()->db->query( \\\"SELECT site_id FROM exp_sites\\\" );\\n\\n\\t\\tforeach ( $query->result_array() as $row )\\n\\t\\t{\\n\\t\\t\\t$sql[]\\t= ee()->db->insert_string(\\n\\t\\t\\t\\t'exp_friends_preferences',\\n\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t'site_id' \\t\\t=> $row['site_id'],\\n\\t\\t\\t\\t\\t'preferences' \\t=> $prefs\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\t\\t}\\n\\n\\t\\treturn $sql;\\n\\t}\",\n \"function insert_default_prefs($id){\\n\\t\\t\\t\\tglobal $sql, $aa, $plugintable, $eArrayStorage;\\n\\t\\t\\t\\t$plugintable\\t= \\\"pcontent\\\";\\n\\t\\t\\t\\t$plugindir\\t\\t= e_PLUGIN.\\\"content/\\\";\\n\\t\\t\\t\\tunset($content_pref, $tmp);\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(!is_object($aa)){\\n\\t\\t\\t\\t\\trequire_once($plugindir.\\\"handlers/content_class.php\\\");\\n\\t\\t\\t\\t\\t$aa = new content;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t$content_pref = $aa -> ContentDefaultPrefs($id);\\n\\t\\t\\t\\t$tmp = $eArrayStorage->WriteArray($content_pref);\\n\\n\\t\\t\\t\\t$sql -> db_Update($plugintable, \\\"content_pref='$tmp' WHERE content_id='$id' \\\");\\n\\t\\t}\",\n \"function add_prefs($galerie)\\r\\n\\t{\\r\\n\\t\\tglobal $nuked, $user, $language, $niveau_upload;\\r\\n\\t\\tif($user[1] >= $niveau_upload)\\r\\n\\t\\t{\\r\\n\\t\\t\\t$sql = mysql_query(\\\"SELECT id FROM \\\".ESPACE_MEMBRE_GALERY_TABLE.\\\" WHERE user_id='\\\" . $user[0] . \\\"' \\\");\\r\\n\\t\\t\\t$test = mysql_num_rows($sql);\\r\\n\\t\\t\\tif($test == 0)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\t$add=mysql_query(\\\"INSERT INTO \\\".ESPACE_MEMBRE_GALERY_TABLE.\\\" VALUES ('' , '\\\" . $user[0] . \\\"' , '\\\" . $galerie . \\\"' )\\\");\\r\\n\\t\\t\\t}else{\\r\\n\\t\\t\\t\\t$upd1 = mysql_query(\\\"UPDATE \\\".ESPACE_MEMBRE_GALERY_TABLE.\\\" SET value = '\\\" . $galerie . \\\"' WHERE user_id = '\\\" . $user[0] . \\\"' \\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\techo \\\"\\t


    \\\" . _PREFUPDATED . \\\"

    \\\";\\r\\n\\t\\t\\tredirect(\\\"index.php?file=Espace_membre&op=compte\\\", 2);\\r\\n\\t\\t}else{\\r\\n\\t\\t\\techo\\\"\\t


    \\\" . _NOTACCES . \\\"

    \\\";\\r\\n\\t\\t\\tredirect(\\\"index.php?file=Espace_membre\\\", 3);\\r\\n\\t\\t}\\r\\n\\t}\",\n \"function wlms_plugin_install()\\n{\\n wlms_create_table();\\n wlms_settings_data();\\n}\",\n \"function _savesettings()\\r\\n {\\r\\n\\t\\t$settings = JRequest::getVar('settings');\\r\\n\\r\\n\\t\\tjimport('joomla.registry.registry');\\r\\n\\t\\t$reg = new JRegistry();\\r\\n\\t\\t$reg->loadArray($settings);\\r\\n\\t\\t\\t\\t\\r\\n\\t\\tif(JFusionConnect::isJoomlaVersion('1.6')) {\\r\\n\\t\\t\\t$component =& JTable::getInstance('extension');\\r\\n\\t\\t\\t$componentid = $component->find(array('type' => 'component','element' => 'com_jfusionconnect'));\\r\\n\\t\\t\\t$component->load($componentid);\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t$plugin =& JTable::getInstance('extension');\\r\\n\\t\\t\\t$pluginid = $plugin->find(array('type' => 'plugin','element' => 'jfusionconnect'));\\r\\n\\t\\t\\t$plugin->load($pluginid);\\r\\n\\t\\t\\t$key='enabled';\\r\\n\\t\\t} else {\\r\\n\\t\\t\\t$component =& JTable::getInstance('component');\\r\\n\\t\\t\\t$component->loadByOption('com_jfusionconnect');\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t$plugin =& JTable::getInstance('plugin');\\r\\n\\t\\t\\t$plugin->_tbl_key = 'element';\\r\\n\\t\\t\\t$plugin->load('jfusionconnect');\\r\\n\\t\\t\\t$key='published';\\r\\n\\t\\t}\\r\\n\\t\\t$component->params = $reg->toString();\\r\\n\\t\\t$component->store();\\r\\n \\tif ($settings['enabled']) {\\r\\n\\t\\t\\t$plugin->$key = 1;\\r\\n\\t\\t} else {\\r\\n\\t\\t\\t$plugin->$key = 0;\\r\\n\\t\\t}\\r\\n\\t\\t$plugin->store();\\r\\n }\",\n \"function manage_plugin_prefs($action, $prefname, $plugin_folder, $varArray = '') \\n\\t{\\n\\t\\tglobal $pref;\\n\\t\\tif ($prefname == 'plug_sc' || $prefname == 'plug_bb') \\n\\t\\t{ // Special cases - shortcodes and bbcodes - each plugin may contribute several elements\\n\\t\\t\\tforeach($varArray as $code) {\\n\\t\\t\\t\\t$prefvals[] = \\\"$code:$plugin_folder\\\";\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\t$prefvals[] = $varArray;\\n//\\t\\t\\t$prefvals[] = $plugin_folder;\\n\\t\\t}\\n\\t\\t$curvals = explode(',', $pref[$prefname]);\\n\\n\\t\\tif ($action == 'add') \\n\\t\\t{\\n\\t\\t\\t$newvals = array_merge($curvals, $prefvals);\\n\\t\\t}\\n\\t\\tif ($action == 'remove') \\n\\t\\t{\\n\\t\\t foreach($prefvals as $v) \\n\\t\\t {\\n\\t\\t\\tif (($i = array_search($v, $curvals)) !== FALSE) \\n\\t\\t\\t{\\n\\t\\t\\t unset($curvals[$i]);\\n\\t\\t\\t}\\n\\t\\t }\\n\\t\\t $newvals = $curvals;\\n\\t\\t}\\n\\t\\t$newvals = array_unique($newvals);\\n\\t\\t$pref[$prefname] = implode(',', $newvals);\\n\\n\\t\\tif(substr($pref[$prefname], 0, 1) == \\\",\\\")\\n\\t\\t{\\n\\t\\t $pref[$prefname] = substr($pref[$prefname], 1);\\n\\t\\t}\\n\\t\\tsave_prefs();\\n\\t}\",\n \"function save()\\n {\\n foreach ($this->plugins as $name => $obj) {\\n $this->updateServicesVars($name);\\n\\n if ($this->plugins[$name]->is_account) {\\n $this->plugins[$name]->save();\\n } elseif ($this->plugins[$name]->initially_was_account) {\\n $this->plugins[$name]->remove_from_parent();\\n }\\n }\\n }\",\n \"function store(){\\n update_option( $this->option_name, $this->settings );\\n }\",\n \"private function savePluginData($plugins)\\n {\\n $dbtable = $this->project->id . '_plugins';\\n foreach ($plugins as $plugin) {\\n $plugin['timestamp'] = $this->timestamp;\\n \\\\DB::table($dbtable)->insert($plugin);\\n }\\n }\",\n \"public abstract function settingsSave(array &$pluginInfo);\",\n \"public function Save() {\\n\\t\\t\\n\\t\\tglobal $sql;\\n\\t\\tforeach( $this->settings as $option => $value ) {\\n\\t\\t\\t\\n\\t\\t\\t$this->update_option( $option, $value, $this->username );\\n\\t\\t}\\n\\t}\",\n \"function update_plugins_table() \\n\\t{\\n\\t\\tglobal $sql, $sql2, $mySQLprefix, $menu_pref, $tp, $pref;\\n\\n\\t\\trequire_once(e_HANDLER.'file_class.php');\\n\\n\\t\\t$fl = new e_file;\\n\\t\\t$pluginList = $fl->get_files(e_PLUGIN, \\\"^plugin\\\\.php$\\\", \\\"standard\\\", 1);\\n\\t\\t$sp = FALSE;\\n\\n// Read all the plugin DB info into an array to save lots of accesses\\n\\t\\t$pluginDBList = array();\\n\\t\\tif ($sql->db_Select('plugin',\\\"*\\\"))\\n\\t\\t{\\n\\t\\t while ($row = $sql->db_Fetch())\\n\\t\\t {\\n\\t\\t $pluginDBList[$row['plugin_path']] = $row;\\n\\t\\t $pluginDBList[$row['plugin_path']]['status'] = 'read';\\n//\\t\\t\\techo \\\"Found plugin: \\\".$row['plugin_path'].\\\" in DB
    \\\";\\n\\t\\t }\\n\\t\\t}\\n\\n\\t\\t// Get rid of any variables previously defined which may occur in plugin.php\\n\\t\\tforeach($pluginList as $p)\\n\\t\\t{\\n\\t\\t $defined_vars = array_keys(get_defined_vars());\\n\\t\\t foreach($defined_vars as $varname) \\n\\t\\t {\\n\\t\\t\\tif ((substr($varname, 0, 6) == 'eplug_') || (substr($varname, 0, 8) == 'upgrade_')) \\n\\t\\t\\t{\\n\\t\\t\\t unset($$varname);\\n\\t\\t\\t}\\n\\t\\t }\\n\\n\\t\\t // We have to include here to set the variables, otherwise we only get uninstalled plugins\\n\\t\\t // Would be nice to eval() the file contents to pick up errors better, but too many path issues\\n\\t\\t $plug['plug_action'] = 'scan';\\t\\t\\t// Make sure plugin.php knows what we're up to\\n\\t\\t include(\\\"{$p['path']}{$p['fname']}\\\");\\n\\t\\t $plugin_path = substr(str_replace(e_PLUGIN,\\\"\\\",$p['path']),0,-1);\\n\\n\\t\\t // scan for addons.\\n\\t\\t $eplug_addons = $this->getAddons($plugin_path);\\t\\t\\t// Returns comma-separated list\\n//\\t\\t $eplug_addons = $this->getAddons($plugin_path,'check');\\t\\t// Checks opening/closing tags on addon files\\n\\n\\t\\t // See whether the plugin needs installation - it does if one or more variables defined\\n\\t\\t $no_install_needed = 1;\\n\\t\\t foreach ($this->all_eplug_install_variables as $check_var)\\n\\t\\t {\\n\\t\\t if (isset($$check_var) && ($$check_var)) { $no_install_needed = 0; }\\n\\t\\t }\\n\\n\\t\\t if ($plugin_path == $eplug_folder)\\n\\t\\t {\\n\\t\\t\\tif(array_key_exists($plugin_path,$pluginDBList))\\n\\t\\t\\t{ // Update the addons needed by the plugin\\n\\t\\t $pluginDBList[$plugin_path]['status'] = 'exists';\\n\\t\\t\\t // If plugin not installed, and version number of files changed, update version as well\\n\\t\\t\\t if (($pluginDBList[$plugin_path]['plugin_installflag'] == 0) && ($pluginDBList[$plugin_path]['plugin_version'] != $eplug_version))\\n\\t\\t\\t { // Update stored version\\n\\t\\t\\t\\t$pluginDBList[$plugin_path]['plugin_version'] = $eplug_version;\\n\\t\\t\\t\\t$pluginDBList[$plugin_path]['status'] = 'update';\\n\\t\\t\\t }\\n\\t\\t\\t if ($pluginDBList[$plugin_path]['plugin_addons'] != $eplug_addons)\\n\\t\\t\\t { // Update stored addons list\\n\\t\\t\\t\\t$pluginDBList[$plugin_path]['plugin_addons'] = $eplug_addons;\\n\\t\\t\\t\\t$pluginDBList[$plugin_path]['status'] = 'update';\\n\\t\\t\\t }\\n\\t\\t\\t \\n\\t\\t\\t if ($pluginDBList[$plugin_path]['plugin_installflag'] == 0)\\n\\t\\t\\t { // Plugin not installed - make sure $pref not set\\n\\t\\t\\t if (isset($pref['plug_installed'][$plugin_path]))\\n\\t\\t\\t\\t{\\n\\t\\t\\t unset($pref['plug_installed'][$plugin_path]);\\n//\\t\\t\\t\\t echo \\\"Remove: \\\".$plugin_path.\\\"->\\\".$ep_row['plugin_version'].\\\"
    \\\";\\n\\t\\t\\t\\t $sp = TRUE;\\n\\t\\t\\t\\t}\\n\\t\\t\\t }\\n\\t\\t\\t else\\n\\t\\t\\t {\\t// Plugin installed - make sure $pref is set\\n\\t\\t\\t\\tif (!isset($pref['plug_installed'][$plugin_path]) || ($pref['plug_installed'][$plugin_path] != $pluginDBList[$plugin_path]['plugin_version']))\\n\\t\\t\\t\\t{\\t// Update prefs array of installed plugins\\n\\t\\t\\t $pref['plug_installed'][$plugin_path] = $pluginDBList[$plugin_path]['plugin_version'];\\n//\\t\\t\\t\\t echo \\\"Add: \\\".$plugin_path.\\\"->\\\".$ep_row['plugin_version'].\\\"
    \\\";\\n\\t\\t\\t\\t $sp = TRUE;\\n\\t\\t\\t\\t}\\n\\t\\t\\t }\\n\\t\\t\\t}\\n\\t\\t\\telse\\n\\t\\t\\t{ // New plugin - not in table yet, so add it. If no install needed, mark it as 'installed'\\n\\t\\t\\t if ($eplug_name)\\n\\t\\t\\t {\\n\\t\\t\\t\\t// Can just add to DB - shouldn''t matter that its not in our current table\\n//\\t\\t\\t\\techo \\\"Trying to insert: \\\".$eplug_folder.\\\"
    \\\";\\n\\t\\t\\t\\t$sql->db_Insert(\\\"plugin\\\", \\\"0, '\\\".$tp -> toDB($eplug_name, true).\\\"', '\\\".$tp -> toDB($eplug_version, true).\\\"', '\\\".$tp -> toDB($eplug_folder, true).\\\"', {$no_install_needed}, '{$eplug_addons}' \\\");\\n\\t\\t\\t }\\n\\t\\t\\t}\\n\\t\\t }\\n\\t\\t else\\n\\t\\t { // May be useful that we ignore what will usually be copies/backups of plugins - but don't normally say anything\\n//\\t\\t echo \\\"Plugin copied to wrong directory. Is in: {$plugin_path} Should be: {$eplug_folder}

    \\\";\\n\\t\\t }\\n\\t\\t}\\n\\n\\t\\t// Now scan the table, updating the DB where needed\\n\\t\\tforeach ($pluginDBList as $plug_path => $plug_info)\\n\\t\\t{\\n\\t\\t if ($plug_info['status'] == 'read')\\n\\t\\t {\\t// In table, not on server - delete it\\n\\t\\t\\t$sql->db_Delete('plugin', \\\"`plugin_id`='{$plug_info['plugin_id']}'\\\");\\n//\\t\\t\\techo \\\"Deleted: \\\".$plug_path.\\\"
    \\\";\\n\\t\\t }\\n\\t\\t if ($plug_info['status'] == 'update')\\n\\t\\t {\\n\\t\\t $temp = array();\\n\\t\\t\\tforeach ($this->all_editable_db_fields as $p_f)\\n\\t\\t\\t{\\n\\t\\t\\t $temp[] =\\\"`{$p_f}` = '{$plug_info[$p_f]}'\\\";\\n\\t\\t\\t}\\n\\t\\t $sql->db_Update('plugin', implode(\\\", \\\",$temp).\\\" WHERE `plugin_id`='{$plug_info['plugin_id']}'\\\");\\n//\\t\\t\\techo \\\"Updated: \\\".$plug_path.\\\"
    \\\";\\n\\t\\t }\\n\\t\\t}\\n\\t if ($sp) save_prefs();\\n\\t}\",\n \"public function add_plugin($plugin_name, $plugin_url, $checked){\\n\\t \\t$this->load->model('download_model');\\t\\n\\n\\t\\t\\t$query = $this\\n\\t\\t\\t\\t\\t\\t->download_model\\n\\t\\t\\t\\t\\t\\t->get_site_credentials();\\n\\n\\t\\t\\t$host = $query[0]->admin_host;\\n\\t\\t\\t$user = $query[0]->admin_user;\\n\\t\\t\\t$pass = $query[0]->admin_password;\\t\\t\\t\\t\\n\\n\\t\\t\\t$config['hostname'] = \\\"localhost\\\";\\n\\t\\t $config['username'] = $user;\\n\\t\\t $config['password'] = $pass;\\n\\t\\t $config['database'] = \\\"wordpress_default_plugins\\\";\\n\\t\\t $config['dbdriver'] = \\\"mysql\\\";\\n\\t\\t $config['dbprefix'] = \\\"\\\";\\n\\t\\t $config['pconnect'] = FALSE;\\n\\t\\t $config['db_debug'] = TRUE;\\n\\t\\t $config['cache_on'] = FALSE;\\n\\t\\t $config['cachedir'] = \\\"\\\";\\n\\t\\t $config['char_set'] = \\\"utf8\\\";\\n\\t\\t $config['dbcollat'] = \\\"utf8_general_ci\\\";\\n\\n\\t\\t \\t$db2 = $this->load->database($config,TRUE);\\n\\n\\t\\t\\t$data = array(\\n\\t\\t\\t 'plugin_name' => $plugin_name,\\n\\t\\t\\t 'plugin_path' => $plugin_url ,\\n\\t\\t\\t 'checked' => $checked\\n\\t\\t\\t);\\n\\n\\t\\t\\t$db2->insert('default_plugins', $data); \\n\\t\\t\\t\\n\\t\\t\\treturn true;\\t\\t\\n\\n\\t\\t}\",\n \"public function save_settings()\\n\\t{\\n\\t\\t// Create settings array.\\n\\t\\t$settings = array();\\n\\n\\t\\t// Loop through default settings and check for saved values.\\n\\t\\tforeach (ee()->simple_cloner_settings->_default_settings as $key => $value)\\n\\t\\t{\\n\\t\\t\\tif(($settings[$key] = ee()->input->post($key)) == FALSE)\\n\\t\\t\\t{\\n\\t\\t\\t\\t$settings[$key] = $value;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Serialize settings array and update the extensions table.\\n\\t\\tee()->db->where('class', $this->class_name.'_ext');\\n\\t\\tee()->db->update('extensions', array('settings' => serialize($settings)));\\n\\n\\t\\t// Create alert when settings are saved and redirect back to settings page.\\n\\t\\tee('CP/Alert')->makeInline('simple-cloner-save')\\n\\t\\t\\t->asSuccess()\\n\\t\\t\\t->withTitle(lang('message_success'))\\n\\t\\t\\t->addToBody(lang('preferences_updated'))\\n\\t\\t\\t->defer();\\n\\n\\t\\tee()->functions->redirect(ee('CP/URL')->make('addons/settings/simple_cloner'));\\n\\t}\",\n \"function prefs_save($args)\\n {\\n if ($args['section'] != 'mailbox') {\\n return $args;\\n }\\n\\n // Load configuration\\n $this->load_config();\\n\\n // Check that configuration is not disabled\\n $dont_override = (array) $this->rc->config->get('dont_override', array());\\n\\n foreach (array('basic', 'desktop', 'sound') as $type) {\\n $key = 'newmail_notifier_' . $type;\\n if (!in_array($key, $dont_override)) {\\n $args['prefs'][$key] = rcube_utils::get_input_value('_' . $key, rcube_utils::INPUT_POST) ? true : false;\\n }\\n }\\n\\n $option = 'newmail_notifier_desktop_timeout';\\n if (!in_array($option, $dont_override)) {\\n if ($value = (int) rcube_utils::get_input_value('_' . $option, rcube_utils::INPUT_POST)) {\\n $args['prefs'][$option] = $value;\\n }\\n }\\n\\n return $args;\\n }\",\n \"function save_settings() {\\n\\t\\t$this->update_option( static::SETTINGS_KEY, $this->settings );\\n\\t}\",\n \"function install_plugin($id) \\n\\t{\\n\\t\\tglobal $sql, $ns, $sysprefs,$mySQLprefix, $tp;\\n\\n\\t\\t// install plugin ...\\n\\t\\t$plug = $this->getinfo($id);\\n\\t\\t$plug['plug_action'] = 'install';\\n\\n\\t\\tif ($plug['plugin_installflag'] == FALSE) {\\n\\t\\t\\tinclude_once(e_PLUGIN.$plug['plugin_path'].'/plugin.php');\\n\\n\\t\\t\\t$func = $eplug_folder.'_install';\\n\\t\\t\\tif (function_exists($func)) {\\n\\t\\t\\t\\t$text .= call_user_func($func);\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (is_array($eplug_tables)) {\\n\\t\\t\\t\\t$result = $this->manage_tables('add', $eplug_tables);\\n\\t\\t\\t\\tif ($result === TRUE) {\\n\\t\\t\\t\\t\\t$text .= EPL_ADLAN_19.'
    ';\\n\\t\\t\\t\\t\\t//success\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$text .= EPL_ADLAN_18.'
    ';\\n\\t\\t\\t\\t\\t//fail\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\n\\n\\t\\t\\tif (is_array($eplug_prefs)) {\\n\\t\\t\\t\\t$this->manage_prefs('add', $eplug_prefs);\\n\\t\\t\\t\\t$text .= EPL_ADLAN_8.'
    ';\\n\\t\\t\\t}\\n\\n\\n\\n\\t\\t\\tif (is_array($eplug_array_pref)){\\n\\t\\t\\t\\tforeach($eplug_array_pref as $key => $val){\\n\\t\\t\\t\\t\\t$this->manage_plugin_prefs('add', $key, $eplug_folder, $val);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (is_array($eplug_sc)) {\\n\\t\\t\\t\\t$this->manage_plugin_prefs('add', 'plug_sc', $eplug_folder, $eplug_sc);\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (is_array($eplug_bb)) {\\n\\t\\t\\t\\t$this->manage_plugin_prefs('add', 'plug_bb', $eplug_folder, $eplug_bb);\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (is_array($eplug_user_prefs)) {\\n\\t\\t\\t\\t$sql->db_Select(\\\"core\\\", \\\" e107_value\\\", \\\" e107_name = 'user_entended'\\\");\\n\\t\\t\\t\\t$row = $sql->db_Fetch();\\n\\t\\t\\t\\t$user_entended = unserialize($row[0]);\\n\\t\\t\\t\\twhile (list($e_user_pref, $default_value) = each($eplug_user_prefs)) {\\n\\t\\t\\t\\t\\t$user_entended[] = $e_user_pref;\\n\\t\\t\\t\\t\\t$user_pref['$e_user_pref'] = $default_value;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tsave_prefs(\\\"user\\\");\\n\\t\\t\\t\\t$tmp = addslashes(serialize($user_entended));\\n\\t\\t\\t\\tif ($sql->db_Select(\\\"core\\\", \\\"e107_value\\\", \\\" e107_name = 'user_entended'\\\")) {\\n\\t\\t\\t\\t\\t$sql->db_Update(\\\"core\\\", \\\"e107_value = '{$tmp}' WHERE e107_name = 'user_entended' \\\");\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$sql->db_Insert(\\\"core\\\", \\\"'user_entended', '{$tmp}' \\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t$text .= EPL_ADLAN_8.\\\"
    \\\";\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ($eplug_link === TRUE && $eplug_link_url != '' && $eplug_link_name != '') {\\n $plug_perm['everyone'] = e_UC_PUBLIC;\\n\\t\\t\\t\\t$plug_perm['guest'] = e_UC_GUEST;\\n\\t\\t\\t\\t$plug_perm['member'] = e_UC_MEMBER;\\n\\t\\t\\t\\t$plug_perm['mainadmin'] = e_UC_MAINADMIN;\\n\\t\\t\\t\\t$plug_perm['admin'] = e_UC_ADMIN;\\n\\t\\t\\t\\t$plug_perm['nobody'] = e_UC_NOBODY;\\n\\t\\t\\t\\t$eplug_link_perms = strtolower($eplug_link_perms);\\n $linkperm = ($plug_perm[$eplug_link_perms]) ? $plug_perm[$eplug_link_perms] : e_UC_PUBLIC;\\n\\t\\t\\t\\t$this->manage_link('add', $eplug_link_url, $eplug_link_name,$linkperm);\\n\\t\\t\\t}\\n\\n\\t\\t\\tif ($eplug_userclass) {\\n\\t\\t\\t\\t$this->manage_userclass('add', $eplug_userclass, $eplug_userclass_description);\\n\\t\\t\\t}\\n\\n\\t\\t\\t$this -> manage_search('add', $eplug_folder);\\n\\n\\t\\t\\t$this -> manage_notify('add', $eplug_folder);\\n\\n\\t\\t\\t$eplug_addons = $this->getAddons($eplug_folder);\\n\\n\\t\\t\\t$sql->db_Update('plugin', \\\"plugin_installflag = 1, plugin_addons = '{$eplug_addons}' WHERE plugin_id = '\\\".intval($id).\\\"'\\\");\\n\\t\\t\\t$pref['plug_installed'][$plugin_path] = $plug['plugin_version'];\\n\\t\\t\\tsave_prefs();\\n\\t\\t\\t\\n if($rssmess) { $text .= $rssmess; }\\n\\t\\t\\t$text .= (isset($eplug_done) ? \\\"
    {$eplug_done}\\\" : \\\"
    \\\".LAN_INSTALL_SUCCESSFUL);\\n\\t\\t} else {\\n\\t\\t\\t$text = EPL_ADLAN_21;\\n\\t\\t}\\n\\t\\tif($eplug_conffile){ $text .= \\\"&nbsp;[\\\".LAN_CONFIGURE.\\\"]\\\"; }\\n\\t\\t$ns->tablerender(EPL_ADLAN_33, $text);\\n\\t}\",\n \"function plugin_postinstall()\\n{\\n global $_CONF, $_TABLES, $pi_admin;\\n\\n require_once $_CONF['path_system'] . 'classes/config.class.php';\\n\\n $plg_config = config::get_instance();\\n $_PLG_CONF = $plg_config->get_config('{plugin}');\\n\\n $admin_group_id = DB_getItem($_TABLES['groups'], 'grp_id', \\\"grp_name = '{$pi_admin}'\\\");\\n $blockadmin_id = DB_getItem($_TABLES['groups'], 'grp_id', \\\"grp_name = 'Block Admin'\\\");\\n\\n $DEFVALUES = array();\\n $DEFVALUES[] = \\\"INSERT INTO {$_TABLES['{plugin}']} (up_title, up_value, owner_id, group_id) \\\"\\n . \\\"VALUES ('Sample Data', 100, 2, #group#)\\\";\\n $DEFVALUES[] = \\\"INSERT INTO {$_TABLES['{plugin}']} (up_title, up_value, owner_id, group_id) \\\"\\n . \\\"VALUES ('More Sample Data', 200, 2, #group#)\\\";\\n\\n foreach ($DEFVALUES as $sql) {\\n $sql = str_replace('#group#', $admin_group_id, $sql);\\n DB_query($sql, 1);\\n if (DB_error()) {\\n COM_error(\\\"SQL error in {plugin} plugin postinstall, SQL: \\\" . $sql);\\n return false;\\n }\\n }\\n\\n return true;\\n}\",\n \"protected function doPrePluginOptionsSave() {\\n\\t\\t$oDp = $this->loadDP();\\n\\n\\t\\tif ( $this->getOpt( 'activated_at', 0 ) <= 0 ) {\\n\\t\\t\\t$this->setOpt( 'activated_at', $oDp->time() );\\n\\t\\t}\\n\\t\\tif ( $this->getOpt( 'installation_time', 0 ) <= 0 ) {\\n\\t\\t\\t$this->setOpt( 'installation_time', $oDp->time() );\\n\\t\\t}\\n\\n\\t\\t$this->setOpt( 'installed_version', $this->getController()->getVersion() );\\n\\t}\",\n \"function notification_user_settings_save() {\\n\\tglobal $CONFIG;\\n\\t//@todo Wha??\\n\\tinclude($CONFIG->path . \\\"actions/notifications/settings/usersettings/save.php\\\");\\n}\",\n \"function store_data($data, $data_name)\\n{\\n /* @todo store the PUA data in its own table */\\n update_option($data_name, serialize($data));\\n}\",\n \"function _arc_meta_install_prefs()\\n{\\n if (!isset($prefs['arc_meta_homepage_title'])) {\\n set_pref('arc_meta_homepage_title', '%n | %t', 'arc_meta', PREF_PLUGIN, 'text_input', 10);\\n }\\n if (!isset($prefs['arc_meta_article_title'])) {\\n set_pref('arc_meta_article_title', '%a | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 20);\\n }\\n if (!isset($prefs['arc_meta_comment_title'])) {\\n set_pref('arc_meta_comment_title', gTxt('comments_on').' %a | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 30);\\n }\\n if (!isset($prefs['arc_meta_search_title'])) {\\n set_pref('arc_meta_search_title', gTxt('search_results') . ': ' . '%q | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 40);\\n }\\n if (!isset($prefs['arc_meta_category_title'])) {\\n set_pref('arc_meta_category_title', '%c | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 50);\\n }\\n if (!isset($prefs['arc_meta_section_title'])) {\\n set_pref('arc_meta_section_title', '%s | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 60);\\n }\\n if (!isset($prefs['arc_meta_section_category_title'])) {\\n set_pref('arc_meta_section_category_title', '%c - %s | %n', 'arc_meta', PREF_PLUGIN, 'text_input', 70);\\n }\\n if (!isset($prefs['arc_meta_section_tab'])) {\\n set_pref('arc_meta_section_tab', 'content', 'arc_meta', PREF_PLUGIN, '_arc_meta_section_tab_select', 80);\\n }\\n return;\\n}\",\n \"function plugin_install () {\\n global $wpdb;\\n $charset_collate = $wpdb->get_charset_collate();\\n\\n // First we define our tables. We need 3, so let's create the names\\n $pollsTable = $wpdb->prefix . \\\"polls_\\\" .\\\"polls\\\";\\n $optionsTable = $wpdb->prefix . \\\"polls_\\\" .\\\"options\\\";\\n $votesTable = $wpdb->prefix . \\\"polls_\\\" .\\\"votes\\\";\\n\\n // Let's now create the tables with the names we built\\n\\n // Poll is the \\\"master container\\\" of our little system\\n $createPollTable = \\\"CREATE TABLE $pollsTable (\\n id mediumint(9) NOT NULL AUTO_INCREMENT,\\n name tinytext NOT NULL,\\n creationDate TIMESTAMP NOT NULL,\\n PRIMARY KEY (id)\\n ) $charset_collate;\\\";\\n \\n // Then we need to create options that are tied to each poll\\n $createOptionsTable = \\\"CREATE TABLE $optionsTable (\\n id mediumint(9) NOT NULL AUTO_INCREMENT,\\n poll_id mediumInt(9) NOT NULL,\\n name tinytext NOT NULL,\\n PRIMARY KEY (id),\\n FOREIGN KEY (poll_id) REFERENCES {$pollsTable} (id)\\n ) $charset_collate;\\\";\\n\\n // And finally, we need to store each vote as a row. Each vote belongs to a poll\\n // and represents one option from it\\n $createVotesTable = \\\"CREATE TABLE $votesTable (\\n id mediumint(9) NOT NULL AUTO_INCREMENT,\\n poll_id mediumInt(9) NOT NULL,\\n option_id mediumInt(9) NOT NULL,\\n creationDate TIMESTAMP NOT NULL,\\n PRIMARY KEY (id),\\n FOREIGN KEY (poll_id) REFERENCES {$pollsTable} (id),\\n FOREIGN KEY (option_id) REFERENCES {$optionsTable} (id)\\n ) $charset_collate;\\\";\\n\\n // We need to import the upgrade script to make the plugin create the tables upon activation:\\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\\n\\n // And now let's execute our queries\\n dbDelta($createPollTable);\\n dbDelta($createOptionsTable);\\n dbDelta($createVotesTable);\\n}\",\n \"function install_hooks() {\\n // Info that the plugin is activated.\\n update_option( 'DB_Plugin_Hooks', true );\\n }\",\n \"function upgrade_1_22_prefs($content_pref){\\n\\n\\t\\t\\t//create : item page\\n\\t\\t\\t$content_pref['content_admin_subheading'] = '1';\\n\\t\\t\\t$content_pref['content_admin_summary'] = '1';\\n\\t\\t\\t$content_pref['content_admin_startdate'] = '1';\\n\\t\\t\\t$content_pref['content_admin_enddate'] = '1';\\n\\n\\t\\t\\t//create : category page\\n\\t\\t\\t$content_pref['content_admincat_subheading'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_comment'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_rating'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_pe'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_visibility'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_startdate'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_enddate'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_uploadicon'] = '1';\\n\\t\\t\\t$content_pref['content_admincat_selecticon'] = '1';\\n\\n\\t\\t\\t//create : submit page\\n\\t\\t\\t$content_pref['content_submit_subheading'] = '1';\\n\\t\\t\\t$content_pref['content_submit_summary'] = '1';\\n\\t\\t\\t$content_pref['content_submit_startdate'] = '1';\\n\\t\\t\\t$content_pref['content_submit_enddate'] = '1';\\n\\n\\t\\t\\t//content manager\\n\\t\\t\\t$content_pref['content_manager_approve'] = '255';\\n\\t\\t\\t$content_pref['content_manager_personal'] = '255';\\n\\t\\t\\t$content_pref['content_manager_category'] = '255';\\n\\n\\t\\t\\treturn $content_pref;\\n\\t\\t}\",\n \"public function refresh_plugin_settings() {\\n self::$instance->plugin_settings = self::$instance->get_plugin_settings();\\n }\",\n \"function addPreference($link,$profile_id,$value)\\n\\t\\t{\\n\\t\\t\\t$value = mysqli_escape_string($link,$value);\\n\\t\\t\\t$profile_id = mysqli_escape_string($link,$profile_id);\\n\\t\\t\\t$sql = 'INSERT INTO preference (profile_id,value) VALUES ('.$profile_id.',\\\"'.$value.'\\\")';\\n\\t\\t\\tif (mysqli_query($link, $sql)) {\\n\\t\\t\\t\\t//success\\n\\t\\t\\t\\treturn \\\"success\\\";\\n\\t\\t\\t}else{\\n\\t\\t\\t\\t//error\\n\\t\\t\\t\\treturn '{\\\"status\\\":\\\"error\\\",\\\"message\\\":\\\"preference not inserted\\\"}';\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function install_settings()\\n\\t{\\n\\t\\t//-----------------------------------------\\n\\t\\t// Get DB\\n\\t\\t//-----------------------------------------\\n\\t\\t\\n\\t\\trequire_once( INS_KERNEL_PATH . 'class_db_' . $this->install->saved_data['sql_driver'] . '.php' );\\t\\t\\n\\t\\t\\n\\t\\t$this->install->ipsclass->init_db_connection( $this->install->saved_data['db_name'],\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t $this->install->saved_data['db_user'],\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t $this->install->saved_data['db_pass'],\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t $this->install->saved_data['db_host'],\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t $this->install->saved_data['db_pre'],\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t $this->install->ipsclass->vars['mysql_codepage'],\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t $this->install->saved_data['sql_driver'] );\\t\\n\\t\\t//-----------------------------------------\\n\\t\\t// Install settings\\n\\t\\t//-----------------------------------------\\n\\t\\n\\t\\t$output[] = \\\"Добавление настроек...\\\";\\n\\t\\t$xml = new class_xml();\\n\\t\\t$xml->lite_parser = 1;\\n\\t\\t\\n\\t\\t$content = implode( \\\"\\\", file( INS_DOC_ROOT_PATH . 'resources/settings.xml' ) );\\n\\t\\t$xml->xml_parse_document( $content );\\n\\n\\t\\t//-----------------------------------------\\n\\t\\t// Known settings\\n\\t\\t//-----------------------------------------\\n\\t\\t\\n\\t\\tif ( substr( $this->install->saved_data['install_url'], -1 ) == '/' )\\n\\t\\t{\\n\\t\\t\\t$this->install->saved_data['install_url'] = substr( $this->install->saved_data['install_url'], 0, -1 );\\n\\t\\t}\\n\\t\\t\\n\\t\\t$_urls = parse_url( $this->install->saved_data['install_url'] );\\n\\t\\t\\n\\t\\t$known = array( 'email_in' => $this->install->saved_data['admin_email'],\\n\\t\\t\\t\\t\\t\\t 'email_out' => $this->install->saved_data['admin_email'],\\n\\t\\t\\t\\t\\t\\t 'base_dir' => $this->install->saved_data['install_dir'],\\n\\t\\t\\t\\t\\t\\t 'upload_dir' => $this->install->saved_data['install_dir'] . '/uploads',\\n\\t\\t\\t\\t\\t\\t 'upload_url' => $this->install->saved_data['install_url'] . '/uploads',\\n\\t\\t\\t\\t\\t\\t 'search_sql_method' => $this->install->ipsclass->DB->sql_can_fulltext() ? 'ftext' : 'man',\\n\\t\\t\\t\\t\\t\\t //'cookie_domain' => $_urls['host'] != 'localhost' ? '.' . preg_replace( \\\"#^(?:.+?\\\\.)?([a-z0-9\\\\-]{3,})\\\\.(([a-z]{2,4})(\\\\.([a-z]{2}))?|museum)$#is\\\", \\\"\\\\\\\\1.\\\\\\\\2\\\", $_urls['host'] ) : '',\\n\\t\\t\\t\\t\\t );\\n\\t\\t\\t\\t\\t\\n\\t\\t//-----------------------------------------\\n\\t\\t// Parse\\n\\t\\t//-----------------------------------------\\n\\n\\t\\t$fields = array( 'conf_title' , 'conf_description', 'conf_group' , 'conf_type' , 'conf_key' , 'conf_default',\\n\\t\\t\\t\\t\\t\\t 'conf_extra' , 'conf_evalphp' , 'conf_protected', 'conf_position', 'conf_start_group', 'conf_end_group',\\n\\t\\t\\t\\t\\t\\t 'conf_help_key', 'conf_add_cache' , 'conf_title_keyword' );\\n\\n\\t\\t$setting_fields = array( 'conf_title_keyword', 'conf_title_title', 'conf_title_desc', 'conf_title_noshow', 'conf_title_module' );\\n\\n\\t\\t//-----------------------------------------\\n\\t\\t// Fix up...\\n\\t\\t//-----------------------------------------\\n \\n\\t\\tif ( ! is_array( $xml->xml_array['settingexport']['settinggroup']['setting'][0] ) )\\n\\t\\t{\\n\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t// Ensure [0] is populated\\n\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t$tmp = $xml->xml_array['settingexport']['settinggroup']['setting'];\\n\\n\\t\\t\\tunset($xml->xml_array['settingexport']['settinggroup']['setting']);\\n\\n\\t\\t\\t$xml->xml_array['settingexport']['settinggroup']['setting'][0] = $tmp;\\n\\t\\t}\\n\\n\\t\\t//-----------------------------------------\\n\\t\\t// Loop through and sort out settings...\\n\\t\\t//-----------------------------------------\\n\\n\\t\\tforeach( $xml->xml_array['settingexport']['settinggroup']['setting'] as $id => $entry )\\n\\t\\t{\\n\\t\\t\\t$newrow = array();\\n\\n\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t// Is setting?\\n\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\tif ( ! $entry['conf_is_title']['VALUE'] )\\n\\t\\t\\t{\\n\\t\\t\\t\\tforeach( $fields as $f )\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t$newrow[$f] = $entry[ $f ]['VALUE'];\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t$new_settings[] = $newrow;\\n\\t\\t\\t}\\n\\n\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t// Is title?\\n\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\telse\\n\\t\\t\\t{\\n\\t\\t\\t\\tforeach( $setting_fields as $f )\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t$newrow[$f] = $entry[ $f ]['VALUE'];\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t$new_titles[] = $newrow;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t//-----------------------------------------\\n\\t\\t// Sort out titles...\\n\\t\\t//-----------------------------------------\\n\\n\\t\\tif ( is_array( $new_titles ) and count( $new_titles ) )\\n\\t\\t{\\n\\t\\t\\tforeach( $new_titles as $idx => $data )\\n\\t\\t\\t{\\n\\t\\t\\t\\tif ( $data['conf_title_title'] AND $data['conf_title_keyword'] )\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t\\t\\t// Get ID based on key\\n\\t\\t\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t\\t\\t$save = array( 'conf_title_title' => $data['conf_title_title'],\\n\\t\\t\\t\\t\\t\\t\\t\\t 'conf_title_desc' => $data['conf_title_desc'],\\n\\t\\t\\t\\t\\t\\t\\t\\t 'conf_title_keyword' => $data['conf_title_keyword'],\\n\\t\\t\\t\\t\\t\\t\\t\\t 'conf_title_noshow' => $data['conf_title_noshow'],\\n\\t\\t\\t\\t\\t\\t\\t\\t 'conf_title_module' => $data['conf_title_module'] );\\n\\n\\t\\t\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t\\t\\t// Insert first\\n\\t\\t\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t\\t\\t$this->install->ipsclass->DB->do_insert( 'conf_settings_titles', $save );\\n\\n\\t\\t\\t\\t\\t$conf_id = $this->install->ipsclass->DB->get_insert_id();\\n\\t\\t\\t\\t\\t$save['conf_title_id'] = $conf_id;\\n\\n\\t\\t\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t\\t\\t// Update settings cache\\n\\t\\t\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t\\t\\t$setting_groups_by_key[ $save['conf_title_keyword'] ] = $save;\\n\\t\\t\\t\\t\\t$setting_groups[ $save['conf_title_id'] ] = $save;\\n\\n\\t\\t\\t\\t\\t$need_update[] = $conf_id;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t//-----------------------------------------\\n\\t\\t// Sort out settings\\n\\t\\t//-----------------------------------------\\n\\n\\t\\tif ( is_array( $new_settings ) and count( $new_settings ) )\\n\\t\\t{\\n\\t\\t\\tforeach( $new_settings as $idx => $data )\\n\\t\\t\\t{\\n\\t\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t\\t// Insert known\\n\\t\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t\\tif ( in_array( $data['conf_key'], array_keys( $known ) ) )\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t$data['conf_value'] = $known[ $data['conf_key'] ];\\n\\t\\t\\t\\t\\t#$data['conf_default'] = $known[ $data['conf_key'] ];\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t$data['conf_value'] = '';\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t\\t// Now assign to the correct ID based on\\n\\t\\t\\t\\t// our title keyword...\\n\\t\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t\\t$data['conf_group'] = $setting_groups_by_key[ $data['conf_title_keyword'] ]['conf_title_id'];\\n\\n\\t\\t\\t\\t//-----------------------------------------\\n\\t\\t\\t\\t// Remove from array\\n\\t\\t\\t\\t//-----------------------------------------\\n\\n\\t\\t\\t\\tunset( $data['conf_title_keyword'] );\\n\\n\\t\\t\\t\\t$this->install->ipsclass->DB->do_insert( 'conf_settings', $data );\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t//-----------------------------------------\\n\\t\\t// Update group counts...\\n\\t\\t//-----------------------------------------\\n\\n\\t\\tif ( count( $need_update ) )\\n\\t\\t{\\n\\t\\t\\tforeach( $need_update as $i => $idx )\\n\\t\\t\\t{\\n\\t\\t\\t\\t$conf = $this->install->ipsclass->DB->simple_exec_query( array( 'select' => 'count(*) as count', 'from' => 'conf_settings', 'where' => 'conf_group='.$idx ) );\\n\\n\\t\\t\\t\\t$count = intval($conf['count']);\\n\\n\\t\\t\\t\\t$this->install->ipsclass->DB->do_update( 'conf_settings_titles', array( 'conf_title_count' => $count ), 'conf_title_id='.$idx );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\t//-----------------------------------------\\n\\t\\t// Next...\\n\\t\\t//-----------------------------------------\\n\\t\\t\\n\\t\\t$this->install->template->append( $this->install->template->install_page_refresh( $output ) );\\n\\t\\t$this->install->template->next_action = '?p=install&sub=acpperms';\\n\\t\\t$this->install->template->hide_next = 1;\\n\\t}\",\n \"function load_plugin() {\\n global $fb_opt_name, $gp_opt_name, $popup_fb_page, $popup_delay, $fb_popup_box;\\n \\n if(is_admin()&& get_option('Activated_Plugin')=='Plugin-Slug') {\\n delete_option('Activated_Plugin');\\n add_option($fb_opt_name,'on');\\n add_option($gp_opt_name,'on');\\n add_option($popup_fb_page,'codesamplez');\\n add_option($popup_delay,'2');\\n add_option($fb_popup_box,'on');\\n }\\n}\",\n \"function qa_initialize_postdb_plugins()\\n{\\n\\tglobal $qa_pluginManager;\\n\\n\\trequire_once QA_INCLUDE_DIR . 'app/options.php';\\n\\tqa_preload_options();\\n\\n\\t$qa_pluginManager->loadPluginsAfterDbInit();\\n\\tqa_load_override_files();\\n\\n\\tqa_report_process_stage('plugins_loaded');\\n}\",\n \"protected function set_plugin_fields()\\n {\\n global $DB;\\n\\n $this->plugins=array();\\n\\n $sql = \\\"SELECT *\\n FROM {block_ilp_plugin} as p,\\n {block_ilp_report_field} as rf\\n WHERE rf.plugin_id = p.id\\n AND rf.report_id = :report_id\\\";\\n\\n foreach($DB->get_records_sql($sql, array('report_id'=>$this->id)) as $item)\\n {\\n $this->plugins[$item->name]=$item;\\n }\\n }\",\n \"function hookInstall() {\\n// $db = get_db()cou;\\n//die(\\\"got to the installer method...\\\");\\n $this->_saveVocabularies();\\n }\",\n \"public function update_site_system_preferences($prefs, $site_id = '')\\n\\t{\\n\\t\\tif ($site_id != '')\\n\\t\\t{\\n\\t\\t\\t$this->db->where('site_id', $site_id);\\n\\t\\t}\\n\\n\\t\\t$this->db->set('site_system_preferences', base64_encode(serialize($prefs)));\\n\\t\\t$this->db->update('sites');\\n\\t}\",\n \"function updatenote_regsettings() {\\n\\tregister_setting( 'updatenote-settings', 'updatenote_options', 'updatenote_validate' );\\n}\",\n \"private function _saveSeo() {\\r\\n\\r\\n // get plugins details\\r\\n $plugin = JPluginHelper::getPlugin( 'system', 'shmobile');\\r\\n $params = new JRegistry();\\r\\n $params->loadString( $plugin->params);\\r\\n\\r\\n // get current values\\r\\n $defaultEnabled = $params->get('mobile_switch_enabled');\\r\\n $defaultTemplate = $params->get('mobile_template');\\r\\n\\r\\n // save mobile template switcher params, stored in system plugin\\r\\n $mobile_switch_enabled = JRequest::getBool( 'mobile_switch_enabled', $defaultEnabled);\\r\\n $mobile_template = JRequest::getCmd( 'mobile_template', $defaultTemplate);\\r\\n\\r\\n // set params\\r\\n $params->set('mobile_switch_enabled', $mobile_switch_enabled);\\r\\n $params->set('mobile_template', $mobile_template);\\r\\n $textParams = (string) $params;\\r\\n\\r\\n try {\\r\\n ShlDbHelper::update( '#__extensions', array('params' => $textParams), array( 'element' => 'shmobile', 'folder' => 'system', 'type' => 'plugin'));\\r\\n } catch (Exception $e) {\\r\\n\\r\\n }\\r\\n\\r\\n }\",\n \"public function preferences() {\\n $prefs = $this->prefs;\\n ?>\\n \\n
      \\n
    1. \\n
      field_name( array( 'added' => 'creds' ) ); ?>\\\" id=\\\"field_id( array( 'added' => 'creds' ) ); ?>\\\" value=\\\"core->number( $prefs['added']['creds'] ); ?>\\\" size=\\\"8\\\" />
      \\n
    2. \\n
    3. \\n \\n hook_limit_setting( $this->field_name( array( 'added' => 'limit' ) ), $this->field_id( array( 'added' => 'limit' ) ), $prefs['added']['limit'] ); ?>\\n
    4. \\n
    \\n \\n
      \\n
    1. \\n
      field_name( array( 'added' => 'log' ) ); ?>\\\" id=\\\"field_id( array( 'added' => 'log' ) ); ?>\\\" value=\\\"\\\" class=\\\"long\\\" />
      \\n available_template_tags( array( 'general', 'post' ) ); ?>\\n
    2. \\n
    \\n\\n \\n
      \\n
    1. \\n
      field_name( array( 'removed' => 'creds' ) ); ?>\\\" id=\\\"field_id( array( 'removed' => 'creds' ) ); ?>\\\" value=\\\"core->number( $prefs['removed']['creds'] ); ?>\\\" size=\\\"8\\\" />
      \\n
    2. \\n
    \\n \\n
      \\n
    1. \\n
      field_name( array( 'removed' => 'log' ) ); ?>\\\" id=\\\"field_id( array( 'removed' => 'log' ) ); ?>\\\" value=\\\"\\\" class=\\\"long\\\" />
      \\n available_template_tags( array( 'general', 'post' ) ); ?>\\n
    2. \\n
    \\n options_key, $this->options_key, array( $this, 'save_settings' ) );\\n\\t}\",\n \"public function add_settings() {\\n if (self::$settings !== null) {\\n $this->print_settings(self::$settings);\\n }\\n }\",\n \"function setModulePref($module,$var,$value,$userID=0)\\n {\\n $db = & JxSingleton::factory('db');\\n\\n if(!$userID)\\n {\\n $user = & JxSingleton::factory('user');\\n $userID = $user->userID;\\n }\\n\\n if(!DB::isError($db))\\n {\\n\\n $sql = \\\"REPLACE INTO preferences\\n SET userID='\\\".$userID.\\\"',\\n module='$module',\\n var='$var',\\n value='$value'\\\";\\n \\n $result = $db->query($sql);\\n \\n return (!DB::isError($result));\\n }\\n }\",\n \"function append_settings( $addthis ){\\n if( $addthis == '' ){ return false; }\\n $save = escapeshellarg(\\\"$addthis\\\\n\\\");\\n //exec(\\\"echo $save >> '$this->_settings_file'\\\");\\n exec(\\\"printf $save >> '$this->_settings_file'\\\");\\n }\",\n \"function add_plugin($plugin)\\n {\\n }\",\n \"function saveSettings() {\\n\\t\\t//# convert class variables into an array and save using\\n\\t\\t//# Wordpress functions, \\\"update_option\\\" or \\\"add_option\\\"\\n\\t\\t//#convert class into array...\\n\\t\\t$settings_array = array();\\n\\t\\t$obj = $this;\\n\\t\\tforeach (array_keys(get_class_vars(get_class($obj))) as $k){\\n\\t\\t\\tif (is_array($obj->$k)) {\\n\\t\\t\\t\\t//serialize any arrays within $obj\\n\\t\\t\\t\\tif (count($obj->$k)>0) {\\n\\t\\t\\t\\t\\t$settings_array[$k] = esc_attr(serialize($obj->$k));\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$settings_array[$k] = \\\"\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$settings_array[$k] = \\\"{$obj->$k}\\\";\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t//#save array to options table...\\n\\t\\t$options_check = get_option('wassup_settings');\\n\\t\\tif (!empty($options_check)) {\\n\\t\\t\\tupdate_option('wassup_settings', $settings_array);\\n\\t\\t} else {\\n\\t\\t\\tadd_option('wassup_settings', $settings_array, 'Options for WassUp');\\n\\t\\t}\\n\\t\\treturn true;\\n\\t}\",\n \"private function _add_hook($hook)\\n\\t{\\n\\t\\tee()->db->insert('extensions', array(\\n\\t\\t\\t'class' => $this->class_name,\\n\\t\\t\\t'method' => $hook,\\n\\t\\t\\t'hook' => $hook,\\n\\t\\t\\t'settings' => serialize($this->settings),\\n\\t\\t\\t'priority' => 5,\\n\\t\\t\\t'version' => $this->version,\\n\\t\\t\\t'enabled' => 'y'\\n\\t\\t));\\n\\t}\",\n \"function acf_append_setting($name, $value)\\n{\\n}\",\n \"function plugin_postinstall_nexcontent($pi_name)\\r\\n{\\r\\n global $_DB_dbms, $_CONF, $_DB_table_prefix, $_TABLES ;\\r\\n\\r\\n $sql= \\\"INSERT INTO {$_TABLES['nexcontent_pages']} (id,pid,type,pageorder,name,blockformat,heading,content,meta_description,meta_keywords) VALUES (1, 0, 'category', '10', 'frontpage', 'none', 'Front Page Folder', 'Create a page under this folder if you want to have a page loaded as the frontpage', '', '');\\\";\\r\\n DB_query($sql);\\r\\n\\r\\n return true;\\r\\n}\",\n \"public function save_plugin_settings($user_id, $full_request, $type = \\\"SAVE\\\", $allowed_plugins = null)\\n {\\n global $cnf;\\n global $local_server_path;\\n\\t \\n\\t if($allowed_plugins != null) {\\n\\t //OK we have an array of allowed plugins\\n\\t $plugins = $allowed_plugins;\\n\\t } else {\\n\\t //Otherwise, assume all plugins in the global config\\n\\t $plugins = $cnf['plugins'];\\n\\t }\\n\\t \\n\\t $reloadScreen = false;\\n\\t \\t \\n\\t //Loop through each class and call each plugin_* -> on_message() function\\n\\t for($cnt=0; $cnt < count($plugins); $cnt++) {\\n\\t $plugin_name = $plugins[$cnt];\\n\\t \\n\\t \\n\\t include_once($local_server_path . \\\"plugins/\\\" . $plugin_name . \\\"/index.php\\\");\\n\\t $class_name = \\\"plugin_\\\" . $plugin_name;\\n\\t \\n\\t $pg = new $class_name();\\n\\t \\n\\t if(method_exists($pg,\\\"on_save_settings\\\") == true) {\\n\\t //OK call the on_settings function of the plugin\\n\\t $returns = $pg->on_save_settings($user_id, $full_request, $type);\\n\\t \\n\\t \\n\\t if(strcmp($returns, \\\"RELOAD\\\") == 0) {\\n\\t $reloadScreen = true;\\n\\t }\\n\\t } else {\\n\\t //No on_save_settings() in plugin - do nothing\\n\\n\\t }\\n\\t }\\n\\t if($reloadScreen === true) {\\n\\t return \\\"RELOAD\\\"; //This option reloads the entire frame e.g. for a language change\\n\\t } else {\\n\\t return true;\\n }\\n \\n }\",\n \"public function register_plugin_admin_add_page()\\n {\\n $self = $this;\\n add_options_page(\\n 'VivoKey OpenID',\\n 'VivoKey OpenID',\\n 'manage_options',\\n 'VivoKey OpenID Connect',\\n function () use ($self) {\\n $self->load_view('settings', null);\\n }\\n );\\n }\",\n \"protected function doPrePluginOptionsSave() {\\r\\n\\r\\n\\t\\t\\t$oDp = $this->loadDataProcessor();\\r\\n\\r\\n\\t\\t\\t$sAuthKey = $this->getPluginAuthKey();\\r\\n\\t\\t\\tif ( empty( $sAuthKey ) || strlen( $sAuthKey ) != 24 ) {\\r\\n\\t\\t\\t\\t$this->setOpt( 'key', $oDp->GenerateRandomString( 24, 7 ) );\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t$nActivatedAt = $this->getOpt( 'activated_at' );\\r\\n\\t\\t\\tif ( empty( $nActivatedAt ) ) {\\r\\n\\t\\t\\t\\t$this->setOpt( 'activated_at', $oDp->GetRequestTime() );\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t$nInstalledAt = $this->getOpt( 'installed_at' );\\r\\n\\t\\t\\tif ( empty( $nInstalledAt ) ) {\\r\\n\\t\\t\\t\\t$this->setOpt( 'installed_at', $oDp->GetRequestTime() );\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t$this->setOpt( 'installed_version', $this->getController()->getVersion() );\\r\\n\\r\\n\\t\\t\\t$nInstalledAt = $this->getOpt( 'installation_time' );\\r\\n\\t\\t\\tif ( empty( $nInstalledAt ) || $nInstalledAt <= 0 ) {\\r\\n\\t\\t\\t\\t$this->setOpt( 'installation_time', time() );\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\",\n \"public function set_plugin_properties() {\\n $this->plugin\\t= get_plugin_data( SALESFORCE__PLUGIN_FILE );\\n $this->basename = plugin_basename( SALESFORCE__PLUGIN_FILE );\\n $this->active\\t= is_plugin_active( $this->basename );\\n }\",\n \"public function preferences() {\\n\\n\\t\\t\\t$prefs = $this->prefs;\\n\\n?>\\n
    \\n\\t
    \\n\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t\\t\\t\\n\\t\\t\\t\\tfield_name( 'creds' ); ?>\\\" id=\\\"field_id( 'creds' ); ?>\\\" value=\\\"core->number( $prefs['creds'] ); ?>\\\" class=\\\"form-control\\\" />\\n\\t\\t\\t
    \\n\\t\\t
    \\n\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t\\t\\t\\n\\t\\t\\t\\tfield_name( 'log' ); ?>\\\" id=\\\"field_id( 'log' ); ?>\\\" placeholder=\\\"\\\" value=\\\"\\\" class=\\\"form-control\\\" />\\n\\t\\t\\t\\tavailable_template_tags( array( 'general' ) ); ?>\\n\\t\\t\\t
    \\n\\t\\t
    \\n\\t
    \\n
    \\n_found) { // if the block's instance hasn't been cached\\n // lookup the DB to check if this block instance already exists\\n $result = $DB->get_record('block_group_choice', array('course_id' => $COURSE->id, 'instance_id' => $this->instance->id));\\n if($result) { // if the block's instance already exist in the DB\\n $this->_found = true;\\n }\\n else { // if this block instance doesn't exist we insert a first set of preferences\\n $entries = new stdClass();\\n $entries->instance_id = $this->instance->id;\\n $entries->course_id = $COURSE->id;\\n $entries->showgroups = 1;\\n $entries->maxmembers = 2;\\n $entries->allowchangegroups = 0;\\n $entries->allowstudentteams = 1;\\n $entries->allowmultipleteams = 0;\\n $DB->insert_record('block_group_choice', $entries);\\n }\\n }\\n }\",\n \"function install($parent)\\n\\t{\\n\\t\\t// Connect with DB\\n\\t\\t$db = JFactory::getDbo();\\n\\n\\t\\t// Query to update plugin\\n\\t\\t$query = $db->getQuery(true);\\n\\n\\t\\t$fields = array(\\n\\t\\t\\t$db->quoteName('enabled') . ' = 1',\\n\\t\\t\\t$db->quoteName('params') . ' = ' . $db->quote('{\\\"enabled\\\":\\\"1\\\",\\\"autopurge\\\":\\\"1\\\",\\\"maxage\\\":60,\\\"excluded_components\\\":[\\\"com_users\\\"]}'),\\n\\t\\t);\\n\\n\\t\\t$conditions = array(\\n\\t\\t\\t$db->quoteName('element') . ' = ' . $db->quote('bytevarnish'),\\n\\t\\t\\t$db->quoteName('type') . ' = ' . $db->quote('plugin'),\\n\\t\\t);\\n\\n\\t\\t$query->update($db->quoteName('#__extensions'))->set($fields)->where($conditions);\\n\\t\\t$db->setQuery($query);\\n\\t\\t$result = $db->execute();\\n\\n\\t\\tJFactory::getApplication()->enqueueMessage('Plugin \\\\'Byte Varnish\\\\' is enabled', 'message');\\n\\t}\",\n \"function refresh_plugins_transient()\\n {\\n }\",\n \"function the_champ_replicate_settings($blogId){\\r\\n\\t\\tglobal $theChampFacebookOptions, $theChampLoginOptions, $theChampSharingOptions;\\r\\n\\t\\tadd_blog_option($blogId, 'the_champ_facebook', $theChampFacebookOptions);\\r\\n\\t\\tadd_blog_option($blogId, 'the_champ_login', $theChampLoginOptions);\\r\\n\\t\\tadd_blog_option($blogId, 'the_champ_sharing', $theChampSharingOptions);\\r\\n\\t}\",\n \"function saveSettings() {\\n\\tglobal $settings;\\n\\n\\tfile_put_contents(\\\"settings.json\\\",json_encode($settings));\\n}\",\n \"function _add_setting( $data=array() )\\n\\t{\\n\\t\\t$setting = array();\\n\\t\\t\\n\\t\\t$setting['conf_title'] = $data['conf_title']['VALUE'];\\n\\t\\t$setting['conf_description'] = $data['conf_description']['VALUE'];\\n\\t\\t$setting['conf_group'] = $data['conf_group']['VALUE'];\\n\\t\\t$setting['conf_type'] = $data['conf_type']['VALUE'];\\n\\t\\t$setting['conf_key'] = $data['conf_key']['VALUE'];\\n\\t\\t$setting['conf_default'] = $data['conf_default']['VALUE'];\\n\\t\\t$setting['conf_extra'] = $data['conf_extra']['VALUE'];\\n\\t\\t$setting['conf_evalphp'] = $data['conf_evalphp']['VALUE'];\\n\\t\\t$setting['conf_protected'] = 1;\\n\\t\\t$setting['conf_position'] = $data['conf_position']['VALUE'];\\n\\t\\t$setting['conf_start_group'] = $data['conf_start_group']['VALUE'];\\n\\t\\t$setting['conf_end_group'] = isset( $data['conf_end_group']['VALUE'] ) ? $data['conf_end_group']['VALUE'] : 0;\\n\\t\\t$setting['conf_help_key'] = $data['conf_help_key']['VALUE'];\\n\\t\\t$setting['conf_add_cache'] = 1;\\n\\t\\t\\n\\t\\tif ( !$this->ipsclass->DB->field_exists( 'conf_help_key', 'conf_settings' ) )\\n\\t\\t{\\n\\t\\t\\tunset( $setting['conf_help_key'] );\\n\\t\\t}\\n\\t\\t\\n\\t\\t$this->ipsclass->DB->do_insert( 'conf_settings', $setting );\\n\\t}\",\n \"function load($plugin) {\\r\\n $descriptorFileName=\\\"../plugin/$plugin/pluginDescriptor.xml\\\";\\r\\n if (! is_file($descriptorFileName)) {\\r\\n \\terrorLog(\\\"cannot find file $descriptorFileName for plugin $plugin\\\");\\r\\n \\techo \\\"cannot find descriptor for plugin $plugin\\\";\\r\\n \\texit;\\r\\n }\\r\\n $descriptorXml=file_get_contents($descriptorFileName);\\r\\n $parse = xml_parser_create();\\r\\n xml_parse_into_struct($parse, $descriptorXml, $value, $index);\\r\\n xml_parser_free($parse);\\r\\n \\r\\n foreach($value as $prop) {\\r\\n \\tif ($prop['tag']=='PROPERTY') {\\r\\n \\t\\t//print_r($prop);\\r\\n \\t\\t$name=$prop['attributes']['NAME'];\\r\\n \\t\\t$value=$prop['attributes']['VALUE'];\\r\\n \\t\\t$$name=$value;\\r\\n \\t}\\r\\n }\\r\\n \\r\\n if (isset($sql)) {\\r\\n \\t$sqlfile=\\\"../plugin/$plugin/$sql\\\";\\r\\n \\tif (! is_file($sqlfile)) {\\r\\n \\t\\terrorLog(\\\"cannot find file $sqlfile for plugin $plugin\\\");\\r\\n \\t\\techo \\\"cannot find Sql file for plugin $plugin\\\";\\r\\n \\t\\texit;\\r\\n \\t}\\r\\n \\t//$enforceUTF8=true;\\r\\n \\t//Sql::query(\\\"SET NAMES utf8\\\");\\r\\n \\trunScript(null,$sqlfile);\\r\\n }\\r\\n // TODO : delete zip file (in the end when all is OK\\r\\n}\",\n \"protected function initPluginData()\\n\\t{\\n\\t\\t// code here\\n\\t\\t$this->slug = plugin_basename($this->pluginFile);\\n\\t\\t$this->pluginData = get_plugin_data($this->pluginFile);\\n\\t}\",\n \"abstract public function register_plugin();\",\n \"public static function rdv_insert_settings() {\\n\\t\\t\\tglobal $wpdb, $rdv_table_settings;\\n\\t\\t\\t$rdv_table_settings = $wpdb->prefix . 'rendez_vous_settings';\\n\\n\\t\\t\\t$default_query_array = array(\\n\\t\\t\\t\\t'rdv_settings_id' => null,\\n\\t\\t\\t\\t'rdv_sending' => 1,\\n\\t\\t\\t\\t'rdv_receiving' => 1\\n\\t\\t\\t);\\n\\n\\t\\t\\t$wpdb->insert( $rdv_table_settings, $default_query_array );\\n\\t\\t}\",\n \"public function saveSettings()\\n {\\n $this->store->save($this->data);\\n }\",\n \"function install_plugin_information()\\n {\\n }\",\n \"function myplugin_activate() {\\n\\n\\tglobal $myplugin_options_all, $myplugin_dbtables_all, $myplugin_dbtables_data_all;\\n\\n\\tif ( myplugin_installed_version() != MYPLUGIN_VERSION ) {\\n\\n\\t\\tmyplugin_activate_dbtables( $myplugin_dbtables_all, $myplugin_dbtables_data_all );\\n\\t\\tmyplugin_activate_options( $myplugin_options_all );\\n\\t}\\n\\n\\tadd_option( MYPLUGIN_NAME, MYPLUGIN_VERSION );\\n}\",\n \"function add_core_data()\\n {\\n $pncore = array();\\n $pncore['version_num'] = _PN_VERSION_NUM;\\n $pncore['version_id'] = _PN_VERSION_ID;\\n $pncore['version_sub'] = _PN_VERSION_SUB;\\n $pncore['logged_in'] = pnUserLoggedIn();\\n $pncore['language'] = pnUserGetLang();\\n $pncore['themeinfo'] = pnThemeInfo(pnUserGetTheme());\\n\\n \\tpnThemeLoad($pncore['themeinfo']['name']);\\n\\t\\t$colors = array();\\n $colors['bgcolor1'] = pnThemeGetVar('bgcolor1');\\n $colors['bgcolor2'] = pnThemeGetVar('bgcolor2');\\n $colors['bgcolor3'] = pnThemeGetVar('bgcolor3');\\n $colors['bgcolor4'] = pnThemeGetVar('bgcolor4');\\n $colors['bgcolor5'] = pnThemeGetVar('bgcolor5');\\n $colors['sepcolor'] = pnThemeGetVar('sepcolor');\\n $colors['textcolor1'] = pnThemeGetVar('textcolor1');\\n $colors['textcolor2'] = pnThemeGetVar('textcolor2');\\n\\n // add userdata\\n $pncore['user'] = pnUserGetVars(pnSessionGetVar('uid'));\\n\\n // add modvars of current module\\n $pncore[$this->module] = pnModGetVar($this->module);\\n\\n // add mod vars of all modules supplied as parameter\\n \\tforeach (func_get_args() as $modulename) {\\n\\t // if the modulename is empty do nothing\\n\\t if(!empty($modulename) && !is_array($modulename) && ($modulename<>$this->module)) {\\n // check if user wants to have /PNConfig\\n if($modulename==_PN_CONFIG_MODULE) {\\n $pnconfig = pnModGetVar(_PN_CONFIG_MODULE);\\n foreach($pnconfig as $key => $value) {\\n // unserialize all config vars\\n \\t\\t $pncore['pnconfig'][$key] = @unserialize($value);\\n }\\n } else {\\n $pncore[$modulename] = pnModGetVar($modulename);\\n }\\n }\\n }\\n\\n $this->assign('pncore', $pncore);\\n\\t\\t$this->assign($colors);\\n return true;\\n }\",\n \"public function add_setting( $wp_customize ) {}\",\n \"function phpgwapi_upgrade0_9_14_502()\\n\\t{\\n\\t\\t// we use an additional temp. table for postgres and not rename the existing one, but drop it.\\n\\t\\tif ($GLOBALS['phpgw_setup']->oProc->sType == 'pgsql')\\t\\n\\t\\t{\\n\\t\\t\\t$GLOBALS['phpgw_setup']->oProc->query(\\\"SELEcT * INTO TEMPORARY TABLE old_preferences FROM phpgw_preferences\\\",__LINE__,__FILE__);\\n\\t\\t\\t$GLOBALS['phpgw_setup']->oProc->DropTable('phpgw_preferences');\\n\\t\\t}\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\t$GLOBALS['phpgw_setup']->oProc->RenameTable('phpgw_preferences','old_preferences');\\n\\t\\t}\\n\\t\\t$GLOBALS['phpgw_setup']->oProc->CreateTable('phpgw_preferences',array(\\n\\t\\t\\t'fd' => array(\\n\\t\\t\\t\\t'preference_owner' => array('type' => 'int','precision' => '4','nullable' => False),\\n\\t\\t\\t\\t'preference_app' => array('type' => 'varchar','precision' => '25','nullable' => False),\\n\\t\\t\\t\\t'preference_value' => array('type' => 'text','nullable' => False)\\n\\t\\t\\t),\\n\\t\\t\\t'pk' => array('preference_owner','preference_app'),\\n\\t\\t\\t'fk' => array(),\\n\\t\\t\\t'ix' => array(),\\n\\t\\t\\t'uc' => array()\\n\\t\\t));\\n\\t\\t$db2 = $GLOBALS['phpgw_setup']->db;\\t// we need a 2. result-set\\n\\t\\t$GLOBALS['phpgw_setup']->oProc->query(\\\"SELECT * FROM old_preferences\\\");\\n\\t\\twhile ($GLOBALS['phpgw_setup']->oProc->next_record())\\n\\t\\t{\\n\\t\\t\\t$owner = (int)$GLOBALS['phpgw_setup']->oProc->f('preference_owner');\\n\\t\\t\\t$prefs = unserialize($GLOBALS['phpgw_setup']->oProc->f('preference_value'));\\n\\n\\t\\t\\tif (is_array($prefs))\\n\\t\\t\\t{\\n\\t\\t\\t\\tforeach ($prefs as $app => $pref)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tif (!empty($app) && count($pref))\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t$app = addslashes($app);\\n\\t\\t\\t\\t\\t\\t$pref = serialize($pref);\\n\\t\\t\\t\\t\\t\\t$db2->query(\\\"INSERT INTO phpgw_preferences\\\".\\n\\t\\t\\t\\t\\t\\t\\t\\\" (preference_owner,preference_app,preference_value)\\\".\\n\\t\\t\\t\\t\\t\\t\\t\\\" VALUES ($owner,'$app','$pref')\\\");\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t$GLOBALS['phpgw_setup']->oProc->DropTable('old_preferences');\\n\\n\\t\\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.503';\\n\\t\\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\\n\\t}\",\n \"function qa_initialize_predb_plugins()\\n{\\n\\tglobal $qa_pluginManager;\\n\\t$qa_pluginManager = new Q2A_Plugin_PluginManager();\\n\\t$qa_pluginManager->readAllPluginMetadatas();\\n\\n\\t$qa_pluginManager->loadPluginsBeforeDbInit();\\n\\tqa_load_override_files();\\n}\",\n \"function bdpp_register_settings() {\\n\\tregister_setting( 'bdpp_settings', 'bdpp_opts', 'bdpp_validate_settings' );\\n}\",\n \"public function add()\\n\\t{\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_hsc_enable'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_hsc_icon_display'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_hsc_display_empty'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_hsc_select_menu'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_hsc_text'\\n\\t\\t);\\n\\t\\t\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_hsc_icon'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_ccm_enable'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_ccm_text'\\n\\t\\t);\\n\\t\\tregister_setting(\\n\\t\\t\\tSettingsSection::SETTINGS_OPTION,\\n\\t\\t\\t'jigoshop_chronous_dc_enable'\\n\\t\\t);\\n\\t}\",\n \"function save_config()\\n\\t{\\n\\t\\t$i=0;\\n\\t\\t$rows=list_to_map('id',$GLOBALS['SITE_DB']->query_select('pstore_customs',array('*')));\\n\\t\\twhile (array_key_exists('custom_'.strval($i),$_POST))\\n\\t\\t{\\n\\t\\t\\t$id=post_param_integer('custom_'.strval($i));\\n\\t\\t\\t$title=post_param('custom_title_'.strval($i));\\n\\t\\t\\t$description=post_param('custom_description_'.strval($i));\\n\\t\\t\\t$enabled=post_param_integer('custom_enabled_'.strval($i),0);\\n\\t\\t\\t$cost=post_param_integer('custom_cost_'.strval($i));\\n\\t\\t\\t$one_per_member=post_param_integer('custom_one_per_member_'.strval($i),0);\\n\\t\\t\\t$delete=post_param_integer('delete_custom_'.strval($i),0);\\n\\t\\t\\t$_title=$rows[$id]['c_title'];\\n\\t\\t\\t$_description=$rows[$id]['c_description'];\\n\\t\\t\\tif ($delete==1)\\n\\t\\t\\t{\\n\\t\\t\\t\\tdelete_lang($_title);\\n\\t\\t\\t\\tdelete_lang($_description);\\n\\t\\t\\t\\t$GLOBALS['SITE_DB']->query_delete('pstore_customs',array('id'=>$id),'',1);\\n\\t\\t\\t} else\\n\\t\\t\\t{\\n\\t\\t\\t\\t$GLOBALS['SITE_DB']->query_update('pstore_customs',array(\\n\\t\\t\\t\\t\\t'c_title'=>lang_remap($_title,$title),\\n\\t\\t\\t\\t\\t'c_description'=>lang_remap($_description,$description),\\n\\t\\t\\t\\t\\t'c_enabled'=>$enabled,\\n\\t\\t\\t\\t\\t'c_cost'=>$cost,\\n\\t\\t\\t\\t\\t'c_one_per_member'=>$one_per_member,\\n\\t\\t\\t\\t),array('id'=>$id),'',1);\\n\\t\\t\\t}\\n\\t\\t\\t$i++;\\n\\t\\t}\\n\\t\\t$title=post_param('custom_title',NULL);\\n\\t\\tif (!is_null($title))\\n\\t\\t{\\n\\t\\t\\t$description=post_param('custom_description');\\n\\t\\t\\t$enabled=post_param_integer('custom_enabled',0);\\n\\t\\t\\t$cost=post_param_integer('custom_cost');\\n\\t\\t\\t$one_per_member=post_param_integer('custom_one_per_member',0);\\n\\n\\t\\t\\t$GLOBALS['SITE_DB']->query_insert('pstore_customs',array(\\n\\t\\t\\t\\t'c_title'=>insert_lang($title,2),\\n\\t\\t\\t\\t'c_description'=>insert_lang($description,2),\\n\\t\\t\\t\\t'c_enabled'=>$enabled,\\n\\t\\t\\t\\t'c_cost'=>$cost,\\n\\t\\t\\t\\t'c_one_per_member'=>$one_per_member,\\n\\t\\t\\t));\\n\\t\\t}\\n\\t}\",\n \"function addSettings ($name, $value, $type, $protected)\\n{\\n\\tglobal $conn;\\n\\tglobal $database_table_prefix;\\n\\t$sql = \\\"SELECT id FROM \\\".$database_table_prefix.\\\"settings WHERE name = '$name' LIMIT 1\\\";\\n\\t$rs = $conn->query($sql);\\n\\tif($conn->query($sql) === false) {\\n\\t\\ttrigger_error('Error: '.$conn->error, E_USER_ERROR);\\n\\t}\\n\\n\\t$exist = $rs->num_rows;\\n\\tif($exist==0)\\n\\t{\\n\\t\\t// insert\\n\\t\\t$query = \\\"INSERT INTO \\\".$database_table_prefix.\\\"settings (id, name, value, type, protected) VALUES (NULL, '$name', '$value', '$type', '$protected')\\\";\\n\\t\\t$rs = $conn->query($query);\\n\\t\\t$last_inserted_id = $conn->insert_id;\\n\\t\\t$affected_rows = $conn->affected_rows;\\n\\t}\\n\\telse\\n\\t{\\n\\t\\t// update\\n\\t\\t$query = \\\"UPDATE \\\".$database_table_prefix.\\\"settings SET value = '$value' WHERE name = '$name' LIMIT 1\\\";\\n\\t\\t$rs = $conn->query($query);\\n\\t\\t$affected_rows = $conn->affected_rows;\\n\\t}\\n}\",\n \"public function loadSettings()\\n\\t{\\n\\t\\t// Update picto for Dolibarr 12++\\n\\t\\tif (function_exists('version_compare') && version_compare(DOL_VERSION, '12.0.0') >= 0) {\\n\\t\\t\\t$this->picto = \\\"quicknotes_128.png@quicknotes\\\";\\n\\t\\t}\\n\\n\\t\\t$this->addJsFile('quicknotes.js.php');\\n\\t\\t$this->enableHooks(array(\\n\\t\\t\\t'toprightmenu',\\n\\t\\t\\t'main',\\n\\t\\t\\t'login'\\n\\t\\t));\\n\\t}\",\n \"private function loadPlugins()\\n\\t{\\n\\t\\t$plugins = plugin_installed_list();\\n\\t\\t$plugins = collect($plugins)->map(function ($item, $key) {\\n\\t\\t\\tif (is_object($item)) {\\n\\t\\t\\t\\t$item = Arr::fromObject($item);\\n\\t\\t\\t}\\n\\t\\t\\tif (isset($item['item_id']) && !empty($item['item_id'])) {\\n\\t\\t\\t\\t$item['installed'] = plugin_check_purchase_code($item);\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\treturn $item;\\n\\t\\t})->toArray();\\n\\t\\t\\n\\t\\tConfig::set('plugins', $plugins);\\n\\t\\tConfig::set('plugins.installed', collect($plugins)->whereStrict('installed', true)->toArray());\\n\\t}\",\n \"public function save_settings() {\\n\\n\\t\\tif ( !isset( $_REQUEST['action'] ) || !isset( $_GET['page'] ) )\\n\\t\\t\\treturn;\\n\\n\\t\\tif ( 'vfb-settings' !== $_GET['page'] )\\n\\t\\t\\treturn;\\n\\n\\t\\tif ( 'vfb_settings' !== $_REQUEST['action'] )\\n\\t\\t\\treturn;\\n\\n\\t\\tcheck_admin_referer( 'vfb-update-settings' );\\n\\n\\t\\t$data = array();\\n\\n\\t\\tforeach ( $_POST['vfb-settings'] as $key => $val ) {\\n\\t\\t\\t$data[ $key ] = esc_html( $val );\\n\\t\\t}\\n\\n\\t\\tupdate_option( 'vfb-settings', $data );\\n\\t}\",\n \"public function action_preferences() {\\n $package = Model::factory('package');\\n $get_langcolor_info = $package->get_langcolor_info();\\n $this->template->meta_description = CLOUD_SITENAME . \\\" | Preferences \\\";\\n $this->template->meta_keywords = CLOUD_SITENAME . \\\" | Preferences \\\";\\n $this->template->title = CLOUD_SITENAME . \\\" | \\\" . __('Preferences');\\n $this->template->page_title = __('Preferences');\\n $this->template->content = View::factory(\\\"admin/package_plan/preferences\\\")->bind('langcolor_info', $get_langcolor_info);\\n }\",\n \"function addSetting($link,$profile_id,$type,$value)\\n\\t\\t{\\n\\t\\t\\t$type = mysqli_escape_string($link,$type);\\n\\t\\t\\t$value = mysqli_escape_string($link,$value);\\n\\t\\t\\t$sql = 'INSERT INTO setting (profile_id,type,value) VALUES ('.$profile_id.',\\\"'.$type.'\\\",'.$value.')';\\n\\t\\t\\tif (mysqli_query($link, $sql)) {\\n\\t\\t\\t\\treturn true;\\n\\t\\t\\t}else{\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function top10_install() {\\r\\n/* Creates new database field */\\r\\n//add_option('omekafeedpull_omekaroot', '/omeka', '', 'yes');\\r\\n}\",\n \"public function sync()\\n {\\n $class = explode('\\\\\\\\', get_called_class());\\n $manager = \\\\Str::studly(str_replace('EntryModel', null, end($class)));\\n\\n $existingAddons = $manager::getAll();\\n $databaseAddons = $this->all();\\n\\n // Sync TO the database\\n foreach ($existingAddons as $addon) {\\n if (!$databaseAddons->findBySlug($addon->slug)) {\\n $this->addons->insert(\\n array(\\n 'slug' => $addon->slug,\\n )\\n );\\n }\\n }\\n }\",\n \"function plugin_install_now()\\n{\\n global $pi_name, $pi_version, $gl_version, $pi_url, $NEWTABLE, $DEFVALUES, $NEWFEATURE;\\n global $_TABLES, $_CONF;\\n\\n COM_errorLog(\\\"Attempting to install the $pi_name Plugin\\\",1);\\n $uninstall_plugin = 'plugin_uninstall_' . $pi_name;\\n\\n // Create the Plugins Tables\\n require_once($_CONF['path'] . 'plugins/forum/sql/mysql_install_2.6.php');\\n\\n for ($i = 1; $i <= count($_SQL); $i++) {\\n $progress .= \\\"executing \\\" . current($_SQL) . \\\"\\\\n\\\";\\n COM_errorLOG(\\\"executing \\\" . current($_SQL));\\n DB_query(current($_SQL),'1');\\n if (DB_error()) {\\n COM_errorLog(\\\"Error Creating $table table\\\",1);\\n $uninstall_plugin ('DeletePlugin');\\n return false;\\n exit;\\n }\\n next($_SQL);\\n }\\n COM_errorLog(\\\"Success - Created $table table\\\",1);\\n \\n // Insert Default Data\\n \\n foreach ($DEFVALUES as $table => $sql) {\\n COM_errorLog(\\\"Inserting default data into $table table\\\",1);\\n DB_query($sql,1);\\n if (DB_error()) {\\n COM_errorLog(\\\"Error inserting default data into $table table\\\",1);\\n $uninstall_plugin ();\\n return false;\\n exit;\\n }\\n COM_errorLog(\\\"Success - inserting data into $table table\\\",1);\\n }\\n \\n // Create the plugin admin security group\\n COM_errorLog(\\\"Attempting to create $pi_name admin group\\\", 1);\\n DB_query(\\\"INSERT INTO {$_TABLES['groups']} (grp_name, grp_descr) \\\"\\n . \\\"VALUES ('$pi_name Admin', 'Users in this group can administer the $pi_name plugin')\\\",1);\\n if (DB_error()) {\\n $uninstall_plugin();\\n return false;\\n exit;\\n }\\n COM_errorLog('...success',1);\\n $query = DB_query(\\\"SELECT max(grp_id) FROM {$_TABLES['groups']} \\\");\\n list ($group_id) = DB_fetchArray($query);\\n\\n // Save the grp id for later uninstall\\n COM_errorLog('About to save group_id to vars table for use during uninstall',1);\\n DB_query(\\\"INSERT INTO {$_TABLES['vars']} VALUES ('{$pi_name}_admin', $group_id)\\\",1);\\n if (DB_error()) {\\n $uninstall_plugin ();\\n return false;\\n exit;\\n }\\n COM_errorLog('...success',1);\\n \\n // Add plugin Features\\n foreach ($NEWFEATURE as $feature => $desc) {\\n COM_errorLog(\\\"Adding $feature feature\\\",1);\\n DB_query(\\\"INSERT INTO {$_TABLES['features']} (ft_name, ft_descr) \\\"\\n . \\\"VALUES ('$feature','$desc')\\\",1);\\n if (DB_error()) {\\n COM_errorLog(\\\"Failure adding $feature feature\\\",1);\\n $uninstall_plugin ();\\n return false;\\n exit;\\n }\\n $query = DB_query(\\\"SELECT max(ft_id) FROM {$_TABLES['features']} \\\");\\n list ($feat_id) = DB_fetchArray($query);\\n\\n COM_errorLog(\\\"Success\\\",1);\\n COM_errorLog(\\\"Adding $feature feature to admin group\\\",1);\\n DB_query(\\\"INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($feat_id, $group_id)\\\");\\n if (DB_error()) {\\n COM_errorLog(\\\"Failure adding $feature feature to admin group\\\",1);\\n $uninstall_plugin ();\\n return false;\\n exit;\\n }\\n COM_errorLog(\\\"Success\\\",1);\\n } \\n \\n // OK, now give Root users access to this plugin now! NOTE: Root group should always be 1\\n COM_errorLog(\\\"Attempting to give all users in Root group access to $pi_name admin group\\\",1);\\n DB_query(\\\"INSERT INTO {$_TABLES['group_assignments']} VALUES ($group_id, NULL, 1)\\\");\\n if (DB_error()) {\\n $uninstall_plugin ();\\n return false;\\n exit;\\n }\\n\\n // Register the plugin with Geeklog\\n COM_errorLog(\\\"Registering $pi_name plugin with Geeklog\\\", 1);\\n DB_delete($_TABLES['plugins'],'pi_name',$pi_name);\\n DB_query(\\\"INSERT INTO {$_TABLES['plugins']} (pi_name, pi_version, pi_gl_version, pi_homepage, pi_enabled) \\\"\\n . \\\"VALUES ('$pi_name', '$pi_version', '$gl_version', '$pi_url', 1)\\\");\\n\\n if (DB_error()) {\\n $uninstall_plugin ();\\n return false;\\n exit;\\n }\\n\\n COM_errorLog(\\\"Succesfully installed the $pi_name Plugin!\\\",1);\\n return true;\\n}\",\n \"function tb_addTagBeepToWpAdmin() { \\r\\n //add in /settings manu\\r\\n add_options_page(\\\"tagBeep uptime\\\", \\\"tagBeep uptime\\\", 8, \\\"tagBeepUptimeMonitor\\\", \\\"tb_load_tagBeepAdmin\\\"); \\r\\n //add in the /plugins menu\\r\\n add_plugins_page(\\\"tagBeep uptime\\\", \\\"tagBeep uptime\\\", 8, \\\"tagBeepUptimeMonitorPlugin\\\", \\\"tb_load_tagBeepAdmin\\\"); \\r\\n}\",\n \"function setDefaultPrefs($module,$prefs)\\n {\\n if(is_array($prefs) && count($prefs))\\n {\\n while(list($var,$value) = each($prefs))\\n {\\n JxPref::setModulePref($module,$var,$value);\\n }\\n }\\n }\",\n \"function create_tbl_woo2app_setting(){\\r global $wpdb;\\r $charset_collate = $wpdb->get_charset_collate();\\r $table_name = $wpdb->prefix . 'woo2app_setting';\\r $sql = \\\"CREATE TABLE $table_name (\\r\\t\\tst_id bigint(20) NOT NULL AUTO_INCREMENT,\\r\\t\\tPRIMARY KEY (st_id),\\r\\t\\tst_name varchar(100) NOT NULL,\\r\\t\\tst_value varchar(200) NOT NULL,\\r\\t\\tst_desc\\tvarchar(200) NOT NULL\\r\\t) $charset_collate;\\\";\\r require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\\r dbDelta( $sql );\\r add_option( 'woo2app_version', '1.3' );\\r }\",\n \"function dbInstall($data='') {\\n/*\\nmixcloud_favorites - \\n*/\\n $data = << $val) {\\n $data[$key] = esc_html($val);\\n }\\n\\n update_option('swpm-settings', $data);\\n }\",\n \"public static function register()\\n\\t\\t\\t{\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//IMPORTANT\\n\\t\\t\\t\\t//Register all of the options that will be used\\n\\t\\t\\t\\n//\\t\\t\\t\\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_po_quote');\\n\\n\\t\\t\\t\\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_userid');\\n\\t\\t\\t\\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_popup_option');\\n\\t\\t\\t\\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_copypaste_option');\\n\\t\\t\\t\\tregister_setting(HE_PLUGINOPTIONS_ID.'_options', 'he_freecode');\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"protected function updateSettings()\\n {\\n $this->settings = array();\\n $raw_settings = $this->db->fetchAll('SELECT name, value FROM settings');\\n\\n foreach ($raw_settings as $raw_setting) {\\n $this->settings[$raw_setting['name']] = $raw_setting['value'];\\n }\\n }\",\n \"public function save()\\n {\\n update_option($this->optionKey, $this->fields);\\n }\",\n \"function install(){\\r\\n $options = $this->get_options();\\r\\n $isnew = false;\\r\\n if(!$installed_version = get_option('twitlink_version')){\\r\\n // no cl_version saved yet, set it to start of version 3\\r\\n $installed_version = '2.30';\\r\\n $isnew = true;\\r\\n }\\r\\n if(!$isnew){\\r\\n // new recode version from 1.27 to 1.30\\r\\n if(version_compare($this->php_version($installed_version),'1.2.7','>') && version_compare($this->php_version($installed_version),'1.3.0','<')){\\r\\n // use new default values\\r\\n $options = $this->get_options(true);\\r\\n }\\r\\n\\r\\n // update options (do this at the end so all the updates can happen first)\\r\\n update_option($this->db_option,$options); \\r\\n }\\r\\n // update twitlink_version in db\\r\\n if($this->version != $installed_version){\\r\\n update_option('twitlink_version',$this->version);\\r\\n }\\r\\n // add db table if it doesn't exist (backwards compatible with wp-twitip-id plugin)\\r\\n global $wpdb;\\r\\n $table_name = $wpdb->prefix . \\\"wptwitipid\\\";\\r\\n if($wpdb->get_var(\\\"show tables like '$table_name'\\\") != $table_name) {\\r\\n $sql = \\\"CREATE TABLE \\\" . $table_name . \\\" (\\r\\n id mediumint(9) NOT NULL AUTO_INCREMENT,\\r\\n email varchar(120) NOT NULL,\\r\\n twitid varchar(120) NOT NULL,\\r\\n PRIMARY KEY (id),\\r\\n UNIQUE KEY (email)\\r\\n );\\\";\\r\\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\\r\\n dbDelta($sql); \\r\\n }\\r\\n }\",\n \"public function updateUserPreferences()\\n {\\n $userList = $this->_userDao->getUserList();\\n\\n // loop through every user and fix it\\n foreach ($userList as $user) {\\n /*\\n * Because we do not get all users' properties from\\n * getUserList, retrieve the users' settings from scratch\\n */\\n $user = $this->_userDao->getUser($user['userid']);\\n\\n // set the users' preferences\\n $this->setSettingIfNot($user['prefs'], 'perpage', 25);\\n $this->setSettingIfNot($user['prefs'], 'date_formatting', 'human');\\n $this->setSettingIfNot($user['prefs'], 'normal_template', 'we1rdo');\\n $this->setSettingIfNot($user['prefs'], 'mobile_template', 'mobile');\\n $this->setSettingIfNot($user['prefs'], 'tablet_template', 'we1rdo');\\n $this->setSettingIfNot($user['prefs'], 'count_newspots', true);\\n $this->setSettingIfNot($user['prefs'], 'mouseover_subcats', true);\\n $this->setSettingIfNot($user['prefs'], 'keep_seenlist', true);\\n $this->setSettingIfNot($user['prefs'], 'auto_markasread', true);\\n $this->setSettingIfNot($user['prefs'], 'keep_downloadlist', true);\\n $this->setSettingIfNot($user['prefs'], 'keep_watchlist', true);\\n $this->setSettingIfNot($user['prefs'], 'nzb_search_engine', 'nzbindex');\\n $this->setSettingIfNot($user['prefs'], 'show_filesize', true);\\n $this->setSettingIfNot($user['prefs'], 'show_reportcount', true);\\n $this->setSettingIfNot($user['prefs'], 'minimum_reportcount', 1);\\n $this->setSettingIfNot($user['prefs'], 'show_nzbbutton', true);\\n $this->setSettingIfNot($user['prefs'], 'show_multinzb', true);\\n $this->setSettingIfNot($user['prefs'], 'customcss', '');\\n $this->setSettingIfNot($user['prefs'], 'newspotdefault_tag', $user['username']);\\n $this->setSettingIfNot($user['prefs'], 'newspotdefault_body', '');\\n $this->setSettingIfNot($user['prefs'], 'user_language', 'en_US');\\n $this->setSettingIfNot($user['prefs'], 'show_avatars', true);\\n $this->setSettingIfNot($user['prefs'], 'usemailaddress_for_gravatar', true);\\n\\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'action', 'disable');\\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'local_dir', '/tmp');\\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'prepare_action', 'merge');\\n $this->setSettingIfNot($user['prefs']['nzbhandling'], 'command', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'url', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'apikey', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'username', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['sabnzbd'], 'password', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'host', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'port', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'ssl', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'username', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'password', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbget'], 'timeout', 15);\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbvortex'], 'host', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbvortex'], 'port', '');\\n $this->setSettingIfNot($user['prefs']['nzbhandling']['nzbvortex'], 'apikey', '');\\n\\n $this->setSettingIfNot($user['prefs']['notifications']['growl'], 'host', '');\\n $this->setSettingIfNot($user['prefs']['notifications']['growl'], 'password', '');\\n /* Notifo and NMA are discontinued. */\\n $this->unsetSetting($user['prefs']['notifications'], 'nma');\\n $this->unsetSetting($user['prefs']['notifications'], 'notifo');\\n $this->setSettingIfNot($user['prefs']['notifications']['prowl'], 'apikey', '');\\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'screen_name', '');\\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'request_token', '');\\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'request_token_secret', '');\\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'access_token', '');\\n $this->setSettingIfNot($user['prefs']['notifications']['twitter'], 'access_token_secret', '');\\n $notifProviders = Notifications_Factory::getActiveServices();\\n foreach ($notifProviders as $notifProvider) {\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider], 'enabled', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'watchlist_handled', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'nzb_handled', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'retriever_finished', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'report_posted', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'spot_posted', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'user_added', false);\\n $this->setSettingIfNot($user['prefs']['notifications'][$notifProvider]['events'], 'newspots_for_filter', false);\\n } // foreach\\n\\n // make sure a sort preference is defined. An empty field means relevancy\\n $this->setSettingIfNot($user['prefs'], 'defaultsortfield', '');\\n\\n // Remove deprecated preferences\\n $this->unsetSetting($user['prefs'], 'search_url');\\n $this->unsetSetting($user['prefs'], 'template');\\n $this->unsetSetting($user['prefs']['notifications'], 'libnotify');\\n\\n // Make sure the user has a valid RSA key\\n if ($user['userid'] > 2) {\\n $rsaKey = $this->_userDao->getUserPrivateRsaKey($user['userid']);\\n if (empty($rsaKey)) {\\n // Creer een private en public key paar voor deze user\\n $spotSigning = Services_Signing_Base::factory();\\n $userKey = $spotSigning->createPrivateKey($this->_settings->get('openssl_cnf_path'));\\n\\n $this->_userDao->setUserRsaKeys($user['userid'], $userKey['public'], $userKey['private']);\\n } // if\\n } // if\\n\\n /*\\n * In earlier versions, we always appended \\\"sabnzbd/\\\" to the URL, so we do this once\\n * manually\\n */\\n if ($this->_settings->get('securityversion') < 0.31) {\\n if (!empty($user['prefs']['nzbhandling']['sabnzbd']['url'])) {\\n $user['prefs']['nzbhandling']['sabnzbd']['url'] = $user['prefs']['nzbhandling']['sabnzbd']['url'].'sabnzbd/';\\n } // if\\n } // if\\n\\n // update the user record in the database\\n $this->_userDao->setUser($user);\\n } // foreach\\n }\",\n \"protected function storeExtension()\\n\\t{\\n\\t\\t// Discover installs are stored a little differently\\n\\t\\tif ($this->route === 'discover_install')\\n\\t\\t{\\n\\t\\t\\t$manifest_details = Installer::parseXMLInstallFile($this->parent->getPath('manifest'));\\n\\n\\t\\t\\t$this->extension->manifest_cache = json_encode($manifest_details);\\n\\t\\t\\t$this->extension->state = 0;\\n\\t\\t\\t$this->extension->name = $manifest_details['name'];\\n\\t\\t\\t$this->extension->enabled = 'editors' === $this->extension->folder ? 1 : 0;\\n\\t\\t\\t$this->extension->params = $this->parent->getParams();\\n\\n\\t\\t\\tif (!$this->extension->store())\\n\\t\\t\\t{\\n\\t\\t\\t\\t// Install failed, roll back changes\\n\\t\\t\\t\\tthrow new \\\\RuntimeException(\\\\JText::_('JLIB_INSTALLER_ERROR_PLG_DISCOVER_STORE_DETAILS'));\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// Was there a plugin with the same name already installed?\\n\\t\\tif ($this->currentExtensionId)\\n\\t\\t{\\n\\t\\t\\tif (!$this->parent->isOverwrite())\\n\\t\\t\\t{\\n\\t\\t\\t\\t// Install failed, roll back changes\\n\\t\\t\\t\\tthrow new \\\\RuntimeException(\\n\\t\\t\\t\\t\\t\\\\JText::sprintf(\\n\\t\\t\\t\\t\\t\\t'JLIB_INSTALLER_ABORT_PLG_INSTALL_ALLREADY_EXISTS',\\n\\t\\t\\t\\t\\t\\t\\\\JText::_('JLIB_INSTALLER_' . $this->route),\\n\\t\\t\\t\\t\\t\\t$this->name\\n\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\n\\t\\t\\t$this->extension->load($this->currentExtensionId);\\n\\t\\t\\t$this->extension->name = $this->name;\\n\\t\\t\\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\\n\\n\\t\\t\\t// Update the manifest cache and name\\n\\t\\t\\t$this->extension->store();\\n\\t\\t}\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\t// Store in the extensions table (1.6)\\n\\t\\t\\t$this->extension->name = $this->name;\\n\\t\\t\\t$this->extension->type = 'plugin';\\n\\t\\t\\t$this->extension->ordering = 0;\\n\\t\\t\\t$this->extension->element = $this->element;\\n\\t\\t\\t$this->extension->folder = $this->group;\\n\\t\\t\\t$this->extension->enabled = 0;\\n\\t\\t\\t$this->extension->protected = 0;\\n\\t\\t\\t$this->extension->access = 1;\\n\\t\\t\\t$this->extension->client_id = 0;\\n\\t\\t\\t$this->extension->params = $this->parent->getParams();\\n\\n\\t\\t\\t// Custom data\\n\\t\\t\\t$this->extension->custom_data = '';\\n\\n\\t\\t\\t// System data\\n\\t\\t\\t$this->extension->system_data = '';\\n\\t\\t\\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\\n\\n\\t\\t\\t// Editor plugins are published by default\\n\\t\\t\\tif ($this->group === 'editors')\\n\\t\\t\\t{\\n\\t\\t\\t\\t$this->extension->enabled = 1;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (!$this->extension->store())\\n\\t\\t\\t{\\n\\t\\t\\t\\t// Install failed, roll back changes\\n\\t\\t\\t\\tthrow new \\\\RuntimeException(\\n\\t\\t\\t\\t\\t\\\\JText::sprintf(\\n\\t\\t\\t\\t\\t\\t'JLIB_INSTALLER_ABORT_PLG_INSTALL_ROLLBACK',\\n\\t\\t\\t\\t\\t\\t\\\\JText::_('JLIB_INSTALLER_' . $this->route),\\n\\t\\t\\t\\t\\t\\t$this->extension->getError()\\n\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t);\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Since we have created a plugin item, we add it to the installation step stack\\n\\t\\t\\t// so that if we have to rollback the changes we can undo it.\\n\\t\\t\\t$this->parent->pushStep(array('type' => 'extension', 'id' => $this->extension->extension_id));\\n\\t\\t}\\n\\t}\",\n \"public function system_save_preference()\\n {\\n System_helper::save_preference();\\n }\",\n \"function seed_csp4_activation(){\\r\\n // Store the plugin version when initial install occurred.\\r\\n $has_seed_csp4_settings_content = get_option('seed_csp4_settings_content');\\r\\n if(!empty($has_seed_csp4_settings_content)){\\r\\n add_option( 'seed_csp4_initial_version', 0, '', false );\\r\\n }else{\\r\\n add_option( 'seed_csp4_initial_version', SEED_CSP4_VERSION, '', false );\\r\\n }\\r\\n \\r\\n\\r\\n // Store the plugin version activated to reference with upgrades.\\r\\n update_option( 'seed_csp4_version', SEED_CSP4_VERSION, false );\\r\\n\\trequire_once( 'inc/default-settings.php' );\\r\\n\\tadd_option('seed_csp4_settings_content',unserialize($seed_csp4_settings_deafults['seed_csp4_settings_content']));\\r\\n\\tadd_option('seed_csp4_settings_design',unserialize($seed_csp4_settings_deafults['seed_csp4_settings_design']));\\r\\n\\tadd_option('seed_csp4_settings_advanced',unserialize($seed_csp4_settings_deafults['seed_csp4_settings_advanced']));\\r\\n}\",\n \"function webplayer_db_install_data() {\\r\\n\\tglobal $wpdb;\\r\\n\\tglobal $installed_webplayer_version;\\r\\n\\tglobal $webplayer_version;\\r\\n\\r\\n\\tif ($installed_webplayer_version != $webplayer_version) {\\r\\n\\t\\t$table_name = $wpdb->prefix . \\\"webplayer\\\";\\t\\r\\n\\t\\t$wpdb->insert($table_name, array( \\r\\n\\t\\t'id' => 1,\\r\\n\\t\\t'videoid' => 1,\\r\\n\\t\\t'playlistid' => 0,\\r\\n\\t\\t'width' => 640, \\r\\n\\t\\t'height' => 360, \\r\\n\\t\\t'skinmode' => 'static',\\r\\n \\t\\t'stretchtype' => 'fill',\\r\\n \\t\\t'buffertime' => 3,\\r\\n \\t\\t'volumelevel' => 50,\\r\\n \\t\\t'autoplay' => 0,\\r\\n\\t\\t'playlistautoplay' => 0,\\r\\n \\t\\t'playlistopen' => 0,\\r\\n \\t\\t'playlistrandom' => 0,\\r\\n\\t\\t'controlbar' => 1,\\r\\n \\t\\t'playpause' => 1,\\r\\n \\t\\t'progressbar' => 1,\\r\\n \\t\\t'timer' => 1,\\r\\n \\t\\t'share' => 1,\\r\\n \\t\\t'volume' => 1,\\r\\n \\t\\t'fullscreen' => 1,\\r\\n \\t\\t'playdock' => 1,\\r\\n\\t\\t'playlist' => 1\\r\\n\\t\\t));\\r\\n\\t\\t\\r\\n\\t\\t$table_name = $wpdb->prefix . \\\"webplayer_license\\\";\\t\\r\\n\\t\\t$wpdb->insert( $table_name, array( \\r\\n\\t\\t'id' => 1,\\r\\n\\t\\t'licensekey' => 'HD_Webplayer_Commercial_Key', \\r\\n\\t\\t'logo' => 'logo.jpg', \\r\\n\\t\\t'logoposition' => 'topleft',\\r\\n\\t\\t'logoalpha' => 50,\\r\\n\\t\\t'logotarget' => 'http://hdwebplayer.com'\\r\\n\\t\\t));\\r\\n\\t\\t\\r\\n\\t\\t$table_name = $wpdb->prefix . \\\"webplayer_videos\\\";\\t\\r\\n\\t\\t$wpdb->insert( $table_name, array( \\r\\n\\t\\t'id' => 1,\\r\\n\\t\\t'title' => 'Sample Video',\\r\\n\\t\\t'type' => 'video',\\r\\n\\t\\t'streamer' => '',\\r\\n\\t\\t'dvr' => 0,\\r\\n\\t\\t'video' => 'http://hdwebplayer.com/player/videos/300.mp4',\\r\\n\\t\\t'hdvideo' => '',\\r\\n\\t\\t'preview' => '',\\r\\n\\t\\t'thumb' => '',\\r\\n\\t\\t'token' => '',\\r\\n\\t\\t'playlistid' => 0\\r\\n\\t\\t));\\r\\n\\t}\\r\\n}\",\n \"function bfa_import_settings_now() {\\r\\n\\tcheck_ajax_referer( \\\"import_bfa_settings\\\" );\\r\\n\\t$new_options = maybe_unserialize(bfa_file_get_contents($_FILES['userfile']['tmp_name']));\\r\\n\\tupdate_option('bfa_new_test', $new_options);\\r\\n\\tdie();\\r\\n}\",\n \"function install_plugins_favorites_form()\\n {\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.72845775","0.67024946","0.659262","0.639898","0.61956304","0.6193791","0.6148208","0.61172044","0.5957165","0.5910638","0.5880873","0.5863317","0.58583117","0.5824722","0.5796143","0.5710946","0.5681415","0.56679344","0.56034184","0.55983526","0.5591214","0.5572069","0.55702233","0.5562702","0.5550994","0.5550894","0.5545956","0.5524365","0.5497278","0.54944724","0.5480776","0.5468338","0.5422584","0.5421562","0.5418527","0.54008424","0.53714085","0.53481126","0.5332485","0.5330592","0.5329874","0.5324582","0.5324354","0.5321352","0.5318248","0.53068805","0.5303334","0.530267","0.5276453","0.5270045","0.5262069","0.5255918","0.52536273","0.5253117","0.52526045","0.5251088","0.5242878","0.5232298","0.52318263","0.5226597","0.5222558","0.521816","0.52127403","0.5197012","0.5196646","0.5188021","0.5178962","0.51764804","0.516704","0.5165847","0.5157531","0.5157259","0.5156436","0.5154316","0.51532674","0.5145998","0.5143109","0.51390207","0.51384896","0.5135075","0.5132514","0.5129905","0.5125306","0.5122815","0.5119096","0.51162136","0.511146","0.5101727","0.51014555","0.50962824","0.5077565","0.50764716","0.5075259","0.5075237","0.5073767","0.507321","0.5073046","0.50704765","0.5066348","0.5058785"],"string":"[\n \"0.72845775\",\n \"0.67024946\",\n \"0.659262\",\n \"0.639898\",\n \"0.61956304\",\n \"0.6193791\",\n \"0.6148208\",\n \"0.61172044\",\n \"0.5957165\",\n \"0.5910638\",\n \"0.5880873\",\n \"0.5863317\",\n \"0.58583117\",\n \"0.5824722\",\n \"0.5796143\",\n \"0.5710946\",\n \"0.5681415\",\n \"0.56679344\",\n \"0.56034184\",\n \"0.55983526\",\n \"0.5591214\",\n \"0.5572069\",\n \"0.55702233\",\n \"0.5562702\",\n \"0.5550994\",\n \"0.5550894\",\n \"0.5545956\",\n \"0.5524365\",\n \"0.5497278\",\n \"0.54944724\",\n \"0.5480776\",\n \"0.5468338\",\n \"0.5422584\",\n \"0.5421562\",\n \"0.5418527\",\n \"0.54008424\",\n \"0.53714085\",\n \"0.53481126\",\n \"0.5332485\",\n \"0.5330592\",\n \"0.5329874\",\n \"0.5324582\",\n \"0.5324354\",\n \"0.5321352\",\n \"0.5318248\",\n \"0.53068805\",\n \"0.5303334\",\n \"0.530267\",\n \"0.5276453\",\n \"0.5270045\",\n \"0.5262069\",\n \"0.5255918\",\n \"0.52536273\",\n \"0.5253117\",\n \"0.52526045\",\n \"0.5251088\",\n \"0.5242878\",\n \"0.5232298\",\n \"0.52318263\",\n \"0.5226597\",\n \"0.5222558\",\n \"0.521816\",\n \"0.52127403\",\n \"0.5197012\",\n \"0.5196646\",\n \"0.5188021\",\n \"0.5178962\",\n \"0.51764804\",\n \"0.516704\",\n \"0.5165847\",\n \"0.5157531\",\n \"0.5157259\",\n \"0.5156436\",\n \"0.5154316\",\n \"0.51532674\",\n \"0.5145998\",\n \"0.5143109\",\n \"0.51390207\",\n \"0.51384896\",\n \"0.5135075\",\n \"0.5132514\",\n \"0.5129905\",\n \"0.5125306\",\n \"0.5122815\",\n \"0.5119096\",\n \"0.51162136\",\n \"0.511146\",\n \"0.5101727\",\n \"0.51014555\",\n \"0.50962824\",\n \"0.5077565\",\n \"0.50764716\",\n \"0.5075259\",\n \"0.5075237\",\n \"0.5073767\",\n \"0.507321\",\n \"0.5073046\",\n \"0.50704765\",\n \"0.5066348\",\n \"0.5058785\"\n]"},"document_score":{"kind":"string","value":"0.51811284"},"document_rank":{"kind":"string","value":"66"}}},{"rowIdx":433,"cells":{"query":{"kind":"string","value":"get plugin prefs default values"},"document":{"kind":"string","value":"function abl_droploader_defaults($values_only = false) {\n\n\t\t$defaults = array(\n\t\t\t'imageMaxUploadCount' => array(\n\t\t\t\t'val'\t=> '10',\n\t\t\t\t'html'\t=> 'text_input',\n\t\t\t\t'text'\t=> gTxt('abl_droploader_prefs_image_max_upload_count'),\n\t\t\t),\n\t\t\t'reloadImagesTab' => array(\n\t\t\t\t'val'\t=> '0',\n\t\t\t\t'html'\t=> 'yesnoradio',\n\t\t\t\t'text'\t=> gTxt('abl_droploader_prefs_reload_image_tab'),\n\t\t\t),\n\t\t\t'useDefaultStylesheet' => array(\n\t\t\t\t'val'\t=> '1',\n\t\t\t\t'html'\t=> 'yesnoradio',\n\t\t\t\t'text'\t=> gTxt('abl_droploader_prefs_use_default_stylesheet'),\n\t\t\t),\n\t\t\t'customStylesheet' => array(\n\t\t\t\t'val'\t=> '',\n\t\t\t\t'html'\t=> 'text_input',\n\t\t\t\t'text'\t=> gTxt('abl_droploader_prefs_custom_stylesheet'),\n\t\t\t),\n\t\t\t'articleImageFields' => array(\n\t\t\t\t'val'\t=> '#article-image',\n\t\t\t\t'html'\t=> 'text_input',\n\t\t\t\t'text'\t=> gTxt('abl_droploader_prefs_article_image_fields'),\n\t\t\t),\n\t\t\t//'fileMaxUploadCount' => array(\n\t\t\t//\t'val'\t=> '10',\n\t\t\t//\t'html'\t=> 'text_input',\n\t\t\t//\t'text'\t=> gTxt('abl_droploader_prefs_file_max_upload_count'),\n\t\t\t//),\n\t\t);\n\t\tif ($values_only)\n\t\t\tforeach ($defaults as $name => $arr)\n\t\t\t\t$defaults[$name] = $arr['val'];\n\t\treturn $defaults;\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["public function getDefaults();","public function GetDefaults ();","public function getDefaultSettings();","private function get_defaults() {\n\t\treturn array(\n\t\t\t'phpbb_path' \t\t\t\t=> '',\n\t\t\t'integrateLogin' \t\t\t=> 0, \n\t\t\t'showHdrFtr' \t\t\t\t=> 'NONE',\n\t\t\t'wpSimpleHdr' \t\t\t\t=> 1,\n\t\t\t'dtdSwitch' \t\t\t\t=> 0,\n\t\t\t'phpbbCensor' \t\t\t\t=> 1,\n\t\t\t'wpPageName' \t\t\t\t=> 'page.php',\n\t\t\t'phpbbPadding' \t\t\t\t=> '6-12-6-12',\n\t\t\t'xposting' \t\t\t\t\t=> 0,\n\t\t\t'phpbbSmilies' \t\t\t\t=> 0,\n\t\t\t'avatarsync'\t\t\t\t=> 1,\n\t\t\t'integcreatewp'\t\t\t\t=> 1,\n\t\t\t'integcreatephpbb'\t\t\t=> 1,\n\t\t\t'xpostautolink' \t\t\t=> 0,\n\t\t\t'xpostspam' \t\t\t\t=> 'all',\n\t\t\t'xpostforce' \t\t\t\t=> -1,\n\t\t\t'xposttype' \t\t\t\t=> 'excerpt',\n\t\t\t'xpostprefix'\t\t\t\t=> '[BLOG] ',\n\t\t\t'cssMagic' \t\t\t\t\t=> 1,\n\t\t\t'templateVoodoo' \t\t\t=> 1,\n\t\t\t'useForumPage' \t\t\t\t=> 1\n\t\t);\n\t}","private static function _get_default_settings()\n\t{\n\t\treturn array(\n\t\t\t'nr_api_key'\t\t\t\t\t\t=> '',\n\t\t\t'nr_apps_list'\t\t\t\t\t\t=> '', // The apps list associated with the account\n\t\t\t'nr_selected_app_servers'\t\t\t=> '', // The servers from the selected app\n\t\t\t'user_datasets'\t\t\t\t\t\t=> '', // Saved user datasets\n\t\t);\n\t}","public static function get_settings_defaults(){\r\n\t\t\r\n\t\t$defaults = array();\r\n\t\tforeach( self::init_settings() as $settings ){\r\n\t\t\tforeach( $settings as $setting ){\r\n\t\t\t\tif( isset( $setting['id'] ) && isset( $setting['default'] ) ){\r\n\t\t\t\t\t$defaults[$setting['id']] = $setting['default'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $defaults;\r\n\t\t\r\n\t}","protected function getDefaults(){\n\t\treturn array();\n\t}","public function getDefaults(): array;","function fa_get_slider_default_options(){\n\t$slider_options = require_fa_options('slider');\n\treturn $slider_options->get_defaults();\n}","private static function default_settings() {\n\t\treturn array(\n\t\t\t'module_ga' => true,\n\t\t\t'module_ip' => true,\n\t\t\t'module_log' => true,\n\t\t\t'sent_data' => false,\n\t\t\t'api_key' => '',\n\t\t\t'mark_as_approved' => true,\n\t\t);\n\t}","public function getDefaultSettings() {\n $defaults = array();\n $fields = $this->getFields();\n foreach ($fields as $field) {\n $default = '';\n if (array_key_exists('default', $field) && $field['default']) {\n $default = $field['default'];\n }\n $defaults[$field['name']] = $default;\n }\n return $defaults;\n }","public function defaultSettings()\n {\n return $this->repository->get( $this->repoOptionString($this->settingsKey, $this->defaultSettingsKey), array());\n }","function jb_option_defaults() {\n\t \t$arr = array(\n\t\t'jb_featured_cat_slug' => 'home',\n\t\t'jb_featured_content_limit' => 55,\n\t\t'jb_post_content_limit' => 40\n\t);\n\treturn $arr;\n}","public function getProfileDefault()\n {\n return $this->getConfig('packages/global_settings_default-profile');\n }","public static function returnExtConfDefaults() {}","public function getGeneralSettingsDefaultData()\n {\n $settings = array(\n 'enabled' => 1,\n 'pull_out' => 1,\n 'display_interval' => 1,\n 'custom_css' => '',\n 'wheel_sound' => 1,\n 'show_fireworks' => 0,\n 'pull_out_image_url' => Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'vss_spinandwin' . DS . 'gift.png'\n );\n return $settings;\n }","public function & GetDefaults () {\n\t\treturn $this->defaults;\n\t}","protected function get_default_settings()\n {\n return [\n 'default' => [\n 'id' => '',\n 'url' => '',\n 'size' => '',\n 'name' => '',\n ],\n ];\n }","public function getDefaults() {\n\t\treturn $this->_defaults;\n\t}","function rp_get_default_settings() {\n\n\t$settings = array(\n\t\t'wpdentist_item_archive_title' => __( 'WPDentist', 'wpdentist' ),\n\t\t'wpdentist_item_description' => __( 'WordPress Dentist.', 'wpdentist' )\n\t);\n\n\treturn $settings;\n}","public static function getDefaults()\n {\n return [];\n }","public static function getDefaultSettingsKeys();","private function defaultSettings()\n {\n\t\t$default_config = array(\n 'Plugins.Keypic.SigninEnabled' => false,\n\t\t\t 'Plugins.Keypic.SignupEnabled' => true,\n\t\t\t 'Plugins.Keypic.PostEnabled' => true,\n\t\t\t 'Plugins.Keypic.CommentEnabled' => true,\n\t\t\t 'Plugins.Keypic.SigninWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.SignupWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.PostWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.CommentWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.SignupRequestType' => 'getScript',\n\t\t\t 'Plugins.Keypic.SigninRequestType' => 'getScript',\n\t\t\t 'Plugins.Keypic.PostRequestType' => 'getScript',\n\t\t\t 'Plugins.Keypic.CommentRequestType' => 'getScript',\n\t\t );\n\t\t \n\t\tSaveToConfig($default_config);\n }","public function getDefaultVars() {\n\t\t$ret = array();\n\t\tforeach ($this->_vars as $key => $var) {\n\t\t\t$ret[$key] = $var->defaultValue;\n\t\t}\n\t\treturn $ret;\n\t}","function getSettings() {\n\t\t$current_opts = get_option('wassup_settings');\n\t\t$default_opts = $this->defaultSettings();\n\t\t$settings = array();\n\t\tif (!empty($current_opts) && is_array($current_opts)) {\n\t\t\tforeach ($default_opts as $skey => $defaultvalue) {\n\t\t\t if (array_key_exists($skey,$current_opts)) {\n\t\t\t \t$settings[$skey] = $current_opts[$skey];\n\t\t\t } else {\n\t\t\t \t$settings[$skey] = $defaultvalue;\n\t\t\t }\n\t\t\t} //end foreach\n\t\t} else {\n\t\t\t$settings = $default_opts;\n\t\t}\n\t\treturn $settings;\n\t}","public static function getDefaultVars()\n {\n return [\n 'posts_per_page' => 15,\n 'topics_per_page' => 15,\n 'hot_threshold' => 20,\n 'email_from' => '', // use system default email\n 'url_ranks_images' => \"ranks\",\n 'post_sort_order' => 'ASC',\n 'log_ip' => false,\n 'extendedsearch' => false,\n 'm2f_enabled' => false,\n 'favorites_enabled' => false,\n 'removesignature' => false,\n 'striptags' => false,\n 'hooks' => ['providers' => [], 'subscribers' => []],\n 'rss2f_enabled' => false,\n 'timespanforchanges' => 24,\n 'forum_enabled' => true,\n 'forum_disabled_info' => 'Sorry! The forums are currently off-line for maintenance. Please try later.',\n 'signaturemanagement' => false,\n 'signature_start' => '--',\n 'signature_end' => '--',\n 'showtextinsearchresults' => false,\n 'minsearchlength' => 3,\n 'maxsearchlength' => 30,\n 'fulltextindex' => false,\n 'solved_enabled' => false,\n 'ajax' => false,\n 'striptagsfromemail' => false,\n 'indexTo' => '',\n 'notifyAdminAsMod' => 2,\n 'defaultPoster' => 2,\n 'onlineusers_moderatorcheck' => false,\n 'forum_subscriptions_enabled' => false,\n 'topic_subscriptions_enabled' => false,\n ];\n }","private function getDefaults()\n\t{\n\t\t/* @formatter:off */\n\t\treturn array(\n\t\t\t'cli_codepage' => 'cp852',\n\t\t\t'cookie_file' => dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'SESSION_ID',\n\t\t\t'exit_on' => E_ERROR | E_USER_ERROR,\n\t\t\t'is_debug' => false,\n\n\t\t\t/* Services */\n\t\t\t'api' => 'Orkan\\\\Filmweb\\\\Api\\\\Api',\n\t\t\t'tarnsport' => 'Orkan\\\\Filmweb\\\\Transport\\\\Curl',\n\t\t\t'request' => 'Orkan\\\\Filmweb\\\\Transport\\\\CurlRequest',\n\t\t\t'logger' => 'Orkan\\\\Filmweb\\\\Logger',\n\n\t\t\t/* Hide sensitive log data */\n\t\t\t'logger_mask' => array( 'search' => array( $this->pass ), 'replace' => array( '***' ) ),\n\t\t);\n\t\t/* @formatter:on */\n\t}","function get_defaultsetting() {\n return $this->defaultsetting;\n }","public function getDefaults() {\n\n\t\treturn [\n\t\t\t'module' => $this->_defaultModule,\n\t\t\t'controller' => $this->_defaultController,\n\t\t\t'action' => $this->_defaultAction,\n\t\t\t'params' => $this->_defaultParams\n\t\t];\n\t}","public function get_default_options()\n\t{\n\t\t$defaults = array();\n\t\t$defaults['title'] = '';\n\t\t$defaults['placeholder'] = 'Search Connections...';\n\t\t\n\t\treturn $defaults;\n\t}","function pixgraphy_get_option_defaults_values() {\n\t\tglobal $pixgraphy_default_values;\n\t\t$pixgraphy_default_values = array(\n\t\t\t'pixgraphy_responsive'\t=> 'on',\n\t\t\t'pixgraphy_column_post'\t=>'four',\n\t\t\t'pixgraphy_border_column'\t=>'on',\n\t\t\t'pixgraphy_design_layout' => 'wide-layout',\n\t\t\t'pixgraphy_animate_css'\t=> 'on',\n\t\t\t'pixgraphy_sidebar_layout_options' => 'right',\n\t\t\t'pixgraphy_photography_layout' => 'photography_layout',\n\t\t\t'pixgraphy_search_custom_header' => 0,\n\t\t\t'pixgraphy-img-upload-footer-image' => '',\n\t\t\t'pixgraphy-footer-title'\t=> '',\n\t\t\t'pixgraphy-footer-link'\t=> '#',\n\t\t\t'pixgraphy_header_display'=> 'header_text',\n\t\t\t'pixgraphy_categories'\t=> array(),\n\t\t\t'pixgraphy_custom_css'\t=> '',\n\t\t\t'pixgraphy_scroll'\t=> 0,\n\t\t\t'pixgraphy_tag_text' => esc_html__('Read More','pixgraphy'),\n\t\t\t'pixgraphy_excerpt_length'\t=> '20',\n\t\t\t'pixgraphy_single_post_image' => 'off',\n\t\t\t'pixgraphy_reset_all' => 0,\n\t\t\t'pixgraphy_stick_menu'\t=>0,\n\t\t\t'pixgraphy_blog_post_image' => 'on',\n\t\t\t'pixgraphy_entry_format_blog' => 'excerptblog_display',\n\t\t\t'pixgraphy_search_text' => esc_html__('Search &hellip;','pixgraphy'),\n\t\t\t'pixgraphy_blog_content_layout'\t=> '',\n\t\t\t'pixgraphy_display_page_featured_image'=>0,\n\t\t\t/* Slider Settings */\n\t\t\t'pixgraphy_slider_type'\t=> 'default_slider',\n\t\t\t'pixgraphy_slider_link' =>0,\n\t\t\t'pixgraphy_enable_slider' => 'frontpage',\n\t\t\t'pixgraphy_transition_effect' => 'fade',\n\t\t\t'pixgraphy_transition_delay' => '4',\n\t\t\t'pixgraphy_transition_duration' => '1',\n\t\t\t/* Front page feature */\n\t\t\t'pixgraphy_entry_format_blog' => 'show',\n\t\t\t'pixgraphy_entry_meta_blog' => 'show-meta',\n\t\t\t/*Social Icons */\n\t\t\t'pixgraphy_top_social_icons' =>0,\n\t\t\t'pixgraphy_buttom_social_icons'\t=>0,\n\t\t\t'pixgraphy_social_facebook'=> '',\n\t\t\t'pixgraphy_social_twitter'=> '',\n\t\t\t'pixgraphy_social_pinterest'=> '',\n\t\t\t'pixgraphy_social_dribbble'=> '',\n\t\t\t'pixgraphy_social_instagram'=> '',\n\t\t\t'pixgraphy_social_flickr'=> '',\n\t\t\t'pixgraphy_social_googleplus'=> '',\n\t\t\t'pixgraphy_remove_parallax_fromheader'=>0,\n\t\t\t);\n\t\treturn apply_filters( 'pixgraphy_get_option_defaults_values', $pixgraphy_default_values );\n\t}","function bdpp_get_settings() {\n\t\n\t$options = get_option('bdpp_opts');\n\t\n\t$settings = (is_array($options)) ? $options : array();\n\t\n\treturn $settings;\n}","protected function get_default() {\n\t\treturn array(\n\t\t\t'ownerID' => 0,\n\t\t\t'accountID' => '',\n\t\t\t'adsenseLinked' => false,\n\t\t\t'adsConversionID' => '',\n\t\t\t'anonymizeIP' => true,\n\t\t\t'internalWebPropertyID' => '',\n\t\t\t'profileID' => '',\n\t\t\t'propertyID' => '',\n\t\t\t'trackingDisabled' => array( 'loggedinUsers' ),\n\t\t\t'useSnippet' => true,\n\t\t\t'canUseSnippet' => true,\n\t\t\t'dashboardView' => Analytics::DASHBOARD_VIEW,\n\t\t);\n\t}","function buddyexpressdesk_settings(){\n $settings = new stdClass;\n\t$GET = new BDESK_DB;\n $GET->statement('SELECT * FROM bdesk_site LIMIT 1');\n $GET->execute();\n\t$defaults = $GET->fetch();\n\tforeach ($defaults as $name => $value) {\n\t\tif (empty($paths->$name)) {\n\t\t\t$settings->$name = $value;\n\t\t}\n\t}\n\treturn $settings;\n}","protected function _getDefaultValues()\n {\n return array(\n );\n }","public static function getDefaultVars(){\n\t\treturn Array(\n\t\t\t//--whether to output debug messages for this class\n\t\t\t'debug'=> false\n\t\t\t,'contentRelativePath'=> '_content'\n\t\t\t,'host'=> ($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['PWD']\n\t\t\t,'webRoot'=> ($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : $_SERVER['PWD']\n\t\t\t,'wpRelativePath'=> '_wp'\n\t\t\t,'protocol'=> (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) ? 'https' : 'http'\n\t\t);\n\t}","protected function get_saved_options() {\n\t\t\tif ( $options = get_option( 'better-related' ) )\n\t\t\t\treturn $options;\n\t\t\t// If the option wasn't found, the plugin wasn't activated properly\n\t\t\t$this->create_fulltext_index( 'posts', 'post_content' );\n\t\t\t$this->create_fulltext_index( 'posts', 'post_title' );\n\t\t\treturn $this->defaults();\n\t\t}","abstract protected function loadDefaults();","public function get_settings() {\n\t\tif ( ! is_array( $this->_settings ) ) {\n\t\t\t$this->_settings = get_option( $this->token, array() );\n\t\t}\n\t\t\n\t\tforeach ( $this->fields as $k => $v ) {\n\t\t\tif ( ! isset( $this->_settings[$k] ) && isset( $v['default'] ) ) {\n\t\t\t\t$this->_settings[$k] = $v['default'];\n\t\t\t}\n\t\t\tif ( $v['type'] == 'checkbox' && $this->_settings[$k] != true ) {\n\t\t\t\t$this->_settings[$k] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->_settings;\n\t}","function preferences() { \n\n\t\t$preferences = array(); \n\n\t\t$preferences[] = array('name'=>'hostname','default'=>'xbox','type'=>'string','description'=>'XBOX Hostname');\n\t\t$preferences[] = array('name'=>'smbpath','default'=>'smb://hostname/mp3/','type'=>'string','description'=>'Samba share path to mp3s');\n\t\t\n\t\t//needed to add basic authentication support later\n\t\t//$preferences[] = array('name'=>'username','default'=>'xbox','type'=>'string','description'=>'XBMC Username');\n\t\t//$preferences[] = array('name'=>'password','default'=>'','type'=>'string','description'=>'XBMC Password');\n\n\t\treturn $preferences;\n\n\t}","final protected function _defaults(){\n if(! $this->_defaults) return;\n foreach($this->_defaults as $conf => $default_value){\n if(! self::inform($conf)) self::define($conf, $default_value);\n }\n }","protected function getDefaults()\n {\n return $this->transbankConfig->getDefaults(\n lcfirst(Helpers::classBasename(static::class))\n ) ?? [];\n }","public function getDisplaySettingsDefaultData()\n {\n $settings = array(\n 'screen_size' => '320_480',\n 'display_frequency' => 1,\n 'hide_after' => 1,\n 'display_position' => 1,\n 'who_to_show' => 'all',\n 'when_to_display' => 'immediately',\n 'time_in_seconds' => 5,\n 'scroll_percent' => 10,\n 'geo_location' => 'always'\n );\n return $settings;\n }","private static function initialize_defaults() {\r\n\t\t\tself::$default_settings['credentials'] = array();\r\n\r\n\t\t\tself::$default_settings['has_first_question'] = 'no';\r\n\r\n\t\t\t// We want the Urtaks to appear by default, so let's append them\r\n\t\t\tself::$default_settings['placement'] = 'append';\r\n\r\n\t\t\t// We want to default post types to 'post' and 'page'\r\n\t\t\tself::$default_settings['post-types'] = array('page', 'post');\r\n\r\n\t\t\t// We want users to be able to start Urtaks by default\r\n\t\t\tself::$default_settings['user-start'] = 'yes';\r\n\r\n\t\t\t// We want Urtaks to support community moderation by default so that we get more questions and responses\r\n\t\t\tself::$default_settings['moderation'] = 'community';\r\n\r\n\t\t\t// Auto height and width\r\n\t\t\tself::$default_settings['height'] = '';\r\n\t\t\tself::$default_settings['width'] = '';\r\n\r\n\t\t\t// Counter settings\r\n\t\t\tself::$default_settings['counter-icon'] = 'yes';\r\n\t\t\tself::$default_settings['counter-responses'] = 'yes';\r\n\r\n\t\t\t// Profanity\r\n\t\t\tself::$default_settings['blacklisting'] = 'no';\r\n\t\t\tself::$default_settings['blacklist_override'] = 'no';\r\n\t\t\tself::$default_settings['blacklist_words'] = '';\r\n\t\t}","function get_default_properties()\r\n {\r\n return $this->defaultProperties;\r\n }","function wpsl_get_settings() {\n\n $settings = get_option( 'wpsl_settings' );\n\n if ( !$settings ) {\n update_option( 'wpsl_settings', wpsl_get_default_settings() );\n $settings = wpsl_get_default_settings();\n }\n\n return $settings;\n}","function merchant_promos_metabox_defaults() {\n\t\treturn array(\n\t\t\t'amount' => 0,\n\t\t\t'type' => 'fixed',\n\t\t\t'max' => -1,\n\t\t\t'expiration' => '',\n\t\t\t'notify' => '',\n\t\t\t'count' => 0,\n\t\t\t'total' => 0,\n\t\t\t'valid_on' => array(),\n\t\t);\n\t}","public function getProductDefaults()\n {\n $defaults = $this->_config->get('product_defaults');\n\n if (is_array($defaults)) {\n return $defaults;\n }\n\n return [];\n }","function tc_get_default_options() {\r\n $def_options = get_option( \"tc_theme_defaults\");\r\n \r\n //Always update the default option when (OR) :\r\n // 1) they are not defined\r\n // 2) customzing => takes into account if user has set a filter or added a new customizer setting\r\n // 3) theme version not defined\r\n // 4) versions are different\r\n if ( ! $def_options || $this -> is_customizing || ! isset($def_options['ver']) || 0 != version_compare( $def_options['ver'] , CUSTOMIZR_VER ) ) {\r\n $def_options = $this -> tc_generate_default_options( $this -> tc_customizer_map( $get_default_option = 'true' ) , 'tc_theme_options' );\r\n //Adds the version\r\n $def_options['ver'] = CUSTOMIZR_VER;\r\n update_option( \"tc_theme_defaults\" , $def_options );\r\n }\r\n return apply_filters( 'tc_default_options', $def_options );\r\n }","protected function getDefaultValues() {\n\t\treturn array(\n\t\t\t'name' => '',\n\t\t\t'email' => '',\n\t\t\t'isEnabled' => true);\n\t}","function load_defaults(){\n\t\t\n\t\t$this->choices = array(\n\t\t\t'yes' => __('Enable', 'wa_wcc_txt'),\n\t\t\t'no' => __('Disable', 'wa_wcc_txt')\n\t\t);\n\n\t\t$this->loading_places = array(\n\t\t\t'header' => __('Header', 'wa_wcc_txt'),\n\t\t\t'footer' => __('Footer', 'wa_wcc_txt')\n\t\t);\n\n\t\t$this->tabs = array(\n\t\t\t'general-settings' => array(\n\t\t\t\t'name' => __('General', 'wa_wcc_txt'),\n\t\t\t\t'key' => 'wa_wcc_settings',\n\t\t\t\t'submit' => 'save_wa_wcc_settings',\n\t\t\t\t'reset' => 'reset_wa_wcc_settings',\n\t\t\t),\n 'configuration' => array(\n 'name' => __('Advanced', 'wa_wcc_txt'),\n 'key' => 'wa_wcc_configuration',\n 'submit' => 'save_wa_wcc_configuration',\n 'reset' => 'reset_wa_wcc_configuration'\n )\n\t\t);\n\t}","protected function getConfigDefaults() {\n\t\treturn [\n\t\t\t'dbname' => 'gamemonitor',\n\t\t];\n\t}","public static function getDefaultOptions()\n {\n return self::$defaults;\n }","public static function getDefaultOptions()\n {\n return self::$defaults;\n }","public static function get_settings() {\n\t\treturn array_merge( SpamLyticsHelper::default_settings(), get_option( 'spamlytics', array() ) );\n\t}","function mustsee_theme_settings_defaults( $defaults ) {\n\n\t$defaults['twitter_url'] = '';\n\t$defaults['facebook_url'] = '';\n\t$defaults['pinterest_url'] = '';\n\t$defaults['linkedin_url'] = '';\n\t$defaults['youtube_url'] = '';\n\t$defaults['googleplus_url'] = '';\n\t$defaults['agent_address'] = '';\n\t$defaults['agent_phone'] = '';\n\n\treturn $defaults;\n}","public function getPluginSettings()\n {\n return $this->origSettings;\n }","protected function getConfigDefaults() {\n\t\treturn array(\n\t\t\t// @todo add description strings\n\t\t\t'servers' => '127.0.0.1',\n\t\t\t'port'\t\t\t\t\t=> 6379,\n\t\t\t'maxconnperserv'\t\t=> 32,\n\t\t);\n\t}","public function defaultSettings()\n\t{\n\t\treturn [\n\t\t\t'notifications' => [\n\t\t\t\t'team_event_create' => 1,\n\t\t\t\t'team_event_update' => 2,\n\t\t\t\t'team_event_delete' => 2,\n\t\t\t\t'team_stats' \t\t=> 1,\n\t\t\t\t'team_post' \t\t=> 1,\n\t\t\t\t'user_post' \t\t=> 2,\n\t\t\t\t'user_stats'\t\t=> 1,\n\t\t\t],\n\t\t];\n\t}","public static function getUserPreferences()\r\n {\r\n\tif ( empty(self::$userPreferences) )\r\n\t{\r\n\t $prefs = explode(',', HTTP::SERVER('HTTP_ACCEPT_LANGUAGE'));\r\n\t if ( empty($prefs) )\r\n\t {\r\n\t\treturn null;\r\n\t }\r\n\t\r\n\t self::$userPreferences = Array();\r\n\t foreach ( $prefs as $p )\r\n\t {\r\n\t\tself::$userPreferences[] = self::parseUserPreference($p);\r\n\t }\r\n\t}\r\n\r\n\treturn self::$userPreferences;\r\n }","static function getGeneralSettingsValues(){\r\n\t\t\r\n\t\t$arrValues = get_option('revslider-global-settings', '');\r\n\t\t\r\n\t\t$arrValues = maybe_unserialize($arrValues);\r\n\r\n\t\treturn($arrValues);\r\n\t}","function initDefaultOptions(){\n\n\t\t\t$defaults = $this->defaultOptions();\n\t\t\treturn update_option( $this->optionsKey, $defaults );\n\t\t}","private function getDefaultConfig() {\n\t\treturn array(\n\t\t\t'client_id' => '',\n\t\t\t'client_secret' => '',\n\t\t\t'base_url' => '',\n\t\t\t'default_type' => 'user',\n\t\t);\n\t}","public function getDefaultValues() {\n\t\treturn $this->defaultValues;\n\t}","function cspm_get_field_default($option_id, $default_value = ''){\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * We'll check if the default settings can be found in the array containing the \"(shared) plugin settings\".\r\n\t\t\t * If found, we'll use it. If not found, we'll use the one in [@default_value] instead. */\r\n\t\t\t \r\n\t\t\t$default = $this->cspm_setting_exists($option_id, $this->plugin_settings, $default_value);\r\n\t\t\t\r\n\t\t\treturn $default;\r\n\t\t\t\r\n\t\t}","function default_configuration()\r\n {\r\n return array();\r\n }","public function pi_setPiVarDefaults() {}","private static function getDefaultSettings()\n {\n return array(\n 'driver' => null,\n 'username' => null,\n 'password' => null,\n 'dbname' => null,\n 'host' => null,\n 'port' => null,\n );\n }","protected function baseConfigurationDefaults() {\n return array(\n 'id' => $this->getPluginId(),\n 'label' => '',\n 'cache' => DRUPAL_CACHE_PER_ROLE,\n );\n }","function setting_defaults( $defaults ) {\n\n }","function get_user_setting($name, $default_value = \\false)\n {\n }","public static function get_gallery_defaults() {\n $gallery_defaults = array(\n 'link' => 'none',\n 'size' => 'full',\n 'columns' => '2'\n );\n $gallery_defaults[self::$data_setting_slug] = '0';\n\n return $gallery_defaults;\n }","protected function get_default_params() {\n\t\t$defaults = [];\n\t\t$schema = $this->get_public_item_schema();\n\t\tforeach ( $schema['properties'] as $arg => $options ) {\n\t\t\tif ( isset( $options['default'] ) ) {\n\t\t\t\t$defaults[ $arg ] = $options['default'];\n\t\t\t}\n\t\t}\n\t\treturn $defaults;\n\t}","function get_setting() {\n // has to be overridden\n return NULL;\n }","function wpsl_get_default_setting( $setting ) {\n\n global $wpsl_default_settings;\n\n return $wpsl_default_settings[$setting];\n}","protected function defaults() {\n\t\t\t$config = array(\n\t\t\t\t'version' => $this->version,\n\t\t\t\t'autoshowpt' => array(\n\t\t\t\t\t//'post'=> true\n\t\t\t\t),\n\t\t\t\t'usept' => array(\n\t\t\t\t\t'post' => true\n\t\t\t\t),\n\t\t\t\t'usetax' => array(),\n\t\t\t\t'autoshowrss' => false,\n\t\t\t\t'do_c2c' => 1,\n\t\t\t\t'do_t2t' => 0,\n\t\t\t\t'do_t2c' => 0,\n\t\t\t\t'do_k2c' => 0,\n\t\t\t\t'do_k2t' => 0,\n\t\t\t\t'do_x2x' => 1,\n\t\t\t\t'minscore' => 50,\n\t\t\t\t'maxresults' => 5,\n\t\t\t\t'cachetime' => 60,\n\t\t\t\t'filterpriority' => 10,\n\t\t\t\t'log' => false,\n\t\t\t\t'loglevel' => false,\n\t\t\t\t'storage' => 'postmeta',\n\t\t\t\t'storage_id' => 'better-related-',\n\t\t\t\t'querylimit' => 1000,\n\t\t\t\t't_querylimit' => 10000,\n\t\t\t\t'mtime' => time(),\n\t\t\t\t'relatedtitle' => sprintf(\n\t\t\t\t\t\"%s\",\n\t\t\t\t\t__( 'Related content:', 'better-related' )\n\t\t\t\t),\n\t\t\t\t'relatednone' => sprintf(\n\t\t\t\t\t\"

    %s

    \",\n\t\t\t\t\t__( 'No related content found.', 'better-related' )\n\t\t\t\t),\n\t\t\t\t'thanks' => 'below',\n\t\t\t\t'stylesheet' => true,\n\t\t\t\t'showdetails' => false\n\t\t\t);\n\t\t\treturn $config;\n\t\t}","public function default_settings() : array {\n\t\treturn [\n\t\t\t'layout' => 'block',\n\t\t\t'newsletter' => '',\n\t\t\t'theme' => 'light',\n\t\t\t'type' => 'subscribe',\n\t\t];\n\t}","public function getDefaultData()\n {\n return $this->predefined;\n }","public static function getDefaultOptions(): array\n {\n return self::$defaults;\n }","public function defaultOptions() {\n return $this->default_options;\n }","public function get_default_value()\n {\n return [\n 'id' => '',\n 'url' => '',\n 'size' => '',\n 'name' => '',\n ];\n }","public function getDefaultValues()\n {\n return $this->defaultValues;\n }","public function getDefaultValues()\n {\n return $this->defaultValues;\n }","function wp_plupload_default_settings()\n {\n }","public function save_defaults() {\n\n $tmp_options = $this->options;\n\n foreach( $this->pre_fields as $field ) {\n if( ! empty( $field['id'] ) ) {\n $this->options[$field['id']] = $this->get_default( $field, $this->options );\n }\n }\n\n if( $this->args['save_defaults'] && empty( $tmp_options ) ) {\n $this->save_options( $this->options );\n }\n\n }","function wp_get_widget_defaults()\n {\n }","function stage_get_default($request, $pop = false)\n{\n return Settings::getDefault($request, $pop);\n}","public function saveDefaultValues() {\n\n\t\tforeach ( $this->getOptionsList() as $option_page ) {\n\t\t\t$option_page->setDefaultValue();\n\t\t}\n\t}","public static function getDefaults () {\n\t\t$configuration = array(\n\t\t\t'xtype' => 'textfield',\n\t\t\t'anchor' => '95%',\n\t\t\t'blankText' =>'fieldMandatory',\n\t\t\t'labelSeparator' => '',\n\t\t\t'selectOnFocus' => TRUE,\n\t\t);\n\t\treturn $configuration;\n\t}","function get_integration_settings($set_admin_defaults = FALSE) {\n\tglobal $db, $wpuAbs;\n\t\n\t$config_fields = get_db_schema();\n\t$wpSettings = array();\n\tif ($wpuAbs->ver == 'PHPBB3') {\n\t\tforeach($config_fields as $var_name => $field_name) {\n\t\t\tif ($wpuAbs->config('wpu_'.$field_name) !== FALSE) {\n\t\t\t\t$wpSettings[$var_name] = $wpuAbs->config('wpu_'.$field_name);\n\t\t\t\t//unset($GLOBALS['config']['wpu_'.$field_name]);\n\t\t\t} elseif ($set_admin_defaults) {\n\t\t\t\t$wpSettings[$var_name] = set_default($var_name);\n\t\t\t}\n\t\t}\n\t\treturn $wpSettings;\t\n\t}\n\t\n\t$sql = 'SELECT * FROM ' . WP_INT_TABLE . ' LIMIT 1';\n\tif (!$result = $db->sql_query($sql)) {\n\t\t//db error -- die\n\t\tmessage_die(GENERAL_ERROR, $lang['WP_DBErr_Retrieve'], __LINE__, __FILE__, $sql);\n\t\treturn FALSE;\n\t}\n\tif (!$db->sql_numrows($result)) {\n\t\t// table not populated yet\n\t\treturn FALSE;\n\t}\n\telse {\n\t\n\t\t$row = $db->sql_fetchrow($result);\n\t\t$fullFieldSet = get_db_schema();\n\t\t\n\t\tforeach($fullFieldSet as $var_name => $field_name) {\n\t\t\t$wpSettings[$var_name] = $row[$field_name];\n\t\t}\n\t}\n}","protected function defaults() {\n\t\treturn array(\n\t\t\t'content' => false,\n\t\t\t'content_path' => false,\n\t\t\t'markdown' => false,\n\t\t);\n\t}","public function getSettings(){\r\n\t\treturn $this->initSettings;\r\n\t}","public function dumpPrefs()\n\t{\n\t\treturn $this->prefs;\n\t}","protected static function getDefaultSettings()\n {\n return array(\n 'prefix' => '',\n 'throw_exception' => false,\n 'connection' => null\n );\n }","protected function getDefaultValues() {\n\t\t$user = Environment::getCurrent()->getUser();\n\t\t\n\t\treturn array(\n\t\t\t'email' => $user->getEmail(),\n\t\t\t'emailConfirmation' => $user->getEmail());\n\t}","public static function getCommandDefaults() {\n\t return self::$commandDefaults \n\t ?? (self::$commandDefaults = array(\n\t 'session' => true,\n\t 'authenticate' => true,\n\t 'authorize' => null,\n\t 'access_level' => 1,\n\t 'validate' => null,\n\t 'post'=> null,\n\t 'get' => null,\n\t 'page' => null,\n\t 'tab' => null,\n\t 'tabgroup' => null));\n\t}","public function settings()\n\t{\n\t\t$settings = array(\n\t\t\t'user_id' \t=> '',\n\t\t\t'private_key' \t=> '',\n\t\t\t'debug'\t=> array('r',\n\t\t\t\tarray(\n\t\t\t\t\t'y' => lang('yes'),\n\t\t\t\t\t'n' => lang('no')\n\t\t\t\t),\n\t\t\t\t'n'\n\t\t\t)\n\t\t);\n\n\t\treturn $settings;\n\t}","function getDefaults($app) {\r\n // Get stats object\r\n $stats = $app->getDoc()->stats();\r\n \r\n // Return some defaults\r\n return array(\r\n 'mileage' => (isset($stats['last']['mileage']) && isset($stats['all']['tripdistance'])) ? getMiles($stats['last']['mileage'] + $stats['all']['tripdistance']) : '',\r\n 'location' => (isset($stats['all']['location']) ? $stats['all']['location'] : ''),\r\n 'pricepergallon' => (isset($stats['last']['pricepergallon'])) ? getGasMoney($stats['last']['pricepergallon']) : '',\r\n 'grade' => (isset($stats['all']['grade'])) ? $stats['all']['grade'] : '0'\r\n );\r\n}","abstract public function get_settings();","private function gather_plugin_options() {\n $options = array();\n foreach ( $this->OPTIONS as $value ) {\n $options[ $value ] = get_option( $value );\n }\n return array( '_wp_super_cache_options' => $options );\n }","public function getLookAndFeelSettingsDefaultData()\n {\n $settings = array(\n 'image_url' => Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'vss_spinandwin' . DS . 'front_image.png',\n 'try_luck_color' => '00c74c',\n 'try_luck_text_color' => 'ffffff',\n 'feel_lucky_text_color' => 'fffbf8',\n 'continue_color' => 'd6042e',\n 'next_time_color' => 'ff8400',\n 'background_color' => '007aa7',\n 'text_color' => 'ffffff',\n 'wheel_color' => '4497bb',\n 'wheel_text_color' => 'ffffff',\n 'theme' => 0,\n 'wheel_design' => 1\n );\n return $settings;\n }"],"string":"[\n \"public function getDefaults();\",\n \"public function GetDefaults ();\",\n \"public function getDefaultSettings();\",\n \"private function get_defaults() {\\n\\t\\treturn array(\\n\\t\\t\\t'phpbb_path' \\t\\t\\t\\t=> '',\\n\\t\\t\\t'integrateLogin' \\t\\t\\t=> 0, \\n\\t\\t\\t'showHdrFtr' \\t\\t\\t\\t=> 'NONE',\\n\\t\\t\\t'wpSimpleHdr' \\t\\t\\t\\t=> 1,\\n\\t\\t\\t'dtdSwitch' \\t\\t\\t\\t=> 0,\\n\\t\\t\\t'phpbbCensor' \\t\\t\\t\\t=> 1,\\n\\t\\t\\t'wpPageName' \\t\\t\\t\\t=> 'page.php',\\n\\t\\t\\t'phpbbPadding' \\t\\t\\t\\t=> '6-12-6-12',\\n\\t\\t\\t'xposting' \\t\\t\\t\\t\\t=> 0,\\n\\t\\t\\t'phpbbSmilies' \\t\\t\\t\\t=> 0,\\n\\t\\t\\t'avatarsync'\\t\\t\\t\\t=> 1,\\n\\t\\t\\t'integcreatewp'\\t\\t\\t\\t=> 1,\\n\\t\\t\\t'integcreatephpbb'\\t\\t\\t=> 1,\\n\\t\\t\\t'xpostautolink' \\t\\t\\t=> 0,\\n\\t\\t\\t'xpostspam' \\t\\t\\t\\t=> 'all',\\n\\t\\t\\t'xpostforce' \\t\\t\\t\\t=> -1,\\n\\t\\t\\t'xposttype' \\t\\t\\t\\t=> 'excerpt',\\n\\t\\t\\t'xpostprefix'\\t\\t\\t\\t=> '[BLOG] ',\\n\\t\\t\\t'cssMagic' \\t\\t\\t\\t\\t=> 1,\\n\\t\\t\\t'templateVoodoo' \\t\\t\\t=> 1,\\n\\t\\t\\t'useForumPage' \\t\\t\\t\\t=> 1\\n\\t\\t);\\n\\t}\",\n \"private static function _get_default_settings()\\n\\t{\\n\\t\\treturn array(\\n\\t\\t\\t'nr_api_key'\\t\\t\\t\\t\\t\\t=> '',\\n\\t\\t\\t'nr_apps_list'\\t\\t\\t\\t\\t\\t=> '', // The apps list associated with the account\\n\\t\\t\\t'nr_selected_app_servers'\\t\\t\\t=> '', // The servers from the selected app\\n\\t\\t\\t'user_datasets'\\t\\t\\t\\t\\t\\t=> '', // Saved user datasets\\n\\t\\t);\\n\\t}\",\n \"public static function get_settings_defaults(){\\r\\n\\t\\t\\r\\n\\t\\t$defaults = array();\\r\\n\\t\\tforeach( self::init_settings() as $settings ){\\r\\n\\t\\t\\tforeach( $settings as $setting ){\\r\\n\\t\\t\\t\\tif( isset( $setting['id'] ) && isset( $setting['default'] ) ){\\r\\n\\t\\t\\t\\t\\t$defaults[$setting['id']] = $setting['default'];\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\treturn $defaults;\\r\\n\\t\\t\\r\\n\\t}\",\n \"protected function getDefaults(){\\n\\t\\treturn array();\\n\\t}\",\n \"public function getDefaults(): array;\",\n \"function fa_get_slider_default_options(){\\n\\t$slider_options = require_fa_options('slider');\\n\\treturn $slider_options->get_defaults();\\n}\",\n \"private static function default_settings() {\\n\\t\\treturn array(\\n\\t\\t\\t'module_ga' => true,\\n\\t\\t\\t'module_ip' => true,\\n\\t\\t\\t'module_log' => true,\\n\\t\\t\\t'sent_data' => false,\\n\\t\\t\\t'api_key' => '',\\n\\t\\t\\t'mark_as_approved' => true,\\n\\t\\t);\\n\\t}\",\n \"public function getDefaultSettings() {\\n $defaults = array();\\n $fields = $this->getFields();\\n foreach ($fields as $field) {\\n $default = '';\\n if (array_key_exists('default', $field) && $field['default']) {\\n $default = $field['default'];\\n }\\n $defaults[$field['name']] = $default;\\n }\\n return $defaults;\\n }\",\n \"public function defaultSettings()\\n {\\n return $this->repository->get( $this->repoOptionString($this->settingsKey, $this->defaultSettingsKey), array());\\n }\",\n \"function jb_option_defaults() {\\n\\t \\t$arr = array(\\n\\t\\t'jb_featured_cat_slug' => 'home',\\n\\t\\t'jb_featured_content_limit' => 55,\\n\\t\\t'jb_post_content_limit' => 40\\n\\t);\\n\\treturn $arr;\\n}\",\n \"public function getProfileDefault()\\n {\\n return $this->getConfig('packages/global_settings_default-profile');\\n }\",\n \"public static function returnExtConfDefaults() {}\",\n \"public function getGeneralSettingsDefaultData()\\n {\\n $settings = array(\\n 'enabled' => 1,\\n 'pull_out' => 1,\\n 'display_interval' => 1,\\n 'custom_css' => '',\\n 'wheel_sound' => 1,\\n 'show_fireworks' => 0,\\n 'pull_out_image_url' => Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'vss_spinandwin' . DS . 'gift.png'\\n );\\n return $settings;\\n }\",\n \"public function & GetDefaults () {\\n\\t\\treturn $this->defaults;\\n\\t}\",\n \"protected function get_default_settings()\\n {\\n return [\\n 'default' => [\\n 'id' => '',\\n 'url' => '',\\n 'size' => '',\\n 'name' => '',\\n ],\\n ];\\n }\",\n \"public function getDefaults() {\\n\\t\\treturn $this->_defaults;\\n\\t}\",\n \"function rp_get_default_settings() {\\n\\n\\t$settings = array(\\n\\t\\t'wpdentist_item_archive_title' => __( 'WPDentist', 'wpdentist' ),\\n\\t\\t'wpdentist_item_description' => __( 'WordPress Dentist.', 'wpdentist' )\\n\\t);\\n\\n\\treturn $settings;\\n}\",\n \"public static function getDefaults()\\n {\\n return [];\\n }\",\n \"public static function getDefaultSettingsKeys();\",\n \"private function defaultSettings()\\n {\\n\\t\\t$default_config = array(\\n 'Plugins.Keypic.SigninEnabled' => false,\\n\\t\\t\\t 'Plugins.Keypic.SignupEnabled' => true,\\n\\t\\t\\t 'Plugins.Keypic.PostEnabled' => true,\\n\\t\\t\\t 'Plugins.Keypic.CommentEnabled' => true,\\n\\t\\t\\t 'Plugins.Keypic.SigninWidthHeight' => '1x1',\\n\\t\\t\\t 'Plugins.Keypic.SignupWidthHeight' => '1x1',\\n\\t\\t\\t 'Plugins.Keypic.PostWidthHeight' => '1x1',\\n\\t\\t\\t 'Plugins.Keypic.CommentWidthHeight' => '1x1',\\n\\t\\t\\t 'Plugins.Keypic.SignupRequestType' => 'getScript',\\n\\t\\t\\t 'Plugins.Keypic.SigninRequestType' => 'getScript',\\n\\t\\t\\t 'Plugins.Keypic.PostRequestType' => 'getScript',\\n\\t\\t\\t 'Plugins.Keypic.CommentRequestType' => 'getScript',\\n\\t\\t );\\n\\t\\t \\n\\t\\tSaveToConfig($default_config);\\n }\",\n \"public function getDefaultVars() {\\n\\t\\t$ret = array();\\n\\t\\tforeach ($this->_vars as $key => $var) {\\n\\t\\t\\t$ret[$key] = $var->defaultValue;\\n\\t\\t}\\n\\t\\treturn $ret;\\n\\t}\",\n \"function getSettings() {\\n\\t\\t$current_opts = get_option('wassup_settings');\\n\\t\\t$default_opts = $this->defaultSettings();\\n\\t\\t$settings = array();\\n\\t\\tif (!empty($current_opts) && is_array($current_opts)) {\\n\\t\\t\\tforeach ($default_opts as $skey => $defaultvalue) {\\n\\t\\t\\t if (array_key_exists($skey,$current_opts)) {\\n\\t\\t\\t \\t$settings[$skey] = $current_opts[$skey];\\n\\t\\t\\t } else {\\n\\t\\t\\t \\t$settings[$skey] = $defaultvalue;\\n\\t\\t\\t }\\n\\t\\t\\t} //end foreach\\n\\t\\t} else {\\n\\t\\t\\t$settings = $default_opts;\\n\\t\\t}\\n\\t\\treturn $settings;\\n\\t}\",\n \"public static function getDefaultVars()\\n {\\n return [\\n 'posts_per_page' => 15,\\n 'topics_per_page' => 15,\\n 'hot_threshold' => 20,\\n 'email_from' => '', // use system default email\\n 'url_ranks_images' => \\\"ranks\\\",\\n 'post_sort_order' => 'ASC',\\n 'log_ip' => false,\\n 'extendedsearch' => false,\\n 'm2f_enabled' => false,\\n 'favorites_enabled' => false,\\n 'removesignature' => false,\\n 'striptags' => false,\\n 'hooks' => ['providers' => [], 'subscribers' => []],\\n 'rss2f_enabled' => false,\\n 'timespanforchanges' => 24,\\n 'forum_enabled' => true,\\n 'forum_disabled_info' => 'Sorry! The forums are currently off-line for maintenance. Please try later.',\\n 'signaturemanagement' => false,\\n 'signature_start' => '--',\\n 'signature_end' => '--',\\n 'showtextinsearchresults' => false,\\n 'minsearchlength' => 3,\\n 'maxsearchlength' => 30,\\n 'fulltextindex' => false,\\n 'solved_enabled' => false,\\n 'ajax' => false,\\n 'striptagsfromemail' => false,\\n 'indexTo' => '',\\n 'notifyAdminAsMod' => 2,\\n 'defaultPoster' => 2,\\n 'onlineusers_moderatorcheck' => false,\\n 'forum_subscriptions_enabled' => false,\\n 'topic_subscriptions_enabled' => false,\\n ];\\n }\",\n \"private function getDefaults()\\n\\t{\\n\\t\\t/* @formatter:off */\\n\\t\\treturn array(\\n\\t\\t\\t'cli_codepage' => 'cp852',\\n\\t\\t\\t'cookie_file' => dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'SESSION_ID',\\n\\t\\t\\t'exit_on' => E_ERROR | E_USER_ERROR,\\n\\t\\t\\t'is_debug' => false,\\n\\n\\t\\t\\t/* Services */\\n\\t\\t\\t'api' => 'Orkan\\\\\\\\Filmweb\\\\\\\\Api\\\\\\\\Api',\\n\\t\\t\\t'tarnsport' => 'Orkan\\\\\\\\Filmweb\\\\\\\\Transport\\\\\\\\Curl',\\n\\t\\t\\t'request' => 'Orkan\\\\\\\\Filmweb\\\\\\\\Transport\\\\\\\\CurlRequest',\\n\\t\\t\\t'logger' => 'Orkan\\\\\\\\Filmweb\\\\\\\\Logger',\\n\\n\\t\\t\\t/* Hide sensitive log data */\\n\\t\\t\\t'logger_mask' => array( 'search' => array( $this->pass ), 'replace' => array( '***' ) ),\\n\\t\\t);\\n\\t\\t/* @formatter:on */\\n\\t}\",\n \"function get_defaultsetting() {\\n return $this->defaultsetting;\\n }\",\n \"public function getDefaults() {\\n\\n\\t\\treturn [\\n\\t\\t\\t'module' => $this->_defaultModule,\\n\\t\\t\\t'controller' => $this->_defaultController,\\n\\t\\t\\t'action' => $this->_defaultAction,\\n\\t\\t\\t'params' => $this->_defaultParams\\n\\t\\t];\\n\\t}\",\n \"public function get_default_options()\\n\\t{\\n\\t\\t$defaults = array();\\n\\t\\t$defaults['title'] = '';\\n\\t\\t$defaults['placeholder'] = 'Search Connections...';\\n\\t\\t\\n\\t\\treturn $defaults;\\n\\t}\",\n \"function pixgraphy_get_option_defaults_values() {\\n\\t\\tglobal $pixgraphy_default_values;\\n\\t\\t$pixgraphy_default_values = array(\\n\\t\\t\\t'pixgraphy_responsive'\\t=> 'on',\\n\\t\\t\\t'pixgraphy_column_post'\\t=>'four',\\n\\t\\t\\t'pixgraphy_border_column'\\t=>'on',\\n\\t\\t\\t'pixgraphy_design_layout' => 'wide-layout',\\n\\t\\t\\t'pixgraphy_animate_css'\\t=> 'on',\\n\\t\\t\\t'pixgraphy_sidebar_layout_options' => 'right',\\n\\t\\t\\t'pixgraphy_photography_layout' => 'photography_layout',\\n\\t\\t\\t'pixgraphy_search_custom_header' => 0,\\n\\t\\t\\t'pixgraphy-img-upload-footer-image' => '',\\n\\t\\t\\t'pixgraphy-footer-title'\\t=> '',\\n\\t\\t\\t'pixgraphy-footer-link'\\t=> '#',\\n\\t\\t\\t'pixgraphy_header_display'=> 'header_text',\\n\\t\\t\\t'pixgraphy_categories'\\t=> array(),\\n\\t\\t\\t'pixgraphy_custom_css'\\t=> '',\\n\\t\\t\\t'pixgraphy_scroll'\\t=> 0,\\n\\t\\t\\t'pixgraphy_tag_text' => esc_html__('Read More','pixgraphy'),\\n\\t\\t\\t'pixgraphy_excerpt_length'\\t=> '20',\\n\\t\\t\\t'pixgraphy_single_post_image' => 'off',\\n\\t\\t\\t'pixgraphy_reset_all' => 0,\\n\\t\\t\\t'pixgraphy_stick_menu'\\t=>0,\\n\\t\\t\\t'pixgraphy_blog_post_image' => 'on',\\n\\t\\t\\t'pixgraphy_entry_format_blog' => 'excerptblog_display',\\n\\t\\t\\t'pixgraphy_search_text' => esc_html__('Search &hellip;','pixgraphy'),\\n\\t\\t\\t'pixgraphy_blog_content_layout'\\t=> '',\\n\\t\\t\\t'pixgraphy_display_page_featured_image'=>0,\\n\\t\\t\\t/* Slider Settings */\\n\\t\\t\\t'pixgraphy_slider_type'\\t=> 'default_slider',\\n\\t\\t\\t'pixgraphy_slider_link' =>0,\\n\\t\\t\\t'pixgraphy_enable_slider' => 'frontpage',\\n\\t\\t\\t'pixgraphy_transition_effect' => 'fade',\\n\\t\\t\\t'pixgraphy_transition_delay' => '4',\\n\\t\\t\\t'pixgraphy_transition_duration' => '1',\\n\\t\\t\\t/* Front page feature */\\n\\t\\t\\t'pixgraphy_entry_format_blog' => 'show',\\n\\t\\t\\t'pixgraphy_entry_meta_blog' => 'show-meta',\\n\\t\\t\\t/*Social Icons */\\n\\t\\t\\t'pixgraphy_top_social_icons' =>0,\\n\\t\\t\\t'pixgraphy_buttom_social_icons'\\t=>0,\\n\\t\\t\\t'pixgraphy_social_facebook'=> '',\\n\\t\\t\\t'pixgraphy_social_twitter'=> '',\\n\\t\\t\\t'pixgraphy_social_pinterest'=> '',\\n\\t\\t\\t'pixgraphy_social_dribbble'=> '',\\n\\t\\t\\t'pixgraphy_social_instagram'=> '',\\n\\t\\t\\t'pixgraphy_social_flickr'=> '',\\n\\t\\t\\t'pixgraphy_social_googleplus'=> '',\\n\\t\\t\\t'pixgraphy_remove_parallax_fromheader'=>0,\\n\\t\\t\\t);\\n\\t\\treturn apply_filters( 'pixgraphy_get_option_defaults_values', $pixgraphy_default_values );\\n\\t}\",\n \"function bdpp_get_settings() {\\n\\t\\n\\t$options = get_option('bdpp_opts');\\n\\t\\n\\t$settings = (is_array($options)) ? $options : array();\\n\\t\\n\\treturn $settings;\\n}\",\n \"protected function get_default() {\\n\\t\\treturn array(\\n\\t\\t\\t'ownerID' => 0,\\n\\t\\t\\t'accountID' => '',\\n\\t\\t\\t'adsenseLinked' => false,\\n\\t\\t\\t'adsConversionID' => '',\\n\\t\\t\\t'anonymizeIP' => true,\\n\\t\\t\\t'internalWebPropertyID' => '',\\n\\t\\t\\t'profileID' => '',\\n\\t\\t\\t'propertyID' => '',\\n\\t\\t\\t'trackingDisabled' => array( 'loggedinUsers' ),\\n\\t\\t\\t'useSnippet' => true,\\n\\t\\t\\t'canUseSnippet' => true,\\n\\t\\t\\t'dashboardView' => Analytics::DASHBOARD_VIEW,\\n\\t\\t);\\n\\t}\",\n \"function buddyexpressdesk_settings(){\\n $settings = new stdClass;\\n\\t$GET = new BDESK_DB;\\n $GET->statement('SELECT * FROM bdesk_site LIMIT 1');\\n $GET->execute();\\n\\t$defaults = $GET->fetch();\\n\\tforeach ($defaults as $name => $value) {\\n\\t\\tif (empty($paths->$name)) {\\n\\t\\t\\t$settings->$name = $value;\\n\\t\\t}\\n\\t}\\n\\treturn $settings;\\n}\",\n \"protected function _getDefaultValues()\\n {\\n return array(\\n );\\n }\",\n \"public static function getDefaultVars(){\\n\\t\\treturn Array(\\n\\t\\t\\t//--whether to output debug messages for this class\\n\\t\\t\\t'debug'=> false\\n\\t\\t\\t,'contentRelativePath'=> '_content'\\n\\t\\t\\t,'host'=> ($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['PWD']\\n\\t\\t\\t,'webRoot'=> ($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : $_SERVER['PWD']\\n\\t\\t\\t,'wpRelativePath'=> '_wp'\\n\\t\\t\\t,'protocol'=> (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) ? 'https' : 'http'\\n\\t\\t);\\n\\t}\",\n \"protected function get_saved_options() {\\n\\t\\t\\tif ( $options = get_option( 'better-related' ) )\\n\\t\\t\\t\\treturn $options;\\n\\t\\t\\t// If the option wasn't found, the plugin wasn't activated properly\\n\\t\\t\\t$this->create_fulltext_index( 'posts', 'post_content' );\\n\\t\\t\\t$this->create_fulltext_index( 'posts', 'post_title' );\\n\\t\\t\\treturn $this->defaults();\\n\\t\\t}\",\n \"abstract protected function loadDefaults();\",\n \"public function get_settings() {\\n\\t\\tif ( ! is_array( $this->_settings ) ) {\\n\\t\\t\\t$this->_settings = get_option( $this->token, array() );\\n\\t\\t}\\n\\t\\t\\n\\t\\tforeach ( $this->fields as $k => $v ) {\\n\\t\\t\\tif ( ! isset( $this->_settings[$k] ) && isset( $v['default'] ) ) {\\n\\t\\t\\t\\t$this->_settings[$k] = $v['default'];\\n\\t\\t\\t}\\n\\t\\t\\tif ( $v['type'] == 'checkbox' && $this->_settings[$k] != true ) {\\n\\t\\t\\t\\t$this->_settings[$k] = 0;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn $this->_settings;\\n\\t}\",\n \"function preferences() { \\n\\n\\t\\t$preferences = array(); \\n\\n\\t\\t$preferences[] = array('name'=>'hostname','default'=>'xbox','type'=>'string','description'=>'XBOX Hostname');\\n\\t\\t$preferences[] = array('name'=>'smbpath','default'=>'smb://hostname/mp3/','type'=>'string','description'=>'Samba share path to mp3s');\\n\\t\\t\\n\\t\\t//needed to add basic authentication support later\\n\\t\\t//$preferences[] = array('name'=>'username','default'=>'xbox','type'=>'string','description'=>'XBMC Username');\\n\\t\\t//$preferences[] = array('name'=>'password','default'=>'','type'=>'string','description'=>'XBMC Password');\\n\\n\\t\\treturn $preferences;\\n\\n\\t}\",\n \"final protected function _defaults(){\\n if(! $this->_defaults) return;\\n foreach($this->_defaults as $conf => $default_value){\\n if(! self::inform($conf)) self::define($conf, $default_value);\\n }\\n }\",\n \"protected function getDefaults()\\n {\\n return $this->transbankConfig->getDefaults(\\n lcfirst(Helpers::classBasename(static::class))\\n ) ?? [];\\n }\",\n \"public function getDisplaySettingsDefaultData()\\n {\\n $settings = array(\\n 'screen_size' => '320_480',\\n 'display_frequency' => 1,\\n 'hide_after' => 1,\\n 'display_position' => 1,\\n 'who_to_show' => 'all',\\n 'when_to_display' => 'immediately',\\n 'time_in_seconds' => 5,\\n 'scroll_percent' => 10,\\n 'geo_location' => 'always'\\n );\\n return $settings;\\n }\",\n \"private static function initialize_defaults() {\\r\\n\\t\\t\\tself::$default_settings['credentials'] = array();\\r\\n\\r\\n\\t\\t\\tself::$default_settings['has_first_question'] = 'no';\\r\\n\\r\\n\\t\\t\\t// We want the Urtaks to appear by default, so let's append them\\r\\n\\t\\t\\tself::$default_settings['placement'] = 'append';\\r\\n\\r\\n\\t\\t\\t// We want to default post types to 'post' and 'page'\\r\\n\\t\\t\\tself::$default_settings['post-types'] = array('page', 'post');\\r\\n\\r\\n\\t\\t\\t// We want users to be able to start Urtaks by default\\r\\n\\t\\t\\tself::$default_settings['user-start'] = 'yes';\\r\\n\\r\\n\\t\\t\\t// We want Urtaks to support community moderation by default so that we get more questions and responses\\r\\n\\t\\t\\tself::$default_settings['moderation'] = 'community';\\r\\n\\r\\n\\t\\t\\t// Auto height and width\\r\\n\\t\\t\\tself::$default_settings['height'] = '';\\r\\n\\t\\t\\tself::$default_settings['width'] = '';\\r\\n\\r\\n\\t\\t\\t// Counter settings\\r\\n\\t\\t\\tself::$default_settings['counter-icon'] = 'yes';\\r\\n\\t\\t\\tself::$default_settings['counter-responses'] = 'yes';\\r\\n\\r\\n\\t\\t\\t// Profanity\\r\\n\\t\\t\\tself::$default_settings['blacklisting'] = 'no';\\r\\n\\t\\t\\tself::$default_settings['blacklist_override'] = 'no';\\r\\n\\t\\t\\tself::$default_settings['blacklist_words'] = '';\\r\\n\\t\\t}\",\n \"function get_default_properties()\\r\\n {\\r\\n return $this->defaultProperties;\\r\\n }\",\n \"function wpsl_get_settings() {\\n\\n $settings = get_option( 'wpsl_settings' );\\n\\n if ( !$settings ) {\\n update_option( 'wpsl_settings', wpsl_get_default_settings() );\\n $settings = wpsl_get_default_settings();\\n }\\n\\n return $settings;\\n}\",\n \"function merchant_promos_metabox_defaults() {\\n\\t\\treturn array(\\n\\t\\t\\t'amount' => 0,\\n\\t\\t\\t'type' => 'fixed',\\n\\t\\t\\t'max' => -1,\\n\\t\\t\\t'expiration' => '',\\n\\t\\t\\t'notify' => '',\\n\\t\\t\\t'count' => 0,\\n\\t\\t\\t'total' => 0,\\n\\t\\t\\t'valid_on' => array(),\\n\\t\\t);\\n\\t}\",\n \"public function getProductDefaults()\\n {\\n $defaults = $this->_config->get('product_defaults');\\n\\n if (is_array($defaults)) {\\n return $defaults;\\n }\\n\\n return [];\\n }\",\n \"function tc_get_default_options() {\\r\\n $def_options = get_option( \\\"tc_theme_defaults\\\");\\r\\n \\r\\n //Always update the default option when (OR) :\\r\\n // 1) they are not defined\\r\\n // 2) customzing => takes into account if user has set a filter or added a new customizer setting\\r\\n // 3) theme version not defined\\r\\n // 4) versions are different\\r\\n if ( ! $def_options || $this -> is_customizing || ! isset($def_options['ver']) || 0 != version_compare( $def_options['ver'] , CUSTOMIZR_VER ) ) {\\r\\n $def_options = $this -> tc_generate_default_options( $this -> tc_customizer_map( $get_default_option = 'true' ) , 'tc_theme_options' );\\r\\n //Adds the version\\r\\n $def_options['ver'] = CUSTOMIZR_VER;\\r\\n update_option( \\\"tc_theme_defaults\\\" , $def_options );\\r\\n }\\r\\n return apply_filters( 'tc_default_options', $def_options );\\r\\n }\",\n \"protected function getDefaultValues() {\\n\\t\\treturn array(\\n\\t\\t\\t'name' => '',\\n\\t\\t\\t'email' => '',\\n\\t\\t\\t'isEnabled' => true);\\n\\t}\",\n \"function load_defaults(){\\n\\t\\t\\n\\t\\t$this->choices = array(\\n\\t\\t\\t'yes' => __('Enable', 'wa_wcc_txt'),\\n\\t\\t\\t'no' => __('Disable', 'wa_wcc_txt')\\n\\t\\t);\\n\\n\\t\\t$this->loading_places = array(\\n\\t\\t\\t'header' => __('Header', 'wa_wcc_txt'),\\n\\t\\t\\t'footer' => __('Footer', 'wa_wcc_txt')\\n\\t\\t);\\n\\n\\t\\t$this->tabs = array(\\n\\t\\t\\t'general-settings' => array(\\n\\t\\t\\t\\t'name' => __('General', 'wa_wcc_txt'),\\n\\t\\t\\t\\t'key' => 'wa_wcc_settings',\\n\\t\\t\\t\\t'submit' => 'save_wa_wcc_settings',\\n\\t\\t\\t\\t'reset' => 'reset_wa_wcc_settings',\\n\\t\\t\\t),\\n 'configuration' => array(\\n 'name' => __('Advanced', 'wa_wcc_txt'),\\n 'key' => 'wa_wcc_configuration',\\n 'submit' => 'save_wa_wcc_configuration',\\n 'reset' => 'reset_wa_wcc_configuration'\\n )\\n\\t\\t);\\n\\t}\",\n \"protected function getConfigDefaults() {\\n\\t\\treturn [\\n\\t\\t\\t'dbname' => 'gamemonitor',\\n\\t\\t];\\n\\t}\",\n \"public static function getDefaultOptions()\\n {\\n return self::$defaults;\\n }\",\n \"public static function getDefaultOptions()\\n {\\n return self::$defaults;\\n }\",\n \"public static function get_settings() {\\n\\t\\treturn array_merge( SpamLyticsHelper::default_settings(), get_option( 'spamlytics', array() ) );\\n\\t}\",\n \"function mustsee_theme_settings_defaults( $defaults ) {\\n\\n\\t$defaults['twitter_url'] = '';\\n\\t$defaults['facebook_url'] = '';\\n\\t$defaults['pinterest_url'] = '';\\n\\t$defaults['linkedin_url'] = '';\\n\\t$defaults['youtube_url'] = '';\\n\\t$defaults['googleplus_url'] = '';\\n\\t$defaults['agent_address'] = '';\\n\\t$defaults['agent_phone'] = '';\\n\\n\\treturn $defaults;\\n}\",\n \"public function getPluginSettings()\\n {\\n return $this->origSettings;\\n }\",\n \"protected function getConfigDefaults() {\\n\\t\\treturn array(\\n\\t\\t\\t// @todo add description strings\\n\\t\\t\\t'servers' => '127.0.0.1',\\n\\t\\t\\t'port'\\t\\t\\t\\t\\t=> 6379,\\n\\t\\t\\t'maxconnperserv'\\t\\t=> 32,\\n\\t\\t);\\n\\t}\",\n \"public function defaultSettings()\\n\\t{\\n\\t\\treturn [\\n\\t\\t\\t'notifications' => [\\n\\t\\t\\t\\t'team_event_create' => 1,\\n\\t\\t\\t\\t'team_event_update' => 2,\\n\\t\\t\\t\\t'team_event_delete' => 2,\\n\\t\\t\\t\\t'team_stats' \\t\\t=> 1,\\n\\t\\t\\t\\t'team_post' \\t\\t=> 1,\\n\\t\\t\\t\\t'user_post' \\t\\t=> 2,\\n\\t\\t\\t\\t'user_stats'\\t\\t=> 1,\\n\\t\\t\\t],\\n\\t\\t];\\n\\t}\",\n \"public static function getUserPreferences()\\r\\n {\\r\\n\\tif ( empty(self::$userPreferences) )\\r\\n\\t{\\r\\n\\t $prefs = explode(',', HTTP::SERVER('HTTP_ACCEPT_LANGUAGE'));\\r\\n\\t if ( empty($prefs) )\\r\\n\\t {\\r\\n\\t\\treturn null;\\r\\n\\t }\\r\\n\\t\\r\\n\\t self::$userPreferences = Array();\\r\\n\\t foreach ( $prefs as $p )\\r\\n\\t {\\r\\n\\t\\tself::$userPreferences[] = self::parseUserPreference($p);\\r\\n\\t }\\r\\n\\t}\\r\\n\\r\\n\\treturn self::$userPreferences;\\r\\n }\",\n \"static function getGeneralSettingsValues(){\\r\\n\\t\\t\\r\\n\\t\\t$arrValues = get_option('revslider-global-settings', '');\\r\\n\\t\\t\\r\\n\\t\\t$arrValues = maybe_unserialize($arrValues);\\r\\n\\r\\n\\t\\treturn($arrValues);\\r\\n\\t}\",\n \"function initDefaultOptions(){\\n\\n\\t\\t\\t$defaults = $this->defaultOptions();\\n\\t\\t\\treturn update_option( $this->optionsKey, $defaults );\\n\\t\\t}\",\n \"private function getDefaultConfig() {\\n\\t\\treturn array(\\n\\t\\t\\t'client_id' => '',\\n\\t\\t\\t'client_secret' => '',\\n\\t\\t\\t'base_url' => '',\\n\\t\\t\\t'default_type' => 'user',\\n\\t\\t);\\n\\t}\",\n \"public function getDefaultValues() {\\n\\t\\treturn $this->defaultValues;\\n\\t}\",\n \"function cspm_get_field_default($option_id, $default_value = ''){\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t/**\\r\\n\\t\\t\\t * We'll check if the default settings can be found in the array containing the \\\"(shared) plugin settings\\\".\\r\\n\\t\\t\\t * If found, we'll use it. If not found, we'll use the one in [@default_value] instead. */\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t$default = $this->cspm_setting_exists($option_id, $this->plugin_settings, $default_value);\\r\\n\\t\\t\\t\\r\\n\\t\\t\\treturn $default;\\r\\n\\t\\t\\t\\r\\n\\t\\t}\",\n \"function default_configuration()\\r\\n {\\r\\n return array();\\r\\n }\",\n \"public function pi_setPiVarDefaults() {}\",\n \"private static function getDefaultSettings()\\n {\\n return array(\\n 'driver' => null,\\n 'username' => null,\\n 'password' => null,\\n 'dbname' => null,\\n 'host' => null,\\n 'port' => null,\\n );\\n }\",\n \"protected function baseConfigurationDefaults() {\\n return array(\\n 'id' => $this->getPluginId(),\\n 'label' => '',\\n 'cache' => DRUPAL_CACHE_PER_ROLE,\\n );\\n }\",\n \"function setting_defaults( $defaults ) {\\n\\n }\",\n \"function get_user_setting($name, $default_value = \\\\false)\\n {\\n }\",\n \"public static function get_gallery_defaults() {\\n $gallery_defaults = array(\\n 'link' => 'none',\\n 'size' => 'full',\\n 'columns' => '2'\\n );\\n $gallery_defaults[self::$data_setting_slug] = '0';\\n\\n return $gallery_defaults;\\n }\",\n \"protected function get_default_params() {\\n\\t\\t$defaults = [];\\n\\t\\t$schema = $this->get_public_item_schema();\\n\\t\\tforeach ( $schema['properties'] as $arg => $options ) {\\n\\t\\t\\tif ( isset( $options['default'] ) ) {\\n\\t\\t\\t\\t$defaults[ $arg ] = $options['default'];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn $defaults;\\n\\t}\",\n \"function get_setting() {\\n // has to be overridden\\n return NULL;\\n }\",\n \"function wpsl_get_default_setting( $setting ) {\\n\\n global $wpsl_default_settings;\\n\\n return $wpsl_default_settings[$setting];\\n}\",\n \"protected function defaults() {\\n\\t\\t\\t$config = array(\\n\\t\\t\\t\\t'version' => $this->version,\\n\\t\\t\\t\\t'autoshowpt' => array(\\n\\t\\t\\t\\t\\t//'post'=> true\\n\\t\\t\\t\\t),\\n\\t\\t\\t\\t'usept' => array(\\n\\t\\t\\t\\t\\t'post' => true\\n\\t\\t\\t\\t),\\n\\t\\t\\t\\t'usetax' => array(),\\n\\t\\t\\t\\t'autoshowrss' => false,\\n\\t\\t\\t\\t'do_c2c' => 1,\\n\\t\\t\\t\\t'do_t2t' => 0,\\n\\t\\t\\t\\t'do_t2c' => 0,\\n\\t\\t\\t\\t'do_k2c' => 0,\\n\\t\\t\\t\\t'do_k2t' => 0,\\n\\t\\t\\t\\t'do_x2x' => 1,\\n\\t\\t\\t\\t'minscore' => 50,\\n\\t\\t\\t\\t'maxresults' => 5,\\n\\t\\t\\t\\t'cachetime' => 60,\\n\\t\\t\\t\\t'filterpriority' => 10,\\n\\t\\t\\t\\t'log' => false,\\n\\t\\t\\t\\t'loglevel' => false,\\n\\t\\t\\t\\t'storage' => 'postmeta',\\n\\t\\t\\t\\t'storage_id' => 'better-related-',\\n\\t\\t\\t\\t'querylimit' => 1000,\\n\\t\\t\\t\\t't_querylimit' => 10000,\\n\\t\\t\\t\\t'mtime' => time(),\\n\\t\\t\\t\\t'relatedtitle' => sprintf(\\n\\t\\t\\t\\t\\t\\\"%s\\\",\\n\\t\\t\\t\\t\\t__( 'Related content:', 'better-related' )\\n\\t\\t\\t\\t),\\n\\t\\t\\t\\t'relatednone' => sprintf(\\n\\t\\t\\t\\t\\t\\\"

    %s

    \\\",\\n\\t\\t\\t\\t\\t__( 'No related content found.', 'better-related' )\\n\\t\\t\\t\\t),\\n\\t\\t\\t\\t'thanks' => 'below',\\n\\t\\t\\t\\t'stylesheet' => true,\\n\\t\\t\\t\\t'showdetails' => false\\n\\t\\t\\t);\\n\\t\\t\\treturn $config;\\n\\t\\t}\",\n \"public function default_settings() : array {\\n\\t\\treturn [\\n\\t\\t\\t'layout' => 'block',\\n\\t\\t\\t'newsletter' => '',\\n\\t\\t\\t'theme' => 'light',\\n\\t\\t\\t'type' => 'subscribe',\\n\\t\\t];\\n\\t}\",\n \"public function getDefaultData()\\n {\\n return $this->predefined;\\n }\",\n \"public static function getDefaultOptions(): array\\n {\\n return self::$defaults;\\n }\",\n \"public function defaultOptions() {\\n return $this->default_options;\\n }\",\n \"public function get_default_value()\\n {\\n return [\\n 'id' => '',\\n 'url' => '',\\n 'size' => '',\\n 'name' => '',\\n ];\\n }\",\n \"public function getDefaultValues()\\n {\\n return $this->defaultValues;\\n }\",\n \"public function getDefaultValues()\\n {\\n return $this->defaultValues;\\n }\",\n \"function wp_plupload_default_settings()\\n {\\n }\",\n \"public function save_defaults() {\\n\\n $tmp_options = $this->options;\\n\\n foreach( $this->pre_fields as $field ) {\\n if( ! empty( $field['id'] ) ) {\\n $this->options[$field['id']] = $this->get_default( $field, $this->options );\\n }\\n }\\n\\n if( $this->args['save_defaults'] && empty( $tmp_options ) ) {\\n $this->save_options( $this->options );\\n }\\n\\n }\",\n \"function wp_get_widget_defaults()\\n {\\n }\",\n \"function stage_get_default($request, $pop = false)\\n{\\n return Settings::getDefault($request, $pop);\\n}\",\n \"public function saveDefaultValues() {\\n\\n\\t\\tforeach ( $this->getOptionsList() as $option_page ) {\\n\\t\\t\\t$option_page->setDefaultValue();\\n\\t\\t}\\n\\t}\",\n \"public static function getDefaults () {\\n\\t\\t$configuration = array(\\n\\t\\t\\t'xtype' => 'textfield',\\n\\t\\t\\t'anchor' => '95%',\\n\\t\\t\\t'blankText' =>'fieldMandatory',\\n\\t\\t\\t'labelSeparator' => '',\\n\\t\\t\\t'selectOnFocus' => TRUE,\\n\\t\\t);\\n\\t\\treturn $configuration;\\n\\t}\",\n \"function get_integration_settings($set_admin_defaults = FALSE) {\\n\\tglobal $db, $wpuAbs;\\n\\t\\n\\t$config_fields = get_db_schema();\\n\\t$wpSettings = array();\\n\\tif ($wpuAbs->ver == 'PHPBB3') {\\n\\t\\tforeach($config_fields as $var_name => $field_name) {\\n\\t\\t\\tif ($wpuAbs->config('wpu_'.$field_name) !== FALSE) {\\n\\t\\t\\t\\t$wpSettings[$var_name] = $wpuAbs->config('wpu_'.$field_name);\\n\\t\\t\\t\\t//unset($GLOBALS['config']['wpu_'.$field_name]);\\n\\t\\t\\t} elseif ($set_admin_defaults) {\\n\\t\\t\\t\\t$wpSettings[$var_name] = set_default($var_name);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn $wpSettings;\\t\\n\\t}\\n\\t\\n\\t$sql = 'SELECT * FROM ' . WP_INT_TABLE . ' LIMIT 1';\\n\\tif (!$result = $db->sql_query($sql)) {\\n\\t\\t//db error -- die\\n\\t\\tmessage_die(GENERAL_ERROR, $lang['WP_DBErr_Retrieve'], __LINE__, __FILE__, $sql);\\n\\t\\treturn FALSE;\\n\\t}\\n\\tif (!$db->sql_numrows($result)) {\\n\\t\\t// table not populated yet\\n\\t\\treturn FALSE;\\n\\t}\\n\\telse {\\n\\t\\n\\t\\t$row = $db->sql_fetchrow($result);\\n\\t\\t$fullFieldSet = get_db_schema();\\n\\t\\t\\n\\t\\tforeach($fullFieldSet as $var_name => $field_name) {\\n\\t\\t\\t$wpSettings[$var_name] = $row[$field_name];\\n\\t\\t}\\n\\t}\\n}\",\n \"protected function defaults() {\\n\\t\\treturn array(\\n\\t\\t\\t'content' => false,\\n\\t\\t\\t'content_path' => false,\\n\\t\\t\\t'markdown' => false,\\n\\t\\t);\\n\\t}\",\n \"public function getSettings(){\\r\\n\\t\\treturn $this->initSettings;\\r\\n\\t}\",\n \"public function dumpPrefs()\\n\\t{\\n\\t\\treturn $this->prefs;\\n\\t}\",\n \"protected static function getDefaultSettings()\\n {\\n return array(\\n 'prefix' => '',\\n 'throw_exception' => false,\\n 'connection' => null\\n );\\n }\",\n \"protected function getDefaultValues() {\\n\\t\\t$user = Environment::getCurrent()->getUser();\\n\\t\\t\\n\\t\\treturn array(\\n\\t\\t\\t'email' => $user->getEmail(),\\n\\t\\t\\t'emailConfirmation' => $user->getEmail());\\n\\t}\",\n \"public static function getCommandDefaults() {\\n\\t return self::$commandDefaults \\n\\t ?? (self::$commandDefaults = array(\\n\\t 'session' => true,\\n\\t 'authenticate' => true,\\n\\t 'authorize' => null,\\n\\t 'access_level' => 1,\\n\\t 'validate' => null,\\n\\t 'post'=> null,\\n\\t 'get' => null,\\n\\t 'page' => null,\\n\\t 'tab' => null,\\n\\t 'tabgroup' => null));\\n\\t}\",\n \"public function settings()\\n\\t{\\n\\t\\t$settings = array(\\n\\t\\t\\t'user_id' \\t=> '',\\n\\t\\t\\t'private_key' \\t=> '',\\n\\t\\t\\t'debug'\\t=> array('r',\\n\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t'y' => lang('yes'),\\n\\t\\t\\t\\t\\t'n' => lang('no')\\n\\t\\t\\t\\t),\\n\\t\\t\\t\\t'n'\\n\\t\\t\\t)\\n\\t\\t);\\n\\n\\t\\treturn $settings;\\n\\t}\",\n \"function getDefaults($app) {\\r\\n // Get stats object\\r\\n $stats = $app->getDoc()->stats();\\r\\n \\r\\n // Return some defaults\\r\\n return array(\\r\\n 'mileage' => (isset($stats['last']['mileage']) && isset($stats['all']['tripdistance'])) ? getMiles($stats['last']['mileage'] + $stats['all']['tripdistance']) : '',\\r\\n 'location' => (isset($stats['all']['location']) ? $stats['all']['location'] : ''),\\r\\n 'pricepergallon' => (isset($stats['last']['pricepergallon'])) ? getGasMoney($stats['last']['pricepergallon']) : '',\\r\\n 'grade' => (isset($stats['all']['grade'])) ? $stats['all']['grade'] : '0'\\r\\n );\\r\\n}\",\n \"abstract public function get_settings();\",\n \"private function gather_plugin_options() {\\n $options = array();\\n foreach ( $this->OPTIONS as $value ) {\\n $options[ $value ] = get_option( $value );\\n }\\n return array( '_wp_super_cache_options' => $options );\\n }\",\n \"public function getLookAndFeelSettingsDefaultData()\\n {\\n $settings = array(\\n 'image_url' => Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'vss_spinandwin' . DS . 'front_image.png',\\n 'try_luck_color' => '00c74c',\\n 'try_luck_text_color' => 'ffffff',\\n 'feel_lucky_text_color' => 'fffbf8',\\n 'continue_color' => 'd6042e',\\n 'next_time_color' => 'ff8400',\\n 'background_color' => '007aa7',\\n 'text_color' => 'ffffff',\\n 'wheel_color' => '4497bb',\\n 'wheel_text_color' => 'ffffff',\\n 'theme' => 0,\\n 'wheel_design' => 1\\n );\\n return $settings;\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.7566856","0.73202425","0.7093371","0.7051502","0.7035544","0.70052576","0.69235927","0.68482","0.6846756","0.68136275","0.6806049","0.6773219","0.6759119","0.6732954","0.67160577","0.66929895","0.6690776","0.6677039","0.6669455","0.66548175","0.657256","0.6554196","0.65370613","0.6532651","0.6517775","0.6517685","0.65141624","0.6493778","0.6472283","0.6469448","0.64590263","0.64366645","0.64333594","0.6420688","0.6411027","0.6410891","0.6392526","0.6381647","0.63634616","0.63554436","0.6350476","0.6349552","0.63362384","0.63201994","0.6313675","0.63053817","0.6303295","0.6300564","0.6295575","0.62869996","0.62768","0.6265289","0.6261277","0.6261277","0.6259225","0.62330705","0.62298506","0.6214362","0.6193759","0.61886716","0.61790913","0.6174128","0.6172326","0.61705613","0.61637163","0.6162891","0.61627436","0.6156959","0.61502534","0.6140388","0.613273","0.6129406","0.61290056","0.6126544","0.6123575","0.6115152","0.6104975","0.6102195","0.60940826","0.6075894","0.60738003","0.60726887","0.60726887","0.607201","0.6047923","0.6027939","0.6027601","0.6017401","0.60156614","0.6011468","0.6006723","0.6006291","0.60049325","0.60036916","0.6002008","0.59959733","0.5992515","0.5985032","0.5980381","0.5979831","0.5975234"],"string":"[\n \"0.7566856\",\n \"0.73202425\",\n \"0.7093371\",\n \"0.7051502\",\n \"0.7035544\",\n \"0.70052576\",\n \"0.69235927\",\n \"0.68482\",\n \"0.6846756\",\n \"0.68136275\",\n \"0.6806049\",\n \"0.6773219\",\n \"0.6759119\",\n \"0.6732954\",\n \"0.67160577\",\n \"0.66929895\",\n \"0.6690776\",\n \"0.6677039\",\n \"0.6669455\",\n \"0.66548175\",\n \"0.657256\",\n \"0.6554196\",\n \"0.65370613\",\n \"0.6532651\",\n \"0.6517775\",\n \"0.6517685\",\n \"0.65141624\",\n \"0.6493778\",\n \"0.6472283\",\n \"0.6469448\",\n \"0.64590263\",\n \"0.64366645\",\n \"0.64333594\",\n \"0.6420688\",\n \"0.6411027\",\n \"0.6410891\",\n \"0.6392526\",\n \"0.6381647\",\n \"0.63634616\",\n \"0.63554436\",\n \"0.6350476\",\n \"0.6349552\",\n \"0.63362384\",\n \"0.63201994\",\n \"0.6313675\",\n \"0.63053817\",\n \"0.6303295\",\n \"0.6300564\",\n \"0.6295575\",\n \"0.62869996\",\n \"0.62768\",\n \"0.6265289\",\n \"0.6261277\",\n \"0.6261277\",\n \"0.6259225\",\n \"0.62330705\",\n \"0.62298506\",\n \"0.6214362\",\n \"0.6193759\",\n \"0.61886716\",\n \"0.61790913\",\n \"0.6174128\",\n \"0.6172326\",\n \"0.61705613\",\n \"0.61637163\",\n \"0.6162891\",\n \"0.61627436\",\n \"0.6156959\",\n \"0.61502534\",\n \"0.6140388\",\n \"0.613273\",\n \"0.6129406\",\n \"0.61290056\",\n \"0.6126544\",\n \"0.6123575\",\n \"0.6115152\",\n \"0.6104975\",\n \"0.6102195\",\n \"0.60940826\",\n \"0.6075894\",\n \"0.60738003\",\n \"0.60726887\",\n \"0.60726887\",\n \"0.607201\",\n \"0.6047923\",\n \"0.6027939\",\n \"0.6027601\",\n \"0.6017401\",\n \"0.60156614\",\n \"0.6011468\",\n \"0.6006723\",\n \"0.6006291\",\n \"0.60049325\",\n \"0.60036916\",\n \"0.6002008\",\n \"0.59959733\",\n \"0.5992515\",\n \"0.5985032\",\n \"0.5980381\",\n \"0.5979831\",\n \"0.5975234\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":434,"cells":{"query":{"kind":"string","value":"install plugin resources (css, js)"},"document":{"kind":"string","value":"function abl_droploader_install($event, $step, $resources=null, $path='') {\n\t\tglobal $prefs;\n\n\t\t$state = 0;\n\t\tif ($resources === null) {\n\t\t\t$path = $prefs['path_to_site'];\n\t\t\t$resources = array();\n\t\t\t$resources['/res/css/abl.droploader-app.css'] = 'Ym9keSB7CglvdmVyZmxvdy14OiBoaWRkZW47CglvdmVyZmxvdy15OiBzY3JvbGw7Cn0KLyogaW1h\nZ2UgbGlzdCAqLwovKiNpbWFnZV9jb250cm9sIC5hYmwtZHJvcGxvYWRlci1vcGVuIHsKCWZsb2F0\nOiByaWdodDsKCW1hcmdpbi1yaWdodDogMWVtOwoJZm9udDogMWVtIFZlcmRhbmEsIEFyaWFsLCBz\nYW5zLXNlcmlmOwoJZm9udC13ZWlnaHQ6IGJvbGQ7Cn0qLwoKI2FibC1kcm9wbG9hZGVyLWNsb3Nl\nIHsKCWRpc3BsYXk6IGJsb2NrOwoJcG9zaXRpb246IGFic29sdXRlOwoJdG9wOiAyZW07CglyaWdo\ndDogLjVlbTsKCXBhZGRpbmc6IDNweCAxMHB4IDZweCAxMHB4OwoJYm9yZGVyOiAxcHggc29saWQg\nI2NjYzsKCXRleHQtZGVjb3JhdGlvbjogbm9uZTsKCXZlcnRpY2FsLWFsaWduOiBib3R0b207Cgl0\nZXh0LWFsaWduOiBjZW50ZXI7Cglmb250OiAyZW0gVmVyZGFuYSwgQXJpYWwsIHNhbnMtc2VyaWY7\nCglmb250LXdlaWdodDogYm9sZDsKCWNvbG9yOiAjMjIyOwoJYmFja2dyb3VuZDogI2ZmZjsKCXot\naW5kZXg6IDMzMzM7CgljdXJzb3I6IHBvaW50ZXI7Cn0KI2FibC1kcm9wbG9hZGVyLWNsb3NlOmhv\ndmVyIHsKCWNvbG9yOiAjZjIyOwp9CgojYWJsLWRyb3Bsb2FkZXIgewoJcG9zaXRpb246IGFic29s\ndXRlOwoJdG9wOiAwOwoJbGVmdDogMDsKCXdpZHRoOiAxMDAlOwoJaGVpZ2h0OiAxMDAlOwp9Cgov\nKiAjYWJsLWRyb3Bsb2FkZXIgZm9ybSBpbnB1dCB7ICovCiNhYmwtZHJvcGxvYWRlciBmb3JtIGRp\ndiB7CglkaXNwbGF5OiBub25lOwp9CiNhYmwtZHJvcGxvYWRlciAudXBsb2FkLWluZm8gewoJcG9z\naXRpb246IGFic29sdXRlOwoJdG9wOiAwOwoJbGVmdDogMDsKCXdpZHRoOiAxMDAlOwoJaGVpZ2h0\nOiAxMDAlOwoJdGV4dC1hbGlnbjogY2VudGVyOwoJZm9udC1zaXplOiAxLjVlbTsKCWZvbnQtd2Vp\nZ2h0OiBub3JtYWw7Cgljb2xvcjogIzIyMjsKCWJhY2tncm91bmQ6IHJnYmEoMjU1LCAyNTUsIDI1\nNSwgMC44NSk7Cgl6LWluZGV4OiAzMzMzOwp9CiNhYmwtZHJvcGxvYWRlciAuc2VsZWN0LWZpbGVz\nIHsKCXBvc2l0aW9uOiBhYnNvbHV0ZTsKCXRvcDogMDsKCWxlZnQ6IDA7Cgl3aWR0aDogMTAwJTsK\nCWhlaWdodDogMTAwJTsKCWNvbG9yOiAjNjY2OwoJYmFja2dyb3VuZDogcmdiYSgyNDAsIDI0MCwg\nMjQwLCAwLjc1KTsKCXotaW5kZXg6IDMzMzM7Cn0KI2FibC1kcm9wbG9hZGVyIC5hYmwtZml4ZWQt\ncG9zIHsKCXBvc2l0aW9uOiBmaXhlZDsKfQojYWJsLWRyb3Bsb2FkZXIgLnNlbGVjdC1maWxlcyBw\nIHsKCWRpc3BsYXk6IGJsb2NrOwoJcG9zaXRpb246IGFic29sdXRlOwoJdG9wOiA1MCU7CglsZWZ0\nOiAwOwoJd2lkdGg6IDEwMCU7CgltYXJnaW46IGF1dG8gMDsKCXRleHQtYWxpZ246IGNlbnRlcjsK\nCWZvbnQtc2l6ZTogM2VtOwoJZm9udC13ZWlnaHQ6IG5vcm1hbDsKCXZlcnRpY2FsLWFsaWduOiBt\naWRkbGU7Cn0KI2FibC1kcm9wbG9hZGVyLWltYWdlLWNhdC1zZWwgewoJZGlzcGxheTogYmxvY2s7\nCglwb3NpdGlvbjogYWJzb2x1dGU7Cgl0b3A6IDhlbTsKCXJpZ2h0OiAxZW07CgliYWNrZ3JvdW5k\nLWNvbG9yOiAjY2NjOwoJcGFkZGluZzogMWVtOwp9CiNhYmwtZHJvcGxvYWRlci1pbWFnZS1jYXQt\nc2VsIHNlbGVjdCB7CgltYXJnaW4tdG9wOiAwLjVlbTsKfQojYWJsLWRyb3Bsb2FkZXIgLmltZy1w\ncmV2aWV3IHsKCXBvc2l0aW9uOiByZWxhdGl2ZTsKCXRvcDogMDsKCWxlZnQ6IDA7Cgl3aWR0aDog\nMTAwJTsKCWhlaWdodDogMjQwcHg7CgltYXJnaW46IDMwcHggYXV0bzsKCW92ZXJmbG93OiBoaWRk\nZW47CglsaXN0LXN0eWxlLXR5cGU6IG5vbmU7CglwYWRkaW5nOiAwOwoJdGV4dC1hbGlnbjogY2Vu\ndGVyOwp9CiNhYmwtZHJvcGxvYWRlciAuaW1hZ2UtYm94IHsKCWhlaWdodDogMTg2cHg7Cgl2ZXJ0\naWNhbC1hbGlnbjogbWlkZGxlOwoJbGluZS1oZWlnaHQ6IDE4MHB4Owp9CiNhYmwtZHJvcGxvYWRl\nciAuaW1hZ2UtYm94IGltZyB7CgltYXgtd2lkdGg6IDI0MHB4OwoJbWF4LWhlaWdodDogMTgwcHg7\nCglib3JkZXI6IDNweCBzb2xpZCAjZmZmOwoJLW1vei1ib3gtc2hhZG93OiAwIDAgMnB4ICMwMDA7\nCgktd2Via2l0LWJveC1zaGFkb3c6IDAgMCAycHggIzAwMDsKCWJveC1zaGFkb3c6IDAgMCAycHgg\nIzAwMDsKfQojYWJsLWRyb3Bsb2FkZXIgLmltZy1wcmV2aWV3IC5wcmV2aWV3IHsKCXBvc2l0aW9u\nOiByZWxhdGl2ZTsKCXdpZHRoOiA1MDBweDsKCWhlaWdodDogMjA2cHg7CgltYXJnaW46IDEwcHgg\nYXV0bzsKCXRleHQtYWxpZ246IGNlbnRlcjsKfQojYWJsLWRyb3Bsb2FkZXIgLmltZy1wcmV2aWV3\nIC5wcmV2aWV3LmRvbmUgewoJb3ZlcmZsb3c6IGhpZGRlbjsKCWhlaWdodDogMDsKCXRyYW5zaXRp\nb246IGhlaWdodCAwLjc1czsKCS1tb3otdHJhbnNpdGlvbjogaGVpZ2h0IDAuNzVzOwoJLXdlYmtp\ndC10cmFuc2l0aW9uOiBoZWlnaHQgMC43NXM7Cgktby10cmFuc2l0aW9uOiBoZWlnaHQgMC43NXM7\nCn0KLyogcGVyIGltYWdlIHByb2dyZXNzICovCiNhYmwtZHJvcGxvYWRlciAuaW1hZ2UtcHJvZ3Jl\nc3MgewoJcG9zaXRpb246IHJlbGF0aXZlOwoJaGVpZ2h0OiAxMnB4OwoJd2lkdGg6IDI0NnB4OwoJ\nbWFyZ2luOiA1cHggYXV0bzsKCXZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Cn0KI2FibC1kcm9wbG9h\nZGVyIC5pbWFnZS1wcm9ncmVzcyAucHJvZ3Jlc3MgewoJcG9zaXRpb246IGFic29sdXRlOwoJbGVm\ndDogMDsKCWhlaWdodDogMTAwJTsKCXdpZHRoOiAwOwoJYmFja2dyb3VuZC1jb2xvcjogIzI1ODZk\nMDsKfQoKLyogb3ZlcmFsbCBwcm9ncmVzcyAqLwojYWJsLWRyb3Bsb2FkZXIgLmZpbGVzLXByb2dy\nZXNzIHsKCXBvc2l0aW9uOiByZWxhdGl2ZTsKCXRvcDogMzUwcHg7CgloZWlnaHQ6IDI0cHg7Cgl3\naWR0aDogNTAwcHg7CgltYXJnaW46IDEwcHggYXV0bzsKfQojYWJsLWRyb3Bsb2FkZXIgLmZpbGVz\nLXByb2dyZXNzIC5wcm9ncmVzcyB7Cglwb3NpdGlvbjogYWJzb2x1dGU7CglsZWZ0OiAwOwoJaGVp\nZ2h0OiAxMDAlOwoJd2lkdGg6IDA7CgliYWNrZ3JvdW5kLWNvbG9yOiAjMjU4NmQwOwp9CgovKiBl\ncnJvciBvciBjb21wbGV0aW9uIG1lc3NhZ2UgKi8KI2FibC1kcm9wbG9hZGVyIC5tZXNzYWdlLWJv\neCB7Cglwb3NpdGlvbjogcmVsYXRpdmU7Cgl0b3A6IDM1MHB4OwoJd2lkdGg6IDUwMHB4OwoJbWFy\nZ2luOiAxMHB4IGF1dG87Cgl0ZXh0LWFsaWduOiBjZW50ZXI7Cglmb250LXNpemU6IHNtYWxsOwp9\nCg==';\n\t\t\t$resources['/res/js/abl.droploader-app.js'] = 'KGZ1bmN0aW9uKCQpIHsKCgl2YXIgZGVmYXVsdF9vcHRpb25zID0gewoJCXdpZGdldF9pZDogJ2Fi\nbC1kcm9wbG9hZGVyJywKCQlzZWxlY3RfZmlsZXNfY2xhc3M6ICdzZWxlY3QtZmlsZXMnLAoJCWlt\nYWdlX2NhdGVnb3JpZXNfc2VsZWN0OiAnJywKCQlmaWxlZHJvcDogewoJCQlwYXJhbW5hbWU6ICd0\naGVmaWxlJywKCQkJbWF4ZmlsZXM6IGltYWdlX21heF9maWxlcywKCQkJbWF4ZmlsZXNpemU6IGlt\nYWdlX21heF91cGxvYWRfc2l6ZSwKCQkJdXJsOiAnaW5kZXgucGhwJywKCQkJZmFsbGJhY2tfaWQ6\nICdpbWFnZS11cGxvYWQnLAoJCQloZWFkZXJzOiB7CgkJCQknY2hhcnNldCc6ICd1dGYtOCcKCQkJ\nfQoJCX0sCgkJbDEwbjogewoJCQknY2xvc2UnOiAnJiN4MDBkNzsnLAoJCQknY2xvc2VfdGl0bGUn\nOiAnQ2xvc2UgRHJvcExvYWRlcicsCgkJCSdlcnJvcl9tZXRob2QnOiAnTWV0aG9kIHt7bWV0aG9k\nfX0gZG9lcyBub3QgZXhpc3QgaW4gYWJsLmRyb3Bsb2FkZXItYXBwLmpzLicKCQl9Cgl9OwoJdmFy\nIG9wdHMsCgkJZHJvcGxvYWRlcl9oaWRkZW4gPSB0cnVlLAoJCWRyb3Bsb2FkZXIgPSBudWxsOwoK\nCSQuZm4uYWJsRHJvcExvYWRlckFwcCA9IGZ1bmN0aW9uKG1ldGhvZCkgewoKCQl2YXIgbWV0aG9k\ncyA9IHsKCQkJaW5pdCA6IGZ1bmN0aW9uKG9wdGlvbnMpIHsKCQkJCWlmICghbWV0aG9kcy5pc1N1\ncHBvcnRlZCgpKSByZXR1cm4gZmFsc2U7CgkJCQlvcHRzID0gJC5leHRlbmQoe30sIGRlZmF1bHRf\nb3B0aW9ucywgb3B0aW9ucyk7CgkJCQlpZiAoJCgnI3BhZ2UtYXJ0aWNsZScpLmxlbmd0aCA+IDAp\nIHsKCQkJCQlhcnRpY2xlX2ltYWdlX2ZpZWxkID0gbmV3IEFycmF5KCk7CgkJCQkJZm9yICh2YXIg\naSA9IDA7IGkgPCBhcnRpY2xlX2ltYWdlX2ZpZWxkX2lkcy5sZW5ndGg7ICsraSkgewoJCQkJCQlh\ncnRpY2xlX2ltYWdlX2ZpZWxkW2ldID0gJChhcnRpY2xlX2ltYWdlX2ZpZWxkX2lkc1tpXSk7CgkJ\nCQkJfQoJCQkJfQoJCQkJaWYgKCQoJyNoaWRkZW5fY2F0JykubGVuZ3RoID09IDApIHsKCQkJCQkk\nKCcudXBsb2FkLWZvcm0nKQoJCQkJCQkuYXBwZW5kKCc8aW5wdXQgdHlwZT0iaGlkZGVuIiBpZD0i\nYWJsX2Ryb3Bsb2FkZXIiIG5hbWU9ImFibF9kcm9wbG9hZGVyIiB2YWx1ZT0iMSIgLz5cbicpCgkJ\nCQkJCS5hcHBlbmQoJzxpbnB1dCB0eXBlPSJoaWRkZW4iIGlkPSJoaWRkZW5fY2F0IiBuYW1lPSJj\nYXRlZ29yeSIgdmFsdWU9IiIgLz4nKTsKCQkJCX0KCQkJCWlmIChvcHRzLmltYWdlX2NhdGVnb3Jp\nZXNfc2VsZWN0ID09ICcnKSB7CgkJCQkJJC5hamF4KHsKCQkJCQkJdXJsOiAnP2V2ZW50PWFibF9k\ncm9wbG9hZGVyJnN0ZXA9Z2V0X2Zvcm1fZGF0YSZpdGVtcz1pbWFnZV9jYXRfc2VsZWN0LGwxMG4n\nLAoJCQkJCQlkYXRhVHlwZTogJ2pzb24nLAoJCQkJCQlhc3luYzogZmFsc2UsCgkJCQkJCXN1Y2Nl\nc3M6IGZ1bmN0aW9uKGRhdGEpIHsKCQkJCQkJCWlmIChkYXRhLnN0YXR1cyA9PSAnMScpIHsKCQkJ\nCQkJCQlvcHRzLmltYWdlX2NhdGVnb3JpZXNfc2VsZWN0ID0gZGF0YS5pbWFnZV9jYXRfc2VsZWN0\nOwoJCQkJCQkJCW9wdHMubDEwbiA9IGRhdGEubDEwbjsKCQkJCQkJCX0KCQkJCQkJfQoJCQkJCX0p\nOwoJCQkJfQoJCQkJJCgnYm9keScpLmRlbGVnYXRlKCcjYWJsLWRyb3Bsb2FkZXItY2xvc2UnLCAn\nY2xpY2suZHJvcGxvYWRlcicsIGZ1bmN0aW9uKGUpIHsKCQkJCQltZXRob2RzLmNsb3NlKCk7CgkJ\nCQkJcmV0dXJuIGZhbHNlOwoJCQkJfSk7CgkJCQkkKCdib2R5JykuZGVsZWdhdGUoJyNhYmwtZHJv\ncGxvYWRlci1pbWFnZS1jYXQtc2VsIConLCAnY2xpY2suZHJvcGxhZGVyJywgZnVuY3Rpb24oZSkg\newoJCQkJCXJldHVybiBmYWxzZTsKCQkJCX0pOwoJCQkJJCgnYm9keScpLmRlbGVnYXRlKCcjYWJs\nLWRyb3Bsb2FkZXItaW1hZ2UtY2F0LXNlbCBzZWxlY3QnLCAnY2hhbmdlLmRyb3BsYWRlcicsIGZ1\nbmN0aW9uKGUpIHsKCQkJCQkkKCcjaGlkZGVuX2NhdCcpLnZhbCgkKHRoaXMpLnZhbCgpKTsKCQkJ\nCQlyZXR1cm4gZmFsc2U7CgkJCQl9KTsKCQkJCWRyb3Bsb2FkZXIgPSAkKCcudXBsb2FkLWZvcm0n\nKS5kcm9wbG9hZGVyKG9wdHMpOwoJCQkJJCgnI2FibC1kcm9wbG9hZGVyJykuaGlkZSgpOwoKCSAg\nICAgICAJCXJldHVybiB0aGlzLmVhY2goZnVuY3Rpb24oKSB7fSk7CgkJCX0sCgkJCWlzU3VwcG9y\ndGVkOiBmdW5jdGlvbigpIHsKCQkJCXJldHVybiAoJ2RyYWdnYWJsZScgaW4gZG9jdW1lbnQuY3Jl\nYXRlRWxlbWVudCgnc3BhbicpKSAmJiAodHlwZW9mIEZpbGVSZWFkZXIgIT0gJ3VuZGVmaW5lZCcp\nOwoJCQl9LAoJCQlvcGVuOiBmdW5jdGlvbigpIHsKICAgICAgICAJCXJldHVybiB0aGlzLmVhY2go\nZnVuY3Rpb24oKSB7CgkJCQkJaWYgKCQoJy51cGxvYWQtZm9ybScpLmxlbmd0aCA+IDApIHsKCQkJ\nCQkJZHJvcGxvYWRlci5kcm9wbG9hZGVyKCdyZXNldCcpOwoJCQkJCQkkKCcjYWJsLWRyb3Bsb2Fk\nZXInKS5zbGlkZURvd24oZnVuY3Rpb24oKSB7CgkJCQkJCQkkKCcjYWJsLWRyb3Bsb2FkZXIgLnNl\nbGVjdC1maWxlcycpLmFkZENsYXNzKCdhYmwtZml4ZWQtcG9zJyk7CgkJCQkJCQlkcm9wbG9hZGVy\nX2hpZGRlbiA9IGZhbHNlOwoJCQkJCQkJJCgnaHRtbCcpLmJpbmQoJ2tleXVwLmRyb3Bsb2FkZXIn\nLCBmdW5jdGlvbihlKSB7CgkJCQkJCQkJaWYgKGUud2hpY2ggPT0gMjcpIHsKCQkJCQkJCQkJbWV0\naG9kcy5jbG9zZSgpOwoJCQkJCQkJCQlyZXR1cm4gZmFsc2U7CgkJCQkJCQkJfQoJCQkJCQkJfSk7\nCgkJCQkJCX0pOwoJCQkJCX0KCQkJCX0pOwoJCQl9LAoJCQljbG9zZTogZnVuY3Rpb24oKSB7CgkJ\nCQkkKCcjYWJsLWRyb3Bsb2FkZXIgLnNlbGVjdC1maWxlcycpLnJlbW92ZUNsYXNzKCdhYmwtZml4\nZWQtcG9zJyk7CgkJCQkkKCcjYWJsLWRyb3Bsb2FkZXInKS5zbGlkZVVwKGZ1bmN0aW9uKCkgewoJ\nCQkJCWRyb3Bsb2FkZXJfaGlkZGVuID0gdHJ1ZTsKCQkJCQkkKCdodG1sJykudW5iaW5kKCcuZHJv\ncGxvYWRlcicpOwoJCQkJCWRyb3Bsb2FkZXIgPSBudWxsOwoJCQkJCWlmICgkKCcjcGFnZS1pbWFn\nZScpLmxlbmd0aCA+IDAgJiYgcmVsb2FkX2ltYWdlX3RhYiAhPSAwKSB7CgkJCQkJCWxvY2F0aW9u\nLnJlbG9hZCgpOwoJCQkJCX0KCQkJCX0pOwoJCQkJcmV0dXJuIGZhbHNlOwoJCQl9LAoJCQlkZXN0\ncm95IDogZnVuY3Rpb24oKSB7CgkJCQlyZXR1cm4gbWV0aG9kcy5jbG9zZSgpOwoJCQl9CgkJfTsK\nCgkJaWYgKG1ldGhvZHNbbWV0aG9kXSkgewoJCQlyZXR1cm4gbWV0aG9kc1ttZXRob2RdLmFwcGx5\nKHRoaXMsIEFycmF5LnByb3RvdHlwZS5zbGljZS5jYWxsKGFyZ3VtZW50cywgMSkpOwoJCX0gZWxz\nZSBpZiAodHlwZW9mIG1ldGhvZCA9PT0gJ29iamVjdCcgfHwgISBtZXRob2QpIHsKCQkJcmV0dXJu\nIG1ldGhvZHMuaW5pdC5hcHBseSh0aGlzLCBhcmd1bWVudHMpOwoJCX0gZWxzZSB7CgkJCSQuZXJy\nb3IoZ2V0VGV4dChvcHRzLmwxMG4uZXJyb3JfbWV0aG9kLCB7ICdtZXRob2QnOiBtZXRob2QgfSkp\nOwoJCX0KCgkJLyogc2hvdyBlcnJvciBvciBjb21wbGV0aW9uIG1lc3NhZ2UgKi8KCQlmdW5jdGlv\nbiBnZXRUZXh0KHRleHQsIHZhbHVlcywgbmwyYnIpewoJCQlpZiAodmFsdWVzICE9PSB1bmRlZmlu\nZWQgJiYgdmFsdWVzICE9ICcnKSB7CgkJCQlmb3IgKHZhciBlbnRyeSBpbiB2YWx1ZXMpIHsKCQkJ\nCQl2YXIgcmVnZXhwID0gbmV3IFJlZ0V4cCgne3snICsgZW50cnkgKyAnfX0nLCAnZ2knKTsKCQkJ\nCQl0ZXh0ID0gdGV4dC5yZXBsYWNlKHJlZ2V4cCwgdmFsdWVzW2VudHJ5XSk7CgkJCQl9CgkJCX0K\nCQkJaWYgKG5sMmJyID09PSB0cnVlKSB7CgkJCQl0ZXh0ID0gdGV4dC5yZXBsYWNlKC9cXG4vZywg\nJzxiciAvPicpOwoJCQl9IGVsc2UgewoJCQkJdGV4dCA9IHRleHQucmVwbGFjZSgvXFxuL2csIFN0\ncmluZy5mcm9tQ2hhckNvZGUoMTApKTsKCQkJfQoJCQlyZXR1cm4gdGV4dDsKCQl9CgoJfTsKCn0p\nKGpRdWVyeSk7CgoKJChmdW5jdGlvbigpewoKCXZhciBkcm9wbG9hZGVyX29wdGlvbnMgPSB7CgkJ\nYWZ0ZXJBbGw6IGZ1bmN0aW9uKGZpbGVzKSB7CgkJCWlmIChmaWxlcy5sZW5ndGggPiAwICYmIGFy\ndGljbGVfaW1hZ2VfZmllbGQgIT0gbnVsbCkgewoJCQkJZm9yICh2YXIgaSA9IDA7IGkgPCBhcnRp\nY2xlX2ltYWdlX2ZpZWxkLmxlbmd0aDsgKytpKSB7CgkJCQkJdmFyIHYgPSAkKGFydGljbGVfaW1h\nZ2VfZmllbGRbaV0pLnZhbCgpOwoJCQkJCWlmICh2ID09ICcnKSB7CgkJCQkJCXYgPSBmaWxlcy5q\nb2luKCcsJyk7CgkJCQkJfSBlbHNlIHsKCQkJCQkJdiArPSAnLCcgKyBmaWxlcy5qb2luKCcsJyk7\nCgkJCQkJfQoJCQkJCSQoYXJ0aWNsZV9pbWFnZV9maWVsZFtpXSkudmFsKHYpOwoJCQkJCSQoYXJ0\naWNsZV9pbWFnZV9maWVsZFtpXSkuY2hhbmdlKCk7CgkJCQl9CgkJCX0KCQl9LAoJCWwxMG46IHt9\nCgl9OwoKCWlmICgkLmZuLmFibERyb3BMb2FkZXJBcHAoJ2lzU3VwcG9ydGVkJykpIHsKCgkJdmFy\nIGRvY19sYW5ndWFnZSA9ICQoJ2h0bWwnKS5hdHRyKCdsYW5nJyksCgkJCWltYWdlX3VwbG9hZF9s\naW5rID0gJycsCgkJCWltYWdlX3VwbG9hZF9mb3JtID0gJyc7CgoJCWlmIChpbWFnZV91cGxvYWRf\nZm9ybSA9PSAnJykgewoJCQkkLmdldEpTT04oCgkJCQknP2V2ZW50PWFibF9kcm9wbG9hZGVyJnN0\nZXA9Z2V0X2Zvcm1fZGF0YSZpdGVtcz1hbGwnLAoJCQkJZnVuY3Rpb24oZGF0YSkgewoJCQkJCWlm\nIChkYXRhLnN0YXR1cyA9PSAnMScpIHsKCQkJCQkJaW1hZ2VfdXBsb2FkX2xpbmsgPSBkYXRhLmlt\nYWdlX3VwbG9hZF9saW5rOwoJCQkJCQlpbWFnZV91cGxvYWRfZm9ybSA9IGRhdGEuaW1hZ2VfdXBs\nb2FkX2Zvcm07CgkJCQkJCWRyb3Bsb2FkZXJfb3B0aW9ucy5pbWFnZV9jYXRlZ29yaWVzX3NlbGVj\ndCA9IGRhdGEuaW1hZ2VfY2F0X3NlbGVjdDsKCQkJCQkJZHJvcGxvYWRlcl9vcHRpb25zLmwxMG4g\nPSBkYXRhLmwxMG47CgkJCQkJCWFibERyb3BMb2FkZXJTZXR1cCgpOwoJCQkJCX0KCQkJCX0KCQkJ\nKTsKCQl9IGVsc2UgewoJCQlhYmxEcm9wTG9hZGVyU2V0dXAoKTsKCQl9CgoJCWZ1bmN0aW9uIGFi\nbERyb3BMb2FkZXJTZXR1cCgpIHsKCQkJaWYgKCQoJyNwYWdlLWFydGljbGUnKS5sZW5ndGggPiAw\nICYmICQoJy51cGxvYWQtZm9ybScpLmxlbmd0aCA9PSAwKSB7CgkJCQkkKCdib2R5JykuYXBwZW5k\nKGltYWdlX3VwbG9hZF9mb3JtKTsKCQkJfQoJCQkkKCcudXBsb2FkLWZvcm0nKS5oaWRlKCk7CgkJ\nCWlmICgkKCcjcGFnZS1pbWFnZScpLmxlbmd0aCA+IDApIHsKCQkJCSQoJ2JvZHknKS5hcHBlbmQo\nJCgnLnVwbG9hZC1mb3JtJykpOyAvLyBtb3ZlIGZvcm0KCQkJLy8JJCgnI2ltYWdlX2NvbnRyb2wn\nKS5wcmVwZW5kKGltYWdlX3VwbG9hZF9saW5rKTsgLy8gaW5zZXJ0IGxpbmsKICAgICAgICAgICAg\nICAgICAgICAgICAgICAgICAgICAkKCcudHhwLWNvbnRyb2wtcGFuZWwnKS5wcmVwZW5kKGltYWdl\nX3VwbG9hZF9saW5rKTsgLy8gaW5zZXJ0IGxpbmsKCQkJfQoJCQkkKCdib2R5JykuZGVsZWdhdGUo\nJy5hYmwtZHJvcGxvYWRlci1vcGVuJywgJ2NsaWNrLmRyb3Bsb2FkZXInLCBmdW5jdGlvbihlKSB7\nCgkJCQkkKCcudXBsb2FkLWZvcm0nKQoJCQkJCS5hYmxEcm9wTG9hZGVyQXBwKCdpbml0JywgZHJv\ncGxvYWRlcl9vcHRpb25zKQoJCQkJCS5hYmxEcm9wTG9hZGVyQXBwKCdvcGVuJyk7CgkJCQlyZXR1\ncm4gZmFsc2U7CgkJCX0pOwoJCX0KCgl9Cgp9KTsK';\n\t\t\t$resources['/res/js/jquery.droploader.js'] = 'H4sIAAAAAAAAA7Ua23LbtvJZ/grEJy2pRKaVzpwXO+5MTprMyUySpon7cKbpaGARkpiQBAeE\nfDmq/r27iwsBkXKUZuIHSVxgL9gbdpdOF+t6rgtZpw/HbHN0NLrmiuViwdelbtkFgEajRVGK\nXMnmjJ5GDVe8qnklzljSFPNkgsCK3+K29ow9mUaA4v+w7ycCrVUJKEiplDwXKmtWjcFe8LK8\n4vPPsyKHHYj3qm7W2izmXHNgvaWHlUDMFp/hkWBFxZdiNudaLKUqRDtrRSnmGggRvpFcVI2+\nw8crsZBKvODz1RnzZ4ejMyX0WtVMq7U4Z0SYL7RQz8oywBZKSRU8r+koHzRXWuQ9+MuiLtpV\ntNAouVSibX9v4FjRSvlkWlsNF/VCzrS4xTP8AuIz0iRbCSWeXil2+rP5/FhLxeZlMf/MtGTm\n1GarURwIOyvqa14W+QzB+q5Bmz3ndS01MyKyzQaX0JzbbcZ+rcs7RgptGVeCgV3kjchZ+qlZ\nTtinRsDnslhMWFMvxw86NldK3rRCzYDwrF03jTT6SP4n14rZRZZLoIqs7Q7238s3r/9NEltp\n2oCklnJW8fpuZv0quZSSIcAc8QF7VwreCnfuzcZ53HbLuGaVbHVADVeIZMnVErUQntuoE1YZ\nrVo0OLvhPTPC0YE2G/cwc8zkwipxLte1BoCxltuXGWq17BO7RIuSnjcb8iwkZ35k7K20hG5o\n1w65VlbiKwn+E9Exxo5G23ObGIyugZrNDDdFvhTgpXpVtBP/bKK4i3OSGKKuOmP1uixdUF7J\n2w5gKDtbD0Fn85K36AcGeNI5OoZLh0PB4/aak5wgLDHhJ64LcTMzLt4hxXCPXlTLE7uUhNF7\nxVWI64EekYQ7cSuEW8EPIB6duoN5TAs6AVgSal7zKB+Twc7YtEs26ABTn6OA1JTQnd0WuCQb\n3YYYRrNA9o8/SZx2aR5ie0MqqpoS0hWsJU/z4pqRsBfHoSWOIR0l7DH6Jv0lT5ufn542PWjb\n8JoV+cUxvypPOh85mZeyFceAghtirOTpKTBFmJPLmWufYHa9L1Owh0yNat7dBdvA7pRfY2Qn\nxf0UndEHyEYSul3DZPvASAtHo4fZos46/YEG/G0GVoav1tzno2LBUozPDCIznY6zWubiLaQ9\ndgFKe/nr+zfJ2Nw6p48Y3BbyM6R7WTMTrzeKNzYdnCCEPTqlCwpoWi6Zj3n2ACiuaygeilrk\nlihtfZgm/4KTsB7KOIMUvNQrlGXqMEYkLXKGuzc1WkOHGaQAsOQYbJWMzwl5S5/o76CR/Xxp\nM6TGEi6Qvpw+zX2DpAM0DpJ1iLeR9iiWODZXYKOTuaw1Bxsoay3LAYU9Nwl91HEhqxJ7/JVM\nKFcQx3hPtipykY7PnUtZnYI+wI3Ak4V2fkQPqRHaFlVI07CO6JoTfsFQR3RUILlumEXgdc5c\nUcqacr0sanNUzG9ILoPaSdR5CkWjL2YnnWonjhEJiUiZvZCMLCtdlcZIeNIHgXSgC8s3C2rW\ncQbh3KRJBXyKphTJ2KriAEyutQowJyyg4lVmnTPztPoX45CDGrZoPCpl0510bkz0BbrotKxx\nfpGhalKwwSVoOCUUrFszX7FOsOqmInp8OHlM+Y4DxcQ+NnRJjO0eozldaFLbns0zWj9MFndG\n3jToPLRrT3MxdoHUI2U86AA23rNX8sbUwGYr+CXLC17KpfFpoHYl87tknOWwvgRJvkQ+oZ4g\nCwuw7nIQh7smkbGBLLJWy+ZVVQmQTYt3sJmDLNQ8hZEOBFpByvEH3B+qLuo8/5RurLDDjMXz\nCxOgfMqg3GX4hHWsht8PZy9fvX7xgYlaq7u4K43pOHi/Ux3eB0tdBxtvAVC/hd2r1LiHjbdZ\n8IRUYLrWntWi5EqlEMl37q8wkWlsYXRmnHHwSh45R403GyIjqjQzX2NiYYGrNr3Ym8vcQ4Yh\n9ueXitftAm6ciCH78UcWrx8oVh/l64Xbd1boh9diL7kn4dVM9jF3jksKURHn46frOeiOv69I\n9Di9tsGh3l8mfrEK9Qx2mwtD/3D8oZ7oPhoOaJ3TK2Y3I3bKCooNuz/muYs5JNEQDa/YPoEd\nnfexO63tIu/qM8KFbNQKLEuwAEP3ZVrKI18jEgTp+St5DKlbQZqH1PJMKX6X7jkCeCe6nQfB\nPQAeqVdpMv3BqRqvkDdGujSJ9E9J1V70vRSN4zPKavEQyyedYkLRNWEQXS5IkdUrVH+KSyGr\niEqMGzIbnL8RLZ/hSEqi2W0O2FlCvUlaX263xZF+SHYwpPbq1QHQ1X9IhqxiOQ7w6Wu1GwH2\nxQOUBopQ+KULvFcXC69lykuuS3/8+Pxw8ZMn084xIgye58/Rb9Mkl7VIgjukEWoOdyZYFXz0\nDderTEE6zNM0jQXB9oQAZsQwZo8YcBuzU7aTSL/WlwMBQq3HY4qsWber1CnNVmauOwp90On8\nXk2HprJT3e62Vcpg7jSxGc4sFsWtyE8aidJHJXcvvEahspwRv6e+25tCQ6jAbn+nznFEmvzH\nTGDfSv3BDWeTM5u6cehjVNsvofeOdm1B3YUrZTk3ME/96pUS/PN5KMqllG94ffeSpneHyhDP\ngidsw75U2bHtPxcRZQMxX2O9cLCI8YAZRXTz5TP6lVGhGkj1rcERS2673LPvQTwohsgRg/jo\nCs/QUb3fekeGCNl1Weeh91lnGwRp9zYmfG1jRyj6EuJarnV6jGF6PFiXHcOhlajkNY4xjicY\nStN9B4imPPeZvv+SAE3vRrAhzQmL09nZjo6MRu1cd7cw7fwG8wcObEioT7KooSSl1xfedGE1\nUDlFRjVxd9zQQFP2119sVwv7rBYoxfFn2UAT3nvtsU89wRFjYQ/lNPBG5DubYrvPIh+0Kupl\ntlCyer7i6rnMRfpk6vF4KZTuTNOrenwUxFK6MWDXXLtAYMat35nyOPUd/kDRHISAGy5Bi05d\nZThdw0MXrS7mrenWA07Uf/oZwlBZH/MYaLKmAbzzwAjsPNACB15YEDx4Y9GdhiYq9tg4Gijl\nnJdmxBIfZqeYNcOH4P0CVey77xrGE5MyKnN9gw6KaplMHI6xDFFRwk7mayCFl8p7AtghqqFg\n0jA2nlNzUgNdiWK50g5s5iv0ylzW9Nb2IhwNbDqB7FCsVXOQyLe8YDS4G6z/ROTw61n7CxSJ\nv79/HdTY9jC2672Ug65kKAU1ZqiEHXOQPRm+r5agRkHqtw3VjlFcZJtpInXrELB1+dOVMifF\n7GXA/WmDh7PEjaPxzSMiKDMWYkVtd/lcZmy1FLeNtdV7sXxx26TJZoPebdDgdtxucTy7LHym\nRRFxsA5foEnwjrlIDSEn+B+E/Gd0nbkz0JFofk7jUivNEM3Tjx/r0yXwjjJ9lCbvQ7s3HW2P\ngjsYsL/BctHFY76dHu633NgTvPDm3yFgZ8ok8k43bobF9jnyPPrvBTZfcWgIajtODd5IZIIa\nS19NbFx2O2eYYImMPxz9nwYmPoBux+mn39ZC3cGuvwGl0JW/QSMAAA==';\n\t\t\t$resources['/res/js/jquery.filedrop.js'] = 'H4sIAAAAAAAAA80a/VPbRvZn81e8uplYLkY2adPLwTl3JJAJd5CmgbR3kzLMIq1tBVlSVyvA\nl/K/33v7pZUlEpK2M8dMG3v37dv3/bUef7MB38A+n7EqlSD5jYQteP9jxcUKirSaJxnMcgEL\nuUwfQyzYHFfmMEtSXsJM5EuIeXkp8wJkDhcivy65QISEc6+Si1zswM88uUngPzwz6wdLlqQ7\n8O5FIkqZsSU/e3fEzKd/zGkzjPKlAX6eFyuRzBcSgmgIjybbE3jDy7zI07SSSW5xHiURz0oe\nQ5XFXIBccDg+PIVUL+8QCCAPstgZj6+vr8O8wPW8EhEPczEfG7hyvEzklvkSFovCYH8t8vc8\nkrDIlx245olcVBdE8/iaWF3xbPz+VxLgFokpFrnF8xMXJdK8AzAJt8OJWX3BmawELw1m/NtL\nUxQklDyLSdj5DFAtgkHBBApJIha4xkuVFkJ36udcXJoNFC2f5Tfwbfj9ptt/UdE1W0hnkSYs\nkxr05enx0WMoCx5BcJ2kKVwjGr31M7+4TKTVagksi+Hw4K9Dwvi2ZHMti94J5/DmYG//+ACY\nhMKTVYEwmsnxxm4wq7KIVBY8GMKHjY2eNrKQX/FMhnisKMOiKhdBP2aSnQqWlTMu+sNdBL1i\nAu1Mmeh5XsgSpoih15uxNL1g0eV5Eu/AYDDCpUqk9iOKAKW62IHtyWRCC0p8ZGYIUSFHJD4F\nuWQ3yqB34NHjEdR/4zEczrNcoF0lM0CVVlwbfkLKkfAUJt7p5L+IeHvknz5+pnQEtIfGiNaF\n8DWeHZiMGrcdsxvjWheoP8H1nWQDATlhysScw1WeVksOVZHmLC6HFuM1SyQyMJk0KPiRtoD2\nQCZ4CvmYVWmKh8ZjRmbGY7pQrgoi590gWaLOxu+L+WBkPhdZ/XmezAZnI4XYnQKDBi5W6K2Z\nRG1uneJGCOjphVwBE4KtYMlRoZDlgDqRIlGWUCIZ6vSrPPvnyQ+v0LOLnPwVULMlJ9WQLezA\nh1v6vOAMnbu0X8mxdoDTHformx/g9WJt7Yer1tIRZ1fcX8uj1sk8Wj+YR+vntJIOWLTwFtkM\nMaEHe0uCa6tzC1wIiozOI/D7SEl0BMlQmTagWLmQtIMe0OspjrXKTyQTksceOr3+IsmSctHY\nQK+ao7zLtwXKsbGDDs/j5rK9RRFHLvau/0y7/qtcnlRFkdO1/RH0T/P8mGWrF2Sp9J0+4NoR\nmaf7jiaA5/a0cfTPjAjPU5LhOdkislxi4jhPc8we01rlygHOo7zCEDWFiVuiD0l5rpkln/DO\nlDydUaB4EM6y0EZdArASxqhBBqeFS+HEhJEHIYZWjLMB2lQjxIzAHiG86gIEl4uk3FUaRT5K\nfkCxqwyUhi6SLDbfCUofexAMvh7Aprot9MLVMCTwYBAtWDbnjuLByLMJTWsPPTbw2R6iB2Eg\nzzTzdHNPYafzeEgt6BgyBR5K0olUF5T1lpOu+hamPJvLhdpeE7AUlb5CL2pOe5gbhQrbpmww\ny13KURvrBN9q4VhWwRMdynWJHwzv5psRFnHoi4r+ofDX6zkADFLkyE0oExdaoPlVG5KcvgWo\nbHYdUgUDzfiDAC27UnTfRWoe7d+PWhOKPk2sDlD3oNXELR1GGnJfs2It87tNtsq6jbYtBAu5\nDkNedNdmkzRjzX+EC/jlhOcIhNQATaeQYVKE336DeoUqyVmS8dgQoa9QwTHQIfLd5Ezf1TJw\nZOb/xdUaUuVZlMf8vJKzJwFmYcOZOVNlvIxYwQMN9fbN4XMsFfMML1fAHVrC0PKsSlLMykqU\nlOV0HiOZj2CZ0PcLFEDMxMrcpmo5Vi7oPyR9sLWlarBeLxIqxA5+Eb9kZulCI6fVgQoZSmta\n13iD1QyhVMWdjujqowcVlljwymD8cGzUhUEfc3agj3gh1+IzCBNhIr5FMB2P4JHBgfUTQRHL\nCBVzI7KAjtWGYaCuWNoG2nZAXYhq2a9h7MC3Brt9FgpepCziwfiXzfEcC7YBDIYWgRXq5tTp\nob1jldbeITW1Vwe29NtPsIYrE6n6HCyPllukg13F37RPgUVxugmD/uC+yLtXfWNGgXSwV5+7\nHRq33PiIAO5ivwvjl7GubNK1IZ4QfHS7YH1JH/L5tDvD7rOavLvoo5IMWx88So55H9Y68Vn/\nvhfw5wr4LnhHnQlWZmtXlcrNoGSL3kb64CbykqtUkl2kvBE8uMCeX2I+Rrc6ZnIRCqIvoGMY\nZLG5+Ya6yCGMqaTKpbM2Qq0iRFQJrPLla3M3fDX1kOp+l/46YX1QY8TaUJrVu74IUye/Gemw\npDuGLpy6wDLc8ZQVNBvBLMevYR9xBcMQQ/cpWkHgh5U4mc1okdKmObPVQK9aD3OAWHcHnk61\nbZue2wVShxZvZSobG3kavCUh3LfGZOBVb0LxzZ4bO8p2qfX81zMSGHbgUZ7F5py63W9q7pKW\ngrFM95pEeAQ2AHzua9kYkNsN9/9bmyCRSN3LxjQWY5lp1n0rtVnemEarE6rT3VeqcvjSKgRJ\nwaZfZ8P1hl/NW+DhQ+je1R4z/GCw9DCkBaQfgjgkwa5XNW5ja2vXHFM8GBbeuf2zkG6geusB\nqmiPBgRBJ8iom7Qh/A0m9gaadHTJ5VstFw3Rg7Z81E4tJfdBZwnLabmPqdU2oqaoe8NpxqWM\ndFIryq/3nmrC7WzICdkbIlGROblbrdsfUeuGqixoaosFqh4SlWRpS5ZRDNO2RYEwwlhgmaHB\nnh4HYWt/tmuXDRQWkh2bMfLuL5uL9+IYsCoVK3QPLEDxZpq4ugtU8ZsLUNaSKCHhP38DT0C4\nsLlpmXcH9QAwGTbZfMlT8nfnOngdJkEM4VijVSWn+WjNBO3SuMucJTKSzO5rURGImoJyyZ0U\nFCZvYEATiryyjSh2Lipc4kpgcI3AgvhqalL+2lzrIsAIOxeMJmVyxdfk79/t8kXD20xIJ0tz\n0WK9E1IQePHzBY8uic+Sq5kfE5zEoNlfYjnhUK1b5VOYkLGuWYXxcBfn6wMu1BtClCA9rKQL\nI6FbjJwo5A+2MoZTdsmRP1FK0IaUz2Z6/vyrNSPtcDbaOEPBoGfCb207VKRjyTsZwbZLf8ZW\nURCehXjI19lU9udutHRrZFKsLO0kuHr41wpdQ0r/SiN1IrQBwrAynfreYNXoZ0Ghpp0madNE\n7Y1aCIYjA0SD53NCcq7Gy1OsUL578vgv32Ot0og9uGnF0dNIdVo00dvYVpPKRiBW6J9C47qa\nsY7Q9ehMd4E+lhGsi7Vn8uQyv+L6KclTTFs1KG0tbOslWPNXmCAu+cojRnGgdpyM9Z0tizbm\ngse1wZjzt/XHRqjf3HTrxtJdw96zRYCTb56pKiKjBEGvOLvNbfpnr3yWZFgAn0iBJLVNyKqs\n6TR30GRqEIiYjBaghsaem90h4i8S8O8TrxPuR6qYdr6zDkjPMRgfOJSSHqoW7ErnHHLvOB+5\nkFaHBBu16jxrubZ173hckMxUvwaHZYmMff3dNtghPoZiTIEDCaLK4HrBM3rt0IGSQqowiugI\nb86TdPnQcHesfht6rMVb39vQrKHSE8btritSSm1nzcFxO30gSBBQ9ZTPsK0pRXRgR62kyb4b\nd/WH8Hc3OIYdaMDqyOHUcZIvOWXBUuV/HVUSeuWRwKREY+KxKQ7sCTXLgvyCGA8xrCHp9MS4\nUk9kIbxkmLZIFWUleOg06ubYJnB1TOd66zA0nFKMP1udIO6g2bjd1hK6Wdgo++/jo5dSFm84\nekkpXaQ15dSUIEOTx+vcZIvgd00CzgyIpaa5azZV56EeQ+5ozgyc7Zb1vIz+llUqkwJP05zB\nblNrH1g0HVhsz+xYR9hXeu6kn6iUxYZqwLDrgJaaPLVF9lM3vsqYaiRkRqUKZ32nlXqC580K\nzYlRLRRsGpGh1sSwq27oxOjovjdOLQStTWcySZ0LzY6n4cZ6nF9n7jHO9My1Nhuga93jx6G8\nocCkse83qc0dFuvHk6OklDxDYfTt4KA/csOQkalHjPLJkuk3EEH/9Q8np33TZlUiHam0ZoRE\nUFj4Gn94qeuPQWTGSaT+wQgGzhTH3szLintKNunJ3sYBqsrMe65aMiNZRYZZ9wazlyO4cibV\nSZWCqGd9HvmZS7WBMR27r3n231QDMy/QowK/QPPllplw0J4bk1cQiDAP2af8RjZnIVl+/XFX\nxzoTv+4nM5qFE/SWZzEORtu2LStcEmNRxAuJx7Itek8HS4eXvOt+eu3R3SuivErX3QWm8m++\nNTcFZn7RgbZQckLdloVumog7r+JyZcvwi279MEAByaoc7MD6fbed99marVlZ/dl83jaV5ddz\nVCJQLecgGiVbd+fyhfXx7yyPnW/5rRUNCXzK3NCg3U6ttxmfVRy1qyMnVEJo9Td1vZc/VPOq\ndVMta2pcr36YJTJBn1SljCdzOr/RaxSOGx3vYH6p4TVInzMGqZuvxDRdyEqj2TKlcWJzmP2f\ne8EzRVH7pc7kd/124L/6mbFtvds+u9bpdpxfh2jj8Arq1ummWtffgc3rvYsOUcqZsLOYtV+U\nfPTN1DwR1/i6b6NX9T/qMv1Gb5+kHQHeYvt+9Vj/GQQ4rPagIYuMH6uJgs2ZTlId1+lfJbjL\nPsFL44KPPzTbnzH8cYL0lfbpy/88JX7y6qb+1q5T8wA3SWwVEJ2SxiT2aDIx6tNhq37Qpx9u\n0XEiw6ZtiiPNVoaekrD7oV/l+QWRP3a61wG/6KE6r/4NQR0sVpL/RAkmuLFcGZHdhNGCied5\nzPdkgA35Q5jczGbuoUL/KkvEVPqqFwGPhiUrwgiLFnvpqL5m6GbVVfKEmdrqbZLJJ/pZgTBq\nGP3WQ7/1IsjwoprNjP5JrH4RgsK8HQY6yyPA/wBgnJmDIy0AAA==';\n\t\t}\n\n\t\tforeach($resources as $file => $resource) {\n\t\t\t$newfile = $path . $file;\n\t\t\tif (is_array($resource)) {\n\t\t\t\tabl_droploader_install($event, $step, $resource, $newfile . '/');\n\t\t\t} else {\n\t\t\t\t$ok = is_dir(dirname($newfile));\n\t\t\t\tif (!$ok) {\n\t\t\t\t\t$ok = mkdir(dirname($newfile), 0755, true);\n\t\t\t\t}\n\t\t\t\tif ($ok) {\n\t\t\t\t\t$temp = base64_decode($resource);\n\t\t\t\t\tif (strncmp($temp, \"\\x1F\\x8B\", 2) === 0) {\n\t\t\t\t\t\t$temp = gzinflate(substr($temp, 10));\n\t\t\t\t\t}\n\t\t\t\t\tif (file_exists($newfile)) unlink($newfile);\n\t\t\t\t\t$handle = fopen($newfile, 'w');\n\t\t\t\t\tif ($handle !== false) {\n\t\t\t\t\t\tfwrite($handle, $temp);\n\t\t\t\t\t\tchmod($newfile, 0644);\n\t\t\t\t\t\tfclose($handle);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$state = E_ERROR;\n\t\t\t\t\t\terror_log('abl_droploader: ERROR: Creating file \\'' . $newfile . '\\' failed.');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$state = E_ERROR;\n\t\t\t\t\terror_log('abl_droploader: ERROR: Creating directory \\'' . dirname($newfile) . '\\' failed.');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $state;\n\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["public function register_assets() {\n $js_folder = SD_PLUGIN_PATH . '/src/assets/js/';\n $css_folder = SD_PLUGIN_PATH . '/src/assets/css/';\n $scripts = scandir($js_folder);\n //var_dump($scripts);\n $styles = scandir($css_folder);\n foreach ($styles as $style) {\n if( !is_dir($style) ) {\n wp_enqueue_style( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/css/' . $style);\n }\n }\n foreach ($scripts as $script) {\n if( !is_dir($script) ) {\n wp_enqueue_script( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/js/' . $script);\n }\n }\n }","function mk_resources() {\t\t\n\twp_enqueue_style('style', get_stylesheet_uri());\n\twp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery-3.1.1.min.js', array(), '20120206', true );\n\twp_enqueue_script( 'custom-script', get_template_directory_uri() . '/js/script.js', array( 'jquery'), '1.1', true );\n}","public function register_scripts()\n {\n wp_register_style(\n 'fau-oembed-style',\n plugins_url('assets/css/fau-oembed.css', plugin()->getBasename()),\n [],\n plugin()->getVersion()\n ); \n }","public function add_scripts_and_styles()\n {\n // Estilos css \n wp_register_style( 'wiAjustesStyles', WI_PLUGIN_URL . '/style.css', null, WI_VERSION );\n wp_enqueue_style( 'wiAjustesStyles' );\n\n // Scripts de javascript\n wp_enqueue_script('wiAjustesStylesJs', WI_PLUGIN_URL . '/script.js' , array('jquery'));\n }","function plugin_assets() {\n\t\twp_register_script( 'lightbox', plugins_url( 'js/lightbox.js' , __FILE__ ), array( 'jquery' ) );\n\t\twp_enqueue_script( 'lightbox' );\n\n\t\twp_register_style( 'lightbox', plugins_url( 'css/style.css' , __FILE__ ), '', '', 'screen' );\n\t\twp_enqueue_style( 'lightbox' );\n\t}","public function dt_testimonial_simple_loadCssAndJs() {\n wp_register_style( 'dt_extend_style', plugins_url('assets/droit-wbpakery-addons.css', __FILE__) );\n }","private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}","private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}","public function load_assets() {\n\t\twponion_load_core_assets( $this->option( 'assets' ) );\n\t}","public function initAssets()\n {\n add_action(\n \"admin_enqueue_scripts\",\n array($this, 'PluginScripts')\n );\n\n add_action(\n \"admin_enqueue_scripts\",\n array($this, 'PluginStyles')\n );\n }","function dw_schemas_add_assets() {\n\twp_enqueue_script('schemas-admin-js', '/wp-content/plugins/dw_schemas/assets/scripts.js');\n\twp_enqueue_style('schemas-admin-css', '/wp-content/plugins/dw_schemas/assets/styles.css');\n}","function my_plugin_assets() {\n\n wp_register_style( 'slider_styleCss', plugins_url( '/css/splide.min.css' , __FILE__ ), array(), '1.0', 'all' );\n wp_enqueue_style( 'slider_styleCss' );\n // custome style\n wp_register_style( 'styleCss', plugins_url( '/css/style.css' , __FILE__ ), array(), '1.0', 'all' );\n wp_enqueue_style( 'styleCss' ); \n\n wp_register_script( 'slider_script', plugins_url( '/js/splide.min.js' , __FILE__ ), array(), '1.0', false );\n wp_enqueue_script( 'slider_script' );\n // customescript\n wp_register_script( 'script', plugins_url( '/js/script.js' , __FILE__ ), array(), '1.0', false );\n wp_enqueue_script( 'script' );\n}","public function myScripts()\n {\n //wp_register_script('angularjs',plugins_url('bower_components/angular/angular.min.js', __FILE__));\n wp_enqueue_style('grimagecss', plugins_url('style.css', __FILE__));\n //wp_enqueue_script('grimagescripts',plugins_url('/app.js',__FILE__));\n }","protected function addAssets(): void\n {\n $this->enqueue('assets/dashifen-2022.js');\n $font1 = $this->enqueue('//fonts.googleapis.com/css2?family=El+Messiri&display=swap');\n $font2 = $this->enqueue('//fonts.googleapis.com/css2?family=Roboto&display=swap');\n $css = $this->enqueue('assets/dashifen-2022.css', [$font1, $font2]);\n \n $dir = trailingslashit($this->getStylesheetDir());\n if (file_exists($dir . 'assets/dashifen-2022-components.css')) {\n $this->enqueue('assets/dashifen-2022-components.css', [$css]);\n }\n }","public function register_assets_admin() {\n $js_folder = SD_PLUGIN_PATH . '/src/assets/admin/js/';\n $css_folder = SD_PLUGIN_PATH . '/src/assets/admin/css/';\n $scripts = scandir($js_folder);\n //var_dump($scripts);\n $styles = scandir($css_folder);\n foreach ($styles as $style) {\n if( !is_dir($style) ) {\n wp_enqueue_style( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/admin/css/' . $style);\n }\n }\n foreach ($scripts as $script) {\n if( !is_dir($script) ) {\n wp_enqueue_script( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/admin/js/' . $script);\n }\n }\n }","function petrica_custom_wp_admin_style_and_js_scripts() {\n wp_register_style( 'custom_wp_admin_css', plugin_dir_url(dirname( __FILE__ )) . 'css/style.css', false, '1.0.0' );\n wp_enqueue_style( 'custom_wp_admin_css' );\n wp_enqueue_script( 'script-name', plugin_dir_url(dirname( __FILE__ )) . '/js/petrica-plugin.js', array(), '1.0.0', true );\n }","public function dt_icon_list_loadCssAndJs() {\n wp_register_style( 'dt_extend_style', plugins_url('assets/droit-wbpakery-addons.css', __FILE__) );\n // If you need any javascript files on front end, here is how you can load them.\n //wp_enqueue_script( 'droit-wbpakery-addons_js', plugins_url('assets/droit-wbpakery-addons.js', __FILE__), array('jquery') );\n }","function plugin_stater_reg_scripts() {\r\n\t// we are telling WP that we depend on jQuery\r\n\twp_register_script( CH_PLUGIN_NAME , plugins_url( '/js/app.js', __FILE__ ), array( 'jquery' ) );\r\n\twp_enqueue_script ( CH_PLUGIN_NAME );\r\n\twp_enqueue_style ( CH_PLUGIN_NAME , plugins_url( '/css/app.css', __FILE__ ) );\r\n}","public function enqueueScripts() {\n wp_register_style('rrze-faq-style', plugins_url('assets/css/rrze-faq.css', plugin_basename($this->pluginFile)));\n wp_enqueue_style('rrze-faq-style');\n }","function wm_customizer_panel_enqueue_assets() {\n $ctime = filemtime( get_template_directory() . '/customizer/css/wm-customizer-panel.css' );\n wp_enqueue_style( 'wm-customizer-panel-css', get_template_directory_uri() . '/customizer/css/wm-customizer-panel.css', array( 'customize-controls' ), $ctime );\n $ctime = filemtime( get_template_directory() . '/customizer/js/wm-customizer-panel.js' );\n wp_enqueue_script( 'wm-customizer-panel-js', get_template_directory_uri() . '/customizer/js/wm-customizer-panel.js', array( 'jquery', 'customize-controls' ), $ctime, true );\n }","public function addRessources()\n {\n // $this->context->controller->addCss(($this->_path . '/views/css/tab.css'), 'all');\n // $this->context->controller->addJquery();\n // $this->context->controller->addJS(($this->_path . '/views/js/script.js'));\n // $this->context->controller->addJS(($this->_path . '/views/js/configuration.js'));\n }","function wiki_api_import_css() {\n\twp_enqueue_style('style-name', get_stylesheet_uri());\n\twp_enqueue_script('script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true);\n}","public function loadConfigAssets()\r\n {\r\n $this->app->document->addScript('elements:imagebox/assets/js/myimage.js');\r\n $this->app->document->addStylesheet('elements:imagebox/assets/css/editoption.css');\r\n $this->app->document->addScript('elements:imagebox/assets/js/myoption.js');\r\n $this->app->document->addStylesheet('elements:option/option.css');\r\n }","function csu_hcfw_resources_load_scripts() {\n\twp_enqueue_style( 'csu-hcfw-resources-styles', plugin_dir_url( __FILE__ ) . 'includes/css/styles.css' );\n}","function theme_files() {\n \n wp_register_style('style', get_template_directory_uri() . '/dist/app.css', [], 1, 'all');\n wp_enqueue_style('style');\n\n wp_enqueue_script('jquery');\n\n wp_register_script('app', get_template_directory_uri() . '/dist/app.js', ['jquery'], 1, true);\n wp_enqueue_script('app');\n}","private function registerPlugins()\n\t{\n\t\t$assetDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;\n\t\t$assetUrl = Yii::app()->assetManager->publish($assetDir);\n\n\n\t\t$cs = Yii::app()->getClientScript();\n\n\t\tforeach ($this->plugins as $p)\n\t\t{\n\n\t\t\tif ($p['flag'])\n\t\t\t{\n\t\t\t\tforeach ($p['js'] as $js)\n\t\t\t\t\t$cs->registerScriptFile($assetUrl . \"/\" . $js, CClientScript::POS_END);\n\t\t\t}\n\t\t}\n\t}","function plugin_post_new_scripts() {\r\n\t// Register & enqueue our admin.js file along with its dependancies\r\n\t\t\twp_register_script('framework', $this->plugin_url .'framework.js', array('jquery','media-upload','thickbox','editor'));\r\n\t\t\twp_enqueue_script('framework');\r\n\t\t\twp_enqueue_script('farbtastic'); \r\n\t\t\twp_enqueue_script('suggest'); // Allow Jquery Chosen\r\n\t\t\t\r\n\t\t}","public function register_assets() {\n\n $scripts = $this->get_scripts();\n $styles = $this->get_styles();\n\n foreach ( $scripts as $handle => $script ) {\n $deps = isset( $script['deps'] ) ? $script['deps'] : false;\n\n wp_register_script( $handle, $script['src'], $deps, $script['version'], true );\n }\n\n foreach ( $styles as $handle => $style ) {\n $deps = isset( $style['deps'] ) ? $style['deps'] : false;\n\n wp_register_style( $handle, $style['src'], $deps, $style['version'] );\n }\n\n wp_localize_script( 'cbxcf-scripts', 'cbxcfObj', [\n 'ajaxurl' => admin_url( 'admin-ajax.php' ),\n 'error' => __( 'Something went wrong', 'cbxcustomform' ),\n ] );\n\n }","function aitEnqueueScriptsAndStyles(){\r\n\tif(!is_admin()){\r\n\t\t// just shortcuts\r\n\t\t$s = THEME_CSS_URL;\r\n\t\t$j = THEME_JS_URL;\r\n\r\n\t\taitAddStyles(array(\r\n\t\t\t'ait-colorbox' => array('file' => \"$s/libs/colorbox.css\"),\r\n\t\t\t'ait-fancybox' => array('file' => \"$s/libs/fancybox.css\"),\r\n\t\t\t'jquery-ui' \t => array('file' => \"$s/libs/jquery-ui.css\"),\r\n\t\t\t'prettysociable' => array('file' => \"$s/libs/prettySociable.css\"),\r\n\t\t\t'hoverzoom' \t => array('file' => \"$s/libs/hoverZoom.css\"),\r\n\t\t));\r\n\r\n\t\taitAddScripts(array(\r\n\t\t\t'jquery-ui-tabs' \t\t\t=> true,\r\n\t\t\t'jquery-ui-accordion' \t\t\t=> true,\r\n\t\t\t'jquery-infieldlabel' \t\t\t=> array('file' => \"$j/libs/jquery-infieldlabel.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'jquery-iconmenu' \t\t\t\t=> array('file' => \"$j/libs/jquery-iconmenu.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'jquery-plugins'\t \t\t\t=> array('file' => \"$j/libs/jquery-plugins.js\", 'deps' => array('jquery')),\r\n\t\t\t'modernizr'\t\t\t\t\t\t=> array('file' => \"$j/libs/modernizr-2.6.1-custom.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\r\n\t\t\t'ait-gridgallery' \t\t\t=> array('file' => \"$j/gridgallery.js\", 'deps' => array('jquery', 'jquery-plugins'), 'inFooter' => true),\r\n\t\t\t'ait-testimonials' \t\t\t=> array('file' => \"$j/testimonials.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'ait-script' \t\t\t=> array('file' => \"$j/script.js\", 'deps' => array('jquery', 'jquery-infieldlabel', 'jquery-iconmenu', 'jquery-plugins', 'modernizr'), 'inFooter' => true),\r\n\t\t));\r\n\t}\r\n}","private function setup_assets() {\n\t\t$this->prefix = sanitize_title($this->theme_name) . '-';\n\t\t$public_lib = '/lib/pub/';\n\t\t$source_lib = '/lib/src/';\n\n\t\t//IF WP DEBUG Is ON, load source maps and assets\n\t\tif (constant(\"WP_DEBUG\") === true) {\n\t\t\t//Style Resources\n\t\t\t$this->styles[] = array(\n\t\t\t\t'slug' => $this->prefix . 'styles',\n\t\t\t\t'path' => $source_lib . 'css/master.css',\n\t\t\t\t'deps' => array()\n\t\t\t);\n\t\t\t\n\t\t\t$this->styles[] = array(\n\t\t\t\t'slug' => $this->prefix . 'scss',\n\t\t\t\t'path' => $source_lib . 'scss/master.scss',\n\t\t\t\t'deps' => array( $this->prefix . 'styles')\n\t\t\t);\n\n\t\t\t$this->styles[] = array(\n\t\t\t\t'slug' => $this->prefix . 'css-map',\n\t\t\t\t'path' => $source_lib . 'maps/master.css.map',\n\t\t\t\t'deps' => array( $this->prefix . 'styles', $this->prefix . 'scss')\n\t\t\t);\n\t\t\n\t\n\t\t\t$this->scripts[] = array(\n\t\t\t\t'slug' => $this->prefix . 'plugins',\n\t\t\t\t'path' => $source_lib . 'js/plugins.js',\n\t\t\t\t'deps' => array(\n\t\t\t\t\t'jquery'\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$this->scripts[] = array(\n\t\t\t\t'slug' => $this->prefix . 'the-script',\n\t\t\t\t'path' => $source_lib . 'js/script.js',\n\t\t\t\t'deps' => array(\n\t\t\t\t\t'jquery'\n\t\t\t\t)\n\t\t\t);\n\n\n\n\t\t\t// $this->scripts[] = array(\n\t\t\t// \t'slug' => $this->prefix . 'script-map',\n\t\t\t// \t'path' => $source_lib . 'maps/scripts.js.map',\n\t\t\t// \t'deps' => array(\n\t\t\t// \t\t'jquery',\n\t\t\t// \t\t$this->prefix . 'script'\n\t\t\t// \t)\n\t\t\t// );\n\t\n\t\t// Otherwise load only minified assets\n\t\t} else {\n\n\t\t\t$this->styles[] = array(\n\t\t\t\t'slug' => $this->prefix . 'styles-min',\n\t\t\t\t'path' => $public_lib . 'css/master.min.css',\n\t\t\t\t'deps' => array()\n\t\t\t);\n\n\t\t\t$this->scripts[] = array(\n\t\t\t\t\t'slug' => $this->prefix . 'scripts-min',\n\t\t\t\t\t'path' => $public_lib . 'js/master.min.js',\n\t\t\t\t\t'deps' => array(\n\t\t\t\t\t\t'jquery'\n\t\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t\t$this->add_wp_script('jquery');\n\t\t\n\t\tadd_action('wp_enqueue_scripts', array( $this, 'theme_assets_handler' ));\n\t}","function enqueue(){\n wp_enqueue_style('mypluginstyle',PLUGIN_URL.'assets/mystyle.css');\n // enqueue CSS define where the scripts\n wp_enqueue_script('mypluginscript',PLUGIN_URL.'assets/myscript.js');\n }","public function register_scripts()\r\n\t{\r\n\t\twp_register_style('poll', plugins_url('assets/poll.css', __DIR__));\r\n\t\twp_register_script('vue', 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js', array('jquery'), null, true);\r\n\t\twp_register_script('poll', plugins_url('assets/poll.js', __DIR__), array('vue'), null, true);\r\n\t}","function register_css() {\n $myStyleUrl = plugins_url(__WP_PLUGIN__.'.css', __FILE__); \n wp_register_style(__WP_PLUGIN__, $myStyleUrl);\n wp_enqueue_style(__WP_PLUGIN__);\n }","public function addAdminAssets() {\n\t\twp_enqueue_script( 'csframework-admin-upload' );\n\t}","public function load_assets() {\n\t\t\t//only load styles and js when needed\n\t\t\tif ( $this->is_edit_page() ) {\n\t\t\t\t//styles\n\t\t\t\twp_enqueue_style( 'thickbox' );\n\t\t\t\twp_enqueue_style( 'fancybox' );\n\t\t\t\twp_enqueue_style( 'wm-options-panel-white-label' );\n\t\t\t\tif ( ! wm_option( 'branding-panel-logo' ) && ! wm_option( 'branding-panel-no-logo' ) )\n\t\t\t\t\twp_enqueue_style( 'wm-options-panel-branded' );\n\t\t\t\twp_enqueue_style( 'color-picker' );\n\n\t\t\t\t//scripts\n\t\t\t\twp_enqueue_script( 'jquery-ui-core' );\n\t\t\t\twp_enqueue_script( 'jquery-ui-tabs' );\n\t\t\t\twp_enqueue_script( 'jquery-ui-datepicker' );\n\t\t\t\twp_enqueue_script( 'jquery-ui-slider' );\n\t\t\t\twp_enqueue_script( 'thickbox' );\n\t\t\t\twp_enqueue_script( 'fancybox' );\n\t\t\t\twp_enqueue_script( 'wm-options-panel' );\n\t\t\t\twp_enqueue_script( 'color-picker' );\n\t\t\t}\n\t\t}","public function enqueue_plugin_scripts(){\n\t\twp_enqueue_script( 'agenda-plugin-local-js', plugins_url('js/scripts.js', __FILE__ ), array('jquery'), false, true );\n\t\twp_enqueue_style( 'agenda-plugin-local-css', plugins_url('css/styles.css', __FILE__ ) );\n\t}","function addcss()\n{\nwp_register_style('ahmed_css', plugin_dir_url(__file__).'/styles-ahmed.css');\nwp_enqueue_style('ahmed_css');\n}","function montheme_register_assets()\n{\n\t//enregistre le style et le script\n\twp_register_style('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css');\n\twp_register_style('style-css', get_stylesheet_uri());\n\twp_register_script('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js', [], false, true); //[] =pas de dependance, false = pas de numero de version et true = script chargé dans le footer\n\t//permet d'utiliser le style et le script\n\twp_enqueue_style('bootstrap');\n\twp_enqueue_style('style-css');\n\twp_enqueue_script('bootstrap');\n}","public function register_assets() {\n\n\t\tforeach ( $this->assets as $asset ) {\n\t\t\t$js_path = $this->plugin->dir() . '/js/dist/' . $asset . '.asset.php';\n\t\t\t$css_path = $this->plugin->dir() . '/css/' . $asset . '.css';\n\t\t\tif ( file_exists( $js_path ) ) {\n\t\t\t\t$assets_dep = require_once $js_path;\n\t\t\t\twp_register_script(\n\t\t\t\t\t'formation-' . $asset . '-js',\n\t\t\t\t\t$this->plugin->asset_url( 'js/dist/' . $asset . '.js' ),\n\t\t\t\t\t$assets_dep['dependencies'],\n\t\t\t\t\t$assets_dep['version'],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\n\t\t\t\tif ( file_exists( $css_path ) ) {\n\t\t\t\t\twp_register_style(\n\t\t\t\t\t\t'formation-' . $asset . '-css',\n\t\t\t\t\t\t$this->plugin->asset_url( 'css/' . $asset . '.css' ),\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t$assets_dep['version']\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}","function stock_toolkit_files(){\n\twp_enqueue_style('owl-carousel', plugin_dir_url( __FILE__ ) . 'assets/css/owl.carousel.min.css');\n\twp_enqueue_style('stock-toolkit-css', plugin_dir_url( __FILE__ ) . 'assets/css/stock-toolkit.css');\n\twp_enqueue_script('owl-carousel', plugin_dir_url( __FILE__ ) . 'assets/js/owl.carousel.min.js', array('jquery'), '1.8', true) ;\n}","function mgr_add_scripts(){\n wp_enqueue_style('mgr-main-style',plugins_url().'/includes/my-github-repos/css/style.css');\n wp_enqueue_script('mgr-main-script',plugins_url().'/includes/my-github-repos/js/main.js');\n}","function chroma_load_custom_market_css()\n{\n \n wp_enqueue_style (\n 'chroma_market_css',\n plugin_dir_url(__DIR__) . '/css/market.css'\n );\n\n \n wp_enqueue_script (\n 'chroma_market_js',\n plugin_dir_url(__DIR__) . '/js/market.js'\n );\n\n\n\n\n}","function assets(){\n\t\t\twp_enqueue_style( 'sp-2020-styles', get_template_directory_uri() .'/assets/css/main.css', array(), SPUTZNIK_2020_THEME_VERSION );\n\t\t\twp_enqueue_script( 'sp-2020-js', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), SPUTZNIK_2020_THEME_VERSION, true );\n\n\t\t}","function add_qoorate_stylesheet(){\n\t\t// TODO: make call to get styles from QOORATE\n\t\t// MAYBE TODO: cacheing ... place in DB options?\n\t\t\n\t\t//$styleUrl = plugins_url('/css/guthrie.css', __FILE__);\n\t\t//$styleFile = WP_PLUGIN_DIR . '/guthrie/css/guthrie.css';\n\t\t//if ( file_exists($styleFile) ) {\n\t\t//\t\t//echo($styleUrl.\"
    \");\n\t\t//\t\twp_register_style('guthrie', $styleUrl);\n\t\t//\t\twp_enqueue_style('guthrie');\n\t\t//}\n\t\t// unregister our really old jquery bundled with WP\n\t\t// Maybe we can keep it? should it be an option?\n\t\twp_deregister_script( 'jquery' );\n\t\twp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' );\n\t\twp_enqueue_script( 'jquery' );\n\t}","public function registerScripts()\n {\n // font awesome. choose css fonts instead of svg, see more at https://fontawesome.com/how-to-use/on-the-web/other-topics/performance\n // to name font awesome handle as `plugin-name-prefix-font-awesome5` is to prevent conflict with other plugins that maybe use older version but same handle that cause some newer icons in this plugin disappears.\n wp_enqueue_style('rundizable-wp-features-font-awesome5', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/fontawesome/css/all.min.css', [], '5.5.0');\n wp_enqueue_style('rundizable-wp-features-rd-settings-tabs-css', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/css/rd-settings-tabs.css', [], RUNDIZABLEWPFEATURES_VERSION);\n wp_enqueue_script('rundizable-wp-features-rd-settings-tabs-js', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/js/rd-settings-tabs.js', ['jquery'], RUNDIZABLEWPFEATURES_VERSION, true);\n }","public function onLoad() {\n\t\t$this->plugin->wrapper = $this->plugin->factory->wrapper;\n\t\twp_enqueue_style( 'clrchs-admin', $this->plugin->wrapper->getURL('assets/admin.css'), [], $this->plugin->version);\n\t}","function mightyResources() {\n $css_file = get_stylesheet_directory() . '/dist/assets/css/style.min.css';\n wp_enqueue_style('theme', get_stylesheet_directory_uri() . '/dist/assets/css/style.min.css', '', date('m.d.Y.H.i.s', filemtime($css_file)));\n\t\twp_dequeue_style('wp-block-library');\n\n wp_deregister_script('jquery');\n wp_register_script('jquery', ('//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'), '', '2.2.4', false);\n wp_enqueue_script('jquery');\n\n // wp_enqueue_script('fontawesome-kit', '//kit.fontawesome.com/72e34829c8.js', '', '1.0', false);\n\t\twp_enqueue_script('google-maps', '//maps.googleapis.com/maps/api/js?key=AIzaSyClqC80DXd3luWXcJZ-a0odx1q6ddTDVr0', '', '1.0', false);\n\n\t\twp_enqueue_script('aos', '//unpkg.com/aos@2.3.1/dist/aos.js', '', '2.3.1', true);\n wp_enqueue_script('theme', get_stylesheet_directory_uri() . '/dist/assets/js/scripts.min.js', ['jquery'], '1.0.6', true);\n\n\t\twp_localize_script('theme', 'globalVar', array(\n\t\t 'themePath' => get_template_directory_uri(),\n\t\t));\n }","function cap_vc_extend_js_css() {\n //wp_enqueue_style( 'cap_vc_extend_style' );\n // If you need any javascript files on front end, here is how you can load them.\n //wp_enqueue_script( 'cap_vc_extend_js', plugins_url('cap_vc_extend.js', __FILE__), array('jquery') );\n}","public function setup_scripts_and_styles() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_css' ), 50 );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_js' ), 10 );\n\t}","function ARTEMIS_SWP_plugin_load_admin_scripts_and_styles() {\r\n\t/*generic admin css*/\r\n\twp_register_style( 'js_backend_css', plugins_url('/css/backend_style.css', __FILE__));\r\n\twp_enqueue_style( 'js_backend_css');\r\n\t\r\n\t/*alpha color picker*/\r\n\twp_register_script( 'alpha_color_picker', plugins_url('/js/alpha-color-picker.js', __FILE__), array('jquery', 'wp-color-picker'), '', true);\r\n\twp_enqueue_script( 'alpha_color_picker');\r\n\twp_enqueue_style( 'alpha_color_picker', plugins_url('/css/alpha-color-picker.css', __FILE__ ), array('wp-color-picker'));\r\n\r\n\t/*vc helper*/\r\n\twp_register_script( 'artemis_vc_helper', plugins_url('/js/artemis_vc_helper.js', __FILE__), array('jquery', 'wp-color-picker'), '', true);\r\n\twp_enqueue_script( 'artemis_vc_helper');\r\n}","public function tiny_assets() {\n wp_enqueue_style( 'tiny-slider-css', '//cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.3/tiny-slider.css', null, 1.0 );\n wp_enqueue_script( 'tiny-slider-js', '//cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js', null, '1.0',true );\n wp_enqueue_script( 'tiny-slider-main-js', plugin_dir_url( __FILE__ ).'/assets/js/main.js', array( 'jquery' ), '1.0',true );\n }","function ROMP_enquiry_form_admin_assets(){\n\t\twp_enqueue_style('CSS-bootstrap-min', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css');\n\t\twp_enqueue_script('JS-bootstrap-min', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js');\n\t\twp_enqueue_style( 'ROMP-enquiry-form-css', plugins_url( 'romp-enquiry-plugin/assets/css/style.css'), 20, 1 );\n\t}","function enqueue()\n {\n wp_enqueue_style('mypluginstyles', plugins_url('/assets/mystyle.css', __FILE__));\n wp_enqueue_script('mypluginscript', plugins_url('/assets/myscript.js', __FILE__));\n }","function register_admin_scripts_and_styles() {\n\t\t\n\t}","function my_assets() {\n wp_enqueue_style( 'style', get_stylesheet_uri(), array(), '1.0.0' );\n wp_enqueue_script( 'jquery' );\n wp_enqueue_script( 'app', get_template_directory_uri() . '/js/app.js', array(), '1.0.0' );\n}","private function _addResource()\n {\n //Add Resource\n $this->assets->collection('css_header')\n ->addCss('/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css');\n\n $this->assets->collection('js_footer')\n ->addJs('/plugins/nestable/jquery.nestable.js')\n ->addJs('/plugins/nestable/ui-nestable.js')\n ->addJs('/plugins/bootstrap-modal/js/bootstrap-modal.js')\n ->addJs('/plugins/bootstrap-modal/js/bootstrap-modalmanager.js')\n ->addJs('/templates/backend/default/js/ui-modals.js');\n }","function load_core_assets()\n {\n // load core js and css\n $this\n ->add_plugin_theme($this->core_theme, 'core')\n ->add_external_css(array(\n base_url(\"/themes/core/css/core.css\"),\n ))\n ->add_external_js(array(\n \"/themes/core/js/core_i18n.js\",\n ), NULL, TRUE);\n }","function plugin_admin_scripts() {\r\n\t\t\t// Register & enqueue our admin.js file along with its dependancies\r\n\t\t\twp_register_script('framework', $this->framework_url .'framework.js', array('jquery','media-upload','thickbox','editor'));\r\n\t\t\twp_enqueue_script('framework');\r\n\t\t\t\t\twp_enqueue_script('farbtastic'); \r\n\t\t\twp_enqueue_script('suggest'); // Allow Jquery Chosen\r\n\t\t}","public function enqueue_styles_and_scripts() {\n wp_enqueue_style($this->plugin_slug . '-plugin-styles', plugins_url('h5p/h5p-php-library/styles/h5p.css'), array(), self::VERSION);\n }","function reviews_plugin_scripts() { \r\n\twp_enqueue_style( 'main-styles', plugin_dir_url( __FILE__ ) . 'assets/main.css');\r\n\twp_enqueue_style( 'font-awesome', plugin_dir_url( __FILE__ ) . 'assets/font-awesome.css');\r\n\r\n wp_enqueue_script( 'main-reviews', plugin_dir_url( __FILE__ ) . 'assets/reviews.js', array('jquery') );\r\n}","function pm_register_resources() {\n\t// Styles\n\n wp_enqueue_style( 'normalize', get_stylesheet_directory_uri().'/assets/css/normalize.css' );\n wp_enqueue_style( 'ts-styles', get_stylesheet_directory_uri().'/assets/css/style.css', null, pm_version_hash('/assets/css/style.css') );\n wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Crimson+Text:400,700|Raleway:500,600');\n \n // Scripts\n\n wp_deregister_script( 'jquery' );\n wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true );\n// wp_register_script( 'jquery', 'http://masonry.desandro.com/v2/js/jquery-1.7.1.min.js', false, NULL, true );\n wp_enqueue_script( 'jquery' );\n //wp_enqueue_script( 'jquery-masonry' );\n wp_enqueue_script( 'ts-infinitescroll', get_stylesheet_directory_uri().'/assets/js/infinite-scroll.min.js', null, null, true);\n wp_enqueue_script( 'ts-imagesloaded', get_stylesheet_directory_uri().'/assets/js/imagesloaded.min.js', null, null, true);\n wp_enqueue_script( 'ts-cookies', get_stylesheet_directory_uri().'/assets/js/js.cookies.js', null, null, true);\n wp_enqueue_script( 'ts-tweenmax', '//cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js', null, null, true);\n// wp_enqueue_script( 'ts-masonry', get_stylesheet_directory_uri().'/assets/js/masonry.min.js', null, null, true);\n wp_enqueue_script( 'ts-scripts', get_stylesheet_directory_uri().'/assets/js/ts.js',null, pm_version_hash('/assets/js/ts.js'), true);\n \n // Fonts\n}","public function registerScripts()\r\n\t{\r\n\t\twp_register_style('social-shares', plugins_url('assets/social-shares.css', __FILE__));\r\n\t\twp_register_script('social-shares', plugins_url('assets/social-shares.js', __FILE__), array('jquery'), false, true);\r\n\t}","function massively_theme_assets() {\n\n\t\t$var = '1.0.0';\n\n\t\t/* CSS */\n\t\twp_enqueue_style( 'main-css', get_theme_file_uri('/assets/css/main.css'), '', $var );\n\t\twp_enqueue_style( 'noscript-css', get_theme_file_uri('/assets/css/noscript.css'), '', $var );\n\t\twp_enqueue_style( 'theme-css', get_stylesheet_uri(), '', $var );\n\n\t\t/* JavaScripts */\n\t\twp_enqueue_script( 'jquery' );\n\t\twp_enqueue_script( 'scrollex-js', get_theme_file_uri('/assets/js/jquery.scrollex.min.js'), '', $var );\n\t\twp_enqueue_script( 'scrolly-js', get_theme_file_uri('/assets/js/jquery.scrolly.min.js'), '', $var );\n\t\twp_enqueue_script( 'browser-js', get_theme_file_uri('/assets/js/browser.min.js'), '', $var );\n\t\twp_enqueue_script( 'breakpoints-js', get_theme_file_uri('/assets/js/breakpoints.min.js'), '', $var );\n\t\twp_enqueue_script( 'util-js', get_theme_file_uri('/assets/js/util.js'), '', $var );\n\t\twp_enqueue_script( 'main-js', get_theme_file_uri('/assets/js/main.js'), array('jquery'), $var, true );\n\t}","public function addDependencies()\n {\n $this->Html->script('/attachments/js/vendor/jquery.ui.widget.js', ['block' => true]);\n $this->Html->script('/attachments/js/vendor/jquery.iframe-transport.js', ['block' => true]);\n $this->Html->script('/attachments/js/vendor/jquery.fileupload.js', ['block' => true]);\n $this->Html->script('/attachments/js/app/lib/AttachmentsWidget.js', ['block' => true]);\n $this->Html->css('/attachments/css/attachments.css', ['block' => true]);\n }","protected function registerAssets(){\n\n\t\t$cs = Yii::app()->clientScript;\n\t\t$cs->registerCoreScript('jquery');\n\n\t\t$assets_path = dirname(__FILE__) . DIRECTORY_SEPARATOR.'assets';\n\t\t$url = Yii::app()->assetManager->publish($assets_path, false, -1, YII_DEBUG);\n\t\t$webroot = Yii::getPathOfAlias('webroot').DIRECTORY_SEPARATOR;\n\t\t$plugins = array();\n\t\t\n\t\t// register redactor files\n\t\t$cs->registerScriptFile($url.'/chosen.jquery.min.js');\n\t\t$cs->registerCssFile($url.'/chosen.min.css');\n\t\t\n\t\t$cs->registerScript('chosen_'.$this->id, '\n\t\t\t$(\"#'.$this->id.'\").chosen({no_results_text: \"'.Yii::t('chosen', 'Ничего не найдено').'\"});\n\t\t');\n\t\t\n\t}","function ahla_register_assets()\n{\n\t$assets = AHLAURL . '/assets';\n\t$ver \t = AHLAVER;\n\n\t// theme style.css\n\twp_register_style( 'theme-style' , get_stylesheet_uri() );\n\n\t// others\n\t$file = $assets.'/js/skip-link-focus-fix.js';\n\twp_register_script( 'skip-link-focus-fix', $file, array(), $ver, true );\n\n\tdo_action('ahla_register_assets');\n}","function wmdm_assets() {\n if (isset($_GET['page']) && $_GET['page'] == 'wmdm-options') {\n\n wp_enqueue_style( 'thickbox' ); // Stylesheet used by Thickbox\n wp_enqueue_script( 'thickbox' );\n wp_enqueue_script( 'media-upload' );\n\n wp_register_script('wmdm_admin', plugins_url( '/js/dot_cfi_admin.js' , __FILE__ ), array( 'thickbox', 'media-upload' ));\n wp_enqueue_script('wmdm_admin');\n\n wp_enqueue_style( 'plugin-admin', plugin_dir_url(__FILE__).'styles/admin-styles.css' );\n }\n\n }","function Define_Resources() : void\n {\n for($i = 0;$i < count($this->Scripts);$i++)\n {\n if($this->Scripts[$i] instanceof stdClass)\n {\n wp_enqueue_script($this->Scripts[$i]->Handle,$this->Scripts[$i]->Src,$this->Scripts[$i]->Deps,$this->Scripts[$i]->Ver,$this->Scripts[$i]->InFooter);\n }\n }\n for($i = 0;$i < count($this->Styles);$i++)\n {\n if($this->Styles[$i] instanceof stdClass)\n {\n wp_enqueue_style($this->Styles[$i]->Handle,$this->Styles[$i]->Src,$this->Styles[$i]->Deps,$this->Styles[$i]->Ver,$this->Styles[$i]->Media);\n }\n }\n }","private function register_files() {\n\t\tif( $this->type === self::STYLE ) {\n\t\t\twp_register_style( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['media'] );\n\t\t} else if ( $this->type === self::SCRIPT ) {\n\t\t\twp_register_script( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['in_footer'] );\n\t\t}\n\t}","function register_crunchpress_panel_styles(){\r\n\t\r\n\t\twp_enqueue_style('jquery-ui',CP_PATH_URL.'/framework/stylesheet/jquery-ui.css');\r\n\t\twp_enqueue_style('cp-panel',CP_PATH_URL.'/framework/stylesheet/cp-panel.css');\r\n\t\twp_enqueue_style('mini-color',CP_PATH_URL.'/framework/stylesheet/jquery.miniColors.css');\r\n\t\twp_enqueue_style('confirm-dialog',CP_PATH_URL.'/framework/stylesheet/jquery.confirm.css');\r\n\t\twp_enqueue_style('jquery-timepicker',CP_PATH_URL.'/framework/stylesheet/jquery.ui.timepicker.css');\r\n\t\t\r\n\t}","public function register_plugin_styles() {\n\t\twp_register_style ( 'tr-plugin-styles', plugins_url ( 'tr_top_ratter/css/tr_top_ratter.css?v=' . microtime () ) );\n\t\twp_enqueue_style ( 'tr-plugin-styles' );\n\t\t\n\t\twp_register_style ( 'tr_jquery_custom_style', plugins_url ( 'tr_top_ratter/css/jquery-ui.min.css' ) );\n\t\twp_enqueue_style ( 'tr_jquery_custom_style' );\n\t}","public function enqueue_assets() {\n\t\t\twp_enqueue_style( 'jquery-swiper' );\n\t\t\twp_enqueue_script( 'jquery-swiper' );\n\t\t}","function stock_toolkit_files(){\n wp_enqueue_style( 'owl-carousel', plugin_dir_url( __FILE__ ). 'assets/css/owl.carousel.css');\n wp_enqueue_script( 'owl-carousel', plugin_dir_url( __FILE__ ). 'assets/js/owl.carousel.min.js', array('jquery'), '20120206', true);\n}","function wwt_include_javascript_and_css() {\r\n wp_enqueue_script('jquery');\r\n wp_enqueue_script('jquery-ui', plugin_dir_url('js/libs/jquery-ui-1.11.2.min.js', __FILE__), array('jquery'), '1.11.2');\r\n wp_enqueue_script('barcode-component', plugin_dir_url(__FILE__) . 'js/SimpleBarcodeApi.js', array('jquery', 'jquery-ui'));\r\n\r\n wp_enqueue_style('jquery-ui', plugins_url('js/libs/jquery-ui-1.11.2.min.css', __FILE__));\r\n}","public function admin_enqueue_scripts()\n\t{\n\t\twp_register_style( 'go-git', plugins_url( 'components/css/go-git.css', __DIR__ ), array(), 1 );\n\t\twp_enqueue_style( 'go-git' );\n\t}","function howes_register_required_plugins(){\n\t\n\t/**\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Revolution Slider', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'revslider', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/revslider.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '5.4.7.4', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'WPBakery Visual Composer', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'js_composer', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/js_composer.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '5.4.7', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'CF Post Formats', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'cf-post-formats', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/cf-post-formats.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Envato Market', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'envato-market', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/envato-market.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Breadcrumb NavXT',\n\t\t\t'slug' => 'breadcrumb-navxt',\n\t\t\t'required' => true,\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Contact Form 7',\n\t\t\t'slug' => 'contact-form-7',\n\t\t\t'required' => true,\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Max Mega Menu',\n\t\t\t'slug' => 'megamenu',\n\t\t\t'required' => false,\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Easy Pricing Tables Lite by Fatcat Apps',\n\t\t\t'slug' => 'easy-pricing-tables',\n\t\t\t'required' => false,\n\t\t),\n\t);\n\n\t// Change this to your theme text domain, used for internationalising strings\n\t//$theme_text_domain = 'howes';\n\n\t/**\n\t * Array of configuration settings. Amend each line as needed.\n\t * If you want the default strings to be available under your own theme domain,\n\t * leave the strings uncommented.\n\t * Some of the strings are added into a sprintf, so see the comments at the\n\t * end of each line for what each argument will be.\n\t */\n\t$config = array(\n\t\t'domain' \t\t=> 'howes', \t// Text domain - likely want to be the same as your theme.\n\t\t'default_path' \t\t=> '', \t// Default absolute path to pre-packaged plugins\n\t\t//'parent_menu_slug' \t=> 'themes.php', \t\t\t\t// Default parent menu slug\n\t\t//'parent_url_slug' \t=> 'themes.php', \t\t\t\t// Default parent URL slug\n\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t'is_automatic' \t=> true,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t'strings' \t\t=> array(\n\t\t\t'page_title' \t\t\t=> __( 'Install Required Plugins', 'howes' ),\n\t\t\t'menu_title' \t\t\t=> __( 'Install Plugins', 'howes' ),\n\t\t\t'installing' \t\t\t=> __( 'Installing Plugin: %s', 'howes' ), // %1$s = plugin name\n\t\t\t'oops' \t\t\t=> __( 'Something went wrong with the plugin API.', 'howes' ),\n\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\n\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\n\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\n\t\t\t'return' \t\t\t=> __( 'Return to Required Plugins Installer', 'howes' ),\n\t\t\t'plugin_activated' \t\t\t=> __( 'Plugin activated successfully.', 'howes' ),\n\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> __( 'All plugins installed and activated successfully. %s', 'howes' ), // %1$s = dashboard link\n\t\t)\n\t);\n\ttgmpa( $plugins, $config );\n}","public function wcufd_load_styles_scripts() {\n //main script file of the plugin\n wp_register_script( 'wcufd-front-end-js', plugins_url( 'js/wcufd-script.js',__FILE__ ), array('jquery'), '', true );\n wp_localize_script( 'wcufd-front-end-js', 'wcufd_vars', array(\n 'ajaxurl' => admin_url('admin-ajax.php'),\n 'current_user_can' => current_user_can('administrator')\n )\n );\n wp_register_style( 'wcufd-front-end-style', plugins_url( 'css/wcufd-style.css',__FILE__ ) );\n }","public function form_css(){\n\t\twp_register_style( 'lead_gen_plugin', plugin_dir_url( __FILE__ ) . 'css/style.css', false );\n\t\twp_enqueue_style( 'lead_gen_plugin' );\n\t}","function insert_resouces($resources) {\r\n foreach ($resources['css'] as $css) {\r\n echo '';\r\n }\r\n foreach ($resources['js'] as $js) {\r\n echo '';\r\n }\r\n }","function example-theme_load_theme_assets() {\n\n\t$assetpath_css = getenv( 'WP_ENV' ) === 'production' ? '/assets/rev/' . asset_path( 'css/main.css' ) : '/assets/build/css/main.css';\n\t$assetpath_js = getenv( 'WP_ENV' ) === 'production' ? '/assets/rev/' . asset_path( 'js/app.js' ) : '/assets/build/js/app.js';\n\n\tif ( ! is_admin() ) {\n\t\twp_enqueue_style( 'example-theme-css-main', get_template_directory_uri() . $assetpath_css );\n\t}\n\n\twp_register_script( 'example-theme-script-main', get_template_directory_uri() . $assetpath_js, array(), '1.0', true );\n\twp_enqueue_script( 'example-theme-script-main' );\n\n}","public function trad_load_css_and_jss() {\n\t\tif ( ! $this->trad_ioy_shortcodes_activated ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// this tells us if we want to load the .min versions of css and js when available\n\t\t$trad_use_min_js = $this->get_setting( 'trad_use_min_js' );\n\n\t\t// load our plugin-specific css\n\t\tif ( $this->get_setting( 'trad_load_trad_ioy_css' ) ) {\n\t\t\twp_enqueue_style( 'trad-ioy', plugins_url(\n\t\t\t\t'css/stylesheet.css', dirname( __FILE__ ) ) );\n\t\t}\n\n\t\t// load our custom css\n\t\tif ( $this->get_setting( 'trad_ioy_local_css_file' ) ) {\n\t\t\twp_enqueue_style( 'trad-ioy-custom', $this->get_setting( 'trad_ioy_local_css_file' ) );\n\t\t}\n\n\t\tif ( $this->get_setting( 'trad_ioy_local_css' ) ) {\n\t\t\tadd_action( 'wp_head', array( $this, 'trad_ioy_add_custom_css' ) );\n\t\t}\n\t\t// we definitely need jQuery\n\t\twp_enqueue_script( 'jquery' );\n\n\t\tif ( $this->get_setting( 'trad_load_cookie_js' ) ) {\n\t\t\twp_enqueue_script( 'trad-cookie-js', plugins_url(\n\t\t\t\t\t$this->min_or_full( 'js/jquery/jquery.cookie', 'js', false ), dirname( __FILE__ ) ), array( 'jquery' ),\n\t\t\t\tfalse, true );\n\t\t}\n\n\t\tif ( $this->get_setting( 'trad_load_scrollto_js' ) ) {\n\t\t\twp_enqueue_script( 'trad-scrollto-js', plugins_url(\n\t\t\t\t\t$this->min_or_full( 'js/jquery/jquery.scrollTo-1.4.3.1', 'js', $trad_use_min_js ), dirname( __FILE__ ) ),\n\t\t\t\tarray( 'jquery' ), false, true );\n\t\t}\n\n\t\t// add our special javascipt\n\t\tadd_action( 'wp_footer', array( $this, 'trad_ioy_js' ) );\n\t}","public function register_plugin_styles() {\n\t\twp_enqueue_style( 'teamManager', plugins_url( '/css/TeamManager.css' , __FILE__ ) ); \n\t}","public function onAfterInstall()\n {\n craft()->db->createCommand()->update(\n 'fields',\n array('type' => 'BetterRedactor'),\n array('type' => 'RichText')\n );\n\n $publicDirectory = craft()->path->appPath . '../../public/redactor_plugins';\n\n if (!IOHelper::folderExists($publicDirectory)) {\n $initialDirectory = craft()->path->getPluginsPath()\n . '/betterredactor/redactor_plugins';\n\n $files = array_filter(\n scandir($initialDirectory),\n function($file) use ($initialDirectory) {\n return is_file(\"$initialDirectory/$file\");\n }\n );\n\n foreach ($files as $file) {\n if (preg_match('((.js|.css)$)i', $file)) {\n IOHelper::copyFile(\n \"$initialDirectory/$file\",\n \"$publicDirectory/$file\"\n );\n }\n }\n }\n }","public function register_frontend_assets() {\n\t\twp_enqueue_style( 'ghc-functionality', $this->plugin_dir_url( 'dist/css/style.min.css' ), array(), $this->version );\n\n\t\twp_register_script( 'ghc-content-types-filter', $this->plugin_dir_url( 'dist/js/content-types.min.js' ), array( 'jquery' ), $this->version, true );\n\n\t\twp_register_script( 'ghc-maps', $this->plugin_dir_url( 'dist/js/maps.min.js' ), array( 'jquery', 'google-maps-api' ), $this->version, true );\n\t\twp_register_script( 'google-maps-api', 'https://maps.googleapis.com/maps/api/js?key=' . get_option( 'options_api_key' ), array(), null, true ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters -- let Google Maps handle cache invalidation.\n\n\t\twp_enqueue_script( 'ghc-popups', $this->plugin_dir_url( 'dist/js/popups.min.js' ), array( 'jquery', 'popup-maker-site' ), $this->version, true );\n\n\t\twp_register_script( 'ghc-robly-lists', $this->plugin_dir_url( 'dist/js/robly-lists.min.js' ), array( 'jquery' ), $this->version, true );\n\n\t\twp_register_script( 'slick', $this->plugin_dir_url( 'dist/js/slick.min.js' ), array( 'jquery' ), $this->version, true );\n\t\twp_register_style( 'slick', $this->plugin_dir_url( 'dist/css/slick.min.css' ), array(), $this->version, false );\n\t}","function cam_enqueue_related_pages_scripts_and_styles(){\n // wp_enqueue_style('related-styles', plugins_url('/css/bootstrap.min.css', __FILE__));\n wp_enqueue_script('releated-script', plugins_url( '/js/custom.js' , __FILE__ ), array('jquery','jquery-ui-droppable','jquery-ui-draggable', 'jquery-ui-sortable'));\n }","static function enqueue_scripts(){\n\t\tself::include_css();\n\t\tself::include_js();\n\t}","public function addPluginAdminResources( $page ) {\n global $laterpay_version;\n wp_register_style(\n 'laterpay-admin',\n LATERPAY_ASSET_PATH . '/static/css/laterpay-admin.css',\n array(),\n $laterpay_version\n );\n wp_enqueue_style('laterpay-admin');\n\n wp_register_script(\n 'jquery',\n '//code.jquery.com/jquery-1.11.0.min.js'\n );\n\n if ( $page == 'post.php' || $page == 'post-new.php' ) {\n $this->getPricingPostController()->loadAssets();\n }\n }","public function js_css_public(){\n\n wp_enqueue_style('asRange', plugin_dir_url(__FILE__). 'libs/assets/css/asRange.min.css', false, $this->version());\n wp_enqueue_style('select2', plugin_dir_url(__FILE__). 'libs/assets/css/select2.min.css', false, $this->version());\n wp_enqueue_style('flatpickr', plugin_dir_url(__FILE__). 'libs/assets/css/flatpickr.min.css', false, $this->version());\n wp_enqueue_style('metform-ui', plugin_dir_url(__FILE__). 'libs/assets/css/metform-ui.css', false, $this->version());\n wp_enqueue_style('font-awesome', plugin_dir_url(__FILE__). 'libs/assets/css/font-awesome.min.css', false, $this->version());\n wp_enqueue_style('metform-style', plugin_dir_url(__FILE__). 'libs/assets/css/style.css', false, $this->version());\n \n wp_enqueue_script('asRange', plugin_dir_url(__FILE__) . 'libs/assets/js/jquery-asRange.min.js', array(), $this->version(), true);\n wp_enqueue_script('select2', plugin_dir_url(__FILE__) . 'libs/assets/js/select2.min.js', array(), $this->version(), true);\n wp_enqueue_script('flatpickr', plugin_dir_url(__FILE__) . 'libs/assets/js/flatpickr.js', array(), $this->version(), true);\n \n wp_register_script('recaptcha', 'https://www.google.com/recaptcha/api.js?onload=onloadMetFormCallback&render=explicit', array(), $this->version(), true);\n wp_enqueue_script('metform-submission', plugin_dir_url(__FILE__) . 'libs/assets/js/submission.js', array(), $this->version(), true);\n \n\n }","function wptrebs_styles_scripts() {\n wp_enqueue_style( 'wptrebs_feed', plugins_url('..\\assets\\css\\style.css', __FILE__) );\n}","function theme_assets() {\n\t// load css\n\twp_enqueue_style( 'font-awesome-css', get_template_directory_uri() . '/css/fontawesome.css' );\n\twp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.css' );\n\twp_enqueue_style( 'style-css', get_template_directory_uri() . '/style.css', false, time() );\n\n\t// load javascript\n\twp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '', true );\n wp_enqueue_script( 'waterfall-js', get_template_directory_uri() . '/js/waterfall.js', array(), '', true );\n\twp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', array(), '', true);\n}","function wm_customizer_preview_enqueue_assets() {\n $ctime = filemtime( get_template_directory() . '/customizer/css/wm-customizer-preview.css' );\n wp_enqueue_style( 'wm-customizer-preview-css', get_template_directory_uri() . '/customizer/css/wm-customizer-preview.css', array(), $ctime );\n $ctime = filemtime( get_template_directory() . '/customizer/js/wm-customizer-preview.js' );\n wp_enqueue_script( 'wm-customizer-preview-js', get_template_directory_uri() . '/customizer/js/wm-customizer-preview.js', array( 'jquery' ), $ctime, true );\n }","public function enqueue_assets() {\n\t\twp_enqueue_script( 'satispress-admin' );\n\t\twp_enqueue_style( 'satispress-admin' );\n\t}","function addScriptResources()\t{\n\t\tif (t3lib_extMgm::isLoaded('t3jquery')) {\n\t\t\trequire_once(t3lib_extMgm::extPath('t3jquery').'class.tx_t3jquery.php');\n\t\t}\n\n\t\t// checks if t3jquery is loaded\n\t\tif (T3JQUERY === TRUE) {\n\t\t\ttx_t3jquery::addJqJS();\n\t\t} else {\n\t\t\tif($this->conf['jQueryRes']) $this->jsFile[] = $this->conf['jQueryRes'];\n\t\t\tif($this->conf['tooltipJSRes']) $this->jsFile[] = $this->conf['tooltipJSRes'];\n\t\t}\n\n\t\t// Fix moveJsFromHeaderToFooter (add all scripts to the footer)\n\t\tif ($GLOBALS['TSFE']->config['config']['moveJsFromHeaderToFooter']) {\n\t\t\t$allJsInFooter = TRUE;\n\t\t} else {\n\t\t\t$allJsInFooter = FALSE;\n\t\t}\n\n\t\t$pagerender = $GLOBALS['TSFE']->getPageRenderer();\n\t\t\n\t\t// add all defined JS files\n\t\tif (count($this->jsFile) > 0) {\n\t\t\tforeach ($this->jsFile as $jsToLoad) {\n\t\t\t\tif (T3JQUERY === TRUE) {\n\t\t\t\t\t$conf = array(\n\t\t\t\t\t\t'jsfile' => $jsToLoad,\n\t\t\t\t\t\t'tofooter' => ($this->conf['jsInFooter'] || $allJsInFooter),\n\t\t\t\t\t\t'jsminify' => $this->conf['jsMinify'],\n\t\t\t\t\t);\n\t\t\t\t\ttx_t3jquery::addJS('', $conf);\n\t\t\t\t} else {\n\t\t\t\t\t$file = $GLOBALS['TSFE']->tmpl->getFileName($jsToLoad);\n\t\t\t\t\tif ($file) {\n\t\t\t\t\t\tif ($allJsInFooter) {\n\t\t\t\t\t\t\t$pagerender->addJsFooterFile($file, 'text/javascript', $this->conf['jsMinify']);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$pagerender->addJsFile($file, 'text/javascript', $this->conf['jsMinify']);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt3lib_div::devLog(\"'{\".$jsToLoad.\"}' does not exists!\", $this->extKey, 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// add defined CSS file\n\t\tif($this->conf['cssFile']) {\n\t\t\t// Add script only once\n\t\t\t$css = $GLOBALS['TSFE']->tmpl->getFileName($this->conf['cssFile']);\n\t\t\tif ($css) {\n\t\t\t\t$pagerender->addCssFile($css, 'stylesheet', 'all', '', $this->conf['cssMinify']);\n\t\t\t} else {\n\t\t\t\tt3lib_div::devLog(\"'{\".$this->conf['cssFile'].\"}' does not exists!\", $this->extKey, 2);\n\t\t\t}\n\t\t}\n\t}","public function loadAssets()\n {\n add_action('admin_enqueue_scripts', [$this, 'enqueueAdminAssets']);\n add_filter('script_loader_tag', [$this, 'addAssetAttribute'], 10, 3);\n }","function thesaasx_enqueue_assets() {\n\n\t$my_theme = wp_get_theme();\n\t$version = $my_theme->get( 'Version' );\n\n\t// Google fonts.\n\t//\n\twp_enqueue_style( 'thesaasx-fonts', thesaasx_fonts_url(), array(), $version );\n\n\n\t// Plugin styles.\n\t//\n\n\twp_enqueue_style( 'font-awesome', THE_PLUGIN_URL . 'assets/vendor/font-awesome/css/font-awesome.min.css' , array(), $version );\n\twp_enqueue_style( 'themify-icons', THE_PLUGIN_URL . 'assets/vendor/themify-icons/themify-icons.css' , array(), $version );\n\twp_enqueue_style( 'et-line', THE_PLUGIN_URL . 'assets/vendor/et-line/style.css' , array(), $version );\n\twp_enqueue_style( 'aos', THE_PLUGIN_URL . 'assets/vendor/aos/aos.css' , array(), $version );\n\twp_enqueue_style( 'jarallax', THE_PLUGIN_URL . 'assets/vendor/jarallax/jarallax.css' , array(), $version );\n\twp_enqueue_style( 'slick', THE_PLUGIN_URL . 'assets/vendor/slick/slick.css' , array(), $version );\n\n\n\n\t// Plugin scripts.\n\t//\n\twp_enqueue_script( 'bootstrap', THE_PLUGIN_URL . 'assets/vendor/bootstrap/js/bootstrap.bundle.min.js' , array( 'jquery' ), $version, true );\n\twp_enqueue_script( 'smoothscroll', THE_PLUGIN_URL . 'assets/vendor/smoothscroll/SmoothScroll.js' , array( ), $version, true );\n\twp_enqueue_script( 'objectfit-polyfill', THE_PLUGIN_URL . 'assets/vendor/objectfit-polyfill/objectFitPolyfill.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'aos', THE_PLUGIN_URL . 'assets/vendor/aos/aos.js' , array( ), $version, true );\n\twp_enqueue_script( 'jquery-countdown', THE_PLUGIN_URL . 'assets/vendor/jquery-countdown/jquery.countdown.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'waypoints', THE_PLUGIN_URL . 'assets/vendor/waypoints/jquery.waypoints.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'countup', THE_PLUGIN_URL . 'assets/vendor/countup/countUp.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'granim', THE_PLUGIN_URL . 'assets/vendor/granim/granim.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'slick', THE_PLUGIN_URL . 'assets/vendor/slick/slick.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'typed', THE_PLUGIN_URL . 'assets/vendor/typed/typed.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'lity', THE_PLUGIN_URL . 'assets/vendor/lity/lity.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'imagesloaded', THE_PLUGIN_URL . 'assets/vendor/imagesloaded/imagesloaded.pkgd.min.js' , array( ), $version, true );\n\twp_enqueue_script( 'shufflejs', THE_PLUGIN_URL . 'assets/vendor/shuffle/shuffle.min.js' , array('imagesloaded'), $version, true );\n\twp_enqueue_script( 'jarallax', THE_PLUGIN_URL . 'assets/vendor/jarallax/jarallax.min.js' , array( 'jquery' ), $version, true );\n\twp_enqueue_script( 'jarallax-video', THE_PLUGIN_URL . 'assets/vendor/jarallax/jarallax-video.min.js' , array( 'jquery' ), $version, true );\n\n\n\t// Theme style.\n\t//\n\twp_enqueue_style( 'thesaasx', THE_PLUGIN_URL . 'assets/css/page.min.css' , array(), $version );\n\n\t// Custom style\n\t$custom_css = thesaasx_custom_font_style();\n\t$custom_css .= thesaasx_custom_color_style();\n\tif ( $custom_css !== '' ) {\n\t\twp_add_inline_style( 'thesaasx', $custom_css );\n\t}\n\n\n\n\t// Theme script.\n\t//\n\twp_enqueue_script( 'thesaasx', THE_PLUGIN_URL . 'assets/js/page.min.js' , array( 'jquery', 'bootstrap' ), $version, true );\n\n\t$googleApiKey_escaped = esc_js( get_theme_mod( 'google_api_key', 'AIzaSyDRBLFOTTh2NFM93HpUA4ZrA99yKnCAsto' ) );\n\t$googleAnalyticsId_escaped = esc_js( get_theme_mod( 'google_analytics_id' ) );\n\t$googlerecaptchav3_escaped = esc_js( get_theme_mod( 'google_recaptcha3_public' ) );\n\t$inline_script = \"page.config({ googleApiKey: '\". $googleApiKey_escaped .\"', googleAnalyticsId: '\". $googleAnalyticsId_escaped .\"', reCaptchaV3SiteKey: '\". $googlerecaptchav3_escaped .\"', contactFormAction: '\". admin_url('admin-ajax.php') .\"' });\";\n\t$inline_script .= get_theme_mod( 'additional_script' );\n\twp_add_inline_script( 'thesaasx', \"jQuery(function($) { \". $inline_script .\" });\" );\n\n\n\t// Comments\n\t//\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}","public function register_css () {\n wp_register_style(Plugin::PLUGIN_NAME, plugins_url('assets/css/styles.css', __FILE__), array(), filemtime(Plugin::getPluginPath() . '/assets/css/styles.css'));\n }","function perusecretland_css_js() {\n wp_enqueue_style( 'perusecretland-fonts', get_stylesheet_directory_uri() . '/css/fonts.css');\n wp_enqueue_style( 'perusecretland-responsive', get_stylesheet_directory_uri() . '/css/responsive.css');\n wp_enqueue_style( 'jquery-chosen', get_stylesheet_directory_uri() . '/css/chosen.min.css');\n wp_enqueue_script( 'perusecretland-easing', get_stylesheet_directory_uri() . '/js/jquery.easing.1.3.js', array('jquery'));\n wp_enqueue_script( 'jquery-chosen', get_stylesheet_directory_uri() . '/js/chosen.jquery.min.js', array('jquery'));\n wp_enqueue_script( 'perusecretland-scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array('jquery'));\n wp_enqueue_script( 'perusecretland-footer-scripts', get_stylesheet_directory_uri() . '/js/footer.scripts.js', array('jquery', 'jquery-chosen'), false, true );\n }","public function settings_assets()\n {\n // We're including the WP media scripts here because they're needed for the image upload field\n // If you're not including an image upload then you can leave this function call out\n wp_enqueue_media();\n\n if (defined('WP_SUAPI_DEBUG') && WP_SUAPI_DEBUG) {\n wp_register_script($this->parent->_token . '-settings-js', $this->parent->assets_url . 'js/src/' . $this->parent->_token . '-settings' . $this->parent->script_suffix . '.js', array('jquery'), '1.0.0');\n } else {\n wp_register_script($this->parent->_token . '-settings-js', $this->parent->assets_url . 'js/' . $this->parent->_token . '-settings' . $this->parent->script_suffix . '.js', array('jquery'), '1.0.0');\n }\n wp_enqueue_script($this->parent->_token . '-settings-js');\n }","public function enqueue_css_js() {\n\t\twp_enqueue_style('wp-pointer');\n\t\twp_enqueue_script('wp-pointer');\n\t}","public function theme_assets_handler() {\n\t\t\n\t\t$version = wp_get_theme()->get('Version');\n\n\t\t//Enqueue stylesheets\n\t\tforeach ($this->styles as $style) {\n\t\t\twp_register_style($this->prefix . $style['slug'], get_template_directory_uri() . $style['path'], $style['deps'], $version);\n\t\t\twp_enqueue_style($this->prefix . $style['slug']);\n\n\n\n\t\t}\n\t\t\n\t\t//Enqueue Scripts\n\t\tforeach ($this->scripts as $script) {\n\t\t\twp_register_script($this->prefix . $script['slug'], get_template_directory_uri() . $script['path'], $script['deps'], $version);\n\t\t\twp_enqueue_script($this->prefix . $script['slug']);\n\t\t}\n\t\t\n\t\t//Enqueue WP Scripts\n\t\tif(is_array($this->wp_scripts)){\n\t\t\t\n\t\t\tforeach ($this->wp_scripts as $script) {\n\t\t\t\twp_enqueue_script($script);\n\t\t\t}\n\t\t}\n\t}","function register_assets()\n{\n\n if (is_single()) {\n wp_enqueue_style( //fonctions pour charger un feuille de style css personalisé sur une page en particulier avec la fonction if(is_front_page)\n 'jpg-custom-single-css',\n get_template_directory_uri() . '/assets/styles/projets.css',\n array(),\n '1.0'\n );\n }\n if (is_page()) {\n wp_enqueue_style( //fonctions pour charger un feuille de style css personalisé sur une page en particulier avec la fonction if(is_front_page)\n 'jpg-custom-page-css',\n get_template_directory_uri() . '/assets/styles/page.css',\n array(),\n '1.0'\n );\n }\n\n\n wp_enqueue_style(\n 'jpg',\n get_stylesheet_uri(),\n array(),\n '1.0'\n\n );\n wp_enqueue_style(\n 'wordpress-css',\n \"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css\"\n\n );\n wp_enqueue_style(\n 'jpg-custom-css',\n get_template_directory_uri() . '/assets/styles/main.css',\n array(),\n '1.0'\n\n );\n\n\n\n\nwp_enqueue_script(\n 'wordpress',\n 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js'\n\n);\n\nwp_enqueue_script(\n 'jpg',\n get_template_directory_uri() . '/assets/scripts/main.js',\n array('wordpress'),\n '1.0',\n true\n);\n}"],"string":"[\n \"public function register_assets() {\\n $js_folder = SD_PLUGIN_PATH . '/src/assets/js/';\\n $css_folder = SD_PLUGIN_PATH . '/src/assets/css/';\\n $scripts = scandir($js_folder);\\n //var_dump($scripts);\\n $styles = scandir($css_folder);\\n foreach ($styles as $style) {\\n if( !is_dir($style) ) {\\n wp_enqueue_style( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/css/' . $style);\\n }\\n }\\n foreach ($scripts as $script) {\\n if( !is_dir($script) ) {\\n wp_enqueue_script( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/js/' . $script);\\n }\\n }\\n }\",\n \"function mk_resources() {\\t\\t\\n\\twp_enqueue_style('style', get_stylesheet_uri());\\n\\twp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery-3.1.1.min.js', array(), '20120206', true );\\n\\twp_enqueue_script( 'custom-script', get_template_directory_uri() . '/js/script.js', array( 'jquery'), '1.1', true );\\n}\",\n \"public function register_scripts()\\n {\\n wp_register_style(\\n 'fau-oembed-style',\\n plugins_url('assets/css/fau-oembed.css', plugin()->getBasename()),\\n [],\\n plugin()->getVersion()\\n ); \\n }\",\n \"public function add_scripts_and_styles()\\n {\\n // Estilos css \\n wp_register_style( 'wiAjustesStyles', WI_PLUGIN_URL . '/style.css', null, WI_VERSION );\\n wp_enqueue_style( 'wiAjustesStyles' );\\n\\n // Scripts de javascript\\n wp_enqueue_script('wiAjustesStylesJs', WI_PLUGIN_URL . '/script.js' , array('jquery'));\\n }\",\n \"function plugin_assets() {\\n\\t\\twp_register_script( 'lightbox', plugins_url( 'js/lightbox.js' , __FILE__ ), array( 'jquery' ) );\\n\\t\\twp_enqueue_script( 'lightbox' );\\n\\n\\t\\twp_register_style( 'lightbox', plugins_url( 'css/style.css' , __FILE__ ), '', '', 'screen' );\\n\\t\\twp_enqueue_style( 'lightbox' );\\n\\t}\",\n \"public function dt_testimonial_simple_loadCssAndJs() {\\n wp_register_style( 'dt_extend_style', plugins_url('assets/droit-wbpakery-addons.css', __FILE__) );\\n }\",\n \"private function register_scripts_and_styles()\\n\\t\\t\\t{\\n\\n\\t\\t\\t\\tif( is_admin() )\\n\\t\\t\\t\\t{\\n\\n\\t\\t \\t\\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\\n\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t{ \\n\\n\\t\\t \\t\\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\",\n \"private function register_scripts_and_styles()\\n\\t\\t\\t{\\n\\n\\t\\t\\t\\tif( is_admin() )\\n\\t\\t\\t\\t{\\n\\n\\t\\t \\t\\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\\n\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t{ \\n\\n\\t\\t \\t\\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\\n\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\",\n \"public function load_assets() {\\n\\t\\twponion_load_core_assets( $this->option( 'assets' ) );\\n\\t}\",\n \"public function initAssets()\\n {\\n add_action(\\n \\\"admin_enqueue_scripts\\\",\\n array($this, 'PluginScripts')\\n );\\n\\n add_action(\\n \\\"admin_enqueue_scripts\\\",\\n array($this, 'PluginStyles')\\n );\\n }\",\n \"function dw_schemas_add_assets() {\\n\\twp_enqueue_script('schemas-admin-js', '/wp-content/plugins/dw_schemas/assets/scripts.js');\\n\\twp_enqueue_style('schemas-admin-css', '/wp-content/plugins/dw_schemas/assets/styles.css');\\n}\",\n \"function my_plugin_assets() {\\n\\n wp_register_style( 'slider_styleCss', plugins_url( '/css/splide.min.css' , __FILE__ ), array(), '1.0', 'all' );\\n wp_enqueue_style( 'slider_styleCss' );\\n // custome style\\n wp_register_style( 'styleCss', plugins_url( '/css/style.css' , __FILE__ ), array(), '1.0', 'all' );\\n wp_enqueue_style( 'styleCss' ); \\n\\n wp_register_script( 'slider_script', plugins_url( '/js/splide.min.js' , __FILE__ ), array(), '1.0', false );\\n wp_enqueue_script( 'slider_script' );\\n // customescript\\n wp_register_script( 'script', plugins_url( '/js/script.js' , __FILE__ ), array(), '1.0', false );\\n wp_enqueue_script( 'script' );\\n}\",\n \"public function myScripts()\\n {\\n //wp_register_script('angularjs',plugins_url('bower_components/angular/angular.min.js', __FILE__));\\n wp_enqueue_style('grimagecss', plugins_url('style.css', __FILE__));\\n //wp_enqueue_script('grimagescripts',plugins_url('/app.js',__FILE__));\\n }\",\n \"protected function addAssets(): void\\n {\\n $this->enqueue('assets/dashifen-2022.js');\\n $font1 = $this->enqueue('//fonts.googleapis.com/css2?family=El+Messiri&display=swap');\\n $font2 = $this->enqueue('//fonts.googleapis.com/css2?family=Roboto&display=swap');\\n $css = $this->enqueue('assets/dashifen-2022.css', [$font1, $font2]);\\n \\n $dir = trailingslashit($this->getStylesheetDir());\\n if (file_exists($dir . 'assets/dashifen-2022-components.css')) {\\n $this->enqueue('assets/dashifen-2022-components.css', [$css]);\\n }\\n }\",\n \"public function register_assets_admin() {\\n $js_folder = SD_PLUGIN_PATH . '/src/assets/admin/js/';\\n $css_folder = SD_PLUGIN_PATH . '/src/assets/admin/css/';\\n $scripts = scandir($js_folder);\\n //var_dump($scripts);\\n $styles = scandir($css_folder);\\n foreach ($styles as $style) {\\n if( !is_dir($style) ) {\\n wp_enqueue_style( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/admin/css/' . $style);\\n }\\n }\\n foreach ($scripts as $script) {\\n if( !is_dir($script) ) {\\n wp_enqueue_script( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/admin/js/' . $script);\\n }\\n }\\n }\",\n \"function petrica_custom_wp_admin_style_and_js_scripts() {\\n wp_register_style( 'custom_wp_admin_css', plugin_dir_url(dirname( __FILE__ )) . 'css/style.css', false, '1.0.0' );\\n wp_enqueue_style( 'custom_wp_admin_css' );\\n wp_enqueue_script( 'script-name', plugin_dir_url(dirname( __FILE__ )) . '/js/petrica-plugin.js', array(), '1.0.0', true );\\n }\",\n \"public function dt_icon_list_loadCssAndJs() {\\n wp_register_style( 'dt_extend_style', plugins_url('assets/droit-wbpakery-addons.css', __FILE__) );\\n // If you need any javascript files on front end, here is how you can load them.\\n //wp_enqueue_script( 'droit-wbpakery-addons_js', plugins_url('assets/droit-wbpakery-addons.js', __FILE__), array('jquery') );\\n }\",\n \"function plugin_stater_reg_scripts() {\\r\\n\\t// we are telling WP that we depend on jQuery\\r\\n\\twp_register_script( CH_PLUGIN_NAME , plugins_url( '/js/app.js', __FILE__ ), array( 'jquery' ) );\\r\\n\\twp_enqueue_script ( CH_PLUGIN_NAME );\\r\\n\\twp_enqueue_style ( CH_PLUGIN_NAME , plugins_url( '/css/app.css', __FILE__ ) );\\r\\n}\",\n \"public function enqueueScripts() {\\n wp_register_style('rrze-faq-style', plugins_url('assets/css/rrze-faq.css', plugin_basename($this->pluginFile)));\\n wp_enqueue_style('rrze-faq-style');\\n }\",\n \"function wm_customizer_panel_enqueue_assets() {\\n $ctime = filemtime( get_template_directory() . '/customizer/css/wm-customizer-panel.css' );\\n wp_enqueue_style( 'wm-customizer-panel-css', get_template_directory_uri() . '/customizer/css/wm-customizer-panel.css', array( 'customize-controls' ), $ctime );\\n $ctime = filemtime( get_template_directory() . '/customizer/js/wm-customizer-panel.js' );\\n wp_enqueue_script( 'wm-customizer-panel-js', get_template_directory_uri() . '/customizer/js/wm-customizer-panel.js', array( 'jquery', 'customize-controls' ), $ctime, true );\\n }\",\n \"public function addRessources()\\n {\\n // $this->context->controller->addCss(($this->_path . '/views/css/tab.css'), 'all');\\n // $this->context->controller->addJquery();\\n // $this->context->controller->addJS(($this->_path . '/views/js/script.js'));\\n // $this->context->controller->addJS(($this->_path . '/views/js/configuration.js'));\\n }\",\n \"function wiki_api_import_css() {\\n\\twp_enqueue_style('style-name', get_stylesheet_uri());\\n\\twp_enqueue_script('script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true);\\n}\",\n \"public function loadConfigAssets()\\r\\n {\\r\\n $this->app->document->addScript('elements:imagebox/assets/js/myimage.js');\\r\\n $this->app->document->addStylesheet('elements:imagebox/assets/css/editoption.css');\\r\\n $this->app->document->addScript('elements:imagebox/assets/js/myoption.js');\\r\\n $this->app->document->addStylesheet('elements:option/option.css');\\r\\n }\",\n \"function csu_hcfw_resources_load_scripts() {\\n\\twp_enqueue_style( 'csu-hcfw-resources-styles', plugin_dir_url( __FILE__ ) . 'includes/css/styles.css' );\\n}\",\n \"function theme_files() {\\n \\n wp_register_style('style', get_template_directory_uri() . '/dist/app.css', [], 1, 'all');\\n wp_enqueue_style('style');\\n\\n wp_enqueue_script('jquery');\\n\\n wp_register_script('app', get_template_directory_uri() . '/dist/app.js', ['jquery'], 1, true);\\n wp_enqueue_script('app');\\n}\",\n \"private function registerPlugins()\\n\\t{\\n\\t\\t$assetDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;\\n\\t\\t$assetUrl = Yii::app()->assetManager->publish($assetDir);\\n\\n\\n\\t\\t$cs = Yii::app()->getClientScript();\\n\\n\\t\\tforeach ($this->plugins as $p)\\n\\t\\t{\\n\\n\\t\\t\\tif ($p['flag'])\\n\\t\\t\\t{\\n\\t\\t\\t\\tforeach ($p['js'] as $js)\\n\\t\\t\\t\\t\\t$cs->registerScriptFile($assetUrl . \\\"/\\\" . $js, CClientScript::POS_END);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function plugin_post_new_scripts() {\\r\\n\\t// Register & enqueue our admin.js file along with its dependancies\\r\\n\\t\\t\\twp_register_script('framework', $this->plugin_url .'framework.js', array('jquery','media-upload','thickbox','editor'));\\r\\n\\t\\t\\twp_enqueue_script('framework');\\r\\n\\t\\t\\twp_enqueue_script('farbtastic'); \\r\\n\\t\\t\\twp_enqueue_script('suggest'); // Allow Jquery Chosen\\r\\n\\t\\t\\t\\r\\n\\t\\t}\",\n \"public function register_assets() {\\n\\n $scripts = $this->get_scripts();\\n $styles = $this->get_styles();\\n\\n foreach ( $scripts as $handle => $script ) {\\n $deps = isset( $script['deps'] ) ? $script['deps'] : false;\\n\\n wp_register_script( $handle, $script['src'], $deps, $script['version'], true );\\n }\\n\\n foreach ( $styles as $handle => $style ) {\\n $deps = isset( $style['deps'] ) ? $style['deps'] : false;\\n\\n wp_register_style( $handle, $style['src'], $deps, $style['version'] );\\n }\\n\\n wp_localize_script( 'cbxcf-scripts', 'cbxcfObj', [\\n 'ajaxurl' => admin_url( 'admin-ajax.php' ),\\n 'error' => __( 'Something went wrong', 'cbxcustomform' ),\\n ] );\\n\\n }\",\n \"function aitEnqueueScriptsAndStyles(){\\r\\n\\tif(!is_admin()){\\r\\n\\t\\t// just shortcuts\\r\\n\\t\\t$s = THEME_CSS_URL;\\r\\n\\t\\t$j = THEME_JS_URL;\\r\\n\\r\\n\\t\\taitAddStyles(array(\\r\\n\\t\\t\\t'ait-colorbox' => array('file' => \\\"$s/libs/colorbox.css\\\"),\\r\\n\\t\\t\\t'ait-fancybox' => array('file' => \\\"$s/libs/fancybox.css\\\"),\\r\\n\\t\\t\\t'jquery-ui' \\t => array('file' => \\\"$s/libs/jquery-ui.css\\\"),\\r\\n\\t\\t\\t'prettysociable' => array('file' => \\\"$s/libs/prettySociable.css\\\"),\\r\\n\\t\\t\\t'hoverzoom' \\t => array('file' => \\\"$s/libs/hoverZoom.css\\\"),\\r\\n\\t\\t));\\r\\n\\r\\n\\t\\taitAddScripts(array(\\r\\n\\t\\t\\t'jquery-ui-tabs' \\t\\t\\t=> true,\\r\\n\\t\\t\\t'jquery-ui-accordion' \\t\\t\\t=> true,\\r\\n\\t\\t\\t'jquery-infieldlabel' \\t\\t\\t=> array('file' => \\\"$j/libs/jquery-infieldlabel.js\\\", 'deps' => array('jquery'), 'inFooter' => true),\\r\\n\\t\\t\\t'jquery-iconmenu' \\t\\t\\t\\t=> array('file' => \\\"$j/libs/jquery-iconmenu.js\\\", 'deps' => array('jquery'), 'inFooter' => true),\\r\\n\\t\\t\\t'jquery-plugins'\\t \\t\\t\\t=> array('file' => \\\"$j/libs/jquery-plugins.js\\\", 'deps' => array('jquery')),\\r\\n\\t\\t\\t'modernizr'\\t\\t\\t\\t\\t\\t=> array('file' => \\\"$j/libs/modernizr-2.6.1-custom.js\\\", 'deps' => array('jquery'), 'inFooter' => true),\\r\\n\\r\\n\\t\\t\\t'ait-gridgallery' \\t\\t\\t=> array('file' => \\\"$j/gridgallery.js\\\", 'deps' => array('jquery', 'jquery-plugins'), 'inFooter' => true),\\r\\n\\t\\t\\t'ait-testimonials' \\t\\t\\t=> array('file' => \\\"$j/testimonials.js\\\", 'deps' => array('jquery'), 'inFooter' => true),\\r\\n\\t\\t\\t'ait-script' \\t\\t\\t=> array('file' => \\\"$j/script.js\\\", 'deps' => array('jquery', 'jquery-infieldlabel', 'jquery-iconmenu', 'jquery-plugins', 'modernizr'), 'inFooter' => true),\\r\\n\\t\\t));\\r\\n\\t}\\r\\n}\",\n \"private function setup_assets() {\\n\\t\\t$this->prefix = sanitize_title($this->theme_name) . '-';\\n\\t\\t$public_lib = '/lib/pub/';\\n\\t\\t$source_lib = '/lib/src/';\\n\\n\\t\\t//IF WP DEBUG Is ON, load source maps and assets\\n\\t\\tif (constant(\\\"WP_DEBUG\\\") === true) {\\n\\t\\t\\t//Style Resources\\n\\t\\t\\t$this->styles[] = array(\\n\\t\\t\\t\\t'slug' => $this->prefix . 'styles',\\n\\t\\t\\t\\t'path' => $source_lib . 'css/master.css',\\n\\t\\t\\t\\t'deps' => array()\\n\\t\\t\\t);\\n\\t\\t\\t\\n\\t\\t\\t$this->styles[] = array(\\n\\t\\t\\t\\t'slug' => $this->prefix . 'scss',\\n\\t\\t\\t\\t'path' => $source_lib . 'scss/master.scss',\\n\\t\\t\\t\\t'deps' => array( $this->prefix . 'styles')\\n\\t\\t\\t);\\n\\n\\t\\t\\t$this->styles[] = array(\\n\\t\\t\\t\\t'slug' => $this->prefix . 'css-map',\\n\\t\\t\\t\\t'path' => $source_lib . 'maps/master.css.map',\\n\\t\\t\\t\\t'deps' => array( $this->prefix . 'styles', $this->prefix . 'scss')\\n\\t\\t\\t);\\n\\t\\t\\n\\t\\n\\t\\t\\t$this->scripts[] = array(\\n\\t\\t\\t\\t'slug' => $this->prefix . 'plugins',\\n\\t\\t\\t\\t'path' => $source_lib . 'js/plugins.js',\\n\\t\\t\\t\\t'deps' => array(\\n\\t\\t\\t\\t\\t'jquery'\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\n\\t\\t\\t$this->scripts[] = array(\\n\\t\\t\\t\\t'slug' => $this->prefix . 'the-script',\\n\\t\\t\\t\\t'path' => $source_lib . 'js/script.js',\\n\\t\\t\\t\\t'deps' => array(\\n\\t\\t\\t\\t\\t'jquery'\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\n\\n\\n\\t\\t\\t// $this->scripts[] = array(\\n\\t\\t\\t// \\t'slug' => $this->prefix . 'script-map',\\n\\t\\t\\t// \\t'path' => $source_lib . 'maps/scripts.js.map',\\n\\t\\t\\t// \\t'deps' => array(\\n\\t\\t\\t// \\t\\t'jquery',\\n\\t\\t\\t// \\t\\t$this->prefix . 'script'\\n\\t\\t\\t// \\t)\\n\\t\\t\\t// );\\n\\t\\n\\t\\t// Otherwise load only minified assets\\n\\t\\t} else {\\n\\n\\t\\t\\t$this->styles[] = array(\\n\\t\\t\\t\\t'slug' => $this->prefix . 'styles-min',\\n\\t\\t\\t\\t'path' => $public_lib . 'css/master.min.css',\\n\\t\\t\\t\\t'deps' => array()\\n\\t\\t\\t);\\n\\n\\t\\t\\t$this->scripts[] = array(\\n\\t\\t\\t\\t\\t'slug' => $this->prefix . 'scripts-min',\\n\\t\\t\\t\\t\\t'path' => $public_lib . 'js/master.min.js',\\n\\t\\t\\t\\t\\t'deps' => array(\\n\\t\\t\\t\\t\\t\\t'jquery'\\n\\t\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\t\\t\\t\\n\\t\\t}\\n\\t\\t\\n\\t\\t$this->add_wp_script('jquery');\\n\\t\\t\\n\\t\\tadd_action('wp_enqueue_scripts', array( $this, 'theme_assets_handler' ));\\n\\t}\",\n \"function enqueue(){\\n wp_enqueue_style('mypluginstyle',PLUGIN_URL.'assets/mystyle.css');\\n // enqueue CSS define where the scripts\\n wp_enqueue_script('mypluginscript',PLUGIN_URL.'assets/myscript.js');\\n }\",\n \"public function register_scripts()\\r\\n\\t{\\r\\n\\t\\twp_register_style('poll', plugins_url('assets/poll.css', __DIR__));\\r\\n\\t\\twp_register_script('vue', 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js', array('jquery'), null, true);\\r\\n\\t\\twp_register_script('poll', plugins_url('assets/poll.js', __DIR__), array('vue'), null, true);\\r\\n\\t}\",\n \"function register_css() {\\n $myStyleUrl = plugins_url(__WP_PLUGIN__.'.css', __FILE__); \\n wp_register_style(__WP_PLUGIN__, $myStyleUrl);\\n wp_enqueue_style(__WP_PLUGIN__);\\n }\",\n \"public function addAdminAssets() {\\n\\t\\twp_enqueue_script( 'csframework-admin-upload' );\\n\\t}\",\n \"public function load_assets() {\\n\\t\\t\\t//only load styles and js when needed\\n\\t\\t\\tif ( $this->is_edit_page() ) {\\n\\t\\t\\t\\t//styles\\n\\t\\t\\t\\twp_enqueue_style( 'thickbox' );\\n\\t\\t\\t\\twp_enqueue_style( 'fancybox' );\\n\\t\\t\\t\\twp_enqueue_style( 'wm-options-panel-white-label' );\\n\\t\\t\\t\\tif ( ! wm_option( 'branding-panel-logo' ) && ! wm_option( 'branding-panel-no-logo' ) )\\n\\t\\t\\t\\t\\twp_enqueue_style( 'wm-options-panel-branded' );\\n\\t\\t\\t\\twp_enqueue_style( 'color-picker' );\\n\\n\\t\\t\\t\\t//scripts\\n\\t\\t\\t\\twp_enqueue_script( 'jquery-ui-core' );\\n\\t\\t\\t\\twp_enqueue_script( 'jquery-ui-tabs' );\\n\\t\\t\\t\\twp_enqueue_script( 'jquery-ui-datepicker' );\\n\\t\\t\\t\\twp_enqueue_script( 'jquery-ui-slider' );\\n\\t\\t\\t\\twp_enqueue_script( 'thickbox' );\\n\\t\\t\\t\\twp_enqueue_script( 'fancybox' );\\n\\t\\t\\t\\twp_enqueue_script( 'wm-options-panel' );\\n\\t\\t\\t\\twp_enqueue_script( 'color-picker' );\\n\\t\\t\\t}\\n\\t\\t}\",\n \"public function enqueue_plugin_scripts(){\\n\\t\\twp_enqueue_script( 'agenda-plugin-local-js', plugins_url('js/scripts.js', __FILE__ ), array('jquery'), false, true );\\n\\t\\twp_enqueue_style( 'agenda-plugin-local-css', plugins_url('css/styles.css', __FILE__ ) );\\n\\t}\",\n \"function addcss()\\n{\\nwp_register_style('ahmed_css', plugin_dir_url(__file__).'/styles-ahmed.css');\\nwp_enqueue_style('ahmed_css');\\n}\",\n \"function montheme_register_assets()\\n{\\n\\t//enregistre le style et le script\\n\\twp_register_style('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css');\\n\\twp_register_style('style-css', get_stylesheet_uri());\\n\\twp_register_script('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js', [], false, true); //[] =pas de dependance, false = pas de numero de version et true = script chargé dans le footer\\n\\t//permet d'utiliser le style et le script\\n\\twp_enqueue_style('bootstrap');\\n\\twp_enqueue_style('style-css');\\n\\twp_enqueue_script('bootstrap');\\n}\",\n \"public function register_assets() {\\n\\n\\t\\tforeach ( $this->assets as $asset ) {\\n\\t\\t\\t$js_path = $this->plugin->dir() . '/js/dist/' . $asset . '.asset.php';\\n\\t\\t\\t$css_path = $this->plugin->dir() . '/css/' . $asset . '.css';\\n\\t\\t\\tif ( file_exists( $js_path ) ) {\\n\\t\\t\\t\\t$assets_dep = require_once $js_path;\\n\\t\\t\\t\\twp_register_script(\\n\\t\\t\\t\\t\\t'formation-' . $asset . '-js',\\n\\t\\t\\t\\t\\t$this->plugin->asset_url( 'js/dist/' . $asset . '.js' ),\\n\\t\\t\\t\\t\\t$assets_dep['dependencies'],\\n\\t\\t\\t\\t\\t$assets_dep['version'],\\n\\t\\t\\t\\t\\ttrue\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\tif ( file_exists( $css_path ) ) {\\n\\t\\t\\t\\t\\twp_register_style(\\n\\t\\t\\t\\t\\t\\t'formation-' . $asset . '-css',\\n\\t\\t\\t\\t\\t\\t$this->plugin->asset_url( 'css/' . $asset . '.css' ),\\n\\t\\t\\t\\t\\t\\tnull,\\n\\t\\t\\t\\t\\t\\t$assets_dep['version']\\n\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function stock_toolkit_files(){\\n\\twp_enqueue_style('owl-carousel', plugin_dir_url( __FILE__ ) . 'assets/css/owl.carousel.min.css');\\n\\twp_enqueue_style('stock-toolkit-css', plugin_dir_url( __FILE__ ) . 'assets/css/stock-toolkit.css');\\n\\twp_enqueue_script('owl-carousel', plugin_dir_url( __FILE__ ) . 'assets/js/owl.carousel.min.js', array('jquery'), '1.8', true) ;\\n}\",\n \"function mgr_add_scripts(){\\n wp_enqueue_style('mgr-main-style',plugins_url().'/includes/my-github-repos/css/style.css');\\n wp_enqueue_script('mgr-main-script',plugins_url().'/includes/my-github-repos/js/main.js');\\n}\",\n \"function chroma_load_custom_market_css()\\n{\\n \\n wp_enqueue_style (\\n 'chroma_market_css',\\n plugin_dir_url(__DIR__) . '/css/market.css'\\n );\\n\\n \\n wp_enqueue_script (\\n 'chroma_market_js',\\n plugin_dir_url(__DIR__) . '/js/market.js'\\n );\\n\\n\\n\\n\\n}\",\n \"function assets(){\\n\\t\\t\\twp_enqueue_style( 'sp-2020-styles', get_template_directory_uri() .'/assets/css/main.css', array(), SPUTZNIK_2020_THEME_VERSION );\\n\\t\\t\\twp_enqueue_script( 'sp-2020-js', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), SPUTZNIK_2020_THEME_VERSION, true );\\n\\n\\t\\t}\",\n \"function add_qoorate_stylesheet(){\\n\\t\\t// TODO: make call to get styles from QOORATE\\n\\t\\t// MAYBE TODO: cacheing ... place in DB options?\\n\\t\\t\\n\\t\\t//$styleUrl = plugins_url('/css/guthrie.css', __FILE__);\\n\\t\\t//$styleFile = WP_PLUGIN_DIR . '/guthrie/css/guthrie.css';\\n\\t\\t//if ( file_exists($styleFile) ) {\\n\\t\\t//\\t\\t//echo($styleUrl.\\\"
    \\\");\\n\\t\\t//\\t\\twp_register_style('guthrie', $styleUrl);\\n\\t\\t//\\t\\twp_enqueue_style('guthrie');\\n\\t\\t//}\\n\\t\\t// unregister our really old jquery bundled with WP\\n\\t\\t// Maybe we can keep it? should it be an option?\\n\\t\\twp_deregister_script( 'jquery' );\\n\\t\\twp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' );\\n\\t\\twp_enqueue_script( 'jquery' );\\n\\t}\",\n \"public function registerScripts()\\n {\\n // font awesome. choose css fonts instead of svg, see more at https://fontawesome.com/how-to-use/on-the-web/other-topics/performance\\n // to name font awesome handle as `plugin-name-prefix-font-awesome5` is to prevent conflict with other plugins that maybe use older version but same handle that cause some newer icons in this plugin disappears.\\n wp_enqueue_style('rundizable-wp-features-font-awesome5', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/fontawesome/css/all.min.css', [], '5.5.0');\\n wp_enqueue_style('rundizable-wp-features-rd-settings-tabs-css', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/css/rd-settings-tabs.css', [], RUNDIZABLEWPFEATURES_VERSION);\\n wp_enqueue_script('rundizable-wp-features-rd-settings-tabs-js', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/js/rd-settings-tabs.js', ['jquery'], RUNDIZABLEWPFEATURES_VERSION, true);\\n }\",\n \"public function onLoad() {\\n\\t\\t$this->plugin->wrapper = $this->plugin->factory->wrapper;\\n\\t\\twp_enqueue_style( 'clrchs-admin', $this->plugin->wrapper->getURL('assets/admin.css'), [], $this->plugin->version);\\n\\t}\",\n \"function mightyResources() {\\n $css_file = get_stylesheet_directory() . '/dist/assets/css/style.min.css';\\n wp_enqueue_style('theme', get_stylesheet_directory_uri() . '/dist/assets/css/style.min.css', '', date('m.d.Y.H.i.s', filemtime($css_file)));\\n\\t\\twp_dequeue_style('wp-block-library');\\n\\n wp_deregister_script('jquery');\\n wp_register_script('jquery', ('//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'), '', '2.2.4', false);\\n wp_enqueue_script('jquery');\\n\\n // wp_enqueue_script('fontawesome-kit', '//kit.fontawesome.com/72e34829c8.js', '', '1.0', false);\\n\\t\\twp_enqueue_script('google-maps', '//maps.googleapis.com/maps/api/js?key=AIzaSyClqC80DXd3luWXcJZ-a0odx1q6ddTDVr0', '', '1.0', false);\\n\\n\\t\\twp_enqueue_script('aos', '//unpkg.com/aos@2.3.1/dist/aos.js', '', '2.3.1', true);\\n wp_enqueue_script('theme', get_stylesheet_directory_uri() . '/dist/assets/js/scripts.min.js', ['jquery'], '1.0.6', true);\\n\\n\\t\\twp_localize_script('theme', 'globalVar', array(\\n\\t\\t 'themePath' => get_template_directory_uri(),\\n\\t\\t));\\n }\",\n \"function cap_vc_extend_js_css() {\\n //wp_enqueue_style( 'cap_vc_extend_style' );\\n // If you need any javascript files on front end, here is how you can load them.\\n //wp_enqueue_script( 'cap_vc_extend_js', plugins_url('cap_vc_extend.js', __FILE__), array('jquery') );\\n}\",\n \"public function setup_scripts_and_styles() {\\n\\t\\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_css' ), 50 );\\n\\t\\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_js' ), 10 );\\n\\t}\",\n \"function ARTEMIS_SWP_plugin_load_admin_scripts_and_styles() {\\r\\n\\t/*generic admin css*/\\r\\n\\twp_register_style( 'js_backend_css', plugins_url('/css/backend_style.css', __FILE__));\\r\\n\\twp_enqueue_style( 'js_backend_css');\\r\\n\\t\\r\\n\\t/*alpha color picker*/\\r\\n\\twp_register_script( 'alpha_color_picker', plugins_url('/js/alpha-color-picker.js', __FILE__), array('jquery', 'wp-color-picker'), '', true);\\r\\n\\twp_enqueue_script( 'alpha_color_picker');\\r\\n\\twp_enqueue_style( 'alpha_color_picker', plugins_url('/css/alpha-color-picker.css', __FILE__ ), array('wp-color-picker'));\\r\\n\\r\\n\\t/*vc helper*/\\r\\n\\twp_register_script( 'artemis_vc_helper', plugins_url('/js/artemis_vc_helper.js', __FILE__), array('jquery', 'wp-color-picker'), '', true);\\r\\n\\twp_enqueue_script( 'artemis_vc_helper');\\r\\n}\",\n \"public function tiny_assets() {\\n wp_enqueue_style( 'tiny-slider-css', '//cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.3/tiny-slider.css', null, 1.0 );\\n wp_enqueue_script( 'tiny-slider-js', '//cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js', null, '1.0',true );\\n wp_enqueue_script( 'tiny-slider-main-js', plugin_dir_url( __FILE__ ).'/assets/js/main.js', array( 'jquery' ), '1.0',true );\\n }\",\n \"function ROMP_enquiry_form_admin_assets(){\\n\\t\\twp_enqueue_style('CSS-bootstrap-min', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css');\\n\\t\\twp_enqueue_script('JS-bootstrap-min', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js');\\n\\t\\twp_enqueue_style( 'ROMP-enquiry-form-css', plugins_url( 'romp-enquiry-plugin/assets/css/style.css'), 20, 1 );\\n\\t}\",\n \"function enqueue()\\n {\\n wp_enqueue_style('mypluginstyles', plugins_url('/assets/mystyle.css', __FILE__));\\n wp_enqueue_script('mypluginscript', plugins_url('/assets/myscript.js', __FILE__));\\n }\",\n \"function register_admin_scripts_and_styles() {\\n\\t\\t\\n\\t}\",\n \"function my_assets() {\\n wp_enqueue_style( 'style', get_stylesheet_uri(), array(), '1.0.0' );\\n wp_enqueue_script( 'jquery' );\\n wp_enqueue_script( 'app', get_template_directory_uri() . '/js/app.js', array(), '1.0.0' );\\n}\",\n \"private function _addResource()\\n {\\n //Add Resource\\n $this->assets->collection('css_header')\\n ->addCss('/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css');\\n\\n $this->assets->collection('js_footer')\\n ->addJs('/plugins/nestable/jquery.nestable.js')\\n ->addJs('/plugins/nestable/ui-nestable.js')\\n ->addJs('/plugins/bootstrap-modal/js/bootstrap-modal.js')\\n ->addJs('/plugins/bootstrap-modal/js/bootstrap-modalmanager.js')\\n ->addJs('/templates/backend/default/js/ui-modals.js');\\n }\",\n \"function load_core_assets()\\n {\\n // load core js and css\\n $this\\n ->add_plugin_theme($this->core_theme, 'core')\\n ->add_external_css(array(\\n base_url(\\\"/themes/core/css/core.css\\\"),\\n ))\\n ->add_external_js(array(\\n \\\"/themes/core/js/core_i18n.js\\\",\\n ), NULL, TRUE);\\n }\",\n \"function plugin_admin_scripts() {\\r\\n\\t\\t\\t// Register & enqueue our admin.js file along with its dependancies\\r\\n\\t\\t\\twp_register_script('framework', $this->framework_url .'framework.js', array('jquery','media-upload','thickbox','editor'));\\r\\n\\t\\t\\twp_enqueue_script('framework');\\r\\n\\t\\t\\t\\t\\twp_enqueue_script('farbtastic'); \\r\\n\\t\\t\\twp_enqueue_script('suggest'); // Allow Jquery Chosen\\r\\n\\t\\t}\",\n \"public function enqueue_styles_and_scripts() {\\n wp_enqueue_style($this->plugin_slug . '-plugin-styles', plugins_url('h5p/h5p-php-library/styles/h5p.css'), array(), self::VERSION);\\n }\",\n \"function reviews_plugin_scripts() { \\r\\n\\twp_enqueue_style( 'main-styles', plugin_dir_url( __FILE__ ) . 'assets/main.css');\\r\\n\\twp_enqueue_style( 'font-awesome', plugin_dir_url( __FILE__ ) . 'assets/font-awesome.css');\\r\\n\\r\\n wp_enqueue_script( 'main-reviews', plugin_dir_url( __FILE__ ) . 'assets/reviews.js', array('jquery') );\\r\\n}\",\n \"function pm_register_resources() {\\n\\t// Styles\\n\\n wp_enqueue_style( 'normalize', get_stylesheet_directory_uri().'/assets/css/normalize.css' );\\n wp_enqueue_style( 'ts-styles', get_stylesheet_directory_uri().'/assets/css/style.css', null, pm_version_hash('/assets/css/style.css') );\\n wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Crimson+Text:400,700|Raleway:500,600');\\n \\n // Scripts\\n\\n wp_deregister_script( 'jquery' );\\n wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true );\\n// wp_register_script( 'jquery', 'http://masonry.desandro.com/v2/js/jquery-1.7.1.min.js', false, NULL, true );\\n wp_enqueue_script( 'jquery' );\\n //wp_enqueue_script( 'jquery-masonry' );\\n wp_enqueue_script( 'ts-infinitescroll', get_stylesheet_directory_uri().'/assets/js/infinite-scroll.min.js', null, null, true);\\n wp_enqueue_script( 'ts-imagesloaded', get_stylesheet_directory_uri().'/assets/js/imagesloaded.min.js', null, null, true);\\n wp_enqueue_script( 'ts-cookies', get_stylesheet_directory_uri().'/assets/js/js.cookies.js', null, null, true);\\n wp_enqueue_script( 'ts-tweenmax', '//cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js', null, null, true);\\n// wp_enqueue_script( 'ts-masonry', get_stylesheet_directory_uri().'/assets/js/masonry.min.js', null, null, true);\\n wp_enqueue_script( 'ts-scripts', get_stylesheet_directory_uri().'/assets/js/ts.js',null, pm_version_hash('/assets/js/ts.js'), true);\\n \\n // Fonts\\n}\",\n \"public function registerScripts()\\r\\n\\t{\\r\\n\\t\\twp_register_style('social-shares', plugins_url('assets/social-shares.css', __FILE__));\\r\\n\\t\\twp_register_script('social-shares', plugins_url('assets/social-shares.js', __FILE__), array('jquery'), false, true);\\r\\n\\t}\",\n \"function massively_theme_assets() {\\n\\n\\t\\t$var = '1.0.0';\\n\\n\\t\\t/* CSS */\\n\\t\\twp_enqueue_style( 'main-css', get_theme_file_uri('/assets/css/main.css'), '', $var );\\n\\t\\twp_enqueue_style( 'noscript-css', get_theme_file_uri('/assets/css/noscript.css'), '', $var );\\n\\t\\twp_enqueue_style( 'theme-css', get_stylesheet_uri(), '', $var );\\n\\n\\t\\t/* JavaScripts */\\n\\t\\twp_enqueue_script( 'jquery' );\\n\\t\\twp_enqueue_script( 'scrollex-js', get_theme_file_uri('/assets/js/jquery.scrollex.min.js'), '', $var );\\n\\t\\twp_enqueue_script( 'scrolly-js', get_theme_file_uri('/assets/js/jquery.scrolly.min.js'), '', $var );\\n\\t\\twp_enqueue_script( 'browser-js', get_theme_file_uri('/assets/js/browser.min.js'), '', $var );\\n\\t\\twp_enqueue_script( 'breakpoints-js', get_theme_file_uri('/assets/js/breakpoints.min.js'), '', $var );\\n\\t\\twp_enqueue_script( 'util-js', get_theme_file_uri('/assets/js/util.js'), '', $var );\\n\\t\\twp_enqueue_script( 'main-js', get_theme_file_uri('/assets/js/main.js'), array('jquery'), $var, true );\\n\\t}\",\n \"public function addDependencies()\\n {\\n $this->Html->script('/attachments/js/vendor/jquery.ui.widget.js', ['block' => true]);\\n $this->Html->script('/attachments/js/vendor/jquery.iframe-transport.js', ['block' => true]);\\n $this->Html->script('/attachments/js/vendor/jquery.fileupload.js', ['block' => true]);\\n $this->Html->script('/attachments/js/app/lib/AttachmentsWidget.js', ['block' => true]);\\n $this->Html->css('/attachments/css/attachments.css', ['block' => true]);\\n }\",\n \"protected function registerAssets(){\\n\\n\\t\\t$cs = Yii::app()->clientScript;\\n\\t\\t$cs->registerCoreScript('jquery');\\n\\n\\t\\t$assets_path = dirname(__FILE__) . DIRECTORY_SEPARATOR.'assets';\\n\\t\\t$url = Yii::app()->assetManager->publish($assets_path, false, -1, YII_DEBUG);\\n\\t\\t$webroot = Yii::getPathOfAlias('webroot').DIRECTORY_SEPARATOR;\\n\\t\\t$plugins = array();\\n\\t\\t\\n\\t\\t// register redactor files\\n\\t\\t$cs->registerScriptFile($url.'/chosen.jquery.min.js');\\n\\t\\t$cs->registerCssFile($url.'/chosen.min.css');\\n\\t\\t\\n\\t\\t$cs->registerScript('chosen_'.$this->id, '\\n\\t\\t\\t$(\\\"#'.$this->id.'\\\").chosen({no_results_text: \\\"'.Yii::t('chosen', 'Ничего не найдено').'\\\"});\\n\\t\\t');\\n\\t\\t\\n\\t}\",\n \"function ahla_register_assets()\\n{\\n\\t$assets = AHLAURL . '/assets';\\n\\t$ver \\t = AHLAVER;\\n\\n\\t// theme style.css\\n\\twp_register_style( 'theme-style' , get_stylesheet_uri() );\\n\\n\\t// others\\n\\t$file = $assets.'/js/skip-link-focus-fix.js';\\n\\twp_register_script( 'skip-link-focus-fix', $file, array(), $ver, true );\\n\\n\\tdo_action('ahla_register_assets');\\n}\",\n \"function wmdm_assets() {\\n if (isset($_GET['page']) && $_GET['page'] == 'wmdm-options') {\\n\\n wp_enqueue_style( 'thickbox' ); // Stylesheet used by Thickbox\\n wp_enqueue_script( 'thickbox' );\\n wp_enqueue_script( 'media-upload' );\\n\\n wp_register_script('wmdm_admin', plugins_url( '/js/dot_cfi_admin.js' , __FILE__ ), array( 'thickbox', 'media-upload' ));\\n wp_enqueue_script('wmdm_admin');\\n\\n wp_enqueue_style( 'plugin-admin', plugin_dir_url(__FILE__).'styles/admin-styles.css' );\\n }\\n\\n }\",\n \"function Define_Resources() : void\\n {\\n for($i = 0;$i < count($this->Scripts);$i++)\\n {\\n if($this->Scripts[$i] instanceof stdClass)\\n {\\n wp_enqueue_script($this->Scripts[$i]->Handle,$this->Scripts[$i]->Src,$this->Scripts[$i]->Deps,$this->Scripts[$i]->Ver,$this->Scripts[$i]->InFooter);\\n }\\n }\\n for($i = 0;$i < count($this->Styles);$i++)\\n {\\n if($this->Styles[$i] instanceof stdClass)\\n {\\n wp_enqueue_style($this->Styles[$i]->Handle,$this->Styles[$i]->Src,$this->Styles[$i]->Deps,$this->Styles[$i]->Ver,$this->Styles[$i]->Media);\\n }\\n }\\n }\",\n \"private function register_files() {\\n\\t\\tif( $this->type === self::STYLE ) {\\n\\t\\t\\twp_register_style( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['media'] );\\n\\t\\t} else if ( $this->type === self::SCRIPT ) {\\n\\t\\t\\twp_register_script( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['in_footer'] );\\n\\t\\t}\\n\\t}\",\n \"function register_crunchpress_panel_styles(){\\r\\n\\t\\r\\n\\t\\twp_enqueue_style('jquery-ui',CP_PATH_URL.'/framework/stylesheet/jquery-ui.css');\\r\\n\\t\\twp_enqueue_style('cp-panel',CP_PATH_URL.'/framework/stylesheet/cp-panel.css');\\r\\n\\t\\twp_enqueue_style('mini-color',CP_PATH_URL.'/framework/stylesheet/jquery.miniColors.css');\\r\\n\\t\\twp_enqueue_style('confirm-dialog',CP_PATH_URL.'/framework/stylesheet/jquery.confirm.css');\\r\\n\\t\\twp_enqueue_style('jquery-timepicker',CP_PATH_URL.'/framework/stylesheet/jquery.ui.timepicker.css');\\r\\n\\t\\t\\r\\n\\t}\",\n \"public function register_plugin_styles() {\\n\\t\\twp_register_style ( 'tr-plugin-styles', plugins_url ( 'tr_top_ratter/css/tr_top_ratter.css?v=' . microtime () ) );\\n\\t\\twp_enqueue_style ( 'tr-plugin-styles' );\\n\\t\\t\\n\\t\\twp_register_style ( 'tr_jquery_custom_style', plugins_url ( 'tr_top_ratter/css/jquery-ui.min.css' ) );\\n\\t\\twp_enqueue_style ( 'tr_jquery_custom_style' );\\n\\t}\",\n \"public function enqueue_assets() {\\n\\t\\t\\twp_enqueue_style( 'jquery-swiper' );\\n\\t\\t\\twp_enqueue_script( 'jquery-swiper' );\\n\\t\\t}\",\n \"function stock_toolkit_files(){\\n wp_enqueue_style( 'owl-carousel', plugin_dir_url( __FILE__ ). 'assets/css/owl.carousel.css');\\n wp_enqueue_script( 'owl-carousel', plugin_dir_url( __FILE__ ). 'assets/js/owl.carousel.min.js', array('jquery'), '20120206', true);\\n}\",\n \"function wwt_include_javascript_and_css() {\\r\\n wp_enqueue_script('jquery');\\r\\n wp_enqueue_script('jquery-ui', plugin_dir_url('js/libs/jquery-ui-1.11.2.min.js', __FILE__), array('jquery'), '1.11.2');\\r\\n wp_enqueue_script('barcode-component', plugin_dir_url(__FILE__) . 'js/SimpleBarcodeApi.js', array('jquery', 'jquery-ui'));\\r\\n\\r\\n wp_enqueue_style('jquery-ui', plugins_url('js/libs/jquery-ui-1.11.2.min.css', __FILE__));\\r\\n}\",\n \"public function admin_enqueue_scripts()\\n\\t{\\n\\t\\twp_register_style( 'go-git', plugins_url( 'components/css/go-git.css', __DIR__ ), array(), 1 );\\n\\t\\twp_enqueue_style( 'go-git' );\\n\\t}\",\n \"function howes_register_required_plugins(){\\n\\t\\n\\t/**\\n\\t * Array of plugin arrays. Required keys are name and slug.\\n\\t * If the source is NOT from the .org repo, then source is also required.\\n\\t */\\n\\t$plugins = array(\\n\\t\\tarray(\\n\\t\\t\\t'name' \\t\\t\\t\\t=> 'Revolution Slider', // The plugin name\\n\\t\\t\\t'slug' \\t\\t\\t\\t=> 'revslider', // The plugin slug (typically the folder name)\\n\\t\\t\\t'source' \\t\\t\\t\\t=> get_template_directory() . '/inc/plugins/revslider.zip', // The plugin source\\n\\t\\t\\t'required' \\t\\t\\t\\t=> true, // If false, the plugin is only 'recommended' instead of required\\n\\t\\t\\t'version' \\t\\t\\t\\t=> '5.4.7.4', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\\n\\t\\t\\t'force_activation' \\t\\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\\n\\t\\t\\t'force_deactivation' \\t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\\n\\t\\t\\t'external_url' \\t\\t\\t=> '', // If set, overrides default API URL and points to an external URL\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' \\t\\t\\t\\t=> 'WPBakery Visual Composer', // The plugin name\\n\\t\\t\\t'slug' \\t\\t\\t\\t=> 'js_composer', // The plugin slug (typically the folder name)\\n\\t\\t\\t'source' \\t\\t\\t\\t=> get_template_directory() . '/inc/plugins/js_composer.zip', // The plugin source\\n\\t\\t\\t'required' \\t\\t\\t\\t=> true, // If false, the plugin is only 'recommended' instead of required\\n\\t\\t\\t'version' \\t\\t\\t\\t=> '5.4.7', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\\n\\t\\t\\t'force_activation' \\t\\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\\n\\t\\t\\t'force_deactivation' \\t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\\n\\t\\t\\t'external_url' \\t\\t\\t=> '', // If set, overrides default API URL and points to an external URL\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' \\t\\t\\t\\t=> 'CF Post Formats', // The plugin name\\n\\t\\t\\t'slug' \\t\\t\\t\\t=> 'cf-post-formats', // The plugin slug (typically the folder name)\\n\\t\\t\\t'source' \\t\\t\\t\\t=> get_template_directory() . '/inc/plugins/cf-post-formats.zip', // The plugin source\\n\\t\\t\\t'required' \\t\\t\\t\\t=> true, // If false, the plugin is only 'recommended' instead of required\\n\\t\\t\\t'version' \\t\\t\\t\\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\\n\\t\\t\\t'force_activation' \\t\\t=> true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\\n\\t\\t\\t'force_deactivation' \\t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\\n\\t\\t\\t'external_url' \\t\\t\\t=> '', // If set, overrides default API URL and points to an external URL\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' \\t\\t\\t\\t=> 'Envato Market', // The plugin name\\n\\t\\t\\t'slug' \\t\\t\\t\\t=> 'envato-market', // The plugin slug (typically the folder name)\\n\\t\\t\\t'source' \\t\\t\\t\\t=> get_template_directory() . '/inc/plugins/envato-market.zip', // The plugin source\\n\\t\\t\\t'required' \\t\\t\\t\\t=> true, // If false, the plugin is only 'recommended' instead of required\\n\\t\\t\\t'version' \\t\\t\\t\\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\\n\\t\\t\\t'force_activation' \\t\\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\\n\\t\\t\\t'force_deactivation' \\t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\\n\\t\\t\\t'external_url' \\t\\t\\t=> '', // If set, overrides default API URL and points to an external URL\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => 'Breadcrumb NavXT',\\n\\t\\t\\t'slug' => 'breadcrumb-navxt',\\n\\t\\t\\t'required' => true,\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => 'Contact Form 7',\\n\\t\\t\\t'slug' => 'contact-form-7',\\n\\t\\t\\t'required' => true,\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => 'Max Mega Menu',\\n\\t\\t\\t'slug' => 'megamenu',\\n\\t\\t\\t'required' => false,\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => 'Easy Pricing Tables Lite by Fatcat Apps',\\n\\t\\t\\t'slug' => 'easy-pricing-tables',\\n\\t\\t\\t'required' => false,\\n\\t\\t),\\n\\t);\\n\\n\\t// Change this to your theme text domain, used for internationalising strings\\n\\t//$theme_text_domain = 'howes';\\n\\n\\t/**\\n\\t * Array of configuration settings. Amend each line as needed.\\n\\t * If you want the default strings to be available under your own theme domain,\\n\\t * leave the strings uncommented.\\n\\t * Some of the strings are added into a sprintf, so see the comments at the\\n\\t * end of each line for what each argument will be.\\n\\t */\\n\\t$config = array(\\n\\t\\t'domain' \\t\\t=> 'howes', \\t// Text domain - likely want to be the same as your theme.\\n\\t\\t'default_path' \\t\\t=> '', \\t// Default absolute path to pre-packaged plugins\\n\\t\\t//'parent_menu_slug' \\t=> 'themes.php', \\t\\t\\t\\t// Default parent menu slug\\n\\t\\t//'parent_url_slug' \\t=> 'themes.php', \\t\\t\\t\\t// Default parent URL slug\\n\\t\\t'menu' \\t\\t=> 'install-required-plugins', \\t// Menu slug\\n\\t\\t'has_notices' \\t=> true, \\t// Show admin notices or not\\n\\t\\t'is_automatic' \\t=> true,\\t\\t\\t\\t\\t \\t// Automatically activate plugins after installation or not\\n\\t\\t'message' \\t\\t\\t=> '',\\t\\t\\t\\t\\t\\t\\t// Message to output right before the plugins table\\n\\t\\t'strings' \\t\\t=> array(\\n\\t\\t\\t'page_title' \\t\\t\\t=> __( 'Install Required Plugins', 'howes' ),\\n\\t\\t\\t'menu_title' \\t\\t\\t=> __( 'Install Plugins', 'howes' ),\\n\\t\\t\\t'installing' \\t\\t\\t=> __( 'Installing Plugin: %s', 'howes' ), // %1$s = plugin name\\n\\t\\t\\t'oops' \\t\\t\\t=> __( 'Something went wrong with the plugin API.', 'howes' ),\\n\\t\\t\\t'notice_can_install_required' \\t\\t\\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_can_install_recommended'\\t\\t\\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_cannot_install' \\t\\t\\t\\t\\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_can_activate_required' \\t\\t\\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_can_activate_recommended'\\t\\t\\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_cannot_activate' \\t\\t\\t\\t\\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_ask_to_update' \\t\\t\\t\\t\\t\\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'notice_cannot_update' \\t\\t\\t\\t\\t\\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\\n\\t\\t\\t'install_link' \\t\\t\\t\\t\\t \\t\\t\\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\\n\\t\\t\\t'activate_link' \\t\\t\\t\\t \\t\\t\\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\\n\\t\\t\\t'return' \\t\\t\\t=> __( 'Return to Required Plugins Installer', 'howes' ),\\n\\t\\t\\t'plugin_activated' \\t\\t\\t=> __( 'Plugin activated successfully.', 'howes' ),\\n\\t\\t\\t'complete' \\t\\t\\t\\t\\t\\t\\t\\t\\t=> __( 'All plugins installed and activated successfully. %s', 'howes' ), // %1$s = dashboard link\\n\\t\\t)\\n\\t);\\n\\ttgmpa( $plugins, $config );\\n}\",\n \"public function wcufd_load_styles_scripts() {\\n //main script file of the plugin\\n wp_register_script( 'wcufd-front-end-js', plugins_url( 'js/wcufd-script.js',__FILE__ ), array('jquery'), '', true );\\n wp_localize_script( 'wcufd-front-end-js', 'wcufd_vars', array(\\n 'ajaxurl' => admin_url('admin-ajax.php'),\\n 'current_user_can' => current_user_can('administrator')\\n )\\n );\\n wp_register_style( 'wcufd-front-end-style', plugins_url( 'css/wcufd-style.css',__FILE__ ) );\\n }\",\n \"public function form_css(){\\n\\t\\twp_register_style( 'lead_gen_plugin', plugin_dir_url( __FILE__ ) . 'css/style.css', false );\\n\\t\\twp_enqueue_style( 'lead_gen_plugin' );\\n\\t}\",\n \"function insert_resouces($resources) {\\r\\n foreach ($resources['css'] as $css) {\\r\\n echo '';\\r\\n }\\r\\n foreach ($resources['js'] as $js) {\\r\\n echo '';\\r\\n }\\r\\n }\",\n \"function example-theme_load_theme_assets() {\\n\\n\\t$assetpath_css = getenv( 'WP_ENV' ) === 'production' ? '/assets/rev/' . asset_path( 'css/main.css' ) : '/assets/build/css/main.css';\\n\\t$assetpath_js = getenv( 'WP_ENV' ) === 'production' ? '/assets/rev/' . asset_path( 'js/app.js' ) : '/assets/build/js/app.js';\\n\\n\\tif ( ! is_admin() ) {\\n\\t\\twp_enqueue_style( 'example-theme-css-main', get_template_directory_uri() . $assetpath_css );\\n\\t}\\n\\n\\twp_register_script( 'example-theme-script-main', get_template_directory_uri() . $assetpath_js, array(), '1.0', true );\\n\\twp_enqueue_script( 'example-theme-script-main' );\\n\\n}\",\n \"public function trad_load_css_and_jss() {\\n\\t\\tif ( ! $this->trad_ioy_shortcodes_activated ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// this tells us if we want to load the .min versions of css and js when available\\n\\t\\t$trad_use_min_js = $this->get_setting( 'trad_use_min_js' );\\n\\n\\t\\t// load our plugin-specific css\\n\\t\\tif ( $this->get_setting( 'trad_load_trad_ioy_css' ) ) {\\n\\t\\t\\twp_enqueue_style( 'trad-ioy', plugins_url(\\n\\t\\t\\t\\t'css/stylesheet.css', dirname( __FILE__ ) ) );\\n\\t\\t}\\n\\n\\t\\t// load our custom css\\n\\t\\tif ( $this->get_setting( 'trad_ioy_local_css_file' ) ) {\\n\\t\\t\\twp_enqueue_style( 'trad-ioy-custom', $this->get_setting( 'trad_ioy_local_css_file' ) );\\n\\t\\t}\\n\\n\\t\\tif ( $this->get_setting( 'trad_ioy_local_css' ) ) {\\n\\t\\t\\tadd_action( 'wp_head', array( $this, 'trad_ioy_add_custom_css' ) );\\n\\t\\t}\\n\\t\\t// we definitely need jQuery\\n\\t\\twp_enqueue_script( 'jquery' );\\n\\n\\t\\tif ( $this->get_setting( 'trad_load_cookie_js' ) ) {\\n\\t\\t\\twp_enqueue_script( 'trad-cookie-js', plugins_url(\\n\\t\\t\\t\\t\\t$this->min_or_full( 'js/jquery/jquery.cookie', 'js', false ), dirname( __FILE__ ) ), array( 'jquery' ),\\n\\t\\t\\t\\tfalse, true );\\n\\t\\t}\\n\\n\\t\\tif ( $this->get_setting( 'trad_load_scrollto_js' ) ) {\\n\\t\\t\\twp_enqueue_script( 'trad-scrollto-js', plugins_url(\\n\\t\\t\\t\\t\\t$this->min_or_full( 'js/jquery/jquery.scrollTo-1.4.3.1', 'js', $trad_use_min_js ), dirname( __FILE__ ) ),\\n\\t\\t\\t\\tarray( 'jquery' ), false, true );\\n\\t\\t}\\n\\n\\t\\t// add our special javascipt\\n\\t\\tadd_action( 'wp_footer', array( $this, 'trad_ioy_js' ) );\\n\\t}\",\n \"public function register_plugin_styles() {\\n\\t\\twp_enqueue_style( 'teamManager', plugins_url( '/css/TeamManager.css' , __FILE__ ) ); \\n\\t}\",\n \"public function onAfterInstall()\\n {\\n craft()->db->createCommand()->update(\\n 'fields',\\n array('type' => 'BetterRedactor'),\\n array('type' => 'RichText')\\n );\\n\\n $publicDirectory = craft()->path->appPath . '../../public/redactor_plugins';\\n\\n if (!IOHelper::folderExists($publicDirectory)) {\\n $initialDirectory = craft()->path->getPluginsPath()\\n . '/betterredactor/redactor_plugins';\\n\\n $files = array_filter(\\n scandir($initialDirectory),\\n function($file) use ($initialDirectory) {\\n return is_file(\\\"$initialDirectory/$file\\\");\\n }\\n );\\n\\n foreach ($files as $file) {\\n if (preg_match('((.js|.css)$)i', $file)) {\\n IOHelper::copyFile(\\n \\\"$initialDirectory/$file\\\",\\n \\\"$publicDirectory/$file\\\"\\n );\\n }\\n }\\n }\\n }\",\n \"public function register_frontend_assets() {\\n\\t\\twp_enqueue_style( 'ghc-functionality', $this->plugin_dir_url( 'dist/css/style.min.css' ), array(), $this->version );\\n\\n\\t\\twp_register_script( 'ghc-content-types-filter', $this->plugin_dir_url( 'dist/js/content-types.min.js' ), array( 'jquery' ), $this->version, true );\\n\\n\\t\\twp_register_script( 'ghc-maps', $this->plugin_dir_url( 'dist/js/maps.min.js' ), array( 'jquery', 'google-maps-api' ), $this->version, true );\\n\\t\\twp_register_script( 'google-maps-api', 'https://maps.googleapis.com/maps/api/js?key=' . get_option( 'options_api_key' ), array(), null, true ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters -- let Google Maps handle cache invalidation.\\n\\n\\t\\twp_enqueue_script( 'ghc-popups', $this->plugin_dir_url( 'dist/js/popups.min.js' ), array( 'jquery', 'popup-maker-site' ), $this->version, true );\\n\\n\\t\\twp_register_script( 'ghc-robly-lists', $this->plugin_dir_url( 'dist/js/robly-lists.min.js' ), array( 'jquery' ), $this->version, true );\\n\\n\\t\\twp_register_script( 'slick', $this->plugin_dir_url( 'dist/js/slick.min.js' ), array( 'jquery' ), $this->version, true );\\n\\t\\twp_register_style( 'slick', $this->plugin_dir_url( 'dist/css/slick.min.css' ), array(), $this->version, false );\\n\\t}\",\n \"function cam_enqueue_related_pages_scripts_and_styles(){\\n // wp_enqueue_style('related-styles', plugins_url('/css/bootstrap.min.css', __FILE__));\\n wp_enqueue_script('releated-script', plugins_url( '/js/custom.js' , __FILE__ ), array('jquery','jquery-ui-droppable','jquery-ui-draggable', 'jquery-ui-sortable'));\\n }\",\n \"static function enqueue_scripts(){\\n\\t\\tself::include_css();\\n\\t\\tself::include_js();\\n\\t}\",\n \"public function addPluginAdminResources( $page ) {\\n global $laterpay_version;\\n wp_register_style(\\n 'laterpay-admin',\\n LATERPAY_ASSET_PATH . '/static/css/laterpay-admin.css',\\n array(),\\n $laterpay_version\\n );\\n wp_enqueue_style('laterpay-admin');\\n\\n wp_register_script(\\n 'jquery',\\n '//code.jquery.com/jquery-1.11.0.min.js'\\n );\\n\\n if ( $page == 'post.php' || $page == 'post-new.php' ) {\\n $this->getPricingPostController()->loadAssets();\\n }\\n }\",\n \"public function js_css_public(){\\n\\n wp_enqueue_style('asRange', plugin_dir_url(__FILE__). 'libs/assets/css/asRange.min.css', false, $this->version());\\n wp_enqueue_style('select2', plugin_dir_url(__FILE__). 'libs/assets/css/select2.min.css', false, $this->version());\\n wp_enqueue_style('flatpickr', plugin_dir_url(__FILE__). 'libs/assets/css/flatpickr.min.css', false, $this->version());\\n wp_enqueue_style('metform-ui', plugin_dir_url(__FILE__). 'libs/assets/css/metform-ui.css', false, $this->version());\\n wp_enqueue_style('font-awesome', plugin_dir_url(__FILE__). 'libs/assets/css/font-awesome.min.css', false, $this->version());\\n wp_enqueue_style('metform-style', plugin_dir_url(__FILE__). 'libs/assets/css/style.css', false, $this->version());\\n \\n wp_enqueue_script('asRange', plugin_dir_url(__FILE__) . 'libs/assets/js/jquery-asRange.min.js', array(), $this->version(), true);\\n wp_enqueue_script('select2', plugin_dir_url(__FILE__) . 'libs/assets/js/select2.min.js', array(), $this->version(), true);\\n wp_enqueue_script('flatpickr', plugin_dir_url(__FILE__) . 'libs/assets/js/flatpickr.js', array(), $this->version(), true);\\n \\n wp_register_script('recaptcha', 'https://www.google.com/recaptcha/api.js?onload=onloadMetFormCallback&render=explicit', array(), $this->version(), true);\\n wp_enqueue_script('metform-submission', plugin_dir_url(__FILE__) . 'libs/assets/js/submission.js', array(), $this->version(), true);\\n \\n\\n }\",\n \"function wptrebs_styles_scripts() {\\n wp_enqueue_style( 'wptrebs_feed', plugins_url('..\\\\assets\\\\css\\\\style.css', __FILE__) );\\n}\",\n \"function theme_assets() {\\n\\t// load css\\n\\twp_enqueue_style( 'font-awesome-css', get_template_directory_uri() . '/css/fontawesome.css' );\\n\\twp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.css' );\\n\\twp_enqueue_style( 'style-css', get_template_directory_uri() . '/style.css', false, time() );\\n\\n\\t// load javascript\\n\\twp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '', true );\\n wp_enqueue_script( 'waterfall-js', get_template_directory_uri() . '/js/waterfall.js', array(), '', true );\\n\\twp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', array(), '', true);\\n}\",\n \"function wm_customizer_preview_enqueue_assets() {\\n $ctime = filemtime( get_template_directory() . '/customizer/css/wm-customizer-preview.css' );\\n wp_enqueue_style( 'wm-customizer-preview-css', get_template_directory_uri() . '/customizer/css/wm-customizer-preview.css', array(), $ctime );\\n $ctime = filemtime( get_template_directory() . '/customizer/js/wm-customizer-preview.js' );\\n wp_enqueue_script( 'wm-customizer-preview-js', get_template_directory_uri() . '/customizer/js/wm-customizer-preview.js', array( 'jquery' ), $ctime, true );\\n }\",\n \"public function enqueue_assets() {\\n\\t\\twp_enqueue_script( 'satispress-admin' );\\n\\t\\twp_enqueue_style( 'satispress-admin' );\\n\\t}\",\n \"function addScriptResources()\\t{\\n\\t\\tif (t3lib_extMgm::isLoaded('t3jquery')) {\\n\\t\\t\\trequire_once(t3lib_extMgm::extPath('t3jquery').'class.tx_t3jquery.php');\\n\\t\\t}\\n\\n\\t\\t// checks if t3jquery is loaded\\n\\t\\tif (T3JQUERY === TRUE) {\\n\\t\\t\\ttx_t3jquery::addJqJS();\\n\\t\\t} else {\\n\\t\\t\\tif($this->conf['jQueryRes']) $this->jsFile[] = $this->conf['jQueryRes'];\\n\\t\\t\\tif($this->conf['tooltipJSRes']) $this->jsFile[] = $this->conf['tooltipJSRes'];\\n\\t\\t}\\n\\n\\t\\t// Fix moveJsFromHeaderToFooter (add all scripts to the footer)\\n\\t\\tif ($GLOBALS['TSFE']->config['config']['moveJsFromHeaderToFooter']) {\\n\\t\\t\\t$allJsInFooter = TRUE;\\n\\t\\t} else {\\n\\t\\t\\t$allJsInFooter = FALSE;\\n\\t\\t}\\n\\n\\t\\t$pagerender = $GLOBALS['TSFE']->getPageRenderer();\\n\\t\\t\\n\\t\\t// add all defined JS files\\n\\t\\tif (count($this->jsFile) > 0) {\\n\\t\\t\\tforeach ($this->jsFile as $jsToLoad) {\\n\\t\\t\\t\\tif (T3JQUERY === TRUE) {\\n\\t\\t\\t\\t\\t$conf = array(\\n\\t\\t\\t\\t\\t\\t'jsfile' => $jsToLoad,\\n\\t\\t\\t\\t\\t\\t'tofooter' => ($this->conf['jsInFooter'] || $allJsInFooter),\\n\\t\\t\\t\\t\\t\\t'jsminify' => $this->conf['jsMinify'],\\n\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\ttx_t3jquery::addJS('', $conf);\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$file = $GLOBALS['TSFE']->tmpl->getFileName($jsToLoad);\\n\\t\\t\\t\\t\\tif ($file) {\\n\\t\\t\\t\\t\\t\\tif ($allJsInFooter) {\\n\\t\\t\\t\\t\\t\\t\\t$pagerender->addJsFooterFile($file, 'text/javascript', $this->conf['jsMinify']);\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t$pagerender->addJsFile($file, 'text/javascript', $this->conf['jsMinify']);\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tt3lib_div::devLog(\\\"'{\\\".$jsToLoad.\\\"}' does not exists!\\\", $this->extKey, 2);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// add defined CSS file\\n\\t\\tif($this->conf['cssFile']) {\\n\\t\\t\\t// Add script only once\\n\\t\\t\\t$css = $GLOBALS['TSFE']->tmpl->getFileName($this->conf['cssFile']);\\n\\t\\t\\tif ($css) {\\n\\t\\t\\t\\t$pagerender->addCssFile($css, 'stylesheet', 'all', '', $this->conf['cssMinify']);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tt3lib_div::devLog(\\\"'{\\\".$this->conf['cssFile'].\\\"}' does not exists!\\\", $this->extKey, 2);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"public function loadAssets()\\n {\\n add_action('admin_enqueue_scripts', [$this, 'enqueueAdminAssets']);\\n add_filter('script_loader_tag', [$this, 'addAssetAttribute'], 10, 3);\\n }\",\n \"function thesaasx_enqueue_assets() {\\n\\n\\t$my_theme = wp_get_theme();\\n\\t$version = $my_theme->get( 'Version' );\\n\\n\\t// Google fonts.\\n\\t//\\n\\twp_enqueue_style( 'thesaasx-fonts', thesaasx_fonts_url(), array(), $version );\\n\\n\\n\\t// Plugin styles.\\n\\t//\\n\\n\\twp_enqueue_style( 'font-awesome', THE_PLUGIN_URL . 'assets/vendor/font-awesome/css/font-awesome.min.css' , array(), $version );\\n\\twp_enqueue_style( 'themify-icons', THE_PLUGIN_URL . 'assets/vendor/themify-icons/themify-icons.css' , array(), $version );\\n\\twp_enqueue_style( 'et-line', THE_PLUGIN_URL . 'assets/vendor/et-line/style.css' , array(), $version );\\n\\twp_enqueue_style( 'aos', THE_PLUGIN_URL . 'assets/vendor/aos/aos.css' , array(), $version );\\n\\twp_enqueue_style( 'jarallax', THE_PLUGIN_URL . 'assets/vendor/jarallax/jarallax.css' , array(), $version );\\n\\twp_enqueue_style( 'slick', THE_PLUGIN_URL . 'assets/vendor/slick/slick.css' , array(), $version );\\n\\n\\n\\n\\t// Plugin scripts.\\n\\t//\\n\\twp_enqueue_script( 'bootstrap', THE_PLUGIN_URL . 'assets/vendor/bootstrap/js/bootstrap.bundle.min.js' , array( 'jquery' ), $version, true );\\n\\twp_enqueue_script( 'smoothscroll', THE_PLUGIN_URL . 'assets/vendor/smoothscroll/SmoothScroll.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'objectfit-polyfill', THE_PLUGIN_URL . 'assets/vendor/objectfit-polyfill/objectFitPolyfill.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'aos', THE_PLUGIN_URL . 'assets/vendor/aos/aos.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'jquery-countdown', THE_PLUGIN_URL . 'assets/vendor/jquery-countdown/jquery.countdown.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'waypoints', THE_PLUGIN_URL . 'assets/vendor/waypoints/jquery.waypoints.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'countup', THE_PLUGIN_URL . 'assets/vendor/countup/countUp.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'granim', THE_PLUGIN_URL . 'assets/vendor/granim/granim.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'slick', THE_PLUGIN_URL . 'assets/vendor/slick/slick.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'typed', THE_PLUGIN_URL . 'assets/vendor/typed/typed.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'lity', THE_PLUGIN_URL . 'assets/vendor/lity/lity.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'imagesloaded', THE_PLUGIN_URL . 'assets/vendor/imagesloaded/imagesloaded.pkgd.min.js' , array( ), $version, true );\\n\\twp_enqueue_script( 'shufflejs', THE_PLUGIN_URL . 'assets/vendor/shuffle/shuffle.min.js' , array('imagesloaded'), $version, true );\\n\\twp_enqueue_script( 'jarallax', THE_PLUGIN_URL . 'assets/vendor/jarallax/jarallax.min.js' , array( 'jquery' ), $version, true );\\n\\twp_enqueue_script( 'jarallax-video', THE_PLUGIN_URL . 'assets/vendor/jarallax/jarallax-video.min.js' , array( 'jquery' ), $version, true );\\n\\n\\n\\t// Theme style.\\n\\t//\\n\\twp_enqueue_style( 'thesaasx', THE_PLUGIN_URL . 'assets/css/page.min.css' , array(), $version );\\n\\n\\t// Custom style\\n\\t$custom_css = thesaasx_custom_font_style();\\n\\t$custom_css .= thesaasx_custom_color_style();\\n\\tif ( $custom_css !== '' ) {\\n\\t\\twp_add_inline_style( 'thesaasx', $custom_css );\\n\\t}\\n\\n\\n\\n\\t// Theme script.\\n\\t//\\n\\twp_enqueue_script( 'thesaasx', THE_PLUGIN_URL . 'assets/js/page.min.js' , array( 'jquery', 'bootstrap' ), $version, true );\\n\\n\\t$googleApiKey_escaped = esc_js( get_theme_mod( 'google_api_key', 'AIzaSyDRBLFOTTh2NFM93HpUA4ZrA99yKnCAsto' ) );\\n\\t$googleAnalyticsId_escaped = esc_js( get_theme_mod( 'google_analytics_id' ) );\\n\\t$googlerecaptchav3_escaped = esc_js( get_theme_mod( 'google_recaptcha3_public' ) );\\n\\t$inline_script = \\\"page.config({ googleApiKey: '\\\". $googleApiKey_escaped .\\\"', googleAnalyticsId: '\\\". $googleAnalyticsId_escaped .\\\"', reCaptchaV3SiteKey: '\\\". $googlerecaptchav3_escaped .\\\"', contactFormAction: '\\\". admin_url('admin-ajax.php') .\\\"' });\\\";\\n\\t$inline_script .= get_theme_mod( 'additional_script' );\\n\\twp_add_inline_script( 'thesaasx', \\\"jQuery(function($) { \\\". $inline_script .\\\" });\\\" );\\n\\n\\n\\t// Comments\\n\\t//\\n\\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\\n\\t\\twp_enqueue_script( 'comment-reply' );\\n\\t}\\n}\",\n \"public function register_css () {\\n wp_register_style(Plugin::PLUGIN_NAME, plugins_url('assets/css/styles.css', __FILE__), array(), filemtime(Plugin::getPluginPath() . '/assets/css/styles.css'));\\n }\",\n \"function perusecretland_css_js() {\\n wp_enqueue_style( 'perusecretland-fonts', get_stylesheet_directory_uri() . '/css/fonts.css');\\n wp_enqueue_style( 'perusecretland-responsive', get_stylesheet_directory_uri() . '/css/responsive.css');\\n wp_enqueue_style( 'jquery-chosen', get_stylesheet_directory_uri() . '/css/chosen.min.css');\\n wp_enqueue_script( 'perusecretland-easing', get_stylesheet_directory_uri() . '/js/jquery.easing.1.3.js', array('jquery'));\\n wp_enqueue_script( 'jquery-chosen', get_stylesheet_directory_uri() . '/js/chosen.jquery.min.js', array('jquery'));\\n wp_enqueue_script( 'perusecretland-scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array('jquery'));\\n wp_enqueue_script( 'perusecretland-footer-scripts', get_stylesheet_directory_uri() . '/js/footer.scripts.js', array('jquery', 'jquery-chosen'), false, true );\\n }\",\n \"public function settings_assets()\\n {\\n // We're including the WP media scripts here because they're needed for the image upload field\\n // If you're not including an image upload then you can leave this function call out\\n wp_enqueue_media();\\n\\n if (defined('WP_SUAPI_DEBUG') && WP_SUAPI_DEBUG) {\\n wp_register_script($this->parent->_token . '-settings-js', $this->parent->assets_url . 'js/src/' . $this->parent->_token . '-settings' . $this->parent->script_suffix . '.js', array('jquery'), '1.0.0');\\n } else {\\n wp_register_script($this->parent->_token . '-settings-js', $this->parent->assets_url . 'js/' . $this->parent->_token . '-settings' . $this->parent->script_suffix . '.js', array('jquery'), '1.0.0');\\n }\\n wp_enqueue_script($this->parent->_token . '-settings-js');\\n }\",\n \"public function enqueue_css_js() {\\n\\t\\twp_enqueue_style('wp-pointer');\\n\\t\\twp_enqueue_script('wp-pointer');\\n\\t}\",\n \"public function theme_assets_handler() {\\n\\t\\t\\n\\t\\t$version = wp_get_theme()->get('Version');\\n\\n\\t\\t//Enqueue stylesheets\\n\\t\\tforeach ($this->styles as $style) {\\n\\t\\t\\twp_register_style($this->prefix . $style['slug'], get_template_directory_uri() . $style['path'], $style['deps'], $version);\\n\\t\\t\\twp_enqueue_style($this->prefix . $style['slug']);\\n\\n\\n\\n\\t\\t}\\n\\t\\t\\n\\t\\t//Enqueue Scripts\\n\\t\\tforeach ($this->scripts as $script) {\\n\\t\\t\\twp_register_script($this->prefix . $script['slug'], get_template_directory_uri() . $script['path'], $script['deps'], $version);\\n\\t\\t\\twp_enqueue_script($this->prefix . $script['slug']);\\n\\t\\t}\\n\\t\\t\\n\\t\\t//Enqueue WP Scripts\\n\\t\\tif(is_array($this->wp_scripts)){\\n\\t\\t\\t\\n\\t\\t\\tforeach ($this->wp_scripts as $script) {\\n\\t\\t\\t\\twp_enqueue_script($script);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function register_assets()\\n{\\n\\n if (is_single()) {\\n wp_enqueue_style( //fonctions pour charger un feuille de style css personalisé sur une page en particulier avec la fonction if(is_front_page)\\n 'jpg-custom-single-css',\\n get_template_directory_uri() . '/assets/styles/projets.css',\\n array(),\\n '1.0'\\n );\\n }\\n if (is_page()) {\\n wp_enqueue_style( //fonctions pour charger un feuille de style css personalisé sur une page en particulier avec la fonction if(is_front_page)\\n 'jpg-custom-page-css',\\n get_template_directory_uri() . '/assets/styles/page.css',\\n array(),\\n '1.0'\\n );\\n }\\n\\n\\n wp_enqueue_style(\\n 'jpg',\\n get_stylesheet_uri(),\\n array(),\\n '1.0'\\n\\n );\\n wp_enqueue_style(\\n 'wordpress-css',\\n \\\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css\\\"\\n\\n );\\n wp_enqueue_style(\\n 'jpg-custom-css',\\n get_template_directory_uri() . '/assets/styles/main.css',\\n array(),\\n '1.0'\\n\\n );\\n\\n\\n\\n\\nwp_enqueue_script(\\n 'wordpress',\\n 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js'\\n\\n);\\n\\nwp_enqueue_script(\\n 'jpg',\\n get_template_directory_uri() . '/assets/scripts/main.js',\\n array('wordpress'),\\n '1.0',\\n true\\n);\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.7129204","0.7021796","0.69685644","0.6954948","0.69465375","0.69411665","0.6929059","0.6929059","0.68026865","0.6799345","0.67820996","0.6755606","0.6746891","0.6736872","0.672963","0.6720726","0.6688862","0.66869","0.6658118","0.6638562","0.6635246","0.66327864","0.66158724","0.66094226","0.6598225","0.6589436","0.65883684","0.6584506","0.65512544","0.65391916","0.65321624","0.6526954","0.6526674","0.652415","0.6515036","0.6512448","0.65103894","0.65072906","0.6491211","0.64819604","0.64744353","0.6473514","0.6472911","0.64705145","0.64576256","0.64523375","0.6447093","0.64403665","0.643673","0.64363277","0.6430608","0.64295894","0.6426485","0.6423421","0.642223","0.6407834","0.64047426","0.6401861","0.64011663","0.6397678","0.6396724","0.6388575","0.638233","0.6374564","0.6368143","0.63673586","0.6364124","0.63588744","0.6354696","0.6352865","0.6350581","0.634976","0.63475794","0.634733","0.6342696","0.634215","0.6341829","0.63399583","0.6339062","0.63362837","0.63352555","0.6334872","0.63346523","0.6328191","0.6328079","0.63279456","0.6319914","0.6318915","0.63183755","0.63166785","0.6316152","0.6308976","0.63084656","0.62992626","0.62968695","0.6296207","0.62958884","0.6292182","0.6290506","0.62880087","0.6285942"],"string":"[\n \"0.7129204\",\n \"0.7021796\",\n \"0.69685644\",\n \"0.6954948\",\n \"0.69465375\",\n \"0.69411665\",\n \"0.6929059\",\n \"0.6929059\",\n \"0.68026865\",\n \"0.6799345\",\n \"0.67820996\",\n \"0.6755606\",\n \"0.6746891\",\n \"0.6736872\",\n \"0.672963\",\n \"0.6720726\",\n \"0.6688862\",\n \"0.66869\",\n \"0.6658118\",\n \"0.6638562\",\n \"0.6635246\",\n \"0.66327864\",\n \"0.66158724\",\n \"0.66094226\",\n \"0.6598225\",\n \"0.6589436\",\n \"0.65883684\",\n \"0.6584506\",\n \"0.65512544\",\n \"0.65391916\",\n \"0.65321624\",\n \"0.6526954\",\n \"0.6526674\",\n \"0.652415\",\n \"0.6515036\",\n \"0.6512448\",\n \"0.65103894\",\n \"0.65072906\",\n \"0.6491211\",\n \"0.64819604\",\n \"0.64744353\",\n \"0.6473514\",\n \"0.6472911\",\n \"0.64705145\",\n \"0.64576256\",\n \"0.64523375\",\n \"0.6447093\",\n \"0.64403665\",\n \"0.643673\",\n \"0.64363277\",\n \"0.6430608\",\n \"0.64295894\",\n \"0.6426485\",\n \"0.6423421\",\n \"0.642223\",\n \"0.6407834\",\n \"0.64047426\",\n \"0.6401861\",\n \"0.64011663\",\n \"0.6397678\",\n \"0.6396724\",\n \"0.6388575\",\n \"0.638233\",\n \"0.6374564\",\n \"0.6368143\",\n \"0.63673586\",\n \"0.6364124\",\n \"0.63588744\",\n \"0.6354696\",\n \"0.6352865\",\n \"0.6350581\",\n \"0.634976\",\n \"0.63475794\",\n \"0.634733\",\n \"0.6342696\",\n \"0.634215\",\n \"0.6341829\",\n \"0.63399583\",\n \"0.6339062\",\n \"0.63362837\",\n \"0.63352555\",\n \"0.6334872\",\n \"0.63346523\",\n \"0.6328191\",\n \"0.6328079\",\n \"0.63279456\",\n \"0.6319914\",\n \"0.6318915\",\n \"0.63183755\",\n \"0.63166785\",\n \"0.6316152\",\n \"0.6308976\",\n \"0.63084656\",\n \"0.62992626\",\n \"0.62968695\",\n \"0.6296207\",\n \"0.62958884\",\n \"0.6292182\",\n \"0.6290506\",\n \"0.62880087\",\n \"0.6285942\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":435,"cells":{"query":{"kind":"string","value":"uninstall plugin resources (css, js)"},"document":{"kind":"string","value":"function abl_droploader_uninstall($event, $step) {\n\t\tglobal $prefs;\n\n\t\t$state = 0;\n\t\t// uninstall prefs\n\t\tif (!safe_delete('txp_prefs', \"name LIKE 'abl_droploader.%'\")) {\n\t\t\tif ($state == 0) $state = E_WARNING;\n\t\t\terror_log('abl_droploader: WARNING: Removal of plugin preferences failed.');\n\t\t}\n\n\t\t// remove textpack entries\n\t\tif (!safe_delete('txp_lang', \"name LIKE 'abl_droploader%'\")) {\n\t\t\tif ($state == 0) $state = E_WARNING;\n\t\t\terror_log('abl_droploader: WARNING: Removal of obsolete textpack entries failed.');\n\t\t}\n\n\t\t// remove css, javascript, etc.\n\t\t$path = $prefs['path_to_site'];\n\t\t$resources = array(\n\t\t\t'/res/css/abl.droploader-app.css',\n\t\t\t'/res/js/abl.droploader-app.js',\n\t\t\t'/res/js/jquery.droploader.js',\n\t\t\t'/res/js/jquery.filedrop.js',\n\t\t\t'/res/css/',\n\t\t\t'/res/js/',\n\t\t\t'/res/',\n\t\t);\n\t\tforeach ($resources as $res) {\n\t\t\t$f = $path . $res;\n\t\t\tif (is_dir($f)) {\n\t\t\t\tif (!rmdir($f)) {\n\t\t\t\t\tif ($state == 0 or $state == E_NOTICE) $state = E_WARNING;\n\t\t\t\t\terror_log('abl_droploader: WARNING: Cannot remove directory \\'' . $f . '\\'.');\n\t\t\t\t}\n\t\t\t} elseif (is_file($f)) {\n\t\t\t\tif (!unlink($f)) {\n\t\t\t\t\tif ($state == 0 or $state == E_NOTICE) $state = E_WARNING;\n\t\t\t\t\terror_log('abl_droploader: WARNING: Cannot remove file \\'' . $f . '\\'.');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $state;\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function remove_plugin_assets() {\n wp_dequeue_style('roots-share-buttons'); // roots-share-buttons/assets/styles/share-buttons.css\n wp_dequeue_script('roots-share-buttons'); //roots-share-buttons/assets/scripts/share-buttons.js\n wp_dequeue_style('wp-biographia-bio'); //wp-biographia/css/wp-biographia-min.css\n}","function hxp_plugin_deactivation() {\n\twp_dequeue_style( 'hxp_custom_style' );\n\twp_deregister_style( 'hxp_custom_style' );\n\twp_dequeue_script( 'hxp_export_script' );\n\twp_dequeue_script( 'hxp_import_script' );\n\twp_deregister_script( 'hxp_export_script' );\n\t$hxp_upload_dir = wp_upload_dir();\n\thxp_rrmdir( $hxp_upload_dir['basedir'] . '/hxp_exports' );\n\thxp_rrmdir( $hxp_upload_dir['basedir'] . '/hxp_imports' );\n}","public function uninstallPlugin()\n {\n }","function uninstall(){}","public static function uninstall() {\n\t\tglobal $wpdb;\n\n\t\t$sql = \"\n\t\t\tDELETE\n\t\t\tFROM $wpdb->postmeta\n\t\t\tWHERE meta_key LIKE 'im8_additional_css%'\";\n\t\t$wpdb->query($sql);\n\n\t\tdelete_option(self::get_instance()->option_name);\n\t}","function uninstall_plugin($plugin)\n {\n }","public static function cleanResources()\n {\n File::deleteDirectory(resource_path('sass'));\n File::delete(resource_path('js/app.js'));\n File::delete(resource_path('js/bootstrap.js'));\n }","function wrmp_uninstall()\n{\n\tif(!class_exists('WildcardPluginInstaller'))\n\t{\n\t\trequire_once MYBB_ROOT . 'inc/plugins/wrmp/classes/installer.php';\n\t}\n\t$installer = new WildcardPluginInstaller(MYBB_ROOT . 'inc/plugins/wrmp/install_data.php');\n\t$installer->uninstall();\n\n\t// delete our cached version\n\twrmp_unset_cache_version();\n}","function uninstall(){\n\n }","function _h_remove_jetpack_footer_assets() {\n wp_deregister_script('sharing-js');\n\n // disable spinner when infinite loading is enabled\n wp_deregister_script('jquery.spin');\n wp_deregister_script('spin');\n}","function uninstall() {\n\t}","public static function uninstall(){\n }","function uninstall_hook()\n\t\t{\n\t\t\t// Delete plugin options\t\t\t\n\t\t\tdelete_option('verify-meta-tags');\n\t\t}","public function uninstall();","public function uninstall();","function my_deregister_scripts(){\r\n\t \twp_deregister_script( 'wp-embed' );\r\n\t}","function ct_remove_assets() {\n wp_dequeue_style( 'bigcommerce-styles' );\n\n if ( ct_is_pagespeed() ) {\n wp_dequeue_script( 'bigcommerce-manifest' );\n wp_dequeue_script( 'bigcommerce-vendors' );\n wp_dequeue_script( 'bigcommerce-scripts' );\n } else {\n wp_enqueue_script( 'smile.io', 'https://cdn.sweettooth.io/assets/storefront.js', array(), '1.0', true );\n }\n}","function cleanupPlugin($name)\n\t{\n\t\t$die = function($error, $code = 1) {\n\t\t\t\\cli\\out(\"%1{$error}%n\\n\");\n\t\t\texit($code);\n\t\t};\n\n\t\t$name = Str::slug($name);\n\n\t\t\\cli\\out(\"Cleaning up {$name}...\\n\");\n\n\t\t$composer = $this->path(\"/workbench/plugins/{$name}/composer.json\");\n\t\tif (!$this->files->exists($composer)) {\n\t \t\t$die(\"Coudn't find {$composer} for {$name}\", 1);\n\t \t}\n\n\t \t$package = json_decode( $this->files->get( $composer ) );\n\t \tif (false === $package) {\n\t \t\t$die(\"Coudn't read {$composer} for {$name}\", 2);\n\t \t}\n\n\t \t// remove from composer\n\t \t$process = $this->composer(\"remove {$package->name}\");\n\t\tif (!$process->isSuccessful()) {\n\t\t\t$die(\"Failed to remove {$package->name} from workbench\", 4);\n\t\t}\n\n\t \t// remove from studio\n\t \t$workbench_path = $this->path(\"/workbench/plugins/{$name}\");\n\t \t$process = $this->studio(\"unload {$workbench_path}\");\n\t \tif (!$process->isSuccessful()) {\n\t \t\t$die(\"Failed to unload {$package->name} from your workbench\", 8);\n\t \t}\n\n\t \t// delete the project\n\t \t$this->files->deleteDirectory($workbench_path);\n\t}","function my_deregister_scripts(){\n wp_deregister_script( 'wp-embed' );\n}","function uninstall() {\n\t\t/** globalising of the needed variables, objects and arrays */\n\t\tglobal $db, $apcms;\n\t\t\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['plugins'].\"` WHERE `name`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['rightsidebar'].\"` WHERE `plugin`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['leftsidebar'].\"` WHERE `plugin`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['rightsidebar'].\"` WHERE `plugin`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\n\t}","public function uninstallPlugin()\n\t{\n\t\treturn true;\t\n\t}","function remove_theme_mods()\n {\n }","function mro_deregister_scripts() {\n\n //Deregister styles\n\n\t// Bootstrap\n\twp_dequeue_style( 'tt-bootstrap.css' );\n\twp_deregister_style( 'tt-bootstrap.css' );\n\n\t// icomoon\n\twp_dequeue_style( 'tt-icomoon.css' );\n\twp_deregister_style( 'tt-icomoon.css' );\n\n\t// tt-main-style\n\twp_dequeue_style( 'tt-main-style' );\n\twp_deregister_style( 'tt-main-style' );\n\n\t// tt-theme-style\n\twp_dequeue_style( 'tt-theme-style' );\n\twp_deregister_style( 'tt-theme-style' );\n\n}","protected static function removeComponent()\n {\n (new Filesystem)->deleteDirectory(\n resource_path('assets/js/components')\n );\n }","public static function uninstall() {\n\n\t}","public static function uninstall() {\n\t\t}","static private function _cleanup() {\n\t\t$active_plugins = (array) get_option( 'active_plugins' );\n\t\t$active_plugins_network = (array) get_site_option( 'active_sitewide_plugins' );\n\n\t\t// workaround for WPMU deactivation bug\n\t\tremove_action( 'deactivate_' . W3TC_FILE, 'deactivate_sitewide_plugin' );\n\n\t\tdo_action( 'deactivate_plugin', W3TC_FILE );\n\n\t\t$key = array_search( W3TC_FILE, $active_plugins );\n\n\t\tif ( $key !== false ) {\n\t\t\tarray_splice( $active_plugins, $key, 1 );\n\t\t}\n\n\t\tunset( $active_plugins_network[W3TC_FILE] );\n\n\t\tdo_action( 'deactivate_' . W3TC_FILE );\n\t\tdo_action( 'deactivated_plugin', W3TC_FILE );\n\n\t\tupdate_option( 'active_plugins', $active_plugins );\n\t\tupdate_site_option( 'active_sitewide_plugins', $active_plugins_network );\n\t}","function childtheme_remove_scripts(){\n remove_action('wp_enqueue_scripts','thematic_head_scripts');\n}","function wlms_plugin_uninstall()\n{\n delete_option('wlms_settings');\n}","function plugin_uninstall() {\n\tdelete_option('access_token');\n\tdelete_option('insta_username');\n\tdelete_option('insta_user_id');\n\tdelete_option('insta_profile_picture');\n}","public static function uninstall() {\n if ( !current_user_can( 'activate_plugins' ) || __FILE__ !== WP_UNINSTALL_PLUGIN ) {\n return;\n }\n\n check_admin_referer( 'bulk-plugins' );\n\n // Remove all stored clanpress options.\n $options = wp_load_alloptions();\n foreach ( $options as $key => $value ) {\n if ( substr( $key, 0, 9 ) === 'clanpress' ) {\n delete_option( $key );\n }\n }\n }","function wpgrade_head_cleanup() {\r\n\t// Remove WP version\r\n\tremove_action( 'wp_head', 'wp_generator' );\r\n\t\r\n\tremove_action( 'wp_head', 'rsd_link' );\r\n\t// windows live writer\r\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\r\n\t\r\n\t// remove WP version from css - those parameters can prevent caching\r\n\t//add_filter( 'style_loader_src', 'wpgrade_noversion_css_js', 9999 );\r\n\t// remove WP version from scripts - those parameters can prevent caching\r\n\t//add_filter( 'script_loader_src', 'wpgrade_noversion_css_js', 9999 );\r\n\r\n}","public function uninstall() {\n\n\n }","function _h_remove_jetpack_head_assets() {\n wp_dequeue_script('devicepx');\n wp_dequeue_style('sharedaddy');\n wp_dequeue_style('social-logos');\n}","public function remove_conflicting_asset_files() {\n\t\t$scripts = array(\n\t\t\t'jetpack-onboarding-vendor', // Jetpack Onboarding Bluehost.\n\t\t);\n\n\t\tif ( ! empty( $scripts ) ) {\n\t\t\tforeach ( $scripts as $script ) {\n\t\t\t\twp_dequeue_script( $script ); // Remove JS file.\n\t\t\t\twp_deregister_script( $script );\n\t\t\t}\n\t\t}\n\t}","function deinstallPackageDyntables() {\n @unlink('/usr/local/www/diag_dhcp_leases.php');\n @unlink('/usr/local/www/javascript/dyntables.js');\n @rename('/usr/local/pkg/diag_dhcp_leases.php.org', '/usr/local/www/diag_dhcp_leases.php');\n}","function deregister_scripts_oembed_footer(){\n\twp_deregister_script( 'wp-embed' );\n}","function deregister_scripts_oembed_footer(){\n\twp_deregister_script( 'wp-embed' );\n}","function uninstall() {\n\n\t// Delete the data.\n\tHelpers\\clear_pending_data();\n\n\t// Include our action so that we may add to this later.\n\tdo_action( Core\\HOOK_PREFIX . 'uninstall_process' );\n\n\t// And flush our rewrite rules.\n\tflush_rewrite_rules();\n}","function shutdown() {\n // Safety for themes not using wp_footer\n SLPlus_Actions::ManageTheScripts();\n\t\t}","function cardealer_head_cleanup() {\r\n\tadd_filter( 'style_loader_src', 'cardealer_remove_wp_ver_css_js', 9999 ); // remove WP version from css\r\n\tadd_filter( 'script_loader_src', 'cardealer_remove_wp_ver_css_js', 9999 ); // remove WP version from scripts\r\n}","public function uninstall() {\n\t\tdelete_option('hotlink-no-more');\n\t}","public function uninstall()\n {\n $this->deleteConfig();\n GPCCore::unregister($this->getPluginName());\n }","function plugin_uninstall()\r\n{\r\n\tconf_delete_param('piwigopanorama_conf');\r\n\r\n\tpwg_query('ALTER TABLE `'. IMAGES_TABLE .'` DROP `is_panorama`;');\r\n}","public function ___uninstall() {\n\t\t$logFolder = $this->wire('config')->paths->assets . strtolower(__CLASS__);\n\t\tif(is_dir($logFolder)) {\n\t\t\tif(wireRmdir($logFolder, true) === false) throw new WireException(\"{$logFolder} could not be removed\");\n\t\t}\n\t}","function deactivate_plugin() {\n\tdelete_option( 'rewrite_rules' );\n}","function wp_deregister_script($handle)\n {\n }","public function uninstall()\n {\n }","public function uninstall()\n {\n }","function deactivate_plugin() {}","protected function cleanup()\n {\n $cache = sprintf('%s/phantomjs_*', sys_get_temp_dir());\n\n array_map('unlink', glob($cache));\n }","protected function removeSymlink()\n {\n File::delete(public_path('theme'));\n }","function remove_wp_embed_and_jquery() {\n\tif (!is_admin()) {\n\t\twp_deregister_script('wp-embed');\t\t\n\t}\n}","function noc_deregister_scripts() {\n\n //Deregister styles\n\n\t// Parent\n\twp_dequeue_style( 'theme-style-child' );\n\twp_deregister_style( 'theme-style-child' );\n\n\t// Theme child from parent\n\twp_dequeue_style( 'theme-style' );\n\twp_deregister_style( 'theme-style' );\n\n\t// // tt-main-style\n\t// wp_dequeue_style( 'tt-main-style' );\n\t// wp_deregister_style( 'tt-main-style' );\n\n\t// // tt-theme-style\n\t// wp_dequeue_style( 'tt-theme-style' );\n\t// wp_deregister_style( 'tt-theme-style' );\n\n}","function wpt_uninstall(){\n //Nothing to say for this version\n}","function wpt_testimonial_uninstall(){\n\tdelete_option('wpt_effect');\n\tdelete_option('wpt_speed');\n\tdelete_option('wpt_sortby');\n\tdelete_option('wpt_orderby');\n\tdelete_option('wpt_viewall');\n\tdelete_option('wpt_viewall_page');\n}","public static function _uninstall()\n\t{\n\t\tif( empty(self::$page_ids) )\n\t\t\terror_log('ABNOT@uninstall: Empty $page_ids!');\n\n\t\tforeach( self::$tools as $tool => $t )\n\t\t{\n\t\t\t$pid = get_page_by_title($t['title'], 'OBJECT', 'page');\n\t\t\twp_delete_post($pid->ID, true); // forced\n\t\t}\n\t}","function crowdx_uninstall(){\r\n\r\n }","function woodstock_removeDemoModeLink() {\n if ( class_exists('ReduxFrameworkPlugin') ) {\n remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 );\n }\n if ( class_exists('ReduxFrameworkPlugin') ) {\n remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); \n }\n }","function desativa_embed() {\n wp_deregister_script( 'wp-embed' );\n}","function remove_default_admin_stylesheets() {\n \t// wp_deregister_style('wp-reset-editor-styles');\n }","public static function uninstall() {\n // tenemos que borrar el custom post type\n // Es conveniente borrar todos los datos que ha generado el plugin en la BBDD\n }","function tsapress_clean_assets($content) {\n\t$tsapress_base_dir = tsapress_base_dir();\n $theme_name = next(explode('/themes/', $content));\n \n $current_path = '/'.$tsapress_base_dir.'wp-content/themes/' . $theme_name;\n $new_path = '';\n $content = str_replace($current_path, $new_path, $content);\n \n return $content;\n}","static function hookUninstall() {\n\t \t// Remove all options\n\t \tforeach(self::$plugin_options as $k => $v) {\n\t \t\tdelete_option($k);\n\t \t}\n\t }","public static function uninstall() {\n\t\tUninstall::uninstall();\n\t}","function wp_deregister_script( $handle ) {\r\n\tglobal $wp_scripts;\r\n\tif ( !is_a($wp_scripts, 'WP_Scripts') )\r\n\t\t$wp_scripts = new WP_Scripts();\r\n\r\n\t$wp_scripts->remove( $handle );\r\n}","function remove_theme_mod($name)\n {\n }","function uninstall(bool $deleteimages = false)\n{\n $meta = file_exists(DEFAULT_METAFILE) ? textFileToArray(DEFAULT_METAFILE) : null;\n $files = glob(VAR_FOLDER . DS . '{,.}[!.,!..]*', GLOB_MARK|GLOB_BRACE);\n foreach ($files as $file) {\n unlink($file);\n }\n\n if (true === $deleteimages) {\n $imagesdir = $meta && count($meta) && array_key_exists('imagesfolder', $meta) ? ROOT_FOLDER . DS . $meta['imagesfolder'] : DEFAULT_IMAGEFOLDER;\n\n $files = glob($imagesdir . DS . '{,.}[!.,!..]*', GLOB_MARK|GLOB_BRACE);\n foreach ($files as $file) {\n unlink($file);\n }\n }\n\n if ($meta) {\n unlink(DEFAULT_METAFILE);\n }\n}","function delete_stylesheet() {\n\t\t\t$css_file = $this->get_stylesheet();\n\t\t\tThemify_Filesystem::delete($css_file,'f');\n\t\t}","public function head_cleanup() {\n\n\t\tremove_action( 'wp_head', 'rsd_link' );\n\t\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\t\tremove_action( 'wp_head', 'wp_generator' );\n\t}","function deenqueue_parent_scripts_styles() {\n wp_dequeue_script( 'one-page-slitslider' );\n wp_deregister_script( 'one-page-slitslider' );\n wp_dequeue_script( 'one-page-custom' );\n wp_deregister_script( 'one-page-custom' );\n}","function wpb_uninstall() {\n flush_rewrite_rules();\n }","function crunchify_stop_loading_wp_embed() {\n if (!is_admin()) {\n wp_deregister_script('wp-embed');\n }\n}","public function tear_down(): void {\n\t\tremove_action( 'wp_body_open', [ $this->instance, 'embed_web_stories' ] );\n\n\t\tremove_theme_support( 'web-stories' );\n\n\t\tdelete_option( Customizer::STORY_OPTION );\n\t\tupdate_option( 'stylesheet', $this->stylesheet );\n\n\t\tparent::tear_down();\n\t}","static function uninstall(){\n $defaults = self::getdefaults();\n foreach ($defaults as $option ) {\n if ( !is_multisite() ) {\n delete_option($option);\n }\n else {\n delete_site_option($option);\n }\n }\n return;\n }","abstract protected function deactivate_plugin();","public function remove() {\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\n }","function kadence_remove_demo() {\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\n remove_filter( 'plugin_row_meta', array(\n ReduxFrameworkPlugin::instance(),\n 'plugin_metalinks'\n ), null, 2 );\n\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\n }\n }","public function deactivatePlugin();","function classieraRemoveReduxDemoModeLink() { // Be sure to rename this function to something more unique\r\n if ( class_exists('ReduxFrameworkPlugin') ) {\r\n remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 );\r\n }\r\n if ( class_exists('ReduxFrameworkPlugin') ) {\r\n remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); \r\n }\r\n}","function spartan_head_cleanup() {\n\t// EditURI link\n\tremove_action( 'wp_head', 'rsd_link' );\n\t// windows live writer\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\t// index link\n\tremove_action( 'wp_head', 'index_rel_link' );\n\t// previous link\n\tremove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );\n\t// start link\n\tremove_action( 'wp_head', 'start_post_rel_link', 10, 0 );\n\t// links for adjacent posts\n\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\n\t// WP version\n\tremove_action( 'wp_head', 'wp_generator' );\n // remove WP version from css\n add_filter( 'style_loader_src', 'spartan_remove_wp_ver_css_js', 9999 );\n // remove Wp version from scripts\n add_filter( 'script_loader_src', 'spartan_remove_wp_ver_css_js', 9999 );\n\n}","public function clearRIssuesRtfplugins()\n {\n $this->collRIssuesRtfplugins = null; // important to set this to NULL since that means it is uninitialized\n }","function wp_clean_plugins_cache($clear_update_cache = \\true)\n {\n }","function webbusiness_reset_cache_custom_css() {\n\tdelete_transient('webbusiness_custom_css_preview');\n\twebbusiness_cache_custom_css_preview();\n}","public function uninstallHook()\n\t{\n\t\t$ok =\n\t\t\tdelete_option(CommentsEncryptMain::OPTION_PUB_KEY) &&\n\t\t\tdelete_option(CommentsEncryptMain::OPTION_PUB_KEY_HASH);\n\t\t\tdelete_option(CommentsEncryptMain::OPTION_STORE_AVATAR_HASHES)\n\t\t;\n\t}","public function on_plugin_uninstall(): void {\n\t\t$this->remove_caps_from_roles();\n\t}","public function deactivate()\n {\n $this->setTheme(null);\n $this->removeSymlink();\n }","function clean_installation()\n{\n $files = glob(VAR_FOLDER . DS . '*');\n foreach ($files as $file) {\n if (is_file($file) && $file !== DEFAULT_ACCOUNTFILE && $FILE !== DEFAULT_METAFILE) {\n unlink($file);\n }\n }\n}","function head_cleanup(){\n\tremove_action( 'wp_head', 'rsd_link' );\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\tremove_action( 'wp_head', 'index_rel_link' );\n\tremove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );\n\tremove_action( 'wp_head', 'start_post_rel_link', 10, 0 );\n\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\n\tremove_action( 'wp_head', 'wp_generator' );\n\tadd_filter( 'style_loader_src', 'remove_wp_ver_css_js', 9999 );\n\tadd_filter( 'script_loader_src', 'remove_wp_ver_css_js', 9999 );\n}","public function on_plugin_uninstall(): void {\n\t\tif ( is_multisite() ) {\n\t\t\tdelete_site_option( self::OPTION_SHOW_ACTIVATION_NOTICE );\n\t\t}\n\t\tdelete_option( self::OPTION_SHOW_ACTIVATION_NOTICE );\n\t}","public static function removeInstallToolEnableFile() {}","public function on_plugin_uninstall(): void {\n\t\tdelete_post_meta_by_key( self::CROPPED_ID_POST_META_KEY );\n\t}","function on_uninstall ()\n{\n}","function on_uninstall ()\n{\n}","function unhook_parent_style() {\n \n wp_dequeue_style( 'genericons' );\n\twp_deregister_style( 'genericons' );\n wp_dequeue_style( 'twentyfifteen-ie' );\n\twp_deregister_style( 'twentyfifteen-ie' );\n wp_dequeue_style( 'twentyfifteen-ie7' );\n\twp_deregister_style( 'twentyfifteen-ie7' );\n wp_dequeue_style( 'twentyfifteen-fonts' );\n\twp_deregister_style( 'twentyfifteen-fonts' );\n}","function ahla_register_assets()\n{\n\t$assets = AHLAURL . '/assets';\n\t$ver \t = AHLAVER;\n\n\t// theme style.css\n\twp_register_style( 'theme-style' , get_stylesheet_uri() );\n\n\t// others\n\t$file = $assets.'/js/skip-link-focus-fix.js';\n\twp_register_script( 'skip-link-focus-fix', $file, array(), $ver, true );\n\n\tdo_action('ahla_register_assets');\n}","function startertheme_remove_version() {\nreturn '';\n}","function remove_demo() {\n\n // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\n remove_filter( 'plugin_row_meta', array(\n ReduxFrameworkPlugin::instance(),\n 'plugin_metalinks'\n ), null, 2 );\n\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\n }\n }","function deactivate_spark_cw_fresh() {\n require_once plugin_dir_path(__FILE__) . 'includes/class-spark-cw-fresh-deactivator.php';\n Spark_Cw_Fresh_Deactivator::deactivate();\n}","function wp_clean_themes_cache($clear_update_cache = \\true)\n {\n }","public function uninstall() {\n global $users;\n\n // Remove User Data\n foreach($users->db AS $username => $data) {\n unset($users->db[$username][\"media_order\"]);\n unset($users->db[$username][\"media_items_per_page\"]);\n unset($users->db[$username][\"media_layout\"]);\n unset($users->db[$username][\"media_favorites\"]);\n }\n $users->save();\n\n // Uninstall Plugin\n return parent::uninstall();\n }"],"string":"[\n \"function remove_plugin_assets() {\\n wp_dequeue_style('roots-share-buttons'); // roots-share-buttons/assets/styles/share-buttons.css\\n wp_dequeue_script('roots-share-buttons'); //roots-share-buttons/assets/scripts/share-buttons.js\\n wp_dequeue_style('wp-biographia-bio'); //wp-biographia/css/wp-biographia-min.css\\n}\",\n \"function hxp_plugin_deactivation() {\\n\\twp_dequeue_style( 'hxp_custom_style' );\\n\\twp_deregister_style( 'hxp_custom_style' );\\n\\twp_dequeue_script( 'hxp_export_script' );\\n\\twp_dequeue_script( 'hxp_import_script' );\\n\\twp_deregister_script( 'hxp_export_script' );\\n\\t$hxp_upload_dir = wp_upload_dir();\\n\\thxp_rrmdir( $hxp_upload_dir['basedir'] . '/hxp_exports' );\\n\\thxp_rrmdir( $hxp_upload_dir['basedir'] . '/hxp_imports' );\\n}\",\n \"public function uninstallPlugin()\\n {\\n }\",\n \"function uninstall(){}\",\n \"public static function uninstall() {\\n\\t\\tglobal $wpdb;\\n\\n\\t\\t$sql = \\\"\\n\\t\\t\\tDELETE\\n\\t\\t\\tFROM $wpdb->postmeta\\n\\t\\t\\tWHERE meta_key LIKE 'im8_additional_css%'\\\";\\n\\t\\t$wpdb->query($sql);\\n\\n\\t\\tdelete_option(self::get_instance()->option_name);\\n\\t}\",\n \"function uninstall_plugin($plugin)\\n {\\n }\",\n \"public static function cleanResources()\\n {\\n File::deleteDirectory(resource_path('sass'));\\n File::delete(resource_path('js/app.js'));\\n File::delete(resource_path('js/bootstrap.js'));\\n }\",\n \"function wrmp_uninstall()\\n{\\n\\tif(!class_exists('WildcardPluginInstaller'))\\n\\t{\\n\\t\\trequire_once MYBB_ROOT . 'inc/plugins/wrmp/classes/installer.php';\\n\\t}\\n\\t$installer = new WildcardPluginInstaller(MYBB_ROOT . 'inc/plugins/wrmp/install_data.php');\\n\\t$installer->uninstall();\\n\\n\\t// delete our cached version\\n\\twrmp_unset_cache_version();\\n}\",\n \"function uninstall(){\\n\\n }\",\n \"function _h_remove_jetpack_footer_assets() {\\n wp_deregister_script('sharing-js');\\n\\n // disable spinner when infinite loading is enabled\\n wp_deregister_script('jquery.spin');\\n wp_deregister_script('spin');\\n}\",\n \"function uninstall() {\\n\\t}\",\n \"public static function uninstall(){\\n }\",\n \"function uninstall_hook()\\n\\t\\t{\\n\\t\\t\\t// Delete plugin options\\t\\t\\t\\n\\t\\t\\tdelete_option('verify-meta-tags');\\n\\t\\t}\",\n \"public function uninstall();\",\n \"public function uninstall();\",\n \"function my_deregister_scripts(){\\r\\n\\t \\twp_deregister_script( 'wp-embed' );\\r\\n\\t}\",\n \"function ct_remove_assets() {\\n wp_dequeue_style( 'bigcommerce-styles' );\\n\\n if ( ct_is_pagespeed() ) {\\n wp_dequeue_script( 'bigcommerce-manifest' );\\n wp_dequeue_script( 'bigcommerce-vendors' );\\n wp_dequeue_script( 'bigcommerce-scripts' );\\n } else {\\n wp_enqueue_script( 'smile.io', 'https://cdn.sweettooth.io/assets/storefront.js', array(), '1.0', true );\\n }\\n}\",\n \"function cleanupPlugin($name)\\n\\t{\\n\\t\\t$die = function($error, $code = 1) {\\n\\t\\t\\t\\\\cli\\\\out(\\\"%1{$error}%n\\\\n\\\");\\n\\t\\t\\texit($code);\\n\\t\\t};\\n\\n\\t\\t$name = Str::slug($name);\\n\\n\\t\\t\\\\cli\\\\out(\\\"Cleaning up {$name}...\\\\n\\\");\\n\\n\\t\\t$composer = $this->path(\\\"/workbench/plugins/{$name}/composer.json\\\");\\n\\t\\tif (!$this->files->exists($composer)) {\\n\\t \\t\\t$die(\\\"Coudn't find {$composer} for {$name}\\\", 1);\\n\\t \\t}\\n\\n\\t \\t$package = json_decode( $this->files->get( $composer ) );\\n\\t \\tif (false === $package) {\\n\\t \\t\\t$die(\\\"Coudn't read {$composer} for {$name}\\\", 2);\\n\\t \\t}\\n\\n\\t \\t// remove from composer\\n\\t \\t$process = $this->composer(\\\"remove {$package->name}\\\");\\n\\t\\tif (!$process->isSuccessful()) {\\n\\t\\t\\t$die(\\\"Failed to remove {$package->name} from workbench\\\", 4);\\n\\t\\t}\\n\\n\\t \\t// remove from studio\\n\\t \\t$workbench_path = $this->path(\\\"/workbench/plugins/{$name}\\\");\\n\\t \\t$process = $this->studio(\\\"unload {$workbench_path}\\\");\\n\\t \\tif (!$process->isSuccessful()) {\\n\\t \\t\\t$die(\\\"Failed to unload {$package->name} from your workbench\\\", 8);\\n\\t \\t}\\n\\n\\t \\t// delete the project\\n\\t \\t$this->files->deleteDirectory($workbench_path);\\n\\t}\",\n \"function my_deregister_scripts(){\\n wp_deregister_script( 'wp-embed' );\\n}\",\n \"function uninstall() {\\n\\t\\t/** globalising of the needed variables, objects and arrays */\\n\\t\\tglobal $db, $apcms;\\n\\t\\t\\n\\t\\t$query = \\\"DELETE FROM `\\\".$apcms['table']['global']['plugins'].\\\"` WHERE `name`='apcms_sidebar_poweredby';\\\";\\n\\t\\t$db->unbuffered_query($query);\\n\\t\\n\\t\\t$query = \\\"DELETE FROM `\\\".$apcms['table']['global']['rightsidebar'].\\\"` WHERE `plugin`='apcms_sidebar_poweredby';\\\";\\n\\t\\t$db->unbuffered_query($query);\\n\\t\\t$query = \\\"DELETE FROM `\\\".$apcms['table']['global']['leftsidebar'].\\\"` WHERE `plugin`='apcms_sidebar_poweredby';\\\";\\n\\t\\t$db->unbuffered_query($query);\\n\\t\\t$query = \\\"DELETE FROM `\\\".$apcms['table']['global']['rightsidebar'].\\\"` WHERE `plugin`='apcms_sidebar_poweredby';\\\";\\n\\t\\t$db->unbuffered_query($query);\\n\\t\\n\\t}\",\n \"public function uninstallPlugin()\\n\\t{\\n\\t\\treturn true;\\t\\n\\t}\",\n \"function remove_theme_mods()\\n {\\n }\",\n \"function mro_deregister_scripts() {\\n\\n //Deregister styles\\n\\n\\t// Bootstrap\\n\\twp_dequeue_style( 'tt-bootstrap.css' );\\n\\twp_deregister_style( 'tt-bootstrap.css' );\\n\\n\\t// icomoon\\n\\twp_dequeue_style( 'tt-icomoon.css' );\\n\\twp_deregister_style( 'tt-icomoon.css' );\\n\\n\\t// tt-main-style\\n\\twp_dequeue_style( 'tt-main-style' );\\n\\twp_deregister_style( 'tt-main-style' );\\n\\n\\t// tt-theme-style\\n\\twp_dequeue_style( 'tt-theme-style' );\\n\\twp_deregister_style( 'tt-theme-style' );\\n\\n}\",\n \"protected static function removeComponent()\\n {\\n (new Filesystem)->deleteDirectory(\\n resource_path('assets/js/components')\\n );\\n }\",\n \"public static function uninstall() {\\n\\n\\t}\",\n \"public static function uninstall() {\\n\\t\\t}\",\n \"static private function _cleanup() {\\n\\t\\t$active_plugins = (array) get_option( 'active_plugins' );\\n\\t\\t$active_plugins_network = (array) get_site_option( 'active_sitewide_plugins' );\\n\\n\\t\\t// workaround for WPMU deactivation bug\\n\\t\\tremove_action( 'deactivate_' . W3TC_FILE, 'deactivate_sitewide_plugin' );\\n\\n\\t\\tdo_action( 'deactivate_plugin', W3TC_FILE );\\n\\n\\t\\t$key = array_search( W3TC_FILE, $active_plugins );\\n\\n\\t\\tif ( $key !== false ) {\\n\\t\\t\\tarray_splice( $active_plugins, $key, 1 );\\n\\t\\t}\\n\\n\\t\\tunset( $active_plugins_network[W3TC_FILE] );\\n\\n\\t\\tdo_action( 'deactivate_' . W3TC_FILE );\\n\\t\\tdo_action( 'deactivated_plugin', W3TC_FILE );\\n\\n\\t\\tupdate_option( 'active_plugins', $active_plugins );\\n\\t\\tupdate_site_option( 'active_sitewide_plugins', $active_plugins_network );\\n\\t}\",\n \"function childtheme_remove_scripts(){\\n remove_action('wp_enqueue_scripts','thematic_head_scripts');\\n}\",\n \"function wlms_plugin_uninstall()\\n{\\n delete_option('wlms_settings');\\n}\",\n \"function plugin_uninstall() {\\n\\tdelete_option('access_token');\\n\\tdelete_option('insta_username');\\n\\tdelete_option('insta_user_id');\\n\\tdelete_option('insta_profile_picture');\\n}\",\n \"public static function uninstall() {\\n if ( !current_user_can( 'activate_plugins' ) || __FILE__ !== WP_UNINSTALL_PLUGIN ) {\\n return;\\n }\\n\\n check_admin_referer( 'bulk-plugins' );\\n\\n // Remove all stored clanpress options.\\n $options = wp_load_alloptions();\\n foreach ( $options as $key => $value ) {\\n if ( substr( $key, 0, 9 ) === 'clanpress' ) {\\n delete_option( $key );\\n }\\n }\\n }\",\n \"function wpgrade_head_cleanup() {\\r\\n\\t// Remove WP version\\r\\n\\tremove_action( 'wp_head', 'wp_generator' );\\r\\n\\t\\r\\n\\tremove_action( 'wp_head', 'rsd_link' );\\r\\n\\t// windows live writer\\r\\n\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\r\\n\\t\\r\\n\\t// remove WP version from css - those parameters can prevent caching\\r\\n\\t//add_filter( 'style_loader_src', 'wpgrade_noversion_css_js', 9999 );\\r\\n\\t// remove WP version from scripts - those parameters can prevent caching\\r\\n\\t//add_filter( 'script_loader_src', 'wpgrade_noversion_css_js', 9999 );\\r\\n\\r\\n}\",\n \"public function uninstall() {\\n\\n\\n }\",\n \"function _h_remove_jetpack_head_assets() {\\n wp_dequeue_script('devicepx');\\n wp_dequeue_style('sharedaddy');\\n wp_dequeue_style('social-logos');\\n}\",\n \"public function remove_conflicting_asset_files() {\\n\\t\\t$scripts = array(\\n\\t\\t\\t'jetpack-onboarding-vendor', // Jetpack Onboarding Bluehost.\\n\\t\\t);\\n\\n\\t\\tif ( ! empty( $scripts ) ) {\\n\\t\\t\\tforeach ( $scripts as $script ) {\\n\\t\\t\\t\\twp_dequeue_script( $script ); // Remove JS file.\\n\\t\\t\\t\\twp_deregister_script( $script );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function deinstallPackageDyntables() {\\n @unlink('/usr/local/www/diag_dhcp_leases.php');\\n @unlink('/usr/local/www/javascript/dyntables.js');\\n @rename('/usr/local/pkg/diag_dhcp_leases.php.org', '/usr/local/www/diag_dhcp_leases.php');\\n}\",\n \"function deregister_scripts_oembed_footer(){\\n\\twp_deregister_script( 'wp-embed' );\\n}\",\n \"function deregister_scripts_oembed_footer(){\\n\\twp_deregister_script( 'wp-embed' );\\n}\",\n \"function uninstall() {\\n\\n\\t// Delete the data.\\n\\tHelpers\\\\clear_pending_data();\\n\\n\\t// Include our action so that we may add to this later.\\n\\tdo_action( Core\\\\HOOK_PREFIX . 'uninstall_process' );\\n\\n\\t// And flush our rewrite rules.\\n\\tflush_rewrite_rules();\\n}\",\n \"function shutdown() {\\n // Safety for themes not using wp_footer\\n SLPlus_Actions::ManageTheScripts();\\n\\t\\t}\",\n \"function cardealer_head_cleanup() {\\r\\n\\tadd_filter( 'style_loader_src', 'cardealer_remove_wp_ver_css_js', 9999 ); // remove WP version from css\\r\\n\\tadd_filter( 'script_loader_src', 'cardealer_remove_wp_ver_css_js', 9999 ); // remove WP version from scripts\\r\\n}\",\n \"public function uninstall() {\\n\\t\\tdelete_option('hotlink-no-more');\\n\\t}\",\n \"public function uninstall()\\n {\\n $this->deleteConfig();\\n GPCCore::unregister($this->getPluginName());\\n }\",\n \"function plugin_uninstall()\\r\\n{\\r\\n\\tconf_delete_param('piwigopanorama_conf');\\r\\n\\r\\n\\tpwg_query('ALTER TABLE `'. IMAGES_TABLE .'` DROP `is_panorama`;');\\r\\n}\",\n \"public function ___uninstall() {\\n\\t\\t$logFolder = $this->wire('config')->paths->assets . strtolower(__CLASS__);\\n\\t\\tif(is_dir($logFolder)) {\\n\\t\\t\\tif(wireRmdir($logFolder, true) === false) throw new WireException(\\\"{$logFolder} could not be removed\\\");\\n\\t\\t}\\n\\t}\",\n \"function deactivate_plugin() {\\n\\tdelete_option( 'rewrite_rules' );\\n}\",\n \"function wp_deregister_script($handle)\\n {\\n }\",\n \"public function uninstall()\\n {\\n }\",\n \"public function uninstall()\\n {\\n }\",\n \"function deactivate_plugin() {}\",\n \"protected function cleanup()\\n {\\n $cache = sprintf('%s/phantomjs_*', sys_get_temp_dir());\\n\\n array_map('unlink', glob($cache));\\n }\",\n \"protected function removeSymlink()\\n {\\n File::delete(public_path('theme'));\\n }\",\n \"function remove_wp_embed_and_jquery() {\\n\\tif (!is_admin()) {\\n\\t\\twp_deregister_script('wp-embed');\\t\\t\\n\\t}\\n}\",\n \"function noc_deregister_scripts() {\\n\\n //Deregister styles\\n\\n\\t// Parent\\n\\twp_dequeue_style( 'theme-style-child' );\\n\\twp_deregister_style( 'theme-style-child' );\\n\\n\\t// Theme child from parent\\n\\twp_dequeue_style( 'theme-style' );\\n\\twp_deregister_style( 'theme-style' );\\n\\n\\t// // tt-main-style\\n\\t// wp_dequeue_style( 'tt-main-style' );\\n\\t// wp_deregister_style( 'tt-main-style' );\\n\\n\\t// // tt-theme-style\\n\\t// wp_dequeue_style( 'tt-theme-style' );\\n\\t// wp_deregister_style( 'tt-theme-style' );\\n\\n}\",\n \"function wpt_uninstall(){\\n //Nothing to say for this version\\n}\",\n \"function wpt_testimonial_uninstall(){\\n\\tdelete_option('wpt_effect');\\n\\tdelete_option('wpt_speed');\\n\\tdelete_option('wpt_sortby');\\n\\tdelete_option('wpt_orderby');\\n\\tdelete_option('wpt_viewall');\\n\\tdelete_option('wpt_viewall_page');\\n}\",\n \"public static function _uninstall()\\n\\t{\\n\\t\\tif( empty(self::$page_ids) )\\n\\t\\t\\terror_log('ABNOT@uninstall: Empty $page_ids!');\\n\\n\\t\\tforeach( self::$tools as $tool => $t )\\n\\t\\t{\\n\\t\\t\\t$pid = get_page_by_title($t['title'], 'OBJECT', 'page');\\n\\t\\t\\twp_delete_post($pid->ID, true); // forced\\n\\t\\t}\\n\\t}\",\n \"function crowdx_uninstall(){\\r\\n\\r\\n }\",\n \"function woodstock_removeDemoModeLink() {\\n if ( class_exists('ReduxFrameworkPlugin') ) {\\n remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 );\\n }\\n if ( class_exists('ReduxFrameworkPlugin') ) {\\n remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); \\n }\\n }\",\n \"function desativa_embed() {\\n wp_deregister_script( 'wp-embed' );\\n}\",\n \"function remove_default_admin_stylesheets() {\\n \\t// wp_deregister_style('wp-reset-editor-styles');\\n }\",\n \"public static function uninstall() {\\n // tenemos que borrar el custom post type\\n // Es conveniente borrar todos los datos que ha generado el plugin en la BBDD\\n }\",\n \"function tsapress_clean_assets($content) {\\n\\t$tsapress_base_dir = tsapress_base_dir();\\n $theme_name = next(explode('/themes/', $content));\\n \\n $current_path = '/'.$tsapress_base_dir.'wp-content/themes/' . $theme_name;\\n $new_path = '';\\n $content = str_replace($current_path, $new_path, $content);\\n \\n return $content;\\n}\",\n \"static function hookUninstall() {\\n\\t \\t// Remove all options\\n\\t \\tforeach(self::$plugin_options as $k => $v) {\\n\\t \\t\\tdelete_option($k);\\n\\t \\t}\\n\\t }\",\n \"public static function uninstall() {\\n\\t\\tUninstall::uninstall();\\n\\t}\",\n \"function wp_deregister_script( $handle ) {\\r\\n\\tglobal $wp_scripts;\\r\\n\\tif ( !is_a($wp_scripts, 'WP_Scripts') )\\r\\n\\t\\t$wp_scripts = new WP_Scripts();\\r\\n\\r\\n\\t$wp_scripts->remove( $handle );\\r\\n}\",\n \"function remove_theme_mod($name)\\n {\\n }\",\n \"function uninstall(bool $deleteimages = false)\\n{\\n $meta = file_exists(DEFAULT_METAFILE) ? textFileToArray(DEFAULT_METAFILE) : null;\\n $files = glob(VAR_FOLDER . DS . '{,.}[!.,!..]*', GLOB_MARK|GLOB_BRACE);\\n foreach ($files as $file) {\\n unlink($file);\\n }\\n\\n if (true === $deleteimages) {\\n $imagesdir = $meta && count($meta) && array_key_exists('imagesfolder', $meta) ? ROOT_FOLDER . DS . $meta['imagesfolder'] : DEFAULT_IMAGEFOLDER;\\n\\n $files = glob($imagesdir . DS . '{,.}[!.,!..]*', GLOB_MARK|GLOB_BRACE);\\n foreach ($files as $file) {\\n unlink($file);\\n }\\n }\\n\\n if ($meta) {\\n unlink(DEFAULT_METAFILE);\\n }\\n}\",\n \"function delete_stylesheet() {\\n\\t\\t\\t$css_file = $this->get_stylesheet();\\n\\t\\t\\tThemify_Filesystem::delete($css_file,'f');\\n\\t\\t}\",\n \"public function head_cleanup() {\\n\\n\\t\\tremove_action( 'wp_head', 'rsd_link' );\\n\\t\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\n\\t\\tremove_action( 'wp_head', 'wp_generator' );\\n\\t}\",\n \"function deenqueue_parent_scripts_styles() {\\n wp_dequeue_script( 'one-page-slitslider' );\\n wp_deregister_script( 'one-page-slitslider' );\\n wp_dequeue_script( 'one-page-custom' );\\n wp_deregister_script( 'one-page-custom' );\\n}\",\n \"function wpb_uninstall() {\\n flush_rewrite_rules();\\n }\",\n \"function crunchify_stop_loading_wp_embed() {\\n if (!is_admin()) {\\n wp_deregister_script('wp-embed');\\n }\\n}\",\n \"public function tear_down(): void {\\n\\t\\tremove_action( 'wp_body_open', [ $this->instance, 'embed_web_stories' ] );\\n\\n\\t\\tremove_theme_support( 'web-stories' );\\n\\n\\t\\tdelete_option( Customizer::STORY_OPTION );\\n\\t\\tupdate_option( 'stylesheet', $this->stylesheet );\\n\\n\\t\\tparent::tear_down();\\n\\t}\",\n \"static function uninstall(){\\n $defaults = self::getdefaults();\\n foreach ($defaults as $option ) {\\n if ( !is_multisite() ) {\\n delete_option($option);\\n }\\n else {\\n delete_site_option($option);\\n }\\n }\\n return;\\n }\",\n \"abstract protected function deactivate_plugin();\",\n \"public function remove() {\\n remove_action( 'wp_head', 'print_emoji_detection_script', 7 );\\n remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\\n remove_action( 'admin_print_styles', 'print_emoji_styles' );\\n }\",\n \"function kadence_remove_demo() {\\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\\n remove_filter( 'plugin_row_meta', array(\\n ReduxFrameworkPlugin::instance(),\\n 'plugin_metalinks'\\n ), null, 2 );\\n\\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\\n }\\n }\",\n \"public function deactivatePlugin();\",\n \"function classieraRemoveReduxDemoModeLink() { // Be sure to rename this function to something more unique\\r\\n if ( class_exists('ReduxFrameworkPlugin') ) {\\r\\n remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2 );\\r\\n }\\r\\n if ( class_exists('ReduxFrameworkPlugin') ) {\\r\\n remove_action('admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) ); \\r\\n }\\r\\n}\",\n \"function spartan_head_cleanup() {\\n\\t// EditURI link\\n\\tremove_action( 'wp_head', 'rsd_link' );\\n\\t// windows live writer\\n\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\n\\t// index link\\n\\tremove_action( 'wp_head', 'index_rel_link' );\\n\\t// previous link\\n\\tremove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );\\n\\t// start link\\n\\tremove_action( 'wp_head', 'start_post_rel_link', 10, 0 );\\n\\t// links for adjacent posts\\n\\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\\n\\t// WP version\\n\\tremove_action( 'wp_head', 'wp_generator' );\\n // remove WP version from css\\n add_filter( 'style_loader_src', 'spartan_remove_wp_ver_css_js', 9999 );\\n // remove Wp version from scripts\\n add_filter( 'script_loader_src', 'spartan_remove_wp_ver_css_js', 9999 );\\n\\n}\",\n \"public function clearRIssuesRtfplugins()\\n {\\n $this->collRIssuesRtfplugins = null; // important to set this to NULL since that means it is uninitialized\\n }\",\n \"function wp_clean_plugins_cache($clear_update_cache = \\\\true)\\n {\\n }\",\n \"function webbusiness_reset_cache_custom_css() {\\n\\tdelete_transient('webbusiness_custom_css_preview');\\n\\twebbusiness_cache_custom_css_preview();\\n}\",\n \"public function uninstallHook()\\n\\t{\\n\\t\\t$ok =\\n\\t\\t\\tdelete_option(CommentsEncryptMain::OPTION_PUB_KEY) &&\\n\\t\\t\\tdelete_option(CommentsEncryptMain::OPTION_PUB_KEY_HASH);\\n\\t\\t\\tdelete_option(CommentsEncryptMain::OPTION_STORE_AVATAR_HASHES)\\n\\t\\t;\\n\\t}\",\n \"public function on_plugin_uninstall(): void {\\n\\t\\t$this->remove_caps_from_roles();\\n\\t}\",\n \"public function deactivate()\\n {\\n $this->setTheme(null);\\n $this->removeSymlink();\\n }\",\n \"function clean_installation()\\n{\\n $files = glob(VAR_FOLDER . DS . '*');\\n foreach ($files as $file) {\\n if (is_file($file) && $file !== DEFAULT_ACCOUNTFILE && $FILE !== DEFAULT_METAFILE) {\\n unlink($file);\\n }\\n }\\n}\",\n \"function head_cleanup(){\\n\\tremove_action( 'wp_head', 'rsd_link' );\\n\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\n\\tremove_action( 'wp_head', 'index_rel_link' );\\n\\tremove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );\\n\\tremove_action( 'wp_head', 'start_post_rel_link', 10, 0 );\\n\\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\\n\\tremove_action( 'wp_head', 'wp_generator' );\\n\\tadd_filter( 'style_loader_src', 'remove_wp_ver_css_js', 9999 );\\n\\tadd_filter( 'script_loader_src', 'remove_wp_ver_css_js', 9999 );\\n}\",\n \"public function on_plugin_uninstall(): void {\\n\\t\\tif ( is_multisite() ) {\\n\\t\\t\\tdelete_site_option( self::OPTION_SHOW_ACTIVATION_NOTICE );\\n\\t\\t}\\n\\t\\tdelete_option( self::OPTION_SHOW_ACTIVATION_NOTICE );\\n\\t}\",\n \"public static function removeInstallToolEnableFile() {}\",\n \"public function on_plugin_uninstall(): void {\\n\\t\\tdelete_post_meta_by_key( self::CROPPED_ID_POST_META_KEY );\\n\\t}\",\n \"function on_uninstall ()\\n{\\n}\",\n \"function on_uninstall ()\\n{\\n}\",\n \"function unhook_parent_style() {\\n \\n wp_dequeue_style( 'genericons' );\\n\\twp_deregister_style( 'genericons' );\\n wp_dequeue_style( 'twentyfifteen-ie' );\\n\\twp_deregister_style( 'twentyfifteen-ie' );\\n wp_dequeue_style( 'twentyfifteen-ie7' );\\n\\twp_deregister_style( 'twentyfifteen-ie7' );\\n wp_dequeue_style( 'twentyfifteen-fonts' );\\n\\twp_deregister_style( 'twentyfifteen-fonts' );\\n}\",\n \"function ahla_register_assets()\\n{\\n\\t$assets = AHLAURL . '/assets';\\n\\t$ver \\t = AHLAVER;\\n\\n\\t// theme style.css\\n\\twp_register_style( 'theme-style' , get_stylesheet_uri() );\\n\\n\\t// others\\n\\t$file = $assets.'/js/skip-link-focus-fix.js';\\n\\twp_register_script( 'skip-link-focus-fix', $file, array(), $ver, true );\\n\\n\\tdo_action('ahla_register_assets');\\n}\",\n \"function startertheme_remove_version() {\\nreturn '';\\n}\",\n \"function remove_demo() {\\n\\n // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.\\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\\n remove_filter( 'plugin_row_meta', array(\\n ReduxFrameworkPlugin::instance(),\\n 'plugin_metalinks'\\n ), null, 2 );\\n\\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\\n }\\n }\",\n \"function deactivate_spark_cw_fresh() {\\n require_once plugin_dir_path(__FILE__) . 'includes/class-spark-cw-fresh-deactivator.php';\\n Spark_Cw_Fresh_Deactivator::deactivate();\\n}\",\n \"function wp_clean_themes_cache($clear_update_cache = \\\\true)\\n {\\n }\",\n \"public function uninstall() {\\n global $users;\\n\\n // Remove User Data\\n foreach($users->db AS $username => $data) {\\n unset($users->db[$username][\\\"media_order\\\"]);\\n unset($users->db[$username][\\\"media_items_per_page\\\"]);\\n unset($users->db[$username][\\\"media_layout\\\"]);\\n unset($users->db[$username][\\\"media_favorites\\\"]);\\n }\\n $users->save();\\n\\n // Uninstall Plugin\\n return parent::uninstall();\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.7359264","0.71813154","0.713725","0.6989342","0.68762815","0.68538064","0.6853646","0.6670943","0.6644396","0.6627345","0.6602687","0.6550454","0.65490544","0.6534477","0.6534477","0.6508509","0.64985716","0.64970005","0.6459887","0.6459345","0.64584404","0.645427","0.645378","0.64054966","0.6383964","0.6372252","0.63660336","0.63598233","0.6335939","0.6319304","0.62985533","0.6289108","0.62866515","0.6277745","0.62055695","0.62030625","0.6194734","0.6194734","0.61888933","0.6186312","0.6179953","0.6170347","0.61466193","0.61278206","0.61233926","0.61217624","0.61115533","0.6111146","0.6111146","0.61004347","0.6099176","0.60941666","0.6093446","0.60918933","0.60901785","0.60872215","0.6085277","0.60821784","0.6079281","0.60683525","0.6068171","0.6056964","0.6054779","0.6020377","0.59980553","0.5997387","0.5996337","0.5995659","0.59944415","0.5985256","0.59828055","0.597574","0.5973938","0.5957784","0.5946255","0.59430456","0.5942413","0.5941903","0.5941777","0.5939807","0.59373987","0.593509","0.59287256","0.5926264","0.58988094","0.58932465","0.58923393","0.588709","0.58834755","0.5872662","0.5863342","0.58624524","0.5858486","0.5858486","0.58536345","0.5848213","0.58452106","0.58415395","0.5835864","0.58279663","0.5827849"],"string":"[\n \"0.7359264\",\n \"0.71813154\",\n \"0.713725\",\n \"0.6989342\",\n \"0.68762815\",\n \"0.68538064\",\n \"0.6853646\",\n \"0.6670943\",\n \"0.6644396\",\n \"0.6627345\",\n \"0.6602687\",\n \"0.6550454\",\n \"0.65490544\",\n \"0.6534477\",\n \"0.6534477\",\n \"0.6508509\",\n \"0.64985716\",\n \"0.64970005\",\n \"0.6459887\",\n \"0.6459345\",\n \"0.64584404\",\n \"0.645427\",\n \"0.645378\",\n \"0.64054966\",\n \"0.6383964\",\n \"0.6372252\",\n \"0.63660336\",\n \"0.63598233\",\n \"0.6335939\",\n \"0.6319304\",\n \"0.62985533\",\n \"0.6289108\",\n \"0.62866515\",\n \"0.6277745\",\n \"0.62055695\",\n \"0.62030625\",\n \"0.6194734\",\n \"0.6194734\",\n \"0.61888933\",\n \"0.6186312\",\n \"0.6179953\",\n \"0.6170347\",\n \"0.61466193\",\n \"0.61278206\",\n \"0.61233926\",\n \"0.61217624\",\n \"0.61115533\",\n \"0.6111146\",\n \"0.6111146\",\n \"0.61004347\",\n \"0.6099176\",\n \"0.60941666\",\n \"0.6093446\",\n \"0.60918933\",\n \"0.60901785\",\n \"0.60872215\",\n \"0.6085277\",\n \"0.60821784\",\n \"0.6079281\",\n \"0.60683525\",\n \"0.6068171\",\n \"0.6056964\",\n \"0.6054779\",\n \"0.6020377\",\n \"0.59980553\",\n \"0.5997387\",\n \"0.5996337\",\n \"0.5995659\",\n \"0.59944415\",\n \"0.5985256\",\n \"0.59828055\",\n \"0.597574\",\n \"0.5973938\",\n \"0.5957784\",\n \"0.5946255\",\n \"0.59430456\",\n \"0.5942413\",\n \"0.5941903\",\n \"0.5941777\",\n \"0.5939807\",\n \"0.59373987\",\n \"0.593509\",\n \"0.59287256\",\n \"0.5926264\",\n \"0.58988094\",\n \"0.58932465\",\n \"0.58923393\",\n \"0.588709\",\n \"0.58834755\",\n \"0.5872662\",\n \"0.5863342\",\n \"0.58624524\",\n \"0.5858486\",\n \"0.5858486\",\n \"0.58536345\",\n \"0.5848213\",\n \"0.58452106\",\n \"0.58415395\",\n \"0.5835864\",\n \"0.58279663\",\n \"0.5827849\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":436,"cells":{"query":{"kind":"string","value":"inject css & js in htmlheader"},"document":{"kind":"string","value":"function abl_droploader_head_end($evt, $stp) {\n\t\tglobal $event, $step, $prefs, $abl_droploader_prefs;\n\n\t\tif (($event == 'image'\n\t\t\t&& (in_array($step, array('list', 'image_list', 'image_multi_edit', 'image_change_pageby', 'image_save', ''))))\n\t\t|| ($event == 'article'\n\t\t\t&& (in_array($step, array('create', 'edit'))))) {\n\t\t\t$abl_droploader_prefs = abl_droploader_load_prefs();\n\t\t\t$css = '';\n\t\t\tif (intval($abl_droploader_prefs['useDefaultStylesheet']) != 0) {\n\t\t\t\t$css .= '' . n;\n\t\t\t}\n\t\t\tif ($abl_droploader_prefs['customStylesheet'] != '') {\n\t\t\t\t$css .= '' . n;\n\t\t\t}\n\t\t\tif ($css == '') {\n\t\t\t\t$css = '' . n;\n\t\t\t}\n\t\t\t$article_image_field_ids = '\"' . implode('\", \"', explode(',', $abl_droploader_prefs['articleImageFields'])) . '\"';\n\t\t\t$script = '\n\n\n' . n;\n\t\t\techo $css . $script;\n\t\t}\n\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["public function hookHeader()\n {\n // $this->context->controller->addJS('http://code.jquery.com/jquery-2.1.4.min.js');\n // $this->context->controller->addJS($this->_path.'views/js/bootstrap.min.js');\n $this->context->controller->addJS($this->_path.'views/js/front.js');\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\n\n $this->context->controller->addJS($this->_path.'views/js/responsiveslides.js');\n $this->context->controller->addCSS($this->_path.'views/css/responsiveslides.css');\n $this->context->controller->addCSS($this->_path.'views/css/themes.css');\n }","public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }","public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }","public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }","public function hookHeader()\n\t{\n\t\t$this->context->controller->addJS($this->_path.'/views/js/front.js');\n\t\t$this->context->controller->addCSS($this->_path.'/views/css/front.css');\n\t}","public function hookHeader(){\n $this->context->controller->addCSS($this->_path.'style.css');\n \n $this->context->controller->addJqueryPlugin(array('scrollTo', 'serialScroll'));\n $this->context->controller->addJS($this->_path.'script.js');\n }","public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/owl.carousel.min.js');\n $this->context->controller->addCSS($this->_path.'/views/css/owl.carousel.min.css');\n\n $this->context->controller->addJS($this->_path.'/views/js/mf.custom.js');\n $this->context->controller->addCSS($this->_path.'/views/css/mf.theme.default.css');\n\n }","public function hookHeader()\n {\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }","public function _assign_xoops_header()\n {\n $header_class = webphoto_xoops_header::getInstance($this->_DIRNAME, $this->_TRUST_DIRNAME);\n $header_class->set_flag_css(true);\n $header_class->assign_for_main();\n }","protected function setHeaders() {\n\t\tif(!self::$headerIncluded) {\n\n\t\t\tif($this->settings['includes']['jquery'])\n\t\t\t\t$this->response->addAdditionalHeaderData('');\n\n if($this->settings['includes']['mediaelement'])\n\t\t\t $this->response->addAdditionalHeaderData('');\n\n\t\t\tif($this->settings['includes']['jquery-resize'])\n\t\t\t\t$this->response->addAdditionalHeaderData('');\n\t\t\tif($this->settings['includes']['modernizr'])\n\t\t\t\t$this->response->addAdditionalHeaderData('');\n\t\t\t\t\t\t\n\t\t\tif($this->settings['includes']['css'])\n\t\t\t\t$this->response->addAdditionalHeaderData('extKey).'Resources/Public/CSS/tx-vibeo.css\" />');\n\n if($this->settings['includes']['mediaelement-css'])\n\t\t\t $this->response->addAdditionalHeaderData('extKey).'Resources/Public/Vibeo/mediaelementplayer.css\" />');\n\n if($this->settings['includes']['mediaelement-skin-css'])\n $this->response->addAdditionalHeaderData('extKey).'Resources/Public/Vibeo/skin-gray.css\" />');\n\n\t\t\tself::$headerIncluded = true;\n\t\t}\n\t}","public function prepareHead() {\r\n // add jQuery\r\n if($this->cdn_jquery) {\r\n $this->addJS('//code.jquery.com/jquery-2.1.0.min.js', true);\r\n $this->addJS('//code.jquery.com/jquery-migrate-1.2.1.min.js', true);\r\n } else {\r\n $this->addJS(array('jquery-2.1.0.min', 'jquery-migrate-1.2.1.min'));\r\n }\r\n // add bootstrap\r\n if($this->cdn_bootstrap) {\r\n $this->addCSS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css', true);\r\n $this->addJS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js', true);\r\n } else {\r\n $this->addCSS('bootstrap.min');\r\n $this->addJS('bootstrap.min');\r\n }\r\n \r\n $this->addCSS(array('bootstrap-switch.min', 'spectrum'));\r\n $this->addJS(array('plugins'));\r\n \r\n // ace code editor\r\n $this->addJS('libs/ace/ace.js', true);\r\n \r\n $this->addCSS('style');\r\n $this->addJS('script');\r\n \r\n $this->smarty->assign(array(\r\n 'title' => $this->title,\r\n 'css_files' => $this->css_files,\r\n 'js_files' => $this->js_files,\r\n ));\r\n }","private function do_header() {\n $m_header = '';\n $m_header .= '';\n $m_header .= '';\n // $m_header .= '';\n // $m_header .= '';\n $this->c_header = $m_header;\n }","function myheader($additionalHeaderContent = NULL) {\n\t\tprint '';\n\t\t\tprint '';\n\t\t\t\tprint '';\n\t\t\t\t\tif (defined('TITLE')) {\n\t\t\t\t\t\tprint TITLE;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tprint 'MiddleClik';\n\t\t\t\t\t}\n\t\t\t\tprint '';\n\t\t\t\tprint \"\";\n\t\t\t\tprint $additionalHeaderContent;\n\t\t\t\tprint \"\";\n\t\t\tprint '';\n\t}","function head_css()\n{\n return get_view()->headLink() . get_view()->headStyle();\n}","function header() {\n?>\n\n \n\njscript_list();\n $this->css_list();\n?> \n <?php echo $this->title; ?>\n\n\ngCache->cache_or_get(CACHE_CACHE_TIME_TINY, \"\",$header_template_name, \"load_template_file\",$header_template_name);\n\n\t\t# the header has special substitutions for jquery css and jquery js\n\t\t$jquery_ui_css_string\t=\t\"\";\n\t\t$jquery_ui_js_string\t=\t'';\n\n\t\t$jquery_js_string\t\t=\t''. \"\\n\";\n\t\t$jquery_js_string\t\t.=\t'';\n\n\n\t\t$basic_tags\t\t\t=\n\n\t\t\tarray\n\t\t\t(\n\t\t\t\t\"{{header}}\"\t\t\t\t=>\t$header_string,\n\t\t\t\t\"{{jquery_ui_css}}\"\t\t\t=>\t$jquery_ui_css_string,\n\t\t\t\t\"{{jquery_ui_js}}\"\t\t\t=>\t$jquery_ui_js_string,\n\t\t\t\t\"{{jquery_js}}\"\t\t\t\t=>\t$jquery_js_string,\n\t\t\t);\n\n\n\t\t# append the array\n\t\t$this->sub_tags($basic_tags);\n\n\n\t}","function loadInHeader() {\n $this->metaData();\n//\t\t$this->loadAddOns();\n $this->onHead(\"onHead\"); // call back to onHead in extensions things js, etc in head\n $this->onEditor(\"onHead\"); // only when login to admin, for fck to work??\n //If not in admin, blank initEditor\n if (!isset($_SESSION['name'])) { // not sure what this does??\n print \"\\n\";\n }\n }","protected function renderJavaScriptAndCss() {}","function getHTML_additionalHeaderData() {\n\t\t\t// get js configs\n\t\t\t// get topical element and overwrite startID in appConf['js.']['config.']\n\t\tif ($this->appConf['topicAtStart']) {\n\t\t\t$this->appConf['js.']['config.']['startIndex'] = $this->appConf['topicId'];\n\t\t}\n\t\t\t// only boolean and integers allowed, strings ar not supported\n\t\tif (is_array($this->appConf['js.']['config.'])) {\n\t\t\t$configArray = array();\n\t\t\tforeach ($this->appConf['js.']['config.'] as $key => $val) {\n\t\t\t\t$configArray[] = trim($key) . ': ' . trim($val);\n\t\t\t}\n\t\t\t$config = implode(', ',$configArray);\n\t\t}\n\t\t\t// additional headers as css & js\n\t\t$GLOBALS['TSFE']->additionalHeaderData['contentcoverflow'] .= '\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tappConf['css.']['file'] . '\" />\n\t\t\t\n\t\t';\n\t}","public function css() {\r\n\t\tif ($this->cssLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('name.'/css/'.$this->cssLink.'.css\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($page = pzk_page())\r\n\t\t\t\t\t$page->addObjCss($this->cssLink);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif ($this->cssExternalLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('cssExternalLink.'\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($page = pzk_page()) {\r\n\t\t\t\t\t$page->addExternalCss($this->cssExternalLink);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}","function painter_head() {\n\t\techo '';\n\n\t\techo '';\n echo '';\n echo '';\n echo '';\n echo '';\n echo '';\n}","public function addScriptToHeader($context)\n\t\t{\n\t\t\tif(!empty(Symphony::Engine()->Author))\n\t\t\t{\n\t\t\t\tif(Symphony::Engine()->Author->isDeveloper())\n\t\t\t\t{\n\t\t\t\t\t$context['output'] = str_replace('', '\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t', $context['output']);\n\t\t\t\t}\n\t\t\t}\n\t\t}","function addHeaderCode() {\r\n echo '' . \"\\n\";\r\n}","protected function addJS() {\n foreach ($this->js_files as $js_file) {\n $this->header.=\" \\n\";\n }\n }","public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->addJS($this->_path.'views/js/back.js');\n $this->context->addCSS($this->_path.'views/css/back.css');\n $this->context->addJS($this->_path.'views/fonts/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/jquery.dataTables.css');\n }\n }","public function hookHeader()\n {\n $language_code = $this->context->language->language_code;\n $this->context->controller->addJS($this->_path . '/views/js/front.js');\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\n if (version_compare(_PS_VERSION_, '1.6.1.0', '>=')) {\n Media::addJsDef(\n array(\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\n 'wi_weather_url' => $this->getUrl(),\n 'wi_weather_city' => $this->getCity($language_code)\n )\n );\n } else {\n $this->context->smarty->assign(\n array(\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\n 'wi_weather_url' => $this->getUrl(),\n 'wi_weather_city' => $this->getCity($language_code)\n )\n );\n\n return $this->context->smarty->fetch(\n _PS_MODULE_DIR_ . $this->name\n . DIRECTORY_SEPARATOR . 'views'\n . DIRECTORY_SEPARATOR . 'templates'\n . DIRECTORY_SEPARATOR . 'front'\n . DIRECTORY_SEPARATOR . 'javascript.tpl'\n );\n }\n }","public function hookHeader()\n {\n if ($this->context->controller instanceof OrderConfirmationController) {\n $this->context->controller->addJS($this->_path . '/views/js/scratch-card.js');\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\n }\n }","function Header(){\n\t\t}","function divi_assets_header() {\n\n // Header script loading is simplistic in this starter kit but you may want to change what file is loaded based on various conditions; check out the footer asset loader for an example\n $file = 'divi-header';\n// wp_enqueue_script( 'divi-header', get_stylesheet_directory_uri() . '/js/' . $file . '.js', $deps = array('jquery'), filemtime( get_stylesheet_directory() . '/js/' . $file . '.js' ), false );\n\n // Register and enqueue our main stylesheet with versioning based on last modified time\n wp_register_style( 'divi-style', get_template_directory_uri() . '/style.css', $dependencies = array(), filemtime( get_template_directory() . '/style.css' ) );\n wp_enqueue_style( 'divi-style' );\n// wp_register_style( 'child-style', get_stylesheet_uri(), $dependencies = array(), filemtime( get_stylesheet_directory() . '/style.css' ) );\n// wp_enqueue_style( 'child-style' );\n}","protected function addCSS() {\n foreach ($this->css_files as $css_file) {\n $this->header.=\" \\n\";\n }\n }","function get_css_header();","public function hookDisplayHeader($params)\n {\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\n }","private function displayHeader(){\n\t\t\t$html = ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ' PCInsight | ' .$this->pageInfo['pageTitle'].''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= 'pageInfo['pageDescription'].'\" />'.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '

    PCinsight

    '.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
      '.\"\\n\";\n\t\t\t$html .= '
    • Home
    • '.\"\\n\"; \n\t\t\t$html .= '
    • Articles
    • '.\"\\n\"; \t\t\t\n\t\t\t$html .= '
    • About
    • '.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '
    • Login
    • '.\"\\n\";\n\t\t\t\t$html .= '
    • Register
    • '.\"\\n\";\n\t\t\t} else {\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '
    • Admin
    • '.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '
    • Logout
    • '.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\t\t\t\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t\t$html .= ' Login '.\"\\n\";\n\t\t\t\t$html .= ' Register '.\"\\n\";\n\t\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t} else {\n\t\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t\t$html .= ' Logout '.\"\\n\";\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= ' Admin '.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\"; \n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= ''.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\t$html .= '
    '.\"\\n\";\n\t\t\tif (!$this->db->isRegistered()){\n\t\t\t\t$html .= '

    Please register your account here

    ';\n\t\t\t}\n\t\t\treturn $html;\n\t\t}","private function includeJavaScript() {\n\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId]\n\t\t\t= '';\n\n\t\tif ($this->hasConfValueString('mooTools')) {\n\t\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId . '_moo']\n\t\t\t\t= '';\n\t\t}\n\t}","public function control_panel__add_to_head()\n\t{\n\t\tif ( URL::getCurrent(false) == '/publish' ) {\n\t\t\treturn $this->css->link('fileclerk.css');\n\t\t}\n\t}","function add_head() {\r\n\t\tglobal $locale;\r\n\t\t$wpca_settings = get_option('wpcareers');\r\n\t\techo \"plugin_url . \"/themes/default/css/default.css\\\" type=\\\"text/css\\\" media=\\\"screen\\\">\";\r\n\t\tif($wpca_settings['edit_style']==null || $wpca_settings['edit_style']=='plain') {\r\n\t\t\t// nothing\r\n\t\t} elseif($wpca_settings['edit_style']=='tinymce') {\r\n\t\t\t// activate these includes if the user chooses tinyMCE on the settings page\r\n\t\t\t$mce_path = get_option('siteurl');\r\n\t\t\t$mce_path .= '/wp-includes/js/tinymce/tiny_mce.js';\r\n\t\t\techo '';\r\n\t\t}\r\n\t}","public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\n }\n }","public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\n }\n }","public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }","public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }","public function hookBackOfficeHeader()\n {\n if (Tools::getValue('module_name') == $this->name) {\n $this->context->controller->addJS($this->_path.'views/js/back.js');\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }","function ind_header( ) {\n\t$css = get_theme_root().\"/\".get_template().\"/indizar.css\";\n\tif(file_exists($css)) {\n\t\t$css_register = get_bloginfo('template_directory').'/indizar.css';\n\t} else {\n\t\t$css_register = ind_plugin_url('/css/indizar.css');\n\t}\n\t\n\tif((is_single() || is_page()) && INDIZAR_DIV) {\n\t\t//Define custom JavaScript options\n\t\t//$div = str_replace(array('%id%'), array(get_the_ID()), INDIZAR_DIV);\n\t\t$div = INDIZAR_DIV;\n\t\t$top = INDIZAR_DIV;\n\t\tif(INDIZAR_TOPDIV)\n\t\t\t$top = INDIZAR_TOPDIV;\n\t\t//$top = str_replace(array('%id%'), array(get_the_ID()), $top);\n\t\techo \"\n\t\t\";\n\n\t\t//Declare javascript\n\t\twp_register_script('scrollto', $url.'/wp-content/plugins/indizar/scripts/jquery.scrollTo-min.js', array('jquery'), INDIZAR_HEADER_V);\n\t\twp_register_script('indizar', $url.'/wp-content/plugins/indizar/indizar.js', array('scrollto'), INDIZAR_HEADER_V);\n\t\twp_enqueue_script('indizar');\n\t\twp_print_scripts( array( 'indizar' ));\n\t}\n\t\n\t//Declare style\n\twp_register_style('indizar', $css_register, false, INDIZAR_HEADER_V);\n\twp_enqueue_style('indizar');\n\twp_print_styles( array( 'indizar' ));\n}","public function init()\n {\n $this->view->headScript()->exchangeArray(array());\n $this->view->headScript()->appendFile('http://code.jquery.com/jquery.js','text/javascript');\n $this->view->headScript()->appendFile('http://code.jquery.com/ui/1.10.2/jquery-ui.js','text/javascript');\n $this->view->headScript()->appendFile($this->view->baseUrl('/js/bootstrap.min.js'),'text/javascript');\n $this->view->headLink()->exchangeArray(array());\n $this->view->headLink()->appendStylesheet('http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css'); \n $this->view->headLink()->appendStylesheet($this->view->baseUrl('/css/bootstrap.min.css')); \n //$this->view->headLink()->appendStylesheet($this->view->baseUrl('/css/bootstrap-responsive.min.css')); \n $this->view->headLink()->appendStylesheet($this->view->baseUrl('/css/planner.css')); \n $this->view->doctype('XHTML1_STRICT');\n $this->view->headMeta()->exchangeArray(array());\n $this->view->headMeta()\n ->appendName('keywords', 'Homepage')\n ->appendHttpEquiv('viewport','width=device-width, initial-scale=1.0')\n ->appendHttpEquiv('pragma', 'no-cache')\n ->appendHttpEquiv('Cache-Control', 'no-cache')\n ->appendHttpEquiv('Content-Type','text/html; charset=UTF-8')\n ->appendHttpEquiv('Content-Language', 'en-UK')\n ->appendHttpEquiv('X-UA-Compatible', 'IE=edge,chrome=1');\n \n \n }","public function addHead()\n {\n if (file_exists(DIRREQ . \"app/view/{$this->getDir()}/head.php\")) {\n include(DIRREQ . \"app/view/{$this->getDir()}/head.php\");\n }\n }","function load_header(){\n\t\techo \"
    HEADER
    \";\n\t}","function getHeader(){\n\t\trequire 'pages/headerfooter/header.html';\n\t}","function head_css()\n\t{\n\t\tqa_html_theme_base::head_css();\n\t\t// if if already added widgets have a css file activated\n\t\t$styles = array();\n\t\tforeach ($this->content['widgets'] as $region_key => $regions) {\n\t\t\tforeach ($regions as $template_key => $widgets) {\n\t\t\t\t$position = strtoupper(substr($region_key,0,1) . substr($template_key,0,1) );\n\t\t\t\tforeach ($widgets as $key => $widget) {\n\t\t\t\t\t$widget_name = get_class ($widget);\n\t\t\t\t\t$widget_key = $widget_name.'_'.$position;\n\t\t\t\t\t$file = get_widget_option($widget_key, 'uw_styles');\n\t\t\t\t\t// if file existed then put it into an array to prevent duplications\n\t\t\t\t\tif($file)\n\t\t\t\t\t\t$styles[$widget_name][$file]=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add styling files to theme\n\t\tif($styles)\n\t\t\tforeach ($styles as $widget_name => $files)\n\t\t\t\tforeach ($files as $file => $verified)\n\t\t\t\t\tif( $file != 'none' )\n\t\t\t\t\t\t$this->output('');\n\t}","public static function setHTMLHeader($header) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setHTMLHeader($header);\t\t\n\t}","public function header_output() {\n\n\t\t?>\n\t\t\n\t\thead_script_tags = \"\";\n\n foreach( $this->head_scripts as $value ){\n\n $this->head_script_tags .= \"\";\n\n }\n\n $this->head = file_get_contents(\"head/home.html\").$this->head_script_tags.\"\";\n\n }","function head(){\n\t?>\n\t\n\tEEMS\n\t\n\t$title\";\n $rtn_str .= '';\n $rtn_str .= '';\n \n $rtn_str .= '';\n $rtn_str .= '';\n \n $rtn_str .= '';\n \n $rtn_str .= \"
    \";\n \n return $rtn_str;\n}","protected function setHeader($header_extra = '') {\n $this->header = \" \\n \\n \\n \\n Log-in Page Project\";\n $this->loadConfig();\n $this->addMeta();\n $this->addJS();\n $this->addCSS();\n $this->header.=$header_extra;\n $this->header.=\"\";\n return $this->header;\n }","public function head_add($html) {\n\t\tif (defined('DEBUG_ENABLED') && DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))\n\t\t\tdebug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);\n\n\t\t$this->_head[] .= $html;\n\t}","public function hookbackOfficeHeader()\n\t{\n\t\tif (isset(Context::getContext()->controller) && $this->context->controller != null)\n\t\t\t$this->context->controller->addJS($this->_path.'js/clickline_order.js');\n\n//Ponemos el css para el admin\n\t\tif ((int) strcmp((version_compare(_PS_VERSION_, '1.5', '>=') ? Tools::getValue('configure') : Tools::getValue('module_name')), $this->name) == 0)\n\t\t{\n\n\t\t\tif (isset(Context::getContext()->controller) && $this->context->controller != null)\n\t\t\t{\n\t\t\t\t$this->context->controller->addCSS(_MODULE_DIR_.$this->name.'/css/admin.css');\n\t\t\t\t$this->context->controller->addJS(_MODULE_DIR_.$this->name.'/js/admin.js');\n\t\t\t}\n\t\t}\n\t}","function addHead()\n\t{\n\n\t\t$app = JFactory::getApplication();\n\t\t$user = JFactory::getUser();\n\t\t$input = $app->input;\n\n\t\t$responsive = $this->getParam('responsive', 1);\n\t\t$navtype = $this->getParam('navigation_type', 'joomla');\n\t\t$navtrigger = $this->getParam('navigation_trigger', 'hover');\n\t\t$offcanvas = $this->getParam('navigation_collapse_offcanvas', 0) || $this->getParam('addon_offcanvas_enable', 0);\n\t\t$legacycss = $this->getParam('legacy_css', 0);\n\t\t$frontedit = in_array($input->getCmd('option'), array('com_media', 'com_config'))\t//com_media or com_config\n\t\t\t\t\t\t\t\t\t\t|| in_array($input->getCmd('layout'), array('edit'))\t\t\t\t\t\t\t\t//edit layout\n\t\t\t\t\t\t\t\t\t\t|| (version_compare(JVERSION, '3.2', 'ge') && $user->id && $app->get('frontediting', 1) && \n\t\t\t\t\t\t\t\t\t\t\t\t($user->authorise('core.edit', 'com_modules') || $user->authorise('core.edit', 'com_menus')));\t//frontediting\n\n\t\t// LEGACY COMPATIBLE\n\t\tif($legacycss){\n\t\t\t$this->addCss('legacy-grid');\t//legacy grid\n\t\t\t$this->addStyleSheet(T3_URL . '/fonts/font-awesome/css/font-awesome.css'); //font awesome 3\n\t\t}\n\n\t\t// FRONTEND EDITING\n\t\tif($frontedit){\n\t\t\t$this->addCss('frontend-edit');\n\t\t}\n\n\t\t// BOOTSTRAP CSS\n\t\t$this->addCss('bootstrap', false);\n\n\t\t// TEMPLATE CSS\n\t\t$this->addCss('template', false);\n\n\t\tif (!$responsive && $this->responcls) {\n\t\t\t$this->addCss('non-responsive'); //no responsive\n\n\t\t\t$nonrespwidth = $this->getParam('non_responsive_width', '970px');\n\t\t\tif(preg_match('/^(-?\\d*\\.?\\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/', $nonrespwidth, $match)){\n\t\t\t\t$nonrespwidth = $match[1] . (!empty($match[2]) ? $match[2] : 'px');\n\t\t\t}\n\t\t\t$this->addStyleDeclaration('.container {width: ' . $nonrespwidth . ' !important;}');\n\t\t\n\t\t} else if(!$this->responcls){\n\t\t\t\n\t\t\t// BOOTSTRAP RESPONSIVE CSS\n\t\t\t$this->addCss('bootstrap-responsive');\n\t\t\t\n\t\t\t// RESPONSIVE CSS\n\t\t\t$this->addCss('template-responsive');\n\t\t}\n\n\t\t// add core megamenu.css in plugin\n\t\t// deprecated - will extend the core style into template megamenu.less & megamenu-responsive.less\n\t\t// to use variable overridden in template\n\t\tif($navtype == 'megamenu'){\n\n\t\t\t// If the template does not overwrite megamenu.less & megamenu-responsive.less\n\t\t\t// We check and included predefined megamenu style in base\n\t\t\tif(!is_file(T3_TEMPLATE_PATH . '/less/megamenu.less')){\n\t\t\t\t$this->addStyleSheet(T3_URL . '/css/megamenu.css');\n\n\t\t\t\tif ($responsive && !$this->responcls){\n\t\t\t\t\t$this->addStyleSheet(T3_URL . '/css/megamenu-responsive.css');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// megamenu.css override in template\n\t\t\t$this->addCss('megamenu');\n\t\t}\n\n\t\t// Add scripts\n\t\tif (version_compare(JVERSION, '3.0', 'ge')) {\n\t\t\tJHtml::_('jquery.framework');\n\t\t} else {\n\t\t\t$scripts = @$this->_scripts;\n\t\t\t$jqueryIncluded = 0;\n\t\t\tif (is_array($scripts) && count($scripts)) {\n\t\t\t\t//simple detect for jquery library. It will work for most of cases\n\t\t\t\t$pattern = '/(^|\\/)jquery([-_]*\\d+(\\.\\d+)+)?(\\.min)?\\.js/i';\n\t\t\t\tforeach ($scripts as $script => $opts) {\n\t\t\t\t\tif (preg_match($pattern, $script)) {\n\t\t\t\t\t\t$jqueryIncluded = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!$jqueryIncluded) {\n\t\t\t\t$this->addScript(T3_URL . '/js/jquery-1.8.3' . ($this->getParam('devmode', 0) ? '' : '.min') . '.js');\n\t\t\t\t$this->addScript(T3_URL . '/js/jquery.noconflict.js');\n\t\t\t}\n\t\t}\n\n\t\tdefine('JQUERY_INCLUED', 1);\n\n\n\t\t// As joomla 3.0 bootstrap is buggy, we will not use it\n\t\t$this->addScript(T3_URL . '/bootstrap/js/bootstrap.js');\n\t\t// a jquery tap plugin\n\t\t$this->addScript(T3_URL . '/js/jquery.tap.min.js');\n\n\t\t// add css/js for off-canvas\n\t\tif ($offcanvas && ($this->responcls || $responsive)) {\n\t\t\t$this->addCss('off-canvas', false);\n\t\t\t$this->addScript(T3_URL . '/js/off-canvas.js');\n\t\t}\n\n\t\t$this->addScript(T3_URL . '/js/script.js');\n\n\t\t//menu control script\n\t\tif ($navtrigger == 'hover') {\n\t\t\t$this->addScript(T3_URL . '/js/menu.js');\n\t\t}\n\n\t\t//reponsive script\n\t\tif ($responsive && !$this->responcls) {\n\t\t\t$this->addScript(T3_URL . '/js/responsive.js');\n\t\t}\n\n\t\t//some helper javascript functions for frontend edit\n\t\tif($frontedit){\n\t\t\t$this->addScript(T3_URL . '/js/frontend-edit.js');\n\t\t}\n\n\t\t//check and add additional assets\n\t\t$this->addExtraAssets();\n\t}","function dw2_header_prive($flux) {\r\n\t\t$flux .= ''.\"\\n\";\r\n\t\t$flux .= ''.\"\\n\";\r\n\t\treturn $flux;\r\n\t}","function asu_brand_head_inject() {\n $settings = asu_brand_get_block_settings();\n $cache_id = 'asu_brand:head';\n \n $head_output = asu_brand_get_cached_content($cache_id, $settings->head_path);\n\n // Inject header javascript into and set the weight to a high negative value.\n $asu_sso_signedin = $settings->js_settings['asu_sso_signedin'];\n $asu_sso_signinurl = $settings->js_settings['asu_sso_signinurl'];\n $asu_sso_signouturl = $settings->js_settings['asu_sso_signouturl'];\n $inline_script = <<\n \n \nEOL;\n \n // TODO: If asu.edu/asuthemes/x/headers/default.shtml and asu.edu/asuthemes/x/js/asu_header.js\n // get updated we can remove the first drupal_add_html_head() and $inline_script above.\n drupal_add_js(array('asu_brand' => $settings->js_settings), 'setting');\n drupal_add_js(drupal_get_path('module', 'asu_brand') . '/asu_brand.js', array());\n drupal_add_html_head(array('#type' => 'markup', '#markup' => $inline_script, '#weight' => -100), 'asu_brand_head_js');\n drupal_add_html_head(array('#type' => 'markup', '#markup' => $head_output, '#weight' => -99), 'asu_brand_head');\n}","private function addCSS()\n {\n Filters::add('head', array($this, 'renderRevisionsCSS'));\n }","public function admin_head()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $this->admin_ajax_handler();\n \n $head_content = $this->standard_head(); // We start with the standard stuff.\n \n $head_content .= ''; // Load the Google Maps stuff for our map.\n \n $head_content .= 'get_plugin_path();\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_styles.css\" />';\n \n $head_content .= '\\n\";\n\t}\n\telse\n\t{\n\t\techo \"\\t\\n\";\n\t}\n\techo \"\\t\\n\";\n\techo \"\\t\\n\";\n\techo \"\\n\\n\";\n}","public function hookHeader()\n {\n if (is_dir(_PS_MODULE_DIR_ . $this->name . '/views/fonts/front/' . $this->context->language->iso_code)) {\n $this->context->controller->addCSS($this->_path . 'views/css/front.css');\n }\n }","protected function htmlHead() {\n echo \"\\n\";\n echo \"\\n\";\n echo str_repeat(\"\\t\",1) . \"\\n\";\n echo str_repeat(\"\\t\",2) . \"Евиденција волонтера\\n\";\n echo str_repeat(\"\\t\",2) . \"\\n\";\n echo str_repeat(\"\\t\",2) . \"\\n\";\n if( !is_null($this->cssfile) ) {\n echo str_repeat(\"\\t\",2) . \"cssfile}\\\">\\n\";\n }\n echo str_repeat(\"\\t\",1) . \"\\n\";\n }","function twentyten_admin_header_style() {\n\t?>\n\t\n\tregister_effect($e);\n\n\t\tif ($this->header_js) {\n\t\t$this->load_jquery();\n\t\t?>\n\n\n\t\toutputLine('');\n\t\t\t\n\t\t\tif ($this->_title != '') {\n\t\t\t\t$this->outputLine('\t' . $this->_title . '');\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('\t_base . '\" />');\n\t\t\t\n\t\t\t$this->outputLine('\t_contentType . '\" />');\n\t\t\t\n\t\t\t//Meta\n\t\t\tforeach ($this->_meta as $meta) {\n\t\t\t\t$this->outputLine('\tname . '\" content=\"' . $meta->content . '\" />');\n\t\t\t}\n\t\t\t\n\t\t\t//CSS\n\t\t\tforeach ($this->_css as $css) {\n\t\t\t\t$this->outputLine(\"\t\" . $css);\n\t\t\t}\n\t\t\t\n\t\t\t//JS\n\t\t\tforeach ($this->_js as $js) {\n\t\t\t\t$this->outputLine(\"\t\" . $js);\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('');\n\t\t\n\t\t}","function stag_header_css() {\n\t?>\n\t\n\tgetSiteURL();\n \n // front-end only\n if ($end == 'front') {\n // url base\n echo \"\\n\".'getSiteURL().'\">';\n }\n echo \"\\n\".''.\"\\n\";\n // css\n echo ' '.\"\\n\";\n foreach (glob(GSPLUGINPATH.self::FILE.'/css/*.css') as $css) {\n echo ' '.\"\\n\";\n }\n echo ' '.\"\\n\";\n \n // js\n echo ' '.\"\\n\";\n $javascript = glob(GSPLUGINPATH.self::FILE.'/js/*.js');\n natsort($javascript);\n \n foreach ($javascript as $js) {\n echo ' '.\"\\n\";\n }\n echo ' '.\"\\n\";\n echo ''.\"\\n\";\n }","function eventoni_add_customization_to_header() {\n\tglobal $wpdb;\n\n\t$options = get_option('eventoni_options');\n\t$background_color = $options['bg_color'];\n\n\techo '';\n\t$customization = $wpdb->get_results(\"SELECT option_value FROM $wpdb->options WHERE option_name = 'eventoni_options' LIMIT 1\");\n\t// SACK-Bibliothek fuer Ajax-Request\n\twp_print_scripts( array( 'sack' ));\n\t?>\n\n\t\n\t\n\n \" />\n \n context->controller->addCSS(($this->_path).'blockproductmanufacturer.css', 'all');\n }","public function addHeader()\n {\n if (file_exists(DIRREQ . \"app/view/{$this->getDir()}/header.php\")) {\n include(DIRREQ . \"app/view/{$this->getDir()}/header.php\");\n }\n }","function mpcth_add_admin_head() {\r\n\tmpcth_admin_alternative_styles();\r\n}","private function _include_css()\n {\n if ( !$this->cache['css'] )\n {\n $this->EE->cp->add_to_head('');\n\n $this->cache['css'] = TRUE;\n }\n }","function html_head_from_all_pagest()\r\n{\r\n $ht_head = '\r\n \r\n \r\n \r\n \r\n Кредитный калькулятор\r\n \r\n \r\n \r\n \r\n ';\r\n echo $ht_head;\r\n}","static function header() {\n $url = $GLOBALS[\"path\"] ? $GLOBALS[\"path\"] : \"http://localhost:8000/\";\n echo ''.\"\\n\";\n }","public function siteHead() {\n\t\t$webhook = $this->getValue('page');\n\t\tIF($this->webhook($webhook)) {\n\t\t $html = '';\n\t\t $css = THEME_DIR_CSS . 'contact3.css';\n\t\t IF(file_exists($css)) {\n\t\t\t$html .= Theme::css('css' . DS . 'contact3.css');\n\t\t } else {\n\t\t\t$html .= 'htmlPath(). 'layout' . DS . 'contact3.css\">' .PHP_EOL;\n\t\t }\n\n\t\t IF($this->getValue('google-recaptcha')){\n\t\t\t$html .= '';\n\t\t }\n\n\t\t return $html;\n\t\t}\n\n\t\t$webHookForBookingLog = $this->getValue('bookingsDisplayPage');\n\t\tIF($this->webhook($webHookForBookingLog)) {\n\t\t\t// Include plugin's CSS files\n\t\t\t$html = $this->includeCSS('BookingForm.css');\n\t\t\t\n\t\t\treturn $html;\n\t\t}\n\t}","function flatsome_custom_header_js() {\n if(get_theme_mod('html_scripts_header') && !is_admin()){\n echo get_theme_mod('html_scripts_header');\n }\n}","public function addHeader(){\n$this->page.= <<\n\n\n\n$this->title\n\n\n

    \n$this->title\n

    \nEOD;\n}","public function head() {\r\n return <<\r\n $this->title\r\n \r\n \r\n\r\nHTML;\r\n }","private function _include_jscss()\n {\n if (!$this->cache['jscss'])\n {\n $styles = '' . NL;\n $scripts = '';\n $this->EE->cp->add_to_head($styles . $scripts);\n\n $this->cache['jscss'] = TRUE;\n }\n }","function dw2_insert_head($flux) {\r\n\t\t$flux.= \"\\n\".''.\"\\n\";\r\n\t\t$flux.= \"\\n\".''.\"\\n\";\r\n\t\treturn $flux;\r\n\t}","public function dynamic_css() {\n \n global $pbtheme_data;\n \n // Proceed only if user enabled custom header styles\n $enabled = $this->enabled();\n if ( ! $enabled ) {\n return;\n }\n \n // Observers\n $this->include_observers();\n \n // Subject\n require_once dirname( __FILE__ ) . '/inc/class-header-design.php';\n $design = new Pbtheme_Header_Design();\n \n /**\n * Attach below any theme options to apply\n */\n \n // Observers\n $observers = array(\n 'Pbtheme_Header_Topbar_Bgd',\n 'Pbtheme_Header_Topbar_Text_Color',\n 'Pbtheme_Header_Topbar_Link_Color',\n 'Pbtheme_Header_Topbar_Link_Hover_Color',\n 'Pbtheme_Header_Topbar_Border',\n 'Pbtheme_Header_Topbar_Font_Size',\n 'Pbtheme_Header_Bgd',\n 'Pbtheme_Header_Link_Color',\n 'Pbtheme_Header_Link_Hover',\n 'Pbtheme_Header_Border',\n 'Pbtheme_Header_Menu_Style',\n 'Pbtheme_Header_Search_Style',\n 'Pbtheme_Header_Logo_Style',\n 'Pbtheme_Header_Responsive_Menu',\n );\n \n /**\n * Apply styles via observers\n */\n $this->add_observers( $observers, $design );\n $design->apply_styles( $enabled );\n \n }","function my_header()\r\n{\r\n ?>\r\n\r\n\r\n\r\n \r\n Trump Pursuit\r\n \r\n \r\n\r\n' . \"\\n\";\n}","function insert_header_code () {\r\n\techo '\r\n\t\r\n\t';\r\n}","public function ajax_header_add()\n {\n }","function dg_custom_header() {\n\t\n\t//meta tag view port\n\techo '';\n\t\n\t// GMT\n\t\n\techo \"\n\t\t\n\t\t\n\t\t\n\t\";\n\t\n\t// for EN typeface\n\techo '';\n\t\n\t// favicon\n/*\techo '\n\t\t\n\t\t\n\t\t';\n*/\t\t\n\t\n}","function displayHtmlHeader() {\n\t\tglobal $page;\n\t\t\n\t\techo \"\";\n\t\techo \"\";\n\t\t\n\t\t\techo \"\";\n\t\t\t\t\n\t\t\t\t//Encodage et zoom\n\t\t\t\techo \"\";\n\t\t\t\techo \"\";\n\t\t\t\techo \"\";\n\t\t\t\t\n\t\t\t\t//Titre de la page\n\t\t\t\techo \"Gestion maintenances | Best Engines Inc.\";\n\t\t\t\t\n\t\t\t\t//Description et auteur de la page\n\t\t\t\techo \"\";\n\t\t\t\techo \"\";\n\t\t\t\t\n\t\t\t\t//Fichiers CSS\n\t\t\t\techo \"\";\n\t\t\t\techo \"\";\n\t\t\t\techo \"\";\n\t\t\t\t\n\t\t\t\t//Formulaire d'authentification\n\t\t\t\tif($page == \"authentification\") {\n\t\t\t\t\techo \"\";\n\t\t\t\t\techo \"\";\n\t\t\t\t\techo \"\";\n\t\t\t\t\t\n\t\t\t\t\techo \"\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Font\n\t\t\t\techo \"\";\n\t\t\t\t\n\t\t\t\t//Favicon\n\t\t\t\techo \"\";\n\n\t\t\techo \"\";\t\t\t\n\t\t\techo \"\";\n\t}","public function testHeaderHTML() {\n $build['#attached']['library'][] = 'common_test/js-header';\n $assets = AttachedAssets::createFromRenderArray($build);\n\n $js = $this->assetResolver->getJsAssets($assets, FALSE)[0];\n $js_render_array = \\Drupal::service('asset.js.collection_renderer')->render($js);\n $rendered_js = $this->renderer->renderPlain($js_render_array);\n $query_string = $this->container->get('state')->get('system.css_js_query_string') ?: '0';\n $this->assertStringContainsString('', $rendered_js, 'The JS asset in common_test/js-header appears in the header.');\n $this->assertStringContainsString('';\n\t\t\n\t\t$this->getModuleJS ( $m, $a, true );\n\t}","function opinionstage_settings_load_header(){\n}","public function init_header() {\r\n\t\t\twp_enqueue_script( 'jquery' );\r\n\t\t\twp_enqueue_script( 'thickbox' );\r\n\t\t\twp_enqueue_style( 'thickbox' );\r\n\t\t\twp_enqueue_script( 'media-upload' );\r\n\t\t\twp_enqueue_style( 'wp-color-picker' );\r\n\t\t\twp_enqueue_script( 'wp-color-picker' );\r\n\t\t\twp_enqueue_script( 'jquery-ui-sortable' );\r\n\t\t\twp_enqueue_script( 'jquery-ui-progressbar' );\r\n\t\t\twp_enqueue_media();\r\n\r\n\t\t\tif ( ! wp_style_is( 'netivo-jq-ui', 'enqueued' ) ) {\r\n\t\t\t\twp_enqueue_style( 'netivo-jq-ui', NT_CORE_PLUGIN_URL . \"/assets/admin/css/jquery-ui.min.css\" );\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! wp_style_is( 'netivo-admin', 'enqueued' ) ) {\r\n\t\t\t\twp_enqueue_style( 'netivo-admin', NT_CORE_PLUGIN_URL . \"/assets/admin/css/admin.min.css\" );\r\n\t\t\t}\r\n\t\t\tif ( ! wp_script_is( 'netivo-admin', 'enqueued' ) ) {\r\n\t\t\t\twp_enqueue_script( 'netivo-admin', NT_CORE_PLUGIN_URL . \"/assets/admin/js/admin.min.js\" );\r\n\t\t\t}\r\n\t\t\t$this->custom_header();\r\n\t\t}","public function header() {\r\n $html = <<\r\n

    \"\"

    \r\n

    $this->title

    \r\n \r\nHTML;\r\n return $html;\r\n }","function cookiebar_insert_head_css($flux){\n $flux .= '';\n return $flux;\n}","function links_insert_head_css($flux) {\r\n\t$links = links_configuration();\r\n\r\n\t//Styles\r\n\tif($links['style'] == 'on'){\r\n\t\t$flux .= '';\r\n\t}\r\n\t//Ouverture d'une nouvelle fenetre : insertion des init js inline, en amont des CSS (perf issue)\r\n\tif($links['window'] == 'on'){\r\n\t\t$js = 'var js_nouvelle_fenetre=\\''._T('links:js_nouvelle_fenetre').'\\';';\r\n\t\t//Ouverture dune nouvelel fenetre sur les liens externes\r\n\t\tif($links['external'] == 'on'){\r\n\t\t\t// quand un site fait du multidomaine on prend en reference le domaine de la page concernee :\r\n\t\t\t// sur www.example.org : autre.example.org est external\r\n\t\t\t// sur autre.example.org : www.example.org est external\r\n\t\t\t// sur un site mono-domaine ca ne change rien :)\r\n\t\t\t// ca marche parce que le cache change quand le HTTP_HOST change (donc quand le domaine change)\r\n\t\t\t$js .= 'var links_site = \\'' . protocole_implicite(url_de_base()) . '\\';';\r\n\t\t}\r\n\t\t//Ouverture d'une nouvelle fenetre sur les documents (extensions a preciser)\r\n\t\tif(($links['download'] == 'on')&&($links['doc_list'])){\r\n\t\t\t$js .= 'var links_doc = \\''.$links['doc_list'].'\\';';\r\n\t\t}\r\n\t\t$flux = '' . \"\\n\" . $flux;\r\n\t}\r\n\r\n\treturn $flux;\r\n}"],"string":"[\n \"public function hookHeader()\\n {\\n // $this->context->controller->addJS('http://code.jquery.com/jquery-2.1.4.min.js');\\n // $this->context->controller->addJS($this->_path.'views/js/bootstrap.min.js');\\n $this->context->controller->addJS($this->_path.'views/js/front.js');\\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\\n\\n $this->context->controller->addJS($this->_path.'views/js/responsiveslides.js');\\n $this->context->controller->addCSS($this->_path.'views/css/responsiveslides.css');\\n $this->context->controller->addCSS($this->_path.'views/css/themes.css');\\n }\",\n \"public function hookHeader()\\n {\\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\\n }\",\n \"public function hookHeader()\\n {\\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\\n }\",\n \"public function hookHeader()\\n {\\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\\n }\",\n \"public function hookHeader()\\n\\t{\\n\\t\\t$this->context->controller->addJS($this->_path.'/views/js/front.js');\\n\\t\\t$this->context->controller->addCSS($this->_path.'/views/css/front.css');\\n\\t}\",\n \"public function hookHeader(){\\n $this->context->controller->addCSS($this->_path.'style.css');\\n \\n $this->context->controller->addJqueryPlugin(array('scrollTo', 'serialScroll'));\\n $this->context->controller->addJS($this->_path.'script.js');\\n }\",\n \"public function hookHeader()\\n {\\n $this->context->controller->addJS($this->_path.'/views/js/owl.carousel.min.js');\\n $this->context->controller->addCSS($this->_path.'/views/css/owl.carousel.min.css');\\n\\n $this->context->controller->addJS($this->_path.'/views/js/mf.custom.js');\\n $this->context->controller->addCSS($this->_path.'/views/css/mf.theme.default.css');\\n\\n }\",\n \"public function hookHeader()\\n {\\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\\n }\",\n \"public function _assign_xoops_header()\\n {\\n $header_class = webphoto_xoops_header::getInstance($this->_DIRNAME, $this->_TRUST_DIRNAME);\\n $header_class->set_flag_css(true);\\n $header_class->assign_for_main();\\n }\",\n \"protected function setHeaders() {\\n\\t\\tif(!self::$headerIncluded) {\\n\\n\\t\\t\\tif($this->settings['includes']['jquery'])\\n\\t\\t\\t\\t$this->response->addAdditionalHeaderData('');\\n\\n if($this->settings['includes']['mediaelement'])\\n\\t\\t\\t $this->response->addAdditionalHeaderData('');\\n\\n\\t\\t\\tif($this->settings['includes']['jquery-resize'])\\n\\t\\t\\t\\t$this->response->addAdditionalHeaderData('');\\n\\t\\t\\tif($this->settings['includes']['modernizr'])\\n\\t\\t\\t\\t$this->response->addAdditionalHeaderData('');\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\tif($this->settings['includes']['css'])\\n\\t\\t\\t\\t$this->response->addAdditionalHeaderData('extKey).'Resources/Public/CSS/tx-vibeo.css\\\" />');\\n\\n if($this->settings['includes']['mediaelement-css'])\\n\\t\\t\\t $this->response->addAdditionalHeaderData('extKey).'Resources/Public/Vibeo/mediaelementplayer.css\\\" />');\\n\\n if($this->settings['includes']['mediaelement-skin-css'])\\n $this->response->addAdditionalHeaderData('extKey).'Resources/Public/Vibeo/skin-gray.css\\\" />');\\n\\n\\t\\t\\tself::$headerIncluded = true;\\n\\t\\t}\\n\\t}\",\n \"public function prepareHead() {\\r\\n // add jQuery\\r\\n if($this->cdn_jquery) {\\r\\n $this->addJS('//code.jquery.com/jquery-2.1.0.min.js', true);\\r\\n $this->addJS('//code.jquery.com/jquery-migrate-1.2.1.min.js', true);\\r\\n } else {\\r\\n $this->addJS(array('jquery-2.1.0.min', 'jquery-migrate-1.2.1.min'));\\r\\n }\\r\\n // add bootstrap\\r\\n if($this->cdn_bootstrap) {\\r\\n $this->addCSS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css', true);\\r\\n $this->addJS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js', true);\\r\\n } else {\\r\\n $this->addCSS('bootstrap.min');\\r\\n $this->addJS('bootstrap.min');\\r\\n }\\r\\n \\r\\n $this->addCSS(array('bootstrap-switch.min', 'spectrum'));\\r\\n $this->addJS(array('plugins'));\\r\\n \\r\\n // ace code editor\\r\\n $this->addJS('libs/ace/ace.js', true);\\r\\n \\r\\n $this->addCSS('style');\\r\\n $this->addJS('script');\\r\\n \\r\\n $this->smarty->assign(array(\\r\\n 'title' => $this->title,\\r\\n 'css_files' => $this->css_files,\\r\\n 'js_files' => $this->js_files,\\r\\n ));\\r\\n }\",\n \"private function do_header() {\\n $m_header = '';\\n $m_header .= '';\\n $m_header .= '';\\n // $m_header .= '';\\n // $m_header .= '';\\n $this->c_header = $m_header;\\n }\",\n \"function myheader($additionalHeaderContent = NULL) {\\n\\t\\tprint '';\\n\\t\\t\\tprint '';\\n\\t\\t\\t\\tprint '';\\n\\t\\t\\t\\t\\tif (defined('TITLE')) {\\n\\t\\t\\t\\t\\t\\tprint TITLE;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\tprint 'MiddleClik';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\tprint '';\\n\\t\\t\\t\\tprint \\\"\\\";\\n\\t\\t\\t\\tprint $additionalHeaderContent;\\n\\t\\t\\t\\tprint \\\"\\\";\\n\\t\\t\\tprint '';\\n\\t}\",\n \"function head_css()\\n{\\n return get_view()->headLink() . get_view()->headStyle();\\n}\",\n \"function header() {\\n?>\\n\\n \\n\\njscript_list();\\n $this->css_list();\\n?> \\n <?php echo $this->title; ?>\\n\\n\\ngCache->cache_or_get(CACHE_CACHE_TIME_TINY, \\\"\\\",$header_template_name, \\\"load_template_file\\\",$header_template_name);\\n\\n\\t\\t# the header has special substitutions for jquery css and jquery js\\n\\t\\t$jquery_ui_css_string\\t=\\t\\\"\\\";\\n\\t\\t$jquery_ui_js_string\\t=\\t'';\\n\\n\\t\\t$jquery_js_string\\t\\t=\\t''. \\\"\\\\n\\\";\\n\\t\\t$jquery_js_string\\t\\t.=\\t'';\\n\\n\\n\\t\\t$basic_tags\\t\\t\\t=\\n\\n\\t\\t\\tarray\\n\\t\\t\\t(\\n\\t\\t\\t\\t\\\"{{header}}\\\"\\t\\t\\t\\t=>\\t$header_string,\\n\\t\\t\\t\\t\\\"{{jquery_ui_css}}\\\"\\t\\t\\t=>\\t$jquery_ui_css_string,\\n\\t\\t\\t\\t\\\"{{jquery_ui_js}}\\\"\\t\\t\\t=>\\t$jquery_ui_js_string,\\n\\t\\t\\t\\t\\\"{{jquery_js}}\\\"\\t\\t\\t\\t=>\\t$jquery_js_string,\\n\\t\\t\\t);\\n\\n\\n\\t\\t# append the array\\n\\t\\t$this->sub_tags($basic_tags);\\n\\n\\n\\t}\",\n \"function loadInHeader() {\\n $this->metaData();\\n//\\t\\t$this->loadAddOns();\\n $this->onHead(\\\"onHead\\\"); // call back to onHead in extensions things js, etc in head\\n $this->onEditor(\\\"onHead\\\"); // only when login to admin, for fck to work??\\n //If not in admin, blank initEditor\\n if (!isset($_SESSION['name'])) { // not sure what this does??\\n print \\\"\\\\n\\\";\\n }\\n }\",\n \"protected function renderJavaScriptAndCss() {}\",\n \"function getHTML_additionalHeaderData() {\\n\\t\\t\\t// get js configs\\n\\t\\t\\t// get topical element and overwrite startID in appConf['js.']['config.']\\n\\t\\tif ($this->appConf['topicAtStart']) {\\n\\t\\t\\t$this->appConf['js.']['config.']['startIndex'] = $this->appConf['topicId'];\\n\\t\\t}\\n\\t\\t\\t// only boolean and integers allowed, strings ar not supported\\n\\t\\tif (is_array($this->appConf['js.']['config.'])) {\\n\\t\\t\\t$configArray = array();\\n\\t\\t\\tforeach ($this->appConf['js.']['config.'] as $key => $val) {\\n\\t\\t\\t\\t$configArray[] = trim($key) . ': ' . trim($val);\\n\\t\\t\\t}\\n\\t\\t\\t$config = implode(', ',$configArray);\\n\\t\\t}\\n\\t\\t\\t// additional headers as css & js\\n\\t\\t$GLOBALS['TSFE']->additionalHeaderData['contentcoverflow'] .= '\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\tappConf['css.']['file'] . '\\\" />\\n\\t\\t\\t\\n\\t\\t';\\n\\t}\",\n \"public function css() {\\r\\n\\t\\tif ($this->cssLink != false) {\\r\\n\\t\\t\\tif($this->scriptTo) {\\r\\n\\t\\t\\t\\t$elem = pzk_element($this->scriptTo);\\r\\n\\t\\t\\t\\t$elem->append(pzk_parse('name.'/css/'.$this->cssLink.'.css\\\" />'));\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\tif($page = pzk_page())\\r\\n\\t\\t\\t\\t\\t$page->addObjCss($this->cssLink);\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t}\\r\\n\\t\\tif ($this->cssExternalLink != false) {\\r\\n\\t\\t\\tif($this->scriptTo) {\\r\\n\\t\\t\\t\\t$elem = pzk_element($this->scriptTo);\\r\\n\\t\\t\\t\\t$elem->append(pzk_parse('cssExternalLink.'\\\" />'));\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\tif($page = pzk_page()) {\\r\\n\\t\\t\\t\\t\\t$page->addExternalCss($this->cssExternalLink);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t}\\r\\n\\r\\n\\t}\",\n \"function painter_head() {\\n\\t\\techo '';\\n\\n\\t\\techo '';\\n echo '';\\n echo '';\\n echo '';\\n echo '';\\n echo '';\\n}\",\n \"public function addScriptToHeader($context)\\n\\t\\t{\\n\\t\\t\\tif(!empty(Symphony::Engine()->Author))\\n\\t\\t\\t{\\n\\t\\t\\t\\tif(Symphony::Engine()->Author->isDeveloper())\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t$context['output'] = str_replace('', '\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t', $context['output']);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function addHeaderCode() {\\r\\n echo '' . \\\"\\\\n\\\";\\r\\n}\",\n \"protected function addJS() {\\n foreach ($this->js_files as $js_file) {\\n $this->header.=\\\" \\\\n\\\";\\n }\\n }\",\n \"public function hookBackOfficeHeader()\\n {\\n if (Tools::getValue('module_name') == $this->name) {\\n $this->context->addJS($this->_path.'views/js/back.js');\\n $this->context->addCSS($this->_path.'views/css/back.css');\\n $this->context->addJS($this->_path.'views/fonts/back.js');\\n $this->context->controller->addCSS($this->_path.'views/css/jquery.dataTables.css');\\n }\\n }\",\n \"public function hookHeader()\\n {\\n $language_code = $this->context->language->language_code;\\n $this->context->controller->addJS($this->_path . '/views/js/front.js');\\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\\n if (version_compare(_PS_VERSION_, '1.6.1.0', '>=')) {\\n Media::addJsDef(\\n array(\\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\\n 'wi_weather_url' => $this->getUrl(),\\n 'wi_weather_city' => $this->getCity($language_code)\\n )\\n );\\n } else {\\n $this->context->smarty->assign(\\n array(\\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\\n 'wi_weather_url' => $this->getUrl(),\\n 'wi_weather_city' => $this->getCity($language_code)\\n )\\n );\\n\\n return $this->context->smarty->fetch(\\n _PS_MODULE_DIR_ . $this->name\\n . DIRECTORY_SEPARATOR . 'views'\\n . DIRECTORY_SEPARATOR . 'templates'\\n . DIRECTORY_SEPARATOR . 'front'\\n . DIRECTORY_SEPARATOR . 'javascript.tpl'\\n );\\n }\\n }\",\n \"public function hookHeader()\\n {\\n if ($this->context->controller instanceof OrderConfirmationController) {\\n $this->context->controller->addJS($this->_path . '/views/js/scratch-card.js');\\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\\n }\\n }\",\n \"function Header(){\\n\\t\\t}\",\n \"function divi_assets_header() {\\n\\n // Header script loading is simplistic in this starter kit but you may want to change what file is loaded based on various conditions; check out the footer asset loader for an example\\n $file = 'divi-header';\\n// wp_enqueue_script( 'divi-header', get_stylesheet_directory_uri() . '/js/' . $file . '.js', $deps = array('jquery'), filemtime( get_stylesheet_directory() . '/js/' . $file . '.js' ), false );\\n\\n // Register and enqueue our main stylesheet with versioning based on last modified time\\n wp_register_style( 'divi-style', get_template_directory_uri() . '/style.css', $dependencies = array(), filemtime( get_template_directory() . '/style.css' ) );\\n wp_enqueue_style( 'divi-style' );\\n// wp_register_style( 'child-style', get_stylesheet_uri(), $dependencies = array(), filemtime( get_stylesheet_directory() . '/style.css' ) );\\n// wp_enqueue_style( 'child-style' );\\n}\",\n \"protected function addCSS() {\\n foreach ($this->css_files as $css_file) {\\n $this->header.=\\\" \\\\n\\\";\\n }\\n }\",\n \"function get_css_header();\",\n \"public function hookDisplayHeader($params)\\n {\\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\\n }\",\n \"private function displayHeader(){\\n\\t\\t\\t$html = ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ' PCInsight | ' .$this->pageInfo['pageTitle'].''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= 'pageInfo['pageDescription'].'\\\" />'.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '

    PCinsight

    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
      '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    • Home
    • '.\\\"\\\\n\\\"; \\n\\t\\t\\t$html .= '
    • Articles
    • '.\\\"\\\\n\\\"; \\t\\t\\t\\n\\t\\t\\t$html .= '
    • About
    • '.\\\"\\\\n\\\";\\n\\t\\t\\tif (!(isset($_SESSION['username']))){\\n\\t\\t\\t\\t$html .= '
    • Login
    • '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t$html .= '
    • Register
    • '.\\\"\\\\n\\\";\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif ($this->model->isAdmin()){\\n\\t\\t\\t\\t\\t$html .= '
    • Admin
    • '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t$html .= '
    • Logout
    • '.\\\"\\\\n\\\";\\n\\t\\t\\t}\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\t\\t\\t\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\tif (!(isset($_SESSION['username']))){\\n\\t\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t$html .= ' Login '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t$html .= ' Register '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t$html .= ' Logout '.\\\"\\\\n\\\";\\n\\t\\t\\t\\tif ($this->model->isAdmin()){\\n\\t\\t\\t\\t\\t$html .= ' Admin '.\\\"\\\\n\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t}\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\"; \\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= ''.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\t$html .= '
    '.\\\"\\\\n\\\";\\n\\t\\t\\tif (!$this->db->isRegistered()){\\n\\t\\t\\t\\t$html .= '

    Please register your account here

    ';\\n\\t\\t\\t}\\n\\t\\t\\treturn $html;\\n\\t\\t}\",\n \"private function includeJavaScript() {\\n\\t\\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId]\\n\\t\\t\\t= '';\\n\\n\\t\\tif ($this->hasConfValueString('mooTools')) {\\n\\t\\t\\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId . '_moo']\\n\\t\\t\\t\\t= '';\\n\\t\\t}\\n\\t}\",\n \"public function control_panel__add_to_head()\\n\\t{\\n\\t\\tif ( URL::getCurrent(false) == '/publish' ) {\\n\\t\\t\\treturn $this->css->link('fileclerk.css');\\n\\t\\t}\\n\\t}\",\n \"function add_head() {\\r\\n\\t\\tglobal $locale;\\r\\n\\t\\t$wpca_settings = get_option('wpcareers');\\r\\n\\t\\techo \\\"plugin_url . \\\"/themes/default/css/default.css\\\\\\\" type=\\\\\\\"text/css\\\\\\\" media=\\\\\\\"screen\\\\\\\">\\\";\\r\\n\\t\\tif($wpca_settings['edit_style']==null || $wpca_settings['edit_style']=='plain') {\\r\\n\\t\\t\\t// nothing\\r\\n\\t\\t} elseif($wpca_settings['edit_style']=='tinymce') {\\r\\n\\t\\t\\t// activate these includes if the user chooses tinyMCE on the settings page\\r\\n\\t\\t\\t$mce_path = get_option('siteurl');\\r\\n\\t\\t\\t$mce_path .= '/wp-includes/js/tinymce/tiny_mce.js';\\r\\n\\t\\t\\techo '';\\r\\n\\t\\t}\\r\\n\\t}\",\n \"public function hookBackOfficeHeader()\\n {\\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\\n }\\n }\",\n \"public function hookBackOfficeHeader()\\n {\\n if (Tools::getValue('module_name') == $this->name || Tools::getValue('configure') == $this->name) {\\n $this->context->controller->addJS($this->_path . 'views/js/back.js');\\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\\n }\\n }\",\n \"public function hookBackOfficeHeader()\\n {\\n if (Tools::getValue('module_name') == $this->name) {\\n $this->context->controller->addJS($this->_path.'views/js/back.js');\\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\\n }\\n }\",\n \"public function hookBackOfficeHeader()\\n {\\n if (Tools::getValue('module_name') == $this->name) {\\n $this->context->controller->addJS($this->_path.'views/js/back.js');\\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\\n }\\n }\",\n \"public function hookBackOfficeHeader()\\n {\\n if (Tools::getValue('module_name') == $this->name) {\\n $this->context->controller->addJS($this->_path.'views/js/back.js');\\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\\n }\\n }\",\n \"function ind_header( ) {\\n\\t$css = get_theme_root().\\\"/\\\".get_template().\\\"/indizar.css\\\";\\n\\tif(file_exists($css)) {\\n\\t\\t$css_register = get_bloginfo('template_directory').'/indizar.css';\\n\\t} else {\\n\\t\\t$css_register = ind_plugin_url('/css/indizar.css');\\n\\t}\\n\\t\\n\\tif((is_single() || is_page()) && INDIZAR_DIV) {\\n\\t\\t//Define custom JavaScript options\\n\\t\\t//$div = str_replace(array('%id%'), array(get_the_ID()), INDIZAR_DIV);\\n\\t\\t$div = INDIZAR_DIV;\\n\\t\\t$top = INDIZAR_DIV;\\n\\t\\tif(INDIZAR_TOPDIV)\\n\\t\\t\\t$top = INDIZAR_TOPDIV;\\n\\t\\t//$top = str_replace(array('%id%'), array(get_the_ID()), $top);\\n\\t\\techo \\\"\\n\\t\\t\\\";\\n\\n\\t\\t//Declare javascript\\n\\t\\twp_register_script('scrollto', $url.'/wp-content/plugins/indizar/scripts/jquery.scrollTo-min.js', array('jquery'), INDIZAR_HEADER_V);\\n\\t\\twp_register_script('indizar', $url.'/wp-content/plugins/indizar/indizar.js', array('scrollto'), INDIZAR_HEADER_V);\\n\\t\\twp_enqueue_script('indizar');\\n\\t\\twp_print_scripts( array( 'indizar' ));\\n\\t}\\n\\t\\n\\t//Declare style\\n\\twp_register_style('indizar', $css_register, false, INDIZAR_HEADER_V);\\n\\twp_enqueue_style('indizar');\\n\\twp_print_styles( array( 'indizar' ));\\n}\",\n \"public function init()\\n {\\n $this->view->headScript()->exchangeArray(array());\\n $this->view->headScript()->appendFile('http://code.jquery.com/jquery.js','text/javascript');\\n $this->view->headScript()->appendFile('http://code.jquery.com/ui/1.10.2/jquery-ui.js','text/javascript');\\n $this->view->headScript()->appendFile($this->view->baseUrl('/js/bootstrap.min.js'),'text/javascript');\\n $this->view->headLink()->exchangeArray(array());\\n $this->view->headLink()->appendStylesheet('http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css'); \\n $this->view->headLink()->appendStylesheet($this->view->baseUrl('/css/bootstrap.min.css')); \\n //$this->view->headLink()->appendStylesheet($this->view->baseUrl('/css/bootstrap-responsive.min.css')); \\n $this->view->headLink()->appendStylesheet($this->view->baseUrl('/css/planner.css')); \\n $this->view->doctype('XHTML1_STRICT');\\n $this->view->headMeta()->exchangeArray(array());\\n $this->view->headMeta()\\n ->appendName('keywords', 'Homepage')\\n ->appendHttpEquiv('viewport','width=device-width, initial-scale=1.0')\\n ->appendHttpEquiv('pragma', 'no-cache')\\n ->appendHttpEquiv('Cache-Control', 'no-cache')\\n ->appendHttpEquiv('Content-Type','text/html; charset=UTF-8')\\n ->appendHttpEquiv('Content-Language', 'en-UK')\\n ->appendHttpEquiv('X-UA-Compatible', 'IE=edge,chrome=1');\\n \\n \\n }\",\n \"public function addHead()\\n {\\n if (file_exists(DIRREQ . \\\"app/view/{$this->getDir()}/head.php\\\")) {\\n include(DIRREQ . \\\"app/view/{$this->getDir()}/head.php\\\");\\n }\\n }\",\n \"function load_header(){\\n\\t\\techo \\\"
    HEADER
    \\\";\\n\\t}\",\n \"function getHeader(){\\n\\t\\trequire 'pages/headerfooter/header.html';\\n\\t}\",\n \"function head_css()\\n\\t{\\n\\t\\tqa_html_theme_base::head_css();\\n\\t\\t// if if already added widgets have a css file activated\\n\\t\\t$styles = array();\\n\\t\\tforeach ($this->content['widgets'] as $region_key => $regions) {\\n\\t\\t\\tforeach ($regions as $template_key => $widgets) {\\n\\t\\t\\t\\t$position = strtoupper(substr($region_key,0,1) . substr($template_key,0,1) );\\n\\t\\t\\t\\tforeach ($widgets as $key => $widget) {\\n\\t\\t\\t\\t\\t$widget_name = get_class ($widget);\\n\\t\\t\\t\\t\\t$widget_key = $widget_name.'_'.$position;\\n\\t\\t\\t\\t\\t$file = get_widget_option($widget_key, 'uw_styles');\\n\\t\\t\\t\\t\\t// if file existed then put it into an array to prevent duplications\\n\\t\\t\\t\\t\\tif($file)\\n\\t\\t\\t\\t\\t\\t$styles[$widget_name][$file]=true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t// add styling files to theme\\n\\t\\tif($styles)\\n\\t\\t\\tforeach ($styles as $widget_name => $files)\\n\\t\\t\\t\\tforeach ($files as $file => $verified)\\n\\t\\t\\t\\t\\tif( $file != 'none' )\\n\\t\\t\\t\\t\\t\\t$this->output('');\\n\\t}\",\n \"public static function setHTMLHeader($header) \\n\\t{\\n\\t\\tacPhpCas::setReporting();\\n\\t\\tphpCAS::setHTMLHeader($header);\\t\\t\\n\\t}\",\n \"public function header_output() {\\n\\n\\t\\t?>\\n\\t\\t\\n\\t\\thead_script_tags = \\\"\\\";\\n\\n foreach( $this->head_scripts as $value ){\\n\\n $this->head_script_tags .= \\\"\\\";\\n\\n }\\n\\n $this->head = file_get_contents(\\\"head/home.html\\\").$this->head_script_tags.\\\"\\\";\\n\\n }\",\n \"function head(){\\n\\t?>\\n\\t\\n\\tEEMS\\n\\t\\n\\t$title\\\";\\n $rtn_str .= '';\\n $rtn_str .= '';\\n \\n $rtn_str .= '';\\n $rtn_str .= '';\\n \\n $rtn_str .= '';\\n \\n $rtn_str .= \\\"
    \\\";\\n \\n return $rtn_str;\\n}\",\n \"protected function setHeader($header_extra = '') {\\n $this->header = \\\" \\\\n \\\\n \\\\n \\\\n Log-in Page Project\\\";\\n $this->loadConfig();\\n $this->addMeta();\\n $this->addJS();\\n $this->addCSS();\\n $this->header.=$header_extra;\\n $this->header.=\\\"\\\";\\n return $this->header;\\n }\",\n \"public function head_add($html) {\\n\\t\\tif (defined('DEBUG_ENABLED') && DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))\\n\\t\\t\\tdebug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);\\n\\n\\t\\t$this->_head[] .= $html;\\n\\t}\",\n \"public function hookbackOfficeHeader()\\n\\t{\\n\\t\\tif (isset(Context::getContext()->controller) && $this->context->controller != null)\\n\\t\\t\\t$this->context->controller->addJS($this->_path.'js/clickline_order.js');\\n\\n//Ponemos el css para el admin\\n\\t\\tif ((int) strcmp((version_compare(_PS_VERSION_, '1.5', '>=') ? Tools::getValue('configure') : Tools::getValue('module_name')), $this->name) == 0)\\n\\t\\t{\\n\\n\\t\\t\\tif (isset(Context::getContext()->controller) && $this->context->controller != null)\\n\\t\\t\\t{\\n\\t\\t\\t\\t$this->context->controller->addCSS(_MODULE_DIR_.$this->name.'/css/admin.css');\\n\\t\\t\\t\\t$this->context->controller->addJS(_MODULE_DIR_.$this->name.'/js/admin.js');\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function addHead()\\n\\t{\\n\\n\\t\\t$app = JFactory::getApplication();\\n\\t\\t$user = JFactory::getUser();\\n\\t\\t$input = $app->input;\\n\\n\\t\\t$responsive = $this->getParam('responsive', 1);\\n\\t\\t$navtype = $this->getParam('navigation_type', 'joomla');\\n\\t\\t$navtrigger = $this->getParam('navigation_trigger', 'hover');\\n\\t\\t$offcanvas = $this->getParam('navigation_collapse_offcanvas', 0) || $this->getParam('addon_offcanvas_enable', 0);\\n\\t\\t$legacycss = $this->getParam('legacy_css', 0);\\n\\t\\t$frontedit = in_array($input->getCmd('option'), array('com_media', 'com_config'))\\t//com_media or com_config\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t|| in_array($input->getCmd('layout'), array('edit'))\\t\\t\\t\\t\\t\\t\\t\\t//edit layout\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t|| (version_compare(JVERSION, '3.2', 'ge') && $user->id && $app->get('frontediting', 1) && \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t($user->authorise('core.edit', 'com_modules') || $user->authorise('core.edit', 'com_menus')));\\t//frontediting\\n\\n\\t\\t// LEGACY COMPATIBLE\\n\\t\\tif($legacycss){\\n\\t\\t\\t$this->addCss('legacy-grid');\\t//legacy grid\\n\\t\\t\\t$this->addStyleSheet(T3_URL . '/fonts/font-awesome/css/font-awesome.css'); //font awesome 3\\n\\t\\t}\\n\\n\\t\\t// FRONTEND EDITING\\n\\t\\tif($frontedit){\\n\\t\\t\\t$this->addCss('frontend-edit');\\n\\t\\t}\\n\\n\\t\\t// BOOTSTRAP CSS\\n\\t\\t$this->addCss('bootstrap', false);\\n\\n\\t\\t// TEMPLATE CSS\\n\\t\\t$this->addCss('template', false);\\n\\n\\t\\tif (!$responsive && $this->responcls) {\\n\\t\\t\\t$this->addCss('non-responsive'); //no responsive\\n\\n\\t\\t\\t$nonrespwidth = $this->getParam('non_responsive_width', '970px');\\n\\t\\t\\tif(preg_match('/^(-?\\\\d*\\\\.?\\\\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/', $nonrespwidth, $match)){\\n\\t\\t\\t\\t$nonrespwidth = $match[1] . (!empty($match[2]) ? $match[2] : 'px');\\n\\t\\t\\t}\\n\\t\\t\\t$this->addStyleDeclaration('.container {width: ' . $nonrespwidth . ' !important;}');\\n\\t\\t\\n\\t\\t} else if(!$this->responcls){\\n\\t\\t\\t\\n\\t\\t\\t// BOOTSTRAP RESPONSIVE CSS\\n\\t\\t\\t$this->addCss('bootstrap-responsive');\\n\\t\\t\\t\\n\\t\\t\\t// RESPONSIVE CSS\\n\\t\\t\\t$this->addCss('template-responsive');\\n\\t\\t}\\n\\n\\t\\t// add core megamenu.css in plugin\\n\\t\\t// deprecated - will extend the core style into template megamenu.less & megamenu-responsive.less\\n\\t\\t// to use variable overridden in template\\n\\t\\tif($navtype == 'megamenu'){\\n\\n\\t\\t\\t// If the template does not overwrite megamenu.less & megamenu-responsive.less\\n\\t\\t\\t// We check and included predefined megamenu style in base\\n\\t\\t\\tif(!is_file(T3_TEMPLATE_PATH . '/less/megamenu.less')){\\n\\t\\t\\t\\t$this->addStyleSheet(T3_URL . '/css/megamenu.css');\\n\\n\\t\\t\\t\\tif ($responsive && !$this->responcls){\\n\\t\\t\\t\\t\\t$this->addStyleSheet(T3_URL . '/css/megamenu-responsive.css');\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// megamenu.css override in template\\n\\t\\t\\t$this->addCss('megamenu');\\n\\t\\t}\\n\\n\\t\\t// Add scripts\\n\\t\\tif (version_compare(JVERSION, '3.0', 'ge')) {\\n\\t\\t\\tJHtml::_('jquery.framework');\\n\\t\\t} else {\\n\\t\\t\\t$scripts = @$this->_scripts;\\n\\t\\t\\t$jqueryIncluded = 0;\\n\\t\\t\\tif (is_array($scripts) && count($scripts)) {\\n\\t\\t\\t\\t//simple detect for jquery library. It will work for most of cases\\n\\t\\t\\t\\t$pattern = '/(^|\\\\/)jquery([-_]*\\\\d+(\\\\.\\\\d+)+)?(\\\\.min)?\\\\.js/i';\\n\\t\\t\\t\\tforeach ($scripts as $script => $opts) {\\n\\t\\t\\t\\t\\tif (preg_match($pattern, $script)) {\\n\\t\\t\\t\\t\\t\\t$jqueryIncluded = 1;\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (!$jqueryIncluded) {\\n\\t\\t\\t\\t$this->addScript(T3_URL . '/js/jquery-1.8.3' . ($this->getParam('devmode', 0) ? '' : '.min') . '.js');\\n\\t\\t\\t\\t$this->addScript(T3_URL . '/js/jquery.noconflict.js');\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tdefine('JQUERY_INCLUED', 1);\\n\\n\\n\\t\\t// As joomla 3.0 bootstrap is buggy, we will not use it\\n\\t\\t$this->addScript(T3_URL . '/bootstrap/js/bootstrap.js');\\n\\t\\t// a jquery tap plugin\\n\\t\\t$this->addScript(T3_URL . '/js/jquery.tap.min.js');\\n\\n\\t\\t// add css/js for off-canvas\\n\\t\\tif ($offcanvas && ($this->responcls || $responsive)) {\\n\\t\\t\\t$this->addCss('off-canvas', false);\\n\\t\\t\\t$this->addScript(T3_URL . '/js/off-canvas.js');\\n\\t\\t}\\n\\n\\t\\t$this->addScript(T3_URL . '/js/script.js');\\n\\n\\t\\t//menu control script\\n\\t\\tif ($navtrigger == 'hover') {\\n\\t\\t\\t$this->addScript(T3_URL . '/js/menu.js');\\n\\t\\t}\\n\\n\\t\\t//reponsive script\\n\\t\\tif ($responsive && !$this->responcls) {\\n\\t\\t\\t$this->addScript(T3_URL . '/js/responsive.js');\\n\\t\\t}\\n\\n\\t\\t//some helper javascript functions for frontend edit\\n\\t\\tif($frontedit){\\n\\t\\t\\t$this->addScript(T3_URL . '/js/frontend-edit.js');\\n\\t\\t}\\n\\n\\t\\t//check and add additional assets\\n\\t\\t$this->addExtraAssets();\\n\\t}\",\n \"function dw2_header_prive($flux) {\\r\\n\\t\\t$flux .= ''.\\\"\\\\n\\\";\\r\\n\\t\\t$flux .= ''.\\\"\\\\n\\\";\\r\\n\\t\\treturn $flux;\\r\\n\\t}\",\n \"function asu_brand_head_inject() {\\n $settings = asu_brand_get_block_settings();\\n $cache_id = 'asu_brand:head';\\n \\n $head_output = asu_brand_get_cached_content($cache_id, $settings->head_path);\\n\\n // Inject header javascript into and set the weight to a high negative value.\\n $asu_sso_signedin = $settings->js_settings['asu_sso_signedin'];\\n $asu_sso_signinurl = $settings->js_settings['asu_sso_signinurl'];\\n $asu_sso_signouturl = $settings->js_settings['asu_sso_signouturl'];\\n $inline_script = <<\\n \\n \\nEOL;\\n \\n // TODO: If asu.edu/asuthemes/x/headers/default.shtml and asu.edu/asuthemes/x/js/asu_header.js\\n // get updated we can remove the first drupal_add_html_head() and $inline_script above.\\n drupal_add_js(array('asu_brand' => $settings->js_settings), 'setting');\\n drupal_add_js(drupal_get_path('module', 'asu_brand') . '/asu_brand.js', array());\\n drupal_add_html_head(array('#type' => 'markup', '#markup' => $inline_script, '#weight' => -100), 'asu_brand_head_js');\\n drupal_add_html_head(array('#type' => 'markup', '#markup' => $head_output, '#weight' => -99), 'asu_brand_head');\\n}\",\n \"private function addCSS()\\n {\\n Filters::add('head', array($this, 'renderRevisionsCSS'));\\n }\",\n \"public function admin_head()\\n {\\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\\n $this->admin_ajax_handler();\\n \\n $head_content = $this->standard_head(); // We start with the standard stuff.\\n \\n $head_content .= ''; // Load the Google Maps stuff for our map.\\n \\n $head_content .= 'get_plugin_path();\\n \\n $head_content .= htmlspecialchars($url);\\n \\n $head_content .= 'admin_styles.css\\\" />';\\n \\n $head_content .= '\\\\n\\\";\\n\\t}\\n\\telse\\n\\t{\\n\\t\\techo \\\"\\\\t\\\\n\\\";\\n\\t}\\n\\techo \\\"\\\\t\\\\n\\\";\\n\\techo \\\"\\\\t\\\\n\\\";\\n\\techo \\\"\\\\n\\\\n\\\";\\n}\",\n \"public function hookHeader()\\n {\\n if (is_dir(_PS_MODULE_DIR_ . $this->name . '/views/fonts/front/' . $this->context->language->iso_code)) {\\n $this->context->controller->addCSS($this->_path . 'views/css/front.css');\\n }\\n }\",\n \"protected function htmlHead() {\\n echo \\\"\\\\n\\\";\\n echo \\\"\\\\n\\\";\\n echo str_repeat(\\\"\\\\t\\\",1) . \\\"\\\\n\\\";\\n echo str_repeat(\\\"\\\\t\\\",2) . \\\"Евиденција волонтера\\\\n\\\";\\n echo str_repeat(\\\"\\\\t\\\",2) . \\\"\\\\n\\\";\\n echo str_repeat(\\\"\\\\t\\\",2) . \\\"\\\\n\\\";\\n if( !is_null($this->cssfile) ) {\\n echo str_repeat(\\\"\\\\t\\\",2) . \\\"cssfile}\\\\\\\">\\\\n\\\";\\n }\\n echo str_repeat(\\\"\\\\t\\\",1) . \\\"\\\\n\\\";\\n }\",\n \"function twentyten_admin_header_style() {\\n\\t?>\\n\\t\\n\\tregister_effect($e);\\n\\n\\t\\tif ($this->header_js) {\\n\\t\\t$this->load_jquery();\\n\\t\\t?>\\n\\n\\n\\t\\toutputLine('');\\n\\t\\t\\t\\n\\t\\t\\tif ($this->_title != '') {\\n\\t\\t\\t\\t$this->outputLine('\\t' . $this->_title . '');\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t$this->outputLine('\\t_base . '\\\" />');\\n\\t\\t\\t\\n\\t\\t\\t$this->outputLine('\\t_contentType . '\\\" />');\\n\\t\\t\\t\\n\\t\\t\\t//Meta\\n\\t\\t\\tforeach ($this->_meta as $meta) {\\n\\t\\t\\t\\t$this->outputLine('\\tname . '\\\" content=\\\"' . $meta->content . '\\\" />');\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t//CSS\\n\\t\\t\\tforeach ($this->_css as $css) {\\n\\t\\t\\t\\t$this->outputLine(\\\"\\t\\\" . $css);\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t//JS\\n\\t\\t\\tforeach ($this->_js as $js) {\\n\\t\\t\\t\\t$this->outputLine(\\\"\\t\\\" . $js);\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t$this->outputLine('');\\n\\t\\t\\n\\t\\t}\",\n \"function stag_header_css() {\\n\\t?>\\n\\t\\n\\tgetSiteURL();\\n \\n // front-end only\\n if ($end == 'front') {\\n // url base\\n echo \\\"\\\\n\\\".'getSiteURL().'\\\">';\\n }\\n echo \\\"\\\\n\\\".''.\\\"\\\\n\\\";\\n // css\\n echo ' '.\\\"\\\\n\\\";\\n foreach (glob(GSPLUGINPATH.self::FILE.'/css/*.css') as $css) {\\n echo ' '.\\\"\\\\n\\\";\\n }\\n echo ' '.\\\"\\\\n\\\";\\n \\n // js\\n echo ' '.\\\"\\\\n\\\";\\n $javascript = glob(GSPLUGINPATH.self::FILE.'/js/*.js');\\n natsort($javascript);\\n \\n foreach ($javascript as $js) {\\n echo ' '.\\\"\\\\n\\\";\\n }\\n echo ' '.\\\"\\\\n\\\";\\n echo ''.\\\"\\\\n\\\";\\n }\",\n \"function eventoni_add_customization_to_header() {\\n\\tglobal $wpdb;\\n\\n\\t$options = get_option('eventoni_options');\\n\\t$background_color = $options['bg_color'];\\n\\n\\techo '';\\n\\t$customization = $wpdb->get_results(\\\"SELECT option_value FROM $wpdb->options WHERE option_name = 'eventoni_options' LIMIT 1\\\");\\n\\t// SACK-Bibliothek fuer Ajax-Request\\n\\twp_print_scripts( array( 'sack' ));\\n\\t?>\\n\\n\\t\\n\\t\\n\\n \\\" />\\n \\n context->controller->addCSS(($this->_path).'blockproductmanufacturer.css', 'all');\\n }\",\n \"public function addHeader()\\n {\\n if (file_exists(DIRREQ . \\\"app/view/{$this->getDir()}/header.php\\\")) {\\n include(DIRREQ . \\\"app/view/{$this->getDir()}/header.php\\\");\\n }\\n }\",\n \"function mpcth_add_admin_head() {\\r\\n\\tmpcth_admin_alternative_styles();\\r\\n}\",\n \"private function _include_css()\\n {\\n if ( !$this->cache['css'] )\\n {\\n $this->EE->cp->add_to_head('');\\n\\n $this->cache['css'] = TRUE;\\n }\\n }\",\n \"function html_head_from_all_pagest()\\r\\n{\\r\\n $ht_head = '\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n Кредитный калькулятор\\r\\n \\r\\n \\r\\n \\r\\n \\r\\n ';\\r\\n echo $ht_head;\\r\\n}\",\n \"static function header() {\\n $url = $GLOBALS[\\\"path\\\"] ? $GLOBALS[\\\"path\\\"] : \\\"http://localhost:8000/\\\";\\n echo ''.\\\"\\\\n\\\";\\n }\",\n \"public function siteHead() {\\n\\t\\t$webhook = $this->getValue('page');\\n\\t\\tIF($this->webhook($webhook)) {\\n\\t\\t $html = '';\\n\\t\\t $css = THEME_DIR_CSS . 'contact3.css';\\n\\t\\t IF(file_exists($css)) {\\n\\t\\t\\t$html .= Theme::css('css' . DS . 'contact3.css');\\n\\t\\t } else {\\n\\t\\t\\t$html .= 'htmlPath(). 'layout' . DS . 'contact3.css\\\">' .PHP_EOL;\\n\\t\\t }\\n\\n\\t\\t IF($this->getValue('google-recaptcha')){\\n\\t\\t\\t$html .= '';\\n\\t\\t }\\n\\n\\t\\t return $html;\\n\\t\\t}\\n\\n\\t\\t$webHookForBookingLog = $this->getValue('bookingsDisplayPage');\\n\\t\\tIF($this->webhook($webHookForBookingLog)) {\\n\\t\\t\\t// Include plugin's CSS files\\n\\t\\t\\t$html = $this->includeCSS('BookingForm.css');\\n\\t\\t\\t\\n\\t\\t\\treturn $html;\\n\\t\\t}\\n\\t}\",\n \"function flatsome_custom_header_js() {\\n if(get_theme_mod('html_scripts_header') && !is_admin()){\\n echo get_theme_mod('html_scripts_header');\\n }\\n}\",\n \"public function addHeader(){\\n$this->page.= <<\\n\\n\\n\\n$this->title\\n\\n\\n

    \\n$this->title\\n

    \\nEOD;\\n}\",\n \"public function head() {\\r\\n return <<\\r\\n $this->title\\r\\n \\r\\n \\r\\n\\r\\nHTML;\\r\\n }\",\n \"private function _include_jscss()\\n {\\n if (!$this->cache['jscss'])\\n {\\n $styles = '' . NL;\\n $scripts = '';\\n $this->EE->cp->add_to_head($styles . $scripts);\\n\\n $this->cache['jscss'] = TRUE;\\n }\\n }\",\n \"function dw2_insert_head($flux) {\\r\\n\\t\\t$flux.= \\\"\\\\n\\\".''.\\\"\\\\n\\\";\\r\\n\\t\\t$flux.= \\\"\\\\n\\\".''.\\\"\\\\n\\\";\\r\\n\\t\\treturn $flux;\\r\\n\\t}\",\n \"public function dynamic_css() {\\n \\n global $pbtheme_data;\\n \\n // Proceed only if user enabled custom header styles\\n $enabled = $this->enabled();\\n if ( ! $enabled ) {\\n return;\\n }\\n \\n // Observers\\n $this->include_observers();\\n \\n // Subject\\n require_once dirname( __FILE__ ) . '/inc/class-header-design.php';\\n $design = new Pbtheme_Header_Design();\\n \\n /**\\n * Attach below any theme options to apply\\n */\\n \\n // Observers\\n $observers = array(\\n 'Pbtheme_Header_Topbar_Bgd',\\n 'Pbtheme_Header_Topbar_Text_Color',\\n 'Pbtheme_Header_Topbar_Link_Color',\\n 'Pbtheme_Header_Topbar_Link_Hover_Color',\\n 'Pbtheme_Header_Topbar_Border',\\n 'Pbtheme_Header_Topbar_Font_Size',\\n 'Pbtheme_Header_Bgd',\\n 'Pbtheme_Header_Link_Color',\\n 'Pbtheme_Header_Link_Hover',\\n 'Pbtheme_Header_Border',\\n 'Pbtheme_Header_Menu_Style',\\n 'Pbtheme_Header_Search_Style',\\n 'Pbtheme_Header_Logo_Style',\\n 'Pbtheme_Header_Responsive_Menu',\\n );\\n \\n /**\\n * Apply styles via observers\\n */\\n $this->add_observers( $observers, $design );\\n $design->apply_styles( $enabled );\\n \\n }\",\n \"function my_header()\\r\\n{\\r\\n ?>\\r\\n\\r\\n\\r\\n\\r\\n \\r\\n Trump Pursuit\\r\\n \\r\\n \\r\\n\\r\\n' . \\\"\\\\n\\\";\\n}\",\n \"function insert_header_code () {\\r\\n\\techo '\\r\\n\\t\\r\\n\\t';\\r\\n}\",\n \"public function ajax_header_add()\\n {\\n }\",\n \"function dg_custom_header() {\\n\\t\\n\\t//meta tag view port\\n\\techo '';\\n\\t\\n\\t// GMT\\n\\t\\n\\techo \\\"\\n\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\\";\\n\\t\\n\\t// for EN typeface\\n\\techo '';\\n\\t\\n\\t// favicon\\n/*\\techo '\\n\\t\\t\\n\\t\\t\\n\\t\\t';\\n*/\\t\\t\\n\\t\\n}\",\n \"function displayHtmlHeader() {\\n\\t\\tglobal $page;\\n\\t\\t\\n\\t\\techo \\\"\\\";\\n\\t\\techo \\\"\\\";\\n\\t\\t\\n\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Encodage et zoom\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Titre de la page\\n\\t\\t\\t\\techo \\\"Gestion maintenances | Best Engines Inc.\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Description et auteur de la page\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Fichiers CSS\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Formulaire d'authentification\\n\\t\\t\\t\\tif($page == \\\"authentification\\\") {\\n\\t\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Font\\n\\t\\t\\t\\techo \\\"\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t//Favicon\\n\\t\\t\\t\\techo \\\"\\\";\\n\\n\\t\\t\\techo \\\"\\\";\\t\\t\\t\\n\\t\\t\\techo \\\"\\\";\\n\\t}\",\n \"public function testHeaderHTML() {\\n $build['#attached']['library'][] = 'common_test/js-header';\\n $assets = AttachedAssets::createFromRenderArray($build);\\n\\n $js = $this->assetResolver->getJsAssets($assets, FALSE)[0];\\n $js_render_array = \\\\Drupal::service('asset.js.collection_renderer')->render($js);\\n $rendered_js = $this->renderer->renderPlain($js_render_array);\\n $query_string = $this->container->get('state')->get('system.css_js_query_string') ?: '0';\\n $this->assertStringContainsString('', $rendered_js, 'The JS asset in common_test/js-header appears in the header.');\\n $this->assertStringContainsString('';\\n\\t\\t\\n\\t\\t$this->getModuleJS ( $m, $a, true );\\n\\t}\",\n \"function opinionstage_settings_load_header(){\\n}\",\n \"public function init_header() {\\r\\n\\t\\t\\twp_enqueue_script( 'jquery' );\\r\\n\\t\\t\\twp_enqueue_script( 'thickbox' );\\r\\n\\t\\t\\twp_enqueue_style( 'thickbox' );\\r\\n\\t\\t\\twp_enqueue_script( 'media-upload' );\\r\\n\\t\\t\\twp_enqueue_style( 'wp-color-picker' );\\r\\n\\t\\t\\twp_enqueue_script( 'wp-color-picker' );\\r\\n\\t\\t\\twp_enqueue_script( 'jquery-ui-sortable' );\\r\\n\\t\\t\\twp_enqueue_script( 'jquery-ui-progressbar' );\\r\\n\\t\\t\\twp_enqueue_media();\\r\\n\\r\\n\\t\\t\\tif ( ! wp_style_is( 'netivo-jq-ui', 'enqueued' ) ) {\\r\\n\\t\\t\\t\\twp_enqueue_style( 'netivo-jq-ui', NT_CORE_PLUGIN_URL . \\\"/assets/admin/css/jquery-ui.min.css\\\" );\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\tif ( ! wp_style_is( 'netivo-admin', 'enqueued' ) ) {\\r\\n\\t\\t\\t\\twp_enqueue_style( 'netivo-admin', NT_CORE_PLUGIN_URL . \\\"/assets/admin/css/admin.min.css\\\" );\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif ( ! wp_script_is( 'netivo-admin', 'enqueued' ) ) {\\r\\n\\t\\t\\t\\twp_enqueue_script( 'netivo-admin', NT_CORE_PLUGIN_URL . \\\"/assets/admin/js/admin.min.js\\\" );\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t$this->custom_header();\\r\\n\\t\\t}\",\n \"public function header() {\\r\\n $html = <<\\r\\n

    \\\"\\\"

    \\r\\n

    $this->title

    \\r\\n \\r\\nHTML;\\r\\n return $html;\\r\\n }\",\n \"function cookiebar_insert_head_css($flux){\\n $flux .= '';\\n return $flux;\\n}\",\n \"function links_insert_head_css($flux) {\\r\\n\\t$links = links_configuration();\\r\\n\\r\\n\\t//Styles\\r\\n\\tif($links['style'] == 'on'){\\r\\n\\t\\t$flux .= '';\\r\\n\\t}\\r\\n\\t//Ouverture d'une nouvelle fenetre : insertion des init js inline, en amont des CSS (perf issue)\\r\\n\\tif($links['window'] == 'on'){\\r\\n\\t\\t$js = 'var js_nouvelle_fenetre=\\\\''._T('links:js_nouvelle_fenetre').'\\\\';';\\r\\n\\t\\t//Ouverture dune nouvelel fenetre sur les liens externes\\r\\n\\t\\tif($links['external'] == 'on'){\\r\\n\\t\\t\\t// quand un site fait du multidomaine on prend en reference le domaine de la page concernee :\\r\\n\\t\\t\\t// sur www.example.org : autre.example.org est external\\r\\n\\t\\t\\t// sur autre.example.org : www.example.org est external\\r\\n\\t\\t\\t// sur un site mono-domaine ca ne change rien :)\\r\\n\\t\\t\\t// ca marche parce que le cache change quand le HTTP_HOST change (donc quand le domaine change)\\r\\n\\t\\t\\t$js .= 'var links_site = \\\\'' . protocole_implicite(url_de_base()) . '\\\\';';\\r\\n\\t\\t}\\r\\n\\t\\t//Ouverture d'une nouvelle fenetre sur les documents (extensions a preciser)\\r\\n\\t\\tif(($links['download'] == 'on')&&($links['doc_list'])){\\r\\n\\t\\t\\t$js .= 'var links_doc = \\\\''.$links['doc_list'].'\\\\';';\\r\\n\\t\\t}\\r\\n\\t\\t$flux = '' . \\\"\\\\n\\\" . $flux;\\r\\n\\t}\\r\\n\\r\\n\\treturn $flux;\\r\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.7204028","0.71988887","0.71988887","0.71988887","0.71454835","0.71312165","0.6978219","0.683634","0.6797206","0.67849","0.67273986","0.67120475","0.67091846","0.6702548","0.6668796","0.6648915","0.6547907","0.6537479","0.6530247","0.65203923","0.6495011","0.64901567","0.64662457","0.64566207","0.64505315","0.64219904","0.6390188","0.6385387","0.63829637","0.6378618","0.6352027","0.6345462","0.6342595","0.63268054","0.63175935","0.63139284","0.6313238","0.6313238","0.6306843","0.6306843","0.6306843","0.63026685","0.63007843","0.6291907","0.62827986","0.6276537","0.6275314","0.6275088","0.62750673","0.6251401","0.62458163","0.623207","0.6231066","0.6228979","0.62257916","0.62251806","0.62017506","0.61960405","0.6180762","0.6173969","0.6168359","0.61562","0.61514693","0.61352044","0.61324424","0.6121501","0.6117997","0.6113573","0.61046094","0.6101057","0.6094188","0.60824436","0.6056067","0.6055826","0.6055224","0.60488623","0.6034068","0.60196865","0.6014071","0.6002658","0.60021436","0.6001768","0.59869164","0.59863913","0.59846634","0.598036","0.59791976","0.597886","0.59729755","0.5972861","0.5971451","0.5971397","0.59693277","0.59644294","0.5961594","0.59602416","0.59558463","0.5933089","0.59314936","0.59305364","0.5927476"],"string":"[\n \"0.7204028\",\n \"0.71988887\",\n \"0.71988887\",\n \"0.71988887\",\n \"0.71454835\",\n \"0.71312165\",\n \"0.6978219\",\n \"0.683634\",\n \"0.6797206\",\n \"0.67849\",\n \"0.67273986\",\n \"0.67120475\",\n \"0.67091846\",\n \"0.6702548\",\n \"0.6668796\",\n \"0.6648915\",\n \"0.6547907\",\n \"0.6537479\",\n \"0.6530247\",\n \"0.65203923\",\n \"0.6495011\",\n \"0.64901567\",\n \"0.64662457\",\n \"0.64566207\",\n \"0.64505315\",\n \"0.64219904\",\n \"0.6390188\",\n \"0.6385387\",\n \"0.63829637\",\n \"0.6378618\",\n \"0.6352027\",\n \"0.6345462\",\n \"0.6342595\",\n \"0.63268054\",\n \"0.63175935\",\n \"0.63139284\",\n \"0.6313238\",\n \"0.6313238\",\n \"0.6306843\",\n \"0.6306843\",\n \"0.6306843\",\n \"0.63026685\",\n \"0.63007843\",\n \"0.6291907\",\n \"0.62827986\",\n \"0.6276537\",\n \"0.6275314\",\n \"0.6275088\",\n \"0.62750673\",\n \"0.6251401\",\n \"0.62458163\",\n \"0.623207\",\n \"0.6231066\",\n \"0.6228979\",\n \"0.62257916\",\n \"0.62251806\",\n \"0.62017506\",\n \"0.61960405\",\n \"0.6180762\",\n \"0.6173969\",\n \"0.6168359\",\n \"0.61562\",\n \"0.61514693\",\n \"0.61352044\",\n \"0.61324424\",\n \"0.6121501\",\n \"0.6117997\",\n \"0.6113573\",\n \"0.61046094\",\n \"0.6101057\",\n \"0.6094188\",\n \"0.60824436\",\n \"0.6056067\",\n \"0.6055826\",\n \"0.6055224\",\n \"0.60488623\",\n \"0.6034068\",\n \"0.60196865\",\n \"0.6014071\",\n \"0.6002658\",\n \"0.60021436\",\n \"0.6001768\",\n \"0.59869164\",\n \"0.59863913\",\n \"0.59846634\",\n \"0.598036\",\n \"0.59791976\",\n \"0.597886\",\n \"0.59729755\",\n \"0.5972861\",\n \"0.5971451\",\n \"0.5971397\",\n \"0.59693277\",\n \"0.59644294\",\n \"0.5961594\",\n \"0.59602416\",\n \"0.59558463\",\n \"0.5933089\",\n \"0.59314936\",\n \"0.59305364\",\n \"0.5927476\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":437,"cells":{"query":{"kind":"string","value":"Insert DropLoader link in column 1 on the writetab"},"document":{"kind":"string","value":"function abl_droploader_article_ui($event, $step, $data) {\n\t\t$content = '\n';\n\t\tif (is_callable('wrapRegion')) { // new in txp 4.6\n\t\t\treturn $data.wrapRegion('abl_droploader_group', $content, 'abl_droploader_link', 'upload', 'article_abl_droploader');\n\t\t} else {\n\t\t\treturn $data.'\n

    ' . gTxt('upload') . '

    \n
    ' .\n$content . '\n
    \n
    \n';\n\t\t}\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function showDelete($path)\n\t{\n\t\t$this->table->deleteColumn = true;\n\t\t$this->table->deletelink = $path;\n\t}","protected function linkAdd() { return \"\"; }","function addlinks(){\n Vtiger_Link::addLink(0, 'HEADERSCRIPT', 'LSWYSIWYG', 'modules/LSWYSIWYG/resources/WYSIWYG.js','','','');\n\n\t}","public function column_url($link)\n {\n }","function links_insert_head($flux) {\r\n\t$links = links_configuration();\r\n\r\n\t//Ouverture d'une nouvelle fenetre\r\n\tif($links['window'] == 'on'){\r\n\t\t$flux .= ''. \"\\n\";\r\n\t}\r\n\treturn $flux;\r\n}","public function setColumnLink($link){\n $this->addVar('COL_LINK', $link);\n }","function column_inserted( $item ) {\r\n\t\tif ( !MLACore::$process_inserted_in ) {\r\n\t\t\treturn __( 'Disabled', 'media-library-assistant' );\r\n\t\t}\r\n\r\n\t\t$value = '';\r\n\t\tforeach ( $item->mla_references['inserts'] as $file => $inserts ) {\r\n\t\t\tif ( 'base' != $item->mla_references['inserted_option'] ) {\r\n\t\t\t\t$value .= sprintf( '%1$s
    ', $file );\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * Move parent to the top of the list\r\n\t\t\t */\r\n\t\t\tif ( isset( $inserts[ $item->post_parent ] ) ) {\r\n\t\t\t\t$parent = $inserts[ $item->post_parent ];\r\n\t\t\t\tunset( $inserts[ $item->post_parent ] );\r\n\t\t\t\tarray_unshift( $inserts, $parent );\r\n\t\t\t}\r\n\r\n\t\t\tforeach ( $inserts as $insert ) {\r\n\t\t\t\t$status = self::_format_post_status( $insert->post_status );\r\n\r\n\t\t\t\tif ( $insert->ID == $item->post_parent ) {\r\n\t\t\t\t\t$parent = ',
    ' . __( 'PARENT', 'media-library-assistant' );\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$parent = '';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$value .= sprintf( '%2$s (%3$s %4$s%5$s%6$s), ',\r\n\t\t\t\t/*%1$s*/ esc_url( add_query_arg( array('post' => $insert->ID, 'action' => 'edit'), 'post.php' ) ),\r\n\t\t\t\t/*%2$s*/ esc_attr( $insert->post_title ),\r\n\t\t\t\t/*%3$s*/ esc_attr( $insert->post_type ),\r\n\t\t\t\t/*%4$s*/ $insert->ID,\r\n\t\t\t\t/*%3$s*/ $status,\r\n\t\t\t\t/*%6$s*/ $parent ) . \"
    \\r\\n\";\r\n\t\t\t} // foreach $insert\r\n\t\t} // foreach $file\r\n\r\n\t\treturn $value;\r\n\t}","function add_book_alias_to_dlts_books_page() {\n $results = db_query('\n SELECT \n n.nid,\n i.field_is_part_of_value\n FROM {node} n\n LEFT JOIN {field_data_field_sequence_number} s ON n.nid = s.entity_id\n LEFT JOIN {field_data_field_is_part_of} i ON n.nid = i.entity_id\n WHERE type = :type AND s.field_sequence_number_value = 1\n ', array(':type' => 'dlts_book_page')); \n\n foreach ( $results as $key => $result ) {\n drush_print('Inserting alias books/' . $result->field_is_part_of_value . ' to node/' . $result->nid );\n db_insert('url_alias')->fields(\n array(\n 'source' => 'node/' . $result->nid,\n 'alias' => 'books/' . $result->field_is_part_of_value,\n 'language' => 'en',\n )\n )\n ->execute();\n \n }\n}","public function onAfterWrite() {\n if (!$this->URLPath) {\n $this->URLPath = Utils::generateURLPath($this->Title, $this->ID);\n $this->write();\n }\n\n parent::onAfterWrite();\n }","public function after_insert() {}","function section_linkadmin (){\n section_links_links (true);\n}","function setMargemDireita($iNumCol = 4) {\n\n $sComando = chr(27) . chr(81) . \" $iNumCol\";\n parent::addComando($sComando);\n }","function link_database()\n{\n\t$sql=\"CREATE TABLE IF NOT EXISTS `link` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `link` varchar(100) COLLATE utf8_unicode_ci NOT NULL,\n `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\";\n\tlz::h('db')->install($sql);\n}","public function &draw_report_link_panel($link_or_import, $tag, $label, $preselectedvalue = false)\n {\n $text = '';\n $type = \"TEXTFIELD\";\n $translateoptions = false;\n\n $striptag = preg_replace(\"/ .*/\", \"\", $tag);\n $showtag = preg_replace(\"/ /\", \"_\", $tag);\n $subtitle = \"\";\n if (preg_match(\"/ /\", $tag)) {\n $subtitle = preg_replace(\"/.* /\", \" \", $tag);\n }\n\n if (array_key_exists($striptag, $this->field_display)) {\n $arval = $this->field_display[$striptag];\n if (array_key_exists(\"Title\", $arval)) {\n $title = $arval[\"Title\"] . $subtitle;\n }\n\n if (array_key_exists(\"Type\", $arval)) {\n $type = $arval[\"Type\"];\n }\n\n if (array_key_exists(\"XlateOptions\", $arval)) {\n $translateoptions = $arval[\"XlateOptions\"];\n }\n\n if (array_key_exists(\"EditMode\", $arval)) {\n $edit_mode = $arval[\"EditMode\"];\n }\n\n if (array_key_exists(\"Values\", $arval)) {\n $tagvals = $arval[\"Values\"];\n }\n\n }\n\n $default = ReporticoApp::getDefaultConfig($striptag, \".\");\n\n $helppage = \"importlink\";\n if ($helppage) {\n if ($this->query->url_path_to_assets) {\n $helpimg = $this->query->url_path_to_assets . \"/images/help.png\";\n $text .= 'helpPath($helppage, $striptag) . '\">';\n $text .= '\"tab\"';\n $text .= '&nbsp;';\n } else {\n $helpimg = ReporticoUtility::findBestUrlInIncludePath(\"images/help.png\");\n $dr = ReporticoUtility::getReporticoUrlPath();\n $text .= 'helpPath($helppage, $striptag) . '\">';\n $text .= '\"tab\"';\n $text .= '&nbsp;';\n }\n }\n\n // Show options options to import or link\n $listarr = array();\n if ($link_or_import == \"IMPORT\" || $link_or_import == \"LINKANDIMPORT\") {\n $listarr[\"import\"] = ReporticoLang::templateXlate(\"IMPORTREPORT\");\n }\n\n if ($link_or_import == \"LINK\" || $link_or_import == \"LINKANDIMPORT\") {\n $listarr[\"linkto\"] = ReporticoLang::templateXlate(\"MAKELINKTOREPORT\");\n }\n\n $text .= $this->drawArrayDropdown(\"linkorimport_\" . $this->id, $listarr, $this->query->reportlink_or_import, false, false, true);\n\n $text .= '&nbsp;&nbsp;';\n\n // Draw report names we can link to\n $text .= $this->drawSelectFileList($this->query->reports_path, \"/.*\\.xml/\", false, $preselectedvalue, true, false, \"reportlink\");\n $text .= 'query->getBootstrapStyle('design_ok') . 'reportico-maintain-button reportico-submit\" style=\"margin-right: 20px\" type=\"submit\" name=\"submit_' . $this->id . '_REPORTLINK\" value=\"' . ReporticoLang::templateXlate(\"OK\") . '\">';\n\n if ($this->query->reportlink_report) {\n // Draw report criteria items we can link to\n $q = ReporticoUtility::loadExistingReport($this->query->reportlink_report, $this->query->projects_folder);\n if (!$q) {\n trigger_error(ReporticoLang::templateXlate(\"NOOPENLINK\") . $this->query->reportlink_report, E_USER_NOTICE);\n } else if (!$q->lookup_queries || count($q->lookup_queries) == 0) {\n trigger_error(ReporticoLang::templateXlate(\"NOCRITLINK\") . $this->query->reportlink_report, E_USER_NOTICE);\n } else {\n if ($link_or_import == \"LINK\") {\n $text .= ReporticoLang::templateXlate(\"MAKELINKTOREPORTITEM\");\n } else {\n $text .= ReporticoLang::templateXlate(\"IMPORTREPORT\");\n }\n\n $text .= \"&nbsp;\";\n $listarr = array();\n $listarr[\"ALLITEMS\"] = ReporticoLang::templateXlate(\"ALLITEMS\");\n if ($tag == \"mainquercrit\") {\n $lq = $q->lookup_queries;\n foreach ($lq as $k => $v) {\n $listarr[$v->query_name] = $v->query_name;\n }\n\n } else if ($tag == \"mainquerassg\") {\n $lq = $q->assignment;\n foreach ($lq as $k => $v) {\n if (strlen($v->expression) > 30) {\n $listarr[$k] = $v->query_name . \" = \" . substr($v->expression, 0, 30) . \"...\";\n } else {\n $listarr[$k] = $v->query_name . \" = \" . $v->expression;\n }\n\n }\n } else if ($tag == \"mainqueroutppghd\") {\n $lq = $q->pageHeaders;\n foreach ($lq as $k => $v) {\n if (strlen($v->text) > 30) {\n $listarr[$k] = $k . \" = \" . substr($v->text, 0, 30) . \"...\";\n } else {\n $listarr[$k] = $k . \" = \" . $v->text;\n }\n\n }\n } else if ($tag == \"mainqueroutppgft\") {\n $lq = $q->pageFooters;\n foreach ($lq as $k => $v) {\n if (strlen($v->text) > 30) {\n $listarr[$k] = $k . \" = \" . substr($v->text, 0, 30) . \"...\";\n } else {\n $listarr[$k] = $k . \" = \" . $v->text;\n }\n\n }\n }\n\n $text .= $this->drawArrayDropdown(\"reportlinkitem_\" . $this->id, $listarr, false, false, false, true);\n $text .= 'query->getBootstrapStyle('design_ok') . 'reportico-maintain-button reportico-submit\" style=\"margin-right: 20px\" type=\"submit\" name=\"submit_' . $this->id . '_REPORTLINKITEM\" value=\"' . ReporticoLang::templateXlate(\"OK\") . '\">';\n }\n }\n\n $text .= '';\n //$text .= '';\n\n return $text;\n }","function onAfterShowDescription(&$row)\n {\n\n echo '

    onAfterShowDescription

    '\n . JText::_('PLG_JEA_OWNER_NAME'). ' : '\n . $row->owner_name . '';\n }","public function onRsformBackendAfterShowFormEditTabsTab(): void\n\t{\n\t\t?>\n\t\t
  • \n\t\t\t'\n\t\t\t\t. Text::_(\n\t\t\t\t\t'PLG_RSFP_JDIDEAL_LABEL'\n\t\t\t\t) . ''\n\t\t\t);\n\t\t\t?>\n\t\t
  • \n\t\t' . n;\n\t\t\t}\n\t\t\tif ($abl_droploader_prefs['customStylesheet'] != '') {\n\t\t\t\t$css .= '' . n;\n\t\t\t}\n\t\t\tif ($css == '') {\n\t\t\t\t$css = '' . n;\n\t\t\t}\n\t\t\t$article_image_field_ids = '\"' . implode('\", \"', explode(',', $abl_droploader_prefs['articleImageFields'])) . '\"';\n\t\t\t$script = '\n\n\n' . n;\n\t\t\techo $css . $script;\n\t\t}\n\n\t}","function abl_droploader_image_ui($event, $step) {\n $content = '';\n return $content.n;\n }","function setUrlLink(){\n if( $this->id == 0 ) return;\n $url = $this->aFields[\"url\"]->toString();\n if( $url == \"\" ) return;\n $url = strip_tags( preg_replace( \"/[\\\"']/\", \"\", $url ) );\n if( !$this->aFields[\"url\"]->editable ) $this->aFields[\"url\"]->display = false;\n $this->aFields[\"url_link\"]->display = true;\n $this->aFields[\"url_link\"]->value = \"\".$url.\"\";\n }","function print_record_positions2($record) {\n ?>\n \n \n htmlspecialchars($record[\"id\"]), 'id'=>htmlspecialchars($record[\"id\"]))) ?>\">Delete \n \n db->query(<<db->prefix}neatline_exhibits\n ADD COLUMN accessible_url TEXT NULL;\nSQL\n);\n }","function XXLINK_edit($action, $lid = '')\n{\n global $_CONF, $_GROUPS, $_TABLES, $_USER, $_LI_CONF,\n $LANG_LINKS_ADMIN, $LANG_ACCESS, $LANG_ADMIN, $MESSAGE;\n\n USES_lib_admin();\n\n $retval = '';\n $editFlag = false;\n\n switch ($action) {\n case 'edit':\n $blocktitle = $LANG_LINKS_ADMIN[1]; // Link Editor\n $saveoption = $LANG_ADMIN['save']; // Save\n break;\n case 'moderate':\n $blocktitle = $LANG_LINKS_ADMIN[65]; // Moderate Link\n $saveoption = $LANG_ADMIN['moderate']; // Save & Approve\n break;\n }\n\n $link_templates = new Template($_CONF['path'] . 'plugins/links/templates/admin/');\n $link_templates->set_file('editor','linkeditor.thtml');\n\n $link_templates->set_var('lang_pagetitle', $LANG_LINKS_ADMIN[28]);\n $link_templates->set_var('lang_link_list', $LANG_LINKS_ADMIN[53]);\n $link_templates->set_var('lang_new_link', $LANG_LINKS_ADMIN[51]);\n $link_templates->set_var('lang_validate_links', $LANG_LINKS_ADMIN[26]);\n $link_templates->set_var('lang_list_categories', $LANG_LINKS_ADMIN[50]);\n $link_templates->set_var('lang_new_category', $LANG_LINKS_ADMIN[52]);\n $link_templates->set_var('lang_admin_home', $LANG_ADMIN['admin_home']);\n $link_templates->set_var('instructions', $LANG_LINKS_ADMIN[29]);\n\n if ($action <> 'moderate' AND !empty($lid)) {\n $result = DB_query(\"SELECT * FROM {$_TABLES['links']} WHERE lid ='$lid'\");\n if (DB_numRows($result) !== 1) {\n $msg = COM_startBlock ($LANG_LINKS_ADMIN[24], '',\n COM_getBlockTemplate ('_msg_block', 'header'));\n $msg .= $LANG_LINKS_ADMIN[25];\n $msg .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));\n return $msg;\n }\n $A = DB_fetchArray($result);\n $access = SEC_hasAccess($A['owner_id'],$A['group_id'],$A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']);\n if ($access == 0 OR $access == 2) {\n $retval .= COM_startBlock($LANG_LINKS_ADMIN[16], '',\n COM_getBlockTemplate ('_msg_block', 'header'));\n $retval .= $LANG_LINKS_ADMIN[17];\n $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));\n COM_accessLog(\"User {$_USER['username']} tried to illegally submit or edit link $lid.\");\n return $retval;\n }\n $editFlag = true;\n } else {\n if ($action == 'moderate') {\n $result = DB_query (\"SELECT * FROM {$_TABLES['linksubmission']} WHERE lid = '$lid'\");\n $A = DB_fetchArray($result);\n } else {\n $A['lid'] = COM_makesid();\n $A['cid'] = '';\n $A['url'] = '';\n $A['description'] = '';\n $A['title']= '';\n $A['owner_id'] = $_USER['uid'];\n }\n $A['hits'] = 0;\n if (isset ($_GROUPS['Links Admin'])) {\n $A['group_id'] = $_GROUPS['Links Admin'];\n } else {\n $A['group_id'] = SEC_getFeatureGroup ('links.edit');\n }\n SEC_setDefaultPermissions ($A, $_LI_CONF['default_permissions']);\n $access = 3;\n }\n $retval .= COM_startBlock ($blocktitle, '',\n COM_getBlockTemplate ('_admin_block', 'header'));\n\n if ( $editFlag ) {\n $lang_create_or_edit = $LANG_ADMIN['edit'];\n } else {\n $lang_create_or_edit = $LANG_LINKS_ADMIN[51];\n }\n $menu_arr = array(\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/index.php',\n 'text' => $LANG_LINKS_ADMIN[53]),\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/index.php?edit=x',\n 'text' => $lang_create_or_edit,'active'=>true),\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/category.php',\n 'text' => $LANG_LINKS_ADMIN[50]),\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/index.php?validate=enabled',\n 'text' => $LANG_LINKS_ADMIN[26]),\n array('url' => $_CONF['site_admin_url'],\n 'text' => $LANG_ADMIN['admin_home'])\n );\n\n\n\n $retval .= ADMIN_createMenu($menu_arr, $LANG_LINKS_ADMIN[66], plugin_geticon_links());\n\n $link_templates->set_var('link_id', $A['lid']);\n if (!empty($lid) && SEC_hasRights('links.edit')) {\n $delbutton = '';\n $jsconfirm = ' onclick=\"return confirm(\\'' . $MESSAGE[76] . '\\');\"';\n $link_templates->set_var ('delete_option',\n sprintf ($delbutton, $jsconfirm));\n $link_templates->set_var ('delete_option_no_confirmation',\n sprintf ($delbutton, ''));\n $link_templates->set_var ('delete_confirm_msg',$MESSAGE[76]);\n if ($action == 'moderate') {\n $link_templates->set_var('submission_option',\n '');\n }\n }\n $link_templates->set_var('lang_linktitle', $LANG_LINKS_ADMIN[3]);\n $link_templates->set_var('link_title',\n htmlspecialchars ($A['title']));\n $link_templates->set_var('lang_linkid', $LANG_LINKS_ADMIN[2]);\n $link_templates->set_var('lang_linkurl', $LANG_LINKS_ADMIN[4]);\n $link_templates->set_var('max_url_length', 255);\n $link_templates->set_var('link_url', $A['url']);\n $link_templates->set_var('lang_includehttp', $LANG_LINKS_ADMIN[6]);\n $link_templates->set_var('lang_category', $LANG_LINKS_ADMIN[5]);\n $othercategory = links_select_box (3,$A['cid']);\n $link_templates->set_var('category_options', $othercategory);\n $link_templates->set_var('lang_ifotherspecify', $LANG_LINKS_ADMIN[20]);\n $link_templates->set_var('category', $othercategory);\n $link_templates->set_var('lang_linkhits', $LANG_LINKS_ADMIN[8]);\n $link_templates->set_var('link_hits', $A['hits']);\n $link_templates->set_var('lang_linkdescription', $LANG_LINKS_ADMIN[9]);\n $link_templates->set_var('link_description', $A['description']);\n $link_templates->set_var('lang_save', $saveoption);\n $link_templates->set_var('lang_cancel', $LANG_ADMIN['cancel']);\n\n // user access info\n $link_templates->set_var('lang_accessrights', $LANG_ACCESS['accessrights']);\n $link_templates->set_var('lang_owner', $LANG_ACCESS['owner']);\n $ownername = COM_getDisplayName ($A['owner_id']);\n $link_templates->set_var('owner_username', DB_getItem($_TABLES['users'],\n 'username', \"uid = {$A['owner_id']}\"));\n $link_templates->set_var('owner_name', $ownername);\n $link_templates->set_var('owner', $ownername);\n $link_templates->set_var('link_ownerid', $A['owner_id']);\n $link_templates->set_var('lang_group', $LANG_ACCESS['group']);\n $link_templates->set_var('group_dropdown',\n SEC_getGroupDropdown ($A['group_id'], $access));\n $link_templates->set_var('lang_permissions', $LANG_ACCESS['permissions']);\n $link_templates->set_var('lang_permissionskey', $LANG_ACCESS['permissionskey']);\n $link_templates->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']));\n $link_templates->set_var('lang_lockmsg', $LANG_ACCESS['permmsg']);\n $link_templates->set_var('gltoken_name', CSRF_TOKEN);\n $link_templates->set_var('gltoken', SEC_createToken());\n $link_templates->parse('output', 'editor');\n $retval .= $link_templates->finish($link_templates->get_var('output'));\n\n $retval .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer'));\n\n return $retval;\n}","public function column_name($link)\n {\n }","protected function write_pre_td(&$cur)\r\n\t{\r\n\t\t?>\r\n\t\tobjectname;?>_pic_\">\r\n\t\t\tobjectname;?>('');\">\r\n\t\t\t\twebpath.$cur[1]; ?>\" alt=\"\" title=\"\"picstyle))\r\n\t\t\t\t\techo \" class=\\\"\".$this->picstyle.\"\\\"\";\r\n\t\t\t\t?> />\r\n\t\t\r\n\t\teditmode == 1){ ?>\r\n\t\t\t
    \r\n\t\t\tobjectname;?>\" class=\"ccms_headeditlink\" href=\"pictureshow.php?id=myid;?>&amp;picname=&amp;picprename=\" >Delete\r\n\t\t\r\n\t\t\r\n\t\tquery($sqlLinkPerm);\n $dbf->next_record();\n \n $rows = $dbf->rowdata();\n if($permType != $rows['permission_term']) {\n return;\n } else {\n \n $theHyperlink = \"$linkCaption\";\n return $theHyperlink;\n }\n}","function genLink () {\n\t\t\t$db_host=\"127.0.0.1\";\n\t\t\t$db_nombre=\"gallery\";\n\t\t\t$db_user=\"gallery\";\n\t\t\t$db_pass=\"gallery\";\n\t\t\t$link=mysql_connect($db_host, $db_user, $db_pass) or die (\"Error conectando a la base de datos.\");\n\t\t\tmysql_select_db($db_nombre ,$link) or die(\"Error seleccionando la base de datos.\");\n\t\t\t$this->link = $link;\n\t\t}","function formattingLoad($row){\n //formattingDATE bannerSlide_update_date\n $data = $row->get_value(\"bannerSlide_update_date\");\n $row->set_value(\"bannerSlide_update_date\",date(\"d/m/Y - H:i:s\",strtotime($data)));\n\t\t\t\t \n //formatting EDITOR\n $data = $row->get_value(\"bannerSlide_id\");\n $row->set_value(\"bannerSlide_editor\",\"Sửa chi tiết\");\n\t}","function deleted_open() {\n $this->doc .= '';\n }","function newItemAfter()\r\n\t{\r\n\t\t$this->content_obj->newItemAfter();\r\n\t\t$_SESSION[\"il_pg_error\"] = $this->pg_obj->update();\r\n\t\t$this->ctrl->returnToParent($this, \"jump\".$this->hier_id);\r\n\t}","function efTableEditLinks( &$parser, &$text, &$strip_state ){\n\t$l = new TableEditOMPLinker($text);\n\t$text = $l->execute();\n\treturn true;\n}","function adabs_link( $wp_admin_bar ) {\n $args = array(\n 'id' => '',\n 'title' => '',\n 'href' => 'https://adabs.ch',\n 'meta' => array( 'target' => '_blank', 'rel' => 'noopener' ),\n 'parent' => 'top-secondary'\n );\n\t$wp_admin_bar->add_node( $args );\n}","public function insert_page_link($data){\n $this->db->insert($data,'links');\n\n }","function log_viewer_add_menu_item() {\n\techo '
  • Log Viewer
  • ';\n}","private function writeUrlInternal($row1, $col1, $row2, $col2, $url): void\n {\n $record = 0x01B8; // Record identifier\n\n // Strip URL type\n $url = (string) preg_replace('/^internal:/', '', $url);\n\n // Pack the undocumented parts of the hyperlink stream\n $unknown1 = pack('H*', 'D0C9EA79F9BACE118C8200AA004BA90B02000000');\n\n // Pack the option flags\n $options = pack('V', 0x08);\n\n // Convert the URL type and to a null terminated wchar string\n $url .= \"\\0\";\n\n // character count\n $url_len = StringHelper::countCharacters($url);\n $url_len = pack('V', $url_len);\n\n $url = StringHelper::convertEncoding($url, 'UTF-16LE', 'UTF-8');\n\n // Calculate the data length\n $length = 0x24 + strlen($url);\n\n // Pack the header data\n $header = pack('vv', $record, $length);\n $data = pack('vvvv', $row1, $row2, $col1, $col2);\n\n // Write the packed data\n $this->append($header . $data . $unknown1 . $options . $url_len . $url);\n }","function main()\t{\n\n\t\t$content = '';\n\n\t\t$content .= '
    Change table tx_realurl_redirects:
    \n\t\tRemove the field url_hash from the table tx_realurl_redirects,
    because it\\'s not needed anymore and it\\'s replaced by the standard TCA field uid as soon as you do
    the DB updates by the extension manager in the main view of this extension.

    ALTER TABLE tx_realurl_redirects DROP url_hash
    ALTER TABLE tx_realurl_redirects ADD uid int(11) auto_increment PRIMARY KEY';\n\t\t\n\t\t$import = t3lib_div::_GP('update');\n\n\t\tif ($import == 'Update') {\n\t\t\t$result = $this->updateRedirectsTable();\n\t\t\t$content2 .= '

    ';\n\t\t\t$content2 .= '

    Result: '.$result.'

    ';\n\t\t\t$content2 .= '

    Done. Please accept the update suggestions of the extension manager now!

    ';\n\t\t} else {\n\t\t\t$content2 = '';\n\t\t\t$content2 .= '
    ';\n\t\t\t$content2 .= '

    ';\n\t\t\t$content2 .= '';\n\t\t\t$content2 .= '
    ';\n\t\t} \n\n\t\treturn $content.$content2;\n\t}","function donotuse_dumpredlinks(PDO $dbh_wiki)\n\t{\n\t\t$dbh_wiki->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);\n\t\t$dumppath = self::getDumpPath();\n\n\t\t// Get article and template (10) redlinks\n\t\t$sql = 'SELECT pl_title, COUNT(*) AS pagecnt, SUM(TRUNCATE(pl_from_namespace / 10, 0)) FROM pagelinks\n\t\t\tLEFT JOIN page ON page_title=pl_title AND page_namespace=pl_namespace\n\t\t\tWHERE pl_namespace = 0 AND pl_from_namespace IN (0,10)\n\t\t\tAND page_namespace IS NULL\n\t\t\tGROUP BY pl_title\n\t\t\tHAVING pagecnt > 9';\n\n\t\t$hndl = fopen($dumppath, 'w');\n\t\t$sth = $dbh_wiki->query($sql);\n\t\t$sth->setFetchMode(PDO::FETCH_NUM);\n\n\t\twhile ($row = $sth->fetch()) {\n\t\t\tfwrite($hndl, \"{$row[0]}\\t{$row[1]}\\t{$row[2]}\\n\");\n\t\t}\n\n\t\t$sth->closeCursor();\n\t\tfclose($hndl);\n\t\t$dbh_wiki->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);\n\t}","function edit_table($table_name){\n\t\t\t$link = 'index.php?module=extends&view=tables&task=edit&tablename='.\t$table_name;\n\t\t\treturn 'Sửa bảng';\t\t\n\t\t}","public function afterInsert() {\n\t\t\tparent::afterInsert();\n\t\t\t//$this->pos = 1;\n\t\t\t$this->updatePos(1);\n\t\t}","function tInserting($table,$field,$parentTable){\r\n $Xs = superGet('*',$table,\"Lang_ID = 1\");\r\n foreach ($Xs as $x) {\r\n echo '
  • '.$x[$field].'
  • ';\r\n } \r\n }","function echoDocumentLink ($row)\r{\r\t// name and the event ids that need to be highlighted.\r\r\t$file = $row[3];\r\t$id1 = $row[6];\r\t$id2 = $row[7];\r\t$file = $row['tmlfile'];\r\t$id1 = $row['eid1'];\r\t$id2 = $row['eid2'];\r\techo \"\";\r\techo \"\\n\";\r}","function define_link(){\n\t\t\t$link = \"javascript:set_values(\";\n\t\t\t#print_r($this->column);\n\t\t\tfor($i=0;$icolumn);$i++){\n\t\t\t\t$link .= \"'%$i',\";\t\t\t\t\n\t\t\t}\n\t\t\t$link = substr($link,0,strlen($link)-1);\n\t\t\t$link .= \")\";\n\t\t\treturn $link;\n\t\t}","function onBeforeShowDescription(&$row)\n {\n echo '

    onBeforeShowDescription

    '\n . JText::_('PLG_JEA_OWNER_NAME'). ' : '\n . $row->owner_name . '';\n }","function insertar_link(){\t\n\t\t$this->accion=\"Datos del Nuevo Enlace\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\"){\n\t\t\t$this->asignar_valores();\n\t\t\t$sql=\"SELECT * FROM link WHERE nombre_cat='999999'\";\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\tif($resultado=mysql_fetch_array($consulta)){\n\t\t\t\t$this->mensaje=1;\n\t\t\t}else{\n\t\t\t\t$sql=\"INSERT INTO link VALUES ('', '$this->tipo', '$this->nombre', '$this->etiqueta', '$this->claves', '$this->descripcion', '$this->prioridad','$this->icono')\";\n\t\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t\theader(\"location:/admin/link/\");\n\t\t\t\texit();\n\t\t\t}\n\t\t}\t\t\t\n\t}","function pnAddressBook_admin_menu() {\r\n\r\n \t$settingsURL\t= pnModURL(__PNADDRESSBOOK__,'admin','modifyconfig');\r\n\t$categoryURL\t= pnModURL(__PNADDRESSBOOK__,'admin','categories');\r\n\t$labelURL\t\t= pnModURL(__PNADDRESSBOOK__,'admin','labels');\r\n\t$prefixURL\t\t= pnModURL(__PNADDRESSBOOK__,'admin','prefixes');\r\n\t$customURL\t\t= pnModURL(__PNADDRESSBOOK__,'admin','customfields');\r\n//START - gehunter\r\n\t$exportURL\t\t= pnModURL(__PNADDRESSBOOK__,'user','export');\r\n//END - gehunter\r\n\r\n\t$settingsTXT\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_CONFIG);\r\n\t$categoryTXT\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_pnAB_CATEGORY);\r\n\t$labelTXT\t\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_LABEL);\r\n\t$prefixTXT\t\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_PREFIX);\r\n\t$customTXT\t\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_CUSTOM);\r\n//START - gehunter\r\n\t$exportTXT\t\t=pnVarPrepHTMLDisplay(_pnAB_ADMIN_EXPORT);\r\n//END - gehunter\r\n\r\n\t$output = new pnHTML();\r\n\t$output->SetInputMode(_PNH_VERBATIMINPUT);\r\n\t$output->Title(pnVarPrepHTMLDisplay(_PNADDRESSBOOK));\r\n\t$output->Text('
    ');\r\n\t$output->Text(pnAddressBook_themetable('start',2));\r\n\t$output->Text('
    ');\r\n\t$output->URL($settingsURL,$settingsTXT);\r\n\t$output->Text(' | ');\r\n $output->URL($categoryURL,$categoryTXT);\r\n\t$output->Text(' | ');\r\n\t$output->URL($labelURL,$labelTXT);\r\n\t$output->Text(' | ');\r\n\t$output->URL($prefixURL,$prefixTXT);\r\n\t$output->Text(' | ');\r\n\t$output->URL($customURL,$customTXT);\r\n\t$output->Text(' | ');\r\n\t$output->URL($exportURL,$exportTXT);\r\n\t$output->Text('
    ');\r\n\t$output->Text(pnAddressBook_themetable('end',2));\r\n\t$output->Text('
    ');\r\n\t$output->Linebreak(1);\r\n\r\n // Return the output that has been generated by this function\r\n return $output->GetOutput();\r\n}","function newFormBookmark()\n\t{\n\t\t$form = $this->initFormBookmark();\n\t\t$html1 = $form->getHTML();\n\t\t$html2 = '';\n\t\tif (!$_REQUEST[\"bm_link\"])\n\t\t{\n\t\t\t$form2 = $this->initImportBookmarksForm();\n\t\t\t$html2 = \"
    \" . $form2->getHTML();\n\t\t}\n\t\t$this->tpl->setVariable(\"ADM_CONTENT\", $html1.$html2);\n\t}","function adabs_link($wp_admin_bar)\n{\n $args = array(\n 'id' => '',\n 'title' => '',\n 'href' => 'https://adabs.ch',\n 'meta' => array('target' => '_blank', 'rel' => 'noopener'),\n 'parent' => 'top-secondary'\n );\n $wp_admin_bar->add_node($args);\n}","function wp_regenthumbs_stamina_custom_column($column_name, $id) {\r\n if( $column_name == 'regenthumbs-stamina' ) {\r\n \t\tprintf(\"
    %s\",$id, __('Regen. Thumbnail', 'regenthumbs-stamina'));\r\n }\r\n}","function db_DisplayerINSERT($myServer, $myDB, $TableName){\n\n\t// Prepare the database\n\t$myServer->query('USE '.$myDB);\n\t$sql = 'SELECT * FROM `'.$myDB.'`.`'.$TableName.'`';\n\t$req = $myServer->query($sql);\n\n\t\n\t// Affichage de l'entête du tableau\n\techo '

    Table Displayer :

    ';\n\techo \"\";\n\techo \"\";\n\t$tNames= $myServer->query(\"DESCRIBE \".$TableName);\n\t$table_fields = $tNames->fetchAll(PDO::FETCH_COLUMN);\n\t$colNb = $req->columnCount();\n\tfor ($i=0; $i < $colNb; $i++)\n\t{\n\techo \"\";\n\t }\n\t//AJOUT TABLE INSERT : Titre correspondant aux boutons d'action\n\techo \"\";\n\techo \"\";\n\n\n\t// affichage des datas\n\t$tValues = $myServer->query(\"SELECT * FROM \".$myDB.\".\".$TableName);\n\n\twhile ($datas = $tValues->fetch(PDO::FETCH_NUM))\n\t{\n\t\techo \"\"; // nouvelle ligne du tableau\n\n\t\tfor ($i=0; $i < $colNb; $i++){ // Toutes les lignes de datas\n\t\t\techo \"\";\n\t\t}\n\t\t//AJOUT TABLE INSERT : btns correspondant à la ligne de donnees;\n\t\techo '';\n\t\techo \"\"; // fin de la ligne du tableau\n\t}\n\t// terminer la table\n\techo \"
    \".$table_fields[$i].\"MOD/SUPRR
    \".$datas[$i].\"';\n\t\t\techo \"\";\n\t\t\techo '';\n\t\t\t\techo '';\n\t\t\t\techo '';\n\t\t\techo '';\n\t\t\techo \"
    ';\n\t\t\t\t\tcreateBtnMod($myServer, $myDB, $TableName, $datas, $colNb);\n\t\t\t\techo '';\n\t\t\t\tcreateBtnSuprr($myServer, $myDB, $TableName, $datas, $colNb);\n\t\t\t\techo '
    \";\n\t\techo '
    \";\n\t\n\t\n}","function insert()\n\t{\n\t\t$this->edit(true);\n\t}","protected function doInsert() {\n return '';\n }","function link_origin_file($fname, $title=\"\"){\n if (!$title==\"\") $title.=\"
    \";\n $title.=basename($fname);\n $ageString=file_age_string($fname);\n $ageStyle=file_age_style($fname);\n\n echo \"
    \";\n echo html_button_copy($fname, True, \"copy\");\n echo \"\";\n echo basename($fname);\n echo \" $ageString\";\n echo \"
    \";\n}","function insertar_link(){\n $this->accion=\"Nuevo Link\";\n if (isset($_POST['envio']) && $_POST['envio']==\"Guardar\"){\n header(\"location:/admin/link/\");\n\n $this->asignar_valores();\n $sql=\"INSERT INTO link (tipo_cat, nombre_cat, etiqueta_cat, claves_cat, descripcion_cat, prioridad_cat)\n\t\t\t\t\t\tVALUES (?, ?, ?, ?, ?, ?)\";\n\n try{\n $query = $this->connection->prepare($sql);\n $query->bindParam(1, $this->tipo);\n $query->bindParam(2, $this->nombre);\n $query->bindParam(3, $this->etiqueta);\n $query->bindParam(4, $this->claves);\n $query->bindParam(5, $this->descripcion);\n $query->bindParam(6, $this->prioridad);\n $query->execute();\n\n $this->connection->Close();\n }catch (PDOException $e){\n echo('Error Code: '.$e->getMessage());\n exit();\n }\n }\n }","public function getColumnLink(): HrefElement;","function col_item_name($row) \n {\n if ( !$this->is_downloading()) {\n return ' $row->courseid]) . '\">' . $row->item_name . '';\n } else {\n return $row->item_name;\n }\n }","protected function afterInserting()\n {\n }","public function ln()\n {\n $this->entries[] = '';\n }","static public function prepHeads()\n {\n self::$heads['row_number'] = '№ п/п';\n self::$heads['locomotive_name'] = 'Наименование';\n}","function hook_buffer_render_editlink($data)\n{\n\t$form = file_get_contents(PluginManager::$PLUGINS_PATH . '/buffer/fields.html');\n\t$posted = file_get_contents(PluginManager::$PLUGINS_PATH . '/buffer/posted.html');\n\t$html = isset($data['link']['buffer_update_ids']) ? $posted : $form;\n\n\t$data['edit_link_plugin'][] = $html;\n\n\treturn $data;\n}","protected function renderBrokenLinksTable() {}","function setTitlelink($v) {\n\t\t$this->set(\"titlelink\",$v);\n\t}","function redirectToSource($linkid) {\r\n\tglobal $wpdb;\r\n\t$wpdb->update(WP_BARDB_LINKS,array('link_behavior'=>1),array('id'=>$linkid),array('%d'),array('%d'));\r\n}","function applyShowWpBar($linkid) {\r\n\tglobal $wpdb;\r\n\t$wpdb->update(WP_BARDB_LINKS,array('link_behavior'=>0),array('id'=>$linkid),array('%d'),array('%d'));\r\n}","function forschungsatlas_admin_url() {\n global $pager_total_items;\n $destination = drupal_get_destination();\n\n drupal_set_title(t('Institutions with broken links'));\n\n $header = array();\n $header[] = array('data' => t('Institution'), 'field' => 'name', 'sort' => 'asc');\n $header[] = array('data' => t('City'), 'field' => 'city');\n $header[] = array('data' => t('Federal State'), 'field' => 'federalstate');\n $header[] = array('data' => t('URL'), 'field' => 'url');\n $header[] = array('data' => t('Updated'), 'field' => 'changed');\n $header[] = array('data' => t('Operation'));\n\n $query = db_select('forschungsatlas__tools_broken_links', 'urls')->extend('PagerDefault')->extend('TableSort');\n $query->join('forschungsatlas__institutions', 'i', 'urls.iid=i.iid');\n $query->join('forschungsatlas__cities', 'c', 'i.cid = c.cid');\n $query->join('forschungsatlas__federal_states', 'fs', 'i.fsid = fs.fsid');\n $query->fields('i', array('iid', 'name', 'url', 'changed'));\n $query->addField('c', 'name', 'city');\n $query->addField('fs', 'name', 'federalstate');\n $query->limit(FORSCHUNGSATLAS_PAGER)\n ->orderByHeader($header);\n $result = $query->execute();\n\n $rows = array();\n foreach ($result as $data) {\n $row = array();\n $row['data']['name'] = check_plain($data->name);\n $row['data']['city'] = check_plain($data->city);\n $row['data']['federalstate'] = $data->federalstate;\n $url = check_url($data->url);\n $row['data']['url'] = l($url, $url, array(\n 'attributes' => array(\n 'target'=>'blank',\n 'class' => 'forschungsatlas-institution-l-ext',\n )\n )\n );\n $row['data']['changed'] = format_date($data->changed, 'short');\n $operations = array();\n $operations['edit'] = array(\n 'title' => t('edit'),\n 'href' => FORSCHUNGSATLAS_CONFIG_PATH. '/institutions/institution/'. $data->iid .'/edit',\n 'query' => $destination,\n );\n $row['data']['operations'] = array(\n 'data' => array(\n '#theme' => 'links',\n '#links' => $operations,\n '#attributes' => array('class' => array('links', 'inline', 'nowrap')),\n ),\n );\n $rows[] = $row;\n } // foreach()\n $build['forschungsatlas_table'] = array(\n '#theme' => 'table',\n '#header' => $header,\n '#rows' => $rows,\n '#empty' => t('There are no institutions with broken links.'),\n '#attributes' => array('id' => 'forschungsatlas-table-url'),\n '#caption' => (!empty($pager_total_items[0]) ? format_plural($pager_total_items[0], '1 result', '@count results') : ''),\n );\n $build['forschungsatlas_pager'] = array(\n '#markup' => theme('pager'),\n );\n\n return $build;\n}","function drop()\n {\n if ($this->GET('sure')) {\n $this->table->drop_field($this->GET('field'));\n $this->table->write();\n $this->structure();\n return;\n }\n $this->displayHead();\n echo 'Do you really want to
    drop field `' . $this->GET('field') . '`?

    ';\n echo 'SELF . '?method=drop&table=' . $this->table->tablename() . '&field=' . $this->GET('field') . '&sure=1\">Yes | ';\n echo 'SELF . '?method=structure&table=' . $this->table->tablename() . '\">No';\n }","function format_task_link($row) {\n if (!identity_can(\"job-view\", $row)){\n return \"...\";\n }\n return format_link(\n url_textblock($row['task_page_name']),\n $row['task_title']);\n }","function renderFilterCreationLink() {\n\t\t$content = tslib_CObj::getSubpart($this->fileContent, '###NEWFILTER_LINK###');\n\n\t\tif (!isset($this->conf['newfilter_link.']['form_url.']['parameter'])) {\n\t\t\t$this->conf['newfilter_link.']['form_url.']['parameter'] = $GLOBALS['TSFE']->id;\n\t\t}\n\t\t$this->conf['newfilter_link.']['form_url.']['returnLast'] = 'url';\n\t\t$content = tslib_cObj::substituteMarker($content, '###FORM_URL###', $this->cObj->typolink('', $this->conf['newfilter_link.']['form_url.']));\n\n\t\treturn $content;\n\t}","function procMenuAdminDeleteButton()\n\t{\n\t\t$menu_srl = Context::get('menu_srl');\n\t\t$menu_item_srl = Context::get('menu_item_srl');\n\t\t$target = Context::get('target');\n\t\t$filename = Context::get('filename');\n\t\tFileHandler::removeFile($filename);\n\n\t\t$this->add('target', $target);\n\t}","function character_data($parser, $data) {\r\n if ( $this->make_link ) {\r\n print '' . $data . '';\r\n $this->make_link = false;\r\n } else {\r\n print $data;\r\n }\r\n }","public function column_rel($link)\n {\n }","public function displayColumn1()\r\n\t{\r\n\t\t?>\r\n\t\t\r\n\t\tdeleted) {\n return;\n }\n $child = $this->deleteMenuItem->child;\n $name = $this->name;\n if (!$name) { \n $name = 'UNNAMED';\n }\n $child->set_text('Delete Field : '. $name);\n $this->deleteMenuItem->show();\n \n }","function register_block_core_comment_edit_link()\n {\n }","function addContentTip($id,$name1){\n $sql=\"insert into noidungtipnote(name_nd1,id_tip)\n values('$name1','$id')\";\n execute($sql);\n }","public function GetWysiwygDownloadLink()\n {\n $sName = $this->GetName();\n $sName = str_replace(',', '', $sName);\n $sWysiwygDownloadLink = $this->id.',dl,'.$sName.',ico,kb';\n\n return $sWysiwygDownloadLink;\n }","function create(){\n // cls_hermes_plugin::cls_hermes_plugin($options); \nglobal $xoopsModuleConfig, $xoopsDB;\n\n //------------------------------------------- \n $decomodele = $this->name;\n $sql = \"('{$decomodele}', 'content','multiline',0,01,'12',''),\n ('{$decomodele}', 'type','list',0,02,'|css|html|text','');\";\n\n \n //--------------------------------------------------\n cls_decoration:: createModele($decomodele, $sql);\n //-------------------------------------------------- \n\n\n}","function LINK_save($lid, $old_lid, $cid, $categorydd, $url, $description, $title, $hits, $owner_id, $group_id, $perm_owner, $perm_group, $perm_members, $perm_anon, $type)\n{\n global $_CONF, $_GROUPS, $_TABLES, $_USER, $MESSAGE, $LANG_LINKS_ADMIN, $_LI_CONF;\n\n $retval = '';\n\n // Convert array values to numeric permission values\n if (is_array($perm_owner) OR is_array($perm_group) OR is_array($perm_members) OR is_array($perm_anon)) {\n list($perm_owner,$perm_group,$perm_members,$perm_anon) = SEC_getPermissionValues($perm_owner,$perm_group,$perm_members,$perm_anon);\n }\n\n // clean 'em up\n $description = DB_escapeString (COM_checkHTML (COM_checkWords (trim($description))));\n $title = DB_escapeString (COM_checkHTML (COM_checkWords (trim($title))));\n $cid = DB_escapeString (trim($cid));\n $url = DB_escapeString(trim($url));\n\n if (empty ($owner_id)) {\n // this is new link from admin, set default values\n $owner_id = $_USER['uid'];\n if (isset ($_GROUPS['Links Admin'])) {\n $group_id = $_GROUPS['Links Admin'];\n } else {\n $group_id = SEC_getFeatureGroup ('links.edit');\n }\n $perm_owner = 3;\n $perm_group = 2;\n $perm_members = 2;\n $perm_anon = 2;\n }\n\n $lid = COM_sanitizeID($lid);\n $old_lid = COM_sanitizeID($old_lid);\n if (empty($lid)) {\n if (empty($old_lid)) {\n $lid = COM_makeSid();\n } else {\n $lid = $old_lid;\n }\n }\n\n // check for link id change\n if (!empty($old_lid) && ($lid != $old_lid)) {\n // check if new lid is already in use\n if (DB_count($_TABLES['links'], 'lid', $lid) > 0) {\n // TBD: abort, display editor with all content intact again\n $lid = $old_lid; // for now ...\n }\n }\n\n $access = 0;\n $old_lid = DB_escapeString ($old_lid);\n if (DB_count ($_TABLES['links'], 'lid', $old_lid) > 0) {\n $result = DB_query (\"SELECT owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['links']} WHERE lid = '{$old_lid}'\");\n $A = DB_fetchArray ($result);\n $access = SEC_hasAccess ($A['owner_id'], $A['group_id'],\n $A['perm_owner'], $A['perm_group'], $A['perm_members'],\n $A['perm_anon']);\n } else {\n $access = SEC_hasAccess ($owner_id, $group_id, $perm_owner, $perm_group,\n $perm_members, $perm_anon);\n }\n if (($access < 3) || !SEC_inGroup ($group_id)) {\n $display .= COM_siteHeader ('menu', $MESSAGE[30]);\n $display .= COM_startBlock ($MESSAGE[30], '',\n COM_getBlockTemplate ('_msg_block', 'header'));\n $display .= $MESSAGE[31];\n $display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));\n $display .= COM_siteFooter ();\n COM_accessLog(\"User {$_USER['username']} tried to illegally submit or edit link $lid.\");\n echo $display;\n exit;\n } elseif (!empty($title) && !empty($description) && !empty($url)) {\n\n if ($categorydd != $LANG_LINKS_ADMIN[7] && !empty($categorydd)) {\n $cid = DB_escapeString ($categorydd);\n } else if ($categorydd != $LANG_LINKS_ADMIN[7]) {\n echo COM_refresh($_CONF['site_admin_url'] . '/plugins/links/index.php');\n }\n\n DB_delete ($_TABLES['linksubmission'], 'lid', $old_lid);\n DB_delete ($_TABLES['links'], 'lid', $old_lid);\n\n DB_save ($_TABLES['links'], 'lid,cid,url,description,title,date,hits,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon', \"'$lid','$cid','$url','$description','$title','\".$_CONF['_now']->toMySQL(true).\"','$hits',$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon\");\n\n if (empty($old_lid) || ($old_lid == $lid)) {\n PLG_itemSaved($lid, 'links');\n } else {\n PLG_itemSaved($lid, 'links', $old_lid);\n }\n\n // Get category for rdf check\n $category = DB_getItem ($_TABLES['linkcategories'],\"category\",\"cid='{$cid}'\");\n COM_rdfUpToDateCheck ('links', $category, $lid);\n $c = glFusion\\Cache::getInstance()->deleteItemsByTag('whatsnew');\n\n if ($type == 'submission') {\n return COM_refresh($_CONF['site_admin_url'] . '/moderation.php');\n } else {\n return PLG_afterSaveSwitch (\n $_LI_CONF['aftersave'],\n COM_buildURL (\"{$_CONF['site_url']}/links/portal.php?what=link&item=$lid\"),\n 'links',\n 2\n );\n }\n } else { // missing fields\n $retval .= COM_siteHeader('menu', $LANG_LINKS_ADMIN[1]);\n $retval .= COM_errorLog($LANG_LINKS_ADMIN[10],2);\n if (DB_count ($_TABLES['links'], 'lid', $old_lid) > 0) {\n $retval .= LINK_edit('edit', $old_lid);\n } else {\n $retval .= LINK_edit('edit', '');\n }\n $retval .= COM_siteFooter();\n\n return $retval;\n }\n}","private function writeUrlExternal($row1, $col1, $row2, $col2, $url): void\n {\n // Network drives are different. We will handle them separately\n // MS/Novell network drives and shares start with \\\\\n if (preg_match('[^external:\\\\\\\\]', $url)) {\n return;\n }\n\n $record = 0x01B8; // Record identifier\n\n // Strip URL type and change Unix dir separator to Dos style (if needed)\n //\n $url = (string) preg_replace(['/^external:/', '/\\//'], ['', '\\\\'], $url);\n\n // Determine if the link is relative or absolute:\n // relative if link contains no dir separator, \"somefile.xls\"\n // relative if link starts with up-dir, \"..\\..\\somefile.xls\"\n // otherwise, absolute\n\n $absolute = 0x00; // relative path\n if (preg_match('/^[A-Z]:/', $url)) {\n $absolute = 0x02; // absolute path on Windows, e.g. C:\\...\n }\n $link_type = 0x01 | $absolute;\n\n // Determine if the link contains a sheet reference and change some of the\n // parameters accordingly.\n // Split the dir name and sheet name (if it exists)\n $dir_long = $url;\n if (preg_match('/\\\\#/', $url)) {\n $link_type |= 0x08;\n }\n\n // Pack the link type\n $link_type = pack('V', $link_type);\n\n // Calculate the up-level dir count e.g.. (..\\..\\..\\ == 3)\n $up_count = preg_match_all('/\\\\.\\\\.\\\\\\\\/', $dir_long, $useless);\n $up_count = pack('v', $up_count);\n\n // Store the short dos dir name (null terminated)\n $dir_short = (string) preg_replace('/\\\\.\\\\.\\\\\\\\/', '', $dir_long) . \"\\0\";\n\n // Store the long dir name as a wchar string (non-null terminated)\n //$dir_long = $dir_long . \"\\0\";\n\n // Pack the lengths of the dir strings\n $dir_short_len = pack('V', strlen($dir_short));\n //$dir_long_len = pack('V', strlen($dir_long));\n $stream_len = pack('V', 0); //strlen($dir_long) + 0x06);\n\n // Pack the undocumented parts of the hyperlink stream\n $unknown1 = pack('H*', 'D0C9EA79F9BACE118C8200AA004BA90B02000000');\n $unknown2 = pack('H*', '0303000000000000C000000000000046');\n $unknown3 = pack('H*', 'FFFFADDE000000000000000000000000000000000000000');\n //$unknown4 = pack('v', 0x03);\n\n // Pack the main data stream\n $data = pack('vvvv', $row1, $row2, $col1, $col2) .\n $unknown1 .\n $link_type .\n $unknown2 .\n $up_count .\n $dir_short_len .\n $dir_short .\n $unknown3 .\n $stream_len; /*.\n $dir_long_len .\n $unknown4 .\n $dir_long .\n $sheet_len .\n $sheet ;*/\n\n // Pack the header data\n $length = strlen($data);\n $header = pack('vv', $record, $length);\n\n // Write the packed data\n $this->append($header . $data);\n }","function saveMetadata(){\n\t\t \n\t\t $db = $this->startDB();\n\t\t $metadataJSON = $this->generateJSON();\n\t\t \n\t\t $where = \"source_id = '\".$this->penelopeTabID.\"' \";\n\t\t $db->delete(\"export_tabs_meta\", $where);\n\t\t \n\t\t if(!$this->tableGroupID){\n\t\t\t\t$this->tableGroupID = false;\n\t\t }\n\t\t if(!$this->tablePage){\n\t\t\t\t$this->tablePage = false;\n\t\t }\n\t\t \n\t\t if($this->tablePage < 1){\n\t\t\t\tif(strstr($this->tableID, \"/\")){\n\t\t\t\t\t $tableEx = explode(\"/\", $this->tableID);\n\t\t\t\t\t $this->tablePage = $tableEx[1];\n\t\t\t\t\t $this->tableGroupID = $tableEx[0];\n\t\t\t\t}\n\t\t }\n\t\t if(strstr($this->tableGroupID, \"/\")){\n\t\t\t\t$tableEx = explode(\"/\", $this->tableGroupID);\n\t\t\t\t$this->tableGroupID = $tableEx[0];\n\t\t }\n\t\t \n\t\t $data = array(\t\"source_id\" => $this->penelopeTabID,\n\t\t\t\t\t\t\t\t\"tableID\" => $this->tableID,\n\t\t\t\t\t\t\t\t\"tableGroupID\" => $this->tableGroupID,\n\t\t\t\t\t\t\t\t\"page\" => $this->tablePage,\n\t\t\t\t\t\t\t\t\"title\" => $this->tableName,\n\t\t\t\t\t\t\t\t\"published\" => $this->published,\n\t\t\t\t\t\t\t\t\"pub_created\" => $this->pubCreated,\n\t\t\t\t\t\t\t\t\"pub_update\" => $this->pubUpdate,\n\t\t\t\t\t\t\t\t\"metadata\" => $metadataJSON\n\t\t\t\t\t\t );\n\t\t \n\t\t $db->insert(\"export_tabs_meta\", $data);\n\t }","function extra_tablenav( $which ) {\n if ( $which == \"top\" ){\n //The code that goes before the table is here\n echo \"

    Funny Quotes+ Ajouter une nouvelle citation

    \";\n }\n }","function insertPageClip()\n\t{\n\t\tglobal $ilCtrl, $ilUser;\n\t\t\n\t\tinclude_once(\"./Modules/LearningModule/classes/class.ilChapterHierarchyFormGUI.php\");\n\t\t\n\t\t$node_id = ilChapterHierarchyFormGUI::getPostNodeId();\n\t\t$first_child = ilChapterHierarchyFormGUI::getPostFirstChild();\n\t\t\n\t\tif (!$first_child)\t// insert after node id\n\t\t{\n\t\t\t$parent_id = $this->tree->getParentId($node_id);\n\t\t\t$target = $node_id;\n\t\t}\n\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t// insert as first child\n\t\t{\n\t\t\t$parent_id = $node_id;\n\t\t\t$target = IL_FIRST_NODE;\n\t\t}\n\n\t\t// cut and paste\n\t\t$pages = $ilUser->getClipboardObjects(\"pg\");\n\t\t$copied_nodes = array();\n\t\tforeach ($pages as $pg)\n\t\t{\n\t\t\t$cid = ilLMObject::pasteTree($this->content_object, $pg[\"id\"], $parent_id, $target,\n\t\t\t\t$pg[\"insert_time\"], $copied_nodes,\n\t\t\t\t(ilEditClipboard::getAction() == \"copy\"));\n\t\t\t$target = $cid;\n\t\t}\n\t\tilLMObject::updateInternalLinks($copied_nodes);\n\n\t\tif (ilEditClipboard::getAction() == \"cut\")\n\t\t{\n\t\t\t$ilUser->clipboardDeleteObjectsOfType(\"pg\");\n\t\t\t$ilUser->clipboardDeleteObjectsOfType(\"st\");\n\t\t\tilEditClipboard::clear();\n\t\t}\n\t\t\n\t\t$ilCtrl->redirect($this, \"view\");\n\t}","public function Inserted() {\n\t\t\t// Define sub menu selection\n\t\t\t$GLOBALS['menu']['items']['opt1_css'] = 'details_item_on';\n\t\t\t// Render view\n\t\t\tView::render('itemsInserted');\n \t\t}","function add($row) {\n\t\t//$y = 0.25 + $this->y * 1.5;\n\t\tif ($this->curLabel == 0) $this->blockOut('page');\n\t\t\n\t\t$this->blockOut('label');\n\t\t\t\n\t\t$short = new slURLShortener();\n\t\t\n\t\t$short->create(WWW_ROOT.\"/item/\".$this->ref.\"/\".$row[\"_KEY\"]);\n\t\t\n\t\t$url = $short->getShortenedURL();\n\n\t\t$qrFile = $this->file.\"-\".($this->imNum++).\".png\";\n\t\t\n\t\t$this->blockOutEnd(array($page, $label, $row));\n\t\t\n\t\t$this->curLabel ++;\n\t\tif ($this->curLabel > $this->labelConfig[\"labels-per-page\"]) {\n\t\t\t$this->blockOutEnd();\n\t\t\t$this->curLabel = 0;\n\t\t\t$this->curPage ++;\n\t\t}\n\t\t\n\t\t//QRcode::png($short->getTinyID(), $qrFile, 'L', 6, 2);\n\t\t\n\t\t//fputs($this->fp,$qrFile.\"\\n\");\n\t\t\n\t\t//$this->pdf->Image($qrFile, $x, $y, 1.5, 1.5, \"PNG\", $url);\n\t\t\t\t\n\t\t//$this->pdf->SetXY(1.5 + $x, $y + 0.1);\n\t\t\n\t\t/*$this->addText($row[\"_NAME\"]);\n\t\tif (isset($row[\"_UNIQUE\"]) && $row[\"_UNIQUE\"] && safeName($row[\"_UNIQUE\"]) != safeName($row[\"_NAME\"])) $this->addText($row[\"_UNIQUE\"]);\n\t\t$this->addText(\"REF: \".$GLOBALS[\"slCore\"]->db->refToNumber(str_replace(\"/\",\".\",$this->ref)).\".\".$row[\"_KEY\"]);\n\t\t$this->addText(WWW_ROOT.\"/sl/tiny?\".$short->id,8);\n\t\t\n\t\t$this->x ++;\n\t\tif ($this->x == 2) {\n\t\t\t$this->x = 0;\n\t\t\t$this->y ++;\n\t\t\tif ($this->y == 7) {\n\t\t\t\t$this->y = 0;\n\t\t\t\t$this->pdf->AddPage();\n\t\t\t}\n\t\t}*/\n\t}","public function finish_database_export() {\n $this->output('');\n }","public function storeFile()\n\t{\n\t\tif (!$this->blnIsModified)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$strFile = trim($this->strTop) . \"\\n\\n\";\n\t\t$strFile .= \"-- LESSON SEGMENT START --\\nCREATE TABLE `tl_cb_lessonsegment` (\\n\";\n\n\t\tforeach ($this->arrData as $k=>$v)\n\t\t{\n\t\t\t$strFile .= \" `$k` $v,\\n\";\n\t\t}\n\n\t\t$strFile .= \") ENGINE=MyISAM DEFAULT CHARSET=utf8;\\n-- LESSON SEGMENT STOP --\\n\\n\";\n\n\t\tif ($this->strBottom != '')\n\t\t{\n\t\t\t$strFile .= trim($this->strBottom) . \"\\n\\n\";\n\t\t}\n\n\t\t$objFile = new File('system/modules/course_builder/config/database.sql');\n\t\t$objFile->write($strFile);\n\t\t$objFile->close();\n\t}","private function bookmark()\r\n {\r\n \r\n }","private function getDocLink(DOMElement $column) {\n\t\t\n\t\t$anchors = $column->getElementsByTagName('a');\t\n\t\t$anchor = $anchors->item(0);\t\t\n\t\t\t\t\t\t\n\t\t$url = \"https://www.landtag.nrw.de\".$anchor->getAttribute('href');\t\t\t\n\t\t\t\t\n\t\t$this->official_record_nr = $anchor->nodeValue; \n\t\t\n\t\treturn $url;\n\t}","function filecabinet_drawer_insert($node) {\n db_query(\"INSERT INTO {org_drawers} (nid, vid, wnid, ouid, drawer, drawerstatus, drawerperm, notes, user) VALUES (%d, %d, %d, %d, '%s', '%s', '%s', '%s', %d)\",\n $node->nid,\n $node->vid,\n $node->wnid,\n $node->ouid,\n $node->drawer,\n $node->drawerstatus,\n $node->drawerperm,\n $node->notes,\n $node->uid);\n}","public function uploadlink() {\n $defaults = array();\n\n $defaults[\"straat\"] = \"straatnaam of de naam van de buurt\";\n $defaults[\"huisnummer\"] = \"huisnummer\";\n $defaults[\"maker\"] = \"maker\";\n $defaults[\"personen\"] = \"namen\";\n $defaults[\"datum\"] = \"datum of indicatie\";\n $defaults[\"titel\"] = \"titel\";\n $defaults[\"naam\"] = \"Je naam\";\n $defaults[\"email\"] = \"Je e-mailadres\";\n $defaults[\"tags\"] = \"\";\n\n $this->set('defaults', $defaults);\n }","function commcsv_tool() {\n\tadd_submenu_page('edit-comments.php', 'Export Commenters data into CSV', 'Export commenters&#39; contacts', 'manage_options', 'commcsv_page', 'commcsv_page' );\n}","function rest_output_link_header()\n {\n }","function writeUrl() {\n\n }","function makeUploadLink($row) {\n $result = 'http://commons.wikimedia.org/wiki/Commons:Upload';\n $result = 'http://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic';\n if ( $row['objectnaam']!='' ) {\n\tif ( $row['woonplaats']!='' ) {\n\t $description = $row['objectnaam'] . ', ' . $row['woonplaats'] . ' (rijksmonument ' . $row['objrijksnr'] . ')';\n\t} else {\n\t $description = $row['objectnaam'] . ' (rijksmonument ' . $row['objrijksnr'] . ')';\n\t}\n } else {\n\tif ( $row['woonplaats']!='' ) {\n\t if ( $row['adres']!='' ) {\n\t\t$description = 'Rijksmonument ' . $row['objrijksnr'] . ' (' . $row['adres'] . ' ' . $row['woonplaats'] . ')';\n\t } else {\n\t\t$description = 'Rijksmonument ' . $row['objrijksnr'] . ' (' . $row['woonplaats'] . ')';\t\n\t }\n\t} else {\n\t $description = 'Rijksmonument ' . $row['objrijksnr'];\n\t}\n }\n $wpDestFile = $description . '.jpg';\n $wpUploadDescription = '{{Information \\n';\n $wpUploadDescription = $wpUploadDescription . '|Description={{nl|1=' . $description . '}}\\n';\n $wpUploadDescription = $wpUploadDescription . '|Source={{own}}\\n';\n $wpUploadDescription = $wpUploadDescription . '|Date=~~~~~ (upload date)\\n';\n $wpUploadDescription = $wpUploadDescription . '|Author=~~~\\n';\n $wpUploadDescription = $wpUploadDescription . '|Permission=\\n';\n $wpUploadDescription = $wpUploadDescription . '|other_versions=\\n';\n $wpUploadDescription = $wpUploadDescription . '}}\\n';\n $wpUploadDescription = $wpUploadDescription . '{{Object location dec|' . $row['lat'] . '|' . $row['lon'] . '}}\\n';\n $wpUploadDescription = $wpUploadDescription . '\\n'; \n $wpUploadDescription = urlencode($wpUploadDescription);\n $wpUploadDescription = str_replace('%5Cn', '%0A', $wpUploadDescription); \n $result = $result . '&wpDestFile=' . urlencode($wpDestFile);\n $result = $result . '&wpUploadDescription=' . $wpUploadDescription;\n //$wpDestFile = '';\n //$wpUploadDescription = '';\n return $result;\n}","function mpp_Add_Admin_Link()\n{\n add_menu_page(\n 'Moses Post Piglatin page', // Title of the page\n 'Moses Post Piglatin', // Text to show on the menu link\n 'manage_options', // Capability requirement to see the link\n 'includes/mpp-post-piglatin-cp.php' // The 'slug' - file to display when clicking the link\n );\n}","function mmc_admin_bar( $wp_admin_bar ){\n\t$wp_admin_bar->remove_node('wp-logo');\n\n\t//add a \"help\" node\n\t$wp_admin_bar->add_node( array(\n\t\t'title' => 'Get Help',\n\t\t'href'\t=> 'http://google.com',\n\t\t'id' \t=> 'mmc-help',\n\t\t//'parent' => 'site-name',\n\t\t'meta' => array( 'target' => '_blank' ),\n\t) );\n}","function insertar($bd);","function makeLink($title,$open_text,$save_text,$base_path,$prefix=\"\") {\n\t\tglobal $modx;\n\t\t$placeholders = array(\n\t\t\t\"[+open_url+]\" => $this->buildURL(\"debug=open\",$modx->documentIdentifier,$prefix),\n\t\t\t\"[+curl+]\" => $_SERVER[\"REQUEST_URI\"],\n\t\t\t\"[+dbg_title+]\" => $title,\n\t\t\t\"[+dbg_icon_url+]\" => $base_path.'bug.png',\n\t\t\t\"[+save_url+]\" => $this->buildURL(\"debug=save\",$modx->documentIdentifier,$prefix),\n\t\t\t\"[+open_dbg_console+]\" => $open_text,\n\t\t\t\"[+save_dbg_console+]\" => $save_text,\n\t\t);\n\t\treturn str_replace( array_keys( $placeholders ), array_values( $placeholders ), $this->templates[\"links\"]);\n\t}","function deposit_tab_options_tab() \n {\n ?>
  • table->database->layout->window;\n $w->set_cursor($this->table->database->designer->pointers[GDK_HAND2]);\n //$this->startPos = $w->pointer;\n \n \n // modify this to start on left or right.?\n \n $this->startPos = $this->getStartPos();\n \n \n \n \n $this->nameDrag = true;\n $this->setGC();\n \n $this->lastEnd = false;\n gtk::timeout_add(50,array(&$this,'callbackDragMove'));\n \n }","function tablerow_close() {\n $this->doc .= DOKU_LF.DOKU_TAB.''.DOKU_LF;\n }"],"string":"[\n \"function showDelete($path)\\n\\t{\\n\\t\\t$this->table->deleteColumn = true;\\n\\t\\t$this->table->deletelink = $path;\\n\\t}\",\n \"protected function linkAdd() { return \\\"\\\"; }\",\n \"function addlinks(){\\n Vtiger_Link::addLink(0, 'HEADERSCRIPT', 'LSWYSIWYG', 'modules/LSWYSIWYG/resources/WYSIWYG.js','','','');\\n\\n\\t}\",\n \"public function column_url($link)\\n {\\n }\",\n \"function links_insert_head($flux) {\\r\\n\\t$links = links_configuration();\\r\\n\\r\\n\\t//Ouverture d'une nouvelle fenetre\\r\\n\\tif($links['window'] == 'on'){\\r\\n\\t\\t$flux .= ''. \\\"\\\\n\\\";\\r\\n\\t}\\r\\n\\treturn $flux;\\r\\n}\",\n \"public function setColumnLink($link){\\n $this->addVar('COL_LINK', $link);\\n }\",\n \"function column_inserted( $item ) {\\r\\n\\t\\tif ( !MLACore::$process_inserted_in ) {\\r\\n\\t\\t\\treturn __( 'Disabled', 'media-library-assistant' );\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t$value = '';\\r\\n\\t\\tforeach ( $item->mla_references['inserts'] as $file => $inserts ) {\\r\\n\\t\\t\\tif ( 'base' != $item->mla_references['inserted_option'] ) {\\r\\n\\t\\t\\t\\t$value .= sprintf( '%1$s
    ', $file );\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t/*\\r\\n\\t\\t\\t * Move parent to the top of the list\\r\\n\\t\\t\\t */\\r\\n\\t\\t\\tif ( isset( $inserts[ $item->post_parent ] ) ) {\\r\\n\\t\\t\\t\\t$parent = $inserts[ $item->post_parent ];\\r\\n\\t\\t\\t\\tunset( $inserts[ $item->post_parent ] );\\r\\n\\t\\t\\t\\tarray_unshift( $inserts, $parent );\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\tforeach ( $inserts as $insert ) {\\r\\n\\t\\t\\t\\t$status = self::_format_post_status( $insert->post_status );\\r\\n\\r\\n\\t\\t\\t\\tif ( $insert->ID == $item->post_parent ) {\\r\\n\\t\\t\\t\\t\\t$parent = ',
    ' . __( 'PARENT', 'media-library-assistant' );\\r\\n\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t$parent = '';\\r\\n\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t\\t$value .= sprintf( '%2$s (%3$s %4$s%5$s%6$s), ',\\r\\n\\t\\t\\t\\t/*%1$s*/ esc_url( add_query_arg( array('post' => $insert->ID, 'action' => 'edit'), 'post.php' ) ),\\r\\n\\t\\t\\t\\t/*%2$s*/ esc_attr( $insert->post_title ),\\r\\n\\t\\t\\t\\t/*%3$s*/ esc_attr( $insert->post_type ),\\r\\n\\t\\t\\t\\t/*%4$s*/ $insert->ID,\\r\\n\\t\\t\\t\\t/*%3$s*/ $status,\\r\\n\\t\\t\\t\\t/*%6$s*/ $parent ) . \\\"
    \\\\r\\\\n\\\";\\r\\n\\t\\t\\t} // foreach $insert\\r\\n\\t\\t} // foreach $file\\r\\n\\r\\n\\t\\treturn $value;\\r\\n\\t}\",\n \"function add_book_alias_to_dlts_books_page() {\\n $results = db_query('\\n SELECT \\n n.nid,\\n i.field_is_part_of_value\\n FROM {node} n\\n LEFT JOIN {field_data_field_sequence_number} s ON n.nid = s.entity_id\\n LEFT JOIN {field_data_field_is_part_of} i ON n.nid = i.entity_id\\n WHERE type = :type AND s.field_sequence_number_value = 1\\n ', array(':type' => 'dlts_book_page')); \\n\\n foreach ( $results as $key => $result ) {\\n drush_print('Inserting alias books/' . $result->field_is_part_of_value . ' to node/' . $result->nid );\\n db_insert('url_alias')->fields(\\n array(\\n 'source' => 'node/' . $result->nid,\\n 'alias' => 'books/' . $result->field_is_part_of_value,\\n 'language' => 'en',\\n )\\n )\\n ->execute();\\n \\n }\\n}\",\n \"public function onAfterWrite() {\\n if (!$this->URLPath) {\\n $this->URLPath = Utils::generateURLPath($this->Title, $this->ID);\\n $this->write();\\n }\\n\\n parent::onAfterWrite();\\n }\",\n \"public function after_insert() {}\",\n \"function section_linkadmin (){\\n section_links_links (true);\\n}\",\n \"function setMargemDireita($iNumCol = 4) {\\n\\n $sComando = chr(27) . chr(81) . \\\" $iNumCol\\\";\\n parent::addComando($sComando);\\n }\",\n \"function link_database()\\n{\\n\\t$sql=\\\"CREATE TABLE IF NOT EXISTS `link` (\\n `id` int(11) NOT NULL AUTO_INCREMENT,\\n `link` varchar(100) COLLATE utf8_unicode_ci NOT NULL,\\n `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\\n PRIMARY KEY (`id`)\\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\\\";\\n\\tlz::h('db')->install($sql);\\n}\",\n \"public function &draw_report_link_panel($link_or_import, $tag, $label, $preselectedvalue = false)\\n {\\n $text = '';\\n $type = \\\"TEXTFIELD\\\";\\n $translateoptions = false;\\n\\n $striptag = preg_replace(\\\"/ .*/\\\", \\\"\\\", $tag);\\n $showtag = preg_replace(\\\"/ /\\\", \\\"_\\\", $tag);\\n $subtitle = \\\"\\\";\\n if (preg_match(\\\"/ /\\\", $tag)) {\\n $subtitle = preg_replace(\\\"/.* /\\\", \\\" \\\", $tag);\\n }\\n\\n if (array_key_exists($striptag, $this->field_display)) {\\n $arval = $this->field_display[$striptag];\\n if (array_key_exists(\\\"Title\\\", $arval)) {\\n $title = $arval[\\\"Title\\\"] . $subtitle;\\n }\\n\\n if (array_key_exists(\\\"Type\\\", $arval)) {\\n $type = $arval[\\\"Type\\\"];\\n }\\n\\n if (array_key_exists(\\\"XlateOptions\\\", $arval)) {\\n $translateoptions = $arval[\\\"XlateOptions\\\"];\\n }\\n\\n if (array_key_exists(\\\"EditMode\\\", $arval)) {\\n $edit_mode = $arval[\\\"EditMode\\\"];\\n }\\n\\n if (array_key_exists(\\\"Values\\\", $arval)) {\\n $tagvals = $arval[\\\"Values\\\"];\\n }\\n\\n }\\n\\n $default = ReporticoApp::getDefaultConfig($striptag, \\\".\\\");\\n\\n $helppage = \\\"importlink\\\";\\n if ($helppage) {\\n if ($this->query->url_path_to_assets) {\\n $helpimg = $this->query->url_path_to_assets . \\\"/images/help.png\\\";\\n $text .= 'helpPath($helppage, $striptag) . '\\\">';\\n $text .= '\\\"tab\\\"';\\n $text .= '&nbsp;';\\n } else {\\n $helpimg = ReporticoUtility::findBestUrlInIncludePath(\\\"images/help.png\\\");\\n $dr = ReporticoUtility::getReporticoUrlPath();\\n $text .= 'helpPath($helppage, $striptag) . '\\\">';\\n $text .= '\\\"tab\\\"';\\n $text .= '&nbsp;';\\n }\\n }\\n\\n // Show options options to import or link\\n $listarr = array();\\n if ($link_or_import == \\\"IMPORT\\\" || $link_or_import == \\\"LINKANDIMPORT\\\") {\\n $listarr[\\\"import\\\"] = ReporticoLang::templateXlate(\\\"IMPORTREPORT\\\");\\n }\\n\\n if ($link_or_import == \\\"LINK\\\" || $link_or_import == \\\"LINKANDIMPORT\\\") {\\n $listarr[\\\"linkto\\\"] = ReporticoLang::templateXlate(\\\"MAKELINKTOREPORT\\\");\\n }\\n\\n $text .= $this->drawArrayDropdown(\\\"linkorimport_\\\" . $this->id, $listarr, $this->query->reportlink_or_import, false, false, true);\\n\\n $text .= '&nbsp;&nbsp;';\\n\\n // Draw report names we can link to\\n $text .= $this->drawSelectFileList($this->query->reports_path, \\\"/.*\\\\.xml/\\\", false, $preselectedvalue, true, false, \\\"reportlink\\\");\\n $text .= 'query->getBootstrapStyle('design_ok') . 'reportico-maintain-button reportico-submit\\\" style=\\\"margin-right: 20px\\\" type=\\\"submit\\\" name=\\\"submit_' . $this->id . '_REPORTLINK\\\" value=\\\"' . ReporticoLang::templateXlate(\\\"OK\\\") . '\\\">';\\n\\n if ($this->query->reportlink_report) {\\n // Draw report criteria items we can link to\\n $q = ReporticoUtility::loadExistingReport($this->query->reportlink_report, $this->query->projects_folder);\\n if (!$q) {\\n trigger_error(ReporticoLang::templateXlate(\\\"NOOPENLINK\\\") . $this->query->reportlink_report, E_USER_NOTICE);\\n } else if (!$q->lookup_queries || count($q->lookup_queries) == 0) {\\n trigger_error(ReporticoLang::templateXlate(\\\"NOCRITLINK\\\") . $this->query->reportlink_report, E_USER_NOTICE);\\n } else {\\n if ($link_or_import == \\\"LINK\\\") {\\n $text .= ReporticoLang::templateXlate(\\\"MAKELINKTOREPORTITEM\\\");\\n } else {\\n $text .= ReporticoLang::templateXlate(\\\"IMPORTREPORT\\\");\\n }\\n\\n $text .= \\\"&nbsp;\\\";\\n $listarr = array();\\n $listarr[\\\"ALLITEMS\\\"] = ReporticoLang::templateXlate(\\\"ALLITEMS\\\");\\n if ($tag == \\\"mainquercrit\\\") {\\n $lq = $q->lookup_queries;\\n foreach ($lq as $k => $v) {\\n $listarr[$v->query_name] = $v->query_name;\\n }\\n\\n } else if ($tag == \\\"mainquerassg\\\") {\\n $lq = $q->assignment;\\n foreach ($lq as $k => $v) {\\n if (strlen($v->expression) > 30) {\\n $listarr[$k] = $v->query_name . \\\" = \\\" . substr($v->expression, 0, 30) . \\\"...\\\";\\n } else {\\n $listarr[$k] = $v->query_name . \\\" = \\\" . $v->expression;\\n }\\n\\n }\\n } else if ($tag == \\\"mainqueroutppghd\\\") {\\n $lq = $q->pageHeaders;\\n foreach ($lq as $k => $v) {\\n if (strlen($v->text) > 30) {\\n $listarr[$k] = $k . \\\" = \\\" . substr($v->text, 0, 30) . \\\"...\\\";\\n } else {\\n $listarr[$k] = $k . \\\" = \\\" . $v->text;\\n }\\n\\n }\\n } else if ($tag == \\\"mainqueroutppgft\\\") {\\n $lq = $q->pageFooters;\\n foreach ($lq as $k => $v) {\\n if (strlen($v->text) > 30) {\\n $listarr[$k] = $k . \\\" = \\\" . substr($v->text, 0, 30) . \\\"...\\\";\\n } else {\\n $listarr[$k] = $k . \\\" = \\\" . $v->text;\\n }\\n\\n }\\n }\\n\\n $text .= $this->drawArrayDropdown(\\\"reportlinkitem_\\\" . $this->id, $listarr, false, false, false, true);\\n $text .= 'query->getBootstrapStyle('design_ok') . 'reportico-maintain-button reportico-submit\\\" style=\\\"margin-right: 20px\\\" type=\\\"submit\\\" name=\\\"submit_' . $this->id . '_REPORTLINKITEM\\\" value=\\\"' . ReporticoLang::templateXlate(\\\"OK\\\") . '\\\">';\\n }\\n }\\n\\n $text .= '';\\n //$text .= '';\\n\\n return $text;\\n }\",\n \"function onAfterShowDescription(&$row)\\n {\\n\\n echo '

    onAfterShowDescription

    '\\n . JText::_('PLG_JEA_OWNER_NAME'). ' : '\\n . $row->owner_name . '';\\n }\",\n \"public function onRsformBackendAfterShowFormEditTabsTab(): void\\n\\t{\\n\\t\\t?>\\n\\t\\t
  • \\n\\t\\t\\t'\\n\\t\\t\\t\\t. Text::_(\\n\\t\\t\\t\\t\\t'PLG_RSFP_JDIDEAL_LABEL'\\n\\t\\t\\t\\t) . ''\\n\\t\\t\\t);\\n\\t\\t\\t?>\\n\\t\\t
  • \\n\\t\\t' . n;\\n\\t\\t\\t}\\n\\t\\t\\tif ($abl_droploader_prefs['customStylesheet'] != '') {\\n\\t\\t\\t\\t$css .= '' . n;\\n\\t\\t\\t}\\n\\t\\t\\tif ($css == '') {\\n\\t\\t\\t\\t$css = '' . n;\\n\\t\\t\\t}\\n\\t\\t\\t$article_image_field_ids = '\\\"' . implode('\\\", \\\"', explode(',', $abl_droploader_prefs['articleImageFields'])) . '\\\"';\\n\\t\\t\\t$script = '\\n\\n\\n' . n;\\n\\t\\t\\techo $css . $script;\\n\\t\\t}\\n\\n\\t}\",\n \"function abl_droploader_image_ui($event, $step) {\\n $content = '';\\n return $content.n;\\n }\",\n \"function setUrlLink(){\\n if( $this->id == 0 ) return;\\n $url = $this->aFields[\\\"url\\\"]->toString();\\n if( $url == \\\"\\\" ) return;\\n $url = strip_tags( preg_replace( \\\"/[\\\\\\\"']/\\\", \\\"\\\", $url ) );\\n if( !$this->aFields[\\\"url\\\"]->editable ) $this->aFields[\\\"url\\\"]->display = false;\\n $this->aFields[\\\"url_link\\\"]->display = true;\\n $this->aFields[\\\"url_link\\\"]->value = \\\"\\\".$url.\\\"\\\";\\n }\",\n \"function print_record_positions2($record) {\\n ?>\\n \\n \\n htmlspecialchars($record[\\\"id\\\"]), 'id'=>htmlspecialchars($record[\\\"id\\\"]))) ?>\\\">Delete \\n \\n db->query(<<db->prefix}neatline_exhibits\\n ADD COLUMN accessible_url TEXT NULL;\\nSQL\\n);\\n }\",\n \"function XXLINK_edit($action, $lid = '')\\n{\\n global $_CONF, $_GROUPS, $_TABLES, $_USER, $_LI_CONF,\\n $LANG_LINKS_ADMIN, $LANG_ACCESS, $LANG_ADMIN, $MESSAGE;\\n\\n USES_lib_admin();\\n\\n $retval = '';\\n $editFlag = false;\\n\\n switch ($action) {\\n case 'edit':\\n $blocktitle = $LANG_LINKS_ADMIN[1]; // Link Editor\\n $saveoption = $LANG_ADMIN['save']; // Save\\n break;\\n case 'moderate':\\n $blocktitle = $LANG_LINKS_ADMIN[65]; // Moderate Link\\n $saveoption = $LANG_ADMIN['moderate']; // Save & Approve\\n break;\\n }\\n\\n $link_templates = new Template($_CONF['path'] . 'plugins/links/templates/admin/');\\n $link_templates->set_file('editor','linkeditor.thtml');\\n\\n $link_templates->set_var('lang_pagetitle', $LANG_LINKS_ADMIN[28]);\\n $link_templates->set_var('lang_link_list', $LANG_LINKS_ADMIN[53]);\\n $link_templates->set_var('lang_new_link', $LANG_LINKS_ADMIN[51]);\\n $link_templates->set_var('lang_validate_links', $LANG_LINKS_ADMIN[26]);\\n $link_templates->set_var('lang_list_categories', $LANG_LINKS_ADMIN[50]);\\n $link_templates->set_var('lang_new_category', $LANG_LINKS_ADMIN[52]);\\n $link_templates->set_var('lang_admin_home', $LANG_ADMIN['admin_home']);\\n $link_templates->set_var('instructions', $LANG_LINKS_ADMIN[29]);\\n\\n if ($action <> 'moderate' AND !empty($lid)) {\\n $result = DB_query(\\\"SELECT * FROM {$_TABLES['links']} WHERE lid ='$lid'\\\");\\n if (DB_numRows($result) !== 1) {\\n $msg = COM_startBlock ($LANG_LINKS_ADMIN[24], '',\\n COM_getBlockTemplate ('_msg_block', 'header'));\\n $msg .= $LANG_LINKS_ADMIN[25];\\n $msg .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));\\n return $msg;\\n }\\n $A = DB_fetchArray($result);\\n $access = SEC_hasAccess($A['owner_id'],$A['group_id'],$A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']);\\n if ($access == 0 OR $access == 2) {\\n $retval .= COM_startBlock($LANG_LINKS_ADMIN[16], '',\\n COM_getBlockTemplate ('_msg_block', 'header'));\\n $retval .= $LANG_LINKS_ADMIN[17];\\n $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));\\n COM_accessLog(\\\"User {$_USER['username']} tried to illegally submit or edit link $lid.\\\");\\n return $retval;\\n }\\n $editFlag = true;\\n } else {\\n if ($action == 'moderate') {\\n $result = DB_query (\\\"SELECT * FROM {$_TABLES['linksubmission']} WHERE lid = '$lid'\\\");\\n $A = DB_fetchArray($result);\\n } else {\\n $A['lid'] = COM_makesid();\\n $A['cid'] = '';\\n $A['url'] = '';\\n $A['description'] = '';\\n $A['title']= '';\\n $A['owner_id'] = $_USER['uid'];\\n }\\n $A['hits'] = 0;\\n if (isset ($_GROUPS['Links Admin'])) {\\n $A['group_id'] = $_GROUPS['Links Admin'];\\n } else {\\n $A['group_id'] = SEC_getFeatureGroup ('links.edit');\\n }\\n SEC_setDefaultPermissions ($A, $_LI_CONF['default_permissions']);\\n $access = 3;\\n }\\n $retval .= COM_startBlock ($blocktitle, '',\\n COM_getBlockTemplate ('_admin_block', 'header'));\\n\\n if ( $editFlag ) {\\n $lang_create_or_edit = $LANG_ADMIN['edit'];\\n } else {\\n $lang_create_or_edit = $LANG_LINKS_ADMIN[51];\\n }\\n $menu_arr = array(\\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/index.php',\\n 'text' => $LANG_LINKS_ADMIN[53]),\\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/index.php?edit=x',\\n 'text' => $lang_create_or_edit,'active'=>true),\\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/category.php',\\n 'text' => $LANG_LINKS_ADMIN[50]),\\n array('url' => $_CONF['site_admin_url'] . '/plugins/links/index.php?validate=enabled',\\n 'text' => $LANG_LINKS_ADMIN[26]),\\n array('url' => $_CONF['site_admin_url'],\\n 'text' => $LANG_ADMIN['admin_home'])\\n );\\n\\n\\n\\n $retval .= ADMIN_createMenu($menu_arr, $LANG_LINKS_ADMIN[66], plugin_geticon_links());\\n\\n $link_templates->set_var('link_id', $A['lid']);\\n if (!empty($lid) && SEC_hasRights('links.edit')) {\\n $delbutton = '';\\n $jsconfirm = ' onclick=\\\"return confirm(\\\\'' . $MESSAGE[76] . '\\\\');\\\"';\\n $link_templates->set_var ('delete_option',\\n sprintf ($delbutton, $jsconfirm));\\n $link_templates->set_var ('delete_option_no_confirmation',\\n sprintf ($delbutton, ''));\\n $link_templates->set_var ('delete_confirm_msg',$MESSAGE[76]);\\n if ($action == 'moderate') {\\n $link_templates->set_var('submission_option',\\n '');\\n }\\n }\\n $link_templates->set_var('lang_linktitle', $LANG_LINKS_ADMIN[3]);\\n $link_templates->set_var('link_title',\\n htmlspecialchars ($A['title']));\\n $link_templates->set_var('lang_linkid', $LANG_LINKS_ADMIN[2]);\\n $link_templates->set_var('lang_linkurl', $LANG_LINKS_ADMIN[4]);\\n $link_templates->set_var('max_url_length', 255);\\n $link_templates->set_var('link_url', $A['url']);\\n $link_templates->set_var('lang_includehttp', $LANG_LINKS_ADMIN[6]);\\n $link_templates->set_var('lang_category', $LANG_LINKS_ADMIN[5]);\\n $othercategory = links_select_box (3,$A['cid']);\\n $link_templates->set_var('category_options', $othercategory);\\n $link_templates->set_var('lang_ifotherspecify', $LANG_LINKS_ADMIN[20]);\\n $link_templates->set_var('category', $othercategory);\\n $link_templates->set_var('lang_linkhits', $LANG_LINKS_ADMIN[8]);\\n $link_templates->set_var('link_hits', $A['hits']);\\n $link_templates->set_var('lang_linkdescription', $LANG_LINKS_ADMIN[9]);\\n $link_templates->set_var('link_description', $A['description']);\\n $link_templates->set_var('lang_save', $saveoption);\\n $link_templates->set_var('lang_cancel', $LANG_ADMIN['cancel']);\\n\\n // user access info\\n $link_templates->set_var('lang_accessrights', $LANG_ACCESS['accessrights']);\\n $link_templates->set_var('lang_owner', $LANG_ACCESS['owner']);\\n $ownername = COM_getDisplayName ($A['owner_id']);\\n $link_templates->set_var('owner_username', DB_getItem($_TABLES['users'],\\n 'username', \\\"uid = {$A['owner_id']}\\\"));\\n $link_templates->set_var('owner_name', $ownername);\\n $link_templates->set_var('owner', $ownername);\\n $link_templates->set_var('link_ownerid', $A['owner_id']);\\n $link_templates->set_var('lang_group', $LANG_ACCESS['group']);\\n $link_templates->set_var('group_dropdown',\\n SEC_getGroupDropdown ($A['group_id'], $access));\\n $link_templates->set_var('lang_permissions', $LANG_ACCESS['permissions']);\\n $link_templates->set_var('lang_permissionskey', $LANG_ACCESS['permissionskey']);\\n $link_templates->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']));\\n $link_templates->set_var('lang_lockmsg', $LANG_ACCESS['permmsg']);\\n $link_templates->set_var('gltoken_name', CSRF_TOKEN);\\n $link_templates->set_var('gltoken', SEC_createToken());\\n $link_templates->parse('output', 'editor');\\n $retval .= $link_templates->finish($link_templates->get_var('output'));\\n\\n $retval .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer'));\\n\\n return $retval;\\n}\",\n \"public function column_name($link)\\n {\\n }\",\n \"protected function write_pre_td(&$cur)\\r\\n\\t{\\r\\n\\t\\t?>\\r\\n\\t\\tobjectname;?>_pic_\\\">\\r\\n\\t\\t\\tobjectname;?>('');\\\">\\r\\n\\t\\t\\t\\twebpath.$cur[1]; ?>\\\" alt=\\\"\\\" title=\\\"\\\"picstyle))\\r\\n\\t\\t\\t\\t\\techo \\\" class=\\\\\\\"\\\".$this->picstyle.\\\"\\\\\\\"\\\";\\r\\n\\t\\t\\t\\t?> />\\r\\n\\t\\t\\r\\n\\t\\teditmode == 1){ ?>\\r\\n\\t\\t\\t
    \\r\\n\\t\\t\\tobjectname;?>\\\" class=\\\"ccms_headeditlink\\\" href=\\\"pictureshow.php?id=myid;?>&amp;picname=&amp;picprename=\\\" >Delete\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\tquery($sqlLinkPerm);\\n $dbf->next_record();\\n \\n $rows = $dbf->rowdata();\\n if($permType != $rows['permission_term']) {\\n return;\\n } else {\\n \\n $theHyperlink = \\\"$linkCaption\\\";\\n return $theHyperlink;\\n }\\n}\",\n \"function genLink () {\\n\\t\\t\\t$db_host=\\\"127.0.0.1\\\";\\n\\t\\t\\t$db_nombre=\\\"gallery\\\";\\n\\t\\t\\t$db_user=\\\"gallery\\\";\\n\\t\\t\\t$db_pass=\\\"gallery\\\";\\n\\t\\t\\t$link=mysql_connect($db_host, $db_user, $db_pass) or die (\\\"Error conectando a la base de datos.\\\");\\n\\t\\t\\tmysql_select_db($db_nombre ,$link) or die(\\\"Error seleccionando la base de datos.\\\");\\n\\t\\t\\t$this->link = $link;\\n\\t\\t}\",\n \"function formattingLoad($row){\\n //formattingDATE bannerSlide_update_date\\n $data = $row->get_value(\\\"bannerSlide_update_date\\\");\\n $row->set_value(\\\"bannerSlide_update_date\\\",date(\\\"d/m/Y - H:i:s\\\",strtotime($data)));\\n\\t\\t\\t\\t \\n //formatting EDITOR\\n $data = $row->get_value(\\\"bannerSlide_id\\\");\\n $row->set_value(\\\"bannerSlide_editor\\\",\\\"Sửa chi tiết\\\");\\n\\t}\",\n \"function deleted_open() {\\n $this->doc .= '';\\n }\",\n \"function newItemAfter()\\r\\n\\t{\\r\\n\\t\\t$this->content_obj->newItemAfter();\\r\\n\\t\\t$_SESSION[\\\"il_pg_error\\\"] = $this->pg_obj->update();\\r\\n\\t\\t$this->ctrl->returnToParent($this, \\\"jump\\\".$this->hier_id);\\r\\n\\t}\",\n \"function efTableEditLinks( &$parser, &$text, &$strip_state ){\\n\\t$l = new TableEditOMPLinker($text);\\n\\t$text = $l->execute();\\n\\treturn true;\\n}\",\n \"function adabs_link( $wp_admin_bar ) {\\n $args = array(\\n 'id' => '',\\n 'title' => '',\\n 'href' => 'https://adabs.ch',\\n 'meta' => array( 'target' => '_blank', 'rel' => 'noopener' ),\\n 'parent' => 'top-secondary'\\n );\\n\\t$wp_admin_bar->add_node( $args );\\n}\",\n \"public function insert_page_link($data){\\n $this->db->insert($data,'links');\\n\\n }\",\n \"function log_viewer_add_menu_item() {\\n\\techo '
  • Log Viewer
  • ';\\n}\",\n \"private function writeUrlInternal($row1, $col1, $row2, $col2, $url): void\\n {\\n $record = 0x01B8; // Record identifier\\n\\n // Strip URL type\\n $url = (string) preg_replace('/^internal:/', '', $url);\\n\\n // Pack the undocumented parts of the hyperlink stream\\n $unknown1 = pack('H*', 'D0C9EA79F9BACE118C8200AA004BA90B02000000');\\n\\n // Pack the option flags\\n $options = pack('V', 0x08);\\n\\n // Convert the URL type and to a null terminated wchar string\\n $url .= \\\"\\\\0\\\";\\n\\n // character count\\n $url_len = StringHelper::countCharacters($url);\\n $url_len = pack('V', $url_len);\\n\\n $url = StringHelper::convertEncoding($url, 'UTF-16LE', 'UTF-8');\\n\\n // Calculate the data length\\n $length = 0x24 + strlen($url);\\n\\n // Pack the header data\\n $header = pack('vv', $record, $length);\\n $data = pack('vvvv', $row1, $row2, $col1, $col2);\\n\\n // Write the packed data\\n $this->append($header . $data . $unknown1 . $options . $url_len . $url);\\n }\",\n \"function main()\\t{\\n\\n\\t\\t$content = '';\\n\\n\\t\\t$content .= '
    Change table tx_realurl_redirects:
    \\n\\t\\tRemove the field url_hash from the table tx_realurl_redirects,
    because it\\\\'s not needed anymore and it\\\\'s replaced by the standard TCA field uid as soon as you do
    the DB updates by the extension manager in the main view of this extension.

    ALTER TABLE tx_realurl_redirects DROP url_hash
    ALTER TABLE tx_realurl_redirects ADD uid int(11) auto_increment PRIMARY KEY';\\n\\t\\t\\n\\t\\t$import = t3lib_div::_GP('update');\\n\\n\\t\\tif ($import == 'Update') {\\n\\t\\t\\t$result = $this->updateRedirectsTable();\\n\\t\\t\\t$content2 .= '

    ';\\n\\t\\t\\t$content2 .= '

    Result: '.$result.'

    ';\\n\\t\\t\\t$content2 .= '

    Done. Please accept the update suggestions of the extension manager now!

    ';\\n\\t\\t} else {\\n\\t\\t\\t$content2 = '';\\n\\t\\t\\t$content2 .= '
    ';\\n\\t\\t\\t$content2 .= '

    ';\\n\\t\\t\\t$content2 .= '';\\n\\t\\t\\t$content2 .= '
    ';\\n\\t\\t} \\n\\n\\t\\treturn $content.$content2;\\n\\t}\",\n \"function donotuse_dumpredlinks(PDO $dbh_wiki)\\n\\t{\\n\\t\\t$dbh_wiki->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);\\n\\t\\t$dumppath = self::getDumpPath();\\n\\n\\t\\t// Get article and template (10) redlinks\\n\\t\\t$sql = 'SELECT pl_title, COUNT(*) AS pagecnt, SUM(TRUNCATE(pl_from_namespace / 10, 0)) FROM pagelinks\\n\\t\\t\\tLEFT JOIN page ON page_title=pl_title AND page_namespace=pl_namespace\\n\\t\\t\\tWHERE pl_namespace = 0 AND pl_from_namespace IN (0,10)\\n\\t\\t\\tAND page_namespace IS NULL\\n\\t\\t\\tGROUP BY pl_title\\n\\t\\t\\tHAVING pagecnt > 9';\\n\\n\\t\\t$hndl = fopen($dumppath, 'w');\\n\\t\\t$sth = $dbh_wiki->query($sql);\\n\\t\\t$sth->setFetchMode(PDO::FETCH_NUM);\\n\\n\\t\\twhile ($row = $sth->fetch()) {\\n\\t\\t\\tfwrite($hndl, \\\"{$row[0]}\\\\t{$row[1]}\\\\t{$row[2]}\\\\n\\\");\\n\\t\\t}\\n\\n\\t\\t$sth->closeCursor();\\n\\t\\tfclose($hndl);\\n\\t\\t$dbh_wiki->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);\\n\\t}\",\n \"function edit_table($table_name){\\n\\t\\t\\t$link = 'index.php?module=extends&view=tables&task=edit&tablename='.\\t$table_name;\\n\\t\\t\\treturn 'Sửa bảng';\\t\\t\\n\\t\\t}\",\n \"public function afterInsert() {\\n\\t\\t\\tparent::afterInsert();\\n\\t\\t\\t//$this->pos = 1;\\n\\t\\t\\t$this->updatePos(1);\\n\\t\\t}\",\n \"function tInserting($table,$field,$parentTable){\\r\\n $Xs = superGet('*',$table,\\\"Lang_ID = 1\\\");\\r\\n foreach ($Xs as $x) {\\r\\n echo '
  • '.$x[$field].'
  • ';\\r\\n } \\r\\n }\",\n \"function echoDocumentLink ($row)\\r{\\r\\t// name and the event ids that need to be highlighted.\\r\\r\\t$file = $row[3];\\r\\t$id1 = $row[6];\\r\\t$id2 = $row[7];\\r\\t$file = $row['tmlfile'];\\r\\t$id1 = $row['eid1'];\\r\\t$id2 = $row['eid2'];\\r\\techo \\\"\\\";\\r\\techo \\\"\\\\n\\\";\\r}\",\n \"function define_link(){\\n\\t\\t\\t$link = \\\"javascript:set_values(\\\";\\n\\t\\t\\t#print_r($this->column);\\n\\t\\t\\tfor($i=0;$icolumn);$i++){\\n\\t\\t\\t\\t$link .= \\\"'%$i',\\\";\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\t$link = substr($link,0,strlen($link)-1);\\n\\t\\t\\t$link .= \\\")\\\";\\n\\t\\t\\treturn $link;\\n\\t\\t}\",\n \"function onBeforeShowDescription(&$row)\\n {\\n echo '

    onBeforeShowDescription

    '\\n . JText::_('PLG_JEA_OWNER_NAME'). ' : '\\n . $row->owner_name . '';\\n }\",\n \"function insertar_link(){\\t\\n\\t\\t$this->accion=\\\"Datos del Nuevo Enlace\\\";\\n\\t\\tif (isset($_POST['envio']) && $_POST['envio']==\\\"Guardar\\\"){\\n\\t\\t\\t$this->asignar_valores();\\n\\t\\t\\t$sql=\\\"SELECT * FROM link WHERE nombre_cat='999999'\\\";\\n\\t\\t\\t$consulta=mysql_query($sql) or die(mysql_error());\\n\\t\\t\\tif($resultado=mysql_fetch_array($consulta)){\\n\\t\\t\\t\\t$this->mensaje=1;\\n\\t\\t\\t}else{\\n\\t\\t\\t\\t$sql=\\\"INSERT INTO link VALUES ('', '$this->tipo', '$this->nombre', '$this->etiqueta', '$this->claves', '$this->descripcion', '$this->prioridad','$this->icono')\\\";\\n\\t\\t\\t\\t$consulta=mysql_query($sql) or die(mysql_error());\\n\\t\\t\\t\\theader(\\\"location:/admin/link/\\\");\\n\\t\\t\\t\\texit();\\n\\t\\t\\t}\\n\\t\\t}\\t\\t\\t\\n\\t}\",\n \"function pnAddressBook_admin_menu() {\\r\\n\\r\\n \\t$settingsURL\\t= pnModURL(__PNADDRESSBOOK__,'admin','modifyconfig');\\r\\n\\t$categoryURL\\t= pnModURL(__PNADDRESSBOOK__,'admin','categories');\\r\\n\\t$labelURL\\t\\t= pnModURL(__PNADDRESSBOOK__,'admin','labels');\\r\\n\\t$prefixURL\\t\\t= pnModURL(__PNADDRESSBOOK__,'admin','prefixes');\\r\\n\\t$customURL\\t\\t= pnModURL(__PNADDRESSBOOK__,'admin','customfields');\\r\\n//START - gehunter\\r\\n\\t$exportURL\\t\\t= pnModURL(__PNADDRESSBOOK__,'user','export');\\r\\n//END - gehunter\\r\\n\\r\\n\\t$settingsTXT\\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_CONFIG);\\r\\n\\t$categoryTXT\\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_pnAB_CATEGORY);\\r\\n\\t$labelTXT\\t\\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_LABEL);\\r\\n\\t$prefixTXT\\t\\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_PREFIX);\\r\\n\\t$customTXT\\t\\t=pnVarPrepHTMLDisplay(_pnAB_EDIT_CUSTOM);\\r\\n//START - gehunter\\r\\n\\t$exportTXT\\t\\t=pnVarPrepHTMLDisplay(_pnAB_ADMIN_EXPORT);\\r\\n//END - gehunter\\r\\n\\r\\n\\t$output = new pnHTML();\\r\\n\\t$output->SetInputMode(_PNH_VERBATIMINPUT);\\r\\n\\t$output->Title(pnVarPrepHTMLDisplay(_PNADDRESSBOOK));\\r\\n\\t$output->Text('
    ');\\r\\n\\t$output->Text(pnAddressBook_themetable('start',2));\\r\\n\\t$output->Text('
    ');\\r\\n\\t$output->URL($settingsURL,$settingsTXT);\\r\\n\\t$output->Text(' | ');\\r\\n $output->URL($categoryURL,$categoryTXT);\\r\\n\\t$output->Text(' | ');\\r\\n\\t$output->URL($labelURL,$labelTXT);\\r\\n\\t$output->Text(' | ');\\r\\n\\t$output->URL($prefixURL,$prefixTXT);\\r\\n\\t$output->Text(' | ');\\r\\n\\t$output->URL($customURL,$customTXT);\\r\\n\\t$output->Text(' | ');\\r\\n\\t$output->URL($exportURL,$exportTXT);\\r\\n\\t$output->Text('
    ');\\r\\n\\t$output->Text(pnAddressBook_themetable('end',2));\\r\\n\\t$output->Text('
    ');\\r\\n\\t$output->Linebreak(1);\\r\\n\\r\\n // Return the output that has been generated by this function\\r\\n return $output->GetOutput();\\r\\n}\",\n \"function newFormBookmark()\\n\\t{\\n\\t\\t$form = $this->initFormBookmark();\\n\\t\\t$html1 = $form->getHTML();\\n\\t\\t$html2 = '';\\n\\t\\tif (!$_REQUEST[\\\"bm_link\\\"])\\n\\t\\t{\\n\\t\\t\\t$form2 = $this->initImportBookmarksForm();\\n\\t\\t\\t$html2 = \\\"
    \\\" . $form2->getHTML();\\n\\t\\t}\\n\\t\\t$this->tpl->setVariable(\\\"ADM_CONTENT\\\", $html1.$html2);\\n\\t}\",\n \"function adabs_link($wp_admin_bar)\\n{\\n $args = array(\\n 'id' => '',\\n 'title' => '',\\n 'href' => 'https://adabs.ch',\\n 'meta' => array('target' => '_blank', 'rel' => 'noopener'),\\n 'parent' => 'top-secondary'\\n );\\n $wp_admin_bar->add_node($args);\\n}\",\n \"function wp_regenthumbs_stamina_custom_column($column_name, $id) {\\r\\n if( $column_name == 'regenthumbs-stamina' ) {\\r\\n \\t\\tprintf(\\\"
    %s\\\",$id, __('Regen. Thumbnail', 'regenthumbs-stamina'));\\r\\n }\\r\\n}\",\n \"function db_DisplayerINSERT($myServer, $myDB, $TableName){\\n\\n\\t// Prepare the database\\n\\t$myServer->query('USE '.$myDB);\\n\\t$sql = 'SELECT * FROM `'.$myDB.'`.`'.$TableName.'`';\\n\\t$req = $myServer->query($sql);\\n\\n\\t\\n\\t// Affichage de l'entête du tableau\\n\\techo '

    Table Displayer :

    ';\\n\\techo \\\"\\\";\\n\\techo \\\"\\\";\\n\\t$tNames= $myServer->query(\\\"DESCRIBE \\\".$TableName);\\n\\t$table_fields = $tNames->fetchAll(PDO::FETCH_COLUMN);\\n\\t$colNb = $req->columnCount();\\n\\tfor ($i=0; $i < $colNb; $i++)\\n\\t{\\n\\techo \\\"\\\";\\n\\t }\\n\\t//AJOUT TABLE INSERT : Titre correspondant aux boutons d'action\\n\\techo \\\"\\\";\\n\\techo \\\"\\\";\\n\\n\\n\\t// affichage des datas\\n\\t$tValues = $myServer->query(\\\"SELECT * FROM \\\".$myDB.\\\".\\\".$TableName);\\n\\n\\twhile ($datas = $tValues->fetch(PDO::FETCH_NUM))\\n\\t{\\n\\t\\techo \\\"\\\"; // nouvelle ligne du tableau\\n\\n\\t\\tfor ($i=0; $i < $colNb; $i++){ // Toutes les lignes de datas\\n\\t\\t\\techo \\\"\\\";\\n\\t\\t}\\n\\t\\t//AJOUT TABLE INSERT : btns correspondant à la ligne de donnees;\\n\\t\\techo '';\\n\\t\\techo \\\"\\\"; // fin de la ligne du tableau\\n\\t}\\n\\t// terminer la table\\n\\techo \\\"
    \\\".$table_fields[$i].\\\"MOD/SUPRR
    \\\".$datas[$i].\\\"';\\n\\t\\t\\techo \\\"\\\";\\n\\t\\t\\techo '';\\n\\t\\t\\t\\techo '';\\n\\t\\t\\t\\techo '';\\n\\t\\t\\techo '';\\n\\t\\t\\techo \\\"
    ';\\n\\t\\t\\t\\t\\tcreateBtnMod($myServer, $myDB, $TableName, $datas, $colNb);\\n\\t\\t\\t\\techo '';\\n\\t\\t\\t\\tcreateBtnSuprr($myServer, $myDB, $TableName, $datas, $colNb);\\n\\t\\t\\t\\techo '
    \\\";\\n\\t\\techo '
    \\\";\\n\\t\\n\\t\\n}\",\n \"function insert()\\n\\t{\\n\\t\\t$this->edit(true);\\n\\t}\",\n \"protected function doInsert() {\\n return '';\\n }\",\n \"function link_origin_file($fname, $title=\\\"\\\"){\\n if (!$title==\\\"\\\") $title.=\\\"
    \\\";\\n $title.=basename($fname);\\n $ageString=file_age_string($fname);\\n $ageStyle=file_age_style($fname);\\n\\n echo \\\"
    \\\";\\n echo html_button_copy($fname, True, \\\"copy\\\");\\n echo \\\"\\\";\\n echo basename($fname);\\n echo \\\" $ageString\\\";\\n echo \\\"
    \\\";\\n}\",\n \"function insertar_link(){\\n $this->accion=\\\"Nuevo Link\\\";\\n if (isset($_POST['envio']) && $_POST['envio']==\\\"Guardar\\\"){\\n header(\\\"location:/admin/link/\\\");\\n\\n $this->asignar_valores();\\n $sql=\\\"INSERT INTO link (tipo_cat, nombre_cat, etiqueta_cat, claves_cat, descripcion_cat, prioridad_cat)\\n\\t\\t\\t\\t\\t\\tVALUES (?, ?, ?, ?, ?, ?)\\\";\\n\\n try{\\n $query = $this->connection->prepare($sql);\\n $query->bindParam(1, $this->tipo);\\n $query->bindParam(2, $this->nombre);\\n $query->bindParam(3, $this->etiqueta);\\n $query->bindParam(4, $this->claves);\\n $query->bindParam(5, $this->descripcion);\\n $query->bindParam(6, $this->prioridad);\\n $query->execute();\\n\\n $this->connection->Close();\\n }catch (PDOException $e){\\n echo('Error Code: '.$e->getMessage());\\n exit();\\n }\\n }\\n }\",\n \"public function getColumnLink(): HrefElement;\",\n \"function col_item_name($row) \\n {\\n if ( !$this->is_downloading()) {\\n return ' $row->courseid]) . '\\\">' . $row->item_name . '';\\n } else {\\n return $row->item_name;\\n }\\n }\",\n \"protected function afterInserting()\\n {\\n }\",\n \"public function ln()\\n {\\n $this->entries[] = '';\\n }\",\n \"static public function prepHeads()\\n {\\n self::$heads['row_number'] = '№ п/п';\\n self::$heads['locomotive_name'] = 'Наименование';\\n}\",\n \"function hook_buffer_render_editlink($data)\\n{\\n\\t$form = file_get_contents(PluginManager::$PLUGINS_PATH . '/buffer/fields.html');\\n\\t$posted = file_get_contents(PluginManager::$PLUGINS_PATH . '/buffer/posted.html');\\n\\t$html = isset($data['link']['buffer_update_ids']) ? $posted : $form;\\n\\n\\t$data['edit_link_plugin'][] = $html;\\n\\n\\treturn $data;\\n}\",\n \"protected function renderBrokenLinksTable() {}\",\n \"function setTitlelink($v) {\\n\\t\\t$this->set(\\\"titlelink\\\",$v);\\n\\t}\",\n \"function redirectToSource($linkid) {\\r\\n\\tglobal $wpdb;\\r\\n\\t$wpdb->update(WP_BARDB_LINKS,array('link_behavior'=>1),array('id'=>$linkid),array('%d'),array('%d'));\\r\\n}\",\n \"function applyShowWpBar($linkid) {\\r\\n\\tglobal $wpdb;\\r\\n\\t$wpdb->update(WP_BARDB_LINKS,array('link_behavior'=>0),array('id'=>$linkid),array('%d'),array('%d'));\\r\\n}\",\n \"function forschungsatlas_admin_url() {\\n global $pager_total_items;\\n $destination = drupal_get_destination();\\n\\n drupal_set_title(t('Institutions with broken links'));\\n\\n $header = array();\\n $header[] = array('data' => t('Institution'), 'field' => 'name', 'sort' => 'asc');\\n $header[] = array('data' => t('City'), 'field' => 'city');\\n $header[] = array('data' => t('Federal State'), 'field' => 'federalstate');\\n $header[] = array('data' => t('URL'), 'field' => 'url');\\n $header[] = array('data' => t('Updated'), 'field' => 'changed');\\n $header[] = array('data' => t('Operation'));\\n\\n $query = db_select('forschungsatlas__tools_broken_links', 'urls')->extend('PagerDefault')->extend('TableSort');\\n $query->join('forschungsatlas__institutions', 'i', 'urls.iid=i.iid');\\n $query->join('forschungsatlas__cities', 'c', 'i.cid = c.cid');\\n $query->join('forschungsatlas__federal_states', 'fs', 'i.fsid = fs.fsid');\\n $query->fields('i', array('iid', 'name', 'url', 'changed'));\\n $query->addField('c', 'name', 'city');\\n $query->addField('fs', 'name', 'federalstate');\\n $query->limit(FORSCHUNGSATLAS_PAGER)\\n ->orderByHeader($header);\\n $result = $query->execute();\\n\\n $rows = array();\\n foreach ($result as $data) {\\n $row = array();\\n $row['data']['name'] = check_plain($data->name);\\n $row['data']['city'] = check_plain($data->city);\\n $row['data']['federalstate'] = $data->federalstate;\\n $url = check_url($data->url);\\n $row['data']['url'] = l($url, $url, array(\\n 'attributes' => array(\\n 'target'=>'blank',\\n 'class' => 'forschungsatlas-institution-l-ext',\\n )\\n )\\n );\\n $row['data']['changed'] = format_date($data->changed, 'short');\\n $operations = array();\\n $operations['edit'] = array(\\n 'title' => t('edit'),\\n 'href' => FORSCHUNGSATLAS_CONFIG_PATH. '/institutions/institution/'. $data->iid .'/edit',\\n 'query' => $destination,\\n );\\n $row['data']['operations'] = array(\\n 'data' => array(\\n '#theme' => 'links',\\n '#links' => $operations,\\n '#attributes' => array('class' => array('links', 'inline', 'nowrap')),\\n ),\\n );\\n $rows[] = $row;\\n } // foreach()\\n $build['forschungsatlas_table'] = array(\\n '#theme' => 'table',\\n '#header' => $header,\\n '#rows' => $rows,\\n '#empty' => t('There are no institutions with broken links.'),\\n '#attributes' => array('id' => 'forschungsatlas-table-url'),\\n '#caption' => (!empty($pager_total_items[0]) ? format_plural($pager_total_items[0], '1 result', '@count results') : ''),\\n );\\n $build['forschungsatlas_pager'] = array(\\n '#markup' => theme('pager'),\\n );\\n\\n return $build;\\n}\",\n \"function drop()\\n {\\n if ($this->GET('sure')) {\\n $this->table->drop_field($this->GET('field'));\\n $this->table->write();\\n $this->structure();\\n return;\\n }\\n $this->displayHead();\\n echo 'Do you really want to
    drop field `' . $this->GET('field') . '`?

    ';\\n echo 'SELF . '?method=drop&table=' . $this->table->tablename() . '&field=' . $this->GET('field') . '&sure=1\\\">Yes | ';\\n echo 'SELF . '?method=structure&table=' . $this->table->tablename() . '\\\">No';\\n }\",\n \"function format_task_link($row) {\\n if (!identity_can(\\\"job-view\\\", $row)){\\n return \\\"...\\\";\\n }\\n return format_link(\\n url_textblock($row['task_page_name']),\\n $row['task_title']);\\n }\",\n \"function renderFilterCreationLink() {\\n\\t\\t$content = tslib_CObj::getSubpart($this->fileContent, '###NEWFILTER_LINK###');\\n\\n\\t\\tif (!isset($this->conf['newfilter_link.']['form_url.']['parameter'])) {\\n\\t\\t\\t$this->conf['newfilter_link.']['form_url.']['parameter'] = $GLOBALS['TSFE']->id;\\n\\t\\t}\\n\\t\\t$this->conf['newfilter_link.']['form_url.']['returnLast'] = 'url';\\n\\t\\t$content = tslib_cObj::substituteMarker($content, '###FORM_URL###', $this->cObj->typolink('', $this->conf['newfilter_link.']['form_url.']));\\n\\n\\t\\treturn $content;\\n\\t}\",\n \"function procMenuAdminDeleteButton()\\n\\t{\\n\\t\\t$menu_srl = Context::get('menu_srl');\\n\\t\\t$menu_item_srl = Context::get('menu_item_srl');\\n\\t\\t$target = Context::get('target');\\n\\t\\t$filename = Context::get('filename');\\n\\t\\tFileHandler::removeFile($filename);\\n\\n\\t\\t$this->add('target', $target);\\n\\t}\",\n \"function character_data($parser, $data) {\\r\\n if ( $this->make_link ) {\\r\\n print '' . $data . '';\\r\\n $this->make_link = false;\\r\\n } else {\\r\\n print $data;\\r\\n }\\r\\n }\",\n \"public function column_rel($link)\\n {\\n }\",\n \"public function displayColumn1()\\r\\n\\t{\\r\\n\\t\\t?>\\r\\n\\t\\t\\r\\n\\t\\tdeleted) {\\n return;\\n }\\n $child = $this->deleteMenuItem->child;\\n $name = $this->name;\\n if (!$name) { \\n $name = 'UNNAMED';\\n }\\n $child->set_text('Delete Field : '. $name);\\n $this->deleteMenuItem->show();\\n \\n }\",\n \"function register_block_core_comment_edit_link()\\n {\\n }\",\n \"function addContentTip($id,$name1){\\n $sql=\\\"insert into noidungtipnote(name_nd1,id_tip)\\n values('$name1','$id')\\\";\\n execute($sql);\\n }\",\n \"public function GetWysiwygDownloadLink()\\n {\\n $sName = $this->GetName();\\n $sName = str_replace(',', '', $sName);\\n $sWysiwygDownloadLink = $this->id.',dl,'.$sName.',ico,kb';\\n\\n return $sWysiwygDownloadLink;\\n }\",\n \"function create(){\\n // cls_hermes_plugin::cls_hermes_plugin($options); \\nglobal $xoopsModuleConfig, $xoopsDB;\\n\\n //------------------------------------------- \\n $decomodele = $this->name;\\n $sql = \\\"('{$decomodele}', 'content','multiline',0,01,'12',''),\\n ('{$decomodele}', 'type','list',0,02,'|css|html|text','');\\\";\\n\\n \\n //--------------------------------------------------\\n cls_decoration:: createModele($decomodele, $sql);\\n //-------------------------------------------------- \\n\\n\\n}\",\n \"function LINK_save($lid, $old_lid, $cid, $categorydd, $url, $description, $title, $hits, $owner_id, $group_id, $perm_owner, $perm_group, $perm_members, $perm_anon, $type)\\n{\\n global $_CONF, $_GROUPS, $_TABLES, $_USER, $MESSAGE, $LANG_LINKS_ADMIN, $_LI_CONF;\\n\\n $retval = '';\\n\\n // Convert array values to numeric permission values\\n if (is_array($perm_owner) OR is_array($perm_group) OR is_array($perm_members) OR is_array($perm_anon)) {\\n list($perm_owner,$perm_group,$perm_members,$perm_anon) = SEC_getPermissionValues($perm_owner,$perm_group,$perm_members,$perm_anon);\\n }\\n\\n // clean 'em up\\n $description = DB_escapeString (COM_checkHTML (COM_checkWords (trim($description))));\\n $title = DB_escapeString (COM_checkHTML (COM_checkWords (trim($title))));\\n $cid = DB_escapeString (trim($cid));\\n $url = DB_escapeString(trim($url));\\n\\n if (empty ($owner_id)) {\\n // this is new link from admin, set default values\\n $owner_id = $_USER['uid'];\\n if (isset ($_GROUPS['Links Admin'])) {\\n $group_id = $_GROUPS['Links Admin'];\\n } else {\\n $group_id = SEC_getFeatureGroup ('links.edit');\\n }\\n $perm_owner = 3;\\n $perm_group = 2;\\n $perm_members = 2;\\n $perm_anon = 2;\\n }\\n\\n $lid = COM_sanitizeID($lid);\\n $old_lid = COM_sanitizeID($old_lid);\\n if (empty($lid)) {\\n if (empty($old_lid)) {\\n $lid = COM_makeSid();\\n } else {\\n $lid = $old_lid;\\n }\\n }\\n\\n // check for link id change\\n if (!empty($old_lid) && ($lid != $old_lid)) {\\n // check if new lid is already in use\\n if (DB_count($_TABLES['links'], 'lid', $lid) > 0) {\\n // TBD: abort, display editor with all content intact again\\n $lid = $old_lid; // for now ...\\n }\\n }\\n\\n $access = 0;\\n $old_lid = DB_escapeString ($old_lid);\\n if (DB_count ($_TABLES['links'], 'lid', $old_lid) > 0) {\\n $result = DB_query (\\\"SELECT owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['links']} WHERE lid = '{$old_lid}'\\\");\\n $A = DB_fetchArray ($result);\\n $access = SEC_hasAccess ($A['owner_id'], $A['group_id'],\\n $A['perm_owner'], $A['perm_group'], $A['perm_members'],\\n $A['perm_anon']);\\n } else {\\n $access = SEC_hasAccess ($owner_id, $group_id, $perm_owner, $perm_group,\\n $perm_members, $perm_anon);\\n }\\n if (($access < 3) || !SEC_inGroup ($group_id)) {\\n $display .= COM_siteHeader ('menu', $MESSAGE[30]);\\n $display .= COM_startBlock ($MESSAGE[30], '',\\n COM_getBlockTemplate ('_msg_block', 'header'));\\n $display .= $MESSAGE[31];\\n $display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));\\n $display .= COM_siteFooter ();\\n COM_accessLog(\\\"User {$_USER['username']} tried to illegally submit or edit link $lid.\\\");\\n echo $display;\\n exit;\\n } elseif (!empty($title) && !empty($description) && !empty($url)) {\\n\\n if ($categorydd != $LANG_LINKS_ADMIN[7] && !empty($categorydd)) {\\n $cid = DB_escapeString ($categorydd);\\n } else if ($categorydd != $LANG_LINKS_ADMIN[7]) {\\n echo COM_refresh($_CONF['site_admin_url'] . '/plugins/links/index.php');\\n }\\n\\n DB_delete ($_TABLES['linksubmission'], 'lid', $old_lid);\\n DB_delete ($_TABLES['links'], 'lid', $old_lid);\\n\\n DB_save ($_TABLES['links'], 'lid,cid,url,description,title,date,hits,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon', \\\"'$lid','$cid','$url','$description','$title','\\\".$_CONF['_now']->toMySQL(true).\\\"','$hits',$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon\\\");\\n\\n if (empty($old_lid) || ($old_lid == $lid)) {\\n PLG_itemSaved($lid, 'links');\\n } else {\\n PLG_itemSaved($lid, 'links', $old_lid);\\n }\\n\\n // Get category for rdf check\\n $category = DB_getItem ($_TABLES['linkcategories'],\\\"category\\\",\\\"cid='{$cid}'\\\");\\n COM_rdfUpToDateCheck ('links', $category, $lid);\\n $c = glFusion\\\\Cache::getInstance()->deleteItemsByTag('whatsnew');\\n\\n if ($type == 'submission') {\\n return COM_refresh($_CONF['site_admin_url'] . '/moderation.php');\\n } else {\\n return PLG_afterSaveSwitch (\\n $_LI_CONF['aftersave'],\\n COM_buildURL (\\\"{$_CONF['site_url']}/links/portal.php?what=link&item=$lid\\\"),\\n 'links',\\n 2\\n );\\n }\\n } else { // missing fields\\n $retval .= COM_siteHeader('menu', $LANG_LINKS_ADMIN[1]);\\n $retval .= COM_errorLog($LANG_LINKS_ADMIN[10],2);\\n if (DB_count ($_TABLES['links'], 'lid', $old_lid) > 0) {\\n $retval .= LINK_edit('edit', $old_lid);\\n } else {\\n $retval .= LINK_edit('edit', '');\\n }\\n $retval .= COM_siteFooter();\\n\\n return $retval;\\n }\\n}\",\n \"private function writeUrlExternal($row1, $col1, $row2, $col2, $url): void\\n {\\n // Network drives are different. We will handle them separately\\n // MS/Novell network drives and shares start with \\\\\\\\\\n if (preg_match('[^external:\\\\\\\\\\\\\\\\]', $url)) {\\n return;\\n }\\n\\n $record = 0x01B8; // Record identifier\\n\\n // Strip URL type and change Unix dir separator to Dos style (if needed)\\n //\\n $url = (string) preg_replace(['/^external:/', '/\\\\//'], ['', '\\\\\\\\'], $url);\\n\\n // Determine if the link is relative or absolute:\\n // relative if link contains no dir separator, \\\"somefile.xls\\\"\\n // relative if link starts with up-dir, \\\"..\\\\..\\\\somefile.xls\\\"\\n // otherwise, absolute\\n\\n $absolute = 0x00; // relative path\\n if (preg_match('/^[A-Z]:/', $url)) {\\n $absolute = 0x02; // absolute path on Windows, e.g. C:\\\\...\\n }\\n $link_type = 0x01 | $absolute;\\n\\n // Determine if the link contains a sheet reference and change some of the\\n // parameters accordingly.\\n // Split the dir name and sheet name (if it exists)\\n $dir_long = $url;\\n if (preg_match('/\\\\\\\\#/', $url)) {\\n $link_type |= 0x08;\\n }\\n\\n // Pack the link type\\n $link_type = pack('V', $link_type);\\n\\n // Calculate the up-level dir count e.g.. (..\\\\..\\\\..\\\\ == 3)\\n $up_count = preg_match_all('/\\\\\\\\.\\\\\\\\.\\\\\\\\\\\\\\\\/', $dir_long, $useless);\\n $up_count = pack('v', $up_count);\\n\\n // Store the short dos dir name (null terminated)\\n $dir_short = (string) preg_replace('/\\\\\\\\.\\\\\\\\.\\\\\\\\\\\\\\\\/', '', $dir_long) . \\\"\\\\0\\\";\\n\\n // Store the long dir name as a wchar string (non-null terminated)\\n //$dir_long = $dir_long . \\\"\\\\0\\\";\\n\\n // Pack the lengths of the dir strings\\n $dir_short_len = pack('V', strlen($dir_short));\\n //$dir_long_len = pack('V', strlen($dir_long));\\n $stream_len = pack('V', 0); //strlen($dir_long) + 0x06);\\n\\n // Pack the undocumented parts of the hyperlink stream\\n $unknown1 = pack('H*', 'D0C9EA79F9BACE118C8200AA004BA90B02000000');\\n $unknown2 = pack('H*', '0303000000000000C000000000000046');\\n $unknown3 = pack('H*', 'FFFFADDE000000000000000000000000000000000000000');\\n //$unknown4 = pack('v', 0x03);\\n\\n // Pack the main data stream\\n $data = pack('vvvv', $row1, $row2, $col1, $col2) .\\n $unknown1 .\\n $link_type .\\n $unknown2 .\\n $up_count .\\n $dir_short_len .\\n $dir_short .\\n $unknown3 .\\n $stream_len; /*.\\n $dir_long_len .\\n $unknown4 .\\n $dir_long .\\n $sheet_len .\\n $sheet ;*/\\n\\n // Pack the header data\\n $length = strlen($data);\\n $header = pack('vv', $record, $length);\\n\\n // Write the packed data\\n $this->append($header . $data);\\n }\",\n \"function saveMetadata(){\\n\\t\\t \\n\\t\\t $db = $this->startDB();\\n\\t\\t $metadataJSON = $this->generateJSON();\\n\\t\\t \\n\\t\\t $where = \\\"source_id = '\\\".$this->penelopeTabID.\\\"' \\\";\\n\\t\\t $db->delete(\\\"export_tabs_meta\\\", $where);\\n\\t\\t \\n\\t\\t if(!$this->tableGroupID){\\n\\t\\t\\t\\t$this->tableGroupID = false;\\n\\t\\t }\\n\\t\\t if(!$this->tablePage){\\n\\t\\t\\t\\t$this->tablePage = false;\\n\\t\\t }\\n\\t\\t \\n\\t\\t if($this->tablePage < 1){\\n\\t\\t\\t\\tif(strstr($this->tableID, \\\"/\\\")){\\n\\t\\t\\t\\t\\t $tableEx = explode(\\\"/\\\", $this->tableID);\\n\\t\\t\\t\\t\\t $this->tablePage = $tableEx[1];\\n\\t\\t\\t\\t\\t $this->tableGroupID = $tableEx[0];\\n\\t\\t\\t\\t}\\n\\t\\t }\\n\\t\\t if(strstr($this->tableGroupID, \\\"/\\\")){\\n\\t\\t\\t\\t$tableEx = explode(\\\"/\\\", $this->tableGroupID);\\n\\t\\t\\t\\t$this->tableGroupID = $tableEx[0];\\n\\t\\t }\\n\\t\\t \\n\\t\\t $data = array(\\t\\\"source_id\\\" => $this->penelopeTabID,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"tableID\\\" => $this->tableID,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"tableGroupID\\\" => $this->tableGroupID,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"page\\\" => $this->tablePage,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"title\\\" => $this->tableName,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"published\\\" => $this->published,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"pub_created\\\" => $this->pubCreated,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"pub_update\\\" => $this->pubUpdate,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\\"metadata\\\" => $metadataJSON\\n\\t\\t\\t\\t\\t\\t );\\n\\t\\t \\n\\t\\t $db->insert(\\\"export_tabs_meta\\\", $data);\\n\\t }\",\n \"function extra_tablenav( $which ) {\\n if ( $which == \\\"top\\\" ){\\n //The code that goes before the table is here\\n echo \\\"

    Funny Quotes+ Ajouter une nouvelle citation

    \\\";\\n }\\n }\",\n \"function insertPageClip()\\n\\t{\\n\\t\\tglobal $ilCtrl, $ilUser;\\n\\t\\t\\n\\t\\tinclude_once(\\\"./Modules/LearningModule/classes/class.ilChapterHierarchyFormGUI.php\\\");\\n\\t\\t\\n\\t\\t$node_id = ilChapterHierarchyFormGUI::getPostNodeId();\\n\\t\\t$first_child = ilChapterHierarchyFormGUI::getPostFirstChild();\\n\\t\\t\\n\\t\\tif (!$first_child)\\t// insert after node id\\n\\t\\t{\\n\\t\\t\\t$parent_id = $this->tree->getParentId($node_id);\\n\\t\\t\\t$target = $node_id;\\n\\t\\t}\\n\\t\\telse\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// insert as first child\\n\\t\\t{\\n\\t\\t\\t$parent_id = $node_id;\\n\\t\\t\\t$target = IL_FIRST_NODE;\\n\\t\\t}\\n\\n\\t\\t// cut and paste\\n\\t\\t$pages = $ilUser->getClipboardObjects(\\\"pg\\\");\\n\\t\\t$copied_nodes = array();\\n\\t\\tforeach ($pages as $pg)\\n\\t\\t{\\n\\t\\t\\t$cid = ilLMObject::pasteTree($this->content_object, $pg[\\\"id\\\"], $parent_id, $target,\\n\\t\\t\\t\\t$pg[\\\"insert_time\\\"], $copied_nodes,\\n\\t\\t\\t\\t(ilEditClipboard::getAction() == \\\"copy\\\"));\\n\\t\\t\\t$target = $cid;\\n\\t\\t}\\n\\t\\tilLMObject::updateInternalLinks($copied_nodes);\\n\\n\\t\\tif (ilEditClipboard::getAction() == \\\"cut\\\")\\n\\t\\t{\\n\\t\\t\\t$ilUser->clipboardDeleteObjectsOfType(\\\"pg\\\");\\n\\t\\t\\t$ilUser->clipboardDeleteObjectsOfType(\\\"st\\\");\\n\\t\\t\\tilEditClipboard::clear();\\n\\t\\t}\\n\\t\\t\\n\\t\\t$ilCtrl->redirect($this, \\\"view\\\");\\n\\t}\",\n \"public function Inserted() {\\n\\t\\t\\t// Define sub menu selection\\n\\t\\t\\t$GLOBALS['menu']['items']['opt1_css'] = 'details_item_on';\\n\\t\\t\\t// Render view\\n\\t\\t\\tView::render('itemsInserted');\\n \\t\\t}\",\n \"function add($row) {\\n\\t\\t//$y = 0.25 + $this->y * 1.5;\\n\\t\\tif ($this->curLabel == 0) $this->blockOut('page');\\n\\t\\t\\n\\t\\t$this->blockOut('label');\\n\\t\\t\\t\\n\\t\\t$short = new slURLShortener();\\n\\t\\t\\n\\t\\t$short->create(WWW_ROOT.\\\"/item/\\\".$this->ref.\\\"/\\\".$row[\\\"_KEY\\\"]);\\n\\t\\t\\n\\t\\t$url = $short->getShortenedURL();\\n\\n\\t\\t$qrFile = $this->file.\\\"-\\\".($this->imNum++).\\\".png\\\";\\n\\t\\t\\n\\t\\t$this->blockOutEnd(array($page, $label, $row));\\n\\t\\t\\n\\t\\t$this->curLabel ++;\\n\\t\\tif ($this->curLabel > $this->labelConfig[\\\"labels-per-page\\\"]) {\\n\\t\\t\\t$this->blockOutEnd();\\n\\t\\t\\t$this->curLabel = 0;\\n\\t\\t\\t$this->curPage ++;\\n\\t\\t}\\n\\t\\t\\n\\t\\t//QRcode::png($short->getTinyID(), $qrFile, 'L', 6, 2);\\n\\t\\t\\n\\t\\t//fputs($this->fp,$qrFile.\\\"\\\\n\\\");\\n\\t\\t\\n\\t\\t//$this->pdf->Image($qrFile, $x, $y, 1.5, 1.5, \\\"PNG\\\", $url);\\n\\t\\t\\t\\t\\n\\t\\t//$this->pdf->SetXY(1.5 + $x, $y + 0.1);\\n\\t\\t\\n\\t\\t/*$this->addText($row[\\\"_NAME\\\"]);\\n\\t\\tif (isset($row[\\\"_UNIQUE\\\"]) && $row[\\\"_UNIQUE\\\"] && safeName($row[\\\"_UNIQUE\\\"]) != safeName($row[\\\"_NAME\\\"])) $this->addText($row[\\\"_UNIQUE\\\"]);\\n\\t\\t$this->addText(\\\"REF: \\\".$GLOBALS[\\\"slCore\\\"]->db->refToNumber(str_replace(\\\"/\\\",\\\".\\\",$this->ref)).\\\".\\\".$row[\\\"_KEY\\\"]);\\n\\t\\t$this->addText(WWW_ROOT.\\\"/sl/tiny?\\\".$short->id,8);\\n\\t\\t\\n\\t\\t$this->x ++;\\n\\t\\tif ($this->x == 2) {\\n\\t\\t\\t$this->x = 0;\\n\\t\\t\\t$this->y ++;\\n\\t\\t\\tif ($this->y == 7) {\\n\\t\\t\\t\\t$this->y = 0;\\n\\t\\t\\t\\t$this->pdf->AddPage();\\n\\t\\t\\t}\\n\\t\\t}*/\\n\\t}\",\n \"public function finish_database_export() {\\n $this->output('');\\n }\",\n \"public function storeFile()\\n\\t{\\n\\t\\tif (!$this->blnIsModified)\\n\\t\\t{\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t$strFile = trim($this->strTop) . \\\"\\\\n\\\\n\\\";\\n\\t\\t$strFile .= \\\"-- LESSON SEGMENT START --\\\\nCREATE TABLE `tl_cb_lessonsegment` (\\\\n\\\";\\n\\n\\t\\tforeach ($this->arrData as $k=>$v)\\n\\t\\t{\\n\\t\\t\\t$strFile .= \\\" `$k` $v,\\\\n\\\";\\n\\t\\t}\\n\\n\\t\\t$strFile .= \\\") ENGINE=MyISAM DEFAULT CHARSET=utf8;\\\\n-- LESSON SEGMENT STOP --\\\\n\\\\n\\\";\\n\\n\\t\\tif ($this->strBottom != '')\\n\\t\\t{\\n\\t\\t\\t$strFile .= trim($this->strBottom) . \\\"\\\\n\\\\n\\\";\\n\\t\\t}\\n\\n\\t\\t$objFile = new File('system/modules/course_builder/config/database.sql');\\n\\t\\t$objFile->write($strFile);\\n\\t\\t$objFile->close();\\n\\t}\",\n \"private function bookmark()\\r\\n {\\r\\n \\r\\n }\",\n \"private function getDocLink(DOMElement $column) {\\n\\t\\t\\n\\t\\t$anchors = $column->getElementsByTagName('a');\\t\\n\\t\\t$anchor = $anchors->item(0);\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t$url = \\\"https://www.landtag.nrw.de\\\".$anchor->getAttribute('href');\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t$this->official_record_nr = $anchor->nodeValue; \\n\\t\\t\\n\\t\\treturn $url;\\n\\t}\",\n \"function filecabinet_drawer_insert($node) {\\n db_query(\\\"INSERT INTO {org_drawers} (nid, vid, wnid, ouid, drawer, drawerstatus, drawerperm, notes, user) VALUES (%d, %d, %d, %d, '%s', '%s', '%s', '%s', %d)\\\",\\n $node->nid,\\n $node->vid,\\n $node->wnid,\\n $node->ouid,\\n $node->drawer,\\n $node->drawerstatus,\\n $node->drawerperm,\\n $node->notes,\\n $node->uid);\\n}\",\n \"public function uploadlink() {\\n $defaults = array();\\n\\n $defaults[\\\"straat\\\"] = \\\"straatnaam of de naam van de buurt\\\";\\n $defaults[\\\"huisnummer\\\"] = \\\"huisnummer\\\";\\n $defaults[\\\"maker\\\"] = \\\"maker\\\";\\n $defaults[\\\"personen\\\"] = \\\"namen\\\";\\n $defaults[\\\"datum\\\"] = \\\"datum of indicatie\\\";\\n $defaults[\\\"titel\\\"] = \\\"titel\\\";\\n $defaults[\\\"naam\\\"] = \\\"Je naam\\\";\\n $defaults[\\\"email\\\"] = \\\"Je e-mailadres\\\";\\n $defaults[\\\"tags\\\"] = \\\"\\\";\\n\\n $this->set('defaults', $defaults);\\n }\",\n \"function commcsv_tool() {\\n\\tadd_submenu_page('edit-comments.php', 'Export Commenters data into CSV', 'Export commenters&#39; contacts', 'manage_options', 'commcsv_page', 'commcsv_page' );\\n}\",\n \"function rest_output_link_header()\\n {\\n }\",\n \"function writeUrl() {\\n\\n }\",\n \"function makeUploadLink($row) {\\n $result = 'http://commons.wikimedia.org/wiki/Commons:Upload';\\n $result = 'http://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic';\\n if ( $row['objectnaam']!='' ) {\\n\\tif ( $row['woonplaats']!='' ) {\\n\\t $description = $row['objectnaam'] . ', ' . $row['woonplaats'] . ' (rijksmonument ' . $row['objrijksnr'] . ')';\\n\\t} else {\\n\\t $description = $row['objectnaam'] . ' (rijksmonument ' . $row['objrijksnr'] . ')';\\n\\t}\\n } else {\\n\\tif ( $row['woonplaats']!='' ) {\\n\\t if ( $row['adres']!='' ) {\\n\\t\\t$description = 'Rijksmonument ' . $row['objrijksnr'] . ' (' . $row['adres'] . ' ' . $row['woonplaats'] . ')';\\n\\t } else {\\n\\t\\t$description = 'Rijksmonument ' . $row['objrijksnr'] . ' (' . $row['woonplaats'] . ')';\\t\\n\\t }\\n\\t} else {\\n\\t $description = 'Rijksmonument ' . $row['objrijksnr'];\\n\\t}\\n }\\n $wpDestFile = $description . '.jpg';\\n $wpUploadDescription = '{{Information \\\\n';\\n $wpUploadDescription = $wpUploadDescription . '|Description={{nl|1=' . $description . '}}\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '|Source={{own}}\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '|Date=~~~~~ (upload date)\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '|Author=~~~\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '|Permission=\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '|other_versions=\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '}}\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '{{Object location dec|' . $row['lat'] . '|' . $row['lon'] . '}}\\\\n';\\n $wpUploadDescription = $wpUploadDescription . '\\\\n'; \\n $wpUploadDescription = urlencode($wpUploadDescription);\\n $wpUploadDescription = str_replace('%5Cn', '%0A', $wpUploadDescription); \\n $result = $result . '&wpDestFile=' . urlencode($wpDestFile);\\n $result = $result . '&wpUploadDescription=' . $wpUploadDescription;\\n //$wpDestFile = '';\\n //$wpUploadDescription = '';\\n return $result;\\n}\",\n \"function mpp_Add_Admin_Link()\\n{\\n add_menu_page(\\n 'Moses Post Piglatin page', // Title of the page\\n 'Moses Post Piglatin', // Text to show on the menu link\\n 'manage_options', // Capability requirement to see the link\\n 'includes/mpp-post-piglatin-cp.php' // The 'slug' - file to display when clicking the link\\n );\\n}\",\n \"function mmc_admin_bar( $wp_admin_bar ){\\n\\t$wp_admin_bar->remove_node('wp-logo');\\n\\n\\t//add a \\\"help\\\" node\\n\\t$wp_admin_bar->add_node( array(\\n\\t\\t'title' => 'Get Help',\\n\\t\\t'href'\\t=> 'http://google.com',\\n\\t\\t'id' \\t=> 'mmc-help',\\n\\t\\t//'parent' => 'site-name',\\n\\t\\t'meta' => array( 'target' => '_blank' ),\\n\\t) );\\n}\",\n \"function insertar($bd);\",\n \"function makeLink($title,$open_text,$save_text,$base_path,$prefix=\\\"\\\") {\\n\\t\\tglobal $modx;\\n\\t\\t$placeholders = array(\\n\\t\\t\\t\\\"[+open_url+]\\\" => $this->buildURL(\\\"debug=open\\\",$modx->documentIdentifier,$prefix),\\n\\t\\t\\t\\\"[+curl+]\\\" => $_SERVER[\\\"REQUEST_URI\\\"],\\n\\t\\t\\t\\\"[+dbg_title+]\\\" => $title,\\n\\t\\t\\t\\\"[+dbg_icon_url+]\\\" => $base_path.'bug.png',\\n\\t\\t\\t\\\"[+save_url+]\\\" => $this->buildURL(\\\"debug=save\\\",$modx->documentIdentifier,$prefix),\\n\\t\\t\\t\\\"[+open_dbg_console+]\\\" => $open_text,\\n\\t\\t\\t\\\"[+save_dbg_console+]\\\" => $save_text,\\n\\t\\t);\\n\\t\\treturn str_replace( array_keys( $placeholders ), array_values( $placeholders ), $this->templates[\\\"links\\\"]);\\n\\t}\",\n \"function deposit_tab_options_tab() \\n {\\n ?>
  • table->database->layout->window;\\n $w->set_cursor($this->table->database->designer->pointers[GDK_HAND2]);\\n //$this->startPos = $w->pointer;\\n \\n \\n // modify this to start on left or right.?\\n \\n $this->startPos = $this->getStartPos();\\n \\n \\n \\n \\n $this->nameDrag = true;\\n $this->setGC();\\n \\n $this->lastEnd = false;\\n gtk::timeout_add(50,array(&$this,'callbackDragMove'));\\n \\n }\",\n \"function tablerow_close() {\\n $this->doc .= DOKU_LF.DOKU_TAB.''.DOKU_LF;\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.5417458","0.53255993","0.5296434","0.52941865","0.525635","0.5218379","0.5213051","0.5123752","0.5116982","0.5107883","0.5098769","0.50818604","0.5044262","0.5017949","0.5007683","0.4983361","0.49684572","0.49657658","0.49651095","0.49639255","0.49629158","0.49585462","0.49522424","0.49390858","0.49111822","0.4902984","0.48932195","0.48922178","0.48865587","0.48757702","0.48655647","0.48534444","0.48505145","0.48467112","0.48456198","0.48449782","0.48424724","0.48388952","0.4838139","0.48219886","0.48112184","0.48077384","0.47995245","0.47951555","0.47916847","0.47914857","0.47844175","0.47772333","0.47752792","0.47736496","0.47541592","0.4741965","0.47397262","0.47335255","0.47312105","0.47281802","0.4723956","0.47236705","0.4718039","0.4709128","0.47083366","0.47079858","0.47036755","0.47031984","0.47015363","0.46973395","0.46817997","0.46770194","0.46754658","0.46733415","0.46656105","0.4663834","0.46574587","0.46532822","0.4651512","0.46470803","0.46469122","0.46447203","0.46401763","0.46331194","0.46324602","0.46257767","0.46206975","0.46162656","0.4615659","0.4613086","0.46123102","0.46121034","0.46105233","0.46087703","0.4606804","0.4602238","0.45978382","0.45978266","0.45953688","0.45941752","0.45931858","0.45924905","0.45910597","0.45846403"],"string":"[\n \"0.5417458\",\n \"0.53255993\",\n \"0.5296434\",\n \"0.52941865\",\n \"0.525635\",\n \"0.5218379\",\n \"0.5213051\",\n \"0.5123752\",\n \"0.5116982\",\n \"0.5107883\",\n \"0.5098769\",\n \"0.50818604\",\n \"0.5044262\",\n \"0.5017949\",\n \"0.5007683\",\n \"0.4983361\",\n \"0.49684572\",\n \"0.49657658\",\n \"0.49651095\",\n \"0.49639255\",\n \"0.49629158\",\n \"0.49585462\",\n \"0.49522424\",\n \"0.49390858\",\n \"0.49111822\",\n \"0.4902984\",\n \"0.48932195\",\n \"0.48922178\",\n \"0.48865587\",\n \"0.48757702\",\n \"0.48655647\",\n \"0.48534444\",\n \"0.48505145\",\n \"0.48467112\",\n \"0.48456198\",\n \"0.48449782\",\n \"0.48424724\",\n \"0.48388952\",\n \"0.4838139\",\n \"0.48219886\",\n \"0.48112184\",\n \"0.48077384\",\n \"0.47995245\",\n \"0.47951555\",\n \"0.47916847\",\n \"0.47914857\",\n \"0.47844175\",\n \"0.47772333\",\n \"0.47752792\",\n \"0.47736496\",\n \"0.47541592\",\n \"0.4741965\",\n \"0.47397262\",\n \"0.47335255\",\n \"0.47312105\",\n \"0.47281802\",\n \"0.4723956\",\n \"0.47236705\",\n \"0.4718039\",\n \"0.4709128\",\n \"0.47083366\",\n \"0.47079858\",\n \"0.47036755\",\n \"0.47031984\",\n \"0.47015363\",\n \"0.46973395\",\n \"0.46817997\",\n \"0.46770194\",\n \"0.46754658\",\n \"0.46733415\",\n \"0.46656105\",\n \"0.4663834\",\n \"0.46574587\",\n \"0.46532822\",\n \"0.4651512\",\n \"0.46470803\",\n \"0.46469122\",\n \"0.46447203\",\n \"0.46401763\",\n \"0.46331194\",\n \"0.46324602\",\n \"0.46257767\",\n \"0.46206975\",\n \"0.46162656\",\n \"0.4615659\",\n \"0.4613086\",\n \"0.46123102\",\n \"0.46121034\",\n \"0.46105233\",\n \"0.46087703\",\n \"0.4606804\",\n \"0.4602238\",\n \"0.45978382\",\n \"0.45978266\",\n \"0.45953688\",\n \"0.45941752\",\n \"0.45931858\",\n \"0.45924905\",\n \"0.45910597\",\n \"0.45846403\"\n]"},"document_score":{"kind":"string","value":"0.5256284"},"document_rank":{"kind":"string","value":"5"}}},{"rowIdx":438,"cells":{"query":{"kind":"string","value":"Insert DropLoader link above the imagelist on the imagetab"},"document":{"kind":"string","value":"function abl_droploader_image_ui($event, $step) {\n $content = '';\n return $content.n;\n }"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function abl_droploader_article_ui($event, $step, $data) {\n\t\t$content = '\n';\n\t\tif (is_callable('wrapRegion')) { // new in txp 4.6\n\t\t\treturn $data.wrapRegion('abl_droploader_group', $content, 'abl_droploader_link', 'upload', 'article_abl_droploader');\n\t\t} else {\n\t\t\treturn $data.'\n

    ' . gTxt('upload') . '

    \n
    ' .\n$content . '\n
    \n
    \n';\n\t\t}\n\t}","function abl_droploader_head_end($evt, $stp) {\n\t\tglobal $event, $step, $prefs, $abl_droploader_prefs;\n\n\t\tif (($event == 'image'\n\t\t\t&& (in_array($step, array('list', 'image_list', 'image_multi_edit', 'image_change_pageby', 'image_save', ''))))\n\t\t|| ($event == 'article'\n\t\t\t&& (in_array($step, array('create', 'edit'))))) {\n\t\t\t$abl_droploader_prefs = abl_droploader_load_prefs();\n\t\t\t$css = '';\n\t\t\tif (intval($abl_droploader_prefs['useDefaultStylesheet']) != 0) {\n\t\t\t\t$css .= '' . n;\n\t\t\t}\n\t\t\tif ($abl_droploader_prefs['customStylesheet'] != '') {\n\t\t\t\t$css .= '' . n;\n\t\t\t}\n\t\t\tif ($css == '') {\n\t\t\t\t$css = '' . n;\n\t\t\t}\n\t\t\t$article_image_field_ids = '\"' . implode('\", \"', explode(',', $abl_droploader_prefs['articleImageFields'])) . '\"';\n\t\t\t$script = '\n\n\n' . n;\n\t\t\techo $css . $script;\n\t\t}\n\n\t}","function link_block_thumb()\n{\n add_image_size('link_block_thumb', 884, 540, true); // Hard crop to exact dimensions (crops sides or top and bottom)\n}","abstract protected function drop_zone($mform, $imagerepeats);","function adminSpecial() {\n\t\t$this->adminDefault();\n\t\t$this->baseLink = CMS_WWW_URI.'admin/special.php?module=picture_gallery';\n\t\t$this->setView('admin_list');\n\t}","function admin_showimage($selection, $path, $options) { global $get, $uri;\n\t$real_path = $path.'/'.$selection;\n\tif (isset($get['o'])) {\n\t\t$url = explode('/',$get['o']);\n\t\t$url1 = explode('|', $url[0]);\n\t\t$url2 = explode('|', $url[1]);\n\t\t$found = in_array('sl', $url1) ? true : false;\n\t\t$link = pre_seao($url1[0], $url2[0], false, true);\n\t\t$link = str_replace('ebookcms.php/', '', $link);\n\t\t$link = str_replace('ebookcms.php?', '?', $link);\n\t\t$add = !isset($get['sl']) ? pre_seao('sl', '1') : '';\n\t\tfor ($i=1; $i';\n\tif (!LOGGED && isAllowed('uplimg_access')) {echo t('not_allowed').'
    '; exit;}\n\tif (is_dir($real_path)) { $images = '';\n\t\t$handle = opendir($real_path);\n\t\t$extensions = array('.jpg', '.bmp', '.gif', '.png');\n\t\twhile (($file = readdir($handle)) == true) {\n\t\t\tif ($file != '.' && $file != '..' && $file != 'thumbs') {\n\t\t\t\tclearstatcache();\n\t\t\t\t$ext = strrchr($file, '.');\n\t\t\t\tif (in_array($ext, $extensions)) {\n\t\t\t\t\tif (file_exists($real_path.'/thumbs/'.$file)) {\n\t\t\t\t\t\t$images = $images.'
  • \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    '.$file.'

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    '.t('delete').'

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
  • ';\n\t\t\t\t\t} else {$images = $images.'
  • \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t

    '.$file.'

    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t

    '.t('delete').'

    \n\t\t\t\t\t\t
    \n\t\t\t\t\t
  • ';}\n\t\t\t\t}\n\t\t\t}\n\t\t} closedir($handle);\n\t\tif (!empty($images)) {echo '
      '.$images.'

    ';} else {echo t('no_image');}\n\t} else if (empty($selection)) {echo t('select_imgs');}\n\techo '
    ';\n\tif (!empty($images)) {return;}\n}","public function init(){\n parent::init();\n $this->registerAssets();\n $this->attachBehavior(\"linkCont\", new LinkContainerBehavior());\n \n echo CHtml::openTag( $this->containerTag, $this->getContainerOptions());\n echo CHtml::openTag($this->listTag, $this->getListOptions());\n \n // Remove invisible items\n $items = $this->removeInvisibleItems($this->items);\n \n // Render the items\n $count = count($items);\n foreach ($items as $index=>$item ) {\n echo CHtml::openTag($this->itemTag, $this->getItemOptions($item, $index, $count));\n $item['labelMarkup'] = $this->getLabel($item);\n $item['anchorOptions'] = $this->getAnchorOptions($item, $index, $count);\n $this->renderItem($item);\n echo CHtml::closeTag($this->itemTag);\n }\n }","function insertUrlImages($image_name){\r\n\t\t\r\n\t}","function abl_droploader_image_uploaded($event, $step, $id) {\n\t\tif (ps('abl_droploader') == '') return;\n\t\t$response = array(\n\t\t\t'status' => 1,\n\t\t\t'image_id' => $id,\n\t\t);\n\t\techo json_encode($response);\n\t\texit;\n\t}","function album_list_thumbnail($albumList)\n{\n\tforeach ($albumList as $album) {\n\t\t$id = $album->album_id;\n\t\t$title = $album->album_title;\n\t\t$year = $album->album_year;\n\t\techo \"
    \";\n\t\t\techo a_open(\"thumbnail\", base_url().\"album/$id\");\n\t\t\t\techo img(\"data/music/albums/$id/cover.png\");\n\t\t\techo a_close();\n\t\techo div_close();\n\t}\n}","function bootstrapwp_enhanced_image_navigation($url)\n{\n global $post;\n if (wp_attachment_is_image($post->ID)) {\n $url = $url . '#main';\n }\n return $url;\n}","function manage_banners(){\r\n\r\n\tglobal $cfg;\r\n\t\r\n\tinclude('./include/admin/adm_item.php');\r\n\t\r\n\t$manager = new adm_item();\r\n\t\r\n\t$manager->type =\t\t\t\t'banner';\r\n\t$manager->type_plural =\t\t\t'banners';\r\n\t$manager->url = \t\t\t\t'##pageroot##/?mode=banner';\r\n\t\r\n\t// initialize fields\r\n\t$manager->sql_item_table = \t\t$cfg['t_banner_items'];\t\t\r\n\t$manager->sql_item_id = \t\t'item_id';\t\t\t\r\n\t$manager->sql_item_data = \t\tarray('alt','src');\t\t\t\r\n\t$manager->sql_item_desc = \t\tarray('Display Text','URL');\r\n\r\n\t$manager->sql_item_unique_keys = array(0,1);\r\n\t\r\n\t$manager->sql_item_hidden =\t\tarray();\r\n\t\r\n\t$manager->sql_join_table = \t\t$cfg['t_banner_groups'];\t\t\r\n\t$manager->sql_order_field = \tfalse;\r\n\t\r\n\t$manager->sql_group_table = \t$cfg['t_banners'];\t\t\r\n\t$manager->sql_group_id =\t\t'banner_id';\t\t\t\r\n\t$manager->sql_group_name = \t\t'name';\r\n\r\n\t$manager->do_content_update = \ttrue;\r\n\t\r\n\t// hooks\r\n\t//$manager->item_delete_hook = \t'user_delete';\r\n\t//$manager->remove_hook = \t\t'user_remove';\r\n\t//$manager->edit_item_hook = \t'user_edititem';\r\n\t\r\n\t$manager->custom_functions = \tarray('banner_autofill');\r\n\t$manager->item_html =\t\t\t\r\n\t\"

    url&amp;action=banner_autofill\\\">Autofill banner images from $cfg[img_autofill_dir]/

    \";\r\n\t\r\n\t$manager->ShowItems();\r\n\t\r\n}","function bau_ein_upload_link_in_der_adminbar() {\n\n global $wp_admin_bar;\n \n if (current_user_can( 'manage_options' ) ) {\n \n $wp_admin_bar->add_menu( array(\n\t\t'id' => 'medien-hochladen',\n\t\t'title' => 'Medien hochladen',\n\t\t'href' => admin_url( 'media-new.php')\n\t));\n}\n}","protected function addDisplayToolbar() {\n\t\t$doc = JFactory::getDocument();\n\t\t$doc->addStyleDeclaration('.icon-48-jmap{background-image:url(\"components/com_jmap/images/jmap-48x48.png\")}');\n\t\tJToolBarHelper::title( JText::_('COM_JMAP_CPANEL_TOOLBAR' ), 'jmap' );\n\t\tJToolBarHelper::custom('cpanel.display', 'home', 'home', 'COM_JMAP_CPANEL', false);\n\t}","function register_block_core_gallery()\n {\n }","public function add_image() {\n\t $this->use_layout=false;\n\t $this->page = new $this->model_class(Request::get('id'));\n\t\t$this->join_name = \"images\";\n\t if(Request::post(\"id\")) {\n\t\t $this->image = new WildfireFile(Request::post('id'));\n\t\t $this->image->join_order = Request::post('order');\n\t\t $this->page->images = $this->image;\n\t }\n\t}","function load_sp_image_widget() {\n\tregister_widget('SP_Image_Widget');\n}","protected function addToolbar()\n {\n // Get the results for each action\n $canDo = JoomHelper::getActions();\n\n // Get the toolbar object instance\n $bar = JToolbar::getInstance('toolbar');\n\n JToolBarHelper::title(JText::_('COM_JOOMGALLERY_IMGMAN_IMAGE_MANAGER'), 'images');\n\n if(($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('joom.upload') || count(JoomHelper::getAuthorisedCategories('joom.upload'))) && $this->pagination->total)\n {\n JToolbarHelper::addNew('new');\n }\n\n if(($canDo->get('core.edit') || $canDo->get('core.edit.own')) && $this->pagination->total)\n {\n JToolbarHelper::editList();\n JToolbarHelper::custom('edit', 'checkbox-partial', 'checkbox-partial', 'JTOOLBAR_BATCH');\n JToolbarHelper::custom('showmove', 'move.png', 'move.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_MOVE');\n JToolbarHelper::custom('recreate', 'refresh.png', 'refresh.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_RECREATE');\n\n // Instantiate a new JLayoutFile instance and render the rotate button\n $layout = new JLayoutFile('joomgallery.toolbar.rotate', JPATH_COMPONENT_ADMINISTRATOR . '/layouts');\n $dhtml = $layout->render(array('title' => JText::_('COM_JOOMGALLERY_COMMON_TOOLBAR_ROTATE')));\n $bar->appendButton('Custom', $dhtml, 'rotate');\n\n JToolbarHelper::divider();\n }\n\n if($canDo->get('core.edit.state') && $this->pagination->total)\n {\n JToolbarHelper::publishList('publish', 'COM_JOOMGALLERY_COMMON_PUBLISH');\n JToolbarHelper::unpublishList('unpublish', 'COM_JOOMGALLERY_COMMON_UNPUBLISH');\n JToolbarHelper::custom('approve', 'upload.png', 'upload_f2.png', 'COM_JOOMGALLERY_IMGMAN_TOOLBAR_APPROVE');\n JToolbarHelper::divider();\n }\n\n //if($canDo->get('core.delete'))\n //{\n JToolbarHelper::deleteList('', 'remove');\n //}\n\n }","private function createTabImage()\n {\n $filePath = _PS_MODULE_LENGOW_DIR_ . 'views/img/AdminLengow.gif';\n $fileDest = _PS_MODULE_LENGOW_DIR_ . 'AdminLengow.gif';\n if (!file_exists($fileDest) && LengowMain::compareVersion('1.5') == 0) {\n copy($filePath, $fileDest);\n }\n }","function additem()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '新增轮播图';\n $this->global['pageName'] = 'carousel_add';\n $data = '';\n\n $this->loadViews(\"carousel_add\", $this->global, $data, NULL);\n }\n }","function SetupListOptions() {\r\n\t\tglobal $Security, $Language, $rekeningju;\r\n\r\n\t\t// \"griddelete\"\r\n\t\tif ($rekeningju->AllowAddDeleteRow) {\r\n\t\t\t$item =& $this->ListOptions->Add(\"griddelete\");\r\n\t\t\t$item->CssStyle = \"white-space: nowrap;\";\r\n\t\t\t$item->OnLeft = TRUE;\r\n\t\t\t$item->Visible = FALSE; // Default hidden\r\n\t\t}\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}","function nuthemes_enhanced_image_navigation( $url, $id ) {\n\tif ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\n\t\treturn $url;\n\n\t$image = get_post( $id );\n\tif ( ! empty( $image->post_parent ) && $image->post_parent != $id )\n\t\t$url .= '#main';\n\n\treturn $url;\n}","function optinpanda_icon_admin_assets( $hook ) { global $optinpanda;\r\nif ( !in_array( $optinpanda->license->type, array( 'free' ) ) ) {\r\n return; \r\n}\r\n\r\n\r\n ?>\r\n \r\n ';\n\tif (is_dir($real_path)) { $images = '';\n\t\t$handle = opendir($real_path);\n\t\t$extensions = array('.jpg', '.bmp', '.gif', '.png');\n\t\twhile (($file = readdir($handle)) == true) {\n\t\t\tif ($file != '.' && $file != '..' && $file != 'thumbs') {\n\t\t\t\tclearstatcache();\n\t\t\t\t$ext = strrchr($file, '.');\n\t\t\t\tif (in_array($ext, $extensions)) {\n\t\t\t\t\tif (file_exists($real_path.'/'.$file)) {\n\t\t\t\t\t\t$images = $images.'
  • \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
  • ';\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t} closedir($handle);\n\t\tif (!empty($images)) {echo '
      '.$images.'

    ';} else {echo t('no_image');}\n\t} else if (empty($selection)) {echo t('select_imgs');}\n\techo '
    ';\n\tif (!empty($images)) {return;}\n}","function song_list_thumbnail($songList)\n{\n\tforeach ($songList as $song) {\n\t\t$id = $song->song_id;\n\t\t$title = $song->song_title;\n\t\t$year = $song->song_year;\n\t\techo \"
    \";\n\t\t\techo a_open(\"thumbnail\", base_url().\"song/$id\");\n\t\t\t\techo img(\"data/music/songs/$id/cover.png\");\n\t\t\techo a_close();\n\t\techo div_close();\n\t}\n}","public function assetThumbnailListAction() {\n\t\t$parentFolder = $this->document->getElement ( \"parentFolder\" );\n\t\tif ($parentFolder) {\n\t\t\t$parentFolder = $parentFolder->getElement ();\n\t\t}\n\t\t\n\t\tif (! $parentFolder) {\n\t\t\t// default is the home folder\n\t\t\t$parentFolder = Asset::getById ( 1 );\n\t\t}\n\t\t\n\t\t// get all children of the parent\n\t\t$list = new \\Asset\\Listing ();\n\t\t$list->setCondition ( \"path like ?\", $parentFolder->getFullpath () . \"%\" );\n\t\t\n\t\t$this->view->list = $list;\n\t}","function calvero_enhanced_image_navigation( $url, $id ) {\n if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\n return $url;\n \n $image = get_post( $id );\n if ( ! empty( $image->post_parent ) && $image->post_parent != $id )\n $url .= '#main';\n \n return $url;\n}","function add_image($image,$imageTitle,$imageDescription,$imageUrlMain,$imageLink2Title,$imageLink2Url,$imageLink3Title,$imageLink3Url,$imageLink4Title,$imageLink4Url)\n\t\t{\n\t\t\t$this -> load -> helper('security');\n\n\t\t\t$data = array('Image' => $image, 'Title' => $imageTitle, 'Description' => $imageDescription, 'Urlmain' => $imageUrlMain, 'link2title' => $imageLink2Title, 'Link2' => $imageLink2Url, 'Link3title' => $imageLink3Title, 'Link3' => $imageLink3Url, 'Link4title' => $imageLink4Title, 'Link4' => $imageLink4Url);\n\n\t\t\t$this -> db -> insert('MediaSlider', $data);\n\t\t}","function add_image( $url = null, $caption = null, $alt = null, $position = null ) {\n\n\t\t$module = new I2M_Module__image( $url, $caption, $alt, $position );\n\n\t\t$this->module_list[] = $module->get_acf_layout();\n\t\t$this->modules[] = $module;\n\n\t\treturn $module;\n\n\t}","public function poster() {\r\n $titre = $this->requete->getParametre(\"titre\");\r\n $contenu = $this->requete->getParametre(\"contenu\");\r\n \r\n $this->billet->ajouterBillet($titre, $contenu);\r\n // Exécution de l'action par défaut pour réafficher la liste des billets\r\n $this->executerAction(\"index\"); // utiliser header pour rediriger vers une nouvelle page liste billet admin \r\n }","function admin_preload ()\n\t{\n\t\t$this->CI->admin_navigation->child_link('configuration',65,'phpBB3',site_url('admincp/phpbb'));\n\t}","function shortcode_insert_button()\n {\n $this->config['name']\t\t\t= __('Carousel With Thumbnails', 'swedenWp' );\n $this->config['tab']\t\t\t= __('Content Elements', 'swedenWp' );\n $this->config['icon']\t\t\t= swedenBuilder::$path['imagesURL'].\"sc-postslider.png\";\n $this->config['order']\t\t\t= 2;\n $this->config['target']\t\t\t= 'avia-target-insert';\n $this->config['shortcode'] \t\t= 'sw_thumb_nav_carousel';\n $this->config['shortcode_nested'] = array('sw_thumb_carousel_slide');\n $this->config['tooltip'] \t = __('Display a carousel element with thumb navigation', 'swedenWp' );\n }","function LinkITMenu() {\n add_menu_page('123LinkIt', '123LinkIt', 'manage_options', 'LinkITPluginCentral', 'LinkITPluginCentral', 'http://www.123linkit.com/images/123linkit.favicon.gif', 3);\n }","function TS_VCSC_Add_Posts_Image_Lean() {\r\n\t\t\t\tvc_lean_map('TS_VCSC_Posts_Image_Grid_Standalone',\t\t\tarray($this, 'TS_VCSC_Add_Posts_Image_Elements'), null);\r\n\t\t\t}","function add()\n\t{\n\t\t$CFG = $this->config->item('image_configure');\n\t\t$data[\"title\"] = _e(\"Image\");\n\t\t## for check admin or not ##\n\t\t$data[\"response\"] = addPermissionMsg( $CFG[\"sector\"][\"add\"] );\t\t\t\n\t\t## Other auxilary variable ##\n\t\t$data['var'] = array();\t\t\n\t\t$this->load->module('context/context_admin');\n\t\t$user_context = $this->context_admin->getContext();\n\t\t$data['var']['context_dd'] = ( array('' => _e('Choose Context') ) + $user_context );\n\t\t$data['var']['relation_dd'] = ( array('' => _e('Choose Relation') ) );\n\t\t$data[\"top\"] = $this->template->admin_view(\"top\", $data, true, \"image\");\t\n\t\t$data[\"content\"] = $this->template->admin_view(\"image_add\", $data, true, \"image\");\n\t\t$this->template->build_admin_output($data);\n\t}","public function getLoaderIconUrl()\n {\n return $this->assetRepository->getUrl(Naming::getModuleName() . '::images/ajax-loader.gif');\n }","function emc_enhanced_image_navigation( $url, $id ) {\r\n\tif ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\r\n\t\treturn $url;\r\n\r\n\t$image = get_post( $id );\r\n\tif ( ! empty( $image->post_parent ) && $image->post_parent != $id )\r\n\t\t$url .= '#main';\r\n\r\n\treturn $url;\r\n}","protected function addDisplayToolbar() {\r\n\t\t$doc = JFactory::getDocument();\r\n\t\t$doc->addStyleDeclaration('.icon-48-jmap{background-image:url(\"components/com_jmap/images/icon-48-help.png\")}');\r\n\t\t$doc->addStyleDeclaration('.icon-32-config{background-image:url(\"components/com_jmap/images/icon-32-config.png\")}');\r\n\t\tJToolBarHelper::title( JText::_( 'HELP' ), 'jmap' );\r\n\t\tJToolBarHelper::custom('cpanel.display', 'config', 'config', 'CPANEL', false);\r\n\t}","function adabs_link( $wp_admin_bar ) {\n $args = array(\n 'id' => '',\n 'title' => '',\n 'href' => 'https://adabs.ch',\n 'meta' => array( 'target' => '_blank', 'rel' => 'noopener' ),\n 'parent' => 'top-secondary'\n );\n\t$wp_admin_bar->add_node( $args );\n}","function register_links_list_widget()\n{\n register_widget( 'VF_Widget_Links_List' );\n}","private function loadImages(): void\n {\n if (count($this->images) == 1) {\n $this->addMeta('image', $this->images[0]);\n\n return;\n }\n\n foreach ($this->images as $number => $url) {\n $this->addMeta(\"image{$number}\", $url);\n }\n }","function addImage($path,$title,$description,$thumb,$lightbox,$uniqueID,$limitImages=0) {\n\t // count of images\n\t if ($limitImages > 1 || $limitImages==0) {\n $this->config['count']++;\n\t }\n // just add the wraps if there is a text for it\n $title = (!$title) ? '' : \"

    $title

    \";\n $description = (!$description) ? '' : \"

    $description

    \";\n \n // generate images\n if ($this->config['watermark']) {\n $imgTSConfigBig = $this->conf['big2.'];\n $imgTSConfigBig['file.']['10.']['file'] = $path;\n $imgTSConfigLightbox = $this->conf['lightbox2.'];\n $imgTSConfigLightbox['file.']['10.']['file'] = $path; \n } else {\n $imgTSConfigBig = $this->conf['big.'];\n $imgTSConfigBig['file'] = $path;\n $imgTSConfigLightbox = $this->conf['lightbox.'];\n $imgTSConfigLightbox['file'] = $path; \n } \n $bigImage = $this->cObj->IMG_RESOURCE($imgTSConfigBig);\n\n $lightbox = ($lightbox=='#' || $lightbox=='' || $this->config['showLightbox']!=1) ? 'javascript:void(0)' : $this->cObj->IMG_RESOURCE($imgTSConfigLightbox);\n \t$lightBoxImage='pi_getLL('textOpenImage').'\" class=\"open\">';\n\n if ($thumb) {\n $imgTSConfigThumb = $this->conf['thumb.'];\n $imgTSConfigThumb['file'] = $path; \n $thumbImage = 'cObj->IMG_RESOURCE($imgTSConfigThumb).'\" class=\"thumbnail\" />';\n }\n\n\t // if just 1 image should be returned\n if ($limitImages==1) {\n \treturn '';\n }\n\n // build the image element \n $singleImage .= '\n
    '.$title.$description.\n $lightBoxImage.'\n \n '.$thumbImage.'\n
    ';\n\n\t\t// Adds hook for processing the image\n\t\t$config['path'] = $path;\n $config['title'] = $title;\n\t\t$config['description'] = $description;\n\t\t$config['uniqueID'] = $uniqueID;\n\t\t$config['thumb'] = $thumb;\n\t\t$config['large'] = $large;\n\t\t$config['lightbox'] = $lightbox;\n\t\t$config['limitImages'] = $limitImages;\n\t\t$config['lightBoxCode'] = $lightBoxImage;\n\t\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraImageHook'])) {\n\t\t\tforeach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraImageHook'] as $_classRef) {\n\t\t\t\t$_procObj = & t3lib_div::getUserObj($_classRef);\n\t\t\t\t$singleImage = $_procObj->extraImageProcessor($singleImage,$config, $this);\n\t\t\t}\n\t\t} \n \n return $singleImage;\n }","function addlinks(){\n Vtiger_Link::addLink(0, 'HEADERSCRIPT', 'LSWYSIWYG', 'modules/LSWYSIWYG/resources/WYSIWYG.js','','','');\n\n\t}","function theme_banner($location) {\n $banner = new UN_Banner();\n $banner->setWhere(' (isdeleted=0 OR isdeleted IS NULL) AND location='.$banner->quote(filter_var($location)));\n $aAll = $banner->getAll();\n $output = '';\n foreach($aAll as $k=>$f) {\n $output .= '

    '.url($f['url'], '\"'.$f['origname']').'

    '; \n }\n echo $output;\n}","function admin_cropImage()\r\n {\r\n // setting the layout for admin\r\n $this->layout = 'admin';\r\n \r\n // Setting the page title\r\n $this->set(\"title_for_layout\",\"Image Crop\");\r\n \r\n }","public function listtabelPngAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('PENGADAAN');\n }","function flatsome_enhanced_image_navigation( $url, $id ) {\n if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\n return $url;\n\n $image = get_post( $id );\n if ( ! empty( $image->post_parent ) && $image->post_parent != $id )\n $url .= '#main';\n\n return $url;\n}","function links_insert_head($flux) {\r\n\t$links = links_configuration();\r\n\r\n\t//Ouverture d'une nouvelle fenetre\r\n\tif($links['window'] == 'on'){\r\n\t\t$flux .= ''. \"\\n\";\r\n\t}\r\n\treturn $flux;\r\n}","function adminmenu($url, $title, $image) {\r\n global $counter, $admingraphic;\r\n if ($admingraphic == 1) {\r\n\t$img = \"\\\"\\\"
    \";\r\n\t$close = \"\";\r\n } else {\r\n\t$image = \"\";\r\n\t$close = \"\";\r\n }\r\n echo \"$img$title$close\";\r\n if ($counter == 5) {\r\n\techo \"\";\r\n\t$counter = 0;\r\n } else {\r\n\t$counter++;\r\n }\r\n}","function import_product_brands_plugin_menu() {\n\n add_menu_page(\"Import Product Brands Plugin\", \"Import Product Brands\",\"manage_options\", \"import_product_brands\", \"import_csv\",plugins_url('/import-product-brands/img/icon.png'));\n}","function cpc_broker_list_image( $theuser ){\n\n\tglobal $cp_options;\n\t\n\t// args\n\t$args = array(\n\t\t'author'=>$theuser,\n\t\t'post_type' => array( 'ad_listing' )\n\t);\n\t\n\t// The Query\n\t$author_query = new WP_Query( $args );\n\t\n\t// The Loop\n\tif ( $author_query->have_posts() ) {\n\t\tob_start(); ?>\n\t\t\n\t '',\n 'title' => '',\n 'href' => 'https://adabs.ch',\n 'meta' => array('target' => '_blank', 'rel' => 'noopener'),\n 'parent' => 'top-secondary'\n );\n $wp_admin_bar->add_node($args);\n}","private function prepareImageList() {\n\t\t\tforeach(scandir($this->templateDirectory) as $templateFileName) {\n\t\t\t\tif((strcmp($templateFileName, \".\") !== 0) && (strcmp($templateFileName, \"..\") !== 0)) {\n\t\t\t\t\t$this->imageList->addItem(new Image($this->templateDirectory, $templateFileName), $templateFileName);\n\t\t\t\t}\n\t\t\t}\n\t\t}","function mmc_admin_bar( $wp_admin_bar ){\n\t$wp_admin_bar->remove_node('wp-logo');\n\n\t//add a \"help\" node\n\t$wp_admin_bar->add_node( array(\n\t\t'title' => 'Get Help',\n\t\t'href'\t=> 'http://google.com',\n\t\t'id' \t=> 'mmc-help',\n\t\t//'parent' => 'site-name',\n\t\t'meta' => array( 'target' => '_blank' ),\n\t) );\n}","function training_image_callback() {\n $output = array();\n $file_path = drupal_realpath('modules/image/sample.png');\n $source = (object) array(\n 'uid' => 1,\n 'uri' => $file_path,\n 'filename' => basename($file_path),\n 'filemime' => file_get_mimetype($file_path),\n );\n $directory = 'public://';\n file_copy($source, $directory, $replace = FILE_EXISTS_REPLACE);\n $array_style = image_styles();\n foreach ($array_style as $val) {\n $style_name = $val['name'];\n $path = 'public://sample.png';\n $attributes = array(\n 'class' => 'simple-image',\n );\n $output[] = theme('image_style', array(\n 'style_name' => $style_name,\n 'path' => $path,\n 'attributes' => $attributes,\n ));\n }\n\n return theme('item_list', array(\n 'items' => $output,\n 'type' => 'ol',\n 'title' => t('Default image styles'),\n ));\n}","public function get_image_link()\n {\n }","function init() {\n if( !is_object( $this->ipsclass->compiled_templates['skin_gallery_imagelisting'] ) ) {\n \t$this->ipsclass->load_template('skin_gallery_imagelisting');\n }\n $this->img_html = $this->ipsclass->compiled_templates[ 'skin_gallery_imagelisting' ];\n }","function buildImageDisplay($imageArray) {\r\n $id = '
      ';\r\n foreach ($imageArray as $image) {\r\n $id .= '
    • ';\r\n $id .= \"$image[invMake] $image[invModel] image on PHP Motors.com\";\r\n $id .= \"

      Delete $image[imgName]

      \";\r\n $id .= '
    • ';\r\n }\r\n $id .= '
    ';\r\n return $id;\r\n }","public function initMenu()\n {\n add_menu_page(\n 'Flickr Group Gallery',\n 'Flickr Group Gallery',\n 'administrator',\n 'flickr-group-gallery',\n array($this, 'render'),\n 'dashicons-admin-generic'\n );\n }","function ucf_post_list_display_gallery_before($content, $posts, $atts)\n{\n ob_start();\n ?>\n
    \">\n Content > Images of the day and select the image you want to display.';\n }","private function insert4Action(){\t\t\n\t\tinclude_once (System_Properties::ADMIN_MOD_PATH.'/models/default/db_selVPic.php');\n\t\t$bike = $this -> adminNS -> bikeAds;\n\t\t$this -> actParam = $bike;\t\t\n\t\t$this -> loadBikeCat();\n\t\t\t\t\t\n\t\tif (isset($bike['bikeID'])){\n\t\t\t$bikePhotos = db_selVPic(array(\t'vType'=>System_Properties::BIKE_ABRV,\n\t\t\t\t\t\t\t\t\t\t\t'vID' => $bike['bikeID']\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t);\n\t\t\tif (($bikePhotos != false) && is_array($bikePhotos) && (count($bikePhotos) > 0)){\n\t\t\t\t$bikePhotoNew = array();\n\t\t\t\tforeach($bikePhotos as $key => $kVal){\n\t\t\t\t\t$bikePhotoNew[$kVal['vPicID']] = $kVal;\n\t\t\t\t}\n\t\t\t\t$this -> adminNS -> bikePhoto = $bikePhotoNew;\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\tif (($bikePhotos != false) && is_array($bikePhotos) && (count($bikePhotos) > 0)){\n\t\t\t\tif (is_array($this -> bikeNS -> bikePhoto)){\n\t\t\t\t\t$this -> bikeNS -> bikePhoto = array_merge($this -> bikeNS -> bikePhoto, $bikePhotos);\n\t\t\t\t}else{\n\t\t\t\t\t$this -> bikeNS -> bikePhoto = $bikePhotos;\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n\t\t}\n\t\t$bike['bikePhoto'] = $this -> adminNS -> bikePhoto;\t\t\n\t\t$this -> view -> bike = $bike;\n\t\t$this -> render('insert3');\t\t\t\n\t}","public function addPage() {\n $item = menu_get_item();\n $content = system_admin_menu_block($item);\n\n if (count($content) == 1) {\n $item = array_shift($content);\n drupal_goto($item['href']);\n }\n\n return theme('thumbwhere_host_add_list', array('content' => $content));\n }","public function show(ImgList $imgList)\n {\n //\n }","function sf_product_thumb_image_html($html) {\n\t\t$html = '
  • '.$html.'
  • ';\n\t\treturn $html;\n\t}","function addSidebarItem($marker, $data) {\r\n\t\tif(!($this->showSidebar && is_object($marker))) return;\r\n\t\t$data['onclickLink'] = $marker->getClickJS();\r\n\t\t$this->sidebarLinks[] = \\JBartels\\WecMap\\Utility\\Shared::render($data, $this->conf['sidebarItem.']);\r\n\t}","function feedTheLoader() {\n\t\n}","function register_block_core_post_navigation_link()\n {\n }","public function insert_gallery_shortcode() {\n\t\t\n\t\tcheck_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' );\n\t\t// TODO: Update to insert ids into shortcode so it works with new media tool\n\t\techo '[gallery]';\n\t\tdie();\n\n\t}","function editor_insert_image($html, $id, $caption, $title, $align, $url, $size) {\r\n\tlist($imgsrc) = image_downsize($id, 'hero-review');\r\n//\tlist($imgsrc) = image_downsize($id, $size);\r\n\r\n\t$html = \"
    \";\r\n\t$html .= \"\\\"$caption\\\"\";\r\n\tif ($caption) {\r\n\t\t$html .= \"
    $caption
    \";\r\n\t}\r\n\t$html .= \"
    \";\r\n\treturn $html;\r\n}","function register_block_core_page_list_item()\n {\n }","function listing_image_add_metabox () {\n\t\tadd_meta_box( 'listingimagediv', __( 'Image Containers Loop', 'text-domain' ), 'listing_image_metabox', 'product', 'side', 'low');\n\t}","function register_block_core_gallery() {\n\tregister_block_type_from_metadata(\n\t\t__DIR__ . '/gallery',\n\t\tarray(\n\t\t\t'render_callback' => function ( $attributes, $content ) {\n\t\t\t\treturn $content;\n\t\t\t},\n\t\t)\n\t);\n}","function get_sponsors_list($value='')\r{?>\r\r\r\r\r
    ');\n\t\techo('

    ');\n\t\techo(\"\".getPara('imagelist','value2'));\n\t\techo('

    ');\n\t\techo('
    ');\n\t\t\n\t\t\techo('
    \n\t\t\t\t\t
    ');\n\t\t\t$str2=\"select * from imagelist order by imageid desc\";\n\t\t\t$result2=mysql_query($str2) or die(mysql_error());\n\t\t\t$k=0;\n\t\t\twhile ($row2=mysql_fetch_array($result2))\n\t\t\t{\n\t\t\t\tif($k==1)\n\t\t\t\t{\n\t\t\t\t\t echo('
    \n\t\t\t\t\t \n\t\t\t\t\t
    ');\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t echo('
    \n\t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t\t
    ');\n\t\t\t\t\t }\n\t\t\t\t$k++;\t \n\t\t\t\t}\n\t\t\t\techo('
    \n\t\t\t\t\t \n\t\t\t\t\t &lsaquo;\n\t\t\t\t\t &rsaquo;\n\t\t\t\t\t
    ');\n\t\t\techo(\"
    \");\n\t\t\techo(\"
    \");\n}","function upload_img()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '上传图片';\n $this->global['pageName'] = 'carousel_upload';\n $data['ret_Url'] = 'carousel_edit';\n\n $this->loadViews(\"uploading_img\", $this->global, $data, NULL);\n }\n }","function theme_display_film_strip(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $pos, $sort_options, $mode = 'thumb', $date='', $filmstrip_prev_pos, $filmstrip_next_pos,$max_block_items,$thumb_width)\r\n{\r\n global $CONFIG, $THEME_DIR;\r\n global $template_film_strip, $lang_film_strip, $lang_common, $pic_count,$mar_pic;\r\n\r\n $superCage = Inspekt::makeSuperCage();\r\n\r\n static $template = '';\r\n static $thumb_cell = '';\r\n static $empty_cell = '';\r\n static $spacer = '';\r\n\r\n if (defined('THEME_HAS_FILM_STRIP_GRAPHIC')) { set_js_var('vertstrip', 1); }\r\n\r\n if ((!$template)) {\r\n $template = $template_film_strip;\r\n $thumb_cell = template_extract_block($template, 'thumb_cell');\r\n $empty_cell = template_extract_block($template, 'empty_cell');\r\n }\r\n\r\n $cat_link = is_numeric($aid) ? '' : '&amp;cat=' . $cat;\r\n $date_link = $date=='' ? '' : '&amp;date=' . $date;\r\n\r\n if ($superCage->get->getInt('uid')) {\r\n $uid_link = '&amp;uid=' . $superCage->get->getInt('uid');\r\n } else {\r\n $uid_link = '';\r\n }\r\n\r\n $i = 0;\r\n $thumb_strip = '';\r\n foreach($thumb_list as $thumb) {\r\n $i++;\r\n if ($mode == 'thumb') {\r\n if ($thumb['pos'] == $pos && !$superCage->get->keyExists('film_strip')) {\r\n $thumb['image'] = str_replace('class=\"image\"', 'class=\"image middlethumb\"', $thumb['image']);\r\n }\r\n // determine if thumbnail link targets should open in a pop-up\r\n if ($CONFIG['thumbnail_to_fullsize'] == 1) { // code for full-size pop-up\r\n if (!USER_ID && $CONFIG['allow_unlogged_access'] <= 2) {\r\n $target = 'javascript:;\" onclick=\"alert(\\''.sprintf($lang_errors['login_needed'],'','','','').'\\');';\r\n } elseif (USER_ID && USER_ACCESS_LEVEL <= 2) {\r\n $target = 'javascript:;\" onclick=\"alert(\\''.sprintf($lang_errors['access_intermediate_only'],'','','','').'\\');';\r\n } else {\r\n $target = 'javascript:;\" onclick=\"MM_openBrWindow(\\'displayimage.php?pid=' . $thumb['pid'] . '&fullsize=1\\',\\'' . uniqid(rand()) . '\\',\\'scrollbars=yes,toolbar=no,status=no,resizable=yes,width=' . ((int)$thumb['pwidth']+(int)$CONFIG['fullsize_padding_x']) . ',height=' . ((int)$thumb['pheight']+(int)$CONFIG['fullsize_padding_y']). '\\');';\r\n }\r\n } elseif ($aid == 'lastcom' || $aid == 'lastcomby') {\r\n $page = cpg_get_comment_page_number($thumb['msg_id']);\r\n $page = (is_numeric($page)) ? \"&amp;page=$page\" : '';\r\n $target = \"displayimage.php?album=$aid$cat_link$date_link&amp;pid={$thumb['pid']}$uid_link&amp;msg_id={$thumb['msg_id']}$page#comment{$thumb['msg_id']}\";\r\n } else {\r\n $target = \"displayimage.php?album=$aid$cat_link$date_link&amp;pid={$thumb['pid']}$uid_link#top_display_media\";\r\n }\r\n $params = array(\r\n '{LINK_TGT}' => $target,\r\n '{THUMB}' => $thumb['image'],\r\n '{ONE_WIDTH}' => \"width:\".$thumb_width.\"px; float: left\" ,\r\n );\r\n } else {\r\n $params = array(\r\n '{LINK_TGT}' => \"index.php?cat={$thumb['cat']}\",\r\n '{THUMB}' => $thumb['image'],\r\n '{ONE_WIDTH}' => \"width:\".$thumb_width.\"px; float: left\" ,\r\n );\r\n }\r\n $thumb_strip .= template_eval($thumb_cell, $params);\r\n }\r\n\r\n $tile1 = $THEME_DIR . 'images/tile1.gif';\r\n $tile2 = $THEME_DIR . 'images/tile2.gif';\r\n\r\n\r\n if (defined('THEME_HAS_NAVBAR_GRAPHICS')) {\r\n $location = $THEME_DIR;\r\n } else {\r\n $location= '';\r\n }\r\n $max_itme_width_ul = $max_block_items;\r\n if(($max_block_items%2)==0){\r\n $max_itme_width_ul = $max_block_items +1;\r\n }\r\n $set_width_to_film = \"width:\".($max_block_items*($thumb_width+4)).\"px; position:relative;\";\r\n\r\n $params = array('{THUMB_STRIP}' => $thumb_strip,\r\n '{COLS}' => $i,\r\n '{TILE1}' => $tile1,\r\n '{TILE2}' => $tile2,\r\n '{SET_WIDTH}' => $set_width_to_film,\r\n );\r\n\r\n ob_start();\r\n echo '
    ';\r\n if (!defined('THEME_HAS_FILM_STRIP_GRAPHIC')) { starttable($CONFIG['picture_table_width']); }\r\n echo template_eval($template, $params);\r\n if (!defined('THEME_HAS_FILM_STRIP_GRAPHIC')) { endtable(); }\r\n echo '
    ';\r\n $film_strip = ob_get_contents();\r\n ob_end_clean();\r\n\r\n return $film_strip;\r\n}","function getbanners()\n\t\t{\n\t\t\t$banners = $this->manage_content->getValue('banner_info','*');\n\t\t\techo '
    ';\n\t\t\tforeach($banners as $banner)\n\t\t\t{\n\t\t\t\tif($banner['banner_status'] == 1)\n\t\t\t\t{\n\t\t\t\t\techo '';\n\t\t\t\t\techo '
    ';\n\t\t\t\t}\n\t\t\t}\n\t\t\techo '
    ';\n\t\t}","public function carregar_imagem()\n\t{\n\t\t$id = $this->input->get(\"id_aluno\");\n\t\t$dados[\"aluno\"] = $this->Aluno_Model->retorna_aluno($id);\t\n\t\t//\tCARREGA A VIZUALIZACAO DA VIEW LISTA\n\t\t$this->load->view('layout/cabecalho_secretaria');\n\t\t$this->load->view('layout/menu_lateral_secretaria');\n\t\t$this->load->view('conteudo/_secretaria/_aluno/fotografia', $dados);\n\t\t$this->load->view('layout/rodape');\n\t\t$this->load->view('layout/script');\n\t}","public function displayImgTag() {\n $urlimg = \"/plugins/graphontrackers/reportgraphic.php?_jpg_csimd=1&group_id=\".(int)$this->graphic_report->getGroupId().\"&atid=\". $this->graphic_report->getAtid();\n $urlimg .= \"&report_graphic_id=\".$this->graphic_report->getId().\"&id=\".$this->getId();\n \n \n echo 'getId() .'\" ';\n if ($this->width) {\n echo ' width=\"'. $this->width .'\" ';\n }\n if ($this->height) {\n echo ' height=\"'. $this->height .'\" ';\n }\n echo ' alt=\"'. $this->title .'\" border=\"0\">';\n }","function forumAd($links) {\n global $context;\n\n //echo $context['dir'];\n\n $content = '\n

    Anime Empire on Youtube

    \n\n \n ';\n \n return moduleBlack($content);\n}","function wp_img_tag_add_loading_attr($image, $context)\n {\n }","public abstract function prepare_item_links($id);","function fgallery_add_button($buttons) {\n $fgallery_button = \" \n \".__(\";\n $buttons .= $fgallery_button;\n return $buttons;\n}","function log_viewer_add_menu_item() {\n\techo '
  • Log Viewer
  • ';\n}","function buildImageDisplay($imageArray)\n{\n $id = '
      ';\n foreach ($imageArray as $image) {\n $id .= '
    • ';\n $id .= \"$image[invMake] $image[invModel] image on PHP Motors.com\";\n $id .= \"

      Delete $image[imgName]

      \";\n $id .= '
    • ';\n }\n $id .= '
    ';\n return $id;\n}","function add($pos,$url,$img,$title,$accesskey='')\n{\n\tif($pos==0)\n\t\t$this->reflist[]=array($url,$img,$title,$accesskey);\n\telse\n\t\tarray_unshift($this->reflist,array($url,$img,$title,$accesskey));\n}","public function insert($banner);","function floated_admin_avatar($name)\n {\n }","protected function setLinksBar()\n {\n $mysidia = Registry::get(\"mysidia\");\n $this->linksBar = new Paragraph;\n $linkTitle = new Comment(\"{$mysidia->user->username}'s Links:\");\n $linkTitle->setBold();\n $this->linksBar->add($linkTitle);\n \n $linksList = new LinksList(\"ul\");\n $this->setLinks($linksList);\n \n $this->linksBar->add($linksList);\n $this->setDivision($this->linksBar);\n }","function wpvideocoach_admin_toolbar() {\r\n\tglobal $wp_admin_bar;\r\n\t\r\n\t// Add the Parent link.\r\n\t$adminurl = admin_url('admin.php?page=wpvideocoach');\r\n\t$admin_toolbar_title = wpvideocoach_toolbar_link_title();\r\n\t$wp_admin_bar->add_menu( array(\r\n\t\t'title' => $admin_toolbar_title,\r\n\t\t'href' => $adminurl,\r\n\t\t'id' => 'wpvideocoach_links',\r\n\t));\r\n\r\n}","public function getThumbnailLocation() {\n\t\treturn Images::BLIZZARD_PATH . $this->thumbnail;\n\t}","function ll_makelist2($ll_sociallinks, $widgetname){\n\techo '';\n\tunset($ll_links);\n}","function widgetopts_tab_devices( $args ){ ?>\n
  • \n -devices\" title=\"\" > \n
  • \n object))\n\t\t{\n\t\t\t$ilLocator->addItem($this->object->getTitle(),\n\t\t\t\t$this->getGotoLink($this->object->getRefId()), \"\", $_GET[\"ref_id\"]);\n\t\t}\n\t}","function banner_images_init() {\n\n\t$args = array(\n\n\t\t'label' => 'Banner Image',\n\n\t\t'public' => true,\n\n\t\t'show_ui' => true,\n\n\t\t'capability_type' => 'post',\n\n\t\t'hierarchical' => false,\n\n\t\t'rewrite' => array('slug' => 'banner'),\n\n\t\t'query_var' => true,\n\n\t\t'menu_icon' => 'dashicons-format-gallery',\n\n\t\t'supports' => array(\n\n\t\t\t'title', \n\n\t\t\t'thumbnail',\n\n\t\t)\n\n\t);\n\n\tregister_post_type( 'banner', $args );\n\n}"],"string":"[\n \"function abl_droploader_article_ui($event, $step, $data) {\\n\\t\\t$content = '\\n';\\n\\t\\tif (is_callable('wrapRegion')) { // new in txp 4.6\\n\\t\\t\\treturn $data.wrapRegion('abl_droploader_group', $content, 'abl_droploader_link', 'upload', 'article_abl_droploader');\\n\\t\\t} else {\\n\\t\\t\\treturn $data.'\\n

    ' . gTxt('upload') . '

    \\n
    ' .\\n$content . '\\n
    \\n
    \\n';\\n\\t\\t}\\n\\t}\",\n \"function abl_droploader_head_end($evt, $stp) {\\n\\t\\tglobal $event, $step, $prefs, $abl_droploader_prefs;\\n\\n\\t\\tif (($event == 'image'\\n\\t\\t\\t&& (in_array($step, array('list', 'image_list', 'image_multi_edit', 'image_change_pageby', 'image_save', ''))))\\n\\t\\t|| ($event == 'article'\\n\\t\\t\\t&& (in_array($step, array('create', 'edit'))))) {\\n\\t\\t\\t$abl_droploader_prefs = abl_droploader_load_prefs();\\n\\t\\t\\t$css = '';\\n\\t\\t\\tif (intval($abl_droploader_prefs['useDefaultStylesheet']) != 0) {\\n\\t\\t\\t\\t$css .= '' . n;\\n\\t\\t\\t}\\n\\t\\t\\tif ($abl_droploader_prefs['customStylesheet'] != '') {\\n\\t\\t\\t\\t$css .= '' . n;\\n\\t\\t\\t}\\n\\t\\t\\tif ($css == '') {\\n\\t\\t\\t\\t$css = '' . n;\\n\\t\\t\\t}\\n\\t\\t\\t$article_image_field_ids = '\\\"' . implode('\\\", \\\"', explode(',', $abl_droploader_prefs['articleImageFields'])) . '\\\"';\\n\\t\\t\\t$script = '\\n\\n\\n' . n;\\n\\t\\t\\techo $css . $script;\\n\\t\\t}\\n\\n\\t}\",\n \"function link_block_thumb()\\n{\\n add_image_size('link_block_thumb', 884, 540, true); // Hard crop to exact dimensions (crops sides or top and bottom)\\n}\",\n \"abstract protected function drop_zone($mform, $imagerepeats);\",\n \"function adminSpecial() {\\n\\t\\t$this->adminDefault();\\n\\t\\t$this->baseLink = CMS_WWW_URI.'admin/special.php?module=picture_gallery';\\n\\t\\t$this->setView('admin_list');\\n\\t}\",\n \"function admin_showimage($selection, $path, $options) { global $get, $uri;\\n\\t$real_path = $path.'/'.$selection;\\n\\tif (isset($get['o'])) {\\n\\t\\t$url = explode('/',$get['o']);\\n\\t\\t$url1 = explode('|', $url[0]);\\n\\t\\t$url2 = explode('|', $url[1]);\\n\\t\\t$found = in_array('sl', $url1) ? true : false;\\n\\t\\t$link = pre_seao($url1[0], $url2[0], false, true);\\n\\t\\t$link = str_replace('ebookcms.php/', '', $link);\\n\\t\\t$link = str_replace('ebookcms.php?', '?', $link);\\n\\t\\t$add = !isset($get['sl']) ? pre_seao('sl', '1') : '';\\n\\t\\tfor ($i=1; $i';\\n\\tif (!LOGGED && isAllowed('uplimg_access')) {echo t('not_allowed').'
    '; exit;}\\n\\tif (is_dir($real_path)) { $images = '';\\n\\t\\t$handle = opendir($real_path);\\n\\t\\t$extensions = array('.jpg', '.bmp', '.gif', '.png');\\n\\t\\twhile (($file = readdir($handle)) == true) {\\n\\t\\t\\tif ($file != '.' && $file != '..' && $file != 'thumbs') {\\n\\t\\t\\t\\tclearstatcache();\\n\\t\\t\\t\\t$ext = strrchr($file, '.');\\n\\t\\t\\t\\tif (in_array($ext, $extensions)) {\\n\\t\\t\\t\\t\\tif (file_exists($real_path.'/thumbs/'.$file)) {\\n\\t\\t\\t\\t\\t\\t$images = $images.'
  • \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t

    '.$file.'

    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t

    '.t('delete').'

    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
  • ';\\n\\t\\t\\t\\t\\t} else {$images = $images.'
  • \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t

    '.$file.'

    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t

    '.t('delete').'

    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t
  • ';}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} closedir($handle);\\n\\t\\tif (!empty($images)) {echo '
      '.$images.'

    ';} else {echo t('no_image');}\\n\\t} else if (empty($selection)) {echo t('select_imgs');}\\n\\techo '';\\n\\tif (!empty($images)) {return;}\\n}\",\n \"public function init(){\\n parent::init();\\n $this->registerAssets();\\n $this->attachBehavior(\\\"linkCont\\\", new LinkContainerBehavior());\\n \\n echo CHtml::openTag( $this->containerTag, $this->getContainerOptions());\\n echo CHtml::openTag($this->listTag, $this->getListOptions());\\n \\n // Remove invisible items\\n $items = $this->removeInvisibleItems($this->items);\\n \\n // Render the items\\n $count = count($items);\\n foreach ($items as $index=>$item ) {\\n echo CHtml::openTag($this->itemTag, $this->getItemOptions($item, $index, $count));\\n $item['labelMarkup'] = $this->getLabel($item);\\n $item['anchorOptions'] = $this->getAnchorOptions($item, $index, $count);\\n $this->renderItem($item);\\n echo CHtml::closeTag($this->itemTag);\\n }\\n }\",\n \"function insertUrlImages($image_name){\\r\\n\\t\\t\\r\\n\\t}\",\n \"function abl_droploader_image_uploaded($event, $step, $id) {\\n\\t\\tif (ps('abl_droploader') == '') return;\\n\\t\\t$response = array(\\n\\t\\t\\t'status' => 1,\\n\\t\\t\\t'image_id' => $id,\\n\\t\\t);\\n\\t\\techo json_encode($response);\\n\\t\\texit;\\n\\t}\",\n \"function album_list_thumbnail($albumList)\\n{\\n\\tforeach ($albumList as $album) {\\n\\t\\t$id = $album->album_id;\\n\\t\\t$title = $album->album_title;\\n\\t\\t$year = $album->album_year;\\n\\t\\techo \\\"
    \\\";\\n\\t\\t\\techo a_open(\\\"thumbnail\\\", base_url().\\\"album/$id\\\");\\n\\t\\t\\t\\techo img(\\\"data/music/albums/$id/cover.png\\\");\\n\\t\\t\\techo a_close();\\n\\t\\techo div_close();\\n\\t}\\n}\",\n \"function bootstrapwp_enhanced_image_navigation($url)\\n{\\n global $post;\\n if (wp_attachment_is_image($post->ID)) {\\n $url = $url . '#main';\\n }\\n return $url;\\n}\",\n \"function manage_banners(){\\r\\n\\r\\n\\tglobal $cfg;\\r\\n\\t\\r\\n\\tinclude('./include/admin/adm_item.php');\\r\\n\\t\\r\\n\\t$manager = new adm_item();\\r\\n\\t\\r\\n\\t$manager->type =\\t\\t\\t\\t'banner';\\r\\n\\t$manager->type_plural =\\t\\t\\t'banners';\\r\\n\\t$manager->url = \\t\\t\\t\\t'##pageroot##/?mode=banner';\\r\\n\\t\\r\\n\\t// initialize fields\\r\\n\\t$manager->sql_item_table = \\t\\t$cfg['t_banner_items'];\\t\\t\\r\\n\\t$manager->sql_item_id = \\t\\t'item_id';\\t\\t\\t\\r\\n\\t$manager->sql_item_data = \\t\\tarray('alt','src');\\t\\t\\t\\r\\n\\t$manager->sql_item_desc = \\t\\tarray('Display Text','URL');\\r\\n\\r\\n\\t$manager->sql_item_unique_keys = array(0,1);\\r\\n\\t\\r\\n\\t$manager->sql_item_hidden =\\t\\tarray();\\r\\n\\t\\r\\n\\t$manager->sql_join_table = \\t\\t$cfg['t_banner_groups'];\\t\\t\\r\\n\\t$manager->sql_order_field = \\tfalse;\\r\\n\\t\\r\\n\\t$manager->sql_group_table = \\t$cfg['t_banners'];\\t\\t\\r\\n\\t$manager->sql_group_id =\\t\\t'banner_id';\\t\\t\\t\\r\\n\\t$manager->sql_group_name = \\t\\t'name';\\r\\n\\r\\n\\t$manager->do_content_update = \\ttrue;\\r\\n\\t\\r\\n\\t// hooks\\r\\n\\t//$manager->item_delete_hook = \\t'user_delete';\\r\\n\\t//$manager->remove_hook = \\t\\t'user_remove';\\r\\n\\t//$manager->edit_item_hook = \\t'user_edititem';\\r\\n\\t\\r\\n\\t$manager->custom_functions = \\tarray('banner_autofill');\\r\\n\\t$manager->item_html =\\t\\t\\t\\r\\n\\t\\\"

    url&amp;action=banner_autofill\\\\\\\">Autofill banner images from $cfg[img_autofill_dir]/

    \\\";\\r\\n\\t\\r\\n\\t$manager->ShowItems();\\r\\n\\t\\r\\n}\",\n \"function bau_ein_upload_link_in_der_adminbar() {\\n\\n global $wp_admin_bar;\\n \\n if (current_user_can( 'manage_options' ) ) {\\n \\n $wp_admin_bar->add_menu( array(\\n\\t\\t'id' => 'medien-hochladen',\\n\\t\\t'title' => 'Medien hochladen',\\n\\t\\t'href' => admin_url( 'media-new.php')\\n\\t));\\n}\\n}\",\n \"protected function addDisplayToolbar() {\\n\\t\\t$doc = JFactory::getDocument();\\n\\t\\t$doc->addStyleDeclaration('.icon-48-jmap{background-image:url(\\\"components/com_jmap/images/jmap-48x48.png\\\")}');\\n\\t\\tJToolBarHelper::title( JText::_('COM_JMAP_CPANEL_TOOLBAR' ), 'jmap' );\\n\\t\\tJToolBarHelper::custom('cpanel.display', 'home', 'home', 'COM_JMAP_CPANEL', false);\\n\\t}\",\n \"function register_block_core_gallery()\\n {\\n }\",\n \"public function add_image() {\\n\\t $this->use_layout=false;\\n\\t $this->page = new $this->model_class(Request::get('id'));\\n\\t\\t$this->join_name = \\\"images\\\";\\n\\t if(Request::post(\\\"id\\\")) {\\n\\t\\t $this->image = new WildfireFile(Request::post('id'));\\n\\t\\t $this->image->join_order = Request::post('order');\\n\\t\\t $this->page->images = $this->image;\\n\\t }\\n\\t}\",\n \"function load_sp_image_widget() {\\n\\tregister_widget('SP_Image_Widget');\\n}\",\n \"protected function addToolbar()\\n {\\n // Get the results for each action\\n $canDo = JoomHelper::getActions();\\n\\n // Get the toolbar object instance\\n $bar = JToolbar::getInstance('toolbar');\\n\\n JToolBarHelper::title(JText::_('COM_JOOMGALLERY_IMGMAN_IMAGE_MANAGER'), 'images');\\n\\n if(($this->_config->get('jg_disableunrequiredchecks') || $canDo->get('joom.upload') || count(JoomHelper::getAuthorisedCategories('joom.upload'))) && $this->pagination->total)\\n {\\n JToolbarHelper::addNew('new');\\n }\\n\\n if(($canDo->get('core.edit') || $canDo->get('core.edit.own')) && $this->pagination->total)\\n {\\n JToolbarHelper::editList();\\n JToolbarHelper::custom('edit', 'checkbox-partial', 'checkbox-partial', 'JTOOLBAR_BATCH');\\n JToolbarHelper::custom('showmove', 'move.png', 'move.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_MOVE');\\n JToolbarHelper::custom('recreate', 'refresh.png', 'refresh.png', 'COM_JOOMGALLERY_COMMON_TOOLBAR_RECREATE');\\n\\n // Instantiate a new JLayoutFile instance and render the rotate button\\n $layout = new JLayoutFile('joomgallery.toolbar.rotate', JPATH_COMPONENT_ADMINISTRATOR . '/layouts');\\n $dhtml = $layout->render(array('title' => JText::_('COM_JOOMGALLERY_COMMON_TOOLBAR_ROTATE')));\\n $bar->appendButton('Custom', $dhtml, 'rotate');\\n\\n JToolbarHelper::divider();\\n }\\n\\n if($canDo->get('core.edit.state') && $this->pagination->total)\\n {\\n JToolbarHelper::publishList('publish', 'COM_JOOMGALLERY_COMMON_PUBLISH');\\n JToolbarHelper::unpublishList('unpublish', 'COM_JOOMGALLERY_COMMON_UNPUBLISH');\\n JToolbarHelper::custom('approve', 'upload.png', 'upload_f2.png', 'COM_JOOMGALLERY_IMGMAN_TOOLBAR_APPROVE');\\n JToolbarHelper::divider();\\n }\\n\\n //if($canDo->get('core.delete'))\\n //{\\n JToolbarHelper::deleteList('', 'remove');\\n //}\\n\\n }\",\n \"private function createTabImage()\\n {\\n $filePath = _PS_MODULE_LENGOW_DIR_ . 'views/img/AdminLengow.gif';\\n $fileDest = _PS_MODULE_LENGOW_DIR_ . 'AdminLengow.gif';\\n if (!file_exists($fileDest) && LengowMain::compareVersion('1.5') == 0) {\\n copy($filePath, $fileDest);\\n }\\n }\",\n \"function additem()\\n {\\n if ($this->isAdmin() == TRUE) {\\n $this->loadThis();\\n } else {\\n $this->global['pageTitle'] = '新增轮播图';\\n $this->global['pageName'] = 'carousel_add';\\n $data = '';\\n\\n $this->loadViews(\\\"carousel_add\\\", $this->global, $data, NULL);\\n }\\n }\",\n \"function SetupListOptions() {\\r\\n\\t\\tglobal $Security, $Language, $rekeningju;\\r\\n\\r\\n\\t\\t// \\\"griddelete\\\"\\r\\n\\t\\tif ($rekeningju->AllowAddDeleteRow) {\\r\\n\\t\\t\\t$item =& $this->ListOptions->Add(\\\"griddelete\\\");\\r\\n\\t\\t\\t$item->CssStyle = \\\"white-space: nowrap;\\\";\\r\\n\\t\\t\\t$item->OnLeft = TRUE;\\r\\n\\t\\t\\t$item->Visible = FALSE; // Default hidden\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// Call ListOptions_Load event\\r\\n\\t\\t$this->ListOptions_Load();\\r\\n\\t}\",\n \"function nuthemes_enhanced_image_navigation( $url, $id ) {\\n\\tif ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\\n\\t\\treturn $url;\\n\\n\\t$image = get_post( $id );\\n\\tif ( ! empty( $image->post_parent ) && $image->post_parent != $id )\\n\\t\\t$url .= '#main';\\n\\n\\treturn $url;\\n}\",\n \"function optinpanda_icon_admin_assets( $hook ) { global $optinpanda;\\r\\nif ( !in_array( $optinpanda->license->type, array( 'free' ) ) ) {\\r\\n return; \\r\\n}\\r\\n\\r\\n\\r\\n ?>\\r\\n \\r\\n ';\\n\\tif (is_dir($real_path)) { $images = '';\\n\\t\\t$handle = opendir($real_path);\\n\\t\\t$extensions = array('.jpg', '.bmp', '.gif', '.png');\\n\\t\\twhile (($file = readdir($handle)) == true) {\\n\\t\\t\\tif ($file != '.' && $file != '..' && $file != 'thumbs') {\\n\\t\\t\\t\\tclearstatcache();\\n\\t\\t\\t\\t$ext = strrchr($file, '.');\\n\\t\\t\\t\\tif (in_array($ext, $extensions)) {\\n\\t\\t\\t\\t\\tif (file_exists($real_path.'/'.$file)) {\\n\\t\\t\\t\\t\\t\\t$images = $images.'
  • \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
  • ';\\n\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} closedir($handle);\\n\\t\\tif (!empty($images)) {echo '
      '.$images.'

    ';} else {echo t('no_image');}\\n\\t} else if (empty($selection)) {echo t('select_imgs');}\\n\\techo '
    ';\\n\\tif (!empty($images)) {return;}\\n}\",\n \"function song_list_thumbnail($songList)\\n{\\n\\tforeach ($songList as $song) {\\n\\t\\t$id = $song->song_id;\\n\\t\\t$title = $song->song_title;\\n\\t\\t$year = $song->song_year;\\n\\t\\techo \\\"
    \\\";\\n\\t\\t\\techo a_open(\\\"thumbnail\\\", base_url().\\\"song/$id\\\");\\n\\t\\t\\t\\techo img(\\\"data/music/songs/$id/cover.png\\\");\\n\\t\\t\\techo a_close();\\n\\t\\techo div_close();\\n\\t}\\n}\",\n \"public function assetThumbnailListAction() {\\n\\t\\t$parentFolder = $this->document->getElement ( \\\"parentFolder\\\" );\\n\\t\\tif ($parentFolder) {\\n\\t\\t\\t$parentFolder = $parentFolder->getElement ();\\n\\t\\t}\\n\\t\\t\\n\\t\\tif (! $parentFolder) {\\n\\t\\t\\t// default is the home folder\\n\\t\\t\\t$parentFolder = Asset::getById ( 1 );\\n\\t\\t}\\n\\t\\t\\n\\t\\t// get all children of the parent\\n\\t\\t$list = new \\\\Asset\\\\Listing ();\\n\\t\\t$list->setCondition ( \\\"path like ?\\\", $parentFolder->getFullpath () . \\\"%\\\" );\\n\\t\\t\\n\\t\\t$this->view->list = $list;\\n\\t}\",\n \"function calvero_enhanced_image_navigation( $url, $id ) {\\n if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\\n return $url;\\n \\n $image = get_post( $id );\\n if ( ! empty( $image->post_parent ) && $image->post_parent != $id )\\n $url .= '#main';\\n \\n return $url;\\n}\",\n \"function add_image($image,$imageTitle,$imageDescription,$imageUrlMain,$imageLink2Title,$imageLink2Url,$imageLink3Title,$imageLink3Url,$imageLink4Title,$imageLink4Url)\\n\\t\\t{\\n\\t\\t\\t$this -> load -> helper('security');\\n\\n\\t\\t\\t$data = array('Image' => $image, 'Title' => $imageTitle, 'Description' => $imageDescription, 'Urlmain' => $imageUrlMain, 'link2title' => $imageLink2Title, 'Link2' => $imageLink2Url, 'Link3title' => $imageLink3Title, 'Link3' => $imageLink3Url, 'Link4title' => $imageLink4Title, 'Link4' => $imageLink4Url);\\n\\n\\t\\t\\t$this -> db -> insert('MediaSlider', $data);\\n\\t\\t}\",\n \"function add_image( $url = null, $caption = null, $alt = null, $position = null ) {\\n\\n\\t\\t$module = new I2M_Module__image( $url, $caption, $alt, $position );\\n\\n\\t\\t$this->module_list[] = $module->get_acf_layout();\\n\\t\\t$this->modules[] = $module;\\n\\n\\t\\treturn $module;\\n\\n\\t}\",\n \"public function poster() {\\r\\n $titre = $this->requete->getParametre(\\\"titre\\\");\\r\\n $contenu = $this->requete->getParametre(\\\"contenu\\\");\\r\\n \\r\\n $this->billet->ajouterBillet($titre, $contenu);\\r\\n // Exécution de l'action par défaut pour réafficher la liste des billets\\r\\n $this->executerAction(\\\"index\\\"); // utiliser header pour rediriger vers une nouvelle page liste billet admin \\r\\n }\",\n \"function admin_preload ()\\n\\t{\\n\\t\\t$this->CI->admin_navigation->child_link('configuration',65,'phpBB3',site_url('admincp/phpbb'));\\n\\t}\",\n \"function shortcode_insert_button()\\n {\\n $this->config['name']\\t\\t\\t= __('Carousel With Thumbnails', 'swedenWp' );\\n $this->config['tab']\\t\\t\\t= __('Content Elements', 'swedenWp' );\\n $this->config['icon']\\t\\t\\t= swedenBuilder::$path['imagesURL'].\\\"sc-postslider.png\\\";\\n $this->config['order']\\t\\t\\t= 2;\\n $this->config['target']\\t\\t\\t= 'avia-target-insert';\\n $this->config['shortcode'] \\t\\t= 'sw_thumb_nav_carousel';\\n $this->config['shortcode_nested'] = array('sw_thumb_carousel_slide');\\n $this->config['tooltip'] \\t = __('Display a carousel element with thumb navigation', 'swedenWp' );\\n }\",\n \"function LinkITMenu() {\\n add_menu_page('123LinkIt', '123LinkIt', 'manage_options', 'LinkITPluginCentral', 'LinkITPluginCentral', 'http://www.123linkit.com/images/123linkit.favicon.gif', 3);\\n }\",\n \"function TS_VCSC_Add_Posts_Image_Lean() {\\r\\n\\t\\t\\t\\tvc_lean_map('TS_VCSC_Posts_Image_Grid_Standalone',\\t\\t\\tarray($this, 'TS_VCSC_Add_Posts_Image_Elements'), null);\\r\\n\\t\\t\\t}\",\n \"function add()\\n\\t{\\n\\t\\t$CFG = $this->config->item('image_configure');\\n\\t\\t$data[\\\"title\\\"] = _e(\\\"Image\\\");\\n\\t\\t## for check admin or not ##\\n\\t\\t$data[\\\"response\\\"] = addPermissionMsg( $CFG[\\\"sector\\\"][\\\"add\\\"] );\\t\\t\\t\\n\\t\\t## Other auxilary variable ##\\n\\t\\t$data['var'] = array();\\t\\t\\n\\t\\t$this->load->module('context/context_admin');\\n\\t\\t$user_context = $this->context_admin->getContext();\\n\\t\\t$data['var']['context_dd'] = ( array('' => _e('Choose Context') ) + $user_context );\\n\\t\\t$data['var']['relation_dd'] = ( array('' => _e('Choose Relation') ) );\\n\\t\\t$data[\\\"top\\\"] = $this->template->admin_view(\\\"top\\\", $data, true, \\\"image\\\");\\t\\n\\t\\t$data[\\\"content\\\"] = $this->template->admin_view(\\\"image_add\\\", $data, true, \\\"image\\\");\\n\\t\\t$this->template->build_admin_output($data);\\n\\t}\",\n \"public function getLoaderIconUrl()\\n {\\n return $this->assetRepository->getUrl(Naming::getModuleName() . '::images/ajax-loader.gif');\\n }\",\n \"function emc_enhanced_image_navigation( $url, $id ) {\\r\\n\\tif ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\\r\\n\\t\\treturn $url;\\r\\n\\r\\n\\t$image = get_post( $id );\\r\\n\\tif ( ! empty( $image->post_parent ) && $image->post_parent != $id )\\r\\n\\t\\t$url .= '#main';\\r\\n\\r\\n\\treturn $url;\\r\\n}\",\n \"protected function addDisplayToolbar() {\\r\\n\\t\\t$doc = JFactory::getDocument();\\r\\n\\t\\t$doc->addStyleDeclaration('.icon-48-jmap{background-image:url(\\\"components/com_jmap/images/icon-48-help.png\\\")}');\\r\\n\\t\\t$doc->addStyleDeclaration('.icon-32-config{background-image:url(\\\"components/com_jmap/images/icon-32-config.png\\\")}');\\r\\n\\t\\tJToolBarHelper::title( JText::_( 'HELP' ), 'jmap' );\\r\\n\\t\\tJToolBarHelper::custom('cpanel.display', 'config', 'config', 'CPANEL', false);\\r\\n\\t}\",\n \"function adabs_link( $wp_admin_bar ) {\\n $args = array(\\n 'id' => '',\\n 'title' => '',\\n 'href' => 'https://adabs.ch',\\n 'meta' => array( 'target' => '_blank', 'rel' => 'noopener' ),\\n 'parent' => 'top-secondary'\\n );\\n\\t$wp_admin_bar->add_node( $args );\\n}\",\n \"function register_links_list_widget()\\n{\\n register_widget( 'VF_Widget_Links_List' );\\n}\",\n \"private function loadImages(): void\\n {\\n if (count($this->images) == 1) {\\n $this->addMeta('image', $this->images[0]);\\n\\n return;\\n }\\n\\n foreach ($this->images as $number => $url) {\\n $this->addMeta(\\\"image{$number}\\\", $url);\\n }\\n }\",\n \"function addImage($path,$title,$description,$thumb,$lightbox,$uniqueID,$limitImages=0) {\\n\\t // count of images\\n\\t if ($limitImages > 1 || $limitImages==0) {\\n $this->config['count']++;\\n\\t }\\n // just add the wraps if there is a text for it\\n $title = (!$title) ? '' : \\\"

    $title

    \\\";\\n $description = (!$description) ? '' : \\\"

    $description

    \\\";\\n \\n // generate images\\n if ($this->config['watermark']) {\\n $imgTSConfigBig = $this->conf['big2.'];\\n $imgTSConfigBig['file.']['10.']['file'] = $path;\\n $imgTSConfigLightbox = $this->conf['lightbox2.'];\\n $imgTSConfigLightbox['file.']['10.']['file'] = $path; \\n } else {\\n $imgTSConfigBig = $this->conf['big.'];\\n $imgTSConfigBig['file'] = $path;\\n $imgTSConfigLightbox = $this->conf['lightbox.'];\\n $imgTSConfigLightbox['file'] = $path; \\n } \\n $bigImage = $this->cObj->IMG_RESOURCE($imgTSConfigBig);\\n\\n $lightbox = ($lightbox=='#' || $lightbox=='' || $this->config['showLightbox']!=1) ? 'javascript:void(0)' : $this->cObj->IMG_RESOURCE($imgTSConfigLightbox);\\n \\t$lightBoxImage='pi_getLL('textOpenImage').'\\\" class=\\\"open\\\">';\\n\\n if ($thumb) {\\n $imgTSConfigThumb = $this->conf['thumb.'];\\n $imgTSConfigThumb['file'] = $path; \\n $thumbImage = 'cObj->IMG_RESOURCE($imgTSConfigThumb).'\\\" class=\\\"thumbnail\\\" />';\\n }\\n\\n\\t // if just 1 image should be returned\\n if ($limitImages==1) {\\n \\treturn '';\\n }\\n\\n // build the image element \\n $singleImage .= '\\n
    '.$title.$description.\\n $lightBoxImage.'\\n \\n '.$thumbImage.'\\n
    ';\\n\\n\\t\\t// Adds hook for processing the image\\n\\t\\t$config['path'] = $path;\\n $config['title'] = $title;\\n\\t\\t$config['description'] = $description;\\n\\t\\t$config['uniqueID'] = $uniqueID;\\n\\t\\t$config['thumb'] = $thumb;\\n\\t\\t$config['large'] = $large;\\n\\t\\t$config['lightbox'] = $lightbox;\\n\\t\\t$config['limitImages'] = $limitImages;\\n\\t\\t$config['lightBoxCode'] = $lightBoxImage;\\n\\t\\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraImageHook'])) {\\n\\t\\t\\tforeach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraImageHook'] as $_classRef) {\\n\\t\\t\\t\\t$_procObj = & t3lib_div::getUserObj($_classRef);\\n\\t\\t\\t\\t$singleImage = $_procObj->extraImageProcessor($singleImage,$config, $this);\\n\\t\\t\\t}\\n\\t\\t} \\n \\n return $singleImage;\\n }\",\n \"function addlinks(){\\n Vtiger_Link::addLink(0, 'HEADERSCRIPT', 'LSWYSIWYG', 'modules/LSWYSIWYG/resources/WYSIWYG.js','','','');\\n\\n\\t}\",\n \"function theme_banner($location) {\\n $banner = new UN_Banner();\\n $banner->setWhere(' (isdeleted=0 OR isdeleted IS NULL) AND location='.$banner->quote(filter_var($location)));\\n $aAll = $banner->getAll();\\n $output = '';\\n foreach($aAll as $k=>$f) {\\n $output .= '

    '.url($f['url'], '\\\"'.$f['origname']').'

    '; \\n }\\n echo $output;\\n}\",\n \"function admin_cropImage()\\r\\n {\\r\\n // setting the layout for admin\\r\\n $this->layout = 'admin';\\r\\n \\r\\n // Setting the page title\\r\\n $this->set(\\\"title_for_layout\\\",\\\"Image Crop\\\");\\r\\n \\r\\n }\",\n \"public function listtabelPngAction() {\\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('PENGADAAN');\\n }\",\n \"function flatsome_enhanced_image_navigation( $url, $id ) {\\n if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )\\n return $url;\\n\\n $image = get_post( $id );\\n if ( ! empty( $image->post_parent ) && $image->post_parent != $id )\\n $url .= '#main';\\n\\n return $url;\\n}\",\n \"function links_insert_head($flux) {\\r\\n\\t$links = links_configuration();\\r\\n\\r\\n\\t//Ouverture d'une nouvelle fenetre\\r\\n\\tif($links['window'] == 'on'){\\r\\n\\t\\t$flux .= ''. \\\"\\\\n\\\";\\r\\n\\t}\\r\\n\\treturn $flux;\\r\\n}\",\n \"function adminmenu($url, $title, $image) {\\r\\n global $counter, $admingraphic;\\r\\n if ($admingraphic == 1) {\\r\\n\\t$img = \\\"\\\\\\\"\\\\\\\"
    \\\";\\r\\n\\t$close = \\\"\\\";\\r\\n } else {\\r\\n\\t$image = \\\"\\\";\\r\\n\\t$close = \\\"\\\";\\r\\n }\\r\\n echo \\\"$img$title$close\\\";\\r\\n if ($counter == 5) {\\r\\n\\techo \\\"\\\";\\r\\n\\t$counter = 0;\\r\\n } else {\\r\\n\\t$counter++;\\r\\n }\\r\\n}\",\n \"function import_product_brands_plugin_menu() {\\n\\n add_menu_page(\\\"Import Product Brands Plugin\\\", \\\"Import Product Brands\\\",\\\"manage_options\\\", \\\"import_product_brands\\\", \\\"import_csv\\\",plugins_url('/import-product-brands/img/icon.png'));\\n}\",\n \"function cpc_broker_list_image( $theuser ){\\n\\n\\tglobal $cp_options;\\n\\t\\n\\t// args\\n\\t$args = array(\\n\\t\\t'author'=>$theuser,\\n\\t\\t'post_type' => array( 'ad_listing' )\\n\\t);\\n\\t\\n\\t// The Query\\n\\t$author_query = new WP_Query( $args );\\n\\t\\n\\t// The Loop\\n\\tif ( $author_query->have_posts() ) {\\n\\t\\tob_start(); ?>\\n\\t\\t\\n\\t '',\\n 'title' => '',\\n 'href' => 'https://adabs.ch',\\n 'meta' => array('target' => '_blank', 'rel' => 'noopener'),\\n 'parent' => 'top-secondary'\\n );\\n $wp_admin_bar->add_node($args);\\n}\",\n \"private function prepareImageList() {\\n\\t\\t\\tforeach(scandir($this->templateDirectory) as $templateFileName) {\\n\\t\\t\\t\\tif((strcmp($templateFileName, \\\".\\\") !== 0) && (strcmp($templateFileName, \\\"..\\\") !== 0)) {\\n\\t\\t\\t\\t\\t$this->imageList->addItem(new Image($this->templateDirectory, $templateFileName), $templateFileName);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function mmc_admin_bar( $wp_admin_bar ){\\n\\t$wp_admin_bar->remove_node('wp-logo');\\n\\n\\t//add a \\\"help\\\" node\\n\\t$wp_admin_bar->add_node( array(\\n\\t\\t'title' => 'Get Help',\\n\\t\\t'href'\\t=> 'http://google.com',\\n\\t\\t'id' \\t=> 'mmc-help',\\n\\t\\t//'parent' => 'site-name',\\n\\t\\t'meta' => array( 'target' => '_blank' ),\\n\\t) );\\n}\",\n \"function training_image_callback() {\\n $output = array();\\n $file_path = drupal_realpath('modules/image/sample.png');\\n $source = (object) array(\\n 'uid' => 1,\\n 'uri' => $file_path,\\n 'filename' => basename($file_path),\\n 'filemime' => file_get_mimetype($file_path),\\n );\\n $directory = 'public://';\\n file_copy($source, $directory, $replace = FILE_EXISTS_REPLACE);\\n $array_style = image_styles();\\n foreach ($array_style as $val) {\\n $style_name = $val['name'];\\n $path = 'public://sample.png';\\n $attributes = array(\\n 'class' => 'simple-image',\\n );\\n $output[] = theme('image_style', array(\\n 'style_name' => $style_name,\\n 'path' => $path,\\n 'attributes' => $attributes,\\n ));\\n }\\n\\n return theme('item_list', array(\\n 'items' => $output,\\n 'type' => 'ol',\\n 'title' => t('Default image styles'),\\n ));\\n}\",\n \"public function get_image_link()\\n {\\n }\",\n \"function init() {\\n if( !is_object( $this->ipsclass->compiled_templates['skin_gallery_imagelisting'] ) ) {\\n \\t$this->ipsclass->load_template('skin_gallery_imagelisting');\\n }\\n $this->img_html = $this->ipsclass->compiled_templates[ 'skin_gallery_imagelisting' ];\\n }\",\n \"function buildImageDisplay($imageArray) {\\r\\n $id = '
      ';\\r\\n foreach ($imageArray as $image) {\\r\\n $id .= '
    • ';\\r\\n $id .= \\\"$image[invMake] $image[invModel] image on PHP Motors.com\\\";\\r\\n $id .= \\\"

      Delete $image[imgName]

      \\\";\\r\\n $id .= '
    • ';\\r\\n }\\r\\n $id .= '
    ';\\r\\n return $id;\\r\\n }\",\n \"public function initMenu()\\n {\\n add_menu_page(\\n 'Flickr Group Gallery',\\n 'Flickr Group Gallery',\\n 'administrator',\\n 'flickr-group-gallery',\\n array($this, 'render'),\\n 'dashicons-admin-generic'\\n );\\n }\",\n \"function ucf_post_list_display_gallery_before($content, $posts, $atts)\\n{\\n ob_start();\\n ?>\\n
    \\\">\\n Content > Images of the day and select the image you want to display.';\\n }\",\n \"private function insert4Action(){\\t\\t\\n\\t\\tinclude_once (System_Properties::ADMIN_MOD_PATH.'/models/default/db_selVPic.php');\\n\\t\\t$bike = $this -> adminNS -> bikeAds;\\n\\t\\t$this -> actParam = $bike;\\t\\t\\n\\t\\t$this -> loadBikeCat();\\n\\t\\t\\t\\t\\t\\n\\t\\tif (isset($bike['bikeID'])){\\n\\t\\t\\t$bikePhotos = db_selVPic(array(\\t'vType'=>System_Properties::BIKE_ABRV,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'vID' => $bike['bikeID']\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\tif (($bikePhotos != false) && is_array($bikePhotos) && (count($bikePhotos) > 0)){\\n\\t\\t\\t\\t$bikePhotoNew = array();\\n\\t\\t\\t\\tforeach($bikePhotos as $key => $kVal){\\n\\t\\t\\t\\t\\t$bikePhotoNew[$kVal['vPicID']] = $kVal;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t$this -> adminNS -> bikePhoto = $bikePhotoNew;\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t/*\\n\\t\\t\\tif (($bikePhotos != false) && is_array($bikePhotos) && (count($bikePhotos) > 0)){\\n\\t\\t\\t\\tif (is_array($this -> bikeNS -> bikePhoto)){\\n\\t\\t\\t\\t\\t$this -> bikeNS -> bikePhoto = array_merge($this -> bikeNS -> bikePhoto, $bikePhotos);\\n\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t$this -> bikeNS -> bikePhoto = $bikePhotos;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\t*/\\n\\t\\t}\\n\\t\\t$bike['bikePhoto'] = $this -> adminNS -> bikePhoto;\\t\\t\\n\\t\\t$this -> view -> bike = $bike;\\n\\t\\t$this -> render('insert3');\\t\\t\\t\\n\\t}\",\n \"public function addPage() {\\n $item = menu_get_item();\\n $content = system_admin_menu_block($item);\\n\\n if (count($content) == 1) {\\n $item = array_shift($content);\\n drupal_goto($item['href']);\\n }\\n\\n return theme('thumbwhere_host_add_list', array('content' => $content));\\n }\",\n \"public function show(ImgList $imgList)\\n {\\n //\\n }\",\n \"function sf_product_thumb_image_html($html) {\\n\\t\\t$html = '
  • '.$html.'
  • ';\\n\\t\\treturn $html;\\n\\t}\",\n \"function addSidebarItem($marker, $data) {\\r\\n\\t\\tif(!($this->showSidebar && is_object($marker))) return;\\r\\n\\t\\t$data['onclickLink'] = $marker->getClickJS();\\r\\n\\t\\t$this->sidebarLinks[] = \\\\JBartels\\\\WecMap\\\\Utility\\\\Shared::render($data, $this->conf['sidebarItem.']);\\r\\n\\t}\",\n \"function feedTheLoader() {\\n\\t\\n}\",\n \"function register_block_core_post_navigation_link()\\n {\\n }\",\n \"public function insert_gallery_shortcode() {\\n\\t\\t\\n\\t\\tcheck_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' );\\n\\t\\t// TODO: Update to insert ids into shortcode so it works with new media tool\\n\\t\\techo '[gallery]';\\n\\t\\tdie();\\n\\n\\t}\",\n \"function editor_insert_image($html, $id, $caption, $title, $align, $url, $size) {\\r\\n\\tlist($imgsrc) = image_downsize($id, 'hero-review');\\r\\n//\\tlist($imgsrc) = image_downsize($id, $size);\\r\\n\\r\\n\\t$html = \\\"
    \\\";\\r\\n\\t$html .= \\\"\\\\\\\"$caption\\\\\\\"\\\";\\r\\n\\tif ($caption) {\\r\\n\\t\\t$html .= \\\"
    $caption
    \\\";\\r\\n\\t}\\r\\n\\t$html .= \\\"
    \\\";\\r\\n\\treturn $html;\\r\\n}\",\n \"function register_block_core_page_list_item()\\n {\\n }\",\n \"function listing_image_add_metabox () {\\n\\t\\tadd_meta_box( 'listingimagediv', __( 'Image Containers Loop', 'text-domain' ), 'listing_image_metabox', 'product', 'side', 'low');\\n\\t}\",\n \"function register_block_core_gallery() {\\n\\tregister_block_type_from_metadata(\\n\\t\\t__DIR__ . '/gallery',\\n\\t\\tarray(\\n\\t\\t\\t'render_callback' => function ( $attributes, $content ) {\\n\\t\\t\\t\\treturn $content;\\n\\t\\t\\t},\\n\\t\\t)\\n\\t);\\n}\",\n \"function get_sponsors_list($value='')\\r{?>\\r\\r\\r\\r\\r
    ');\\n\\t\\techo('

    ');\\n\\t\\techo(\\\"\\\".getPara('imagelist','value2'));\\n\\t\\techo('

    ');\\n\\t\\techo('
    ');\\n\\t\\t\\n\\t\\t\\techo('
    \\n\\t\\t\\t\\t\\t
    ');\\n\\t\\t\\t$str2=\\\"select * from imagelist order by imageid desc\\\";\\n\\t\\t\\t$result2=mysql_query($str2) or die(mysql_error());\\n\\t\\t\\t$k=0;\\n\\t\\t\\twhile ($row2=mysql_fetch_array($result2))\\n\\t\\t\\t{\\n\\t\\t\\t\\tif($k==1)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t echo('
    \\n\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t
    ');\\n\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t echo('
    \\n\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t \\t\\n\\t\\t\\t\\t\\t
    ');\\n\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t$k++;\\t \\n\\t\\t\\t\\t}\\n\\t\\t\\t\\techo('
    \\n\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t &lsaquo;\\n\\t\\t\\t\\t\\t &rsaquo;\\n\\t\\t\\t\\t\\t
    ');\\n\\t\\t\\techo(\\\"
    \\\");\\n\\t\\t\\techo(\\\"
    \\\");\\n}\",\n \"function upload_img()\\n {\\n if ($this->isAdmin() == TRUE) {\\n $this->loadThis();\\n } else {\\n $this->global['pageTitle'] = '上传图片';\\n $this->global['pageName'] = 'carousel_upload';\\n $data['ret_Url'] = 'carousel_edit';\\n\\n $this->loadViews(\\\"uploading_img\\\", $this->global, $data, NULL);\\n }\\n }\",\n \"function theme_display_film_strip(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $pos, $sort_options, $mode = 'thumb', $date='', $filmstrip_prev_pos, $filmstrip_next_pos,$max_block_items,$thumb_width)\\r\\n{\\r\\n global $CONFIG, $THEME_DIR;\\r\\n global $template_film_strip, $lang_film_strip, $lang_common, $pic_count,$mar_pic;\\r\\n\\r\\n $superCage = Inspekt::makeSuperCage();\\r\\n\\r\\n static $template = '';\\r\\n static $thumb_cell = '';\\r\\n static $empty_cell = '';\\r\\n static $spacer = '';\\r\\n\\r\\n if (defined('THEME_HAS_FILM_STRIP_GRAPHIC')) { set_js_var('vertstrip', 1); }\\r\\n\\r\\n if ((!$template)) {\\r\\n $template = $template_film_strip;\\r\\n $thumb_cell = template_extract_block($template, 'thumb_cell');\\r\\n $empty_cell = template_extract_block($template, 'empty_cell');\\r\\n }\\r\\n\\r\\n $cat_link = is_numeric($aid) ? '' : '&amp;cat=' . $cat;\\r\\n $date_link = $date=='' ? '' : '&amp;date=' . $date;\\r\\n\\r\\n if ($superCage->get->getInt('uid')) {\\r\\n $uid_link = '&amp;uid=' . $superCage->get->getInt('uid');\\r\\n } else {\\r\\n $uid_link = '';\\r\\n }\\r\\n\\r\\n $i = 0;\\r\\n $thumb_strip = '';\\r\\n foreach($thumb_list as $thumb) {\\r\\n $i++;\\r\\n if ($mode == 'thumb') {\\r\\n if ($thumb['pos'] == $pos && !$superCage->get->keyExists('film_strip')) {\\r\\n $thumb['image'] = str_replace('class=\\\"image\\\"', 'class=\\\"image middlethumb\\\"', $thumb['image']);\\r\\n }\\r\\n // determine if thumbnail link targets should open in a pop-up\\r\\n if ($CONFIG['thumbnail_to_fullsize'] == 1) { // code for full-size pop-up\\r\\n if (!USER_ID && $CONFIG['allow_unlogged_access'] <= 2) {\\r\\n $target = 'javascript:;\\\" onclick=\\\"alert(\\\\''.sprintf($lang_errors['login_needed'],'','','','').'\\\\');';\\r\\n } elseif (USER_ID && USER_ACCESS_LEVEL <= 2) {\\r\\n $target = 'javascript:;\\\" onclick=\\\"alert(\\\\''.sprintf($lang_errors['access_intermediate_only'],'','','','').'\\\\');';\\r\\n } else {\\r\\n $target = 'javascript:;\\\" onclick=\\\"MM_openBrWindow(\\\\'displayimage.php?pid=' . $thumb['pid'] . '&fullsize=1\\\\',\\\\'' . uniqid(rand()) . '\\\\',\\\\'scrollbars=yes,toolbar=no,status=no,resizable=yes,width=' . ((int)$thumb['pwidth']+(int)$CONFIG['fullsize_padding_x']) . ',height=' . ((int)$thumb['pheight']+(int)$CONFIG['fullsize_padding_y']). '\\\\');';\\r\\n }\\r\\n } elseif ($aid == 'lastcom' || $aid == 'lastcomby') {\\r\\n $page = cpg_get_comment_page_number($thumb['msg_id']);\\r\\n $page = (is_numeric($page)) ? \\\"&amp;page=$page\\\" : '';\\r\\n $target = \\\"displayimage.php?album=$aid$cat_link$date_link&amp;pid={$thumb['pid']}$uid_link&amp;msg_id={$thumb['msg_id']}$page#comment{$thumb['msg_id']}\\\";\\r\\n } else {\\r\\n $target = \\\"displayimage.php?album=$aid$cat_link$date_link&amp;pid={$thumb['pid']}$uid_link#top_display_media\\\";\\r\\n }\\r\\n $params = array(\\r\\n '{LINK_TGT}' => $target,\\r\\n '{THUMB}' => $thumb['image'],\\r\\n '{ONE_WIDTH}' => \\\"width:\\\".$thumb_width.\\\"px; float: left\\\" ,\\r\\n );\\r\\n } else {\\r\\n $params = array(\\r\\n '{LINK_TGT}' => \\\"index.php?cat={$thumb['cat']}\\\",\\r\\n '{THUMB}' => $thumb['image'],\\r\\n '{ONE_WIDTH}' => \\\"width:\\\".$thumb_width.\\\"px; float: left\\\" ,\\r\\n );\\r\\n }\\r\\n $thumb_strip .= template_eval($thumb_cell, $params);\\r\\n }\\r\\n\\r\\n $tile1 = $THEME_DIR . 'images/tile1.gif';\\r\\n $tile2 = $THEME_DIR . 'images/tile2.gif';\\r\\n\\r\\n\\r\\n if (defined('THEME_HAS_NAVBAR_GRAPHICS')) {\\r\\n $location = $THEME_DIR;\\r\\n } else {\\r\\n $location= '';\\r\\n }\\r\\n $max_itme_width_ul = $max_block_items;\\r\\n if(($max_block_items%2)==0){\\r\\n $max_itme_width_ul = $max_block_items +1;\\r\\n }\\r\\n $set_width_to_film = \\\"width:\\\".($max_block_items*($thumb_width+4)).\\\"px; position:relative;\\\";\\r\\n\\r\\n $params = array('{THUMB_STRIP}' => $thumb_strip,\\r\\n '{COLS}' => $i,\\r\\n '{TILE1}' => $tile1,\\r\\n '{TILE2}' => $tile2,\\r\\n '{SET_WIDTH}' => $set_width_to_film,\\r\\n );\\r\\n\\r\\n ob_start();\\r\\n echo '
    ';\\r\\n if (!defined('THEME_HAS_FILM_STRIP_GRAPHIC')) { starttable($CONFIG['picture_table_width']); }\\r\\n echo template_eval($template, $params);\\r\\n if (!defined('THEME_HAS_FILM_STRIP_GRAPHIC')) { endtable(); }\\r\\n echo '
    ';\\r\\n $film_strip = ob_get_contents();\\r\\n ob_end_clean();\\r\\n\\r\\n return $film_strip;\\r\\n}\",\n \"function getbanners()\\n\\t\\t{\\n\\t\\t\\t$banners = $this->manage_content->getValue('banner_info','*');\\n\\t\\t\\techo '
    ';\\n\\t\\t\\tforeach($banners as $banner)\\n\\t\\t\\t{\\n\\t\\t\\t\\tif($banner['banner_status'] == 1)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\techo '';\\n\\t\\t\\t\\t\\techo '
    ';\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\techo '
    ';\\n\\t\\t}\",\n \"public function carregar_imagem()\\n\\t{\\n\\t\\t$id = $this->input->get(\\\"id_aluno\\\");\\n\\t\\t$dados[\\\"aluno\\\"] = $this->Aluno_Model->retorna_aluno($id);\\t\\n\\t\\t//\\tCARREGA A VIZUALIZACAO DA VIEW LISTA\\n\\t\\t$this->load->view('layout/cabecalho_secretaria');\\n\\t\\t$this->load->view('layout/menu_lateral_secretaria');\\n\\t\\t$this->load->view('conteudo/_secretaria/_aluno/fotografia', $dados);\\n\\t\\t$this->load->view('layout/rodape');\\n\\t\\t$this->load->view('layout/script');\\n\\t}\",\n \"public function displayImgTag() {\\n $urlimg = \\\"/plugins/graphontrackers/reportgraphic.php?_jpg_csimd=1&group_id=\\\".(int)$this->graphic_report->getGroupId().\\\"&atid=\\\". $this->graphic_report->getAtid();\\n $urlimg .= \\\"&report_graphic_id=\\\".$this->graphic_report->getId().\\\"&id=\\\".$this->getId();\\n \\n \\n echo 'getId() .'\\\" ';\\n if ($this->width) {\\n echo ' width=\\\"'. $this->width .'\\\" ';\\n }\\n if ($this->height) {\\n echo ' height=\\\"'. $this->height .'\\\" ';\\n }\\n echo ' alt=\\\"'. $this->title .'\\\" border=\\\"0\\\">';\\n }\",\n \"function forumAd($links) {\\n global $context;\\n\\n //echo $context['dir'];\\n\\n $content = '\\n

    Anime Empire on Youtube

    \\n\\n \\n ';\\n \\n return moduleBlack($content);\\n}\",\n \"function wp_img_tag_add_loading_attr($image, $context)\\n {\\n }\",\n \"public abstract function prepare_item_links($id);\",\n \"function fgallery_add_button($buttons) {\\n $fgallery_button = \\\" \\n \\\".__(\\\";\\n $buttons .= $fgallery_button;\\n return $buttons;\\n}\",\n \"function log_viewer_add_menu_item() {\\n\\techo '
  • Log Viewer
  • ';\\n}\",\n \"function buildImageDisplay($imageArray)\\n{\\n $id = '
      ';\\n foreach ($imageArray as $image) {\\n $id .= '
    • ';\\n $id .= \\\"$image[invMake] $image[invModel] image on PHP Motors.com\\\";\\n $id .= \\\"

      Delete $image[imgName]

      \\\";\\n $id .= '
    • ';\\n }\\n $id .= '
    ';\\n return $id;\\n}\",\n \"function add($pos,$url,$img,$title,$accesskey='')\\n{\\n\\tif($pos==0)\\n\\t\\t$this->reflist[]=array($url,$img,$title,$accesskey);\\n\\telse\\n\\t\\tarray_unshift($this->reflist,array($url,$img,$title,$accesskey));\\n}\",\n \"public function insert($banner);\",\n \"function floated_admin_avatar($name)\\n {\\n }\",\n \"protected function setLinksBar()\\n {\\n $mysidia = Registry::get(\\\"mysidia\\\");\\n $this->linksBar = new Paragraph;\\n $linkTitle = new Comment(\\\"{$mysidia->user->username}'s Links:\\\");\\n $linkTitle->setBold();\\n $this->linksBar->add($linkTitle);\\n \\n $linksList = new LinksList(\\\"ul\\\");\\n $this->setLinks($linksList);\\n \\n $this->linksBar->add($linksList);\\n $this->setDivision($this->linksBar);\\n }\",\n \"function wpvideocoach_admin_toolbar() {\\r\\n\\tglobal $wp_admin_bar;\\r\\n\\t\\r\\n\\t// Add the Parent link.\\r\\n\\t$adminurl = admin_url('admin.php?page=wpvideocoach');\\r\\n\\t$admin_toolbar_title = wpvideocoach_toolbar_link_title();\\r\\n\\t$wp_admin_bar->add_menu( array(\\r\\n\\t\\t'title' => $admin_toolbar_title,\\r\\n\\t\\t'href' => $adminurl,\\r\\n\\t\\t'id' => 'wpvideocoach_links',\\r\\n\\t));\\r\\n\\r\\n}\",\n \"public function getThumbnailLocation() {\\n\\t\\treturn Images::BLIZZARD_PATH . $this->thumbnail;\\n\\t}\",\n \"function ll_makelist2($ll_sociallinks, $widgetname){\\n\\techo '';\\n\\tunset($ll_links);\\n}\",\n \"function widgetopts_tab_devices( $args ){ ?>\\n
  • \\n -devices\\\" title=\\\"\\\" > \\n
  • \\n object))\\n\\t\\t{\\n\\t\\t\\t$ilLocator->addItem($this->object->getTitle(),\\n\\t\\t\\t\\t$this->getGotoLink($this->object->getRefId()), \\\"\\\", $_GET[\\\"ref_id\\\"]);\\n\\t\\t}\\n\\t}\",\n \"function banner_images_init() {\\n\\n\\t$args = array(\\n\\n\\t\\t'label' => 'Banner Image',\\n\\n\\t\\t'public' => true,\\n\\n\\t\\t'show_ui' => true,\\n\\n\\t\\t'capability_type' => 'post',\\n\\n\\t\\t'hierarchical' => false,\\n\\n\\t\\t'rewrite' => array('slug' => 'banner'),\\n\\n\\t\\t'query_var' => true,\\n\\n\\t\\t'menu_icon' => 'dashicons-format-gallery',\\n\\n\\t\\t'supports' => array(\\n\\n\\t\\t\\t'title', \\n\\n\\t\\t\\t'thumbnail',\\n\\n\\t\\t)\\n\\n\\t);\\n\\n\\tregister_post_type( 'banner', $args );\\n\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.5821236","0.5731083","0.5348935","0.52925766","0.5190834","0.5184053","0.5172822","0.5155723","0.50927645","0.50896585","0.5076415","0.50673866","0.5060036","0.5054299","0.50460917","0.5045767","0.5042095","0.5017115","0.50115144","0.5004158","0.4980735","0.4956837","0.49423912","0.4928043","0.49230126","0.49223438","0.49101236","0.49046093","0.48887613","0.48878822","0.48688093","0.48680714","0.48528615","0.48511007","0.4845798","0.48413694","0.4839852","0.48339164","0.48274684","0.48119366","0.48076206","0.4806047","0.4805241","0.48038334","0.4803516","0.48026392","0.48017097","0.47957262","0.47950348","0.47785386","0.47722015","0.4768845","0.47551918","0.47527117","0.47473624","0.4735356","0.47347176","0.47335154","0.47241735","0.47173527","0.4715089","0.47086036","0.47027618","0.46968007","0.46915665","0.46901283","0.4687833","0.4686301","0.46854484","0.4683014","0.46829","0.4680661","0.46804768","0.46674833","0.4661841","0.4660698","0.46576256","0.4657087","0.4648513","0.46477348","0.46467093","0.4640377","0.46360382","0.4634233","0.4629484","0.46285933","0.46192917","0.46168268","0.46124274","0.46123278","0.4612135","0.46052212","0.46048588","0.45925274","0.4592337","0.4589922","0.4589025","0.45825273","0.45800534","0.45786202"],"string":"[\n \"0.5821236\",\n \"0.5731083\",\n \"0.5348935\",\n \"0.52925766\",\n \"0.5190834\",\n \"0.5184053\",\n \"0.5172822\",\n \"0.5155723\",\n \"0.50927645\",\n \"0.50896585\",\n \"0.5076415\",\n \"0.50673866\",\n \"0.5060036\",\n \"0.5054299\",\n \"0.50460917\",\n \"0.5045767\",\n \"0.5042095\",\n \"0.5017115\",\n \"0.50115144\",\n \"0.5004158\",\n \"0.4980735\",\n \"0.4956837\",\n \"0.49423912\",\n \"0.4928043\",\n \"0.49230126\",\n \"0.49223438\",\n \"0.49101236\",\n \"0.49046093\",\n \"0.48887613\",\n \"0.48878822\",\n \"0.48688093\",\n \"0.48680714\",\n \"0.48528615\",\n \"0.48511007\",\n \"0.4845798\",\n \"0.48413694\",\n \"0.4839852\",\n \"0.48339164\",\n \"0.48274684\",\n \"0.48119366\",\n \"0.48076206\",\n \"0.4806047\",\n \"0.4805241\",\n \"0.48038334\",\n \"0.4803516\",\n \"0.48026392\",\n \"0.48017097\",\n \"0.47957262\",\n \"0.47950348\",\n \"0.47785386\",\n \"0.47722015\",\n \"0.4768845\",\n \"0.47551918\",\n \"0.47527117\",\n \"0.47473624\",\n \"0.4735356\",\n \"0.47347176\",\n \"0.47335154\",\n \"0.47241735\",\n \"0.47173527\",\n \"0.4715089\",\n \"0.47086036\",\n \"0.47027618\",\n \"0.46968007\",\n \"0.46915665\",\n \"0.46901283\",\n \"0.4687833\",\n \"0.4686301\",\n \"0.46854484\",\n \"0.4683014\",\n \"0.46829\",\n \"0.4680661\",\n \"0.46804768\",\n \"0.46674833\",\n \"0.4661841\",\n \"0.4660698\",\n \"0.46576256\",\n \"0.4657087\",\n \"0.4648513\",\n \"0.46477348\",\n \"0.46467093\",\n \"0.4640377\",\n \"0.46360382\",\n \"0.4634233\",\n \"0.4629484\",\n \"0.46285933\",\n \"0.46192917\",\n \"0.46168268\",\n \"0.46124274\",\n \"0.46123278\",\n \"0.4612135\",\n \"0.46052212\",\n \"0.46048588\",\n \"0.45925274\",\n \"0.4592337\",\n \"0.4589922\",\n \"0.4589025\",\n \"0.45825273\",\n \"0.45800534\",\n \"0.45786202\"\n]"},"document_score":{"kind":"string","value":"0.61316556"},"document_rank":{"kind":"string","value":"0"}}},{"rowIdx":439,"cells":{"query":{"kind":"string","value":"get image categoryselector form element"},"document":{"kind":"string","value":"function abl_droploader_get_image_cat_select() {\n\t\t$image_categories = getTree('root', 'image');\n\t\t//$image_categories_select = str_ireplace(\"\\n\", '', tag('' . br .\n\t\t//\ttreeSelectInput('category', $image_categories, '', 'image-category'), 'div', ' id=\"abl-droploader-image-cat-sel\" class=\"category\"'));\n\t\t//$alt_caption =\ttag(''.br.\n\t\t//\t\tfInput('text', 'alt', '', 'edit', '', '', 50, '', 'alt-text'), 'div', ' class=\"alt text\"').\n\t\t//\ttag(''.br.\n\t\t//\t\t''\n\t\t//\t\t, 'div', ' class=\"caption description text\"');\n\t\t$image_categories_select = str_ireplace(\"\\n\", '', tag(tag(''.br.\n\t\t\t\ttreeSelectInput('category', $image_categories, '', 'image-category'), 'div', ' class=\"category\"'), 'div', ' id=\"abl-droploader-image-cat-sel\"'));\n\t\treturn $image_categories_select;\n\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["public function getOptionCategoryImage()\n {\n return $this->optionCategoryImage;\n }","function add_category_image ( $taxonomy ) { ?>\n
    \n \n \n
    \n

    \n \" />\n \" />\n

    \n
    \n getNetx();\n\n\t\t$supportedFileTypes = array(\n\t\t\t//images\n\t\t\t\"jpg\",\n\t\t\t\"jpeg\",\n\t\t\t\"png\",\n\t\t\t\"gif\",\n\t\t\t\"ico\",\n\t\t\t//documents\n\t\t\t\"pdf\",\n\t\t\t\"doc\",\n\t\t\t\"ppt\",\n\t\t\t\"odt\",\n\t\t\t\"xls\",\n\t\t\t\"psd\",\n\t\t\t//audio\n\t\t\t\"mp3\",\n\t\t\t\"m4a\",\n\t\t\t\"ogg\",\n\t\t\t\"wav\",\n\t\t\t//video\n\t\t\t\"mp4\",\n\t\t\t\"mov\",\n\t\t\t\"wmv\",\n\t\t\t\"avi\",\n\t\t\t\"mpg\",\n\t\t\t\"ogv\",\n\t\t\t\"3gp\",\n\t\t\t\"3g2\"\n\t\t);\n\n\t\t$pagingSize = intval($options['netx_paging_size']);\n\t\tif($pagingSize == 0) {\n\t\t\t$pagingSize = 200;\n\t\t}\n\n\t\t//get current category id\n\t\t$currentCatId = (trim($_POST['catId']) != '') ? $_POST['catId'] : $options['netx_base_category_id'];\n\n\t\t//get assets in current category\n\t\t$catAssets = $netx->getAssetsByCategoryID($currentCatId);\n\t\t$catAssetsNum = 0;\n\t\tforeach($catAssets as $key=>$asset){\n\t\t\t$catAssetsNum++;\n\t\t}\n\n\t\t$postID = intval($_REQUEST['post_id']);\n//\t$proxyURL = dirname(__FILE__) . '/proxy.php'\n\t\t?>\n\t\t\n\t\tgetAssetsByCategoryID($currentCatId,$paged);\n\t\tif($catAssetsPages > 1){\n\n\t\t\techo '
    ';\n\t\t\tif($paged != 1){\n\t\t\t\techo '&laquo;';\n\t\t\t}\n\t\t\tfor($i=($catAssetsPages <= 5) ? 1 : $paged;$i<=$paged+4;$i++){\n\t\t\t\tif($paged == $i){\n\t\t\t\t\techo ''.$i.'';\n\t\t\t\t} else {\n\t\t\t\t\techo ''.$i.'';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($paged != $catAssetsPages){\n\t\t\t\techo '&raquo;';\n\t\t\t}\n\t\t\techo '
    ';\n\t\t}\n\n\t\t$catAssetsPageFiltered = array();\n\n\t\tif(count($catAssetsPage) > 0) {\n\t\t\tforeach($catAssetsPage as $key=>$asset){\n\t\t\t\t$assetID = $asset->getAssetID();\n\t\t\t\t$ast = $netx->getAsset($assetID);\n\n\t\t\t\t$fileIsSupported = false;\n\t\t\t\tforeach($supportedFileTypes as $supportedFileType) {\n\t\t\t\t\t$filename = $ast->getFile();\n\n\t\t\t\t\t$substrlength = strlen('.' . $supportedFileType);\n\t\t\t\t\tif(substr($filename, - $substrlength) === ('.' . $supportedFileType)) {\n\t\t\t\t\t\t$fileIsSupported = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif($fileIsSupported) {\n\t\t\t\t\t$catAssetsPageFiltered[$key] = $asset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(count($catAssetsPageFiltered) > 0) {\n\t\t\tforeach($catAssetsPageFiltered as $key=>$asset){\n\t\t\t\t$assetID = $asset->getAssetID();\n\t\t\t\t$ast = $netx->getAsset($assetID);\n\t\t\t\t?>\n\t\t\t\t
    \" class=\"media-item\">\n\t\t\t\t\t\"<?phpgetLabel1(); ?>\" src=\"netxThumbUrl($assetID) ?>\" />\n\t\t\t\t\tShow\n\t\t\t\t\tHide\n\t\t\t\t\t
    getLabel1(); ?>
    \n\t\t\t\t\t\n\n\t\t\t\t\t\t\" class=\"media-item-info\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
    \" class=\"\">\n\t\t\t\t\t\t\t\t

    netxPreviewUrl($assetID); ?>\">\"\"netxThumbUrl($assetID); ?>\" class=\"thumbnail\">

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    File name: getLabel2(); ?>

    \n\t\t\t\t\t\t\t\t

    File type: getLabel3(); ?>

    \n\t\t\t\t\t\t\t\t

    File size: getLabel4(); ?>

    \n\t\t\t\t\t\t\t\t

    Upload date: getLabel5(); ?>

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \" name=\"asset[][image-size]\">
    \n\t\t\t\t\t\t\t\t
    \" name=\"asset[][image-size]\">
    \n\t\t\t\t\t\t\t\t
    \" name=\"asset[][image-size]\">
    \n\n\t\t\t\t\t\t\t\tgetViewNames())){\n\t\t\t\t\t\t\t\t\tforeach($ast->getViewNames() as $viewName) {\n\t\t\t\t\t\t\t\t\t\tif($viewName === 'previewXMP') {\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t
    \" id=\"image-size-full-\" name=\"asset[][image-size]\">
    \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\t\t][enable-download]\" name=\"asset[][enable-download]\">\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\" value=\"Insert into Post\" class=\"button netx-submit-button netx-add-item-submit\" id=\"\" name=\"send[]\">\n\t\t\t\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\n\t\t\t

    No Files Found

    \n\t\t\tterm_id;\n $cat_meta = get_option( \"category_$t_id\");\n\t?>\n\t\n\t\t\n\t\t\">
    \n\t \n\t\t\n\t\n\t\n\n\t\t
    \n\t\t\t

    \n\t\t\t\n\t\t\t\n\t\t\t

    \n\t\t\t\tlabels->singular_name ); ?>\n\t\t\t

    \n\t\t
    \n\t\t\n\t\tterm_id]['category_icon_code'] ) ? esc_attr( $tag_extra_fields[$tag->term_id]['category_icon_code'] ) : '';\r\n\t$category_image = isset( $tag_extra_fields[$tag->term_id]['category_image'] ) ? esc_attr( $tag_extra_fields[$tag->term_id]['category_image'] ) : '';\r\n $category_icon_color = isset( $tag_extra_fields[$tag->term_id]['category_icon_color'] ) ? esc_attr( $tag_extra_fields[$tag->term_id]['category_icon_color'] ) : '';\r\n $your_image_url = isset( $tag_extra_fields[$tag->term_id]['your_image_url'] ) ? esc_attr( $tag_extra_fields[$tag->term_id]['your_image_url'] ) : '';\r\n ?>\r\n\r\n
    \t\r\n\r\n \r\n \t\r\n \t\r\n \r\n\t\t\r\n \r\n \r\n\t\t\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n
    \r\n\r\n\t\t\t\t\" />\r\n

    : fontawesome.io/icons Ex: fa fa-desktop

    \r\n\r\n\t\t\t
    \r\n ';\r\n echo '';\r\n echo '
    ';\r\n echo '
    '; \r\n\r\n } else {\r\n\r\n echo '
    ';\r\n echo '';\r\n echo '
    ';\r\n echo '
    ';\r\n\r\n }\r\n\r\n ?>\r\n
    \r\n\r\n /inc/color-picker/css/colorpicker.css\" />\r\n \r\n \r\n\r\n

    \r\n\r\n \" style=\"margin-top: 20px; max-width: 90px; visibility: hidden;\" />\r\n\r\n
    \r\n ';\r\n echo '';\r\n echo '
    ';\r\n echo '
    '; \r\n\r\n } else {\r\n\r\n echo '
    ';\r\n echo '';\r\n echo '
    ';\r\n echo '
    ';\r\n\r\n }\r\n\r\n ?>\r\n
    \r\n
    \r\n\r\n \n \n \n \n \n \n term_id, 'category-image-id', true ); ?>\n \">\n
    \n \n \n \n
    \n

    \n \" />\n \" />\n

    \n \n \n FindControl(\"selectorGroup\");\r\n\t}","public function getCategoryImage($categoryId)\n {\n //$AccentOpaque = array(\"15\",\"50\",\"51\",\"52\",\"57\");\n //$Williamsburg = array(\"26\",\"86\",\"87\",\"88\",\"93\"); \n //$Carolina = array(\"23\",\"59\",\"66\",\"274\"); \n //$Springhill = array(\"25\",\"77\",\"78\",\"79\",\"84\");\n\t $AccentOpaque = array(\"57\");\n\t\t$Hammermill = array(\"246\");\n\t\t$Williamsburg = array(\"93\"); \n\t\t$Carolina = array(\"66\"); \n\t\t$Springhill = array(\"84\");\n\t\t//$PPAllBrands = array(\"209\");\n\t\t$Envelope = array(\"131\");\n\t\t$Forms = array(\"262\", \"263\", \"264\", \"265\", \"266\", \"267\", \"269\", \"270\", \"271\");\n\t\t$Bristols = array(\"233\", \"234\", \"235\", \"236\", \"237\", \"238\", \"239\", \"240\", \"241\");\n\t\t$Specialty = array(\"152\");\n\t\t$HotCupsLids = array(\"182\", \"178\", \"179\", \"183\", \"181\", \"220\", \"228\", \"229\", \"230\");\n\t\t$ColdCupsLids = array(\"158\", \"154\", \"275\", \"276\", \"277\");\n\t\t$FoodPackaging = array(\"213\", \"172\", \"212\", \"221\", \"222\", \"223\", \"214\", \"278\");\n \n //For category logo\n if(in_array($categoryId, $AccentOpaque)){\n //$catImgLogo = \"logo-accentopaque.jpg\";\n $catImgLogo = \"Accent Opaque\";\n }\n\t\t else if(in_array($categoryId, $Hammermill)){\n $catImgLogo = \"Hammermill\";\n }\n else if(in_array($categoryId, $Williamsburg)){\n $catImgLogo = \"Williamsburg\";\n }\n else if(in_array($categoryId, $Carolina)){\n $catImgLogo = \"Carolina\";\n }\n else if(in_array($categoryId, $Springhill)){\n $catImgLogo = \"Springhill\";\n }\n\t\t else if(in_array($categoryId, $Envelope)){\n $catImgLogo = \"Envelope\";\n }\n\t\t else if(in_array($categoryId, $Forms)){\n $catImgLogo = \"Forms\";\n }\n\t\t else if(in_array($categoryId, $Bristols)){\n $catImgLogo = \"Bristols\";\n }\n\t\t else if(in_array($categoryId, $Specialty)){\n $catImgLogo = \"Specialty\";\n }\n\t\t else if(in_array($categoryId, $HotCupsLids)){\n $catImgLogo = \"Hot Cups and Lids\";\n }\n\t\t else if(in_array($categoryId, $ColdCupsLids)){\n $catImgLogo = \"Cold Cups and Lids\";\n }\n\t\t else if(in_array($categoryId, $FoodPackaging)){\n $catImgLogo = \"Food Packaging\";\n }\n return $catImgLogo;\n }","function category_edit_thumbnail_field( $tag, $taxonomy ) {\n\t\tglobal $wp_taxonomies;\n\t\t\n\t\t$image = get_option( 'category_thumbnail_image' );\n\t\t\n\t\tif ( is_array( $image ) && array_key_exists( $tag->term_id, $image ) ) {\n\t\t\t$image = $image[ $tag->term_id ];\n\t\t\t$attach = wp_get_attachment_image_src( (int) $image );\n\t\t\n\t\t} else {\n\t\t\t$image = false;\n\t\t\t\n\t\t}\n\t?>\n\t\n\t\t\n\t\t\t

    \n\t\t\n\t\t\n\t\t\t
    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t\t\" />\n\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\" data-uploader-title=\"\" data-uploader-button-text=\"\" href=\"#\" class=\"button thickbox\" style=\"display:none;\">\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\" href=\"#\">\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t\n\t\t\t\t\" data-uploader-title=\"\" data-uploader-button-text=\"\" href=\"#\" class=\"button thickbox\">\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\" href=\"#\" style=\"display:none;\">\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t
    \n\t\t\t\n\t\t\t\" />\n\t\t\t\n\t\t\t

    \n\t\t\t\tlabels->singular_name ); ?>\n\t\t\t

    \n\t\t\t\n\t\t\n\t\n\tterm_id, 'banner_id', true ) );\n\n\t\t\tif ( $banner_id ) {\n\t\t\t\t$image = wp_get_attachment_thumb_url( $banner_id );\n\t\t\t} else {\n\t\t\t\t$image = wc_placeholder_img_src();\n\t\t\t}\n\t\t\t?>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
    \" width=\"60px\" height=\"60px\" />
    \n\t\t\t\t\t
    \n\t\t\t\t\t\t\" />\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t
    \n\t\t\t\t\n\t\t\t\t
    \" width=\"60px\" height=\"60px\" />
    \n\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
    \n\n\n\t\t\t\n\t\t\t\t
    \n\t\t\t
    \n\t\t\tExcludeFromSearch = \"false\";\r\n if ( $id != -1 )\r\n {\r\n $this->ID = $id;\r\n $this->get( $this->ID );\r\n }\r\n }","function gtags_group_category_form() {\n\tglobal $bp, $show_group_add_form_cats;\t\n\tif ($show_group_add_form_cats) return; // prevents showing form twice\n\t$show_group_add_form_cats = true;\n\n\t// the group category\t\n\t$group_cats = get_option('gtags_category'); \n\tif (empty($group_cats)) return;\n\t\n\t$selected = groups_get_groupmeta( $bp->groups->current_group->id, 'gtags_group_cat' ); \n\t?>\n\t\n\t
    exec_SELECTquery($field,$table,$where,$groupBy='',$orderBy,$limit='');\n\t\twhile($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\tif ($row['image']=='') {\n\t\t\t\t// get image of parent category\n\t\t\t\t$whereTemp = 'deleted = 0 AND hidden=0 AND uid = ' . $row['parent_uid'];\n\t\t\t\t$res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery($field,$table,$whereTemp);\n\t\t\t\t$row2 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res2);\n\t\t\t\t$GLOBALS['TYPO3_DB']->sql_free_result($res2);\n\t\t\t\t$catImg[$row['uid']] = $row2['image'];\n\t\t\t} else {\n\t\t\t\t$catImg[$row['uid']] = $row['image'];\n\t\t\t}\n\t\t}\n\t\t$GLOBALS['TYPO3_DB']->sql_free_result($res);\n\n\t\treturn $catImg;\n\t}","function colorpicker_field_add_new_category( $taxonomy ) { ?> \r\n\t
    \r\n\t \r\n\t \r\n\t

    This is the field description where you can tell the user how the color is used in the theme.

    \r\n\t
    set_valid_image_data();\n $cursel = $this->image_name;\n\n $this->select_css = '';\n $this->select_html = '';\n // We will be wrapped in a \n $this->select_html .= \"\n\" . PLUGIN_KARMA_IMAGE . \"
    \n&nbsp;\".PLUGIN_KARMA_IMAGE_DESC.\"\";\n if ($serendipity['version'][0] < 2) {\n $this->select_html .= \"\n\n\n\n\n\\n\";\n }\n $this->select_html .= \"\n\";\n // Add the 'text-only' selection and its CSS\n if ($cursel == '0') {\n $checked = 'checked=\"checked\" ';\n } else {\n $checked = '';\n }\n $this->image_name = '0';\n $bar = $this->createRatingBar('', 0, 0, 'textbar');\n $this->select_html .= \"\n\n\\n\";\n $this->select_css .= \"\n.textbar, .textbar a, .textbar a:hover {\n font-size: 100%;\n position: relative;\n background: none;\n}\n.serendipityAdminContent span.textbar {\n color: black !important;\n}\n\";\n // Retrieve all the *valid* images from the image directory\n $files = $this->getImageFiles();\n // Add an
      for each rating bar, and add its CSS overrides\n $n = 0;\n foreach ($files as $fdata) {\n // Columnize\n if (($n % 3) == 0) {\n // Time to start a new row\n $this->select_html .= \"
    \\n\\n\";\n }\n\n // Set the image data\n $fname = $fdata['fname'];\n $height = $fdata['height'];\n $width = $fdata['width'];\n $ratio = $width / $height;\n // If this is a single segment, adjust width\n if ($ratio < $this->max_segment_ratio) {\n $width = $width * 5;\n }\n $height = $height / 3;\n // Set up class variables correctly\n $this->image_name = $fname;\n $this->image_width = $width;\n $this->image_height = $height;\n\n // Create a rating bar of this image\n //\n // What would be a good CSS class for this image?\n $css_class = str_replace(array('.',' '), array('_','_'), $fname);\n $checked = '';\n if ($fname == $cursel) {\n $checked = 'checked=\"checked\" ';\n }\n $bar_html = \n\"\\n\";\n $bar_html = sprintf($bar_html, '', '2.5 of 5', '1');\n $this->select_html .= $bar_html;\n // Add the necessary CSS to the stylesheet (will be added when css hooks are called)\n // Sorry to interrupt your regularly scheduled HTML; I need to\n // use the $css_class while it's still here.\n $this->select_css .= \"\n/* Overrides for $css_class */\n.$css_class \n{\n width: ${width}px;\n height: ${height}px;\n}\n.$css_class,\n.$css_class a:hover,\n.$css_class .serendipity_karmaVoting_current-rating\n{\n background-image: url({$serendipity['baseURL']}plugins/serendipity_event_karma/img/${fname});\n}\n.$css_class,\n.$css_class a,\n.$css_class .serendipity_karmaVoting_current-rating\n{\n line-height: ${height}px;\n height: ${height}px;\n}\n\n\";\n $n++;\n } // Go back up for another image\n\n // Check for nothing displayed\n if ($n == 0) {\n // There were no images!\n $this->select_html .= \"\\n\";\n }\n\n // End the table, with a config-item bottom-border separator\n $this->select_html .= \n\"\\n
    \" . PLUGIN_KARMA_STATISTICS_POINTS_NO . \"
    $bar
    \n \n $fname
    \\n\" . \n $this->createRatingBar('', -1, 2, $css_class) .\n\"
    \" . PLUGIN_KARMA_NO_IMAGES . \"
    \\n\";\n if ($serendipity['version'][0] < 2) {\n $this->select_html .= \n\"&nbsp;\\n\";\n }\n // The config item and row are closed by the core code\n\n return $this->select_html;\n }","private function categoriesFormInputs()\n {\n // Get the field name of the field with the category icon\n // #47631, dwildt, 1-\n //$arrLabels[ 'catIcon' ] = $this->confMap['configuration.']['categories.']['fields.']['categoryIcon'];\n // #47631, #i0007, dwildt, 10+\n switch ( true )\n {\n case( $this->pObj->typoscriptVersion <= 4005004 ):\n $arrLabels[ 'catIcon' ] = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'fields.' ][ 'categoryIcon' ];\n break;\n case( $this->pObj->typoscriptVersion <= 4005007 ):\n default:\n $arrLabels[ 'catIcon' ] = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'fields.' ][ 'marker.' ][ 'categoryIcon' ];\n break;\n }\n // #47631, #i0007, dwildt, 10+\n // Default space in HTML code\n $tab = ' ';\n\n // FOREACH category label\n//$this->pObj->dev_var_dump( $this->arrCategories );\n // #i0118, dwildt, 1-/+\n //foreach ( $this->arrCategories[ 'labels' ] as $labelKey => $labelValue )\n foreach ( ( array ) $this->arrCategories[ 'labels' ] as $labelKey => $labelValue )\n {\n // Get the draft for an input field\n $cObj_name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'form_input' ];\n $cObj_conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'form_input.' ];\n $input = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\n // replace the category marker\n $input = str_replace( '###CAT###', $labelValue, $input );\n // 4.1.17, 120927, dwildt\n // replace the category marker\n //$labelValueWoSpc = str_replace( ' ', null, $labelValue );\n $labelValueWoSpc = $this->zz_properFormLabel( $labelValue );\n $input = str_replace( '###CAT_WO_SPC###', $labelValueWoSpc, $input );\n // 4.1.17, 120927, dwildt\n // #54548, 131221, dwildt, 6+\n $class = $this->arrCategories[ 'cssClass' ][ $labelKey ];\n if ( !empty( $class ) )\n {\n $class = ' class=\"' . $class . '\"';\n }\n $input = str_replace( '###CLASS###', $class, $input );\n\n // IF draft for an input field contains ###IMG###, render an image\n $pos = strpos( $input, '###IMG###' );\n if ( !( $pos === false ) )\n {\n // SWITCH : Render the image\n switch ( true )\n {\n // #i0062\n case( $labelKey == $this->arrWoCategories[ 'iconKey' ] ):\n $name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey ];\n $conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey . '.' ];\n $img = $this->pObj->cObj->cObjGetSingle( $name, $conf );\n break;\n case( is_array( $this->arrCategories[ 'icons' ] ) ):\n // 4.1.7, dwildt, +\n $this->cObjDataAddArray( array( $arrLabels[ 'catIcon' ] => $this->arrCategories[ 'icons' ][ $labelKey ] ) );\n $img = $this->renderMapMarkerVariablesSystemItem( 'categoryIconLegend' );\n $this->cObjDataRemoveArray( array( $arrLabels[ 'catIcon' ] => $this->arrCategories[ 'icons' ][ $labelKey ] ) );\n // 4.1.7, dwildt, +\n break;\n default:\n // Render the image\n $name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey ];\n $conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey . '.' ];\n $img = $this->pObj->cObj->cObjGetSingle( $name, $conf );\n break;\n }\n // SWITCH : Render the image\n\n $input = str_replace( '###IMG###', $img, $input );\n }\n // IF draft for an input field contains ###IMG###, render an image\n\n $arrInputs[] = $tab . $input;\n }\n // FOREACH category label\n // Move array of input fields to a string\n // #i0118, dwildt, 1-/+\n //$inputs = implode( PHP_EOL, $arrInputs );\n $inputs = implode( PHP_EOL, ( array ) $arrInputs );\n $inputs = trim( $inputs );\n\n // RETURN input fields\n return $inputs;\n }","public function getImageTag();","public function getName()\n {\n return 'category_form';\n }","public function getValueAfterElementHtml()\n {\n $html = '';\n\n switch ($this->getAttribute()) {\n case 'category_ids':\n $image = $this->_assetRepo->getUrl('images/rule_chooser_trigger.gif');\n break;\n }\n\n if (!empty($image)) {\n $html = '\"\"';\n }\n return $html;\n }","public function getImagenesIndexCategorias(){\n foreach($this->indexContent as $content){\n //echo \"--------------------- Imagenes --------------
    \";\n $vectorImagenes = array();\n $dom = new DOMDocument();\n $dom->loadHTML(\"$content\");\n $xpath = new DOMXPath($dom);\n $tag = \"div\";\n $class = \"home-category-box\";\n $consulta = \"//\".$tag.\"[@class='\".$class.\"']\";\n $resultados = $xpath->query($consulta);\n if ($resultados->length > 0){\n $contador = 0;\n foreach($resultados as $imagenes){\n if ($contador == 0){\n $todasImagenes = $imagenes->getElementsByTagName(\"img\");\n if ($todasImagenes->length > 0){\n foreach($todasImagenes as $imagen){\n $urlImagen = $imagen->getAttribute(\"src\");\n //echo \"url imagen categorias padre: \".$urlImagen.\"
    \";\n array_push($vectorImagenes,$urlImagen);\n }\n }\n }\n $contador++;\n }\n }\n //echo \"--------------------- Fin Imagenes --------------
    \";\n }\n return $vectorImagenes;\n }","public function getCategoryIcon();","public function getFormCategory()\n\t{\n\t\treturn strtolower($this->_removeNonAlphaCharacters($this->category));\n\t}","public function getSearchCategory(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n return $objectManager->get ( 'Apptha\\Airhotels\\Block\\Booking\\Form' );\n }","public function category() {\n\t\treturn static::get_thrive_advanced_label();\n\t}","function work_category_add_new_meta_field() {\r\n\t\t$textdomain = 'milk';\r\n\t\t?>\r\n\t \t\t
    \r\n\t \t\t\t

    \r\n\t \t\t\t\t\r\n\t \t\t\t\t
    \r\n\t \t\t\t\t\r\n\t \t\t\t

    \r\n\t\t\t \r\n\t\t\t\t
    \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tdata-uploader_button_text=\r\n\t\t\t\t\t\tvalue=/>\r\n\t\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t
    \r\n\t\t\t \t

    \r\n\t \t\t\t\t\r\n\t \t\t\t\t
    \r\n\t \t\t\t\t\r\n\t \t\t\t

    \r\n\t \t\t\t
    \r\n\t\t \t\t\t\r\n\t\t\t\t
    \r\n\t\t\t
    \r\n\t 'group_60c9f2328988d',\n 'title' => 'Category Options',\n 'fields' => array(\n array(\n 'key' => 'field_60c9f24923514',\n 'label' => 'Category Image',\n 'name' => self::ACF_CAT_IMAGE,\n 'type' => 'image',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'return_format' => 'url',\n 'preview_size' => 'medium',\n 'library' => 'all',\n 'min_width' => '',\n 'min_height' => '',\n 'min_size' => '',\n 'max_width' => '',\n 'max_height' => '',\n 'max_size' => '',\n 'mime_types' => '',\n ),\n ),\n 'location' => array(\n array(\n array(\n 'param' => 'taxonomy',\n 'operator' => '==',\n 'value' => 'category',\n ),\n ),\n ),\n 'menu_order' => 0,\n 'position' => 'normal',\n 'style' => 'default',\n 'label_placement' => 'top',\n 'instruction_placement' => 'label',\n 'hide_on_screen' => '',\n 'active' => true,\n 'description' => '',\n ));\n \n endif;\n }","public function buildForm(FormBuilderInterface $builder, array $options)\n {\n// dd($category->findAll());\n $builder\n ->add('price')\n ->add('name')\n ->add('description')\n /*->add('category', CollectionType::class, array(\n 'entry_type' => CategoryType::class,\n 'allow_add' => true,\n ))*/\n ->add('category', EntityType::class, array(\n 'class' => Category::class,\n 'query_builder' => function (EntityRepository $repository) {\n return $repository -> createQueryBuilder('c')\n ->orderBy('c.name', 'ASC');\n },\n 'choice_label' => 'name',\n ))\n// ->add('images', CollectionType::class, array(\n// 'entry_type' => ImageType::class\n// ))\n ->add('images', FileType::class, [\n 'mapped' => false,\n 'label' => 'Upload images'\n ]);\n }","function getForumCategoryFormCfg() {\n return array(\n 'infoNotification' => __('NOTIFY_FORUM_IMAGE_SIZE'),\n 'items' => array(\n 'htmlForumCategoryImage' => '',\n 'nom' => array(\n 'label' => __('NAME'),\n 'type' => 'text',\n 'size' => 30,\n 'dataType' => 'text',\n 'required' => true\n ),\n 'image' => array(\n 'label' => __('IMAGE'),\n 'type' => 'text',\n 'size' => 42,\n 'uploadField' => 'uploadImage'\n ),\n 'uploadImage' => array(\n 'label' => __('UPLOAD_IMAGE'),\n 'type' => 'file',\n 'allowedExtension' => array('jpg', 'jpeg', 'png', 'gif'),\n 'uploadDir' => 'upload/Forum/cat'\n ),\n 'niveau' => array(\n 'label' => __('LEVEL'),\n 'type' => 'select',\n 'options' => array(\n 0 => 0,\n 1 => 1,\n 2 => 2,\n 3 => 3,\n 4 => 4,\n 5 => 5,\n 6 => 6,\n 7 => 7,\n 8 => 8,\n 9 => 9\n )\n ),\n 'ordre' => array(\n 'label' => __('ORDER'),\n 'type' => 'text',\n 'value' => '0',\n 'size' => 2,\n 'dataType' => 'integer',\n 'required' => true\n )\n ),\n 'itemsFooter' => array(\n 'submit' => array(\n 'type' => 'submit',\n 'value' => array('CREATE_CATEGORY', 'MODIFY_THIS_CATEGORY'),\n 'inputClass' => array('button')\n )\n )\n );\n}","function l1NodeCategory($x) {\n global $dom;\n $root = $dom->documentElement;\n $children = $root->childNodes;\n\n $node = $children->item($x);\n $nodeName = $node->nodeName;\n\n switch($nodeName) {\n case p:\n $category = \"pOrBlockquote\";\n break;\n case blockquote:\n $category = \"pOrBlockquote\";\n break;\n case h2:\n $category = \"h\";\n break;\n case h3:\n $category = \"h\";\n break;\n case h4:\n $category = \"h\";\n break;\n case h5:\n $category = \"h\";\n break;\n case pre:\n $category = \"pre\";\n break;\n case hr:\n $category = \"hr\";\n break;\n case table:\n $category = \"table\";\n break;\n case ol:\n $category = \"list\";\n break;\n case ul:\n $category = \"list\";\n break;\n case div:\n // If the first grandchild's nodeName is img then $category is image.\n if ($node->hasChildNodes()) {\n $grandChildren = $node->childNodes;\n $firstGChild = $grandChildren->item(0);\n $fGCNodeName = $firstGChild->nodeName;\n if ($fGCNodeName == \"img\") {\n $category = \"image\";\n break;\n }\n }\n // If there is a class attribute whose value is remarkbox then\n // $category is remark.\n $classAtt = $node->getAttribute(\"class\");\n if ($classAtt == \"remarkbox\") {\n $category = \"remark\";\n break;\n }\n form_destroy();\n die('The div is weird. Err 5187854. -Programmer.');\n default:\n form_destroy();\n die('Node category undefined. Err 6644297. -Programmer.');\n }\n\n return $category;\n}","function type_url_form_image()\n {\n }","function mosModelCategoryGetGD($url =null)\r\n{\r\n\tif ($url == null) {\r\n\t\t$url\t\t=\t'http://giaoduc.net.vn/';\r\n\t}\r\n\t$browser\t=\tnew phpWebHacks();\r\n\t$response\t=\t$browser->get($url);\r\n\t$html_obj\t=\tloadHtmlString($response);\r\n\t$arrMenu\t=\tarray();\r\n\tif ($boxsection = $html_obj->find('div[id=\"boxsection\"]',0)) {\r\n\t\t$c_boxgiua1\t=\t$boxsection->find('div[class=\"c_boxgiua1\"]');\r\n\t\tfor ($i=0;$ititle\t=\t$c_boxgiua1[$i]->find('div[class=\"c_boxgiua1_text\"]',0)->first_child()->innertext;\r\n\t\t\t$obj_menu->link\t=\t$c_boxgiua1[$i]->find('div[class=\"c_boxgiua1_text\"]',0)->first_child()->href;\r\n\t\t\t$obj_menu->parent\t=\t-1;\r\n\t\t\t$obj_menu->published\t=\t0;\r\n\t\t\t$parent\t=\tcount($arrMenu);\r\n\t\t\t$arrMenu[]\t=\t$obj_menu;\r\n\t\t\t$sub_menu\t=\t$c_boxgiua1[$i]->find('div[class=\"c_boxgiua1_nd\"]',0)->first_child();\r\n\t\t\t$items\t\t=\t$sub_menu->find('a');\r\n\t\t\tfor ($j=0; $jtitle\t=\t$item->innertext;\r\n\t\t\t\t$obj_submenu->link\t=\t$item->href;\r\n\t\t\t\t$obj_submenu->parent=\t$parent;\r\n\t\t\t\t$obj_submenu->published=\t1;\r\n\t\t\t\t$arrMenu[]\t=\t$obj_submenu;\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}\r\n\tif ($contentleft = $html_obj->find('div[id=\"contentleft\"]',0)) {\r\n\t\t$showcat_sec\t=\t$contentleft->find('div[class=\"showcat_sec\"]');\r\n\t\t\r\n\t\tfor ($i=0;$ititle\t=\t$showcat_sec[$i]->find('div[class=\"link_sec\"]',0)->first_child()->innertext;\r\n\t\t\t$obj_menu->link\t=\t$showcat_sec[$i]->find('div[class=\"link_sec\"]',0)->first_child()->href;\r\n\t\t\t$obj_menu->parent\t=\t-1;\r\n\t\t\t$obj_menu->published\t=\t0;\r\n\t\t\t$parent\t=\tcount($arrMenu);\r\n\t\t\t$arrMenu[]\t=\t$obj_menu;\r\n\t\t\t$sub_menu\t=\t$showcat_sec[$i]->find('ul',0);\t\t\t\r\n\t\t\t$items\t\t=\t$sub_menu->find('a');\r\n\t\t\tfor ($j=0; $jtitle\t=\t$item->innertext;\r\n\t\t\t\t$obj_submenu->link\t=\t$item->href;\r\n\t\t\t\t$obj_submenu->parent=\t$parent;\r\n\t\t\t\t$obj_submenu->published=\t1;\r\n\t\t\t\t$arrMenu[]\t=\t$obj_submenu;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif ($contentleft = $html_obj->find('div[id=\"contentleft\"]',0)) {\r\n\t\t$c_box_k2_tit\t=\t$contentleft->find('div[class=\"c_box_k2_tit\"]');\r\n\t\t\r\n\t\tfor ($i=0;$ititle\t=\t$c_box_k2_tit[$i]->find('div[class=\"c_box_k2_tittext\"]',0)->first_child()->innertext;\r\n\t\t\t$obj_menu->link\t=\t$c_box_k2_tit[$i]->find('div[class=\"c_box_k2_tittext\"]',0)->first_child()->href;\r\n\t\t\t$obj_menu->parent\t=\t-1;\r\n\t\t\t$obj_menu->published\t=\t0;\r\n\t\t\t$parent\t=\tcount($arrMenu);\r\n\t\t\t$arrMenu[]\t=\t$obj_menu;\r\n\t\t\t$sub_menu\t=\t$c_box_k2_tit[$i]->find('ul',0);\t\t\t\r\n\t\t\t$items\t\t=\t$sub_menu->find('a');\r\n\t\t\tfor ($j=0; $jtitle\t=\t$item->innertext;\r\n\t\t\t\t$obj_submenu->link\t=\t$item->href;\r\n\t\t\t\t$obj_submenu->parent=\t$parent;\r\n\t\t\t\t$obj_submenu->published=\t1;\r\n\t\t\t\t$arrMenu[]\t=\t$obj_submenu;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $arrMenu;\r\n}","public function admin_image_by_category($id = null) {\n $this->loadModel('GiftImage');\n $logged_in_user = $this->Session->read('Auth.User.id');\n $logged_in_user_parent = $this->Session->read('Auth.User.parent_id');\n $giftImageData = $this->GiftImage->find('all',\n array(\n 'fields' => array('GiftImage.id',\n 'GiftImage.eng_title',\n 'GiftImage.image'),\n 'conditions' => array(\n 'OR' => array(\n array('AND' =>array(\n 'GiftImage.status' => 1,\n 'GiftImage.gift_image_category_id' => $id,\n 'GiftImage.user_id' => 1,\n )),\n array('AND' =>array(\n 'GiftImage.status' => 1,\n 'GiftImage.gift_image_category_id' => $id,\n 'GiftImage.user_id' => $logged_in_user,\n )),\n array('AND' =>array(\n 'GiftImage.status' => 1,\n 'GiftImage.gift_image_category_id' => $id,\n 'GiftImage.user_id' => $logged_in_user_parent,\n )),\n ),\n )\n ));\n $this->set('giftImageData', $giftImageData);\n if($this->request->is('ajax')){\n $this->layout = 'ajax';\n $this->viewPath = \"Elements/admin/GiftCertificates\";\n $this->render('admin_image_by_category');\n }\n }","public function uploadImage(string $type, $id, $request): ProductCategory;","function getSelectorName() ;","function getSelectorName() ;","function HERITAGE_logo_select_cbk() {\n $logo_url = HERITAGE_get_theme_option('heritage_theme_general_options', 'lc_custom_logo');\n\n ?>\n \"/>\n \" />\n \" />\n

    \n \n

    \n\n
    \n \">\n
    \n\n \n \n \n\nterm_id;\n\t\t\n\t\tif ( is_numeric( $cat ) )\n\t\t\t$cat_id = (int) $cat;\n\t\t\n\t\tif ( '' == $cat )\n\t\t\t$cat_id = get_category( get_query_var( 'cat' ) )->term_id;\n\t\t\n\t\t\n\t\t$image = get_option( 'category_thumbnail_image' );\n\t\t\n\t\tif ( is_array( $image ) && array_key_exists( $cat_id, $image ) ) {\n\t\t\t$image = $image[ $cat_id ];\n\t\t\t$image = wp_get_attachment_image_src( (int) $image );\n\t\t\t\n\t\t\t$return = new stdClass;\n\t\t\t$return->url = $image[0];\n\t\t\t$return->width = $image[1];\n\t\t\t$return->height = $image[2];\n\t\t\t\n\t\t\treturn $return;\n\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}","function getChildSelectorName() ;","function ag_coll_builder() {\n\trequire_once(AG_DIR . '/functions.php');\n\n\tif(!isset($_POST['coll_id'])) {die('missing data');}\n\t$coll_id = addslashes($_POST['coll_id']);\n\t\t\t\n\t// item categories list\n\t$item_cats = get_terms( 'ag_gall_categories', 'hide_empty=0' );\n\t\n\t// cat and page selector\n\t?>\n

    \n \n
    \n

    \n
    \n \n
    \n \n \n \n \n \n \n \n
    \n \n \n \n
    \n
    \n \n \" autocomplete=\"off\" />\n \n \">\n \">\n \n ()\n
    \n \n
      \n '. __('No galleries found', 'ag_ml') .' ..';}\n else {echo $post_list;}\n ?>\n
    \n
    \n
    \n
    \n\t
    \n
    \n
    \n \n
    \n

    \n
    \n \n\t\t
    \n \n\t\t\n description);\n\t\t $coll_galleries = $coll_composition['galleries'];\n\t\t \n if(is_array( $coll_galleries) && count( $coll_galleries) > 0) {\n\t\t\t\n\t\t\t$a = 0; \n foreach( $coll_galleries as $gdata) {\n\t\t\t $gid = $gdata['id'];\n\t\t\t $gall_img = ag_get_gall_first_img($gid);\t\n\t\t\t\t\n\t\t\t if(get_post_status($gid) == 'publish' && $gall_img) {\n\n\t\t\t\t $rand_check \t= (isset($gdata['rand']) && $gdata['rand'] != 0) ? 'checked=\"checked\"' : '';\n\t\t\t\t $wmark_check \t= (isset($gdata['wmark']) && $gdata['wmark'] != 0) ? 'checked=\"checked\"' : ''; \n\t\t\t\t $filter_check\t= (isset($gdata['filters']) && $gdata['filters'] != 0) ? 'checked=\"checked\"' : ''; \n\t\t\t\t \t\n\t\t\t\t $link_subj \t= (isset($gdata['link_subj'])) ? $gdata['link_subj'] : 'none'; \n\t\t\t\t $link_val \t= (isset($gdata['link_val'])) ? $gdata['link_val'] : '';\n\t\t\t\t $descr \t\t= (isset($gdata['descr'])) ? $gdata['descr'] : ''; \n\t\t\t\t \n\t\t\t\t // custom image\n\t\t\t\t if(isset($gdata['cust_img']) && $gdata['cust_img']) {\n\t\t\t\t\t$cust_img = ag_thumb_src($gdata['cust_img'], 500, 500, 70);\n\t\t\t\t\t$cust_img_id = $gdata['cust_img'];\n\t\t\t\t\t$ci_icon_sel_class = 'ag_coll_cust_img_sel'; \n\t\t\t\t } \n\t\t\t\t else {\n\t\t\t\t\t$cust_img = '';\n\t\t\t\t\t$cust_img_id = '';\n\t\t\t\t\t$ci_icon_sel_class = ''; \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t $orig_thumb = ag_thumb_src($gall_img, 500, 500, 70);\n\t\t\t\t $thumb_to_use = (empty($cust_img)) ? $orig_thumb : $cust_img;\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t // categories\n\t\t\t\t $gall_cats = ag_gallery_cats($gid, 'list', ', ');\n\t\t\t\t $gall_cats = (empty($gall_cats)) ? ''. __('No associated categories', 'ag_ml') .' ..' : ' '.$gall_cats;\n\n\t\t\t\t echo '\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t ';\n\t\t\t }\n\t\t\t $a++;\n }\n }\n\t\t else {echo '';}\n ?>\n\n
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t'. $gall_cats .'\n\t\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\t'.get_the_title($gid).'\n\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    '.__('Random display?', 'ag_ml').'

    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    '.__('Use tags filter?', 'ag_ml').'

    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    '.__('Use watermark?', 'ag_ml').'

    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t

    '.__('Image link', 'ag_ml').'

    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
    \t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t

    '.__('No selected galleries', 'ag_ml').' ..

    \n
    \n \n\t
    \n
    \n
    \n\t0,\"approved\" => 1, \"isCategory\"=>1,\"categoryId\"=>$catId);\n\t\t$fetchUser = $this->get_record_by_ID($table,$key,$id,$fields);\n\t\tif(count($fetchUser)>0)\n\t\t{\n\t\t\treturn $fetchUser;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$fetchUser[0]['image640By480']= \"../images/default.gif\";\n\t\t\t$fetchUser[0]['image640by480Height']= 480;\n $fetchUser[0]['image640by480Width'] = 640;\n\t\t\t$fetchUser[0]['image400by300'] =\"../images/default.gif\";;\n $fetchUser[0]['image400by300Height'] = 300;\n $fetchUser[0]['image400by300Width'] = 400;\n $fetchUser[0]['image100by80'] = \"../images/default_100_75.gif\";\n $fetchUser[0]['image100by80Height'] = 75;\n $fetchUser[0]['image100by80Width'] = 100;\n\t\t\treturn $fetchUser;\n\t\t}\n\t}","protected function _loadPictureForm() {\n\t\tCgn::loadLibrary('Form::lib_cgn_form');\n\t\tCgn::loadLibrary('Html_widgets::lib_cgn_widget');\n\t\t$f = new Cgn_Form('form_upload_profile_pic', '', 'POST', 'multipart/form-data');\n\t\t$f->width = '40em';\n\t\t$f->formHeader = 'Select an image file on your computer (4MB max)';\n\n\t\t$f->layout = new Cgn_Form_Layout_Dl();\n\n\t\t$f->action = cgn_sappurl('account', 'img', 'save');\n\n\t\t$f->appendElement(new Cgn_Form_ElementFile('pic', ''));\n\n\t\treturn $f;\n\t}","public function getChildSelectorName();","public function getSelectorHolder()\n {\n return \"$(\\\".step-button-wrapper[data-for='{$this->Name}']\\\")\";\n }","function getCategory() {\n\t\treturn $this->node->firstChild->toString();\n\t}","function &getByName( $name )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $topic = new eZImageCategory();\r\n\r\n if ( $name != \"\" )\r\n {\r\n $db->array_query( $author_array, \"SELECT ID, Name FROM eZImageCatalogue_Category WHERE Name='$name'\" );\r\n\r\n if ( count( $author_array ) == 1 )\r\n {\r\n $topic = new eZImageCategory( $author_array[0][$db->fieldName( \"ID\" )] );\r\n }\r\n }\r\n\r\n return $topic;\r\n }","protected function get_display_category()\n\t{\n\t\t$image = ATTACHMENT_CATEGORY_IMAGE;\n\t\t$none = ATTACHMENT_CATEGORY_NONE;\n\t\t$thumb = ATTACHMENT_CATEGORY_THUMB;\n\n\t\t$display_cat = (strpos($this->get('mimetype'), 'image') === 0) ? $image : $none;\n\n\t\tif ($display_cat == $image)\n\t\t{\n\t\t\tif ($this->get('thumbnail'))\n\t\t\t{\n\t\t\t\t$display_cat = $thumb;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ($this->config['img_display_inlined'])\n\t\t\t\t{\n\t\t\t\t\tif ($this->config['img_link_width'] || $this->config['img_link_height'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$dimension = @getimagesize($this->get_filepath());\n\n\t\t\t\t\t\t// If the dimensions could not be determined or the image being 0x0 we display it as a link for safety purposes\n\t\t\t\t\t\tif ($dimension === false || empty($dimension[0]) || empty($dimension[1]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$display_cat = $none;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$display_cat = ($dimension[0] <= $this->config['img_link_width'] && $dimension[1] <= $this->config['img_link_height']) ? $image : $none;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$display_cat = $none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Make some decisions based on user options being set.\n\t\tif (($display_cat == $image || $display_cat == $thumb) && !$this->user->optionget('viewimg'))\n\t\t{\n\t\t\t$display_cat = $none;\n\t\t}\n\t\treturn $display_cat;\n\t}","protected function getCategoryButton() {\n\t\treturn [\n\t\t\t'attributes' => [\n\t\t\t\t'href' => '#/categories',\n\t\t\t\t// add hidden class (the overlay works only, when JS is enabled (class will\n\t\t\t\t// be removed in categories/init.js)\n\t\t\t\t'class' => 'category-button hidden',\n\t\t\t],\n\t\t\t'label' => $this->msg( 'categories' )->text()\n\t\t];\n\t}","public function getSelectorName();","public function output_category_widget() {\n\n\t\t$categories = get_terms( 'product_cat', array( 'orderby' => 'name' ) );\n\t\t?>\n\t\t
    \n\t\t\t
    \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\" />\n\t\t\t\t\" />\n\t\t\t\t\" />\n\t\t\t\t\" />\n\t\t\t\t\" />\n\t\t\t\t\" />\n\t\t\t\t\" />\n\t\t\t
    \n\t\t\t\n\t\t
    \n\t\tID;\n $title = $thisPost->post_title;\n $image = get_the_post_thumbnail_url($id)?get_the_post_thumbnail_url($id):DF_IMAGE. '/noimage.png';\n $link = get_permalink($id);\n // $terms = get_the_terms( $post->ID, 'publication_category' );\n $data_taxaonomy = get_the_terms($id, 'categories-gallery');\n ?>\n
    \" data-slug = \"slug; ?>\">\n
    \n \n
    \n
    \n
    \" alt=\"icon-3d\" />
    \n
    EXPLORE 3D SPACE
    \n
    \n
    \n \n \">\n \" alt=\"image-work-page\"/>\n \n
    \n has_image) return null;\n return asset($this->imageDirectory . '/' . $this->categoryImageFileName);\n }","public function getComboKindCategory()\n {\n $querystr = <<c->query($querystr);\n if ($results === FALSE)\n return \"\";\n\n $ret = '\";\n\n $results->close();\n\n return $ret;\n\n }","function ag_cat_galleries_code($fnc_cat = false) {\t\n\tinclude_once(AG_DIR . '/functions.php');\n\t$cat = $fnc_cat;\n\t$code = '';\n\t\n\t// if is not called directly\n\tif(!$cat) {\n\t\tif(!isset($_POST['gallery_cat'])) {die('missing data');}\n\t\t$cat = $_POST['gallery_cat'];\n\t}\n\n\t$post_list = ag_cat_galleries($cat);\t\n\tif(!$post_list) {return false;}\n\t\n\tforeach($post_list as $post) {\n\t\t$code .= '\n\t\t
  • \n\t\t\t
    '.$post['title'].'
    \n\t\t
  • ';\n\t}\n\n\t\n\tif($fnc_cat == false) {die( $code );}\n\telse {return $code;}\n}","public function bamobile_taxonomy_field($template, $taxonomy){\r\n $params = array(\r\n 'label' => array(\r\n 'image' => __('Mobile App Images'),\r\n 'upload_image' => __('Upload/Edit Image'),\r\n 'remove_image' => __('Remove image'),\r\n 'note' => __('* This picture only work on Mobile App')\r\n ),\r\n 'mobiconnector_attachment' => null\r\n );\r\n\r\n\r\n if (isset($taxonomy->term_id) && $this->bamobile_has_image($taxonomy->term_id)) {\r\n $image = self::bamobile_get_category_image(array(\r\n 'term_id' => $taxonomy->term_id\r\n ), true);\r\n \r\n $attachment_id = $this->bamobile_get_attachment_id($taxonomy->term_id);\r\n\r\n $params = array_replace_recursive($params, array(\r\n 'mobiconnector_category_avatar' => $image,\r\n 'mobiconnector_attachment' => $attachment_id,\r\n ));\r\n }\r\n\r\n return bamobile_mobiconnector_get_category_template($template, $params, false);\r\n }","public function getSelectorName() {}","public function getSelectorName() {}","public function getSelectorName() {}","public function getSelectorName() {}","protected function getSelectorName() {}","function template_preprocess_excur_service_category(&$vars) {\n $city = menu_get_object('taxonomy_term', 2);\n $vars['city'] = $city->name;\n\n $vocabulary = taxonomy_vocabulary_machine_name_load('category');\n foreach (taxonomy_get_tree($vocabulary->vid, 0, NULL, TRUE) as $key => $term) {\n $vars['categories'][$key]['name'] = $term->name;\n $vars['categories'][$key]['id'] = $term->tid;\n $vars['categories'][$key]['icon'] = theme('image_style', array(\n 'style_name' => '50x50',\n 'path' => $term->field_image[LANGUAGE_NONE][0]['uri'],\n 'alt' => $term->name,\n 'title' => $term->name,\n 'attributes' => array(\n 'class' => array('categoty-icon'),\n ),\n ));\n }\n}","public function categoryForm(){\n $table = \"categories\";\n $cresults = $this->getAllrecords($table);\n foreach($cresults as $category){\n echo('');\n }\n\n\n }","public function getArticleSelector() {\n $result = '';\n if ($this->data['wiki_page'] > 0) {\n $result .= sprintf(\n '',\n $this->getWebLink($this->data['wiki_page'])\n );\n $result .= sprintf('', $this->paramName);\n $result .= sprintf(\n '',\n $this->paramName,\n papaya_strings::escapeHTMLChars($this->data['caption_article'])\n );\n $result .= sprintf(\n '\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t
    \\n\\t\\t\\t\\t\\n\\t\\t\\t\\t
    \\\" width=\\\"60px\\\" height=\\\"60px\\\" />
    \\n\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t
    \\n\\n\\n\\t\\t\\t\\n\\t\\t\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t\\tExcludeFromSearch = \\\"false\\\";\\r\\n if ( $id != -1 )\\r\\n {\\r\\n $this->ID = $id;\\r\\n $this->get( $this->ID );\\r\\n }\\r\\n }\",\n \"function gtags_group_category_form() {\\n\\tglobal $bp, $show_group_add_form_cats;\\t\\n\\tif ($show_group_add_form_cats) return; // prevents showing form twice\\n\\t$show_group_add_form_cats = true;\\n\\n\\t// the group category\\t\\n\\t$group_cats = get_option('gtags_category'); \\n\\tif (empty($group_cats)) return;\\n\\t\\n\\t$selected = groups_get_groupmeta( $bp->groups->current_group->id, 'gtags_group_cat' ); \\n\\t?>\\n\\t\\n\\t
    exec_SELECTquery($field,$table,$where,$groupBy='',$orderBy,$limit='');\\n\\t\\twhile($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\\n\\t\\t\\tif ($row['image']=='') {\\n\\t\\t\\t\\t// get image of parent category\\n\\t\\t\\t\\t$whereTemp = 'deleted = 0 AND hidden=0 AND uid = ' . $row['parent_uid'];\\n\\t\\t\\t\\t$res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery($field,$table,$whereTemp);\\n\\t\\t\\t\\t$row2 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res2);\\n\\t\\t\\t\\t$GLOBALS['TYPO3_DB']->sql_free_result($res2);\\n\\t\\t\\t\\t$catImg[$row['uid']] = $row2['image'];\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$catImg[$row['uid']] = $row['image'];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t$GLOBALS['TYPO3_DB']->sql_free_result($res);\\n\\n\\t\\treturn $catImg;\\n\\t}\",\n \"function colorpicker_field_add_new_category( $taxonomy ) { ?> \\r\\n\\t
    \\r\\n\\t \\r\\n\\t \\r\\n\\t

    This is the field description where you can tell the user how the color is used in the theme.

    \\r\\n\\t
    set_valid_image_data();\\n $cursel = $this->image_name;\\n\\n $this->select_css = '';\\n $this->select_html = '';\\n // We will be wrapped in a \\n $this->select_html .= \\\"\\n\\\" . PLUGIN_KARMA_IMAGE . \\\"
    \\n&nbsp;\\\".PLUGIN_KARMA_IMAGE_DESC.\\\"\\\";\\n if ($serendipity['version'][0] < 2) {\\n $this->select_html .= \\\"\\n\\n\\n\\n\\n\\\\n\\\";\\n }\\n $this->select_html .= \\\"\\n\\\";\\n // Add the 'text-only' selection and its CSS\\n if ($cursel == '0') {\\n $checked = 'checked=\\\"checked\\\" ';\\n } else {\\n $checked = '';\\n }\\n $this->image_name = '0';\\n $bar = $this->createRatingBar('', 0, 0, 'textbar');\\n $this->select_html .= \\\"\\n\\n\\\\n\\\";\\n $this->select_css .= \\\"\\n.textbar, .textbar a, .textbar a:hover {\\n font-size: 100%;\\n position: relative;\\n background: none;\\n}\\n.serendipityAdminContent span.textbar {\\n color: black !important;\\n}\\n\\\";\\n // Retrieve all the *valid* images from the image directory\\n $files = $this->getImageFiles();\\n // Add an
      for each rating bar, and add its CSS overrides\\n $n = 0;\\n foreach ($files as $fdata) {\\n // Columnize\\n if (($n % 3) == 0) {\\n // Time to start a new row\\n $this->select_html .= \\\"
    \\\\n\\\\n\\\";\\n }\\n\\n // Set the image data\\n $fname = $fdata['fname'];\\n $height = $fdata['height'];\\n $width = $fdata['width'];\\n $ratio = $width / $height;\\n // If this is a single segment, adjust width\\n if ($ratio < $this->max_segment_ratio) {\\n $width = $width * 5;\\n }\\n $height = $height / 3;\\n // Set up class variables correctly\\n $this->image_name = $fname;\\n $this->image_width = $width;\\n $this->image_height = $height;\\n\\n // Create a rating bar of this image\\n //\\n // What would be a good CSS class for this image?\\n $css_class = str_replace(array('.',' '), array('_','_'), $fname);\\n $checked = '';\\n if ($fname == $cursel) {\\n $checked = 'checked=\\\"checked\\\" ';\\n }\\n $bar_html = \\n\\\"\\\\n\\\";\\n $bar_html = sprintf($bar_html, '', '2.5 of 5', '1');\\n $this->select_html .= $bar_html;\\n // Add the necessary CSS to the stylesheet (will be added when css hooks are called)\\n // Sorry to interrupt your regularly scheduled HTML; I need to\\n // use the $css_class while it's still here.\\n $this->select_css .= \\\"\\n/* Overrides for $css_class */\\n.$css_class \\n{\\n width: ${width}px;\\n height: ${height}px;\\n}\\n.$css_class,\\n.$css_class a:hover,\\n.$css_class .serendipity_karmaVoting_current-rating\\n{\\n background-image: url({$serendipity['baseURL']}plugins/serendipity_event_karma/img/${fname});\\n}\\n.$css_class,\\n.$css_class a,\\n.$css_class .serendipity_karmaVoting_current-rating\\n{\\n line-height: ${height}px;\\n height: ${height}px;\\n}\\n\\n\\\";\\n $n++;\\n } // Go back up for another image\\n\\n // Check for nothing displayed\\n if ($n == 0) {\\n // There were no images!\\n $this->select_html .= \\\"\\\\n\\\";\\n }\\n\\n // End the table, with a config-item bottom-border separator\\n $this->select_html .= \\n\\\"\\\\n
    \\\" . PLUGIN_KARMA_STATISTICS_POINTS_NO . \\\"
    $bar
    \\n \\n $fname
    \\\\n\\\" . \\n $this->createRatingBar('', -1, 2, $css_class) .\\n\\\"
    \\\" . PLUGIN_KARMA_NO_IMAGES . \\\"
    \\\\n\\\";\\n if ($serendipity['version'][0] < 2) {\\n $this->select_html .= \\n\\\"&nbsp;\\\\n\\\";\\n }\\n // The config item and row are closed by the core code\\n\\n return $this->select_html;\\n }\",\n \"private function categoriesFormInputs()\\n {\\n // Get the field name of the field with the category icon\\n // #47631, dwildt, 1-\\n //$arrLabels[ 'catIcon' ] = $this->confMap['configuration.']['categories.']['fields.']['categoryIcon'];\\n // #47631, #i0007, dwildt, 10+\\n switch ( true )\\n {\\n case( $this->pObj->typoscriptVersion <= 4005004 ):\\n $arrLabels[ 'catIcon' ] = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'fields.' ][ 'categoryIcon' ];\\n break;\\n case( $this->pObj->typoscriptVersion <= 4005007 ):\\n default:\\n $arrLabels[ 'catIcon' ] = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'fields.' ][ 'marker.' ][ 'categoryIcon' ];\\n break;\\n }\\n // #47631, #i0007, dwildt, 10+\\n // Default space in HTML code\\n $tab = ' ';\\n\\n // FOREACH category label\\n//$this->pObj->dev_var_dump( $this->arrCategories );\\n // #i0118, dwildt, 1-/+\\n //foreach ( $this->arrCategories[ 'labels' ] as $labelKey => $labelValue )\\n foreach ( ( array ) $this->arrCategories[ 'labels' ] as $labelKey => $labelValue )\\n {\\n // Get the draft for an input field\\n $cObj_name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'form_input' ];\\n $cObj_conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'form_input.' ];\\n $input = $this->pObj->cObj->cObjGetSingle( $cObj_name, $cObj_conf );\\n // replace the category marker\\n $input = str_replace( '###CAT###', $labelValue, $input );\\n // 4.1.17, 120927, dwildt\\n // replace the category marker\\n //$labelValueWoSpc = str_replace( ' ', null, $labelValue );\\n $labelValueWoSpc = $this->zz_properFormLabel( $labelValue );\\n $input = str_replace( '###CAT_WO_SPC###', $labelValueWoSpc, $input );\\n // 4.1.17, 120927, dwildt\\n // #54548, 131221, dwildt, 6+\\n $class = $this->arrCategories[ 'cssClass' ][ $labelKey ];\\n if ( !empty( $class ) )\\n {\\n $class = ' class=\\\"' . $class . '\\\"';\\n }\\n $input = str_replace( '###CLASS###', $class, $input );\\n\\n // IF draft for an input field contains ###IMG###, render an image\\n $pos = strpos( $input, '###IMG###' );\\n if ( !( $pos === false ) )\\n {\\n // SWITCH : Render the image\\n switch ( true )\\n {\\n // #i0062\\n case( $labelKey == $this->arrWoCategories[ 'iconKey' ] ):\\n $name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey ];\\n $conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey . '.' ];\\n $img = $this->pObj->cObj->cObjGetSingle( $name, $conf );\\n break;\\n case( is_array( $this->arrCategories[ 'icons' ] ) ):\\n // 4.1.7, dwildt, +\\n $this->cObjDataAddArray( array( $arrLabels[ 'catIcon' ] => $this->arrCategories[ 'icons' ][ $labelKey ] ) );\\n $img = $this->renderMapMarkerVariablesSystemItem( 'categoryIconLegend' );\\n $this->cObjDataRemoveArray( array( $arrLabels[ 'catIcon' ] => $this->arrCategories[ 'icons' ][ $labelKey ] ) );\\n // 4.1.7, dwildt, +\\n break;\\n default:\\n // Render the image\\n $name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey ];\\n $conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'legend.' ][ $labelKey . '.' ];\\n $img = $this->pObj->cObj->cObjGetSingle( $name, $conf );\\n break;\\n }\\n // SWITCH : Render the image\\n\\n $input = str_replace( '###IMG###', $img, $input );\\n }\\n // IF draft for an input field contains ###IMG###, render an image\\n\\n $arrInputs[] = $tab . $input;\\n }\\n // FOREACH category label\\n // Move array of input fields to a string\\n // #i0118, dwildt, 1-/+\\n //$inputs = implode( PHP_EOL, $arrInputs );\\n $inputs = implode( PHP_EOL, ( array ) $arrInputs );\\n $inputs = trim( $inputs );\\n\\n // RETURN input fields\\n return $inputs;\\n }\",\n \"public function getImageTag();\",\n \"public function getName()\\n {\\n return 'category_form';\\n }\",\n \"public function getValueAfterElementHtml()\\n {\\n $html = '';\\n\\n switch ($this->getAttribute()) {\\n case 'category_ids':\\n $image = $this->_assetRepo->getUrl('images/rule_chooser_trigger.gif');\\n break;\\n }\\n\\n if (!empty($image)) {\\n $html = '\\\"\\\"';\\n }\\n return $html;\\n }\",\n \"public function getImagenesIndexCategorias(){\\n foreach($this->indexContent as $content){\\n //echo \\\"--------------------- Imagenes --------------
    \\\";\\n $vectorImagenes = array();\\n $dom = new DOMDocument();\\n $dom->loadHTML(\\\"$content\\\");\\n $xpath = new DOMXPath($dom);\\n $tag = \\\"div\\\";\\n $class = \\\"home-category-box\\\";\\n $consulta = \\\"//\\\".$tag.\\\"[@class='\\\".$class.\\\"']\\\";\\n $resultados = $xpath->query($consulta);\\n if ($resultados->length > 0){\\n $contador = 0;\\n foreach($resultados as $imagenes){\\n if ($contador == 0){\\n $todasImagenes = $imagenes->getElementsByTagName(\\\"img\\\");\\n if ($todasImagenes->length > 0){\\n foreach($todasImagenes as $imagen){\\n $urlImagen = $imagen->getAttribute(\\\"src\\\");\\n //echo \\\"url imagen categorias padre: \\\".$urlImagen.\\\"
    \\\";\\n array_push($vectorImagenes,$urlImagen);\\n }\\n }\\n }\\n $contador++;\\n }\\n }\\n //echo \\\"--------------------- Fin Imagenes --------------
    \\\";\\n }\\n return $vectorImagenes;\\n }\",\n \"public function getCategoryIcon();\",\n \"public function getFormCategory()\\n\\t{\\n\\t\\treturn strtolower($this->_removeNonAlphaCharacters($this->category));\\n\\t}\",\n \"public function getSearchCategory(){\\n $objectManager = \\\\Magento\\\\Framework\\\\App\\\\ObjectManager::getInstance ();\\n return $objectManager->get ( 'Apptha\\\\Airhotels\\\\Block\\\\Booking\\\\Form' );\\n }\",\n \"public function category() {\\n\\t\\treturn static::get_thrive_advanced_label();\\n\\t}\",\n \"function work_category_add_new_meta_field() {\\r\\n\\t\\t$textdomain = 'milk';\\r\\n\\t\\t?>\\r\\n\\t \\t\\t
    \\r\\n\\t \\t\\t\\t

    \\r\\n\\t \\t\\t\\t\\t\\r\\n\\t \\t\\t\\t\\t
    \\r\\n\\t \\t\\t\\t\\t\\r\\n\\t \\t\\t\\t

    \\r\\n\\t\\t\\t \\r\\n\\t\\t\\t\\t
    \\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\tdata-uploader_button_text=\\r\\n\\t\\t\\t\\t\\t\\tvalue=/>\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t
    \\r\\n\\t\\t\\t
    \\r\\n\\t\\t\\t
    \\r\\n\\t\\t\\t \\t

    \\r\\n\\t \\t\\t\\t\\t\\r\\n\\t \\t\\t\\t\\t
    \\r\\n\\t \\t\\t\\t\\t\\r\\n\\t \\t\\t\\t

    \\r\\n\\t \\t\\t\\t
    \\r\\n\\t\\t \\t\\t\\t\\r\\n\\t\\t\\t\\t
    \\r\\n\\t\\t\\t
    \\r\\n\\t 'group_60c9f2328988d',\\n 'title' => 'Category Options',\\n 'fields' => array(\\n array(\\n 'key' => 'field_60c9f24923514',\\n 'label' => 'Category Image',\\n 'name' => self::ACF_CAT_IMAGE,\\n 'type' => 'image',\\n 'instructions' => '',\\n 'required' => 0,\\n 'conditional_logic' => 0,\\n 'wrapper' => array(\\n 'width' => '',\\n 'class' => '',\\n 'id' => '',\\n ),\\n 'return_format' => 'url',\\n 'preview_size' => 'medium',\\n 'library' => 'all',\\n 'min_width' => '',\\n 'min_height' => '',\\n 'min_size' => '',\\n 'max_width' => '',\\n 'max_height' => '',\\n 'max_size' => '',\\n 'mime_types' => '',\\n ),\\n ),\\n 'location' => array(\\n array(\\n array(\\n 'param' => 'taxonomy',\\n 'operator' => '==',\\n 'value' => 'category',\\n ),\\n ),\\n ),\\n 'menu_order' => 0,\\n 'position' => 'normal',\\n 'style' => 'default',\\n 'label_placement' => 'top',\\n 'instruction_placement' => 'label',\\n 'hide_on_screen' => '',\\n 'active' => true,\\n 'description' => '',\\n ));\\n \\n endif;\\n }\",\n \"public function buildForm(FormBuilderInterface $builder, array $options)\\n {\\n// dd($category->findAll());\\n $builder\\n ->add('price')\\n ->add('name')\\n ->add('description')\\n /*->add('category', CollectionType::class, array(\\n 'entry_type' => CategoryType::class,\\n 'allow_add' => true,\\n ))*/\\n ->add('category', EntityType::class, array(\\n 'class' => Category::class,\\n 'query_builder' => function (EntityRepository $repository) {\\n return $repository -> createQueryBuilder('c')\\n ->orderBy('c.name', 'ASC');\\n },\\n 'choice_label' => 'name',\\n ))\\n// ->add('images', CollectionType::class, array(\\n// 'entry_type' => ImageType::class\\n// ))\\n ->add('images', FileType::class, [\\n 'mapped' => false,\\n 'label' => 'Upload images'\\n ]);\\n }\",\n \"function getForumCategoryFormCfg() {\\n return array(\\n 'infoNotification' => __('NOTIFY_FORUM_IMAGE_SIZE'),\\n 'items' => array(\\n 'htmlForumCategoryImage' => '',\\n 'nom' => array(\\n 'label' => __('NAME'),\\n 'type' => 'text',\\n 'size' => 30,\\n 'dataType' => 'text',\\n 'required' => true\\n ),\\n 'image' => array(\\n 'label' => __('IMAGE'),\\n 'type' => 'text',\\n 'size' => 42,\\n 'uploadField' => 'uploadImage'\\n ),\\n 'uploadImage' => array(\\n 'label' => __('UPLOAD_IMAGE'),\\n 'type' => 'file',\\n 'allowedExtension' => array('jpg', 'jpeg', 'png', 'gif'),\\n 'uploadDir' => 'upload/Forum/cat'\\n ),\\n 'niveau' => array(\\n 'label' => __('LEVEL'),\\n 'type' => 'select',\\n 'options' => array(\\n 0 => 0,\\n 1 => 1,\\n 2 => 2,\\n 3 => 3,\\n 4 => 4,\\n 5 => 5,\\n 6 => 6,\\n 7 => 7,\\n 8 => 8,\\n 9 => 9\\n )\\n ),\\n 'ordre' => array(\\n 'label' => __('ORDER'),\\n 'type' => 'text',\\n 'value' => '0',\\n 'size' => 2,\\n 'dataType' => 'integer',\\n 'required' => true\\n )\\n ),\\n 'itemsFooter' => array(\\n 'submit' => array(\\n 'type' => 'submit',\\n 'value' => array('CREATE_CATEGORY', 'MODIFY_THIS_CATEGORY'),\\n 'inputClass' => array('button')\\n )\\n )\\n );\\n}\",\n \"function l1NodeCategory($x) {\\n global $dom;\\n $root = $dom->documentElement;\\n $children = $root->childNodes;\\n\\n $node = $children->item($x);\\n $nodeName = $node->nodeName;\\n\\n switch($nodeName) {\\n case p:\\n $category = \\\"pOrBlockquote\\\";\\n break;\\n case blockquote:\\n $category = \\\"pOrBlockquote\\\";\\n break;\\n case h2:\\n $category = \\\"h\\\";\\n break;\\n case h3:\\n $category = \\\"h\\\";\\n break;\\n case h4:\\n $category = \\\"h\\\";\\n break;\\n case h5:\\n $category = \\\"h\\\";\\n break;\\n case pre:\\n $category = \\\"pre\\\";\\n break;\\n case hr:\\n $category = \\\"hr\\\";\\n break;\\n case table:\\n $category = \\\"table\\\";\\n break;\\n case ol:\\n $category = \\\"list\\\";\\n break;\\n case ul:\\n $category = \\\"list\\\";\\n break;\\n case div:\\n // If the first grandchild's nodeName is img then $category is image.\\n if ($node->hasChildNodes()) {\\n $grandChildren = $node->childNodes;\\n $firstGChild = $grandChildren->item(0);\\n $fGCNodeName = $firstGChild->nodeName;\\n if ($fGCNodeName == \\\"img\\\") {\\n $category = \\\"image\\\";\\n break;\\n }\\n }\\n // If there is a class attribute whose value is remarkbox then\\n // $category is remark.\\n $classAtt = $node->getAttribute(\\\"class\\\");\\n if ($classAtt == \\\"remarkbox\\\") {\\n $category = \\\"remark\\\";\\n break;\\n }\\n form_destroy();\\n die('The div is weird. Err 5187854. -Programmer.');\\n default:\\n form_destroy();\\n die('Node category undefined. Err 6644297. -Programmer.');\\n }\\n\\n return $category;\\n}\",\n \"function type_url_form_image()\\n {\\n }\",\n \"function mosModelCategoryGetGD($url =null)\\r\\n{\\r\\n\\tif ($url == null) {\\r\\n\\t\\t$url\\t\\t=\\t'http://giaoduc.net.vn/';\\r\\n\\t}\\r\\n\\t$browser\\t=\\tnew phpWebHacks();\\r\\n\\t$response\\t=\\t$browser->get($url);\\r\\n\\t$html_obj\\t=\\tloadHtmlString($response);\\r\\n\\t$arrMenu\\t=\\tarray();\\r\\n\\tif ($boxsection = $html_obj->find('div[id=\\\"boxsection\\\"]',0)) {\\r\\n\\t\\t$c_boxgiua1\\t=\\t$boxsection->find('div[class=\\\"c_boxgiua1\\\"]');\\r\\n\\t\\tfor ($i=0;$ititle\\t=\\t$c_boxgiua1[$i]->find('div[class=\\\"c_boxgiua1_text\\\"]',0)->first_child()->innertext;\\r\\n\\t\\t\\t$obj_menu->link\\t=\\t$c_boxgiua1[$i]->find('div[class=\\\"c_boxgiua1_text\\\"]',0)->first_child()->href;\\r\\n\\t\\t\\t$obj_menu->parent\\t=\\t-1;\\r\\n\\t\\t\\t$obj_menu->published\\t=\\t0;\\r\\n\\t\\t\\t$parent\\t=\\tcount($arrMenu);\\r\\n\\t\\t\\t$arrMenu[]\\t=\\t$obj_menu;\\r\\n\\t\\t\\t$sub_menu\\t=\\t$c_boxgiua1[$i]->find('div[class=\\\"c_boxgiua1_nd\\\"]',0)->first_child();\\r\\n\\t\\t\\t$items\\t\\t=\\t$sub_menu->find('a');\\r\\n\\t\\t\\tfor ($j=0; $jtitle\\t=\\t$item->innertext;\\r\\n\\t\\t\\t\\t$obj_submenu->link\\t=\\t$item->href;\\r\\n\\t\\t\\t\\t$obj_submenu->parent=\\t$parent;\\r\\n\\t\\t\\t\\t$obj_submenu->published=\\t1;\\r\\n\\t\\t\\t\\t$arrMenu[]\\t=\\t$obj_submenu;\\t\\r\\n\\t\\t\\t}\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\tif ($contentleft = $html_obj->find('div[id=\\\"contentleft\\\"]',0)) {\\r\\n\\t\\t$showcat_sec\\t=\\t$contentleft->find('div[class=\\\"showcat_sec\\\"]');\\r\\n\\t\\t\\r\\n\\t\\tfor ($i=0;$ititle\\t=\\t$showcat_sec[$i]->find('div[class=\\\"link_sec\\\"]',0)->first_child()->innertext;\\r\\n\\t\\t\\t$obj_menu->link\\t=\\t$showcat_sec[$i]->find('div[class=\\\"link_sec\\\"]',0)->first_child()->href;\\r\\n\\t\\t\\t$obj_menu->parent\\t=\\t-1;\\r\\n\\t\\t\\t$obj_menu->published\\t=\\t0;\\r\\n\\t\\t\\t$parent\\t=\\tcount($arrMenu);\\r\\n\\t\\t\\t$arrMenu[]\\t=\\t$obj_menu;\\r\\n\\t\\t\\t$sub_menu\\t=\\t$showcat_sec[$i]->find('ul',0);\\t\\t\\t\\r\\n\\t\\t\\t$items\\t\\t=\\t$sub_menu->find('a');\\r\\n\\t\\t\\tfor ($j=0; $jtitle\\t=\\t$item->innertext;\\r\\n\\t\\t\\t\\t$obj_submenu->link\\t=\\t$item->href;\\r\\n\\t\\t\\t\\t$obj_submenu->parent=\\t$parent;\\r\\n\\t\\t\\t\\t$obj_submenu->published=\\t1;\\r\\n\\t\\t\\t\\t$arrMenu[]\\t=\\t$obj_submenu;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\tif ($contentleft = $html_obj->find('div[id=\\\"contentleft\\\"]',0)) {\\r\\n\\t\\t$c_box_k2_tit\\t=\\t$contentleft->find('div[class=\\\"c_box_k2_tit\\\"]');\\r\\n\\t\\t\\r\\n\\t\\tfor ($i=0;$ititle\\t=\\t$c_box_k2_tit[$i]->find('div[class=\\\"c_box_k2_tittext\\\"]',0)->first_child()->innertext;\\r\\n\\t\\t\\t$obj_menu->link\\t=\\t$c_box_k2_tit[$i]->find('div[class=\\\"c_box_k2_tittext\\\"]',0)->first_child()->href;\\r\\n\\t\\t\\t$obj_menu->parent\\t=\\t-1;\\r\\n\\t\\t\\t$obj_menu->published\\t=\\t0;\\r\\n\\t\\t\\t$parent\\t=\\tcount($arrMenu);\\r\\n\\t\\t\\t$arrMenu[]\\t=\\t$obj_menu;\\r\\n\\t\\t\\t$sub_menu\\t=\\t$c_box_k2_tit[$i]->find('ul',0);\\t\\t\\t\\r\\n\\t\\t\\t$items\\t\\t=\\t$sub_menu->find('a');\\r\\n\\t\\t\\tfor ($j=0; $jtitle\\t=\\t$item->innertext;\\r\\n\\t\\t\\t\\t$obj_submenu->link\\t=\\t$item->href;\\r\\n\\t\\t\\t\\t$obj_submenu->parent=\\t$parent;\\r\\n\\t\\t\\t\\t$obj_submenu->published=\\t1;\\r\\n\\t\\t\\t\\t$arrMenu[]\\t=\\t$obj_submenu;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\treturn $arrMenu;\\r\\n}\",\n \"public function admin_image_by_category($id = null) {\\n $this->loadModel('GiftImage');\\n $logged_in_user = $this->Session->read('Auth.User.id');\\n $logged_in_user_parent = $this->Session->read('Auth.User.parent_id');\\n $giftImageData = $this->GiftImage->find('all',\\n array(\\n 'fields' => array('GiftImage.id',\\n 'GiftImage.eng_title',\\n 'GiftImage.image'),\\n 'conditions' => array(\\n 'OR' => array(\\n array('AND' =>array(\\n 'GiftImage.status' => 1,\\n 'GiftImage.gift_image_category_id' => $id,\\n 'GiftImage.user_id' => 1,\\n )),\\n array('AND' =>array(\\n 'GiftImage.status' => 1,\\n 'GiftImage.gift_image_category_id' => $id,\\n 'GiftImage.user_id' => $logged_in_user,\\n )),\\n array('AND' =>array(\\n 'GiftImage.status' => 1,\\n 'GiftImage.gift_image_category_id' => $id,\\n 'GiftImage.user_id' => $logged_in_user_parent,\\n )),\\n ),\\n )\\n ));\\n $this->set('giftImageData', $giftImageData);\\n if($this->request->is('ajax')){\\n $this->layout = 'ajax';\\n $this->viewPath = \\\"Elements/admin/GiftCertificates\\\";\\n $this->render('admin_image_by_category');\\n }\\n }\",\n \"public function uploadImage(string $type, $id, $request): ProductCategory;\",\n \"function getSelectorName() ;\",\n \"function getSelectorName() ;\",\n \"function HERITAGE_logo_select_cbk() {\\n $logo_url = HERITAGE_get_theme_option('heritage_theme_general_options', 'lc_custom_logo');\\n\\n ?>\\n \\\"/>\\n \\\" />\\n \\\" />\\n

    \\n \\n

    \\n\\n
    \\n \\\">\\n
    \\n\\n \\n \\n \\n\\nterm_id;\\n\\t\\t\\n\\t\\tif ( is_numeric( $cat ) )\\n\\t\\t\\t$cat_id = (int) $cat;\\n\\t\\t\\n\\t\\tif ( '' == $cat )\\n\\t\\t\\t$cat_id = get_category( get_query_var( 'cat' ) )->term_id;\\n\\t\\t\\n\\t\\t\\n\\t\\t$image = get_option( 'category_thumbnail_image' );\\n\\t\\t\\n\\t\\tif ( is_array( $image ) && array_key_exists( $cat_id, $image ) ) {\\n\\t\\t\\t$image = $image[ $cat_id ];\\n\\t\\t\\t$image = wp_get_attachment_image_src( (int) $image );\\n\\t\\t\\t\\n\\t\\t\\t$return = new stdClass;\\n\\t\\t\\t$return->url = $image[0];\\n\\t\\t\\t$return->width = $image[1];\\n\\t\\t\\t$return->height = $image[2];\\n\\t\\t\\t\\n\\t\\t\\treturn $return;\\n\\t\\t\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn false;\\n\\t\\t\\n\\t}\",\n \"function getChildSelectorName() ;\",\n \"function ag_coll_builder() {\\n\\trequire_once(AG_DIR . '/functions.php');\\n\\n\\tif(!isset($_POST['coll_id'])) {die('missing data');}\\n\\t$coll_id = addslashes($_POST['coll_id']);\\n\\t\\t\\t\\n\\t// item categories list\\n\\t$item_cats = get_terms( 'ag_gall_categories', 'hide_empty=0' );\\n\\t\\n\\t// cat and page selector\\n\\t?>\\n

    \\n \\n
    \\n

    \\n
    \\n \\n
    \\n \\n \\n \\n \\n \\n \\n \\n
    \\n \\n \\n \\n
    \\n
    \\n \\n \\\" autocomplete=\\\"off\\\" />\\n \\n \\\">\\n \\\">\\n \\n ()\\n
    \\n \\n
      \\n '. __('No galleries found', 'ag_ml') .' ..';}\\n else {echo $post_list;}\\n ?>\\n
    \\n
    \\n
    \\n
    \\n\\t
    \\n
    \\n
    \\n \\n
    \\n

    \\n
    \\n \\n\\t\\t
    \\n \\n\\t\\t\\n description);\\n\\t\\t $coll_galleries = $coll_composition['galleries'];\\n\\t\\t \\n if(is_array( $coll_galleries) && count( $coll_galleries) > 0) {\\n\\t\\t\\t\\n\\t\\t\\t$a = 0; \\n foreach( $coll_galleries as $gdata) {\\n\\t\\t\\t $gid = $gdata['id'];\\n\\t\\t\\t $gall_img = ag_get_gall_first_img($gid);\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t if(get_post_status($gid) == 'publish' && $gall_img) {\\n\\n\\t\\t\\t\\t $rand_check \\t= (isset($gdata['rand']) && $gdata['rand'] != 0) ? 'checked=\\\"checked\\\"' : '';\\n\\t\\t\\t\\t $wmark_check \\t= (isset($gdata['wmark']) && $gdata['wmark'] != 0) ? 'checked=\\\"checked\\\"' : ''; \\n\\t\\t\\t\\t $filter_check\\t= (isset($gdata['filters']) && $gdata['filters'] != 0) ? 'checked=\\\"checked\\\"' : ''; \\n\\t\\t\\t\\t \\t\\n\\t\\t\\t\\t $link_subj \\t= (isset($gdata['link_subj'])) ? $gdata['link_subj'] : 'none'; \\n\\t\\t\\t\\t $link_val \\t= (isset($gdata['link_val'])) ? $gdata['link_val'] : '';\\n\\t\\t\\t\\t $descr \\t\\t= (isset($gdata['descr'])) ? $gdata['descr'] : ''; \\n\\t\\t\\t\\t \\n\\t\\t\\t\\t // custom image\\n\\t\\t\\t\\t if(isset($gdata['cust_img']) && $gdata['cust_img']) {\\n\\t\\t\\t\\t\\t$cust_img = ag_thumb_src($gdata['cust_img'], 500, 500, 70);\\n\\t\\t\\t\\t\\t$cust_img_id = $gdata['cust_img'];\\n\\t\\t\\t\\t\\t$ci_icon_sel_class = 'ag_coll_cust_img_sel'; \\n\\t\\t\\t\\t } \\n\\t\\t\\t\\t else {\\n\\t\\t\\t\\t\\t$cust_img = '';\\n\\t\\t\\t\\t\\t$cust_img_id = '';\\n\\t\\t\\t\\t\\t$ci_icon_sel_class = ''; \\n\\t\\t\\t\\t }\\n\\t\\t\\t\\t \\n\\t\\t\\t\\t $orig_thumb = ag_thumb_src($gall_img, 500, 500, 70);\\n\\t\\t\\t\\t $thumb_to_use = (empty($cust_img)) ? $orig_thumb : $cust_img;\\n\\t\\t\\t\\t \\n\\t\\t\\t\\t \\n\\t\\t\\t\\t // categories\\n\\t\\t\\t\\t $gall_cats = ag_gallery_cats($gid, 'list', ', ');\\n\\t\\t\\t\\t $gall_cats = (empty($gall_cats)) ? ''. __('No associated categories', 'ag_ml') .' ..' : ' '.$gall_cats;\\n\\n\\t\\t\\t\\t echo '\\n\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t \\n\\t\\t\\t\\t ';\\n\\t\\t\\t }\\n\\t\\t\\t $a++;\\n }\\n }\\n\\t\\t else {echo '';}\\n ?>\\n\\n
    \\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
    \\n\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t'. $gall_cats .'\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t

    \\n\\t\\t\\t\\t\\t\\t\\t\\t'.get_the_title($gid).'\\n\\t\\t\\t\\t\\t\\t\\t

    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t

    '.__('Random display?', 'ag_ml').'

    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t

    '.__('Use tags filter?', 'ag_ml').'

    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t

    '.__('Use watermark?', 'ag_ml').'

    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t

    '.__('Image link', 'ag_ml').'

    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
    \\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t

    '.__('No selected galleries', 'ag_ml').' ..

    \\n
    \\n \\n\\t
    \\n
    \\n \\n\\t0,\\\"approved\\\" => 1, \\\"isCategory\\\"=>1,\\\"categoryId\\\"=>$catId);\\n\\t\\t$fetchUser = $this->get_record_by_ID($table,$key,$id,$fields);\\n\\t\\tif(count($fetchUser)>0)\\n\\t\\t{\\n\\t\\t\\treturn $fetchUser;\\n\\t\\t}\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\t$fetchUser[0]['image640By480']= \\\"../images/default.gif\\\";\\n\\t\\t\\t$fetchUser[0]['image640by480Height']= 480;\\n $fetchUser[0]['image640by480Width'] = 640;\\n\\t\\t\\t$fetchUser[0]['image400by300'] =\\\"../images/default.gif\\\";;\\n $fetchUser[0]['image400by300Height'] = 300;\\n $fetchUser[0]['image400by300Width'] = 400;\\n $fetchUser[0]['image100by80'] = \\\"../images/default_100_75.gif\\\";\\n $fetchUser[0]['image100by80Height'] = 75;\\n $fetchUser[0]['image100by80Width'] = 100;\\n\\t\\t\\treturn $fetchUser;\\n\\t\\t}\\n\\t}\",\n \"protected function _loadPictureForm() {\\n\\t\\tCgn::loadLibrary('Form::lib_cgn_form');\\n\\t\\tCgn::loadLibrary('Html_widgets::lib_cgn_widget');\\n\\t\\t$f = new Cgn_Form('form_upload_profile_pic', '', 'POST', 'multipart/form-data');\\n\\t\\t$f->width = '40em';\\n\\t\\t$f->formHeader = 'Select an image file on your computer (4MB max)';\\n\\n\\t\\t$f->layout = new Cgn_Form_Layout_Dl();\\n\\n\\t\\t$f->action = cgn_sappurl('account', 'img', 'save');\\n\\n\\t\\t$f->appendElement(new Cgn_Form_ElementFile('pic', ''));\\n\\n\\t\\treturn $f;\\n\\t}\",\n \"public function getChildSelectorName();\",\n \"public function getSelectorHolder()\\n {\\n return \\\"$(\\\\\\\".step-button-wrapper[data-for='{$this->Name}']\\\\\\\")\\\";\\n }\",\n \"function getCategory() {\\n\\t\\treturn $this->node->firstChild->toString();\\n\\t}\",\n \"function &getByName( $name )\\r\\n {\\r\\n $db =& eZDB::globalDatabase();\\r\\n\\r\\n $topic = new eZImageCategory();\\r\\n\\r\\n if ( $name != \\\"\\\" )\\r\\n {\\r\\n $db->array_query( $author_array, \\\"SELECT ID, Name FROM eZImageCatalogue_Category WHERE Name='$name'\\\" );\\r\\n\\r\\n if ( count( $author_array ) == 1 )\\r\\n {\\r\\n $topic = new eZImageCategory( $author_array[0][$db->fieldName( \\\"ID\\\" )] );\\r\\n }\\r\\n }\\r\\n\\r\\n return $topic;\\r\\n }\",\n \"protected function get_display_category()\\n\\t{\\n\\t\\t$image = ATTACHMENT_CATEGORY_IMAGE;\\n\\t\\t$none = ATTACHMENT_CATEGORY_NONE;\\n\\t\\t$thumb = ATTACHMENT_CATEGORY_THUMB;\\n\\n\\t\\t$display_cat = (strpos($this->get('mimetype'), 'image') === 0) ? $image : $none;\\n\\n\\t\\tif ($display_cat == $image)\\n\\t\\t{\\n\\t\\t\\tif ($this->get('thumbnail'))\\n\\t\\t\\t{\\n\\t\\t\\t\\t$display_cat = $thumb;\\n\\t\\t\\t}\\n\\t\\t\\telse\\n\\t\\t\\t{\\n\\t\\t\\t\\tif ($this->config['img_display_inlined'])\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tif ($this->config['img_link_width'] || $this->config['img_link_height'])\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t$dimension = @getimagesize($this->get_filepath());\\n\\n\\t\\t\\t\\t\\t\\t// If the dimensions could not be determined or the image being 0x0 we display it as a link for safety purposes\\n\\t\\t\\t\\t\\t\\tif ($dimension === false || empty($dimension[0]) || empty($dimension[1]))\\n\\t\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t\\t$display_cat = $none;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\telse\\n\\t\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t\\t$display_cat = ($dimension[0] <= $this->config['img_link_width'] && $dimension[1] <= $this->config['img_link_height']) ? $image : $none;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t$display_cat = $none;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// Make some decisions based on user options being set.\\n\\t\\tif (($display_cat == $image || $display_cat == $thumb) && !$this->user->optionget('viewimg'))\\n\\t\\t{\\n\\t\\t\\t$display_cat = $none;\\n\\t\\t}\\n\\t\\treturn $display_cat;\\n\\t}\",\n \"protected function getCategoryButton() {\\n\\t\\treturn [\\n\\t\\t\\t'attributes' => [\\n\\t\\t\\t\\t'href' => '#/categories',\\n\\t\\t\\t\\t// add hidden class (the overlay works only, when JS is enabled (class will\\n\\t\\t\\t\\t// be removed in categories/init.js)\\n\\t\\t\\t\\t'class' => 'category-button hidden',\\n\\t\\t\\t],\\n\\t\\t\\t'label' => $this->msg( 'categories' )->text()\\n\\t\\t];\\n\\t}\",\n \"public function getSelectorName();\",\n \"public function output_category_widget() {\\n\\n\\t\\t$categories = get_terms( 'product_cat', array( 'orderby' => 'name' ) );\\n\\t\\t?>\\n\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t\\t\\\" />\\n\\t\\t\\t
    \\n\\t\\t\\t\\n\\t\\t
    \\n\\t\\tID;\\n $title = $thisPost->post_title;\\n $image = get_the_post_thumbnail_url($id)?get_the_post_thumbnail_url($id):DF_IMAGE. '/noimage.png';\\n $link = get_permalink($id);\\n // $terms = get_the_terms( $post->ID, 'publication_category' );\\n $data_taxaonomy = get_the_terms($id, 'categories-gallery');\\n ?>\\n
    \\\" data-slug = \\\"slug; ?>\\\">\\n
    \\n \\n
    \\n
    \\n
    \\\" alt=\\\"icon-3d\\\" />
    \\n
    EXPLORE 3D SPACE
    \\n
    \\n
    \\n \\n \\\">\\n \\\" alt=\\\"image-work-page\\\"/>\\n \\n
    \\n has_image) return null;\\n return asset($this->imageDirectory . '/' . $this->categoryImageFileName);\\n }\",\n \"public function getComboKindCategory()\\n {\\n $querystr = <<c->query($querystr);\\n if ($results === FALSE)\\n return \\\"\\\";\\n\\n $ret = '\\\";\\n\\n $results->close();\\n\\n return $ret;\\n\\n }\",\n \"function ag_cat_galleries_code($fnc_cat = false) {\\t\\n\\tinclude_once(AG_DIR . '/functions.php');\\n\\t$cat = $fnc_cat;\\n\\t$code = '';\\n\\t\\n\\t// if is not called directly\\n\\tif(!$cat) {\\n\\t\\tif(!isset($_POST['gallery_cat'])) {die('missing data');}\\n\\t\\t$cat = $_POST['gallery_cat'];\\n\\t}\\n\\n\\t$post_list = ag_cat_galleries($cat);\\t\\n\\tif(!$post_list) {return false;}\\n\\t\\n\\tforeach($post_list as $post) {\\n\\t\\t$code .= '\\n\\t\\t
  • \\n\\t\\t\\t
    '.$post['title'].'
    \\n\\t\\t
  • ';\\n\\t}\\n\\n\\t\\n\\tif($fnc_cat == false) {die( $code );}\\n\\telse {return $code;}\\n}\",\n \"public function bamobile_taxonomy_field($template, $taxonomy){\\r\\n $params = array(\\r\\n 'label' => array(\\r\\n 'image' => __('Mobile App Images'),\\r\\n 'upload_image' => __('Upload/Edit Image'),\\r\\n 'remove_image' => __('Remove image'),\\r\\n 'note' => __('* This picture only work on Mobile App')\\r\\n ),\\r\\n 'mobiconnector_attachment' => null\\r\\n );\\r\\n\\r\\n\\r\\n if (isset($taxonomy->term_id) && $this->bamobile_has_image($taxonomy->term_id)) {\\r\\n $image = self::bamobile_get_category_image(array(\\r\\n 'term_id' => $taxonomy->term_id\\r\\n ), true);\\r\\n \\r\\n $attachment_id = $this->bamobile_get_attachment_id($taxonomy->term_id);\\r\\n\\r\\n $params = array_replace_recursive($params, array(\\r\\n 'mobiconnector_category_avatar' => $image,\\r\\n 'mobiconnector_attachment' => $attachment_id,\\r\\n ));\\r\\n }\\r\\n\\r\\n return bamobile_mobiconnector_get_category_template($template, $params, false);\\r\\n }\",\n \"public function getSelectorName() {}\",\n \"public function getSelectorName() {}\",\n \"public function getSelectorName() {}\",\n \"public function getSelectorName() {}\",\n \"protected function getSelectorName() {}\",\n \"function template_preprocess_excur_service_category(&$vars) {\\n $city = menu_get_object('taxonomy_term', 2);\\n $vars['city'] = $city->name;\\n\\n $vocabulary = taxonomy_vocabulary_machine_name_load('category');\\n foreach (taxonomy_get_tree($vocabulary->vid, 0, NULL, TRUE) as $key => $term) {\\n $vars['categories'][$key]['name'] = $term->name;\\n $vars['categories'][$key]['id'] = $term->tid;\\n $vars['categories'][$key]['icon'] = theme('image_style', array(\\n 'style_name' => '50x50',\\n 'path' => $term->field_image[LANGUAGE_NONE][0]['uri'],\\n 'alt' => $term->name,\\n 'title' => $term->name,\\n 'attributes' => array(\\n 'class' => array('categoty-icon'),\\n ),\\n ));\\n }\\n}\",\n \"public function categoryForm(){\\n $table = \\\"categories\\\";\\n $cresults = $this->getAllrecords($table);\\n foreach($cresults as $category){\\n echo('');\\n }\\n\\n\\n }\",\n \"public function getArticleSelector() {\\n $result = '';\\n if ($this->data['wiki_page'] > 0) {\\n $result .= sprintf(\\n '',\\n $this->getWebLink($this->data['wiki_page'])\\n );\\n $result .= sprintf('', $this->paramName);\\n $result .= sprintf(\\n '',\\n $this->paramName,\\n papaya_strings::escapeHTMLChars($this->data['caption_article'])\\n );\\n $result .= sprintf(\\n '';\r\n}","function generate_excerpt_more($more)\n {\n return apply_filters('generate_excerpt_more_output', sprintf(' ... %3$s %4$s',\n the_title_attribute('echo=0'),\n esc_url(get_permalink(get_the_ID())),\n __('Read more', 'generatepress'),\n '' . get_the_title() . ''\n ));\n }","function clrfl_excerpt_more($more) {\n\tglobal $post;\n\treturn 'ID) . '\"> Read the full article...';\n}","function minorite_more_link($variables) {\n return '

    ' . l($variables['title'], $variables['url'], array('attributes' => array('title' => $variables['title']), 'query' => $variables['query'])) . '

    ';\n}","function mt_filter_excerpt_more_link($excerpt) {\n\t$post = get_post();\n\t$excerpt .= 'ID) .'\" class=\"btn btn-primary float-right\"> Läs mer &raquo; ';\n\t\n\treturn $excerpt;\n }","function mithpress_auto_excerpt_more( $more ) {\n\treturn ' . . . ' . mithpress_continue_reading_link();\n}","function more_link() {\n\tglobal $post;\t\n\tif (strpos($post->post_content, '')) :\n\t\t$more_link = '

    ';\n\t\t$more_link .= 'Read More...';\n\t\t$more_link .= '

    ';\n\t\techo $more_link;\n\tendif;\n}","function twentyten_custom_excerpt_more( $output ) {\n\tif ( has_excerpt() && ! is_attachment() && ! is_admin() ) {\n\t\t$output .= twentyten_continue_reading_link();\n\t}\n\treturn $output;\n}","function echotheme_custom_excerpt_more($output) {\n\tif (has_excerpt() && ! is_attachment()) {\n\t\t$output .= echotheme_continue_reading_link();\n\t}\n\treturn $output;\n}","public static function excerpt_read_more( $more ) {\n global $post;\n // Defining the $output (read more link)\n $output = '...

    ID ) . '\"> Read More

    ';\n // Returning the $output\n return $output;\n }","function my_excerpt_more( $more ) {\n\treturn ' &hellip; Continue reading &ldquo;'. get_the_title() .'&rdquo; &rarr;';\n}","function rw_continue_reading_link( )\n{\n return ' ' . __( 'More', 'rotorwash' ) . '';\n}","function new_excerpt_more( $more ) {\n\treturn ' قراءة المزيد';\n}","function et_excerpt_more($more) {\n global $post;\n return ';';\n}","function uwmadison_auto_excerpt_more( $more ) {\n\t\treturn ' &hellip;' . uwmadison_continue_reading_link();\n\t}","function rw_auto_excerpt_more( )\n{\n return in_the_loop() ? '&hellip;' . rw_continue_reading_link() : '&hellip;';\n}","public static function the_content_more_link() {\n\t\t\t$cpt = self::get_post_type();\n\n\t\t\tif ( $cpt && $cpt !== 'post' ) {\n\t\t\t\t$title = esc_html( self::option( 'readmore_' . $cpt ) );\n\t\t\t\t$icon = esc_attr( self::option( 'readmore_icon_' . $cpt ) );\n\t\t\t} else {\n\t\t\t\t$title = esc_html( self::option( 'readmore' ) );\n\t\t\t\t$icon = esc_attr( self::option( 'readmore_icon' ) );\n\t\t\t}\n\t\t\t\n\t\t\t$icon = $icon ? '' : '';\n\n\t\t\treturn ( $title || $icon ) ? 'ID ) ) . '\">' . $icon . '' . $title . '' : '';\n\t\t}","function more_link($more) {\n global $post;\n return '... ID) . '\">' . __('Mehr', 'myTheme') . '';\n }","function emc_learn_more_link() {\r\n\r\n\t$more = sprintf( '%3$s',\r\n\t\tget_permalink(),\r\n\t\tesc_attr__( 'View full post', 'emc' ),\r\n\t\tesc_html__( '&nbsp;&nbsp;More&nbsp;&rarr;', 'emc' )\r\n\t);\r\n\treturn $more;\r\n\r\n}","function et_excerpt_more($more) {\n global $post;\n return '';\n}","function custom_excerpt_more( $more ) {\r\n\t return '...';\r\n}","function codium_extend_excerpt_more($more) {\n global $post;\n $readmore = __('Czytaj wiecej', 'codium_extend' );\n return '';\n}","function codium_extend_excerpt_more($more) {\n global $post;\n $readmore = __('Czytaj wiecej', 'codium_extend' );\n return '';\n}","function darksnow_auto_excerpt_more( $more ) {\n\treturn ' &hellip;' . darksnow_continue_reading_link();\n}","function artmag_fm_more_link() {\n return '';\n}","function darksnow_custom_excerpt_more( $output ) {\n\tif ( has_excerpt() && ! is_attachment() ) {\n\t\t$output .= darksnow_continue_reading_link();\n\t}\n\treturn $output;\n}","function mithpress_custom_excerpt_more( $output ) {\n\tif ( has_excerpt() && ! is_attachment() ) {\n\t\t$output .= mithpress_continue_reading_link();\n\t}\n\treturn $output;\n}","function custom_desktop_excerpt_more($more) {\n}","function ppo_excerpt_more($more) {\n $link = sprintf('%2$s', esc_url(get_permalink(get_the_ID())),\n /* translators: %s: Name of current post */ \n sprintf(__('Xem thêm &rarr;', SHORT_NAME))\n );\n return ' &hellip; ' . $link;\n}","function echotheme_auto_excerpt_more($more) {\n\treturn '&hellip;
    ' . echotheme_continue_reading_link();\n}","public function customise_readmore_action($more_link){\n \t\t\n \tglobal $post;\n\t\t\n\t\t//determine if we want a post preview\n\t\t$upcoming_preview_status = get_post_meta($post->ID,'upcoming_preview_status', true);\n\t\tif($upcoming_preview_status == 'true'){\n\t\t\t//determine if we have set the option to display via 'more' tag\n\t\t\t$upcoming_preview_type = get_post_meta($post->ID,'upcoming_preview_type', true);\n\t\t\t\n\t\t\t//build a pretty readmore link for user engagement\n\t\t\tif($upcoming_preview_type == 'upcoming_preview_more_tag'){\n\t\t\t\t$more_link = $this->get_readmore_element();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $more_link;\n }","public function get_readmore_element(){\n\n\t\tglobal $post; \n\n\t\t$html = '';\n\t\t\n\t\t//get default action and text to display (and allow filters)\n\t\t$upcoming_post_link_action = apply_filters('sc_upcoming_post_link_action', 'mailto:contact@mywebsite.com.au', $post);\n\t\t$upcoming_post_link_text = apply_filters('sc_upcoming_post_link_text', 'Get in contact and we will update you when this post is published!', $post);\n\n\t\t$html .= '
    ';\n\t\t$html .= '' . $upcoming_post_link_text . '';\n\t\t$html .= '
    ';\n\t\t\n\t\treturn $html; \n\t}","function uwmadison_custom_excerpt_more( $output ) {\n\t\tif ( has_excerpt() && ! is_attachment() ) {\n\t\t\t$output .= uwmadison_continue_reading_link();\n\t\t}\n\t\treturn $output;\n\t}","function quasar_get_read_more_link($target='_self'){\n\tglobal $post;\n\tif(!$post) return;\n\t\n\t$is_button = false;\n\t\n\t$return = '';\n\t\n\tif($is_button){\n\t\t$return .= ''.quasar_get_read_more_text().'';\n\t}else{\n\t\t$return .= ''.quasar_get_read_more_text().'';\n\t}\n\t\n\n\treturn $return;\n}","function wpdocs_excerpt_more( $more ) {\n return ' ...';\n}","function echotheme_auto_content_more($more) {\n\treturn echotheme_continue_reading_link();\n}","function new_excerpt_more( $more ) {\n\treturn '...';\n}","function tac_new_excerpt_more( $more ) {\n\treturn '...';\n}","function themify_custom_excerpt_more($more) {\n global $post;\n return '';\n}","function DF_read_more($matches) {\r\n\treturn '

    '.$matches[1].'

    '.$matches[4].'

    ';\r\n}","function barjeel_excerpt($more) {\n global $post;\n return '&nbsp; &nbsp;ID) . '\">...Continue Reading';\n}","function quasar_get_read_more_text(){\n\t\n\t$return = '';\n\t\n\t$return .= __('Read More ','quasar');\n\t\n\treturn $return;\t\n}","function wpfme_replace_excerpt($content) {\n return str_replace('[...]',\n 'Continue Reading',\n $content\n );\n}","function new_excerpt_more( $more ) {\n return ' ...';\n}","function wp_embed_excerpt_more($more_string)\n {\n }","function twentyseventeen_excerpt_more( $link ) {\n\tif ( is_admin() ) {\n\t\treturn $link;\n\t}\n\n\t$link = sprintf( '',\n\t\tesc_url( get_permalink( get_the_ID() ) ),\n\t\t/* translators: %s: Name of current post */\n\t\tsprintf( __( 'Continue reading \"%s\"', 'twentyseventeen' ), get_the_title( get_the_ID() ) )\n\t);\n\treturn ' &hellip; ' . $link;\n}","function new_excerpt_more($more) {\n\treturn '...';\n}","function pulcherrimum_excerpt_more($link)\n {\n if (is_admin()) {\n return $link;\n }\n\n $link = sprintf(\n '',\n esc_url(get_permalink(get_the_ID())),\n /* translators: %s: Post title. */\n sprintf(__('Continue reading \"%s\"', 'pulcherrimum'), get_the_title(get_the_ID()))\n );\n return ' &hellip; ' . $link;\n }","public function a11yExcerpt($more)\n {\n return sprintf(\n '&hellip; Continue reading %s',\n get_permalink(get_the_ID()),\n get_the_title()\n );\n }","function kstHelpWordpressBlogPosts_excerptsAndMoreTeasers() {\n ?>\n

    \n Your theme uses the excerpt field as well as the &lt;--more--&gt; tag giving\n you many options for formatting your blog index. Many themes use either the\n excerpt or the &lt;--more--&gt; tag to control what content appears on your\n blog index.\n

    \n

    \n Posts are displayed on the index in one of these formats (and order shown):\n

    \n
      \n
    1. Title and excerpt (if you type anything in the excerpt field)
    2. \n
    3. Title and the post up to the &lt;--more--&gt; (if you insert &lt;--more--&gt; in the post)
    4. \n
    5. Title and the entire post (if you do not enter an excerpt or the &lt;--more--&gt; tag)
    6. \n
    \n

    i.e. If you enter an excerpt and include a &lt;--more--&gt; tag only the excerpt will display

    \n

    \n How to use the \"more\" tag:\n

    \n

    \n In \"Visual\" mode:
    \n Place the cursor after the content you would like to appear on the blog index for that post.\n Click the button above the post editor that looks like\n a rectangle cut in two pieces (a small rectangle on top and a longer rectangle on the button).\n A line that says \"more\" will appear.\n

    \n

    \n In \"html\" mode:
    \n Place the cursor after the content you would like to appear on the blog index for that post.\n Type &lt;--more--&gt; on it's own line.\n

    \n

    \n Note: You may also customize the \"more\" link text that is shown per post (only possible using \"html\" mode).
    \n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Simply type the text to use after \"more\" e.g. &lt;--more But wait, there's more! --&gt;\n

    \n ID) ) . '\" class=\"' . $class_button . '\">' . esc_html__( 'Read More', 'ESTSB') . '

    ';\n\n\treturn $link;\n}","function new_excerpt_more($more) {\n global $post;\n return '...';\n}"],"string":"[\n \"function dh_modify_read_more_link() {\\r\\n return 'Click to Read!';\\r\\n}\",\n \"function modify_read_more_link() {\\n return 'View list..';\\n}\",\n \"function understrap_all_excerpts_get_more_link( $post_excerpt ) {\\n\\t\\treturn $post_excerpt . ' [...]

    Read Full Post

    ';\\n\\t}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n\\treturn ' ID) . '\\\">(Continue Reading...)';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post, $wpak_options;\\n\\n\\treturn '

    post_title.'\\\" href=\\\"'. get_permalink($post->ID) . '\\\">' . $wpak_options['readmore'] . '

    ';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n return ' ID) . '\\\">[...]';\\n}\",\n \"function wpdocs_excerpt_more( $more ) {\\n return sprintf( '%2$s
    ',\\n get_permalink( get_the_ID() ),\\n __( ' Read More...', 'textdomain' )\\n );\\n}\",\n \"function modify_read_more_link() {\\n $post_slug = get_post_field( 'post_name', get_post() );\\n return 'Detail';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n return ' [...] ID) . '\\\">' . __('Continue reading &rarr;', 'twentytwelve') . '';\\n }\",\n \"function wpdocs_excerpt_more( $more ) {\\n return ' [Read More...]';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n\\treturn '

    ID) . '\\\"> Read More

    ';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n\\treturn '';\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\treturn '... ' . __('Read More', 'your-text-domain') . '';\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\treturn '... Continue Reading...';\\n}\",\n \"function voyage_mikado_modify_read_more_link() {\\n $link = '';\\n\\n return $link;\\n }\",\n \"function medigroup_mikado_modify_read_more_link() {\\n $link = '';\\n\\n return $link;\\n }\",\n \"function excerpt_read_more_link($output) {\\r\\n global $post;\\r\\n return $output . 'ID) . '\\\">'.__(\\\"Keep Reading\\\",TEXTDOMAIN ).'';\\r\\n}\",\n \"function lightseek_read_more_link() {\\n\\treturn '

    Read More

    ';\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\tglobal $post;\\n\\treturn '... ';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n\\treturn '... (ID) . '\\\">Read more)';\\n}\",\n \"function custom_excerpt_more($more) {\\n\\t\\treturn 'Read More &raquo;';\\n\\t}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n\\treturn 'ID) . '\\\"> read more...';\\n}\",\n \"function new_excerpt_more( $more ) {\\r\\n\\treturn ' Continue Reading &#8594;';\\r\\n}\",\n \"function new_excerpt_more( $more ) {\\n return ' ' . __( 'Read More...', 'your-text-domain' ) . '';\\n}\",\n \"function wpdocs_excerpt_more( $more ) {\\n return sprintf( '%2$s',\\n get_permalink( get_the_ID() ),\\n __( '...', 'textdomain' )\\n );\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n // return 'ID) . '\\\">'.__('Read More','textdomain').'';\\n return '';\\n}\",\n \"function wpdocs_excerpt_more( $more ) {\\n return sprintf( '%2$s',\\n get_permalink( get_the_ID() ),\\n __( 'Read More', 'textdomain' )\\n );\\n}\",\n \"function new_excerpt_more($more)\\r\\n{\\r\\n\\tglobal $post;\\r\\n\\treturn 'ID) . '\\\"> Read the full article...';\\r\\n}\",\n \"function linolakestheme_excerpt_more( $more ) {\\n return sprintf( '%2$s',\\n get_permalink( get_the_ID() ),\\n __( ' Read more', 'textdomain' )\\n );\\n}\",\n \"function mintshow_excerpt_more( $more ) {\\n return sprintf( '%2$s ',\\n get_permalink( get_the_ID() ),\\n __( 'Read More', 'textdomain' )\\n );\\n}\",\n \"function new_excerpt_more($more) {\\n\\n\\tglobal $post;\\n\\n\\treturn '...&nbsp; ID) . '\\\">
    read&nbsp;more
    ';\\n\\n}\",\n \"function rw_custom_excerpt_more( $output )\\n{\\n if( has_excerpt() && !is_attachment() )\\n {\\n $output .= rw_continue_reading_link();\\n }\\n return $output;\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n\\treturn ' ID) . '\\\">[ more ]';\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\treturn '...
    '.'Read More';\\n}\",\n \"function new_excerpt_more($more) {\\n\\tglobal $post;\\n\\treturn 'ID) . '\\\"> Leia o artigo completo...';\\n}\",\n \"function quasar_read_more($target='_self'){\\n\\tglobal $post;\\n\\n\\tif(!$post || (!$post->ID)) return;\\n\\t\\n\\t$return = ' '.__('read more','quasar').' ';\\n\\t\\n\\treturn $return;\\n}\",\n \"function nightsky_excerpt_more( $more ) {\\n global $post;\\n return '

    ID ) . '\\\">Continue reading ' . $post->post_title . '

    ';\\n}\",\n \"function new_excerpt_more( $more ) {\\n return '&hellip; continue reading';\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\treturn '[...]';\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n return 'ID) . '\\\"> ...Read the full article';\\n}\",\n \"function rls_read_more_button($more) {\\n global $post;\\n return '';\\n}\",\n \"function <%= functionPrefix %>_custom_post_more($more) {\\n global $post;\\n return '... ID) . '\\\">' . __('Read More', '<%= projectName %>') . '';\\n}\",\n \"function new_excerpt_more($more) {\\n\\tglobal $post;\\n\\treturn '&hellip;
    ID) . '\\\">Read more';\\n}\",\n \"function labs_auto_excerpt_more( $more ) {\\n\\treturn ' &hellip;' . labs_continue_reading_link();\\n}\",\n \"function twentyten_auto_excerpt_more( $more ) {\\n\\tif ( ! is_admin() ) {\\n\\t\\treturn ' &hellip;' . twentyten_continue_reading_link();\\n\\t}\\n\\treturn $more;\\n}\",\n \"function wpdocs_excerpt_more( $more ) {\\n return '...';\\n}\",\n \"function swbtheme_excerpt_more($more) {\\n global $post;\\n\\treturn 'ID) . '\\\"> Read the full article...';\\n}\",\n \"function mila_custom_excerpt_more($more) {\\n global $post;\\n return '&nbsp;';\\n }\",\n \"function new_excerpt_more($more) {\\r\\n global $post;\\r\\n return '';\\r\\n}\",\n \"function generate_excerpt_more($more)\\n {\\n return apply_filters('generate_excerpt_more_output', sprintf(' ... %3$s %4$s',\\n the_title_attribute('echo=0'),\\n esc_url(get_permalink(get_the_ID())),\\n __('Read more', 'generatepress'),\\n '' . get_the_title() . ''\\n ));\\n }\",\n \"function clrfl_excerpt_more($more) {\\n\\tglobal $post;\\n\\treturn 'ID) . '\\\"> Read the full article...';\\n}\",\n \"function minorite_more_link($variables) {\\n return '

    ' . l($variables['title'], $variables['url'], array('attributes' => array('title' => $variables['title']), 'query' => $variables['query'])) . '

    ';\\n}\",\n \"function mt_filter_excerpt_more_link($excerpt) {\\n\\t$post = get_post();\\n\\t$excerpt .= 'ID) .'\\\" class=\\\"btn btn-primary float-right\\\"> Läs mer &raquo; ';\\n\\t\\n\\treturn $excerpt;\\n }\",\n \"function mithpress_auto_excerpt_more( $more ) {\\n\\treturn ' . . . ' . mithpress_continue_reading_link();\\n}\",\n \"function more_link() {\\n\\tglobal $post;\\t\\n\\tif (strpos($post->post_content, '')) :\\n\\t\\t$more_link = '

    ';\\n\\t\\t$more_link .= 'Read More...';\\n\\t\\t$more_link .= '

    ';\\n\\t\\techo $more_link;\\n\\tendif;\\n}\",\n \"function twentyten_custom_excerpt_more( $output ) {\\n\\tif ( has_excerpt() && ! is_attachment() && ! is_admin() ) {\\n\\t\\t$output .= twentyten_continue_reading_link();\\n\\t}\\n\\treturn $output;\\n}\",\n \"function echotheme_custom_excerpt_more($output) {\\n\\tif (has_excerpt() && ! is_attachment()) {\\n\\t\\t$output .= echotheme_continue_reading_link();\\n\\t}\\n\\treturn $output;\\n}\",\n \"public static function excerpt_read_more( $more ) {\\n global $post;\\n // Defining the $output (read more link)\\n $output = '...

    ID ) . '\\\"> Read More

    ';\\n // Returning the $output\\n return $output;\\n }\",\n \"function my_excerpt_more( $more ) {\\n\\treturn ' &hellip; Continue reading &ldquo;'. get_the_title() .'&rdquo; &rarr;';\\n}\",\n \"function rw_continue_reading_link( )\\n{\\n return ' ' . __( 'More', 'rotorwash' ) . '';\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\treturn ' قراءة المزيد';\\n}\",\n \"function et_excerpt_more($more) {\\n global $post;\\n return ';';\\n}\",\n \"function uwmadison_auto_excerpt_more( $more ) {\\n\\t\\treturn ' &hellip;' . uwmadison_continue_reading_link();\\n\\t}\",\n \"function rw_auto_excerpt_more( )\\n{\\n return in_the_loop() ? '&hellip;' . rw_continue_reading_link() : '&hellip;';\\n}\",\n \"public static function the_content_more_link() {\\n\\t\\t\\t$cpt = self::get_post_type();\\n\\n\\t\\t\\tif ( $cpt && $cpt !== 'post' ) {\\n\\t\\t\\t\\t$title = esc_html( self::option( 'readmore_' . $cpt ) );\\n\\t\\t\\t\\t$icon = esc_attr( self::option( 'readmore_icon_' . $cpt ) );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$title = esc_html( self::option( 'readmore' ) );\\n\\t\\t\\t\\t$icon = esc_attr( self::option( 'readmore_icon' ) );\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t$icon = $icon ? '' : '';\\n\\n\\t\\t\\treturn ( $title || $icon ) ? 'ID ) ) . '\\\">' . $icon . '' . $title . '' : '';\\n\\t\\t}\",\n \"function more_link($more) {\\n global $post;\\n return '... ID) . '\\\">' . __('Mehr', 'myTheme') . '';\\n }\",\n \"function emc_learn_more_link() {\\r\\n\\r\\n\\t$more = sprintf( '%3$s',\\r\\n\\t\\tget_permalink(),\\r\\n\\t\\tesc_attr__( 'View full post', 'emc' ),\\r\\n\\t\\tesc_html__( '&nbsp;&nbsp;More&nbsp;&rarr;', 'emc' )\\r\\n\\t);\\r\\n\\treturn $more;\\r\\n\\r\\n}\",\n \"function et_excerpt_more($more) {\\n global $post;\\n return '';\\n}\",\n \"function custom_excerpt_more( $more ) {\\r\\n\\t return '...';\\r\\n}\",\n \"function codium_extend_excerpt_more($more) {\\n global $post;\\n $readmore = __('Czytaj wiecej', 'codium_extend' );\\n return '';\\n}\",\n \"function codium_extend_excerpt_more($more) {\\n global $post;\\n $readmore = __('Czytaj wiecej', 'codium_extend' );\\n return '';\\n}\",\n \"function darksnow_auto_excerpt_more( $more ) {\\n\\treturn ' &hellip;' . darksnow_continue_reading_link();\\n}\",\n \"function artmag_fm_more_link() {\\n return '';\\n}\",\n \"function darksnow_custom_excerpt_more( $output ) {\\n\\tif ( has_excerpt() && ! is_attachment() ) {\\n\\t\\t$output .= darksnow_continue_reading_link();\\n\\t}\\n\\treturn $output;\\n}\",\n \"function mithpress_custom_excerpt_more( $output ) {\\n\\tif ( has_excerpt() && ! is_attachment() ) {\\n\\t\\t$output .= mithpress_continue_reading_link();\\n\\t}\\n\\treturn $output;\\n}\",\n \"function custom_desktop_excerpt_more($more) {\\n}\",\n \"function ppo_excerpt_more($more) {\\n $link = sprintf('%2$s', esc_url(get_permalink(get_the_ID())),\\n /* translators: %s: Name of current post */ \\n sprintf(__('Xem thêm &rarr;', SHORT_NAME))\\n );\\n return ' &hellip; ' . $link;\\n}\",\n \"function echotheme_auto_excerpt_more($more) {\\n\\treturn '&hellip;
    ' . echotheme_continue_reading_link();\\n}\",\n \"public function customise_readmore_action($more_link){\\n \\t\\t\\n \\tglobal $post;\\n\\t\\t\\n\\t\\t//determine if we want a post preview\\n\\t\\t$upcoming_preview_status = get_post_meta($post->ID,'upcoming_preview_status', true);\\n\\t\\tif($upcoming_preview_status == 'true'){\\n\\t\\t\\t//determine if we have set the option to display via 'more' tag\\n\\t\\t\\t$upcoming_preview_type = get_post_meta($post->ID,'upcoming_preview_type', true);\\n\\t\\t\\t\\n\\t\\t\\t//build a pretty readmore link for user engagement\\n\\t\\t\\tif($upcoming_preview_type == 'upcoming_preview_more_tag'){\\n\\t\\t\\t\\t$more_link = $this->get_readmore_element();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn $more_link;\\n }\",\n \"public function get_readmore_element(){\\n\\n\\t\\tglobal $post; \\n\\n\\t\\t$html = '';\\n\\t\\t\\n\\t\\t//get default action and text to display (and allow filters)\\n\\t\\t$upcoming_post_link_action = apply_filters('sc_upcoming_post_link_action', 'mailto:contact@mywebsite.com.au', $post);\\n\\t\\t$upcoming_post_link_text = apply_filters('sc_upcoming_post_link_text', 'Get in contact and we will update you when this post is published!', $post);\\n\\n\\t\\t$html .= '
    ';\\n\\t\\t$html .= '' . $upcoming_post_link_text . '';\\n\\t\\t$html .= '
    ';\\n\\t\\t\\n\\t\\treturn $html; \\n\\t}\",\n \"function uwmadison_custom_excerpt_more( $output ) {\\n\\t\\tif ( has_excerpt() && ! is_attachment() ) {\\n\\t\\t\\t$output .= uwmadison_continue_reading_link();\\n\\t\\t}\\n\\t\\treturn $output;\\n\\t}\",\n \"function quasar_get_read_more_link($target='_self'){\\n\\tglobal $post;\\n\\tif(!$post) return;\\n\\t\\n\\t$is_button = false;\\n\\t\\n\\t$return = '';\\n\\t\\n\\tif($is_button){\\n\\t\\t$return .= ''.quasar_get_read_more_text().'';\\n\\t}else{\\n\\t\\t$return .= ''.quasar_get_read_more_text().'';\\n\\t}\\n\\t\\n\\n\\treturn $return;\\n}\",\n \"function wpdocs_excerpt_more( $more ) {\\n return ' ...';\\n}\",\n \"function echotheme_auto_content_more($more) {\\n\\treturn echotheme_continue_reading_link();\\n}\",\n \"function new_excerpt_more( $more ) {\\n\\treturn '...';\\n}\",\n \"function tac_new_excerpt_more( $more ) {\\n\\treturn '...';\\n}\",\n \"function themify_custom_excerpt_more($more) {\\n global $post;\\n return '';\\n}\",\n \"function DF_read_more($matches) {\\r\\n\\treturn '

    '.$matches[1].'

    '.$matches[4].'

    ';\\r\\n}\",\n \"function barjeel_excerpt($more) {\\n global $post;\\n return '&nbsp; &nbsp;ID) . '\\\">...Continue Reading';\\n}\",\n \"function quasar_get_read_more_text(){\\n\\t\\n\\t$return = '';\\n\\t\\n\\t$return .= __('Read More ','quasar');\\n\\t\\n\\treturn $return;\\t\\n}\",\n \"function wpfme_replace_excerpt($content) {\\n return str_replace('[...]',\\n 'Continue Reading',\\n $content\\n );\\n}\",\n \"function new_excerpt_more( $more ) {\\n return ' ...';\\n}\",\n \"function wp_embed_excerpt_more($more_string)\\n {\\n }\",\n \"function twentyseventeen_excerpt_more( $link ) {\\n\\tif ( is_admin() ) {\\n\\t\\treturn $link;\\n\\t}\\n\\n\\t$link = sprintf( '',\\n\\t\\tesc_url( get_permalink( get_the_ID() ) ),\\n\\t\\t/* translators: %s: Name of current post */\\n\\t\\tsprintf( __( 'Continue reading \\\"%s\\\"', 'twentyseventeen' ), get_the_title( get_the_ID() ) )\\n\\t);\\n\\treturn ' &hellip; ' . $link;\\n}\",\n \"function new_excerpt_more($more) {\\n\\treturn '...';\\n}\",\n \"function pulcherrimum_excerpt_more($link)\\n {\\n if (is_admin()) {\\n return $link;\\n }\\n\\n $link = sprintf(\\n '',\\n esc_url(get_permalink(get_the_ID())),\\n /* translators: %s: Post title. */\\n sprintf(__('Continue reading \\\"%s\\\"', 'pulcherrimum'), get_the_title(get_the_ID()))\\n );\\n return ' &hellip; ' . $link;\\n }\",\n \"public function a11yExcerpt($more)\\n {\\n return sprintf(\\n '&hellip; Continue reading %s',\\n get_permalink(get_the_ID()),\\n get_the_title()\\n );\\n }\",\n \"function kstHelpWordpressBlogPosts_excerptsAndMoreTeasers() {\\n ?>\\n

    \\n Your theme uses the excerpt field as well as the &lt;--more--&gt; tag giving\\n you many options for formatting your blog index. Many themes use either the\\n excerpt or the &lt;--more--&gt; tag to control what content appears on your\\n blog index.\\n

    \\n

    \\n Posts are displayed on the index in one of these formats (and order shown):\\n

    \\n
      \\n
    1. Title and excerpt (if you type anything in the excerpt field)
    2. \\n
    3. Title and the post up to the &lt;--more--&gt; (if you insert &lt;--more--&gt; in the post)
    4. \\n
    5. Title and the entire post (if you do not enter an excerpt or the &lt;--more--&gt; tag)
    6. \\n
    \\n

    i.e. If you enter an excerpt and include a &lt;--more--&gt; tag only the excerpt will display

    \\n

    \\n How to use the \\\"more\\\" tag:\\n

    \\n

    \\n In \\\"Visual\\\" mode:
    \\n Place the cursor after the content you would like to appear on the blog index for that post.\\n Click the button above the post editor that looks like\\n a rectangle cut in two pieces (a small rectangle on top and a longer rectangle on the button).\\n A line that says \\\"more\\\" will appear.\\n

    \\n

    \\n In \\\"html\\\" mode:
    \\n Place the cursor after the content you would like to appear on the blog index for that post.\\n Type &lt;--more--&gt; on it's own line.\\n

    \\n

    \\n Note: You may also customize the \\\"more\\\" link text that is shown per post (only possible using \\\"html\\\" mode).
    \\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Simply type the text to use after \\\"more\\\" e.g. &lt;--more But wait, there's more! --&gt;\\n

    \\n ID) ) . '\\\" class=\\\"' . $class_button . '\\\">' . esc_html__( 'Read More', 'ESTSB') . '

    ';\\n\\n\\treturn $link;\\n}\",\n \"function new_excerpt_more($more) {\\n global $post;\\n return '...';\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.7775938","0.77386016","0.7637902","0.7552475","0.75478446","0.7543824","0.7513742","0.74987465","0.7492041","0.7488624","0.7485699","0.74832326","0.7482271","0.74725074","0.74569213","0.7447996","0.74461734","0.7435722","0.74356663","0.74342775","0.74282146","0.7415171","0.7402171","0.7394148","0.7390306","0.73793715","0.7365983","0.7355795","0.7334431","0.7320214","0.73167664","0.7313572","0.73053366","0.73023623","0.7300246","0.72976184","0.7259306","0.7235596","0.72353566","0.72245127","0.7207442","0.72031355","0.7193847","0.718799","0.7177265","0.7166439","0.71532047","0.7144302","0.71026546","0.708675","0.7076755","0.70628506","0.70562595","0.70520467","0.7051735","0.7047194","0.7039513","0.7027735","0.7024024","0.7007086","0.70001394","0.698828","0.6979139","0.69575626","0.6957046","0.69343257","0.6928004","0.69264895","0.6911596","0.6874478","0.6874478","0.68637305","0.6820474","0.681995","0.6817737","0.6817234","0.6815611","0.6812474","0.6783072","0.6777932","0.677167","0.67615074","0.6759158","0.6746072","0.66802883","0.6666078","0.66640395","0.66289157","0.66094303","0.66089404","0.6605409","0.6595933","0.6574189","0.6565739","0.6545142","0.6543302","0.65195554","0.64974743","0.64947665","0.6485098"],"string":"[\n \"0.7775938\",\n \"0.77386016\",\n \"0.7637902\",\n \"0.7552475\",\n \"0.75478446\",\n \"0.7543824\",\n \"0.7513742\",\n \"0.74987465\",\n \"0.7492041\",\n \"0.7488624\",\n \"0.7485699\",\n \"0.74832326\",\n \"0.7482271\",\n \"0.74725074\",\n \"0.74569213\",\n \"0.7447996\",\n \"0.74461734\",\n \"0.7435722\",\n \"0.74356663\",\n \"0.74342775\",\n \"0.74282146\",\n \"0.7415171\",\n \"0.7402171\",\n \"0.7394148\",\n \"0.7390306\",\n \"0.73793715\",\n \"0.7365983\",\n \"0.7355795\",\n \"0.7334431\",\n \"0.7320214\",\n \"0.73167664\",\n \"0.7313572\",\n \"0.73053366\",\n \"0.73023623\",\n \"0.7300246\",\n \"0.72976184\",\n \"0.7259306\",\n \"0.7235596\",\n \"0.72353566\",\n \"0.72245127\",\n \"0.7207442\",\n \"0.72031355\",\n \"0.7193847\",\n \"0.718799\",\n \"0.7177265\",\n \"0.7166439\",\n \"0.71532047\",\n \"0.7144302\",\n \"0.71026546\",\n \"0.708675\",\n \"0.7076755\",\n \"0.70628506\",\n \"0.70562595\",\n \"0.70520467\",\n \"0.7051735\",\n \"0.7047194\",\n \"0.7039513\",\n \"0.7027735\",\n \"0.7024024\",\n \"0.7007086\",\n \"0.70001394\",\n \"0.698828\",\n \"0.6979139\",\n \"0.69575626\",\n \"0.6957046\",\n \"0.69343257\",\n \"0.6928004\",\n \"0.69264895\",\n \"0.6911596\",\n \"0.6874478\",\n \"0.6874478\",\n \"0.68637305\",\n \"0.6820474\",\n \"0.681995\",\n \"0.6817737\",\n \"0.6817234\",\n \"0.6815611\",\n \"0.6812474\",\n \"0.6783072\",\n \"0.6777932\",\n \"0.677167\",\n \"0.67615074\",\n \"0.6759158\",\n \"0.6746072\",\n \"0.66802883\",\n \"0.6666078\",\n \"0.66640395\",\n \"0.66289157\",\n \"0.66094303\",\n \"0.66089404\",\n \"0.6605409\",\n \"0.6595933\",\n \"0.6574189\",\n \"0.6565739\",\n \"0.6545142\",\n \"0.6543302\",\n \"0.65195554\",\n \"0.64974743\",\n \"0.64947665\",\n \"0.6485098\"\n]"},"document_score":{"kind":"string","value":"0.748525"},"document_rank":{"kind":"string","value":"11"}}},{"rowIdx":446,"cells":{"query":{"kind":"string","value":"Define Allowed Files to be included."},"document":{"kind":"string","value":"function tewwie_filter_features( ) {\n\t$files_to_load = array(\n\t\t'tewwie-news-section',\n\t\t'tewwie-announcement-section',\n\t\t'wp-bootstrap-comments',\n\t);\n\n\treturn $files_to_load;\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["private function getAllowedFileTypes()\n {\n return str_replace('.', '', config('media.allowed', ''));\n }","public function getAllowedFiles(){\n return self::$allowed_files;\n }","public function allowedIncludes()\n {\n return [];\n }","public function getFileTypeRestrictions() {}","function getFileTypeRestrictions() ;","public function setAllowedExtensions(array $allowed)\n {\n $this->allowedFiles = $allowed;\n\n return $this;\n }","private function includeFiles(){\n foreach($this->files as $file){\n require implode('', $file);\n $class_name = $this->getClassNameFromFileName($file);\n $this->classes[$file['name']] = new $class_name();\n }\n }","function validate_file($file, $allowed_files = array())\n {\n }","public function getAllowFileExtensions()\n\t{\n\t\treturn implode(',', array_merge($this->videoExtensions, $this->imageExtensions, $this->audioExtensions, $this->docExtensions ));\n\t\t//return Yii::app()->params['fileExtensions'];\n\t}","public function getAllowedExtensions()\n {\n return $this->allowedFiles;\n }","protected function _getAllowedExtensions()\n {\n return ['jpg', 'jpeg', 'gif', 'png', 'svg'];\n }","protected function initFileIncluded() {\n\t\treturn [\n\t\t\t'JQUERY' => env_checker()['JQUERY'],\n\t\t\t'POPPER' => env_checker()['POPPER'],\n\t\t\t'TWBS_CSS' => env_checker()['TWBS_CSS'],\n\t\t\t'TWBS_JS' => env_checker()['TWBS_JS'],\n\t\t\t'title' => 'Sistem Informasi'\n\t\t];\n\t}","static function allowed()\n {\n\n }","public function supported_filetypes() {\n return '*';\n }","function TS_VCSC_FilesRegistrations() {\r\n\t\t\trequire_once($this->registrations_dir . 'ts_vcsc_registrations_files.php');\r\n\t\t}","protected function _FILES()\n\t{\n\t\t\n\t}","public function processIncludes() {}","public function evaluateUserSpecificFileFilterSettings() {}","public function loadIncludes() {\n // TODO: better way to skip load includes.\n $this->addCSS($this->env->dir['tmp_files'] . '/css.min.css');\n $this->addJS('/tmp/js.min.js');\n }","public function includeAllFiles()\n {\n return in_array('all', $this->types);\n }","public static function set()\n {\n add_filter( 'template_include', [ __CLASS__, 'add' ] );\n }","public function can_manage_files() {\n return true;\n }","public function setAllowedFileTypes( $types ) {\r\n\t\t\tif ( $types === false ) {\r\n\t\t\t\t// allow all filetypes\r\n\t\t\t\t$this->AllowedFileTypes = null;\r\n\t\t\t} else {\r\n\t\t\t\t$types = (array)$types;\r\n\t\t\t\tfor( $i = 0, $count = count( $types ); $i < $count; $i++ ) {\r\n\t\t\t\t\t$types[$i] = (string)$types[$i];\r\n\t\t\t\t}\r\n\t\t\t\t$this->AllowedFileTypes = $types;\r\n\t\t\t}\r\n\t\t}","function _vip_contrib_add_upload_cap() {\n\tif ( ! is_admin() && ! defined( 'XMLRPC_REQUEST' ) )\n\t\treturn;\n\n\twpcom_vip_add_role_caps( 'contributor', array( 'upload_files' ) );\n}","public function __construct()\n {\n $this->fileExtensionPermissions['allow'] = GeneralUtility::uniqueList(strtolower($GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']['webspace']['allow']));\n $this->fileExtensionPermissions['deny'] = GeneralUtility::uniqueList(strtolower($GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']['webspace']['deny']));\n }","public function getAllowedFileExtensions()\n {\n return ['jpg', 'jpeg', 'gif', 'png'];\n }","public function provideFileAndExtension()\n {\n return [\n [__FILE__, 'php'],\n ['.htaccess', 'htaccess'],\n ['name', ''],\n ['a.combined.filename.with.multiple.ext.separator', 'separator']\n ];\n }","private static function _includes()\n {\n /**\n * Includes\n */\n include_once 'functions/register-post-types.php';\n include_once 'functions/register-taxonomies.php';\n include_once 'functions/register-menus.php';\n }","public function fileDenyPatternMatchesPhpExtensionDataProvider() {}","function init_files() {\n\t$filenames = [\n\t\t'genesis',\n\t\t'general',\n\t\t'gravity-forms',\n\t\t'yoast-seo',\n\t\t'acf/options-page',\n\t\t'acf/general'\n\t];\n\n\tload_specified_files( $filenames );\n}","public function support($file);","private function includes() {\n \t$includes = array(\n \t\t'/includes/event-custom-post-type.php',\n \t\t'/includes/shortcodes.php',\n \t\t'/includes/display-helper.php',\n \t\t'/includes/query-helper.php'\n \t);\n \t\n \t$admin_includes = array();\n \t\n \tif ( file_exists( dirname( __FILE__ ) . '/includes/cmb2/init.php' ) ) {\n \trequire_once dirname( __FILE__ ) . '/includes/cmb2/init.php';\n } elseif ( file_exists( dirname( __FILE__ ) . '/includes/CMB2/init.php' ) ) {\n \trequire_once dirname( __FILE__ ) . '/includes/CMB2/init.php';\n }\n \n \t// Load files\n \tforeach ( $includes as $file ) {\n \t\tif ( file_exists( dirname( __FILE__ ) . $file ) ) {\n \t\t\trequire_once dirname( __FILE__ ) . $file;\n \t\t}\n \t}\n \n \t// Load admin files\n \tif ( is_admin() ) {\n \t\tforeach ( $admin_includes as $file ) {\n \t\t\tif ( file_exists( dirname( __FILE__ ) . $file ) ) {\n \t\t\t\trequire_once dirname( __FILE__ ) . $file;\n \t\t\t}\n \t\t}\n \t}\n }","public function include_files()\n\t{\n\t\trequire_once(WP_PARSI_DIR . 'includes/settings.php');\n\t\tglobal $wpp_settings;\n\t\t$wpp_settings = wp_parsi_get_settings();\n\n\t\t$files = array(\n\t\t\t'parsidate',\n\t\t\t'general',\n\t\t\t'fixes-archive',\n\t\t\t'fixes-permalinks',\n\t\t\t'fixes-dates',\n\t\t\t'fixes-misc',\n\t\t\t'admin/styles-fix',\n\t\t\t'admin/lists-fix',\n\t\t\t'admin/other-fix',\n\t\t\t'fixes-calendar',\n\t\t\t'fixes-archives',\n\t\t\t'plugins/woocommerce',\n\t\t\t'plugins/edd',\n\t\t\t'widget/widget_archive',\n\t\t\t'widget/widget_calendar'\n\t\t);\n\n\t\tforeach ($files as $file)\n\t\t\trequire_once(WP_PARSI_DIR . 'includes/' . $file . '.php');\n\n\t\tif (get_locale() == 'fa_IR')\n\t\t\tload_textdomain('wp-parsidate', WP_PARSI_DIR . 'parsi-languages/fa_IR.mo');\n\n\t\tadd_action('widgets_init', array($this, 'register_widget'));\n\t}","public function includeFile()\n {\n foreach($this->arra_constant_file as $stri_file)\n {include_once($stri_file);}\n }","public function getAllowedExtensions(){\n return $this->allowedExtensions;\n }","protected function initializeExtensionFiles() {}","protected function setDefaultRules()\n\t{\n\t\tif(empty($this->rules['FileExtension']['allowed']))\n\t\t\t$this->rules['FileExtension']['allowed'] = ['jpeg', 'jpg', 'png', 'gif'];\n\t}","private static final function loadClasses() {\n if(isset(self::$_config['include']) && is_array(self::$_config['include'])) {\n self::$_config['include'] = array_merge(self::$defaultInclude, self::$_config['include']);\n $defaultIncludeCount = count(self::$defaultInclude);\n foreach(self::$_config['include'] as $key => $include) {\n /* @var string $include */\n $include = ($key < $defaultIncludeCount) ? self::$basePath . $include : self::$path . $include;\n $matches = [];\n if(preg_match('/(.*)\\/?\\*$/', $include, $matches)) {\n if(is_dir($matches[1])) {\n $files = scandir($matches[1]);\n foreach ($files as $file) {\n /* @var string $file */\n if($file === '.' || $file === '..' || is_dir($matches[1] . $file)) {\n continue;\n }\n if (preg_match('/^.+\\.php$/', $file)) { // include only php files\n require_once($matches[1] . $file);\n }\n }\n } else {\n static::error500(\"Wrong config parameter in include:\n {$matches[1]} is not a directory\");\n }\n } else {\n if(file_exists($include)) {\n if(!is_dir($include)) {\n require_once($include);\n } else {\n static::error500(\"Wrong config parameter in include:\n $include is a directory\");\n }\n } else {\n static::error500(\"Wrong config parameter in include:\n $include is not exists.\");\n }\n }\n }\n } else {\n static::error500('Include is missing from config.');\n }\n }","public function __LoadFile($files)\n {\n\t!is_array($files)?$files = Array($files):false;\n\t\n\tforeach($files as $file) include $file;\n }","public function __construct()\n {\n // By default exclude annoying files\n self::exclusive();\n }","public function getExtensionAllowed()\n {\n return array_merge($this->imageTypes, $this->videoTypes, $this->documentTypes);\n }","function ms_upload_constants()\n {\n }","private function includes()\n\t\t{\n\t\t\trequire_once dirname( __FILE__ ) . '/sf-class-sanitize.php';\n\t\t\trequire_once dirname( __FILE__ ) . '/sf-class-format-options.php';\n\t\t\tnew SF_Sanitize;\n\t\t}","public function getFileAndFolderNameFilters() {}","function mkdf_re_include_roles_register_files() {\n\t\tif(mkdf_re_theme_installed()) {\n\t\t\tforeach (glob(MIKADO_RE_MODULE_PATH . '/roles/*/role-register.php') as $role_load) {\n\t\t\t\tinclude_once $role_load;\n\t\t\t}\n\t\t}\n\t}","public function getFileTypeRestrictions(): array\n {\n return $this->supportedFileTypes;\n }","function restrictify()\n{\n\tglobal $_CREATED_FILES,$_MODIFIED_FILES;\n\n\t// Reset functions\n\tif (isset($_CREATED_FILES)) $_CREATED_FILES=array();\n\tif (isset($_MODIFIED_FILES)) $_MODIFIED_FILES=array();\n\n\t// Put back strictness\n\terror_reporting(E_ALL & ~(defined('E_DEPRECATED')?E_DEPRECATED:0));\n\tif (function_exists('set_time_limit')) @set_time_limit(25);\n\tif (get_forum_type()=='ocf') $GLOBALS['SITE_DB']->query('SET sql_mode=STRICT_ALL_TABLES',NULL,NULL,true);\n\tif ($GLOBALS['DEBUG_MODE'])\n\t{\n\t\t//@ini_set('ocproducts.type_strictness','1');\n\t\tglobal $PREVIOUS_XSS_STATE;\n\t\t//safe_ini_set('ocproducts.xss_detect',array_pop($PREVIOUS_XSS_STATE));\t\tWe don't maintain this in v8, since we increased checking strength but are not fixing all the new false-positives. Real issues are found in v9 and back-ported.\n\t}\n\t@ini_set('include_path','');\n\t@ini_set('allow_url_fopen','0');\n\t@ini_set('suhosin.executor.disable_emodifier','1');\n\t@ini_set('suhosin.executor.multiheader','1');\n\t$GLOBALS['NO_DB_SCOPE_CHECK']=false;\n\t//$GLOBALS['NO_QUERY_LIMIT']=false;\tLeave off, may have been set elsewhere than destrictify();\n}","function check_file_extension($ext, $allowed) {\nif (in_array($ext, $allowed)) {\nreturn true;\n}else {\necho \"Only .txt file allow to be uploaded\";\n}\n}","public function testSetAllowedMimeTypesIllegal() {\n // list is only checked against during upload, so expect success here.\n $mytype = array('application/x-perl' => 'pl');\n $this->up->setAllowedMimeTypes($mytype);\n $this->assertEquals($mytype, $this->up->getAllowedMimeTypes());\n }","function addFileTypes($fileTypes) {\r\n $fileTypes['svg'] = 'image/svg+xml';\r\n return $fileTypes;\r\n}","public function addDefaultIncludes(){}","function fields() {\n\t\tforeach(glob(ALERTS_PLUGIN_DIR . 'lib/fields/*.php') as $field) {\n\t\t\t\tinclude($field);\n\t\t}\n\t}","public function admin_includes()\n {\n\n }","function ms_upload_constants() {\n\tglobal $wpdb;\n\n\t// This filter is attached in ms-default-filters.php but that file is not included during SHORTINIT.\n\tadd_filter( 'default_site_option_ms_files_rewriting', '__return_true' );\n\n\tif ( ! get_site_option( 'ms_files_rewriting' ) )\n\t\treturn;\n\n\t// Base uploads dir relative to ABSPATH\n\tif ( !defined( 'UPLOADBLOGSDIR' ) )\n\t\tdefine( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' );\n\n\t// Note, the main site in a post-MU network uses wp-content/uploads.\n\t// This is handled in wp_upload_dir() by ignoring UPLOADS for this case.\n\tif ( ! defined( 'UPLOADS' ) ) {\n\t\tdefine( 'UPLOADS', UPLOADBLOGSDIR . \"/{$wpdb->blogid}/files/\" );\n\n\t\t// Uploads dir relative to ABSPATH\n\t\tif ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR && ! defined( 'BLOGUPLOADDIR' ) )\n\t\t\tdefine( 'BLOGUPLOADDIR', WP_CONTENT_DIR . \"/blogs.dir/{$wpdb->blogid}/files/\" );\n\t}\n}","function includes() {\r\n\t\t\trequire_once( trailingslashit( RV_PORTFOLIO_DIR ) . 'inc/public/class-rv-portfolio-registration.php' );\r\n\t\t}","public function enableConcatenateFiles() {}","public function allow($ext = NULL)\n {\n $this->_allow_extensions = $ext;\n }","public function setAllowFileManager($allow);","function add_file_types_to_uploads($file_types){\n $new_filetypes = array();\n $new_filetypes['svg'] = 'image/svg+xml';\n $file_types = array_merge($file_types, $new_filetypes );\n return $file_types;\n}","function add_file_types_to_uploads($file_types){\n$new_filetypes = array();\n$new_filetypes['svg'] = 'image/svg+xml';\n$file_types = array_merge($file_types, $new_filetypes );\nreturn $file_types;\n}","function mkdf_re_include_roles_files() {\n\t\tif(mkdf_re_theme_installed()) {\n\t\t\tforeach (glob(MIKADO_RE_MODULE_PATH . '/roles/*/load.php') as $role_load) {\n\t\t\t\tinclude_once $role_load;\n\t\t\t}\n\t\t}\n\t}","public function getAllowedExtensions()\n {\n return array('md', 'markdown');\n }","function allowed_media_upload_mimetypes( $mimes ){\n\t$allowed_mimes = array(\n\t 'jpg|jpeg|jpe' => 'image/jpeg',\n\t 'gif' => 'image/gif',\n\t 'png' => 'image/png',\n\t 'bmp' => 'image/bmp',\n\t 'tif|tiff' => 'image/tiff'\n\t);\n\treturn $allowed_mimes;\n}","public function includes()\n {\n add_action('plugins_loaded', array($this, 'load_php_files'), 10);\n add_action('init', array(__CLASS__, 'prefix_add_api_endpoints'));\n add_action('template_redirect', array($this, 'prefix_do_api'));\n add_filter('posts_request', array($this, 'disable_main_query_wordpress'), 10, 2);\n add_action('wp_enqueue_scripts', array($this, 'register_js_script'), 5);\n }","public function files();","public function files();","public function files();","function mkdf_re_include_roles_shortcodes_file() {\n foreach(glob(MIKADO_RE_MODULE_PATH.'/roles/shortcodes/*/load.php') as $shortcode_load) {\n include_once $shortcode_load;\n }\n }","function add_file_types_to_uploads($file_types){\n $new_filetypes = array();\n $new_filetypes['svg'] = 'image/svg+xml';\n $file_types = array_merge($file_types, $new_filetypes );\n\n return $file_types;\n}","function set_files(&$files){\n $this->_files = $files;\n }","protected function load_files() {\n\t\trequire_once __DIR__ . '/class-papi-admin-meta-handler.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-option-handler.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-entry-post.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-entry-taxonomy.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-columns.php';\n\t\trequire_once __DIR__ . '/class-papi-admin-page-type-switcher.php';\n\t}","function enable_extended_upload ( $mime_types =array() ) {\n // You can add as many MIME types as you want.\n $mime_types['exe'] = 'application/exe'; \n\n return $mime_types;\n}","function ms_file_constants() {\n\t/**\n\t * Optional support for X-Sendfile header\n\t * @since 3.0.0\n\t */\n\tif ( !defined( 'WPMU_SENDFILE' ) )\n\t\tdefine( 'WPMU_SENDFILE', false );\n\n\t/**\n\t * Optional support for X-Accel-Redirect header\n\t * @since 3.0.0\n\t */\n\tif ( !defined( 'WPMU_ACCEL_REDIRECT' ) )\n\t\tdefine( 'WPMU_ACCEL_REDIRECT', false );\n}","protected function getAllowedOptions()\n {\n return array_merge(parent::getAllowedOptions(), array(\n 'curlPath' => '/.+/',\n ));\n }","private function includes()\n {\n }","function add_file_types_to_uploads($file_types)\n{\n\n $new_filetypes = array();\n $new_filetypes['svg'] = 'image/svg+xml';\n $file_types = array_merge($file_types, $new_filetypes);\n\n return $file_types;\n}","private function register_files() {\n\t\tif( $this->type === self::STYLE ) {\n\t\t\twp_register_style( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['media'] );\n\t\t} else if ( $this->type === self::SCRIPT ) {\n\t\t\twp_register_script( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['in_footer'] );\n\t\t}\n\t}","function include_user_files($dir=G_USER_PHP_FILES)\r\n{\r\n log_debug(\"include_user_files( {$dir} )\");\r\n\r\n if (file_exists($dir) && is_dir($dir))\r\n {\r\n $usr = opendir($dir);\r\n\r\n if ($usr)\r\n {\r\n while (false !== ($f = readdir($usr)))\r\n {\r\n if ($f == '.' || $f == '..')\r\n {\r\n continue;\r\n }\r\n\r\n $fn = \"{$dir}/{$f}\";\r\n\r\n if (is_dir($fn))\r\n {\r\n include_user_files($fn);\r\n }\r\n else if (is_file($fn))\r\n {\r\n log_debug(\"Including file {$fn}\");\r\n include_once($fn);\r\n }\r\n }\r\n\r\n closedir($usr);\r\n }\r\n }\r\n}","function _construct ($files = '')\n {\n parent::_construct(strtolower($files));\n }","private function _include_files() {\n\n require_once( KP_DIR_PATH . 'includes/korapay-shortcode.php' );\n require_once( KP_DIR_PATH . 'includes/korapay-admin-settings.php' );\n require_once( KP_DIR_PATH . 'includes/korapay-payment-list-class.php' );\n require_once( KP_DIR_PATH . 'includes/vc-elements/simple-vc-pay-now-form.php' );\n\n if ( is_admin() ) {\n require_once( KP_DIR_PATH . 'includes/korapay-tinymce-plugin-class.php' );\n }\n\n }","protected function setUp(): void\n {\n $whitelistedClasses = [];\n $path = sprintf('%s/_files/controller_acl_test_whitelist_*.txt', __DIR__);\n foreach (glob($path) as $listFile) {\n $whitelistedClasses = array_merge(\n $whitelistedClasses,\n file($listFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)\n );\n }\n foreach ($whitelistedClasses as $item) {\n if (substr($item, 0, 1) === '#') {\n continue;\n }\n $this->whiteListedBackendControllers[$item] = 1;\n }\n }","function custom_mime_types($existing_mimes = array()) {\n\n //For example, the following line allows PDF uploads\n //$existing_mimes['pdf'] = 'application/pdf';\n \n return $existing_mimes;\n}","function ms_file_constants()\n {\n }","private function includes() {\n\t\t\t// By default, comments are disjoined from the other post types.\n\t\t\trequire_once( $this->includes_dir . 'comments.php' );\n\n\t\t\t// Settings\n\t\t\trequire_once( $this->includes_dir . 'settings.php' );\n\t\t}","public function load_files() {\n\n\t\t// Load our admin-related functions.\n\t\tif ( is_admin() ) {\n\t\t\trequire_once( GUPR_DIR . 'lib/admin.php' );\n\t\t}\n\t}","static public function configureFileField() {}","public function allow_setup_uploads( $mime_types ){\n\t\t$mime_types['sto'] = 'application/octet-stream';\n\n\t\treturn $mime_types;\n\t}","function load_specified_files( array $filenames, $folder_root = '', $ext = '.php' ) {\n\t$folder_root = $folder_root ? : METRO_CORE_DIR . '/inc/';\n\n\tforeach ( $filenames as $filename ) {\n\t\trequire_once $folder_root . $filename . $ext ;\n\t}\n}","public static function getAllowedFileExtensions() {\n\t\tif (self::$allowedFileExtensions === null) {\n\t\t\tself::$allowedFileExtensions = array();\n\t\t\tself::$allowedFileExtensions = array_unique(explode(\"\\n\", StringUtil::unifyNewlines(WCF::getUser()->getPermission('user.profile.avatar.allowedFileExtensions'))));\n\t\t\tself::$allowedFileExtensions = array_diff(self::$allowedFileExtensions, self::$illegalFileExtensions);\n\t\t}\n\t\t\n\t\treturn self::$allowedFileExtensions;\n\t}","private function loadFilters()\n {\n require __DIR__.'/filters.php';\n }","function __construct(){\n\t\tforeach (glob(INCLUDE_ROOT.\"application/controllers/controller.*.php\") as $controllers){\n\t\t\t include_once($controllers);\n\t\t}\n\t}","function wp_is_file_mod_allowed($context)\n {\n }","function acf_include($filename = '')\n{\n}","static public function getAllowedExtensions()\n\t{\n\t\t$result = [];\n\t\t\n\t\tforeach(DB::table('dx_files_headers')->select('extention')->get() as $row)\n\t\t{\n\t\t\t$result[] = $row->extention;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}","protected function checkSuhosinExecutorIncludeWhiteListContainsVfs() {}","public function getSupportedFileExtensions() {}","public function setFiles()\n {\n $this->files = [];\n $path = $this->getValue();\n\n if (!preg_match('#^/#', $path)) {\n $path = $this->parser->getServer()->getPrefix().'/'.$path;\n }\n\n $iterator = new GlobIterator($path);\n foreach ($iterator as $path) {\n $this->files[] = $path;\n }\n\n return $this;\n }","protected function getAcceptedFiles()\n {\n $accepted_files = str_replace(' ', '',\n str_replace('.', '', $this->config->get('media.accepted_files'))\n );\n\n return $accepted_files;\n }","public function setAllowedActions($allowedActions) {\n if ($allowedActions === '*')\n $this->_allowedActions = $allowedActions;\n else\n $this->_allowedActions = preg_split('/[\\s,]+/', $allowedActions, -1, PREG_SPLIT_NO_EMPTY);\n }","function isAllowedFile($file) {\n\t\t$path = pathinfo($file);\n\t\t$dir = preg_replace('#[\\./]*(.*)/*#', '$1', $path['dirname']);\n\t\t$file = $path['basename'];\n\t\tif ($dir == '' && $file == '.htaccess') return true;\n\t\tif ($dir == '' && $file == 'index.php') return true;\n\t\tif ($dir == '' && $file == 'documentation.txt') return true;\n\t\tif ($dir == 'data' && $file == 'hypha.html') return true;\n\t\tif ($dir == 'data' && $file == 'hypha.css') return true;\n\t\tif ($dir == 'system/core') return true;\n\t\tif ($dir == 'system/datatypes') return true;\n\t\tif ($dir == 'system/languages') return true;\n\t\tif ($dir == 'system/php-dom-wrapper') return true;\n\t\tif ($dir == 'system/wymeditor') return true;\n\t\treturn false;\n\t}","public function provideFileAnExpectedNames()\n {\n return [\n [__FILE__, pathinfo(__FILE__, PATHINFO_FILENAME)],\n ['.htaccess', ''],\n ['name', 'name'],\n ['a.combined.filename.with.multiple.ext.separator', 'a.combined.filename.with.multiple.ext']\n ];\n }"],"string":"[\n \"private function getAllowedFileTypes()\\n {\\n return str_replace('.', '', config('media.allowed', ''));\\n }\",\n \"public function getAllowedFiles(){\\n return self::$allowed_files;\\n }\",\n \"public function allowedIncludes()\\n {\\n return [];\\n }\",\n \"public function getFileTypeRestrictions() {}\",\n \"function getFileTypeRestrictions() ;\",\n \"public function setAllowedExtensions(array $allowed)\\n {\\n $this->allowedFiles = $allowed;\\n\\n return $this;\\n }\",\n \"private function includeFiles(){\\n foreach($this->files as $file){\\n require implode('', $file);\\n $class_name = $this->getClassNameFromFileName($file);\\n $this->classes[$file['name']] = new $class_name();\\n }\\n }\",\n \"function validate_file($file, $allowed_files = array())\\n {\\n }\",\n \"public function getAllowFileExtensions()\\n\\t{\\n\\t\\treturn implode(',', array_merge($this->videoExtensions, $this->imageExtensions, $this->audioExtensions, $this->docExtensions ));\\n\\t\\t//return Yii::app()->params['fileExtensions'];\\n\\t}\",\n \"public function getAllowedExtensions()\\n {\\n return $this->allowedFiles;\\n }\",\n \"protected function _getAllowedExtensions()\\n {\\n return ['jpg', 'jpeg', 'gif', 'png', 'svg'];\\n }\",\n \"protected function initFileIncluded() {\\n\\t\\treturn [\\n\\t\\t\\t'JQUERY' => env_checker()['JQUERY'],\\n\\t\\t\\t'POPPER' => env_checker()['POPPER'],\\n\\t\\t\\t'TWBS_CSS' => env_checker()['TWBS_CSS'],\\n\\t\\t\\t'TWBS_JS' => env_checker()['TWBS_JS'],\\n\\t\\t\\t'title' => 'Sistem Informasi'\\n\\t\\t];\\n\\t}\",\n \"static function allowed()\\n {\\n\\n }\",\n \"public function supported_filetypes() {\\n return '*';\\n }\",\n \"function TS_VCSC_FilesRegistrations() {\\r\\n\\t\\t\\trequire_once($this->registrations_dir . 'ts_vcsc_registrations_files.php');\\r\\n\\t\\t}\",\n \"protected function _FILES()\\n\\t{\\n\\t\\t\\n\\t}\",\n \"public function processIncludes() {}\",\n \"public function evaluateUserSpecificFileFilterSettings() {}\",\n \"public function loadIncludes() {\\n // TODO: better way to skip load includes.\\n $this->addCSS($this->env->dir['tmp_files'] . '/css.min.css');\\n $this->addJS('/tmp/js.min.js');\\n }\",\n \"public function includeAllFiles()\\n {\\n return in_array('all', $this->types);\\n }\",\n \"public static function set()\\n {\\n add_filter( 'template_include', [ __CLASS__, 'add' ] );\\n }\",\n \"public function can_manage_files() {\\n return true;\\n }\",\n \"public function setAllowedFileTypes( $types ) {\\r\\n\\t\\t\\tif ( $types === false ) {\\r\\n\\t\\t\\t\\t// allow all filetypes\\r\\n\\t\\t\\t\\t$this->AllowedFileTypes = null;\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t$types = (array)$types;\\r\\n\\t\\t\\t\\tfor( $i = 0, $count = count( $types ); $i < $count; $i++ ) {\\r\\n\\t\\t\\t\\t\\t$types[$i] = (string)$types[$i];\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t$this->AllowedFileTypes = $types;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\",\n \"function _vip_contrib_add_upload_cap() {\\n\\tif ( ! is_admin() && ! defined( 'XMLRPC_REQUEST' ) )\\n\\t\\treturn;\\n\\n\\twpcom_vip_add_role_caps( 'contributor', array( 'upload_files' ) );\\n}\",\n \"public function __construct()\\n {\\n $this->fileExtensionPermissions['allow'] = GeneralUtility::uniqueList(strtolower($GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']['webspace']['allow']));\\n $this->fileExtensionPermissions['deny'] = GeneralUtility::uniqueList(strtolower($GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']['webspace']['deny']));\\n }\",\n \"public function getAllowedFileExtensions()\\n {\\n return ['jpg', 'jpeg', 'gif', 'png'];\\n }\",\n \"public function provideFileAndExtension()\\n {\\n return [\\n [__FILE__, 'php'],\\n ['.htaccess', 'htaccess'],\\n ['name', ''],\\n ['a.combined.filename.with.multiple.ext.separator', 'separator']\\n ];\\n }\",\n \"private static function _includes()\\n {\\n /**\\n * Includes\\n */\\n include_once 'functions/register-post-types.php';\\n include_once 'functions/register-taxonomies.php';\\n include_once 'functions/register-menus.php';\\n }\",\n \"public function fileDenyPatternMatchesPhpExtensionDataProvider() {}\",\n \"function init_files() {\\n\\t$filenames = [\\n\\t\\t'genesis',\\n\\t\\t'general',\\n\\t\\t'gravity-forms',\\n\\t\\t'yoast-seo',\\n\\t\\t'acf/options-page',\\n\\t\\t'acf/general'\\n\\t];\\n\\n\\tload_specified_files( $filenames );\\n}\",\n \"public function support($file);\",\n \"private function includes() {\\n \\t$includes = array(\\n \\t\\t'/includes/event-custom-post-type.php',\\n \\t\\t'/includes/shortcodes.php',\\n \\t\\t'/includes/display-helper.php',\\n \\t\\t'/includes/query-helper.php'\\n \\t);\\n \\t\\n \\t$admin_includes = array();\\n \\t\\n \\tif ( file_exists( dirname( __FILE__ ) . '/includes/cmb2/init.php' ) ) {\\n \\trequire_once dirname( __FILE__ ) . '/includes/cmb2/init.php';\\n } elseif ( file_exists( dirname( __FILE__ ) . '/includes/CMB2/init.php' ) ) {\\n \\trequire_once dirname( __FILE__ ) . '/includes/CMB2/init.php';\\n }\\n \\n \\t// Load files\\n \\tforeach ( $includes as $file ) {\\n \\t\\tif ( file_exists( dirname( __FILE__ ) . $file ) ) {\\n \\t\\t\\trequire_once dirname( __FILE__ ) . $file;\\n \\t\\t}\\n \\t}\\n \\n \\t// Load admin files\\n \\tif ( is_admin() ) {\\n \\t\\tforeach ( $admin_includes as $file ) {\\n \\t\\t\\tif ( file_exists( dirname( __FILE__ ) . $file ) ) {\\n \\t\\t\\t\\trequire_once dirname( __FILE__ ) . $file;\\n \\t\\t\\t}\\n \\t\\t}\\n \\t}\\n }\",\n \"public function include_files()\\n\\t{\\n\\t\\trequire_once(WP_PARSI_DIR . 'includes/settings.php');\\n\\t\\tglobal $wpp_settings;\\n\\t\\t$wpp_settings = wp_parsi_get_settings();\\n\\n\\t\\t$files = array(\\n\\t\\t\\t'parsidate',\\n\\t\\t\\t'general',\\n\\t\\t\\t'fixes-archive',\\n\\t\\t\\t'fixes-permalinks',\\n\\t\\t\\t'fixes-dates',\\n\\t\\t\\t'fixes-misc',\\n\\t\\t\\t'admin/styles-fix',\\n\\t\\t\\t'admin/lists-fix',\\n\\t\\t\\t'admin/other-fix',\\n\\t\\t\\t'fixes-calendar',\\n\\t\\t\\t'fixes-archives',\\n\\t\\t\\t'plugins/woocommerce',\\n\\t\\t\\t'plugins/edd',\\n\\t\\t\\t'widget/widget_archive',\\n\\t\\t\\t'widget/widget_calendar'\\n\\t\\t);\\n\\n\\t\\tforeach ($files as $file)\\n\\t\\t\\trequire_once(WP_PARSI_DIR . 'includes/' . $file . '.php');\\n\\n\\t\\tif (get_locale() == 'fa_IR')\\n\\t\\t\\tload_textdomain('wp-parsidate', WP_PARSI_DIR . 'parsi-languages/fa_IR.mo');\\n\\n\\t\\tadd_action('widgets_init', array($this, 'register_widget'));\\n\\t}\",\n \"public function includeFile()\\n {\\n foreach($this->arra_constant_file as $stri_file)\\n {include_once($stri_file);}\\n }\",\n \"public function getAllowedExtensions(){\\n return $this->allowedExtensions;\\n }\",\n \"protected function initializeExtensionFiles() {}\",\n \"protected function setDefaultRules()\\n\\t{\\n\\t\\tif(empty($this->rules['FileExtension']['allowed']))\\n\\t\\t\\t$this->rules['FileExtension']['allowed'] = ['jpeg', 'jpg', 'png', 'gif'];\\n\\t}\",\n \"private static final function loadClasses() {\\n if(isset(self::$_config['include']) && is_array(self::$_config['include'])) {\\n self::$_config['include'] = array_merge(self::$defaultInclude, self::$_config['include']);\\n $defaultIncludeCount = count(self::$defaultInclude);\\n foreach(self::$_config['include'] as $key => $include) {\\n /* @var string $include */\\n $include = ($key < $defaultIncludeCount) ? self::$basePath . $include : self::$path . $include;\\n $matches = [];\\n if(preg_match('/(.*)\\\\/?\\\\*$/', $include, $matches)) {\\n if(is_dir($matches[1])) {\\n $files = scandir($matches[1]);\\n foreach ($files as $file) {\\n /* @var string $file */\\n if($file === '.' || $file === '..' || is_dir($matches[1] . $file)) {\\n continue;\\n }\\n if (preg_match('/^.+\\\\.php$/', $file)) { // include only php files\\n require_once($matches[1] . $file);\\n }\\n }\\n } else {\\n static::error500(\\\"Wrong config parameter in include:\\n {$matches[1]} is not a directory\\\");\\n }\\n } else {\\n if(file_exists($include)) {\\n if(!is_dir($include)) {\\n require_once($include);\\n } else {\\n static::error500(\\\"Wrong config parameter in include:\\n $include is a directory\\\");\\n }\\n } else {\\n static::error500(\\\"Wrong config parameter in include:\\n $include is not exists.\\\");\\n }\\n }\\n }\\n } else {\\n static::error500('Include is missing from config.');\\n }\\n }\",\n \"public function __LoadFile($files)\\n {\\n\\t!is_array($files)?$files = Array($files):false;\\n\\t\\n\\tforeach($files as $file) include $file;\\n }\",\n \"public function __construct()\\n {\\n // By default exclude annoying files\\n self::exclusive();\\n }\",\n \"public function getExtensionAllowed()\\n {\\n return array_merge($this->imageTypes, $this->videoTypes, $this->documentTypes);\\n }\",\n \"function ms_upload_constants()\\n {\\n }\",\n \"private function includes()\\n\\t\\t{\\n\\t\\t\\trequire_once dirname( __FILE__ ) . '/sf-class-sanitize.php';\\n\\t\\t\\trequire_once dirname( __FILE__ ) . '/sf-class-format-options.php';\\n\\t\\t\\tnew SF_Sanitize;\\n\\t\\t}\",\n \"public function getFileAndFolderNameFilters() {}\",\n \"function mkdf_re_include_roles_register_files() {\\n\\t\\tif(mkdf_re_theme_installed()) {\\n\\t\\t\\tforeach (glob(MIKADO_RE_MODULE_PATH . '/roles/*/role-register.php') as $role_load) {\\n\\t\\t\\t\\tinclude_once $role_load;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"public function getFileTypeRestrictions(): array\\n {\\n return $this->supportedFileTypes;\\n }\",\n \"function restrictify()\\n{\\n\\tglobal $_CREATED_FILES,$_MODIFIED_FILES;\\n\\n\\t// Reset functions\\n\\tif (isset($_CREATED_FILES)) $_CREATED_FILES=array();\\n\\tif (isset($_MODIFIED_FILES)) $_MODIFIED_FILES=array();\\n\\n\\t// Put back strictness\\n\\terror_reporting(E_ALL & ~(defined('E_DEPRECATED')?E_DEPRECATED:0));\\n\\tif (function_exists('set_time_limit')) @set_time_limit(25);\\n\\tif (get_forum_type()=='ocf') $GLOBALS['SITE_DB']->query('SET sql_mode=STRICT_ALL_TABLES',NULL,NULL,true);\\n\\tif ($GLOBALS['DEBUG_MODE'])\\n\\t{\\n\\t\\t//@ini_set('ocproducts.type_strictness','1');\\n\\t\\tglobal $PREVIOUS_XSS_STATE;\\n\\t\\t//safe_ini_set('ocproducts.xss_detect',array_pop($PREVIOUS_XSS_STATE));\\t\\tWe don't maintain this in v8, since we increased checking strength but are not fixing all the new false-positives. Real issues are found in v9 and back-ported.\\n\\t}\\n\\t@ini_set('include_path','');\\n\\t@ini_set('allow_url_fopen','0');\\n\\t@ini_set('suhosin.executor.disable_emodifier','1');\\n\\t@ini_set('suhosin.executor.multiheader','1');\\n\\t$GLOBALS['NO_DB_SCOPE_CHECK']=false;\\n\\t//$GLOBALS['NO_QUERY_LIMIT']=false;\\tLeave off, may have been set elsewhere than destrictify();\\n}\",\n \"function check_file_extension($ext, $allowed) {\\nif (in_array($ext, $allowed)) {\\nreturn true;\\n}else {\\necho \\\"Only .txt file allow to be uploaded\\\";\\n}\\n}\",\n \"public function testSetAllowedMimeTypesIllegal() {\\n // list is only checked against during upload, so expect success here.\\n $mytype = array('application/x-perl' => 'pl');\\n $this->up->setAllowedMimeTypes($mytype);\\n $this->assertEquals($mytype, $this->up->getAllowedMimeTypes());\\n }\",\n \"function addFileTypes($fileTypes) {\\r\\n $fileTypes['svg'] = 'image/svg+xml';\\r\\n return $fileTypes;\\r\\n}\",\n \"public function addDefaultIncludes(){}\",\n \"function fields() {\\n\\t\\tforeach(glob(ALERTS_PLUGIN_DIR . 'lib/fields/*.php') as $field) {\\n\\t\\t\\t\\tinclude($field);\\n\\t\\t}\\n\\t}\",\n \"public function admin_includes()\\n {\\n\\n }\",\n \"function ms_upload_constants() {\\n\\tglobal $wpdb;\\n\\n\\t// This filter is attached in ms-default-filters.php but that file is not included during SHORTINIT.\\n\\tadd_filter( 'default_site_option_ms_files_rewriting', '__return_true' );\\n\\n\\tif ( ! get_site_option( 'ms_files_rewriting' ) )\\n\\t\\treturn;\\n\\n\\t// Base uploads dir relative to ABSPATH\\n\\tif ( !defined( 'UPLOADBLOGSDIR' ) )\\n\\t\\tdefine( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' );\\n\\n\\t// Note, the main site in a post-MU network uses wp-content/uploads.\\n\\t// This is handled in wp_upload_dir() by ignoring UPLOADS for this case.\\n\\tif ( ! defined( 'UPLOADS' ) ) {\\n\\t\\tdefine( 'UPLOADS', UPLOADBLOGSDIR . \\\"/{$wpdb->blogid}/files/\\\" );\\n\\n\\t\\t// Uploads dir relative to ABSPATH\\n\\t\\tif ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR && ! defined( 'BLOGUPLOADDIR' ) )\\n\\t\\t\\tdefine( 'BLOGUPLOADDIR', WP_CONTENT_DIR . \\\"/blogs.dir/{$wpdb->blogid}/files/\\\" );\\n\\t}\\n}\",\n \"function includes() {\\r\\n\\t\\t\\trequire_once( trailingslashit( RV_PORTFOLIO_DIR ) . 'inc/public/class-rv-portfolio-registration.php' );\\r\\n\\t\\t}\",\n \"public function enableConcatenateFiles() {}\",\n \"public function allow($ext = NULL)\\n {\\n $this->_allow_extensions = $ext;\\n }\",\n \"public function setAllowFileManager($allow);\",\n \"function add_file_types_to_uploads($file_types){\\n $new_filetypes = array();\\n $new_filetypes['svg'] = 'image/svg+xml';\\n $file_types = array_merge($file_types, $new_filetypes );\\n return $file_types;\\n}\",\n \"function add_file_types_to_uploads($file_types){\\n$new_filetypes = array();\\n$new_filetypes['svg'] = 'image/svg+xml';\\n$file_types = array_merge($file_types, $new_filetypes );\\nreturn $file_types;\\n}\",\n \"function mkdf_re_include_roles_files() {\\n\\t\\tif(mkdf_re_theme_installed()) {\\n\\t\\t\\tforeach (glob(MIKADO_RE_MODULE_PATH . '/roles/*/load.php') as $role_load) {\\n\\t\\t\\t\\tinclude_once $role_load;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"public function getAllowedExtensions()\\n {\\n return array('md', 'markdown');\\n }\",\n \"function allowed_media_upload_mimetypes( $mimes ){\\n\\t$allowed_mimes = array(\\n\\t 'jpg|jpeg|jpe' => 'image/jpeg',\\n\\t 'gif' => 'image/gif',\\n\\t 'png' => 'image/png',\\n\\t 'bmp' => 'image/bmp',\\n\\t 'tif|tiff' => 'image/tiff'\\n\\t);\\n\\treturn $allowed_mimes;\\n}\",\n \"public function includes()\\n {\\n add_action('plugins_loaded', array($this, 'load_php_files'), 10);\\n add_action('init', array(__CLASS__, 'prefix_add_api_endpoints'));\\n add_action('template_redirect', array($this, 'prefix_do_api'));\\n add_filter('posts_request', array($this, 'disable_main_query_wordpress'), 10, 2);\\n add_action('wp_enqueue_scripts', array($this, 'register_js_script'), 5);\\n }\",\n \"public function files();\",\n \"public function files();\",\n \"public function files();\",\n \"function mkdf_re_include_roles_shortcodes_file() {\\n foreach(glob(MIKADO_RE_MODULE_PATH.'/roles/shortcodes/*/load.php') as $shortcode_load) {\\n include_once $shortcode_load;\\n }\\n }\",\n \"function add_file_types_to_uploads($file_types){\\n $new_filetypes = array();\\n $new_filetypes['svg'] = 'image/svg+xml';\\n $file_types = array_merge($file_types, $new_filetypes );\\n\\n return $file_types;\\n}\",\n \"function set_files(&$files){\\n $this->_files = $files;\\n }\",\n \"protected function load_files() {\\n\\t\\trequire_once __DIR__ . '/class-papi-admin-meta-handler.php';\\n\\t\\trequire_once __DIR__ . '/class-papi-admin-option-handler.php';\\n\\t\\trequire_once __DIR__ . '/class-papi-admin-entry-post.php';\\n\\t\\trequire_once __DIR__ . '/class-papi-admin-entry-taxonomy.php';\\n\\t\\trequire_once __DIR__ . '/class-papi-admin-columns.php';\\n\\t\\trequire_once __DIR__ . '/class-papi-admin-page-type-switcher.php';\\n\\t}\",\n \"function enable_extended_upload ( $mime_types =array() ) {\\n // You can add as many MIME types as you want.\\n $mime_types['exe'] = 'application/exe'; \\n\\n return $mime_types;\\n}\",\n \"function ms_file_constants() {\\n\\t/**\\n\\t * Optional support for X-Sendfile header\\n\\t * @since 3.0.0\\n\\t */\\n\\tif ( !defined( 'WPMU_SENDFILE' ) )\\n\\t\\tdefine( 'WPMU_SENDFILE', false );\\n\\n\\t/**\\n\\t * Optional support for X-Accel-Redirect header\\n\\t * @since 3.0.0\\n\\t */\\n\\tif ( !defined( 'WPMU_ACCEL_REDIRECT' ) )\\n\\t\\tdefine( 'WPMU_ACCEL_REDIRECT', false );\\n}\",\n \"protected function getAllowedOptions()\\n {\\n return array_merge(parent::getAllowedOptions(), array(\\n 'curlPath' => '/.+/',\\n ));\\n }\",\n \"private function includes()\\n {\\n }\",\n \"function add_file_types_to_uploads($file_types)\\n{\\n\\n $new_filetypes = array();\\n $new_filetypes['svg'] = 'image/svg+xml';\\n $file_types = array_merge($file_types, $new_filetypes);\\n\\n return $file_types;\\n}\",\n \"private function register_files() {\\n\\t\\tif( $this->type === self::STYLE ) {\\n\\t\\t\\twp_register_style( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['media'] );\\n\\t\\t} else if ( $this->type === self::SCRIPT ) {\\n\\t\\t\\twp_register_script( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['in_footer'] );\\n\\t\\t}\\n\\t}\",\n \"function include_user_files($dir=G_USER_PHP_FILES)\\r\\n{\\r\\n log_debug(\\\"include_user_files( {$dir} )\\\");\\r\\n\\r\\n if (file_exists($dir) && is_dir($dir))\\r\\n {\\r\\n $usr = opendir($dir);\\r\\n\\r\\n if ($usr)\\r\\n {\\r\\n while (false !== ($f = readdir($usr)))\\r\\n {\\r\\n if ($f == '.' || $f == '..')\\r\\n {\\r\\n continue;\\r\\n }\\r\\n\\r\\n $fn = \\\"{$dir}/{$f}\\\";\\r\\n\\r\\n if (is_dir($fn))\\r\\n {\\r\\n include_user_files($fn);\\r\\n }\\r\\n else if (is_file($fn))\\r\\n {\\r\\n log_debug(\\\"Including file {$fn}\\\");\\r\\n include_once($fn);\\r\\n }\\r\\n }\\r\\n\\r\\n closedir($usr);\\r\\n }\\r\\n }\\r\\n}\",\n \"function _construct ($files = '')\\n {\\n parent::_construct(strtolower($files));\\n }\",\n \"private function _include_files() {\\n\\n require_once( KP_DIR_PATH . 'includes/korapay-shortcode.php' );\\n require_once( KP_DIR_PATH . 'includes/korapay-admin-settings.php' );\\n require_once( KP_DIR_PATH . 'includes/korapay-payment-list-class.php' );\\n require_once( KP_DIR_PATH . 'includes/vc-elements/simple-vc-pay-now-form.php' );\\n\\n if ( is_admin() ) {\\n require_once( KP_DIR_PATH . 'includes/korapay-tinymce-plugin-class.php' );\\n }\\n\\n }\",\n \"protected function setUp(): void\\n {\\n $whitelistedClasses = [];\\n $path = sprintf('%s/_files/controller_acl_test_whitelist_*.txt', __DIR__);\\n foreach (glob($path) as $listFile) {\\n $whitelistedClasses = array_merge(\\n $whitelistedClasses,\\n file($listFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)\\n );\\n }\\n foreach ($whitelistedClasses as $item) {\\n if (substr($item, 0, 1) === '#') {\\n continue;\\n }\\n $this->whiteListedBackendControllers[$item] = 1;\\n }\\n }\",\n \"function custom_mime_types($existing_mimes = array()) {\\n\\n //For example, the following line allows PDF uploads\\n //$existing_mimes['pdf'] = 'application/pdf';\\n \\n return $existing_mimes;\\n}\",\n \"function ms_file_constants()\\n {\\n }\",\n \"private function includes() {\\n\\t\\t\\t// By default, comments are disjoined from the other post types.\\n\\t\\t\\trequire_once( $this->includes_dir . 'comments.php' );\\n\\n\\t\\t\\t// Settings\\n\\t\\t\\trequire_once( $this->includes_dir . 'settings.php' );\\n\\t\\t}\",\n \"public function load_files() {\\n\\n\\t\\t// Load our admin-related functions.\\n\\t\\tif ( is_admin() ) {\\n\\t\\t\\trequire_once( GUPR_DIR . 'lib/admin.php' );\\n\\t\\t}\\n\\t}\",\n \"static public function configureFileField() {}\",\n \"public function allow_setup_uploads( $mime_types ){\\n\\t\\t$mime_types['sto'] = 'application/octet-stream';\\n\\n\\t\\treturn $mime_types;\\n\\t}\",\n \"function load_specified_files( array $filenames, $folder_root = '', $ext = '.php' ) {\\n\\t$folder_root = $folder_root ? : METRO_CORE_DIR . '/inc/';\\n\\n\\tforeach ( $filenames as $filename ) {\\n\\t\\trequire_once $folder_root . $filename . $ext ;\\n\\t}\\n}\",\n \"public static function getAllowedFileExtensions() {\\n\\t\\tif (self::$allowedFileExtensions === null) {\\n\\t\\t\\tself::$allowedFileExtensions = array();\\n\\t\\t\\tself::$allowedFileExtensions = array_unique(explode(\\\"\\\\n\\\", StringUtil::unifyNewlines(WCF::getUser()->getPermission('user.profile.avatar.allowedFileExtensions'))));\\n\\t\\t\\tself::$allowedFileExtensions = array_diff(self::$allowedFileExtensions, self::$illegalFileExtensions);\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn self::$allowedFileExtensions;\\n\\t}\",\n \"private function loadFilters()\\n {\\n require __DIR__.'/filters.php';\\n }\",\n \"function __construct(){\\n\\t\\tforeach (glob(INCLUDE_ROOT.\\\"application/controllers/controller.*.php\\\") as $controllers){\\n\\t\\t\\t include_once($controllers);\\n\\t\\t}\\n\\t}\",\n \"function wp_is_file_mod_allowed($context)\\n {\\n }\",\n \"function acf_include($filename = '')\\n{\\n}\",\n \"static public function getAllowedExtensions()\\n\\t{\\n\\t\\t$result = [];\\n\\t\\t\\n\\t\\tforeach(DB::table('dx_files_headers')->select('extention')->get() as $row)\\n\\t\\t{\\n\\t\\t\\t$result[] = $row->extention;\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn $result;\\n\\t}\",\n \"protected function checkSuhosinExecutorIncludeWhiteListContainsVfs() {}\",\n \"public function getSupportedFileExtensions() {}\",\n \"public function setFiles()\\n {\\n $this->files = [];\\n $path = $this->getValue();\\n\\n if (!preg_match('#^/#', $path)) {\\n $path = $this->parser->getServer()->getPrefix().'/'.$path;\\n }\\n\\n $iterator = new GlobIterator($path);\\n foreach ($iterator as $path) {\\n $this->files[] = $path;\\n }\\n\\n return $this;\\n }\",\n \"protected function getAcceptedFiles()\\n {\\n $accepted_files = str_replace(' ', '',\\n str_replace('.', '', $this->config->get('media.accepted_files'))\\n );\\n\\n return $accepted_files;\\n }\",\n \"public function setAllowedActions($allowedActions) {\\n if ($allowedActions === '*')\\n $this->_allowedActions = $allowedActions;\\n else\\n $this->_allowedActions = preg_split('/[\\\\s,]+/', $allowedActions, -1, PREG_SPLIT_NO_EMPTY);\\n }\",\n \"function isAllowedFile($file) {\\n\\t\\t$path = pathinfo($file);\\n\\t\\t$dir = preg_replace('#[\\\\./]*(.*)/*#', '$1', $path['dirname']);\\n\\t\\t$file = $path['basename'];\\n\\t\\tif ($dir == '' && $file == '.htaccess') return true;\\n\\t\\tif ($dir == '' && $file == 'index.php') return true;\\n\\t\\tif ($dir == '' && $file == 'documentation.txt') return true;\\n\\t\\tif ($dir == 'data' && $file == 'hypha.html') return true;\\n\\t\\tif ($dir == 'data' && $file == 'hypha.css') return true;\\n\\t\\tif ($dir == 'system/core') return true;\\n\\t\\tif ($dir == 'system/datatypes') return true;\\n\\t\\tif ($dir == 'system/languages') return true;\\n\\t\\tif ($dir == 'system/php-dom-wrapper') return true;\\n\\t\\tif ($dir == 'system/wymeditor') return true;\\n\\t\\treturn false;\\n\\t}\",\n \"public function provideFileAnExpectedNames()\\n {\\n return [\\n [__FILE__, pathinfo(__FILE__, PATHINFO_FILENAME)],\\n ['.htaccess', ''],\\n ['name', 'name'],\\n ['a.combined.filename.with.multiple.ext.separator', 'a.combined.filename.with.multiple.ext']\\n ];\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.68944967","0.67760015","0.652013","0.63537073","0.6293571","0.6067082","0.58914614","0.5886769","0.58844286","0.5853039","0.5838147","0.5801125","0.57944393","0.57497317","0.5747599","0.5746619","0.5742816","0.57275254","0.57245994","0.5718556","0.5663027","0.5643672","0.5620092","0.55981886","0.5598179","0.5591549","0.55597967","0.55522686","0.55497664","0.5541424","0.55401975","0.5536516","0.5527697","0.55276376","0.55170614","0.5511687","0.55099416","0.5509802","0.5500186","0.54923445","0.54898447","0.5483637","0.5475083","0.545533","0.5444611","0.5441462","0.5438615","0.54377085","0.54365087","0.5435853","0.5430418","0.54159284","0.54119015","0.5405453","0.5398589","0.53900087","0.5385053","0.5379506","0.537273","0.5368122","0.5366164","0.535582","0.5349723","0.5343948","0.53435415","0.53435415","0.53435415","0.53353065","0.5326123","0.5325005","0.5321829","0.53204226","0.5319296","0.5313318","0.5298138","0.5295697","0.52914435","0.5286857","0.52842337","0.5275034","0.5274279","0.5270124","0.52690816","0.5264916","0.5258548","0.5253491","0.5236375","0.52346903","0.5231385","0.52280927","0.5223473","0.52230424","0.5213158","0.52125853","0.52089536","0.5196112","0.51932126","0.51930743","0.5192515","0.5189354","0.5189277"],"string":"[\n \"0.68944967\",\n \"0.67760015\",\n \"0.652013\",\n \"0.63537073\",\n \"0.6293571\",\n \"0.6067082\",\n \"0.58914614\",\n \"0.5886769\",\n \"0.58844286\",\n \"0.5853039\",\n \"0.5838147\",\n \"0.5801125\",\n \"0.57944393\",\n \"0.57497317\",\n \"0.5747599\",\n \"0.5746619\",\n \"0.5742816\",\n \"0.57275254\",\n \"0.57245994\",\n \"0.5718556\",\n \"0.5663027\",\n \"0.5643672\",\n \"0.5620092\",\n \"0.55981886\",\n \"0.5598179\",\n \"0.5591549\",\n \"0.55597967\",\n \"0.55522686\",\n \"0.55497664\",\n \"0.5541424\",\n \"0.55401975\",\n \"0.5536516\",\n \"0.5527697\",\n \"0.55276376\",\n \"0.55170614\",\n \"0.5511687\",\n \"0.55099416\",\n \"0.5509802\",\n \"0.5500186\",\n \"0.54923445\",\n \"0.54898447\",\n \"0.5483637\",\n \"0.5475083\",\n \"0.545533\",\n \"0.5444611\",\n \"0.5441462\",\n \"0.5438615\",\n \"0.54377085\",\n \"0.54365087\",\n \"0.5435853\",\n \"0.5430418\",\n \"0.54159284\",\n \"0.54119015\",\n \"0.5405453\",\n \"0.5398589\",\n \"0.53900087\",\n \"0.5385053\",\n \"0.5379506\",\n \"0.537273\",\n \"0.5368122\",\n \"0.5366164\",\n \"0.535582\",\n \"0.5349723\",\n \"0.5343948\",\n \"0.53435415\",\n \"0.53435415\",\n \"0.53435415\",\n \"0.53353065\",\n \"0.5326123\",\n \"0.5325005\",\n \"0.5321829\",\n \"0.53204226\",\n \"0.5319296\",\n \"0.5313318\",\n \"0.5298138\",\n \"0.5295697\",\n \"0.52914435\",\n \"0.5286857\",\n \"0.52842337\",\n \"0.5275034\",\n \"0.5274279\",\n \"0.5270124\",\n \"0.52690816\",\n \"0.5264916\",\n \"0.5258548\",\n \"0.5253491\",\n \"0.5236375\",\n \"0.52346903\",\n \"0.5231385\",\n \"0.52280927\",\n \"0.5223473\",\n \"0.52230424\",\n \"0.5213158\",\n \"0.52125853\",\n \"0.52089536\",\n \"0.5196112\",\n \"0.51932126\",\n \"0.51930743\",\n \"0.5192515\",\n \"0.5189354\",\n \"0.5189277\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":447,"cells":{"query":{"kind":"string","value":"Add support for custom color palettes in Gutenberg."},"document":{"kind":"string","value":"function tewwie_gutenberg_color_palette() {\n\tadd_theme_support(\n\t\t'editor-color-palette', array(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Primary', '@@textdomain' ),\n\t\t\t\t'slug' => 'primary',\n\t\t\t\t'color' => 'rgb(94, 114, 228)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Secondary', '@@textdomain' ),\n\t\t\t\t'slug' => 'secondary',\n\t\t\t\t'color' => 'rgb(245, 54, 92)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Green', '@@textdomain' ),\n\t\t\t\t'slug' => 'green',\n\t\t\t\t'color' => 'rgb(67, 170, 139)',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Dark Grey', '@@textdomain' ),\n\t\t\t\t'slug' => 'dark-grey',\n\t\t\t\t'color' => 'rgb(68,68,68)',\n\t\t\t)\n\t\t)\n\t);\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function hotel_lux_gutenberg_support() {\r\n\t$colors = cmsmasters_color_picker_palettes();\r\n\t\r\n\t$color_palette = array();\r\n\t\r\n\t\r\n\tforeach ($colors as $color) {\r\n\t\t$color_palette[] = array(\r\n\t\t\t'color' => $color,\r\n\t\t);\r\n\t}\r\n\t\r\n\t\r\n\tadd_theme_support('editor-color-palette', $color_palette);\r\n}","function lalita_enqueue_color_palettes() {\n\t\t// Old versions of WP don't get nice things\n\t\tif ( ! function_exists( 'wp_add_inline_script' ) )\n\t\t\treturn;\n\n\t\t// Grab our palette array and turn it into JS\n\t\t$palettes = json_encode( lalita_get_default_color_palettes() );\n\n\t\t// Add our custom palettes\n\t\t// json_encode takes care of escaping\n\t\twp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $palettes . ';' );\n\t}","function dg_gutenberg_custom_colors() {\n\t\n\t// disable custom colors\n\tadd_theme_support( 'disable-custom-colors' );\n\t\n\t// add custom color palette\n\tadd_theme_support( 'editor-color-palette', array(\n\t\tarray(\n\t\t\t'name' => __( 'Pale Lemon Yellow', 'dehli-grolimund' ),\n\t\t\t'slug' => 'pale-lemon-yellow',\n\t\t\t'color'\t=> '#fceeb2',\n\t\t),\t\n\t\tarray(\n\t\t\t'name' => __( 'Hermosa Pink', 'dehli-grolimund' ),\n\t\t\t'slug' => 'hermosa-pink',\n\t\t\t'color'\t=> '#e6bdc3',\n\t\t),\n\t\tarray(\n\t\t\t'name' => __( 'Coral Red', 'dehli-grolimund' ),\n\t\t\t'slug' => 'coral-red',\n\t\t\t'color'\t=> '#d98c7f',\n\t\t),\n\t\tarray(\n\t\t\t'name' => __( 'Pale Kings Blue', 'dehli-grolimund' ),\n\t\t\t'slug' => 'pale-king-blue',\n\t\t\t'color'\t=> '#aeced7',\n\t\t),\n\t\tarray(\n\t\t\t'name' => __( 'Olympic Blue', 'dehli-grolimund' ),\n\t\t\t'slug' => 'olympic-blue',\n\t\t\t'color'\t=> '#5f769c',\n\t\t),\t\t\n\t\tarray(\n\t\t\t'name' => __( 'Cobalt Green', 'dehli-grolimund' ),\n\t\t\t'slug' => 'cobalt-green',\n\t\t\t'color'\t=> '#9ec7a2',\n\t\t),\t\t\n\t\tarray(\n\t\t\t'name' => __( 'Venice Green', 'dehli-grolimund' ),\n\t\t\t'slug' => 'venice-green',\n\t\t\t'color'\t=> '#7cbbb1',\n\t\t),\n\n\t) );\t\n}","public function custom_color_variables() {\n\t\tif ( 'd1e4dd' !== strtolower( get_theme_mod( 'background_color', 'D1E4DD' ) ) ) {\n\t\t\twp_add_inline_style( 'twenty-twenty-one-style', $this->generate_custom_color_variables() );\n\t\t}\n\t}","function fp_setup() {\n\t\n\tadd_theme_support('custom-background', array('default-color' => 'ffffff'));\n\t\n}","function hello_pro_inline_color_palette() {\n\t$css = '';\n\n\t$appearance = genesis_get_config( 'appearance' );\n\n\t$editor_color_palette = $appearance['editor-color-palette'];\n\n\tforeach ( $editor_color_palette as $color_info ) {\n\n\t\t$css .= sprintf(\n\t\t\t'.site-container .has-%1$s-color,\n\t\t.site-container .wp-block-button .wp-block-button__link.has-%1$s-color,\n\t\t.site-container .wp-block-button.is-style-outline .wp-block-button__link.has-%1$s-color {\n\t\t\tcolor: %2$s;\n\t\t}\n\n\t\t.site-container .has-%1$s-background-color,\n\t\t.site-container .wp-block-button .wp-block-button__link.has-%1$s-background-color,\n\t\t.site-container .wp-block-pullquote.is-style-solid-color.has-%1$s-background-color {\n\t\t\tbackground-color: %2$s;\n\t\t}\n\n\t\t',\n\t\t\t$color_info['slug'],\n\t\t\t$color_info['color']\n\t\t);\n\n\t}\n\n\t// Get Primary Color.\n\t$color_primary = get_theme_mod( 'hello_pro_link_color', $appearance['default-colors']['primary'] );\n\n\t// Get Secondary Color.\n\t$color_secondary = get_theme_mod( 'hello_pro_accent_color', $appearance['default-colors']['secondary'] );\n\n\t// Define Primary Color elements.\n\t$css .= sprintf(\n\t\t'/* PRIMARY COLOR */\n\t\ta,\n\t\t.home-features > .wrap > .widget .textwidget > h3 > span,\n\t\t.social-proof-slider-wrap .testimonial-item .testimonial-text .author .author-name,\n\t\t.entry-header .entry-meta .entry-comments-link a,\n\t\t.footer-widgets a:hover,\n\t\t.footer-widgets a:focus,\n\t\t.genesis-nav-menu a:focus,\n\t\t.genesis-nav-menu a:hover,\n\t\t.genesis-nav-menu .current-menu-item > a,\n\t\t.genesis-nav-menu .sub-menu .current-menu-item > a:focus,\n\t\t.genesis-nav-menu .sub-menu .current-menu-item > a:hover,\n\t\t.genesis-nav-menu .current-menu-parent > a,\n\t\t.menu-toggle:focus,\n\t\t.menu-toggle:hover,\n\t\t.sub-menu-toggle:focus,\n\t\t.sub-menu-toggle:hover,\n\t\ta:hover,\n\t\t.entry-meta a,\n\t\t.entry-meta a:hover,\n\t\t.entry-meta a:focus,\n\t\t.footer-widgets .entry-title a:hover,\n\t\t.site-footer a:hover,\n\t\t.site-footer a:focus,\n\t\t.entry-content .featured-articles button.slick-arrow > span,\n\t\t.entry-content .featured-articles ul.slick-dots li button::before,\n\t\t.entry-content .featured-articles ul.slick-dots li.slick-active button:before {\n\t\t\tcolor: %1$s;\n\t\t}\n\n\t\t.menu-toggle,\n\t\t.archive-pagination li a,\n\t\ta.button,\n\t\tbutton,\n\t\tinput[type=\"button\"],\n\t\tinput[type=\"reset\"],\n\t\tinput[type=\"submit\"],\n\t\t.sidebar .enews-widget input[type=\"submit\"],\n\t\t.sidebar-primary .widget input[type=\"submit\"],\n\t\t.sidebar-primary .widget .button,\n\t\t.wpforms-form button[type=submit] {\n\t\t\tbackground-color: %1$s;\n\t\t\tcolor: %2$s !important;\n\t\t}\n\n\t\t.entry-content .featured-articles .featured-article {\n\t\t\tbackground-color: %1$s !important;\n\t\t}\n\n\t\t.wp-block-button .wp-block-button__link.has-primary-background-color,\n\t\t.ab-block-button > .ab-button,\n\t\t.gb-block-button > .gb-button {\n\t\t\tbackground-color: %1$s !important;\n\t\t\tcolor: %2$s !important;\n\t\t}\n\n\t\t.wp-block-button .wp-block-button__link:not(.has-background) {\n\t\t background-color: %1$s !important;\n\t\t}\n\n\t\t.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color),\n\t\t.wp-block-button.is-style-outline .wp-block-button__link.has-primary-background-color {\n\t\t\tbackground-color: transparent !important;\n\t\t border-color: %1$s !important;\n\t\t\tcolor: %1$s !important;\n\t\t}\n\n\t\t',\n\t\t$color_primary,\n\t\thello_pro_color_contrast( $color_primary )\n\t);\n\n\t// Define Secondary Color elements.\n\t$css .= sprintf(\n\t\t'/* SECONDARY COLOR */\n\t\t.menu-toggle:focus,\n\t\t.menu-toggle:hover,\n\t\t.archive-pagination li a:hover,\n\t\t.archive-pagination li a:focus,\n\t\t.archive-pagination li.active a,\n\t\t.button:hover,\n\t\t.button:focus,\n\t\ta.button:hover,\n\t\ta.button:focus,\n\t\tbutton:not(.slick-arrow):hover,\n\t\tbutton:not(.slick-arrow):focus,\n\t\tbutton:not(id^=\"slick-\"),\n\t\tinput:hover[type=\"button\"],\n\t\tinput:hover[type=\"reset\"],\n\t\tinput:hover[type=\"submit\"],\n\t\tinput:focus[type=\"button\"],\n\t\tinput:focus[type=\"reset\"],\n\t\tinput:focus[type=\"submit\"],\n\t\t.sidebar-primary .widget .button:focus,\n\t\t.sidebar-primary .widget .button:hover,\n\t\t.sidebar .enews-widget input[type=\"submit\"]:focus,\n\t\t.sidebar .enews-widget input[type=\"submit\"]:hover,\n\t\t.wpforms-form button[type=submit]:focus,\n\t\t.wpforms-form button[type=submit]:hover {\n\t\t\tbackground-color: %1$s !important;\n\t\t\tcolor: %2$s !important;\n\t\t}\n\n\t\t.wp-block-button .wp-block-button__link:not(.has-background):hover {\n\t\t background-color: %1$s !important;\n\t\t\tcolor: %2$s !important;\n\t\t}\n\n\t\t.wp-block-button.is-style-outline .wp-block-button__link.has-secondary-background-color {\n\t\t\tbackground-color: transparent !important;\n\t\t border-color: %1$s !important;\n\t\t\tcolor: %1$s !important;\n\t\t}\n\n\t\t.wp-block-button.is-style-outline .wp-block-button__link:focus,\n\t\t.wp-block-button.is-style-outline .wp-block-button__link:hover,\n\t\t.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):focus,\n\t\t.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover {\n\t\t\tbackground-color: %1$s !important;\n\t\t\tborder-color: %1$s !important;\n\t\t\tcolor: %2$s !important;\n\t\t}',\n\t\t$color_secondary,\n\t\thello_pro_color_contrast( $color_secondary )\n\t);\n\n\treturn $css;\n}","function dizzy7_gutenberg_features() {\n\t\t\n\n// Theme supports wide images, galleries and videos.\n add_theme_support( 'align-wide' );\n add_theme_support( 'align-full' );\n add_theme_support( 'wide-images' );\n \n add_theme_support(\n\t\t'editor-color-palette', array(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Main Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'main-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-main-color'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Second Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'second-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-second-color'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Highlight Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'highlight-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-third-color'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Special Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'special-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-fourth-color'),\n\t\t\t)\n\t\t)\n\t);\n}","public function colors()\n {\n $section = self::$panel . '_colors';\n\n /**\n * Add Section and fields for Colors\n */\n Customizer::addSection($section, array(\n 'title' => esc_html__('Colors', 'stage'),\n 'description' => esc_html__('Set color settings for your website', 'stage'),\n 'priority' => 60,\n 'panel' => self::$panel,\n ));\n\n // Fields are calculated from ColorsPanel.php\n }","function wp_register_colors_support($block_type)\n {\n }","protected function parameterizeColors() : void\n {\n $colors = $this->fetchColorsFromACF();\n $this->injectStyles($colors);\n }","function register_admin_color_schemes()\n {\n }","public function editor_custom_color_variables() {\n\t\twp_enqueue_style(\n\t\t\t'twenty-twenty-one-custom-color-overrides',\n\t\t\tget_theme_file_uri( 'assets/css/custom-color-overrides.css' ),\n\t\t\tarray(),\n\t\t\t(string) filemtime( get_theme_file_path( 'assets/css/custom-color-overrides.css' ) )\n\t\t);\n\n\t\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\n\t\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\n\t\t\twp_add_inline_style( 'twenty-twenty-one-custom-color-overrides', $this->generate_custom_color_variables( 'editor' ) );\n\t\t}\n\t}","function CustomThemeSupport(){\n // coloring\n if(!empty(SELF::$WPgutenberg_ColorPalette)):\n $newColors = array();\n foreach (SELF::$WPgutenberg_ColorPalette as $colorkey => $color) {\n $newColors[] = array(\n 'name' => __( $color[\"key\"], 'WPgutenberg' ),\n 'slug' => prefix_core_BaseFunctions::Slugify($color[\"key\"]),\n 'color'\t=> $color[\"value\"],\n );\n }\n add_theme_support( 'editor-color-palette', $newColors );\n endif;\n // font sizes\n if(!empty(SELF::$WPgutenberg_FontSizes)):\n $newColors = array();\n foreach (SELF::$WPgutenberg_FontSizes as $sizekey => $size) {\n $newColors[] = array(\n 'name' => __( $size[\"key\"], 'WPgutenberg' ),\n 'slug' => prefix_core_BaseFunctions::Slugify($size[\"key\"]),\n 'size'\t=> $size[\"value\"],\n );\n }\n add_theme_support( 'editor-font-sizes', $newColors );\n // disable custom color picker\n if(SELF::$WPgutenberg_ColorPalette_CP == 0):\n add_theme_support( 'disable-custom-colors');\n endif;\n endif;\n // disable default patterns\n if($this->WPgutenberg_DefaultPatterns == 0):\n remove_theme_support( 'core-block-patterns' );\n endif;\n\n }","function colloquium_theme_setup() {\n add_action('wp_head', 'colloquium_bbpress_custom_color');\n}","function shell_custom_background(){\r\n\r\n\t\t/* Custom Background */\r\n\t\tadd_theme_support( 'custom-background', array( 'default-color' => 'f9f9f9' ) );\r\n\t}","function themename_customize_color_register( $wp_customize ) {\n\t$wp_customize->get_setting( 'themename_theme_bgcolor1' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_header_bgcolor' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_theme_hovercolor' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_widget_bgcolor' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_mainpost_bgcolor' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_popularpost_bgcolor' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_a_bgcolor' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_text_color' )->transport = 'postMessage';\n\t$wp_customize->get_setting( 'themename_readmore_bgcolor' )->transport = 'postMessage';\n}","public function useColor($name);","function WPBC_after_setup_theme__customs(){\n\t$defaults = array(\n\t\t'default-color' => 'red',\n\t\t'default-image' => '',\n\t\t'default-repeat' => 'no-repeat',\n\t\t'default-position-x' => 'center',\n\t\t'default-position-y' => 'center',\n\t\t'default-size' => 'cover',\n\t\t'default-attachment' => 'fixed',\n\t\t'wp-head-callback' => '_custom_background_cb',\n\t\t'admin-head-callback' => '',\n\t\t'admin-preview-callback' => ''\n\t);\n\t// add_theme_support( 'custom-background', $defaults );\n\t\n}","function ux_mce4_options( $init ) {\r\n global $flatsome_opt;\r\n $default_colours = '\r\n \"000000\", \"Black\", \"993300\", \"Burnt orange\", \"333300\", \"Dark olive\", \"003300\", \"Dark green\", \"003366\", \"Dark azure\", \"000080\", \"Navy Blue\", \"333399\", \"Indigo\", \"333333\", \"Very dark gray\", \r\n \"800000\", \"Maroon\", \"FF6600\", \"Orange\", \"808000\", \"Olive\", \"008000\", \"Green\", \"008080\", \"Teal\", \"0000FF\", \"Blue\", \"666699\", \"Grayish blue\", \"808080\", \"Gray\", \r\n \"FF0000\", \"Red\", \"FF9900\", \"Amber\", \"99CC00\", \"Yellow green\", \"339966\", \"Sea green\", \"33CCCC\", \"Turquoise\", \"3366FF\", \"Royal blue\", \"800080\", \"Purple\", \"999999\", \"Medium gray\", \r\n \"FF00FF\", \"Magenta\", \"FFCC00\", \"Gold\", \"FFFF00\", \"Yellow\", \"00FF00\", \"Lime\", \"00FFFF\", \"Aqua\", \"00CCFF\", \"Sky blue\", \"993366\", \"Brown\", \"C0C0C0\", \"Silver\", \r\n \"FF99CC\", \"Pink\", \"FFCC99\", \"Peach\", \"FFFF99\", \"Light yellow\", \"CCFFCC\", \"Pale green\", \"CCFFFF\", \"Pale cyan\", \"99CCFF\", \"Light sky blue\", \"CC99FF\", \"Plum\", \"FFFFFF\", \"White\"\r\n ';\r\n $custom_colours = '\r\n \"e14d43\", \"Primary Color\", \"d83131\", \"Color 2 Name\", \"ed1c24\", \"Color 3 Name\", \"f99b1c\", \"Color 4 Name\", \"50b848\", \"Color 5 Name\", \"00a859\", \"Color 6 Name\", \"00aae7\", \"Color 7 Name\", \"282828\", \"Color 8 Name\"\r\n ';\r\n $init['textcolor_map'] = '['.$custom_colours.','.$default_colours.']';\r\n return $init;\r\n }","function wp_apply_colors_support($block_type, $block_attributes)\n {\n }","protected function parsePalettes(ContainerInterface $container)\n {\n $palettesDca = $this->getFromDca('palettes');\n\n // Skip while there is no extended palette definition.\n if (!is_callable($palettesDca)) {\n return;\n }\n\n if ($container->hasDefinition(PalettesDefinitionInterface::NAME)) {\n $palettesDefinition = $container->getDefinition(PalettesDefinitionInterface::NAME);\n } else {\n $palettesDefinition = new DefaultPalettesDefinition();\n $container->setDefinition(PalettesDefinitionInterface::NAME, $palettesDefinition);\n }\n\n call_user_func($palettesDca, $palettesDefinition, $container);\n }","public function changeEditorColorPalette(): void\n\t{\n\t\t// Unable to use state due to this method is used in JS and store is not registered there.\n\t\t$colors = $this->getSettingsManifest()['globalVariables']['colors'] ?? [];\n\n\t\tif ($colors) {\n\t\t\t\\add_theme_support('editor-color-palette', $colors);\n\t\t}\n\t}","public function tcb_get_palettes_from_config() {\n\t\treturn ! empty( $this->skin_palettes_config['palette'] ) ? $this->skin_palettes_config['palette'] : [];\n\t}","function alt_add_color_scheme()\n {\n wp_admin_css_color(\n 'alt-design',\n __('Alt Design', 'alt-design-color-scheme'),\n get_template_directory_uri() . '/lib/alt-admin/css/admin-color-scheme.css',\n array('#25282b', '#363b3f', '#ff6600', '#ff6600')\n );\n }","function techfak_color_schemes() {\n\t$color_scheme_options = array(\n\t\t'blau' => array(\n\t\t\t'value' => 'blau',\n\t\t\t'label' => __( 'Blue', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-blau.png',\n\t\t),\n\t\t'graublau' => array(\n\t\t\t'value' => 'graublau',\n\t\t\t'label' => __( 'Blue-grey', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-graublau.png',\n\t\t),\n\t\t'karibikgruen' => array(\n\t\t\t'value' => 'karibikgruen',\n\t\t\t'label' => __( 'Caribic-green', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-karibikgruen.png',\n\t\t),\n\t\t'gruen' => array(\n\t\t\t'value' => 'gruen',\n\t\t\t'label' => __( 'Green', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-gruen.png',\n\t\t),\n\t\t'hellblau' => array(\n\t\t\t'value' => 'hellblau',\n\t\t\t'label' => __( 'Light-blue', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-hellblau.png',\n\t\t),\n\t\t'orange' => array(\n\t\t\t'value' => 'orange',\n\t\t\t'label' => __( 'Orange', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-orange.png',\n\t\t),\n\t\t'rot' => array(\n\t\t\t'value' => 'rot',\n\t\t\t'label' => __( 'Red', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-rot.png',\n\t\t),\n\t\t'gelb' => array(\n\t\t\t'value' => 'gelb',\n\t\t\t'label' => __( 'Yellow', '_rrze' ),\n\t\t\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-gelb.png',\n\t\t),\n\n\t);\n\n\treturn apply_filters( 'techfak_color_schemes', $color_scheme_options );\n}","function capezzahill_colors_css_wrap() {\r\n\t// Only include custom colors in customizer or frontend.\r\n\tif ( ( ! is_customize_preview() && 'default' === get_theme_mod( 'primary_color', 'default' ) ) || is_admin() ) {\r\n\t\treturn;\r\n\t}\r\n\trequire_once get_parent_theme_file_path( '/inc/color-patterns.php' );\r\n\t$primary_color = 199;\r\n\tif ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {\r\n\t\t$primary_color = get_theme_mod( 'primary_color_hue', 199 );\r\n\t}\r\n\t?>\r\n\r\n\t\r\n\tadd_setting(\r\n 'primary_color',\r\n array(\r\n 'default' => '#ff5c36'\r\n )\r\n );\r\n $wp_customize->add_control(\r\n new WP_Customize_Color_Control(\r\n $wp_customize,\r\n 'primary_color',\r\n array(\r\n 'label' => __('Primary color', 'land'),\r\n 'section' => 'colors',\r\n 'priority' => 9\r\n )\r\n )\r\n );\r\n\r\n $wp_customize->add_setting(\r\n 'header_bg_color',\r\n array(\r\n 'default' => '#f5f5f5'\r\n )\r\n );\r\n $wp_customize->add_control(\r\n new WP_Customize_Color_Control(\r\n $wp_customize,\r\n 'header_bg_color',\r\n array(\r\n 'label' => __('Header background color', 'land'),\r\n 'section' => 'background_image',\r\n 'priority' => 9\r\n )\r\n )\r\n );\r\n}","function twentyseventeen_colors_css_wrap() {\n\tif ( 'custom' !== get_theme_mod( 'colorscheme' ) && ! is_customize_preview() ) {\n\t\treturn;\n\t}\n\n\trequire_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) );\n\t$hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) );\n?>\n\t\ntheme_color('primary')->set_color('#f6a4cd')\n // ->set_name('Pink')\n // ->set_text_color_scheme('dark');\n \n /* Remove existing theme colors */\n // $colors->remove_theme_color('dark-gray');\n \n /* Add new colors */\n // $accent = new PuzzleColor(array(\n // 'name' => __('Accent Color'),\n // 'id' => 'accent',\n // 'color' => '#f00',\n // 'text_color_scheme' => 'light',\n // 'order' => 11\n // ));\n // $colors->add_theme_color($accent);\n \n /* Edit text colors */\n // $colors->set_text_colors(array(\n // 'headline_dark' => '#333',\n // 'text_dark' => '#555',\n // 'headline_light' => '#fff',\n // 'text_light' => '#fff'\n // ));\n \n /* Edit link colors */\n // $colors->set_link_colors(array(\n // 'link_dark' => '#3b54a5',\n // 'link_dark_hover' => '#2cb799',\n // 'link_light' => '#fff',\n // 'link_light_hover' => 'rgba(255, 255, 255, 0.75)'\n // ));\n}","function modshrink_s_register_custom_background() {\n\t$args = array(\n\t\t'default-color' => 'ffffff',\n\t\t'default-image' => '',\n\t);\n\n\t$args = apply_filters( 'modshrink_s_custom_background_args', $args );\n\n\tif ( function_exists( 'wp_get_theme' ) ) {\n\t\tadd_theme_support( 'custom-background', $args );\n\t} else {\n\t\tdefine( 'BACKGROUND_COLOR', $args['default-color'] );\n\t\tif ( ! empty( $args['default-image'] ) )\n\t\t\tdefine( 'BACKGROUND_IMAGE', $args['default-image'] );\n\t\tadd_custom_background();\n\t}\n}","function get_peepso_color_template() {\n $color = \"\";\n\n if (class_exists( 'PeepSo' )) {\n $color = PeepSo::get_option('site_css_template','');\n }\n\n return $color;\n}","function gcb_custom_background() {\r\n\tadd_custom_background( apply_filters( 'gcb_args' , 'gcb_do_theme_background' ) );\t\r\n}","public function backgroundColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }","public function backgroundColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }","public function init()\n {\n $this->shortcode->getHandlers()->add('color', function (ShortcodeInterface $sc) {\n $color = $sc->getParameter('c', null);\n $bgColor = $sc->getParameter('bg', null);\n $padding = $sc->getParameter('padding', 3);\n\n if ($color || $bgColor) {\n $colorString = sprintf(\"%s%s%s\",\n $color !== null ? \"color:{$color};\" : '',\n $bgColor !== null ? \"background-color:{$bgColor};\" : '',\n $bgColor !== null ? \"padding-left:{$padding}px;padding-right:{$padding}px;\" : ''\n );\n\n return '' . $sc->getContent() . '';\n }\n });\n }","function upgrade_colourFields($p_currentSettings, $p_pluginName ) {\n\t// 1. site-wide 'colour_offsets'\n\tif (isset( $p_currentSettings['colour_offsets'])) {\n\t\t$l_newSettingsArray = splitOldColourValues(\n\t\t\t\t$p_currentSettings['colour_offsets']\n\t\t\t,\t'clr_off_' );\t\n\t\tforeach ( $l_newSettingsArray as $l_newKey => $l_newValue ) {\n\t\t\tset_config( $l_newKey, $l_newValue,\t$p_pluginName);\n\t\t}//foreach\n\t\tset_config( \t'colour_offsets_bak'\n\t\t\t\t\t, \t$p_currentSettings['colour_offsets']\n\t\t\t\t\t,\t$p_pluginName);\n\t\tunset_config('colour_offsets', $p_pluginName);\n\t}\n\t// 2. site-wide 'colour_palettes'\n\tif (isset( $p_currentSettings['colour_palettes'])) {\n\t\t$l_newSettingsArray = splitOldColourValues(\n\t\t\t\t$p_currentSettings['colour_palettes']\n\t\t\t,\t'clr_pal_' );\n\t\t\t\n\t\tforeach ( $l_newSettingsArray as $l_newKey => $l_newValue ) {\n\t\t\tset_config( $l_newKey, $l_newValue,\t$p_pluginName);\n\t\t}//foreach\n\t\tset_config( \t'colour_palettes_bak'\n\t\t\t\t\t, \t$p_currentSettings['colour_palettes']\n\t\t\t\t\t,\t$p_pluginName);\n\t\tunset_config('colour_palettes', $p_pluginName);\t\t\t\n\t}//if (isset(...\n\t\n\t// 3. course overrides for 'colour_offsets' and 'colour_palettes'\n\t$l_allOverridesString = $p_currentSettings[IcandConstantsBackend::DB_FIELD_COURSE_OVERRIDES];\n\t$l_allOverridesString = preg_replace( IcandConstantsBackend::PREG_REMOVE_FROM_OVERRIDES, '', $l_allOverridesString); \t\t\n\t$l_allOverridesString = substr( $l_allOverridesString,0,-1);\n\t$l_allOverridesArray = IcandConstantsBackend::explode2( \n\t\t\t\t\t\tIcandConstantsBackend::OVERRIDE_ALL_SEPARATOR \n\t\t\t\t\t,\tIcandConstantsBackend::OVERRIDE_ALL_CONNECTOR\n\t\t\t\t\t,\t$l_allOverridesString );\n\t$l_madeAnyChange = false;\n\tforeach ( $l_allOverridesArray as $l_course => $l_courseOverridesString ) {\n\t\t$l_courseOverridesString = substr($l_courseOverridesString,1); //remove leading '{'\n\t\t$l_courseOverridesString = preg_replace( IcandConstantsBackend::PREG_REMOVE_FROM_OVERRIDES, '', $l_courseOverridesString );\n\t\t$l_courseOverridesArray = IcandConstantsBackend::explode2(\n\t\t\t\t\tIcandConstantsBackend::OVERRIDE_ONE_SEPARATOR \n\t\t\t\t,\tIcandConstantsBackend::OVERRIDE_ONE_CONNECTOR\n\t\t\t\t,\t$l_courseOverridesString\n\t\t\t\t,\t2 ); // only get key and value\n\t\t$l_madeChangeToCourse = false;\n\t\tif (isset( $l_courseOverridesArray['colour_offsets'])) {\n\t\t\t$l_madeChangeToCourse = true;\n\t\t\t$l_newSettingsArray = splitOldColourValues(\n\t\t\t\t\t$l_courseOverridesArray['colour_offsets']\n\t\t\t\t,\t'clr_off_' );\n\t\t\t$l_courseOverridesArray = array_merge($l_courseOverridesArray,$l_newSettingsArray );\t\t\t\t\n\t\t\tunset( $l_courseOverridesArray['colour_offsets'] ); \n\t\t}\n\t\tif (isset( $l_courseOverridesArray['colour_palettes'])) {\n\t\t\t$l_madeChangeToCourse = true;\n\t\t\t$l_newSettingsArray = splitOldColourValues(\n\t\t\t\t\t$l_courseOverridesArray['colour_palettes']\n\t\t\t\t,\t'clr_pal_' );\n\t\t\t$l_courseOverridesArray = array_merge($l_courseOverridesArray,$l_newSettingsArray );\n\t\t\tunset( $l_courseOverridesArray['colour_palettes'] ); \t\t\t\n\t\t}\n\t\tif ($l_madeChangeToCourse) {\n\t\t\t$l_madeAnyChange = true;\n\t\t\t$l_allOverridesArray[ $l_course ] = \n\t\t\t\t\t'{' \n\t\t\t\t\t. \t(IcandConstantsBackend::implode2(\n\t\t\t\t\t\t\tIcandConstantsBackend::OVERRIDE_ONE_SEPARATOR . IcandConstantsBackend::STR_APPEND_TO_OVERRIDES\n\t\t\t\t\t\t,\tIcandConstantsBackend::OVERRIDE_ONE_CONNECTOR\n\t\t\t\t\t\t,\t$l_courseOverridesArray )\n\t\t\t\t\t\t);\n\t\t}\n\t}//foreach\n\tif ($l_madeAnyChange) {\t// write course overrides back to database\n\t\t$l_newValue = IcandConstantsBackend::implode2(\n\t\t\t\t\t\tIcandConstantsBackend::OVERRIDE_ALL_SEPARATOR . IcandConstantsBackend::STR_APPEND_TO_OVERRIDES\n\t\t\t\t\t,\tIcandConstantsBackend::OVERRIDE_ALL_CONNECTOR\n\t\t\t\t\t,\t$l_allOverridesArray );\n\t\tif (strlen( $l_newValue ) > 0) {\n\t\t\t$l_newValue .= IcandConstantsBackend::OVERRIDE_ALL_TERMINATOR;\n\t\t\tset_config( IcandConstantsBackend::DB_FIELD_COURSE_OVERRIDES\n\t\t\t\t, \t$l_newValue\n\t\t\t\t,\t$p_pluginName);\t\n\t\t}//if\t\t\n\t}//if\n}","final private function setColors()\n {\n\n $systemColorFile = new PhingFile(Phing::getResourcePath(\"phing/listener/defaults.properties\"));\n\n try {\n $prop = new Properties();\n\n $prop->load($systemColorFile);\n\n $err = $prop->getProperty(\"HtmlColorLogger.ERROR_CLASS\");\n $warn = $prop->getProperty(\"HtmlColorLogger.WARNING_CLASS\");\n $info = $prop->getProperty(\"HtmlColorLogger.INFO_CLASS\");\n $verbose = $prop->getProperty(\"HtmlColorLogger.VERBOSE_CLASS\");\n $debug = $prop->getProperty(\"HtmlColorLogger.DEBUG_CLASS\");\n if ($err !== null) {\n $this->errColor = self::PREFIX . $err . self::SUFFIX;\n }\n if ($warn !== null) {\n $this->warnColor = self::PREFIX . $warn . self::SUFFIX;\n }\n if ($info !== null) {\n $this->infoColor = self::PREFIX . $info . self::SUFFIX;\n }\n if ($verbose !== null) {\n $this->verboseColor = self::PREFIX . $verbose . self::SUFFIX;\n }\n if ($debug !== null) {\n $this->debugColor = self::PREFIX . $debug . self::SUFFIX;\n }\n } catch (IOException $ioe) {\n //Ignore exception - we will use the defaults.\n }\n }","function pl_text_color(){\n\t\t\n\t$color = ( pl_check_color_hash( ploption( 'text_primary' ) ) ) ? pl_hash_strip( ploption( 'text_primary' ) ) : '000000';\n\n\treturn $color;\n}","public function theme_color_customizer( $wp_customize ){\n\n\t\t$theme_color_locations = $this->colorcase_theme_support();\n\n\t\t// bail if no theme support\n\t\tif( $theme_color_locations == false ){\n\t\t\treturn;\n\t\t}\n\n\t\t// get custom inputs\n\t\tinclude_once('customizer-inputs.php');\n\n\t\t// remove title color customization\n\t\t$wp_customize->remove_control( 'header_textcolor' );\n\n\t\t// add theme colors panel\n\t\t$wp_customize->add_panel( 'theme_colors', array(\n\t\t\t'priority' => 35,\n\t\t\t'capability' => 'edit_theme_options',\n\t\t\t'theme_supports' => 'colorcase',\n\t\t\t'title' => 'Theme Colors',\n\t\t\t'description' => 'Pick a color palette, or choose custom colors.',\n\t\t) );\n\n\t\t// bail if not areas to customize\n\t\tif( !isset( $theme_color_locations['sections'] ) || empty( $theme_color_locations['sections'] ) ){\n\t\t\treturn;\n\t\t}\n\n\t\tif( isset( $theme_color_locations['palettes'] ) && !empty( $theme_color_locations['palettes'] ) ){\n\n\t\t\t$section_label = 'Color Palettes';\n\t\t\t$section_slug = sanitize_title( $section_label );\n\n\t\t\t// add theme color palettes section to customizer\n\t\t\t$wp_customize->add_section(\n\t\t\t\t'theme_colors_' . $section_slug,\n\t\t\t\tarray(\n\t\t\t\t\t'title' => $section_label,\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'priority' => 10,\n\t\t\t\t\t'panel' => 'theme_colors',\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$wp_customize->add_setting(\n\t\t\t\t$section_slug . '_Picker',\n\t\t\t\tarray(\n\t\t\t\t\t'default' => 'default',\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$wp_customize->add_control(\n\t\t\t\tnew Color_Palette_Picker_Customize_Control(\n\t\t\t\t\t$wp_customize,\n\t\t\t\t\t$section_slug . '_Picker',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => 'Color Palette',\n\t\t\t\t\t\t'section' => 'theme_colors_' . $section_slug,\n\t\t\t\t\t\t// 'settings' => ''\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\tforeach( $theme_color_locations['sections'] as $section_label => $theme_color_section_locations ){\n\n\t\t\t$section_slug = sanitize_title( $section_label );\n\n\t\t\t// add theme colors section to customizer\n\t\t\t$wp_customize->add_section(\n\t\t\t\t'theme_colors_' . $section_slug,\n\t\t\t\tarray(\n\t\t\t\t\t'title' => $section_label,\n\t\t\t\t\t'description' => '',\n\t\t\t\t\t'priority' => 10,\n\t\t\t\t\t'panel' => 'theme_colors',\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tforeach( $theme_color_section_locations as $color_location_label => $color_location ){\n\n\t\t\t\t$slug = sanitize_title( $section_label . '_' . $color_location_label );\n\n\t\t\t\t$wp_customize->add_setting(\n\t\t\t\t\t$slug,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'default' => $color_location['default'],\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_hex_color',\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\tif( isset( $color_location['description'] ) ){\n\t\t\t\t\t$color_location_label .= '

    ' . $color_location['description'] . '

    ';\n\t\t\t\t}\n\n\t\t\t\t$wp_customize->add_control(\n\t\t\t\t\tnew WP_Customize_Color_Control(\n\t\t\t\t\t\t$wp_customize,\n\t\t\t\t\t\t$slug,\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'label' => $color_location_label,\n\t\t\t\t\t\t\t'section' => 'theme_colors_' . $section_slug,\n\t\t\t\t\t\t\t'settings' => $slug,\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t}\n\n\t\t}\n\n\t}","function scbirs_add_theme_meta() {\r\n?>\r\n\t\r\nlp_id, static::LP_PALETTES_CONFIG, $palettes_config_v2 );\n\n\t\t$this->skin_palettes_config = $palettes_config_v2;\n\t}","private function start_color_schemes() {\r\n\t\t$handler = 'unapp-style-overrides';\r\n\r\n\t\t$args = array(\r\n\t\t\t'fields' => $this->get_color_scheme(),\r\n\t\t\t'css' => Epsilon_Color_Scheme::load_css_overrides( get_template_directory() . '/assets/css/style-overrides.css' ),\r\n\t\t);\r\n\r\n\t\tEpsilon_Color_Scheme::get_instance( $handler, $args );\r\n\t}","function callback_color($args)\n {\n }","public function __construct() {\n $this->foreground_colors['black'] = '0;30';\n $this->foreground_colors['dark_gray'] = '1;30';\n $this->foreground_colors['blue'] = '0;34';\n $this->foreground_colors['light_blue'] = '1;34';\n $this->foreground_colors['green'] = '0;32';\n $this->foreground_colors['light_green'] = '1;32';\n $this->foreground_colors['cyan'] = '0;36';\n $this->foreground_colors['light_cyan'] = '1;36';\n $this->foreground_colors['red'] = '0;31';\n $this->foreground_colors['light_red'] = '1;31';\n $this->foreground_colors['purple'] = '0;35';\n $this->foreground_colors['light_purple'] = '1;35';\n $this->foreground_colors['brown'] = '0;33';\n $this->foreground_colors['yellow'] = '1;33';\n $this->foreground_colors['light_gray'] = '0;37';\n $this->foreground_colors['white'] = '1;37';\n\n $this->background_colors['black'] = '40';\n $this->background_colors['red'] = '41';\n $this->background_colors['green'] = '42';\n $this->background_colors['yellow'] = '43';\n $this->background_colors['blue'] = '44';\n $this->background_colors['magenta'] = '45';\n $this->background_colors['cyan'] = '46';\n $this->background_colors['light_gray'] = '47';\n }","function client_portal_get_theme_colors_gutenberg() {\n\n\t// Grab our ACF theme colors.\n\t$colors = client_portal_get_theme_colors();\n\n\tif ( ! $colors ) {\n\t\treturn array();\n\t}\n\n\tforeach ( $colors as $key => $color ) {\n\t\t$gutenberg_colors[] = array(\n\t\t\t'name' => esc_html( $key ),\n\t\t\t'slug' => sanitize_title( $key ),\n\t\t\t'color' => esc_attr( $color ),\n\t\t);\n\t}\n\n\treturn $gutenberg_colors;\n}","function writr_add_wpcom_support() {\n\tglobal $themecolors;\n\n\tif ( ! isset( $themecolors ) ) {\n\n\t\t// Set a default theme color array.\n\t\t$themecolors = array(\n\t\t\t'bg' => 'ffffff',\n\t\t\t'border' => 'ffffff',\n\t\t\t'text' => '656565',\n\t\t\t'link' => '1abc9c',\n\t\t\t'url' => '1abc9c',\n\t\t);\n\n\t}\n\n\t// Add print stylesheet.\n\tadd_theme_support( 'print-style' );\n\n}","function theme_custamize_add_color_control($name, $id, $section, $default, $wp_customize) {\n $wp_customize->add_setting( $id, array( 'default' => $default, ) );\n $wp_customize->add_control(\n new WP_Customize_Color_Control(\n $wp_customize,\n $id,\n array(\n 'label' => __( $name, $id ),\n 'section' => $section,\n 'settings' => $id,\n )\n )\n );\n}","function htmlconvertwordpresstheme($wp_customize){\n $wp_customize->add_panel('htmlconvertwordpresstheme_settings', array(\n\n 'title'=>__('htmlconvertwordpresstheme_settings'),\n 'description' =>'',\n 'priority'=>10,\n\n\n ));\n\n\n $wp_customize->add_section('htmlconvertwordpresstheme_colors', array(\n 'title'=>'color',\n 'panel'=> 'htmlconvertwordpresstheme_settings',\n\n\n ));\n\n\n $wp_customize->add_setting('htmlconvertwordpresstheme_nav_bg_color', array(\n\n 'type'=>'theme_mod',\n 'capability'=> 'edit_theme_options',\n 'default'=>'',\n 'transport'=>'refresh',\n 'sanitize_callback'=>'sanitize_hex_color',\n ));\n\n\n $wp_customize->add_control('htmlconvertwordpresstheme_nav_bg_color', array(\n \n 'label'=>__('Menu Background'),\n 'type'=>'color',\n 'section'=>'htmlconvertwordpresstheme_colors',\n ));\n\n/* customize setting body background color*/\n$wp_customize->add_setting('htmlconvertwordpresstheme_body_background_color', array(\n\n 'type'=>'theme_mod',\n 'capability'=> 'edit_theme_options',\n 'default'=>'#fff',\n 'transport'=>'refresh',\n 'sanitize_callback'=>'sanitize_hex_color',\n));\n\n\n$wp_customize->add_control('htmlconvertwordpresstheme_body_background_color', array(\n\n 'label'=>__('Body Background color'),\n 'type'=>'color',\n 'section'=>'htmlconvertwordpresstheme_colors',\n));\n\n\n}","public function __construct() {\n\t\t$this->foreground_colors['black'] = '0;30';\n\t\t$this->foreground_colors['dark_gray'] = '1;30';\n\t\t$this->foreground_colors['blue'] = '0;34';\n\t\t$this->foreground_colors['light_blue'] = '1;34';\n\t\t$this->foreground_colors['green'] = '0;32';\n\t\t$this->foreground_colors['light_green'] = '1;32';\n\t\t$this->foreground_colors['cyan'] = '0;36';\n\t\t$this->foreground_colors['light_cyan'] = '1;36';\n\t\t$this->foreground_colors['red'] = '0;31';\n\t\t$this->foreground_colors['light_red'] = '1;31';\n\t\t$this->foreground_colors['purple'] = '0;35';\n\t\t$this->foreground_colors['light_purple'] = '1;35';\n\t\t$this->foreground_colors['brown'] = '0;33';\n\t\t$this->foreground_colors['yellow'] = '1;33';\n\t\t$this->foreground_colors['light_gray'] = '0;37';\n\t\t$this->foreground_colors['white'] = '1;37';\n\n\t\t$this->background_colors['black'] = '40';\n\t\t$this->background_colors['red'] = '41';\n\t\t$this->background_colors['green'] = '42';\n\t\t$this->background_colors['yellow'] = '43';\n\t\t$this->background_colors['blue'] = '44';\n\t\t$this->background_colors['magenta'] = '45';\n\t\t$this->background_colors['cyan'] = '46';\n\t\t$this->background_colors['light_gray'] = '47';\n\t}","function _ga_typography_color( $option ) {\n\n\tif ( ! ( $_color = genesis_get_option( $option, GA_CHILDTHEME_FIELD ) ) )\n\t\treturn false;\n\n\t return 'color: ' . $_color . ';';\n\n}","function pl_link_color(){\n\t\n\t$color = ( pl_check_color_hash( ploption( 'linkcolor' ) ) ) ? pl_hash_strip( ploption( 'linkcolor' ) ) : '225E9B';\n\t\n\treturn $color;\t\n}","function pt_text_color_render()\n\t\t{ \n\t\t\t$options = get_option( 'pt_settings' );\n\t\t\t?>\n\t\t\t'> (Hex color code, ex white: \"#ffffff\")\n\t\t\tadd_setting( 'color_scheme', array(\n\t\t 'default' => 'default',\n\t\t //'transport' => 'postMessage',\n\t\t) );\n\t\t\n\t\n $entrepreneur_color_scheme = new entrepreneur_color_scheme();\n $color_schemes = $entrepreneur_color_scheme->get_color_schemes();\n $choices = array();\n foreach ($color_schemes as $color_scheme => $value) {\n $choices[$color_scheme] = $value['label'];\n }\n\n\t\t$wp_customize->add_control( 'color_scheme', array(\n\t\t 'label' => __( 'Color scheme', 'entrepreneur' ),\n\t\t 'section' => 'theme_common_color_section',\n\t\t 'type' => 'select',\n\t\t 'choices' => $choices,\n\t\t) );\n\n\n/*\n\t\t$options = array(\n\t\t 'primary_color' => __( 'Primary color', 'entrepreneur' ),\n\t\t 'primary_hover_color' => __( 'Primary hover color', 'entrepreneur' ),\n\t\t 'secondary_color' => __( 'Secondary color', 'entrepreneur' ),\n\t\t 'secondary_hover_color' => __( 'Secondary hover color', 'entrepreneur' ),\n\t\t);\n\t\tforeach ( $options as $key => $label ) {\n\t\t $wp_customize->add_setting( $key, array(\n\t\t 'sanitize_callback' => 'sanitize_hex_color',\n\t\t 'transport' => 'postMessage',\n\t\t ) );\n\t\t $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $key, array(\n\t\t 'label' => $label,\n\t\t 'section' => 'colors',\n\t\t ) ) );\n\t\t}\n\t\t*/\n\t}","public function __construct() {\n\t\t\t$this->foreground_colors['black'] = '0;30';\n\t\t\t$this->foreground_colors['dark_gray'] = '1;30';\n\t\t\t$this->foreground_colors['blue'] = '0;34';\n\t\t\t$this->foreground_colors['light_blue'] = '1;34';\n\t\t\t$this->foreground_colors['green'] = '0;32';\n\t\t\t$this->foreground_colors['light_green'] = '1;32';\n\t\t\t$this->foreground_colors['cyan'] = '0;36';\n\t\t\t$this->foreground_colors['light_cyan'] = '1;36';\n\t\t\t$this->foreground_colors['red'] = '0;31';\n\t\t\t$this->foreground_colors['light_red'] = '1;31';\n\t\t\t$this->foreground_colors['purple'] = '0;35';\n\t\t\t$this->foreground_colors['light_purple'] = '1;35';\n\t\t\t$this->foreground_colors['brown'] = '0;33';\n\t\t\t$this->foreground_colors['yellow'] = '1;33';\n\t\t\t$this->foreground_colors['light_gray'] = '0;37';\n\t\t\t$this->foreground_colors['white'] = '1;37';\n \n\t\t\t$this->background_colors['black'] = '40';\n\t\t\t$this->background_colors['red'] = '41';\n\t\t\t$this->background_colors['green'] = '42';\n\t\t\t$this->background_colors['yellow'] = '43';\n\t\t\t$this->background_colors['blue'] = '44';\n\t\t\t$this->background_colors['magenta'] = '45';\n\t\t\t$this->background_colors['cyan'] = '46';\n\t\t\t$this->background_colors['light_gray'] = '47';\n\t\t}","public function extendPalettes($strName)\n\t{\n\t\tif ($strName != 'tl_module')\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t$GLOBALS['TL_DCA']['tl_module']['subpalettes']['reg_activate'] = str_replace('reg_jumpTo,reg_text', 'reg_jumpTo,reg_text,nc_registration_notify_admin,nc_registration_notify_admin_activate', $GLOBALS['TL_DCA']['tl_module']['subpalettes']['reg_activate']);\n\t}","public function generate_custom_color_variables( $context = null ) {\n\n\t\t$theme_css = 'editor' === $context ? ':root .editor-styles-wrapper{' : ':root{';\n\t\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\n\n\t\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\n\t\t\t$theme_css .= '--global--color-background: #' . $background_color . ';';\n\t\t\t$theme_css .= '--global--color-primary: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--global--color-secondary: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--button--color-background: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--button--color-text-hover: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\n\t\t\tif ( '#fff' === $this->custom_get_readable_color( $background_color ) ) {\n\t\t\t\t$theme_css .= '--table--stripes-border-color: rgba(240, 240, 240, 0.15);';\n\t\t\t\t$theme_css .= '--table--stripes-background-color: rgba(240, 240, 240, 0.15);';\n\t\t\t}\n\t\t}\n\n\t\t$theme_css .= '}';\n\n\t\treturn $theme_css;\n\t}","public function colorList() {}","public function __construct() {\n\t\t$this->foreground_colors['black'] = '0;30';\n\t\t$this->foreground_colors['dark_gray'] = '1;30';\n\t\t$this->foreground_colors['blue'] = '0;34';\n\t\t$this->foreground_colors['light_blue'] = '1;34';\n\t\t$this->foreground_colors['green'] = '0;32';\n\t\t$this->foreground_colors['light_green'] = '1;32';\n\t\t$this->foreground_colors['cyan'] = '0;36';\n\t\t$this->foreground_colors['light_cyan'] = '1;36';\n\t\t$this->foreground_colors['red'] = '0;31';\n\t\t$this->foreground_colors['light_red'] = '1;31';\n\t\t$this->foreground_colors['purple'] = '0;35';\n\t\t$this->foreground_colors['light_purple'] = '1;35';\n\t\t$this->foreground_colors['brown'] = '0;33';\n\t\t$this->foreground_colors['yellow'] = '1;33';\n\t\t$this->foreground_colors['light_gray'] = '0;37';\n\t\t$this->foreground_colors['white'] = '1;37';\n \n\t\t$this->background_colors['black'] = '40';\n\t\t$this->background_colors['red'] = '41';\n\t\t$this->background_colors['green'] = '42';\n\t\t$this->background_colors['yellow'] = '43';\n\t\t$this->background_colors['blue'] = '44';\n\t\t$this->background_colors['magenta'] = '45';\n\t\t$this->background_colors['cyan'] = '46';\n\t\t$this->background_colors['light_gray'] = '47';\n\t\t}","function header_footer_color_customizer($wp_customize) {\n\t$default_theme_bgcolor1 = \"#000000\";\n $defaule_header_bgcolor = \"#b3daff\";\n\t$default_theme_hovercolor = \"#ffffff\";\n\t$default_widget_bgcolor = \"#b3daff\";\n\t$default_mainpost_bgcolor = \"#f0f0f0\";\n\t$default_popularpost_bgcolor =\"#c3c3c3\";\n\t$default_a_bgcolor = \"#9e0c78\";\n\t$default_readmore_bgcolor = \"#ff3a3a\";\n\t$default_text_color = \"#000000\";\n\n\t$wp_customize->add_setting('themename_theme_bgcolor1', array(\n\t\t'default' => $default_theme_bgcolor1,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_theme_bgcolor1', array(\n\t\t'label' => 'Theme color1',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_theme_bgcolor1',\n\t)));\n\t$wp_customize->add_setting('themename_header_bgcolor', array(\n\t\t'default' => $defaule_header_bgcolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_header_bgcolor', array(\n\t\t'label' => 'Header bgcolor',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_header_bgcolor',\n\t)));\n\t$wp_customize->add_setting('themename_theme_hovercolor', array(\n\t\t'default' => $default_theme_hovercolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_theme_hovercolor', array(\n\t\t'label' => 'Theme hovercolor',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_theme_hovercolor',\n\t)));\n\t$wp_customize->add_setting('themename_widget_bgcolor', array(\n\t\t'default' => $default_widget_bgcolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_widget_bgcolor', array(\n\t\t'label' => 'Widget bgcolor',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_widget_bgcolor',\n\t)));\n\t$wp_customize->add_setting('themename_mainpost_bgcolor', array(\n\t\t'default' => $default_mainpost_bgcolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_mainpost_bgcolor', array(\n\t\t'label' => 'Main Post bgcolor',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_mainpost_bgcolor',\n\t)));\n\t$wp_customize->add_setting('themename_popularpost_bgcolor', array(\n\t\t'default' => $default_popularpost_bgcolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_popularpost_bgcolor', array(\n\t\t'label' => 'Popular bgcolor',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_popularpost_bgcolor',\n\t)));\n\t$wp_customize->add_setting('themename_a_bgcolor', array(\n\t\t'default' => $default_a_bgcolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_a_bgcolor', array(\n\t\t'label' => 'Text Link color',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_a_bgcolor',\n\t)));\n\t$wp_customize->add_setting('themename_readmore_bgcolor', array(\n\t\t'default' => $default_readmore_bgcolor,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_readmore_bgcolor', array(\n\t\t'label' => 'ReadMore bgcolor',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_readmore_bgcolor',\n\t)));\n\t$wp_customize->add_setting('themename_text_color', array(\n\t\t'default' => $default_text_color,\n\t\t'wp-head-callback' => 'scm_test_style',\n\t\t'transport' => 'postMessage'\n\t));\n\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_text_color', array(\n\t\t'label' => 'Text color',\n\t\t'section' => 'colors',\n\t\t'settings' => 'themename_text_color',\n\t)));\n}","function pewc_enqueue_color_picker( $hook_suffix ) {\n wp_enqueue_style( 'wp-color-picker' );\n wp_enqueue_script( 'wp-color-picker');\n}","function enlight_render_visual_preferences_meta_box($post)\n{\n $highlightColor = get_post_meta($post->ID, 'enlight_highlight_color', true);\n?>\n

    \n \n

    \n

    \n \n

    \n\n\n\t
    \n\t\t\" class=\"input-color\" type=\"color\">\n\t
    \n\n\t\n\n\t
    \n\t\t\" class=\"input-color\" type=\"color\">\n\t
    \n\n\t &$GLOBALS['TL_LANG']['tl_content']['size'],\n\t\t\t\t\t'exclude' => false,\n\t\t\t\t\t'inputType' => 'imageSize',\n\t\t\t\t\t'options' => array('crop', 'proportional', 'box'),\n\t\t\t\t\t'reference' => &$GLOBALS['TL_LANG']['MSC'],\n\t\t\t\t\t'eval' => array('rgxp'=>'digit', 'nospace'=>true, 'tl_class'=>'w50')\n\t\t\t\t);\n\t\t}\n\t}","public function update_lp_palettes_v2( $palettes_v2 ) {\n\t\tupdate_post_meta( $this->lp_id, static::LP_PALETTES, $palettes_v2 );\n\n\t\t$this->skin_palettes = $palettes_v2;\n\t}","public function get_variables_for_css() {\n\t\t$data = '';\n\n\t\tif ( ! empty( $this->skin_palettes_config ) && is_array( $this->skin_palettes_config ) ) {\n\t\t\t$palette = $this->skin_palettes_config ['palette'];\n\n\t\t\tforeach ( $palette as $variable ) {\n\n\t\t\t\t$color_name = static::SKIN_COLOR_VARIABLE_PREFIX . $variable['id'];\n\n\t\t\t\tif ( ! empty( $variable['hsla_code'] ) && ! empty( $variable['hsla_vars'] ) && is_array( $variable['hsla_vars'] ) ) {\n\t\t\t\t\t$data .= $color_name . ':' . $variable['hsla_code'] . ';';\n\n\t\t\t\t\tforeach ( $variable['hsla_vars'] as $var => $css_variable ) {\n\t\t\t\t\t\t$data .= $color_name . '-' . $var . ':' . $css_variable . ';';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$data .= $color_name . ':' . $variable['color'] . ';';\n\n\t\t\t\t\tif ( function_exists( 'tve_rgb2hsl' ) && function_exists( 'tve_print_color_hsl' ) ) {\n\t\t\t\t\t\t$data .= tve_print_color_hsl( $color_name, tve_rgb2hsl( $variable['color'] ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ( function_exists( 'tve_prepare_master_variable' ) ) {\n\t\t\t$palettes = $this->get_smart_lp_palettes_v2();\n\t\t\t$active_id = (int) $palettes['active_id'];\n\t\t\t$master_variable = $palettes['palettes'][ $active_id ]['modified_hsl'];\n\t\t\t$general_master_variable = tve_prepare_master_variable( array( 'hsl' => $master_variable ) );\n\t\t\t$theme_master_variable = str_replace( '--tcb-main-master', '--tcb-theme-main-master', $general_master_variable );\n\n\t\t\t$data .= $general_master_variable;\n\t\t\t$data .= $theme_master_variable;\n\t\t}\n\n\t\treturn $data;\n\t}","public static function register($wp_customize)\n {\n require_once(get_template_directory().\"/customizer/alpha-color-picker-customizer.php\");\n\n if (!isset($lc_customize['menu_mobile_bg_color'])) {\n $lc_customize['menu_mobile_bg_color'] = 'rgba(35, 35, 35, 1)';\n }\n if (!isset($lc_customize['mobile_border_bottom_color'])) {\n $lc_customize['mobile_border_bottom_color'] = '#333333';\n }\n\n\n //Define a new section (if desired) to the Theme Customizer\n $wp_customize->add_section( 'lc_second_color',\n array(\n 'title' => esc_html__('Vibrant Color', 'heritage'), \t\t\t\t//Visible title of section\n 'priority' => 1, \t\t\t\t\t\t\t\t\t\t\t//Determines what order this appears in\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t//Capability needed to tweak\n 'description' => esc_html__('Choose the link color', 'heritage'), //Descriptive tooltip\n )\n );\n\n //Register new settings to the WP database...\n $wp_customize->add_setting( 'lc_customize[lc_second_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#18aebf', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n //Finally, we define the control itself (which links a setting to a section and renders the HTML controls)...\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_second_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Secondary Color', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_second_color', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_second_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 1, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*\n MENU OPTIONS\n */\n $wp_customize->add_section('lc_menu_options',\n array(\n 'title' => esc_html__('Menu Colors', 'heritage'), \t\t\t\t//Visible title of section\n 'priority' => 2, \t\t\t\t\t\t\t\t\t\t\t//Determines what order this appears in\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t//Capability needed to tweak\n 'description' => esc_html__('Choose menu colors', 'heritage'), //Descriptive tooltip\n )\n );\n\n /*menu bar color*/\n $wp_customize->add_setting('lc_customize[menu_bar_bg_color]',\n array(\n 'default' => 'rgba(255, 255, 255, 0)', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'menu_bar_bg_color', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Menu Bar Background Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[menu_bar_bg_color]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*sticky menu bar color*/\n $wp_customize->add_setting('lc_customize[menu_sticky_bar_bg_color]',\n array(\n 'default' => 'rgba(255, 255, 255, 1)', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'menu_sticky_bar_bg_color', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Sticky Menu Bar Background Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[menu_sticky_bar_bg_color]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*mobile menu bar color*/\n $wp_customize->add_setting('lc_customize[menu_mobile_bg_color]',\n array(\n 'default' => 'rgba(255, 255, 255, 1)', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'menu_mobile_bg_color', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Mobile Menu Background Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[menu_mobile_bg_color]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*mobile menu border bottom color*/\n $wp_customize->add_setting('lc_customize[mobile_border_bottom_color]',\n array(\n 'default' => '#e1e1e1', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'mobile_border_bottom_color', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Mobile Menu Border Bottom Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[mobile_border_bottom_color]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*above the menu bar*/\n $wp_customize->add_setting('lc_customize[above_the_menu_bar]',\n array(\n 'default' => 'rgba(241, 246, 247, 0.9)', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'above_the_menu_bar', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Above The Menu Bar Background Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[above_the_menu_bar]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*menu text color*/\n $wp_customize->add_setting('lc_customize[menu_text_color]',\n array(\n 'default' => '#000000', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new WP_Customize_Color_Control(\n $wp_customize,\n 'lc_menu_text_color',\t \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Menu Text Color', 'heritage'),\n 'section' => 'lc_menu_options',\t//ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[menu_text_color]',\n 'priority' => 2,\n )\n ));\n\n /*menu text hover color*/\n $wp_customize->add_setting('lc_customize[menu_text_hover_color]',\n array(\n 'default' => '#ffffff', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new WP_Customize_Color_Control(\n $wp_customize,\n 'lc_menu_text_hover_color',\t \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Menu Text Color on Hover', 'heritage'),\n 'section' => 'lc_menu_options',\t//ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[menu_text_hover_color]',\n 'priority' => 3,\n )\n ));\n\n /*current menu item text color*/\n $wp_customize->add_setting('lc_customize[current_menu_item_text_color]',\n array(\n 'default' => '#18aebf',\t\t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new WP_Customize_Color_Control(\n $wp_customize,\n 'lc_current_menu_item_text_color',\t \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Current Menu Item Text Color', 'heritage'),\n 'section' => 'lc_menu_options',\t//ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[current_menu_item_text_color]',\n 'priority' => 5,\n )\n ));\n\n /*sub menu bg color*/\n $wp_customize->add_setting('lc_customize[submenu_bg_color]',\n array(\n 'default' => 'rgba(255, 255, 255, 0)', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'submenu_bg_color', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Sub Menu Background Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[submenu_bg_color]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 6\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*menu bar color*/\n $wp_customize->add_setting('lc_customize[creative_menu_overlay_bg]',\n array(\n 'default' => 'rgba(255, 255, 255, 0.9)', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control(\n new Customize_Alpha_Color_Control( \t\t\t\t\t\t\t\t\t\t\t\t//Instantiate the color control class\n $wp_customize, \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Pass the $wp_customize object (required)\n 'creative_menu_overlay_bg', \t\t\t\t\t\t\t\t\t\t\t\t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Creative Menu Overlay Color', 'heritage'), \t\t\t\t\t\t\t//Admin-visible name of the control\n 'section' => 'lc_menu_options', \t\t\t\t\t\t\t\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[creative_menu_overlay_bg]', \t\t\t\t\t\t//Which setting to load and manipulate (serialized is okay)\n 'priority' => 7\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Determines the order this control appears in for the specified section\n )\n ));\n\n /*top icons on creative menu*/\n $wp_customize->add_setting('lc_customize[creative_icons_color]',\n array(\n 'default' => '#000000', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new WP_Customize_Color_Control(\n $wp_customize,\n 'lc_creative_icons_color',\t \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Top Icons Color For Creative Menu. Also, the color for mobile menu icons, menu icon and search icon.', 'heritage'),\n 'section' => 'lc_menu_options',\t//ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[creative_icons_color]',\n 'priority' => 8\n )\n ));\n\n /*login signup wish list color*/\n $wp_customize->add_setting('lc_customize[login_wishlist_color]',\n array(\n 'default' => '#959595', \t\t\t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage' \t\t\t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control(\n new WP_Customize_Color_Control(\n $wp_customize,\n 'at_login_wishlist_color',\t \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Text color for login, sign-up and wish list links on the menu bar.', 'heritage'),\n 'section' => 'lc_menu_options',\t//ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[login_wishlist_color]',\n 'priority' => 8\n )\n ));\n\n /*buttons*/\n $wp_customize->add_section( 'lc_button_colors',\n array(\n 'title' => esc_html__('Button Colors', 'heritage'), \t\t\t\t//Visible title of section\n 'priority' => 3, \t\t\t\t\t\t\t\t\t\t\t//Determines what order this appears in\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t//Capability needed to tweak\n 'description' => esc_html__('Set button colors.', 'heritage'), //Descriptive tooltip\n )\n );\n\n $wp_customize->add_setting( 'lc_customize[lc_use_custom_btn_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => 'use_defaults', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback'\t=> 'HERITAGE_sanitize_buttons_custom',\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control('lc_use_custom_btn_color_control' ,\n array(\n 'label' \t=> esc_html__('Buttons Colors', 'heritage'),\n 'section' \t=> 'lc_button_colors',\n 'settings' \t=> 'lc_customize[lc_use_custom_btn_color]',\n 'priority' \t=> 1,\n 'type'\t\t=> 'select',\n 'choices' => array(\n 'use_defaults' \t\t=> esc_html__('Use Theme Defaults', 'heritage'),\n 'custom_btn_colors' => esc_html__('Use Custom Colors', 'heritage' ),\n ),\n )\n );\n\n /*btn bg color*/\n $wp_customize->add_setting( 'lc_customize[lc_btn_bg_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#000000', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_btn_bg_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Button Background Color', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_btn_bg_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 2, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*btn text color*/\n $wp_customize->add_setting( 'lc_customize[lc_btn_txt_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#ffffff', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_btn_txt_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Button Text Color', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_btn_txt_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 3, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*btn border color*/\n $wp_customize->add_setting( 'lc_customize[lc_btn_border_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#000000', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_btn_border_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Button Border Color', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_btn_border_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 3, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*btn bg color on hover*/\n $wp_customize->add_setting( 'lc_customize[lc_btn_bg_color_hover]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#555555', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_btn_bg_color_hover', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Button Background Color On Hover', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_btn_bg_color_hover]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 2, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*btn text color on hover*/\n $wp_customize->add_setting( 'lc_customize[lc_btn_txt_color_hover]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#ffffff', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_btn_txt_color_hover', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Button Text Color On Hover', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_btn_txt_color_hover]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 3, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*btn border color on hover*/\n $wp_customize->add_setting( 'lc_customize[lc_btn_border_color_hover]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#555555', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_btn_border_color_hover', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Button Border Color On Hover', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_btn_border_color_hover]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 3, //Determines the order this control appears in for the specified section\n )\n ));\n\n\n /*Various*/\n $wp_customize->add_section( 'lc_various_colors',\n array(\n 'title' => esc_html__('Various Colors', 'heritage'), \t\t\t\t//Visible title of section\n 'priority' => 3, \t\t\t\t\t\t\t\t\t\t\t//Determines what order this appears in\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t//Capability needed to tweak\n 'description' => esc_html__('Set general colors.', 'heritage'), //Descriptive tooltip\n )\n );\n\n /*bg color for single post with no featured img in blog template*/\n $wp_customize->add_setting( 'lc_customize[lc_blog_brick_bg_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#1d1d1d', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_blog_brick_bg_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Background Color For Blog Items With No Featured Image', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_various_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_blog_brick_bg_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 1, //Determines the order this control appears in for the specified section\n )\n ));\n\n /*bg color for minicart and wishlist popups*/\n $wp_customize->add_setting( 'lc_customize[lc_minicart_wishlist_popup_bg_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => '#ffffff', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'sanitize_hex_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n //define the control\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_minicart_wishlist_popup_bg_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Background Color For Minciart And Wishlist Popups', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_various_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_minicart_wishlist_popup_bg_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 2, //Determines the order this control appears in for the specified section\n )\n ));\n\n\n /*bg color for overlay on shop page*/\n $wp_customize->add_setting( 'lc_customize[lc_shop_overlay_bg_color]', \t//Give it a SERIALIZED name (so all theme settings can live under one db record)\n array(\n 'default' => 'rgba(255,255,255, 0.7)', \t\t\t\t\t\t\t\t\t\t//Default setting/value to save\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\t\t\t\t\t//Sanitizer\n 'type' => 'option', \t\t\t\t\t\t\t\t\t\t\t//Is this an 'option' or a 'theme_mod'?\n 'capability' => 'edit_theme_options', \t\t\t\t\t\t\t//Optional. Special permissions for accessing this setting.\n 'transport' => 'postMessage', \t\t\t\t\t\t\t\t\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\n )\n );\n\n //define the control\n $wp_customize->add_control( new Customize_Alpha_Color_Control( //Instantiate the color control class\n $wp_customize, \t\t\t\t//Pass the $wp_customize object (required)\n 'lc_shop_overlay_bg_color', \t\t\t//Set a unique ID for the control\n array(\n 'label' => esc_html__('Background Color Product Actions Overlay On Shop Page', 'heritage'), //Admin-visible name of the control\n 'section' => 'lc_various_colors', //ID of the section (can be one of yours, or a WordPress default section)\n 'settings' => 'lc_customize[lc_shop_overlay_bg_color]', //Which setting to load and manipulate (serialized is okay)\n 'priority' => 4, //Determines the order this control appears in for the specified section\n )\n ));\n\n }","public function textColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }","public function textColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }","public static function plantuml_colour_scheme(): array\n\t{\n\t\treturn [\n\t\t\t'background' => 'FireBrick',\n\t\t\t'border' => 'DarkRed',\n\t\t\t'text' => 'White',\n\t\t];\n\t}","function gopathemes_save_custom_css(){\n \n if (!function_exists('ot_get_option')) {\n return;\n }\n \n /* CUSTOM COLOR STYLING */\n if (ot_get_option('haira_custom_styling', 'off') == 'on') {\n\n $primary_color = ot_get_option('haira_primary_color','#FFBA00');\n $secondary_color = ot_get_option( 'haira_secondary_color', '#333333' );\n $body_bg = ot_get_option( 'haira_body_background', '#f6f6f6' );\n \n $body_font = ot_get_option('haira_body_font', \n array(\n 'font-family' => \"source-sans-pro, sans-serif\", \n 'font-color' => '#8a8a8a', \n 'font-size' => '14px',\n 'line-height' => '24px',\n 'font-weight' => '400'\n ));\n \n $heading_font = ot_get_option('haira_heading_font', \n array(\n 'font-family' => \"source-sans-pro, sans-serif\", \n 'font-color' => '#333333', \n 'font-weight' => '700'\n ));\n \n $menu_typo = ot_get_option( 'haira_menu_typography',\n array(\n 'font-color' => '#FFFFFF', \n 'font-size' => '13px', \n 'font-weight' => '400', \n 'letter-spacing' => '0.03em', \n 'text-transform' => 'none'\n ));\n \n $submenu_typo = ot_get_option( 'haira_submenu_typography',\n array(\n 'font-color' => '#FFFFFF', \n 'font-size' => '12px', \n 'font-weight' => '400', \n 'line-height' => '45px', \n 'letter-spacing' => '0.03em', \n 'text-transform' => 'none'\n ));\n\n $variables = array(\n 'primary-color' => $primary_color,\n 'second-color' => $secondary_color,\n 'bg-color' => $body_bg,\n \n 'header-bg' => ot_get_option( 'haira_header_bg' ),\n 'header-height' => ot_get_option( 'haira_header_height' ),\n \n 'menu-fs' => $menu_typo['font-size'],\n 'menu-link-color' => $menu_typo['font-color'],\n 'menu-link-color-hover' => ot_get_option( 'haira_menu_link_color_hover' ),\n 'menu-link-bg-hover' => ot_get_option( 'haira_menu_link_bg_hover' ),\n 'menu-link-ls' => $menu_typo['letter-spacing'],\n 'menu-font-weight' => $menu_typo['font-weight'],\n 'menu-text-transform' => $menu_typo['text-transform'],\n \n 'submenu-bg' => ot_get_option( 'haira_submenu_bg' ),\n 'submenu-fs' => $submenu_typo['font-size'],\n 'submenu-link-color' => $submenu_typo['font-color'],\n 'submenu-link-color-hover' => ot_get_option( 'haira_submenu_link_color_on_hover' ),\n 'submenu-link-bg-hover' => ot_get_option( 'haira_submenu_link_bg_on_hover' ),\n 'submenu-link-ls' => $submenu_typo['letter-spacing'],\n 'submenu-font-weight' => $submenu_typo['font-weight'],\n 'submenu-text-transform' => $submenu_typo['text-transform'],\n 'submenu-lh' => $submenu_typo['line-height'],\n \n 'heading-color' => $heading_font['font-color'],\n 'heading-font' => $heading_font['font-family'],\n 'hweight' => $heading_font['font-weight'],\n \n 'text-color' => $body_font['font-color'],\n 'body-font' => $body_font['font-family'],\n 'fsize' => $body_font['font-size'],\n 'lheight' => $body_font['line-height'],\n 'bweight' => $body_font['font-weight']\n );\n\n\n $default_vars = file( get_template_directory().'/scss/_vars.scss' );\n \n gopathemes_compile_css( haira_setup_scss_vars($default_vars, $variables) );\n }\n \n}","function xanthia_admin_updateColors($args)\n{\n\textract($args);\n\t// check the session auth key\n\tif (!pnSecConfirmAuthKey())\t{\n\t\tpnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_BADAUTHKEY));\n\t\tpnRedirect(pnModURL('Xanthia', 'admin', 'main'));\n\t\treturn true;\n\t}\n\n\t// grab our parameters in a secure manner\n\tlist($skin, $paletteid) = pnVarCleanFromInput('skin','paletteid');\n\tlist($palname,\n\t\t $bgcolor,\n\t\t $color1,\n\t\t $color2,\n\t\t $color3,\n\t\t $color4,\n\t\t $color5,\n\t\t $color6,\n\t\t $color7,\n\t\t $color8,\n\t\t $sepcolor,\n\t\t $text1,\n\t\t $text2,\n\t\t $link,\n\t\t $vlink,\n\t\t $hover) = pnVarCleanFromInput('palname',\n\t\t\t\t\t\t\t\t\t 'bgcolor',\n\t\t\t\t\t\t\t\t\t 'color1',\n\t\t\t\t\t\t\t\t\t 'color2',\n\t\t\t\t\t\t\t\t\t 'color3',\n\t\t\t\t\t\t\t\t\t 'color4',\n\t\t\t\t\t\t\t\t\t 'color5',\n\t\t\t\t\t\t\t\t\t 'color6',\n\t\t\t\t\t\t\t\t\t 'color7',\n\t\t\t\t\t\t\t\t\t 'color8',\n\t\t\t\t\t\t\t\t\t 'sepcolor',\n\t\t\t\t\t\t\t\t\t 'text1',\n\t\t\t\t\t\t\t\t\t 'text2',\n\t\t\t\t\t\t\t\t\t 'link',\n\t\t\t\t\t\t\t\t\t 'vlink',\n\t\t\t\t\t\t\t\t\t 'hover');\n\n\t// check for our parameters\n\tif (empty($palname)) {\n\t\tpnSessionSetVar('errormsg', pnVarPrepForDisplay(_XA_ARGSERROR));\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\n\t\treturn false;\n\t}\n\n\t// load admin API\n\tif (!pnModAPILoad('Xanthia', 'admin')){\n pnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_XA_APILOADFAILED));\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\n return true;\n\t}\n\n\t// Update colors\n\tif (pnModAPIFunc('Xanthia', 'admin', 'updateColors',\n\t\t\t\t\t\t array('skin'\t => $skin,\n 'paletteid' => $paletteid,\n 'palname' => $palname,\n 'bgcolor' => $bgcolor,\n 'color1' => $color1,\n 'color2' => $color2,\n 'color3' => $color3,\n 'color4' => $color4,\n 'color5' => $color5,\n 'color6' => $color6,\n 'color7' => $color7,\n 'color8' => $color8,\n 'sepcolor' => $sepcolor,\n 'text1' => $text1,\n 'text2' => $text2,\n 'link' => $link,\n 'vlink' => $vlink,\n 'hover' => $hover))) {\n\t\t// Success\n\t\tpnSessionSetVar('statusmsg', pnVarPrepForDisplay(_XA_COLORSUPDATED));\n\t\t\n // Load user API\n\tif (!pnModAPILoad('Xanthia','user')) {\t \n pnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_XA_APILOADFAILED));\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\n return true;\n\t}\n\t\n\t\n\t$skinName = pnModAPIFunc('Xanthia','user','getSkinFromID',\n\t\t\tarray('id' => $skin));\n\n\t\t\tif ($paletteid == pnModGetVar('Xanthia',''.$skinName.'use')){\n\t\t\t\t\n\t\t\t\t$cachedthemes = pnModGetVar('Xanthia',''.$skinName.'themecache');\n\t\t\t\t\n\t\t\t\tif (isset($cachedthemes)){\n\t\t\t\t\tpnModAPIFunc('Xanthia', 'admin', 'writepalettescache', array('skinid' => $skin));\n\t\t\t\t\tpnModAPIFunc('Xanthia', 'admin', 'writestylesheet', array('skinid' => $skin,\n\t\t\t\t\t\t\t'paletteid' => $paletteid));\n\t\t\t\t}\n\t\t\t}\n }\n\t// Work completed, return to main\n\tpnRedirect(pnModURL('Xanthia', 'admin', 'editTheme',\n\t\t\t\t\t\t\tarray('todo' => 'colors',\n\t\t\t\t\t\t\t 'skin' => $skinName)));\n\treturn true;\n}","abstract public function register_style();","public function get_color_scheme() {\r\n\r\n return \tarray(\r\n 'epsilon_general_separator' => array(\r\n 'label' => esc_html__( 'Accent Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n 'epsilon_accent_color' => array(\r\n 'label' => esc_html__( 'Accent Color #1', 'unapp' ),\r\n 'description' => esc_html__( 'Theme main color.', 'unapp' ),\r\n 'default' => '#798eea',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_accent_color_second' => array(\r\n 'label' => esc_html__( 'Accent Color #2', 'unapp' ),\r\n 'description' => esc_html__( 'The second main color.', 'unapp' ),\r\n 'default' => '#4aca85',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n 'epsilon_accent_color_third' => array(\r\n 'label' => esc_html__( 'Accent Color #3', 'unapp' ),\r\n 'description' => esc_html__( 'The third main color.', 'unapp' ),\r\n 'default' => '#499bea',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_text_separator' => array(\r\n 'label' => esc_html__( 'Typography Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n 'epsilon_title_color' => array(\r\n 'label' => esc_html__( 'Title Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for titles.', 'unapp' ),\r\n 'default' => '#303133',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_text_color' => array(\r\n 'label' => esc_html__( 'Text Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for paragraphs.', 'unapp' ),\r\n 'default' => '#808080',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_link_color' => array(\r\n 'label' => esc_html__( 'Link Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for links.', 'unapp' ),\r\n 'default' => '#4aca85',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_link_hover_color' => array(\r\n 'label' => esc_html__( 'Link Hover Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for hovered links.', 'unapp' ),\r\n 'default' => '#5ed092',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_menu_separator' => array(\r\n 'label' => esc_html__( 'Navigation Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n \r\n\r\n 'epsilon_menu_item_color' => array(\r\n 'label' => esc_html__( 'Menu item color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_menu_item_hover_color' => array(\r\n 'label' => esc_html__( 'Menu item hover color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item hover color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_menu_item_active_color' => array(\r\n 'label' => esc_html__( 'Menu item active color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item active color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_background' => array(\r\n 'label' => esc_html__( 'Dropdown background', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu background.', 'unapp' ),\r\n 'default' => '#000000',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_item_color' => array(\r\n 'label' => esc_html__( 'Dropdown menu item color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item color.', 'unapp' ),\r\n 'default' => '#999999',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_item_hover_color' => array(\r\n 'label' => esc_html__( 'Dropdown menu item hover color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item hover color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_dropdown_menu_item_active_color' => array(\r\n 'label' => esc_html__( 'Dropdown menu item active color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the menu item active color.', 'unapp' ),\r\n 'default' => '#ffffff',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_separator' => array(\r\n 'label' => esc_html__( 'Footer Colors', 'unapp' ),\r\n 'section' => 'colors',\r\n 'separator' => true,\r\n ),\r\n\r\n 'epsilon_footer_contact_background' => array(\r\n 'label' => esc_html__( 'Footer Widget Background', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer widget background.', 'unapp' ),\r\n 'default' => '#303133',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_background' => array(\r\n 'label' => esc_html__( 'Footer Copyright Background', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer copyright background.', 'unapp' ),\r\n 'default' => '#262626',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_title_color' => array(\r\n 'label' => esc_html__( 'Footer Title Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer widget title.', 'unapp' ),\r\n 'default' => '#e6e6e6',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_text_color' => array(\r\n 'label' => esc_html__( 'Text Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer text.', 'unapp' ),\r\n 'default' => '#808080',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_link_color' => array(\r\n 'label' => esc_html__( 'Link Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer link.', 'unapp' ),\r\n 'default' => '#4aca85',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n 'epsilon_footer_link_hover_color' => array(\r\n 'label' => esc_html__( 'Link Hover Color', 'unapp' ),\r\n 'description' => esc_html__( 'The color used for the footer link hover.', 'unapp' ),\r\n 'default' => '#5ed092',\r\n 'section' => 'colors',\r\n 'hover-state' => false,\r\n ),\r\n\r\n );\r\n\t}","function dwwp_register_custom_settings_colors() {\n\tregister_setting( 'colors-settings-group','color1' );\n\t// Register Color Background Two\n\tregister_setting( 'colors-settings-group','color2' );\n\t// Register Color Main Color\n\tregister_setting( 'colors-settings-group','color3' );\n\t// Register Color Main Color\n\tregister_setting( 'colors-settings-group','color4' );\n\t// Register Color Main Color\n\tregister_setting( 'colors-settings-group','color5' );\n\t// Register Color Main Color\n\tregister_setting( 'colors-settings-group','color6' );\n\t// Register Color Main Color\n\tregister_setting( 'colors-settings-group','color7' );\n\t// Register Color Fonts\n\tregister_setting( 'colors-settings-group','color8' );\n\t// Register Color Fonts\n\tregister_setting( 'colors-settings-group','infoColor' );\n\t// Register Transparent Image Background Color\n\tregister_setting( 'colors-settings-group','transparentColor' );\n\t// Register Font Color Have Deffrent Background\n\tregister_setting( 'colors-settings-group','fontColorHaveBackground' );\n\t// Register Scroll Color\n\tregister_setting( 'colors-settings-group','mainScrollColor' );\n\t// Register Words Under Logo\n\tregister_setting( 'colors-settings-group','wordsUnderLogo' );\n\t// Register Notification Upperbar\n\tregister_setting( 'colors-settings-group','notificationUpperbar' );\n\t// Register Notification Upperbar Link\n\tregister_setting( 'colors-settings-group','notificationUpperbarLink' );\n\t// Shoose Your Logo Image\n\tregister_setting( 'colors-settings-group','logoImages' );\n\t// Shoose Your Images For Header\n\tregister_setting( 'colors-settings-group','headerImages' );\n\n\tadd_settings_section( 'main-colors-settings', '', 'colors_main__options', 'colors_setting' );\n\n\t// Color Background One\n\tadd_settings_field( 'color1', 'background One', 'costum_setting_colors_background1_callback', 'colors_setting', 'main-colors-settings' );\n\t// Color Background Two\n\tadd_settings_field( 'color2', 'background Two', 'costum_setting_colors_background2_callback', 'colors_setting', 'main-colors-settings' );\n\t// Main Color\n\tadd_settings_field( 'color3', 'Main Color 1', 'costum_setting_colors_color3_callback', 'colors_setting', 'main-colors-settings' );\n\t// Main Color\n\tadd_settings_field( 'color4', 'Main Color 2', 'costum_setting_colors_color4_callback', 'colors_setting', 'main-colors-settings' );\n\t// Main Color\n\tadd_settings_field( 'color5', 'Main Color 3', 'costum_setting_colors_color5_callback', 'colors_setting', 'main-colors-settings' );\n\t// Main Color\n\tadd_settings_field( 'color6', 'Main Color 4', 'costum_setting_colors_color6_callback', 'colors_setting', 'main-colors-settings' );\n\t// Main Color\n\tadd_settings_field( 'color7', 'Main Color 5', 'costum_setting_colors_color7_callback', 'colors_setting', 'main-colors-settings' );\n\t// Fonts Color One\n\tadd_settings_field( 'color8', 'Fonts Color One', 'costum_setting_colors_color8_callback', 'colors_setting', 'main-colors-settings' );\n\t// Fonts Color Two\n\tadd_settings_field( 'infoColor', 'Fonts Color Two', 'costum_setting_colors_infoColor_callback', 'colors_setting', 'main-colors-settings' );\n\t// font Color Have Background\n\tadd_settings_field( 'fontColorHaveBackground', 'Font Color Three', 'costum_setting_colors_fontColorHaveBackground_callback', 'colors_setting', 'main-colors-settings' );\n\t// Transparent Image\n\tadd_settings_field( 'transparentColor', 'Transparent Image', 'costum_setting_colors_transparentColor_callback', 'colors_setting', 'main-colors-settings' );\n\t// Scroll Image\n\tadd_settings_field( 'mainScrollColor', 'main Scroll Color', 'costum_setting_colors_mainScrollColor_callback', 'colors_setting', 'main-colors-settings' );\n\t// Words Under Logo\n\tadd_settings_field( 'wordsUnderLogo', 'Words Under Logo', 'costum_setting_colors_wordsUnderLogo_callback', 'colors_setting', 'main-colors-settings' );\n\t// Notification Upperbar\n\tadd_settings_field( 'notificationUpperbar', 'Notification Upperbar', 'costum_setting_notificationUpperbar_callback', 'colors_setting', 'main-colors-settings' );\n\t// Notification Upperbar\n\tadd_settings_field( 'notificationUpperbarLink', 'Notification Upperbar Link', 'costum_setting_notificationUpperbarLink_callback', 'colors_setting', 'main-colors-settings' );\n\t// Shoose Your Logo Image\n\tadd_settings_field( 'logoImages', 'Logo Images', 'costum_setting_LogoImages_callback', 'colors_setting', 'main-colors-settings' );\n\t// Shoose Your Images For Header\n\tadd_settings_field( 'headerImages', 'Header Images', 'costum_setting_headerImages_callback', 'colors_setting', 'main-colors-settings' );\n\n}","function colorMap(): array\n{\n return [\n 'black' => 'white',\n 'red' => 'white',\n 'green' => 'black',\n 'yellow' => 'black',\n 'blue' => 'white',\n 'magenta' => 'white',\n 'cyan' => 'black',\n 'white' => 'black',\n 'default' => 'white',\n ];\n}","function costum_setting_colors_color3_callback() {\n\t$color3 = esc_attr( get_option( 'color3' ) ); ?>\n\n\t
    \n\t\t\" class=\"input-color\" type=\"color\">\n\t
    \n\n\t\n\n\t
    \n\t\t\" class=\"input-color\" type=\"color\">\n\t
    \n\n\toptions->outputType === QROutputInterface::GDIMAGE_JPG || !$this->options->imageTransparent){\n\t\t\treturn;\n\t\t}\n\n\t\t$transparencyColor = $this->background;\n\n\t\tif($this::moduleValueIsValid($this->options->transparencyColor)){\n\t\t\t$transparencyColor = $this->prepareModuleValue($this->options->transparencyColor);\n\t\t}\n\n\t\timagecolortransparent($this->image, $transparencyColor);\n\t}","public function color()\n {\n }","function generateSocialColorPalette()\n {\n $socialnetworks = array(\"twitter\", \"instagram\", \"facebook\", \"storify\");\n \n $properties = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"ctmtb\", \"ctmlr\");\n /*$properties[$socialnetowks[1]] = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"cmtb\", \"cmlr\");\n $properties[$socialnetowks[2]] = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"cmtb\", \"cmlr\");\n $properties[$socialnetowks[3]] = array(\"cti\", \"cte\", \"ca\", \"cbg\", \"cbc\", \"cbs\", \"cbr\", \"cfs\", \"cmtb\", \"cmlr\");\n */\n // Twitter default values\n $default_properties[$socialnetworks[0]] = array(\"#ffffff\", \"#ffffff\", \"#002957\", \"#4099ff\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n // Instagram default values\n $default_properties[$socialnetworks[1]] = array(\"#ffffff\", \"#000000\", \"#ffffff\", \"#517fa4\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n // Facebook default values\n $default_properties[$socialnetworks[2]] = array(\"#ffffff\", \"#000000\", \"#ffffff\", \"#3B5998\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n // Storify default values\n $default_properties[$socialnetworks[3]] = array(\"#3a96db\", \"#3a96db\", \"#dfe5ea\", \"#a9bbcc\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n \n \n $db = JFactory::getDBO();\n\n foreach($socialnetworks as $socialnetwork)\n {\n $category_id = self::checkCategoryExists($socialnetwork);\n if($category_id)\n {\n $propertyIndex = 0;\n foreach($properties as $property)\n {\n $value = $default_properties[$socialnetwork][$propertyIndex++]; \n if(!self::checkExistingCategoryColorPalette($property, $category_id)) \n {\n $sql = \"INSERT INTO #__activategrid (context, name, value) VALUES ('category_color', '\".$property.\"_\".$category_id.\"', '{$value}');\";\n $db->setQuery($sql);\n $db->execute();\n }\n }\n }\n }\n \n \n // Default properties for other categories\n $default_properties[\"other\"] = array(\"#000000\", \"#000000\", \"#002bff\", \"#ebebeb\", \"\", \"0\", \"10\", \"12\", \"20\", \"20\");\n \n // Other categories \n $sql = \"SELECT id FROM #__categories WHERE extension='com_content' AND title <> 'twitter' AND title <> 'facebook' AND title <> 'instagram' AND title <> 'storify'\";\n $db->setQuery($sql);\n $db->execute();\n $result = $db->loadObjectList();\n foreach($result as $category)\n { \n $category_id = $category->id; \n $propertyIndex = 0;\n foreach($properties as $property)\n {\n $value = $default_properties[\"other\"][$propertyIndex++]; \n if(!self::checkExistingCategoryColorPalette($property, $category_id)) \n {\n $sql = \"INSERT INTO #__activategrid (context, name, value) VALUES ('category_color', '\".$property.\"_\".$category_id.\"', '{$value}');\";\n $db->setQuery($sql);\n $db->execute();\n }\n }\n }\n }","function wp_tinycolor_hue_to_rgb($p, $q, $t)\n {\n }"],"string":"[\n \"function hotel_lux_gutenberg_support() {\\r\\n\\t$colors = cmsmasters_color_picker_palettes();\\r\\n\\t\\r\\n\\t$color_palette = array();\\r\\n\\t\\r\\n\\t\\r\\n\\tforeach ($colors as $color) {\\r\\n\\t\\t$color_palette[] = array(\\r\\n\\t\\t\\t'color' => $color,\\r\\n\\t\\t);\\r\\n\\t}\\r\\n\\t\\r\\n\\t\\r\\n\\tadd_theme_support('editor-color-palette', $color_palette);\\r\\n}\",\n \"function lalita_enqueue_color_palettes() {\\n\\t\\t// Old versions of WP don't get nice things\\n\\t\\tif ( ! function_exists( 'wp_add_inline_script' ) )\\n\\t\\t\\treturn;\\n\\n\\t\\t// Grab our palette array and turn it into JS\\n\\t\\t$palettes = json_encode( lalita_get_default_color_palettes() );\\n\\n\\t\\t// Add our custom palettes\\n\\t\\t// json_encode takes care of escaping\\n\\t\\twp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $palettes . ';' );\\n\\t}\",\n \"function dg_gutenberg_custom_colors() {\\n\\t\\n\\t// disable custom colors\\n\\tadd_theme_support( 'disable-custom-colors' );\\n\\t\\n\\t// add custom color palette\\n\\tadd_theme_support( 'editor-color-palette', array(\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Pale Lemon Yellow', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'pale-lemon-yellow',\\n\\t\\t\\t'color'\\t=> '#fceeb2',\\n\\t\\t),\\t\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Hermosa Pink', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'hermosa-pink',\\n\\t\\t\\t'color'\\t=> '#e6bdc3',\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Coral Red', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'coral-red',\\n\\t\\t\\t'color'\\t=> '#d98c7f',\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Pale Kings Blue', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'pale-king-blue',\\n\\t\\t\\t'color'\\t=> '#aeced7',\\n\\t\\t),\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Olympic Blue', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'olympic-blue',\\n\\t\\t\\t'color'\\t=> '#5f769c',\\n\\t\\t),\\t\\t\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Cobalt Green', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'cobalt-green',\\n\\t\\t\\t'color'\\t=> '#9ec7a2',\\n\\t\\t),\\t\\t\\n\\t\\tarray(\\n\\t\\t\\t'name' => __( 'Venice Green', 'dehli-grolimund' ),\\n\\t\\t\\t'slug' => 'venice-green',\\n\\t\\t\\t'color'\\t=> '#7cbbb1',\\n\\t\\t),\\n\\n\\t) );\\t\\n}\",\n \"public function custom_color_variables() {\\n\\t\\tif ( 'd1e4dd' !== strtolower( get_theme_mod( 'background_color', 'D1E4DD' ) ) ) {\\n\\t\\t\\twp_add_inline_style( 'twenty-twenty-one-style', $this->generate_custom_color_variables() );\\n\\t\\t}\\n\\t}\",\n \"function fp_setup() {\\n\\t\\n\\tadd_theme_support('custom-background', array('default-color' => 'ffffff'));\\n\\t\\n}\",\n \"function hello_pro_inline_color_palette() {\\n\\t$css = '';\\n\\n\\t$appearance = genesis_get_config( 'appearance' );\\n\\n\\t$editor_color_palette = $appearance['editor-color-palette'];\\n\\n\\tforeach ( $editor_color_palette as $color_info ) {\\n\\n\\t\\t$css .= sprintf(\\n\\t\\t\\t'.site-container .has-%1$s-color,\\n\\t\\t.site-container .wp-block-button .wp-block-button__link.has-%1$s-color,\\n\\t\\t.site-container .wp-block-button.is-style-outline .wp-block-button__link.has-%1$s-color {\\n\\t\\t\\tcolor: %2$s;\\n\\t\\t}\\n\\n\\t\\t.site-container .has-%1$s-background-color,\\n\\t\\t.site-container .wp-block-button .wp-block-button__link.has-%1$s-background-color,\\n\\t\\t.site-container .wp-block-pullquote.is-style-solid-color.has-%1$s-background-color {\\n\\t\\t\\tbackground-color: %2$s;\\n\\t\\t}\\n\\n\\t\\t',\\n\\t\\t\\t$color_info['slug'],\\n\\t\\t\\t$color_info['color']\\n\\t\\t);\\n\\n\\t}\\n\\n\\t// Get Primary Color.\\n\\t$color_primary = get_theme_mod( 'hello_pro_link_color', $appearance['default-colors']['primary'] );\\n\\n\\t// Get Secondary Color.\\n\\t$color_secondary = get_theme_mod( 'hello_pro_accent_color', $appearance['default-colors']['secondary'] );\\n\\n\\t// Define Primary Color elements.\\n\\t$css .= sprintf(\\n\\t\\t'/* PRIMARY COLOR */\\n\\t\\ta,\\n\\t\\t.home-features > .wrap > .widget .textwidget > h3 > span,\\n\\t\\t.social-proof-slider-wrap .testimonial-item .testimonial-text .author .author-name,\\n\\t\\t.entry-header .entry-meta .entry-comments-link a,\\n\\t\\t.footer-widgets a:hover,\\n\\t\\t.footer-widgets a:focus,\\n\\t\\t.genesis-nav-menu a:focus,\\n\\t\\t.genesis-nav-menu a:hover,\\n\\t\\t.genesis-nav-menu .current-menu-item > a,\\n\\t\\t.genesis-nav-menu .sub-menu .current-menu-item > a:focus,\\n\\t\\t.genesis-nav-menu .sub-menu .current-menu-item > a:hover,\\n\\t\\t.genesis-nav-menu .current-menu-parent > a,\\n\\t\\t.menu-toggle:focus,\\n\\t\\t.menu-toggle:hover,\\n\\t\\t.sub-menu-toggle:focus,\\n\\t\\t.sub-menu-toggle:hover,\\n\\t\\ta:hover,\\n\\t\\t.entry-meta a,\\n\\t\\t.entry-meta a:hover,\\n\\t\\t.entry-meta a:focus,\\n\\t\\t.footer-widgets .entry-title a:hover,\\n\\t\\t.site-footer a:hover,\\n\\t\\t.site-footer a:focus,\\n\\t\\t.entry-content .featured-articles button.slick-arrow > span,\\n\\t\\t.entry-content .featured-articles ul.slick-dots li button::before,\\n\\t\\t.entry-content .featured-articles ul.slick-dots li.slick-active button:before {\\n\\t\\t\\tcolor: %1$s;\\n\\t\\t}\\n\\n\\t\\t.menu-toggle,\\n\\t\\t.archive-pagination li a,\\n\\t\\ta.button,\\n\\t\\tbutton,\\n\\t\\tinput[type=\\\"button\\\"],\\n\\t\\tinput[type=\\\"reset\\\"],\\n\\t\\tinput[type=\\\"submit\\\"],\\n\\t\\t.sidebar .enews-widget input[type=\\\"submit\\\"],\\n\\t\\t.sidebar-primary .widget input[type=\\\"submit\\\"],\\n\\t\\t.sidebar-primary .widget .button,\\n\\t\\t.wpforms-form button[type=submit] {\\n\\t\\t\\tbackground-color: %1$s;\\n\\t\\t\\tcolor: %2$s !important;\\n\\t\\t}\\n\\n\\t\\t.entry-content .featured-articles .featured-article {\\n\\t\\t\\tbackground-color: %1$s !important;\\n\\t\\t}\\n\\n\\t\\t.wp-block-button .wp-block-button__link.has-primary-background-color,\\n\\t\\t.ab-block-button > .ab-button,\\n\\t\\t.gb-block-button > .gb-button {\\n\\t\\t\\tbackground-color: %1$s !important;\\n\\t\\t\\tcolor: %2$s !important;\\n\\t\\t}\\n\\n\\t\\t.wp-block-button .wp-block-button__link:not(.has-background) {\\n\\t\\t background-color: %1$s !important;\\n\\t\\t}\\n\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color),\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link.has-primary-background-color {\\n\\t\\t\\tbackground-color: transparent !important;\\n\\t\\t border-color: %1$s !important;\\n\\t\\t\\tcolor: %1$s !important;\\n\\t\\t}\\n\\n\\t\\t',\\n\\t\\t$color_primary,\\n\\t\\thello_pro_color_contrast( $color_primary )\\n\\t);\\n\\n\\t// Define Secondary Color elements.\\n\\t$css .= sprintf(\\n\\t\\t'/* SECONDARY COLOR */\\n\\t\\t.menu-toggle:focus,\\n\\t\\t.menu-toggle:hover,\\n\\t\\t.archive-pagination li a:hover,\\n\\t\\t.archive-pagination li a:focus,\\n\\t\\t.archive-pagination li.active a,\\n\\t\\t.button:hover,\\n\\t\\t.button:focus,\\n\\t\\ta.button:hover,\\n\\t\\ta.button:focus,\\n\\t\\tbutton:not(.slick-arrow):hover,\\n\\t\\tbutton:not(.slick-arrow):focus,\\n\\t\\tbutton:not(id^=\\\"slick-\\\"),\\n\\t\\tinput:hover[type=\\\"button\\\"],\\n\\t\\tinput:hover[type=\\\"reset\\\"],\\n\\t\\tinput:hover[type=\\\"submit\\\"],\\n\\t\\tinput:focus[type=\\\"button\\\"],\\n\\t\\tinput:focus[type=\\\"reset\\\"],\\n\\t\\tinput:focus[type=\\\"submit\\\"],\\n\\t\\t.sidebar-primary .widget .button:focus,\\n\\t\\t.sidebar-primary .widget .button:hover,\\n\\t\\t.sidebar .enews-widget input[type=\\\"submit\\\"]:focus,\\n\\t\\t.sidebar .enews-widget input[type=\\\"submit\\\"]:hover,\\n\\t\\t.wpforms-form button[type=submit]:focus,\\n\\t\\t.wpforms-form button[type=submit]:hover {\\n\\t\\t\\tbackground-color: %1$s !important;\\n\\t\\t\\tcolor: %2$s !important;\\n\\t\\t}\\n\\n\\t\\t.wp-block-button .wp-block-button__link:not(.has-background):hover {\\n\\t\\t background-color: %1$s !important;\\n\\t\\t\\tcolor: %2$s !important;\\n\\t\\t}\\n\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link.has-secondary-background-color {\\n\\t\\t\\tbackground-color: transparent !important;\\n\\t\\t border-color: %1$s !important;\\n\\t\\t\\tcolor: %1$s !important;\\n\\t\\t}\\n\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link:focus,\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link:hover,\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):focus,\\n\\t\\t.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover {\\n\\t\\t\\tbackground-color: %1$s !important;\\n\\t\\t\\tborder-color: %1$s !important;\\n\\t\\t\\tcolor: %2$s !important;\\n\\t\\t}',\\n\\t\\t$color_secondary,\\n\\t\\thello_pro_color_contrast( $color_secondary )\\n\\t);\\n\\n\\treturn $css;\\n}\",\n \"function dizzy7_gutenberg_features() {\\n\\t\\t\\n\\n// Theme supports wide images, galleries and videos.\\n add_theme_support( 'align-wide' );\\n add_theme_support( 'align-full' );\\n add_theme_support( 'wide-images' );\\n \\n add_theme_support(\\n\\t\\t'editor-color-palette', array(\\n\\t\\t\\tarray(\\n\\t\\t\\t\\t'name' => esc_html__( 'Main Color', '@@textdomain' ),\\n\\t\\t\\t\\t'slug' => 'main-color',\\n\\t\\t\\t\\t'color' => get_theme_mod( 'diz-theme-main-color'),\\n\\t\\t\\t),\\n\\t\\t\\tarray(\\n\\t\\t\\t\\t'name' => esc_html__( 'Second Color', '@@textdomain' ),\\n\\t\\t\\t\\t'slug' => 'second-color',\\n\\t\\t\\t\\t'color' => get_theme_mod( 'diz-theme-second-color'),\\n\\t\\t\\t),\\n\\t\\t\\tarray(\\n\\t\\t\\t\\t'name' => esc_html__( 'Highlight Color', '@@textdomain' ),\\n\\t\\t\\t\\t'slug' => 'highlight-color',\\n\\t\\t\\t\\t'color' => get_theme_mod( 'diz-theme-third-color'),\\n\\t\\t\\t),\\n\\t\\t\\tarray(\\n\\t\\t\\t\\t'name' => esc_html__( 'Special Color', '@@textdomain' ),\\n\\t\\t\\t\\t'slug' => 'special-color',\\n\\t\\t\\t\\t'color' => get_theme_mod( 'diz-theme-fourth-color'),\\n\\t\\t\\t)\\n\\t\\t)\\n\\t);\\n}\",\n \"public function colors()\\n {\\n $section = self::$panel . '_colors';\\n\\n /**\\n * Add Section and fields for Colors\\n */\\n Customizer::addSection($section, array(\\n 'title' => esc_html__('Colors', 'stage'),\\n 'description' => esc_html__('Set color settings for your website', 'stage'),\\n 'priority' => 60,\\n 'panel' => self::$panel,\\n ));\\n\\n // Fields are calculated from ColorsPanel.php\\n }\",\n \"function wp_register_colors_support($block_type)\\n {\\n }\",\n \"protected function parameterizeColors() : void\\n {\\n $colors = $this->fetchColorsFromACF();\\n $this->injectStyles($colors);\\n }\",\n \"function register_admin_color_schemes()\\n {\\n }\",\n \"public function editor_custom_color_variables() {\\n\\t\\twp_enqueue_style(\\n\\t\\t\\t'twenty-twenty-one-custom-color-overrides',\\n\\t\\t\\tget_theme_file_uri( 'assets/css/custom-color-overrides.css' ),\\n\\t\\t\\tarray(),\\n\\t\\t\\t(string) filemtime( get_theme_file_path( 'assets/css/custom-color-overrides.css' ) )\\n\\t\\t);\\n\\n\\t\\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\\n\\t\\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\\n\\t\\t\\twp_add_inline_style( 'twenty-twenty-one-custom-color-overrides', $this->generate_custom_color_variables( 'editor' ) );\\n\\t\\t}\\n\\t}\",\n \"function CustomThemeSupport(){\\n // coloring\\n if(!empty(SELF::$WPgutenberg_ColorPalette)):\\n $newColors = array();\\n foreach (SELF::$WPgutenberg_ColorPalette as $colorkey => $color) {\\n $newColors[] = array(\\n 'name' => __( $color[\\\"key\\\"], 'WPgutenberg' ),\\n 'slug' => prefix_core_BaseFunctions::Slugify($color[\\\"key\\\"]),\\n 'color'\\t=> $color[\\\"value\\\"],\\n );\\n }\\n add_theme_support( 'editor-color-palette', $newColors );\\n endif;\\n // font sizes\\n if(!empty(SELF::$WPgutenberg_FontSizes)):\\n $newColors = array();\\n foreach (SELF::$WPgutenberg_FontSizes as $sizekey => $size) {\\n $newColors[] = array(\\n 'name' => __( $size[\\\"key\\\"], 'WPgutenberg' ),\\n 'slug' => prefix_core_BaseFunctions::Slugify($size[\\\"key\\\"]),\\n 'size'\\t=> $size[\\\"value\\\"],\\n );\\n }\\n add_theme_support( 'editor-font-sizes', $newColors );\\n // disable custom color picker\\n if(SELF::$WPgutenberg_ColorPalette_CP == 0):\\n add_theme_support( 'disable-custom-colors');\\n endif;\\n endif;\\n // disable default patterns\\n if($this->WPgutenberg_DefaultPatterns == 0):\\n remove_theme_support( 'core-block-patterns' );\\n endif;\\n\\n }\",\n \"function colloquium_theme_setup() {\\n add_action('wp_head', 'colloquium_bbpress_custom_color');\\n}\",\n \"function shell_custom_background(){\\r\\n\\r\\n\\t\\t/* Custom Background */\\r\\n\\t\\tadd_theme_support( 'custom-background', array( 'default-color' => 'f9f9f9' ) );\\r\\n\\t}\",\n \"function themename_customize_color_register( $wp_customize ) {\\n\\t$wp_customize->get_setting( 'themename_theme_bgcolor1' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_header_bgcolor' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_theme_hovercolor' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_widget_bgcolor' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_mainpost_bgcolor' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_popularpost_bgcolor' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_a_bgcolor' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_text_color' )->transport = 'postMessage';\\n\\t$wp_customize->get_setting( 'themename_readmore_bgcolor' )->transport = 'postMessage';\\n}\",\n \"public function useColor($name);\",\n \"function WPBC_after_setup_theme__customs(){\\n\\t$defaults = array(\\n\\t\\t'default-color' => 'red',\\n\\t\\t'default-image' => '',\\n\\t\\t'default-repeat' => 'no-repeat',\\n\\t\\t'default-position-x' => 'center',\\n\\t\\t'default-position-y' => 'center',\\n\\t\\t'default-size' => 'cover',\\n\\t\\t'default-attachment' => 'fixed',\\n\\t\\t'wp-head-callback' => '_custom_background_cb',\\n\\t\\t'admin-head-callback' => '',\\n\\t\\t'admin-preview-callback' => ''\\n\\t);\\n\\t// add_theme_support( 'custom-background', $defaults );\\n\\t\\n}\",\n \"function ux_mce4_options( $init ) {\\r\\n global $flatsome_opt;\\r\\n $default_colours = '\\r\\n \\\"000000\\\", \\\"Black\\\", \\\"993300\\\", \\\"Burnt orange\\\", \\\"333300\\\", \\\"Dark olive\\\", \\\"003300\\\", \\\"Dark green\\\", \\\"003366\\\", \\\"Dark azure\\\", \\\"000080\\\", \\\"Navy Blue\\\", \\\"333399\\\", \\\"Indigo\\\", \\\"333333\\\", \\\"Very dark gray\\\", \\r\\n \\\"800000\\\", \\\"Maroon\\\", \\\"FF6600\\\", \\\"Orange\\\", \\\"808000\\\", \\\"Olive\\\", \\\"008000\\\", \\\"Green\\\", \\\"008080\\\", \\\"Teal\\\", \\\"0000FF\\\", \\\"Blue\\\", \\\"666699\\\", \\\"Grayish blue\\\", \\\"808080\\\", \\\"Gray\\\", \\r\\n \\\"FF0000\\\", \\\"Red\\\", \\\"FF9900\\\", \\\"Amber\\\", \\\"99CC00\\\", \\\"Yellow green\\\", \\\"339966\\\", \\\"Sea green\\\", \\\"33CCCC\\\", \\\"Turquoise\\\", \\\"3366FF\\\", \\\"Royal blue\\\", \\\"800080\\\", \\\"Purple\\\", \\\"999999\\\", \\\"Medium gray\\\", \\r\\n \\\"FF00FF\\\", \\\"Magenta\\\", \\\"FFCC00\\\", \\\"Gold\\\", \\\"FFFF00\\\", \\\"Yellow\\\", \\\"00FF00\\\", \\\"Lime\\\", \\\"00FFFF\\\", \\\"Aqua\\\", \\\"00CCFF\\\", \\\"Sky blue\\\", \\\"993366\\\", \\\"Brown\\\", \\\"C0C0C0\\\", \\\"Silver\\\", \\r\\n \\\"FF99CC\\\", \\\"Pink\\\", \\\"FFCC99\\\", \\\"Peach\\\", \\\"FFFF99\\\", \\\"Light yellow\\\", \\\"CCFFCC\\\", \\\"Pale green\\\", \\\"CCFFFF\\\", \\\"Pale cyan\\\", \\\"99CCFF\\\", \\\"Light sky blue\\\", \\\"CC99FF\\\", \\\"Plum\\\", \\\"FFFFFF\\\", \\\"White\\\"\\r\\n ';\\r\\n $custom_colours = '\\r\\n \\\"e14d43\\\", \\\"Primary Color\\\", \\\"d83131\\\", \\\"Color 2 Name\\\", \\\"ed1c24\\\", \\\"Color 3 Name\\\", \\\"f99b1c\\\", \\\"Color 4 Name\\\", \\\"50b848\\\", \\\"Color 5 Name\\\", \\\"00a859\\\", \\\"Color 6 Name\\\", \\\"00aae7\\\", \\\"Color 7 Name\\\", \\\"282828\\\", \\\"Color 8 Name\\\"\\r\\n ';\\r\\n $init['textcolor_map'] = '['.$custom_colours.','.$default_colours.']';\\r\\n return $init;\\r\\n }\",\n \"function wp_apply_colors_support($block_type, $block_attributes)\\n {\\n }\",\n \"protected function parsePalettes(ContainerInterface $container)\\n {\\n $palettesDca = $this->getFromDca('palettes');\\n\\n // Skip while there is no extended palette definition.\\n if (!is_callable($palettesDca)) {\\n return;\\n }\\n\\n if ($container->hasDefinition(PalettesDefinitionInterface::NAME)) {\\n $palettesDefinition = $container->getDefinition(PalettesDefinitionInterface::NAME);\\n } else {\\n $palettesDefinition = new DefaultPalettesDefinition();\\n $container->setDefinition(PalettesDefinitionInterface::NAME, $palettesDefinition);\\n }\\n\\n call_user_func($palettesDca, $palettesDefinition, $container);\\n }\",\n \"public function changeEditorColorPalette(): void\\n\\t{\\n\\t\\t// Unable to use state due to this method is used in JS and store is not registered there.\\n\\t\\t$colors = $this->getSettingsManifest()['globalVariables']['colors'] ?? [];\\n\\n\\t\\tif ($colors) {\\n\\t\\t\\t\\\\add_theme_support('editor-color-palette', $colors);\\n\\t\\t}\\n\\t}\",\n \"public function tcb_get_palettes_from_config() {\\n\\t\\treturn ! empty( $this->skin_palettes_config['palette'] ) ? $this->skin_palettes_config['palette'] : [];\\n\\t}\",\n \"function alt_add_color_scheme()\\n {\\n wp_admin_css_color(\\n 'alt-design',\\n __('Alt Design', 'alt-design-color-scheme'),\\n get_template_directory_uri() . '/lib/alt-admin/css/admin-color-scheme.css',\\n array('#25282b', '#363b3f', '#ff6600', '#ff6600')\\n );\\n }\",\n \"function techfak_color_schemes() {\\n\\t$color_scheme_options = array(\\n\\t\\t'blau' => array(\\n\\t\\t\\t'value' => 'blau',\\n\\t\\t\\t'label' => __( 'Blue', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-blau.png',\\n\\t\\t),\\n\\t\\t'graublau' => array(\\n\\t\\t\\t'value' => 'graublau',\\n\\t\\t\\t'label' => __( 'Blue-grey', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-graublau.png',\\n\\t\\t),\\n\\t\\t'karibikgruen' => array(\\n\\t\\t\\t'value' => 'karibikgruen',\\n\\t\\t\\t'label' => __( 'Caribic-green', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-karibikgruen.png',\\n\\t\\t),\\n\\t\\t'gruen' => array(\\n\\t\\t\\t'value' => 'gruen',\\n\\t\\t\\t'label' => __( 'Green', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-gruen.png',\\n\\t\\t),\\n\\t\\t'hellblau' => array(\\n\\t\\t\\t'value' => 'hellblau',\\n\\t\\t\\t'label' => __( 'Light-blue', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-hellblau.png',\\n\\t\\t),\\n\\t\\t'orange' => array(\\n\\t\\t\\t'value' => 'orange',\\n\\t\\t\\t'label' => __( 'Orange', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-orange.png',\\n\\t\\t),\\n\\t\\t'rot' => array(\\n\\t\\t\\t'value' => 'rot',\\n\\t\\t\\t'label' => __( 'Red', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-rot.png',\\n\\t\\t),\\n\\t\\t'gelb' => array(\\n\\t\\t\\t'value' => 'gelb',\\n\\t\\t\\t'label' => __( 'Yellow', '_rrze' ),\\n\\t\\t\\t'thumbnail' => get_template_directory_uri() . '/includes/images/color-scheme-gelb.png',\\n\\t\\t),\\n\\n\\t);\\n\\n\\treturn apply_filters( 'techfak_color_schemes', $color_scheme_options );\\n}\",\n \"function capezzahill_colors_css_wrap() {\\r\\n\\t// Only include custom colors in customizer or frontend.\\r\\n\\tif ( ( ! is_customize_preview() && 'default' === get_theme_mod( 'primary_color', 'default' ) ) || is_admin() ) {\\r\\n\\t\\treturn;\\r\\n\\t}\\r\\n\\trequire_once get_parent_theme_file_path( '/inc/color-patterns.php' );\\r\\n\\t$primary_color = 199;\\r\\n\\tif ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {\\r\\n\\t\\t$primary_color = get_theme_mod( 'primary_color_hue', 199 );\\r\\n\\t}\\r\\n\\t?>\\r\\n\\r\\n\\t\\r\\n\\tadd_setting(\\r\\n 'primary_color',\\r\\n array(\\r\\n 'default' => '#ff5c36'\\r\\n )\\r\\n );\\r\\n $wp_customize->add_control(\\r\\n new WP_Customize_Color_Control(\\r\\n $wp_customize,\\r\\n 'primary_color',\\r\\n array(\\r\\n 'label' => __('Primary color', 'land'),\\r\\n 'section' => 'colors',\\r\\n 'priority' => 9\\r\\n )\\r\\n )\\r\\n );\\r\\n\\r\\n $wp_customize->add_setting(\\r\\n 'header_bg_color',\\r\\n array(\\r\\n 'default' => '#f5f5f5'\\r\\n )\\r\\n );\\r\\n $wp_customize->add_control(\\r\\n new WP_Customize_Color_Control(\\r\\n $wp_customize,\\r\\n 'header_bg_color',\\r\\n array(\\r\\n 'label' => __('Header background color', 'land'),\\r\\n 'section' => 'background_image',\\r\\n 'priority' => 9\\r\\n )\\r\\n )\\r\\n );\\r\\n}\",\n \"function twentyseventeen_colors_css_wrap() {\\n\\tif ( 'custom' !== get_theme_mod( 'colorscheme' ) && ! is_customize_preview() ) {\\n\\t\\treturn;\\n\\t}\\n\\n\\trequire_once( get_parent_theme_file_path( '/inc/color-patterns.php' ) );\\n\\t$hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) );\\n?>\\n\\t\\ntheme_color('primary')->set_color('#f6a4cd')\\n // ->set_name('Pink')\\n // ->set_text_color_scheme('dark');\\n \\n /* Remove existing theme colors */\\n // $colors->remove_theme_color('dark-gray');\\n \\n /* Add new colors */\\n // $accent = new PuzzleColor(array(\\n // 'name' => __('Accent Color'),\\n // 'id' => 'accent',\\n // 'color' => '#f00',\\n // 'text_color_scheme' => 'light',\\n // 'order' => 11\\n // ));\\n // $colors->add_theme_color($accent);\\n \\n /* Edit text colors */\\n // $colors->set_text_colors(array(\\n // 'headline_dark' => '#333',\\n // 'text_dark' => '#555',\\n // 'headline_light' => '#fff',\\n // 'text_light' => '#fff'\\n // ));\\n \\n /* Edit link colors */\\n // $colors->set_link_colors(array(\\n // 'link_dark' => '#3b54a5',\\n // 'link_dark_hover' => '#2cb799',\\n // 'link_light' => '#fff',\\n // 'link_light_hover' => 'rgba(255, 255, 255, 0.75)'\\n // ));\\n}\",\n \"function modshrink_s_register_custom_background() {\\n\\t$args = array(\\n\\t\\t'default-color' => 'ffffff',\\n\\t\\t'default-image' => '',\\n\\t);\\n\\n\\t$args = apply_filters( 'modshrink_s_custom_background_args', $args );\\n\\n\\tif ( function_exists( 'wp_get_theme' ) ) {\\n\\t\\tadd_theme_support( 'custom-background', $args );\\n\\t} else {\\n\\t\\tdefine( 'BACKGROUND_COLOR', $args['default-color'] );\\n\\t\\tif ( ! empty( $args['default-image'] ) )\\n\\t\\t\\tdefine( 'BACKGROUND_IMAGE', $args['default-image'] );\\n\\t\\tadd_custom_background();\\n\\t}\\n}\",\n \"function get_peepso_color_template() {\\n $color = \\\"\\\";\\n\\n if (class_exists( 'PeepSo' )) {\\n $color = PeepSo::get_option('site_css_template','');\\n }\\n\\n return $color;\\n}\",\n \"function gcb_custom_background() {\\r\\n\\tadd_custom_background( apply_filters( 'gcb_args' , 'gcb_do_theme_background' ) );\\t\\r\\n}\",\n \"public function backgroundColorProvider()\\n {\\n return [[\\\"#fff\\\"], [\\\"#000\\\"]];\\n }\",\n \"public function backgroundColorProvider()\\n {\\n return [[\\\"#fff\\\"], [\\\"#000\\\"]];\\n }\",\n \"public function init()\\n {\\n $this->shortcode->getHandlers()->add('color', function (ShortcodeInterface $sc) {\\n $color = $sc->getParameter('c', null);\\n $bgColor = $sc->getParameter('bg', null);\\n $padding = $sc->getParameter('padding', 3);\\n\\n if ($color || $bgColor) {\\n $colorString = sprintf(\\\"%s%s%s\\\",\\n $color !== null ? \\\"color:{$color};\\\" : '',\\n $bgColor !== null ? \\\"background-color:{$bgColor};\\\" : '',\\n $bgColor !== null ? \\\"padding-left:{$padding}px;padding-right:{$padding}px;\\\" : ''\\n );\\n\\n return '' . $sc->getContent() . '';\\n }\\n });\\n }\",\n \"function upgrade_colourFields($p_currentSettings, $p_pluginName ) {\\n\\t// 1. site-wide 'colour_offsets'\\n\\tif (isset( $p_currentSettings['colour_offsets'])) {\\n\\t\\t$l_newSettingsArray = splitOldColourValues(\\n\\t\\t\\t\\t$p_currentSettings['colour_offsets']\\n\\t\\t\\t,\\t'clr_off_' );\\t\\n\\t\\tforeach ( $l_newSettingsArray as $l_newKey => $l_newValue ) {\\n\\t\\t\\tset_config( $l_newKey, $l_newValue,\\t$p_pluginName);\\n\\t\\t}//foreach\\n\\t\\tset_config( \\t'colour_offsets_bak'\\n\\t\\t\\t\\t\\t, \\t$p_currentSettings['colour_offsets']\\n\\t\\t\\t\\t\\t,\\t$p_pluginName);\\n\\t\\tunset_config('colour_offsets', $p_pluginName);\\n\\t}\\n\\t// 2. site-wide 'colour_palettes'\\n\\tif (isset( $p_currentSettings['colour_palettes'])) {\\n\\t\\t$l_newSettingsArray = splitOldColourValues(\\n\\t\\t\\t\\t$p_currentSettings['colour_palettes']\\n\\t\\t\\t,\\t'clr_pal_' );\\n\\t\\t\\t\\n\\t\\tforeach ( $l_newSettingsArray as $l_newKey => $l_newValue ) {\\n\\t\\t\\tset_config( $l_newKey, $l_newValue,\\t$p_pluginName);\\n\\t\\t}//foreach\\n\\t\\tset_config( \\t'colour_palettes_bak'\\n\\t\\t\\t\\t\\t, \\t$p_currentSettings['colour_palettes']\\n\\t\\t\\t\\t\\t,\\t$p_pluginName);\\n\\t\\tunset_config('colour_palettes', $p_pluginName);\\t\\t\\t\\n\\t}//if (isset(...\\n\\t\\n\\t// 3. course overrides for 'colour_offsets' and 'colour_palettes'\\n\\t$l_allOverridesString = $p_currentSettings[IcandConstantsBackend::DB_FIELD_COURSE_OVERRIDES];\\n\\t$l_allOverridesString = preg_replace( IcandConstantsBackend::PREG_REMOVE_FROM_OVERRIDES, '', $l_allOverridesString); \\t\\t\\n\\t$l_allOverridesString = substr( $l_allOverridesString,0,-1);\\n\\t$l_allOverridesArray = IcandConstantsBackend::explode2( \\n\\t\\t\\t\\t\\t\\tIcandConstantsBackend::OVERRIDE_ALL_SEPARATOR \\n\\t\\t\\t\\t\\t,\\tIcandConstantsBackend::OVERRIDE_ALL_CONNECTOR\\n\\t\\t\\t\\t\\t,\\t$l_allOverridesString );\\n\\t$l_madeAnyChange = false;\\n\\tforeach ( $l_allOverridesArray as $l_course => $l_courseOverridesString ) {\\n\\t\\t$l_courseOverridesString = substr($l_courseOverridesString,1); //remove leading '{'\\n\\t\\t$l_courseOverridesString = preg_replace( IcandConstantsBackend::PREG_REMOVE_FROM_OVERRIDES, '', $l_courseOverridesString );\\n\\t\\t$l_courseOverridesArray = IcandConstantsBackend::explode2(\\n\\t\\t\\t\\t\\tIcandConstantsBackend::OVERRIDE_ONE_SEPARATOR \\n\\t\\t\\t\\t,\\tIcandConstantsBackend::OVERRIDE_ONE_CONNECTOR\\n\\t\\t\\t\\t,\\t$l_courseOverridesString\\n\\t\\t\\t\\t,\\t2 ); // only get key and value\\n\\t\\t$l_madeChangeToCourse = false;\\n\\t\\tif (isset( $l_courseOverridesArray['colour_offsets'])) {\\n\\t\\t\\t$l_madeChangeToCourse = true;\\n\\t\\t\\t$l_newSettingsArray = splitOldColourValues(\\n\\t\\t\\t\\t\\t$l_courseOverridesArray['colour_offsets']\\n\\t\\t\\t\\t,\\t'clr_off_' );\\n\\t\\t\\t$l_courseOverridesArray = array_merge($l_courseOverridesArray,$l_newSettingsArray );\\t\\t\\t\\t\\n\\t\\t\\tunset( $l_courseOverridesArray['colour_offsets'] ); \\n\\t\\t}\\n\\t\\tif (isset( $l_courseOverridesArray['colour_palettes'])) {\\n\\t\\t\\t$l_madeChangeToCourse = true;\\n\\t\\t\\t$l_newSettingsArray = splitOldColourValues(\\n\\t\\t\\t\\t\\t$l_courseOverridesArray['colour_palettes']\\n\\t\\t\\t\\t,\\t'clr_pal_' );\\n\\t\\t\\t$l_courseOverridesArray = array_merge($l_courseOverridesArray,$l_newSettingsArray );\\n\\t\\t\\tunset( $l_courseOverridesArray['colour_palettes'] ); \\t\\t\\t\\n\\t\\t}\\n\\t\\tif ($l_madeChangeToCourse) {\\n\\t\\t\\t$l_madeAnyChange = true;\\n\\t\\t\\t$l_allOverridesArray[ $l_course ] = \\n\\t\\t\\t\\t\\t'{' \\n\\t\\t\\t\\t\\t. \\t(IcandConstantsBackend::implode2(\\n\\t\\t\\t\\t\\t\\t\\tIcandConstantsBackend::OVERRIDE_ONE_SEPARATOR . IcandConstantsBackend::STR_APPEND_TO_OVERRIDES\\n\\t\\t\\t\\t\\t\\t,\\tIcandConstantsBackend::OVERRIDE_ONE_CONNECTOR\\n\\t\\t\\t\\t\\t\\t,\\t$l_courseOverridesArray )\\n\\t\\t\\t\\t\\t\\t);\\n\\t\\t}\\n\\t}//foreach\\n\\tif ($l_madeAnyChange) {\\t// write course overrides back to database\\n\\t\\t$l_newValue = IcandConstantsBackend::implode2(\\n\\t\\t\\t\\t\\t\\tIcandConstantsBackend::OVERRIDE_ALL_SEPARATOR . IcandConstantsBackend::STR_APPEND_TO_OVERRIDES\\n\\t\\t\\t\\t\\t,\\tIcandConstantsBackend::OVERRIDE_ALL_CONNECTOR\\n\\t\\t\\t\\t\\t,\\t$l_allOverridesArray );\\n\\t\\tif (strlen( $l_newValue ) > 0) {\\n\\t\\t\\t$l_newValue .= IcandConstantsBackend::OVERRIDE_ALL_TERMINATOR;\\n\\t\\t\\tset_config( IcandConstantsBackend::DB_FIELD_COURSE_OVERRIDES\\n\\t\\t\\t\\t, \\t$l_newValue\\n\\t\\t\\t\\t,\\t$p_pluginName);\\t\\n\\t\\t}//if\\t\\t\\n\\t}//if\\n}\",\n \"final private function setColors()\\n {\\n\\n $systemColorFile = new PhingFile(Phing::getResourcePath(\\\"phing/listener/defaults.properties\\\"));\\n\\n try {\\n $prop = new Properties();\\n\\n $prop->load($systemColorFile);\\n\\n $err = $prop->getProperty(\\\"HtmlColorLogger.ERROR_CLASS\\\");\\n $warn = $prop->getProperty(\\\"HtmlColorLogger.WARNING_CLASS\\\");\\n $info = $prop->getProperty(\\\"HtmlColorLogger.INFO_CLASS\\\");\\n $verbose = $prop->getProperty(\\\"HtmlColorLogger.VERBOSE_CLASS\\\");\\n $debug = $prop->getProperty(\\\"HtmlColorLogger.DEBUG_CLASS\\\");\\n if ($err !== null) {\\n $this->errColor = self::PREFIX . $err . self::SUFFIX;\\n }\\n if ($warn !== null) {\\n $this->warnColor = self::PREFIX . $warn . self::SUFFIX;\\n }\\n if ($info !== null) {\\n $this->infoColor = self::PREFIX . $info . self::SUFFIX;\\n }\\n if ($verbose !== null) {\\n $this->verboseColor = self::PREFIX . $verbose . self::SUFFIX;\\n }\\n if ($debug !== null) {\\n $this->debugColor = self::PREFIX . $debug . self::SUFFIX;\\n }\\n } catch (IOException $ioe) {\\n //Ignore exception - we will use the defaults.\\n }\\n }\",\n \"function pl_text_color(){\\n\\t\\t\\n\\t$color = ( pl_check_color_hash( ploption( 'text_primary' ) ) ) ? pl_hash_strip( ploption( 'text_primary' ) ) : '000000';\\n\\n\\treturn $color;\\n}\",\n \"public function theme_color_customizer( $wp_customize ){\\n\\n\\t\\t$theme_color_locations = $this->colorcase_theme_support();\\n\\n\\t\\t// bail if no theme support\\n\\t\\tif( $theme_color_locations == false ){\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t// get custom inputs\\n\\t\\tinclude_once('customizer-inputs.php');\\n\\n\\t\\t// remove title color customization\\n\\t\\t$wp_customize->remove_control( 'header_textcolor' );\\n\\n\\t\\t// add theme colors panel\\n\\t\\t$wp_customize->add_panel( 'theme_colors', array(\\n\\t\\t\\t'priority' => 35,\\n\\t\\t\\t'capability' => 'edit_theme_options',\\n\\t\\t\\t'theme_supports' => 'colorcase',\\n\\t\\t\\t'title' => 'Theme Colors',\\n\\t\\t\\t'description' => 'Pick a color palette, or choose custom colors.',\\n\\t\\t) );\\n\\n\\t\\t// bail if not areas to customize\\n\\t\\tif( !isset( $theme_color_locations['sections'] ) || empty( $theme_color_locations['sections'] ) ){\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tif( isset( $theme_color_locations['palettes'] ) && !empty( $theme_color_locations['palettes'] ) ){\\n\\n\\t\\t\\t$section_label = 'Color Palettes';\\n\\t\\t\\t$section_slug = sanitize_title( $section_label );\\n\\n\\t\\t\\t// add theme color palettes section to customizer\\n\\t\\t\\t$wp_customize->add_section(\\n\\t\\t\\t\\t'theme_colors_' . $section_slug,\\n\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t'title' => $section_label,\\n\\t\\t\\t\\t\\t'description' => '',\\n\\t\\t\\t\\t\\t'priority' => 10,\\n\\t\\t\\t\\t\\t'panel' => 'theme_colors',\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\n\\t\\t\\t$wp_customize->add_setting(\\n\\t\\t\\t\\t$section_slug . '_Picker',\\n\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t'default' => 'default',\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\n\\t\\t\\t$wp_customize->add_control(\\n\\t\\t\\t\\tnew Color_Palette_Picker_Customize_Control(\\n\\t\\t\\t\\t\\t$wp_customize,\\n\\t\\t\\t\\t\\t$section_slug . '_Picker',\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'label' => 'Color Palette',\\n\\t\\t\\t\\t\\t\\t'section' => 'theme_colors_' . $section_slug,\\n\\t\\t\\t\\t\\t\\t// 'settings' => ''\\n\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\t\\t}\\n\\n\\t\\tforeach( $theme_color_locations['sections'] as $section_label => $theme_color_section_locations ){\\n\\n\\t\\t\\t$section_slug = sanitize_title( $section_label );\\n\\n\\t\\t\\t// add theme colors section to customizer\\n\\t\\t\\t$wp_customize->add_section(\\n\\t\\t\\t\\t'theme_colors_' . $section_slug,\\n\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t'title' => $section_label,\\n\\t\\t\\t\\t\\t'description' => '',\\n\\t\\t\\t\\t\\t'priority' => 10,\\n\\t\\t\\t\\t\\t'panel' => 'theme_colors',\\n\\t\\t\\t\\t)\\n\\t\\t\\t);\\n\\n\\t\\t\\tforeach( $theme_color_section_locations as $color_location_label => $color_location ){\\n\\n\\t\\t\\t\\t$slug = sanitize_title( $section_label . '_' . $color_location_label );\\n\\n\\t\\t\\t\\t$wp_customize->add_setting(\\n\\t\\t\\t\\t\\t$slug,\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'default' => $color_location['default'],\\n\\t\\t\\t\\t\\t\\t'sanitize_callback' => 'sanitize_hex_color',\\n\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\tif( isset( $color_location['description'] ) ){\\n\\t\\t\\t\\t\\t$color_location_label .= '

    ' . $color_location['description'] . '

    ';\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t$wp_customize->add_control(\\n\\t\\t\\t\\t\\tnew WP_Customize_Color_Control(\\n\\t\\t\\t\\t\\t\\t$wp_customize,\\n\\t\\t\\t\\t\\t\\t$slug,\\n\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t'label' => $color_location_label,\\n\\t\\t\\t\\t\\t\\t\\t'section' => 'theme_colors_' . $section_slug,\\n\\t\\t\\t\\t\\t\\t\\t'settings' => $slug,\\n\\t\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t\\t)\\n\\t\\t\\t\\t);\\n\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\n\\t}\",\n \"function scbirs_add_theme_meta() {\\r\\n?>\\r\\n\\t\\r\\nlp_id, static::LP_PALETTES_CONFIG, $palettes_config_v2 );\\n\\n\\t\\t$this->skin_palettes_config = $palettes_config_v2;\\n\\t}\",\n \"private function start_color_schemes() {\\r\\n\\t\\t$handler = 'unapp-style-overrides';\\r\\n\\r\\n\\t\\t$args = array(\\r\\n\\t\\t\\t'fields' => $this->get_color_scheme(),\\r\\n\\t\\t\\t'css' => Epsilon_Color_Scheme::load_css_overrides( get_template_directory() . '/assets/css/style-overrides.css' ),\\r\\n\\t\\t);\\r\\n\\r\\n\\t\\tEpsilon_Color_Scheme::get_instance( $handler, $args );\\r\\n\\t}\",\n \"function callback_color($args)\\n {\\n }\",\n \"public function __construct() {\\n $this->foreground_colors['black'] = '0;30';\\n $this->foreground_colors['dark_gray'] = '1;30';\\n $this->foreground_colors['blue'] = '0;34';\\n $this->foreground_colors['light_blue'] = '1;34';\\n $this->foreground_colors['green'] = '0;32';\\n $this->foreground_colors['light_green'] = '1;32';\\n $this->foreground_colors['cyan'] = '0;36';\\n $this->foreground_colors['light_cyan'] = '1;36';\\n $this->foreground_colors['red'] = '0;31';\\n $this->foreground_colors['light_red'] = '1;31';\\n $this->foreground_colors['purple'] = '0;35';\\n $this->foreground_colors['light_purple'] = '1;35';\\n $this->foreground_colors['brown'] = '0;33';\\n $this->foreground_colors['yellow'] = '1;33';\\n $this->foreground_colors['light_gray'] = '0;37';\\n $this->foreground_colors['white'] = '1;37';\\n\\n $this->background_colors['black'] = '40';\\n $this->background_colors['red'] = '41';\\n $this->background_colors['green'] = '42';\\n $this->background_colors['yellow'] = '43';\\n $this->background_colors['blue'] = '44';\\n $this->background_colors['magenta'] = '45';\\n $this->background_colors['cyan'] = '46';\\n $this->background_colors['light_gray'] = '47';\\n }\",\n \"function client_portal_get_theme_colors_gutenberg() {\\n\\n\\t// Grab our ACF theme colors.\\n\\t$colors = client_portal_get_theme_colors();\\n\\n\\tif ( ! $colors ) {\\n\\t\\treturn array();\\n\\t}\\n\\n\\tforeach ( $colors as $key => $color ) {\\n\\t\\t$gutenberg_colors[] = array(\\n\\t\\t\\t'name' => esc_html( $key ),\\n\\t\\t\\t'slug' => sanitize_title( $key ),\\n\\t\\t\\t'color' => esc_attr( $color ),\\n\\t\\t);\\n\\t}\\n\\n\\treturn $gutenberg_colors;\\n}\",\n \"function writr_add_wpcom_support() {\\n\\tglobal $themecolors;\\n\\n\\tif ( ! isset( $themecolors ) ) {\\n\\n\\t\\t// Set a default theme color array.\\n\\t\\t$themecolors = array(\\n\\t\\t\\t'bg' => 'ffffff',\\n\\t\\t\\t'border' => 'ffffff',\\n\\t\\t\\t'text' => '656565',\\n\\t\\t\\t'link' => '1abc9c',\\n\\t\\t\\t'url' => '1abc9c',\\n\\t\\t);\\n\\n\\t}\\n\\n\\t// Add print stylesheet.\\n\\tadd_theme_support( 'print-style' );\\n\\n}\",\n \"function theme_custamize_add_color_control($name, $id, $section, $default, $wp_customize) {\\n $wp_customize->add_setting( $id, array( 'default' => $default, ) );\\n $wp_customize->add_control(\\n new WP_Customize_Color_Control(\\n $wp_customize,\\n $id,\\n array(\\n 'label' => __( $name, $id ),\\n 'section' => $section,\\n 'settings' => $id,\\n )\\n )\\n );\\n}\",\n \"function htmlconvertwordpresstheme($wp_customize){\\n $wp_customize->add_panel('htmlconvertwordpresstheme_settings', array(\\n\\n 'title'=>__('htmlconvertwordpresstheme_settings'),\\n 'description' =>'',\\n 'priority'=>10,\\n\\n\\n ));\\n\\n\\n $wp_customize->add_section('htmlconvertwordpresstheme_colors', array(\\n 'title'=>'color',\\n 'panel'=> 'htmlconvertwordpresstheme_settings',\\n\\n\\n ));\\n\\n\\n $wp_customize->add_setting('htmlconvertwordpresstheme_nav_bg_color', array(\\n\\n 'type'=>'theme_mod',\\n 'capability'=> 'edit_theme_options',\\n 'default'=>'',\\n 'transport'=>'refresh',\\n 'sanitize_callback'=>'sanitize_hex_color',\\n ));\\n\\n\\n $wp_customize->add_control('htmlconvertwordpresstheme_nav_bg_color', array(\\n \\n 'label'=>__('Menu Background'),\\n 'type'=>'color',\\n 'section'=>'htmlconvertwordpresstheme_colors',\\n ));\\n\\n/* customize setting body background color*/\\n$wp_customize->add_setting('htmlconvertwordpresstheme_body_background_color', array(\\n\\n 'type'=>'theme_mod',\\n 'capability'=> 'edit_theme_options',\\n 'default'=>'#fff',\\n 'transport'=>'refresh',\\n 'sanitize_callback'=>'sanitize_hex_color',\\n));\\n\\n\\n$wp_customize->add_control('htmlconvertwordpresstheme_body_background_color', array(\\n\\n 'label'=>__('Body Background color'),\\n 'type'=>'color',\\n 'section'=>'htmlconvertwordpresstheme_colors',\\n));\\n\\n\\n}\",\n \"public function __construct() {\\n\\t\\t$this->foreground_colors['black'] = '0;30';\\n\\t\\t$this->foreground_colors['dark_gray'] = '1;30';\\n\\t\\t$this->foreground_colors['blue'] = '0;34';\\n\\t\\t$this->foreground_colors['light_blue'] = '1;34';\\n\\t\\t$this->foreground_colors['green'] = '0;32';\\n\\t\\t$this->foreground_colors['light_green'] = '1;32';\\n\\t\\t$this->foreground_colors['cyan'] = '0;36';\\n\\t\\t$this->foreground_colors['light_cyan'] = '1;36';\\n\\t\\t$this->foreground_colors['red'] = '0;31';\\n\\t\\t$this->foreground_colors['light_red'] = '1;31';\\n\\t\\t$this->foreground_colors['purple'] = '0;35';\\n\\t\\t$this->foreground_colors['light_purple'] = '1;35';\\n\\t\\t$this->foreground_colors['brown'] = '0;33';\\n\\t\\t$this->foreground_colors['yellow'] = '1;33';\\n\\t\\t$this->foreground_colors['light_gray'] = '0;37';\\n\\t\\t$this->foreground_colors['white'] = '1;37';\\n\\n\\t\\t$this->background_colors['black'] = '40';\\n\\t\\t$this->background_colors['red'] = '41';\\n\\t\\t$this->background_colors['green'] = '42';\\n\\t\\t$this->background_colors['yellow'] = '43';\\n\\t\\t$this->background_colors['blue'] = '44';\\n\\t\\t$this->background_colors['magenta'] = '45';\\n\\t\\t$this->background_colors['cyan'] = '46';\\n\\t\\t$this->background_colors['light_gray'] = '47';\\n\\t}\",\n \"function _ga_typography_color( $option ) {\\n\\n\\tif ( ! ( $_color = genesis_get_option( $option, GA_CHILDTHEME_FIELD ) ) )\\n\\t\\treturn false;\\n\\n\\t return 'color: ' . $_color . ';';\\n\\n}\",\n \"function pl_link_color(){\\n\\t\\n\\t$color = ( pl_check_color_hash( ploption( 'linkcolor' ) ) ) ? pl_hash_strip( ploption( 'linkcolor' ) ) : '225E9B';\\n\\t\\n\\treturn $color;\\t\\n}\",\n \"function pt_text_color_render()\\n\\t\\t{ \\n\\t\\t\\t$options = get_option( 'pt_settings' );\\n\\t\\t\\t?>\\n\\t\\t\\t'> (Hex color code, ex white: \\\"#ffffff\\\")\\n\\t\\t\\tadd_setting( 'color_scheme', array(\\n\\t\\t 'default' => 'default',\\n\\t\\t //'transport' => 'postMessage',\\n\\t\\t) );\\n\\t\\t\\n\\t\\n $entrepreneur_color_scheme = new entrepreneur_color_scheme();\\n $color_schemes = $entrepreneur_color_scheme->get_color_schemes();\\n $choices = array();\\n foreach ($color_schemes as $color_scheme => $value) {\\n $choices[$color_scheme] = $value['label'];\\n }\\n\\n\\t\\t$wp_customize->add_control( 'color_scheme', array(\\n\\t\\t 'label' => __( 'Color scheme', 'entrepreneur' ),\\n\\t\\t 'section' => 'theme_common_color_section',\\n\\t\\t 'type' => 'select',\\n\\t\\t 'choices' => $choices,\\n\\t\\t) );\\n\\n\\n/*\\n\\t\\t$options = array(\\n\\t\\t 'primary_color' => __( 'Primary color', 'entrepreneur' ),\\n\\t\\t 'primary_hover_color' => __( 'Primary hover color', 'entrepreneur' ),\\n\\t\\t 'secondary_color' => __( 'Secondary color', 'entrepreneur' ),\\n\\t\\t 'secondary_hover_color' => __( 'Secondary hover color', 'entrepreneur' ),\\n\\t\\t);\\n\\t\\tforeach ( $options as $key => $label ) {\\n\\t\\t $wp_customize->add_setting( $key, array(\\n\\t\\t 'sanitize_callback' => 'sanitize_hex_color',\\n\\t\\t 'transport' => 'postMessage',\\n\\t\\t ) );\\n\\t\\t $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $key, array(\\n\\t\\t 'label' => $label,\\n\\t\\t 'section' => 'colors',\\n\\t\\t ) ) );\\n\\t\\t}\\n\\t\\t*/\\n\\t}\",\n \"public function __construct() {\\n\\t\\t\\t$this->foreground_colors['black'] = '0;30';\\n\\t\\t\\t$this->foreground_colors['dark_gray'] = '1;30';\\n\\t\\t\\t$this->foreground_colors['blue'] = '0;34';\\n\\t\\t\\t$this->foreground_colors['light_blue'] = '1;34';\\n\\t\\t\\t$this->foreground_colors['green'] = '0;32';\\n\\t\\t\\t$this->foreground_colors['light_green'] = '1;32';\\n\\t\\t\\t$this->foreground_colors['cyan'] = '0;36';\\n\\t\\t\\t$this->foreground_colors['light_cyan'] = '1;36';\\n\\t\\t\\t$this->foreground_colors['red'] = '0;31';\\n\\t\\t\\t$this->foreground_colors['light_red'] = '1;31';\\n\\t\\t\\t$this->foreground_colors['purple'] = '0;35';\\n\\t\\t\\t$this->foreground_colors['light_purple'] = '1;35';\\n\\t\\t\\t$this->foreground_colors['brown'] = '0;33';\\n\\t\\t\\t$this->foreground_colors['yellow'] = '1;33';\\n\\t\\t\\t$this->foreground_colors['light_gray'] = '0;37';\\n\\t\\t\\t$this->foreground_colors['white'] = '1;37';\\n \\n\\t\\t\\t$this->background_colors['black'] = '40';\\n\\t\\t\\t$this->background_colors['red'] = '41';\\n\\t\\t\\t$this->background_colors['green'] = '42';\\n\\t\\t\\t$this->background_colors['yellow'] = '43';\\n\\t\\t\\t$this->background_colors['blue'] = '44';\\n\\t\\t\\t$this->background_colors['magenta'] = '45';\\n\\t\\t\\t$this->background_colors['cyan'] = '46';\\n\\t\\t\\t$this->background_colors['light_gray'] = '47';\\n\\t\\t}\",\n \"public function extendPalettes($strName)\\n\\t{\\n\\t\\tif ($strName != 'tl_module')\\n\\t\\t{\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\t$GLOBALS['TL_DCA']['tl_module']['subpalettes']['reg_activate'] = str_replace('reg_jumpTo,reg_text', 'reg_jumpTo,reg_text,nc_registration_notify_admin,nc_registration_notify_admin_activate', $GLOBALS['TL_DCA']['tl_module']['subpalettes']['reg_activate']);\\n\\t}\",\n \"public function generate_custom_color_variables( $context = null ) {\\n\\n\\t\\t$theme_css = 'editor' === $context ? ':root .editor-styles-wrapper{' : ':root{';\\n\\t\\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\\n\\n\\t\\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\\n\\t\\t\\t$theme_css .= '--global--color-background: #' . $background_color . ';';\\n\\t\\t\\t$theme_css .= '--global--color-primary: ' . $this->custom_get_readable_color( $background_color ) . ';';\\n\\t\\t\\t$theme_css .= '--global--color-secondary: ' . $this->custom_get_readable_color( $background_color ) . ';';\\n\\t\\t\\t$theme_css .= '--button--color-background: ' . $this->custom_get_readable_color( $background_color ) . ';';\\n\\t\\t\\t$theme_css .= '--button--color-text-hover: ' . $this->custom_get_readable_color( $background_color ) . ';';\\n\\n\\t\\t\\tif ( '#fff' === $this->custom_get_readable_color( $background_color ) ) {\\n\\t\\t\\t\\t$theme_css .= '--table--stripes-border-color: rgba(240, 240, 240, 0.15);';\\n\\t\\t\\t\\t$theme_css .= '--table--stripes-background-color: rgba(240, 240, 240, 0.15);';\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t$theme_css .= '}';\\n\\n\\t\\treturn $theme_css;\\n\\t}\",\n \"public function colorList() {}\",\n \"public function __construct() {\\n\\t\\t$this->foreground_colors['black'] = '0;30';\\n\\t\\t$this->foreground_colors['dark_gray'] = '1;30';\\n\\t\\t$this->foreground_colors['blue'] = '0;34';\\n\\t\\t$this->foreground_colors['light_blue'] = '1;34';\\n\\t\\t$this->foreground_colors['green'] = '0;32';\\n\\t\\t$this->foreground_colors['light_green'] = '1;32';\\n\\t\\t$this->foreground_colors['cyan'] = '0;36';\\n\\t\\t$this->foreground_colors['light_cyan'] = '1;36';\\n\\t\\t$this->foreground_colors['red'] = '0;31';\\n\\t\\t$this->foreground_colors['light_red'] = '1;31';\\n\\t\\t$this->foreground_colors['purple'] = '0;35';\\n\\t\\t$this->foreground_colors['light_purple'] = '1;35';\\n\\t\\t$this->foreground_colors['brown'] = '0;33';\\n\\t\\t$this->foreground_colors['yellow'] = '1;33';\\n\\t\\t$this->foreground_colors['light_gray'] = '0;37';\\n\\t\\t$this->foreground_colors['white'] = '1;37';\\n \\n\\t\\t$this->background_colors['black'] = '40';\\n\\t\\t$this->background_colors['red'] = '41';\\n\\t\\t$this->background_colors['green'] = '42';\\n\\t\\t$this->background_colors['yellow'] = '43';\\n\\t\\t$this->background_colors['blue'] = '44';\\n\\t\\t$this->background_colors['magenta'] = '45';\\n\\t\\t$this->background_colors['cyan'] = '46';\\n\\t\\t$this->background_colors['light_gray'] = '47';\\n\\t\\t}\",\n \"function header_footer_color_customizer($wp_customize) {\\n\\t$default_theme_bgcolor1 = \\\"#000000\\\";\\n $defaule_header_bgcolor = \\\"#b3daff\\\";\\n\\t$default_theme_hovercolor = \\\"#ffffff\\\";\\n\\t$default_widget_bgcolor = \\\"#b3daff\\\";\\n\\t$default_mainpost_bgcolor = \\\"#f0f0f0\\\";\\n\\t$default_popularpost_bgcolor =\\\"#c3c3c3\\\";\\n\\t$default_a_bgcolor = \\\"#9e0c78\\\";\\n\\t$default_readmore_bgcolor = \\\"#ff3a3a\\\";\\n\\t$default_text_color = \\\"#000000\\\";\\n\\n\\t$wp_customize->add_setting('themename_theme_bgcolor1', array(\\n\\t\\t'default' => $default_theme_bgcolor1,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_theme_bgcolor1', array(\\n\\t\\t'label' => 'Theme color1',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_theme_bgcolor1',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_header_bgcolor', array(\\n\\t\\t'default' => $defaule_header_bgcolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_header_bgcolor', array(\\n\\t\\t'label' => 'Header bgcolor',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_header_bgcolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_theme_hovercolor', array(\\n\\t\\t'default' => $default_theme_hovercolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_theme_hovercolor', array(\\n\\t\\t'label' => 'Theme hovercolor',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_theme_hovercolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_widget_bgcolor', array(\\n\\t\\t'default' => $default_widget_bgcolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_widget_bgcolor', array(\\n\\t\\t'label' => 'Widget bgcolor',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_widget_bgcolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_mainpost_bgcolor', array(\\n\\t\\t'default' => $default_mainpost_bgcolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_mainpost_bgcolor', array(\\n\\t\\t'label' => 'Main Post bgcolor',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_mainpost_bgcolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_popularpost_bgcolor', array(\\n\\t\\t'default' => $default_popularpost_bgcolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_popularpost_bgcolor', array(\\n\\t\\t'label' => 'Popular bgcolor',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_popularpost_bgcolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_a_bgcolor', array(\\n\\t\\t'default' => $default_a_bgcolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_a_bgcolor', array(\\n\\t\\t'label' => 'Text Link color',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_a_bgcolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_readmore_bgcolor', array(\\n\\t\\t'default' => $default_readmore_bgcolor,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_readmore_bgcolor', array(\\n\\t\\t'label' => 'ReadMore bgcolor',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_readmore_bgcolor',\\n\\t)));\\n\\t$wp_customize->add_setting('themename_text_color', array(\\n\\t\\t'default' => $default_text_color,\\n\\t\\t'wp-head-callback' => 'scm_test_style',\\n\\t\\t'transport' => 'postMessage'\\n\\t));\\n\\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'themename_text_color', array(\\n\\t\\t'label' => 'Text color',\\n\\t\\t'section' => 'colors',\\n\\t\\t'settings' => 'themename_text_color',\\n\\t)));\\n}\",\n \"function pewc_enqueue_color_picker( $hook_suffix ) {\\n wp_enqueue_style( 'wp-color-picker' );\\n wp_enqueue_script( 'wp-color-picker');\\n}\",\n \"function enlight_render_visual_preferences_meta_box($post)\\n{\\n $highlightColor = get_post_meta($post->ID, 'enlight_highlight_color', true);\\n?>\\n

    \\n \\n

    \\n

    \\n \\n

    \\n\\n\\n\\t
    \\n\\t\\t\\\" class=\\\"input-color\\\" type=\\\"color\\\">\\n\\t
    \\n\\n\\t\\n\\n\\t
    \\n\\t\\t\\\" class=\\\"input-color\\\" type=\\\"color\\\">\\n\\t
    \\n\\n\\t &$GLOBALS['TL_LANG']['tl_content']['size'],\\n\\t\\t\\t\\t\\t'exclude' => false,\\n\\t\\t\\t\\t\\t'inputType' => 'imageSize',\\n\\t\\t\\t\\t\\t'options' => array('crop', 'proportional', 'box'),\\n\\t\\t\\t\\t\\t'reference' => &$GLOBALS['TL_LANG']['MSC'],\\n\\t\\t\\t\\t\\t'eval' => array('rgxp'=>'digit', 'nospace'=>true, 'tl_class'=>'w50')\\n\\t\\t\\t\\t);\\n\\t\\t}\\n\\t}\",\n \"public function update_lp_palettes_v2( $palettes_v2 ) {\\n\\t\\tupdate_post_meta( $this->lp_id, static::LP_PALETTES, $palettes_v2 );\\n\\n\\t\\t$this->skin_palettes = $palettes_v2;\\n\\t}\",\n \"public function get_variables_for_css() {\\n\\t\\t$data = '';\\n\\n\\t\\tif ( ! empty( $this->skin_palettes_config ) && is_array( $this->skin_palettes_config ) ) {\\n\\t\\t\\t$palette = $this->skin_palettes_config ['palette'];\\n\\n\\t\\t\\tforeach ( $palette as $variable ) {\\n\\n\\t\\t\\t\\t$color_name = static::SKIN_COLOR_VARIABLE_PREFIX . $variable['id'];\\n\\n\\t\\t\\t\\tif ( ! empty( $variable['hsla_code'] ) && ! empty( $variable['hsla_vars'] ) && is_array( $variable['hsla_vars'] ) ) {\\n\\t\\t\\t\\t\\t$data .= $color_name . ':' . $variable['hsla_code'] . ';';\\n\\n\\t\\t\\t\\t\\tforeach ( $variable['hsla_vars'] as $var => $css_variable ) {\\n\\t\\t\\t\\t\\t\\t$data .= $color_name . '-' . $var . ':' . $css_variable . ';';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$data .= $color_name . ':' . $variable['color'] . ';';\\n\\n\\t\\t\\t\\t\\tif ( function_exists( 'tve_rgb2hsl' ) && function_exists( 'tve_print_color_hsl' ) ) {\\n\\t\\t\\t\\t\\t\\t$data .= tve_print_color_hsl( $color_name, tve_rgb2hsl( $variable['color'] ) );\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif ( function_exists( 'tve_prepare_master_variable' ) ) {\\n\\t\\t\\t$palettes = $this->get_smart_lp_palettes_v2();\\n\\t\\t\\t$active_id = (int) $palettes['active_id'];\\n\\t\\t\\t$master_variable = $palettes['palettes'][ $active_id ]['modified_hsl'];\\n\\t\\t\\t$general_master_variable = tve_prepare_master_variable( array( 'hsl' => $master_variable ) );\\n\\t\\t\\t$theme_master_variable = str_replace( '--tcb-main-master', '--tcb-theme-main-master', $general_master_variable );\\n\\n\\t\\t\\t$data .= $general_master_variable;\\n\\t\\t\\t$data .= $theme_master_variable;\\n\\t\\t}\\n\\n\\t\\treturn $data;\\n\\t}\",\n \"public static function register($wp_customize)\\n {\\n require_once(get_template_directory().\\\"/customizer/alpha-color-picker-customizer.php\\\");\\n\\n if (!isset($lc_customize['menu_mobile_bg_color'])) {\\n $lc_customize['menu_mobile_bg_color'] = 'rgba(35, 35, 35, 1)';\\n }\\n if (!isset($lc_customize['mobile_border_bottom_color'])) {\\n $lc_customize['mobile_border_bottom_color'] = '#333333';\\n }\\n\\n\\n //Define a new section (if desired) to the Theme Customizer\\n $wp_customize->add_section( 'lc_second_color',\\n array(\\n 'title' => esc_html__('Vibrant Color', 'heritage'), \\t\\t\\t\\t//Visible title of section\\n 'priority' => 1, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines what order this appears in\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t//Capability needed to tweak\\n 'description' => esc_html__('Choose the link color', 'heritage'), //Descriptive tooltip\\n )\\n );\\n\\n //Register new settings to the WP database...\\n $wp_customize->add_setting( 'lc_customize[lc_second_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#18aebf', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n //Finally, we define the control itself (which links a setting to a section and renders the HTML controls)...\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_second_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Secondary Color', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_second_color', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_second_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*\\n MENU OPTIONS\\n */\\n $wp_customize->add_section('lc_menu_options',\\n array(\\n 'title' => esc_html__('Menu Colors', 'heritage'), \\t\\t\\t\\t//Visible title of section\\n 'priority' => 2, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines what order this appears in\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t//Capability needed to tweak\\n 'description' => esc_html__('Choose menu colors', 'heritage'), //Descriptive tooltip\\n )\\n );\\n\\n /*menu bar color*/\\n $wp_customize->add_setting('lc_customize[menu_bar_bg_color]',\\n array(\\n 'default' => 'rgba(255, 255, 255, 0)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'menu_bar_bg_color', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Menu Bar Background Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[menu_bar_bg_color]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*sticky menu bar color*/\\n $wp_customize->add_setting('lc_customize[menu_sticky_bar_bg_color]',\\n array(\\n 'default' => 'rgba(255, 255, 255, 1)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'menu_sticky_bar_bg_color', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Sticky Menu Bar Background Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[menu_sticky_bar_bg_color]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*mobile menu bar color*/\\n $wp_customize->add_setting('lc_customize[menu_mobile_bg_color]',\\n array(\\n 'default' => 'rgba(255, 255, 255, 1)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'menu_mobile_bg_color', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Mobile Menu Background Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[menu_mobile_bg_color]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*mobile menu border bottom color*/\\n $wp_customize->add_setting('lc_customize[mobile_border_bottom_color]',\\n array(\\n 'default' => '#e1e1e1', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'mobile_border_bottom_color', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Mobile Menu Border Bottom Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[mobile_border_bottom_color]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*above the menu bar*/\\n $wp_customize->add_setting('lc_customize[above_the_menu_bar]',\\n array(\\n 'default' => 'rgba(241, 246, 247, 0.9)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'above_the_menu_bar', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Above The Menu Bar Background Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[above_the_menu_bar]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*menu text color*/\\n $wp_customize->add_setting('lc_customize[menu_text_color]',\\n array(\\n 'default' => '#000000', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new WP_Customize_Color_Control(\\n $wp_customize,\\n 'lc_menu_text_color',\\t \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Menu Text Color', 'heritage'),\\n 'section' => 'lc_menu_options',\\t//ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[menu_text_color]',\\n 'priority' => 2,\\n )\\n ));\\n\\n /*menu text hover color*/\\n $wp_customize->add_setting('lc_customize[menu_text_hover_color]',\\n array(\\n 'default' => '#ffffff', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new WP_Customize_Color_Control(\\n $wp_customize,\\n 'lc_menu_text_hover_color',\\t \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Menu Text Color on Hover', 'heritage'),\\n 'section' => 'lc_menu_options',\\t//ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[menu_text_hover_color]',\\n 'priority' => 3,\\n )\\n ));\\n\\n /*current menu item text color*/\\n $wp_customize->add_setting('lc_customize[current_menu_item_text_color]',\\n array(\\n 'default' => '#18aebf',\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new WP_Customize_Color_Control(\\n $wp_customize,\\n 'lc_current_menu_item_text_color',\\t \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Current Menu Item Text Color', 'heritage'),\\n 'section' => 'lc_menu_options',\\t//ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[current_menu_item_text_color]',\\n 'priority' => 5,\\n )\\n ));\\n\\n /*sub menu bg color*/\\n $wp_customize->add_setting('lc_customize[submenu_bg_color]',\\n array(\\n 'default' => 'rgba(255, 255, 255, 0)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'submenu_bg_color', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Sub Menu Background Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[submenu_bg_color]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 6\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*menu bar color*/\\n $wp_customize->add_setting('lc_customize[creative_menu_overlay_bg]',\\n array(\\n 'default' => 'rgba(255, 255, 255, 0.9)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control(\\n new Customize_Alpha_Color_Control( \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'creative_menu_overlay_bg', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Creative Menu Overlay Color', 'heritage'), \\t\\t\\t\\t\\t\\t\\t//Admin-visible name of the control\\n 'section' => 'lc_menu_options', \\t\\t\\t\\t\\t\\t\\t\\t// ID of the section this control should render in (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[creative_menu_overlay_bg]', \\t\\t\\t\\t\\t\\t//Which setting to load and manipulate (serialized is okay)\\n 'priority' => 7\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*top icons on creative menu*/\\n $wp_customize->add_setting('lc_customize[creative_icons_color]',\\n array(\\n 'default' => '#000000', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new WP_Customize_Color_Control(\\n $wp_customize,\\n 'lc_creative_icons_color',\\t \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Top Icons Color For Creative Menu. Also, the color for mobile menu icons, menu icon and search icon.', 'heritage'),\\n 'section' => 'lc_menu_options',\\t//ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[creative_icons_color]',\\n 'priority' => 8\\n )\\n ));\\n\\n /*login signup wish list color*/\\n $wp_customize->add_setting('lc_customize[login_wishlist_color]',\\n array(\\n 'default' => '#959595', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage' \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control(\\n new WP_Customize_Color_Control(\\n $wp_customize,\\n 'at_login_wishlist_color',\\t \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Text color for login, sign-up and wish list links on the menu bar.', 'heritage'),\\n 'section' => 'lc_menu_options',\\t//ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[login_wishlist_color]',\\n 'priority' => 8\\n )\\n ));\\n\\n /*buttons*/\\n $wp_customize->add_section( 'lc_button_colors',\\n array(\\n 'title' => esc_html__('Button Colors', 'heritage'), \\t\\t\\t\\t//Visible title of section\\n 'priority' => 3, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines what order this appears in\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t//Capability needed to tweak\\n 'description' => esc_html__('Set button colors.', 'heritage'), //Descriptive tooltip\\n )\\n );\\n\\n $wp_customize->add_setting( 'lc_customize[lc_use_custom_btn_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => 'use_defaults', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback'\\t=> 'HERITAGE_sanitize_buttons_custom',\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control('lc_use_custom_btn_color_control' ,\\n array(\\n 'label' \\t=> esc_html__('Buttons Colors', 'heritage'),\\n 'section' \\t=> 'lc_button_colors',\\n 'settings' \\t=> 'lc_customize[lc_use_custom_btn_color]',\\n 'priority' \\t=> 1,\\n 'type'\\t\\t=> 'select',\\n 'choices' => array(\\n 'use_defaults' \\t\\t=> esc_html__('Use Theme Defaults', 'heritage'),\\n 'custom_btn_colors' => esc_html__('Use Custom Colors', 'heritage' ),\\n ),\\n )\\n );\\n\\n /*btn bg color*/\\n $wp_customize->add_setting( 'lc_customize[lc_btn_bg_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#000000', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_btn_bg_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Button Background Color', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_btn_bg_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 2, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*btn text color*/\\n $wp_customize->add_setting( 'lc_customize[lc_btn_txt_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#ffffff', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_btn_txt_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Button Text Color', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_btn_txt_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 3, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*btn border color*/\\n $wp_customize->add_setting( 'lc_customize[lc_btn_border_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#000000', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_btn_border_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Button Border Color', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_btn_border_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 3, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*btn bg color on hover*/\\n $wp_customize->add_setting( 'lc_customize[lc_btn_bg_color_hover]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#555555', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_btn_bg_color_hover', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Button Background Color On Hover', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_btn_bg_color_hover]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 2, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*btn text color on hover*/\\n $wp_customize->add_setting( 'lc_customize[lc_btn_txt_color_hover]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#ffffff', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_btn_txt_color_hover', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Button Text Color On Hover', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_btn_txt_color_hover]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 3, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*btn border color on hover*/\\n $wp_customize->add_setting( 'lc_customize[lc_btn_border_color_hover]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#555555', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_btn_border_color_hover', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Button Border Color On Hover', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_button_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_btn_border_color_hover]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 3, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n\\n /*Various*/\\n $wp_customize->add_section( 'lc_various_colors',\\n array(\\n 'title' => esc_html__('Various Colors', 'heritage'), \\t\\t\\t\\t//Visible title of section\\n 'priority' => 3, \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Determines what order this appears in\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t//Capability needed to tweak\\n 'description' => esc_html__('Set general colors.', 'heritage'), //Descriptive tooltip\\n )\\n );\\n\\n /*bg color for single post with no featured img in blog template*/\\n $wp_customize->add_setting( 'lc_customize[lc_blog_brick_bg_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#1d1d1d', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_blog_brick_bg_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Background Color For Blog Items With No Featured Image', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_various_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_blog_brick_bg_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 1, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n /*bg color for minicart and wishlist popups*/\\n $wp_customize->add_setting( 'lc_customize[lc_minicart_wishlist_popup_bg_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => '#ffffff', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'sanitize_hex_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n //define the control\\n $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_minicart_wishlist_popup_bg_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Background Color For Minciart And Wishlist Popups', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_various_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_minicart_wishlist_popup_bg_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 2, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n\\n /*bg color for overlay on shop page*/\\n $wp_customize->add_setting( 'lc_customize[lc_shop_overlay_bg_color]', \\t//Give it a SERIALIZED name (so all theme settings can live under one db record)\\n array(\\n 'default' => 'rgba(255,255,255, 0.7)', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Default setting/value to save\\n 'sanitize_callback' => 'HERITAGE_sanitize_rgba_color',\\t\\t\\t\\t\\t//Sanitizer\\n 'type' => 'option', \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Is this an 'option' or a 'theme_mod'?\\n 'capability' => 'edit_theme_options', \\t\\t\\t\\t\\t\\t\\t//Optional. Special permissions for accessing this setting.\\n 'transport' => 'postMessage', \\t\\t\\t\\t\\t\\t\\t\\t\\t//What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?\\n )\\n );\\n\\n //define the control\\n $wp_customize->add_control( new Customize_Alpha_Color_Control( //Instantiate the color control class\\n $wp_customize, \\t\\t\\t\\t//Pass the $wp_customize object (required)\\n 'lc_shop_overlay_bg_color', \\t\\t\\t//Set a unique ID for the control\\n array(\\n 'label' => esc_html__('Background Color Product Actions Overlay On Shop Page', 'heritage'), //Admin-visible name of the control\\n 'section' => 'lc_various_colors', //ID of the section (can be one of yours, or a WordPress default section)\\n 'settings' => 'lc_customize[lc_shop_overlay_bg_color]', //Which setting to load and manipulate (serialized is okay)\\n 'priority' => 4, //Determines the order this control appears in for the specified section\\n )\\n ));\\n\\n }\",\n \"public function textColorProvider()\\n {\\n return [[\\\"#fff\\\"], [\\\"#000\\\"]];\\n }\",\n \"public function textColorProvider()\\n {\\n return [[\\\"#fff\\\"], [\\\"#000\\\"]];\\n }\",\n \"public static function plantuml_colour_scheme(): array\\n\\t{\\n\\t\\treturn [\\n\\t\\t\\t'background' => 'FireBrick',\\n\\t\\t\\t'border' => 'DarkRed',\\n\\t\\t\\t'text' => 'White',\\n\\t\\t];\\n\\t}\",\n \"function gopathemes_save_custom_css(){\\n \\n if (!function_exists('ot_get_option')) {\\n return;\\n }\\n \\n /* CUSTOM COLOR STYLING */\\n if (ot_get_option('haira_custom_styling', 'off') == 'on') {\\n\\n $primary_color = ot_get_option('haira_primary_color','#FFBA00');\\n $secondary_color = ot_get_option( 'haira_secondary_color', '#333333' );\\n $body_bg = ot_get_option( 'haira_body_background', '#f6f6f6' );\\n \\n $body_font = ot_get_option('haira_body_font', \\n array(\\n 'font-family' => \\\"source-sans-pro, sans-serif\\\", \\n 'font-color' => '#8a8a8a', \\n 'font-size' => '14px',\\n 'line-height' => '24px',\\n 'font-weight' => '400'\\n ));\\n \\n $heading_font = ot_get_option('haira_heading_font', \\n array(\\n 'font-family' => \\\"source-sans-pro, sans-serif\\\", \\n 'font-color' => '#333333', \\n 'font-weight' => '700'\\n ));\\n \\n $menu_typo = ot_get_option( 'haira_menu_typography',\\n array(\\n 'font-color' => '#FFFFFF', \\n 'font-size' => '13px', \\n 'font-weight' => '400', \\n 'letter-spacing' => '0.03em', \\n 'text-transform' => 'none'\\n ));\\n \\n $submenu_typo = ot_get_option( 'haira_submenu_typography',\\n array(\\n 'font-color' => '#FFFFFF', \\n 'font-size' => '12px', \\n 'font-weight' => '400', \\n 'line-height' => '45px', \\n 'letter-spacing' => '0.03em', \\n 'text-transform' => 'none'\\n ));\\n\\n $variables = array(\\n 'primary-color' => $primary_color,\\n 'second-color' => $secondary_color,\\n 'bg-color' => $body_bg,\\n \\n 'header-bg' => ot_get_option( 'haira_header_bg' ),\\n 'header-height' => ot_get_option( 'haira_header_height' ),\\n \\n 'menu-fs' => $menu_typo['font-size'],\\n 'menu-link-color' => $menu_typo['font-color'],\\n 'menu-link-color-hover' => ot_get_option( 'haira_menu_link_color_hover' ),\\n 'menu-link-bg-hover' => ot_get_option( 'haira_menu_link_bg_hover' ),\\n 'menu-link-ls' => $menu_typo['letter-spacing'],\\n 'menu-font-weight' => $menu_typo['font-weight'],\\n 'menu-text-transform' => $menu_typo['text-transform'],\\n \\n 'submenu-bg' => ot_get_option( 'haira_submenu_bg' ),\\n 'submenu-fs' => $submenu_typo['font-size'],\\n 'submenu-link-color' => $submenu_typo['font-color'],\\n 'submenu-link-color-hover' => ot_get_option( 'haira_submenu_link_color_on_hover' ),\\n 'submenu-link-bg-hover' => ot_get_option( 'haira_submenu_link_bg_on_hover' ),\\n 'submenu-link-ls' => $submenu_typo['letter-spacing'],\\n 'submenu-font-weight' => $submenu_typo['font-weight'],\\n 'submenu-text-transform' => $submenu_typo['text-transform'],\\n 'submenu-lh' => $submenu_typo['line-height'],\\n \\n 'heading-color' => $heading_font['font-color'],\\n 'heading-font' => $heading_font['font-family'],\\n 'hweight' => $heading_font['font-weight'],\\n \\n 'text-color' => $body_font['font-color'],\\n 'body-font' => $body_font['font-family'],\\n 'fsize' => $body_font['font-size'],\\n 'lheight' => $body_font['line-height'],\\n 'bweight' => $body_font['font-weight']\\n );\\n\\n\\n $default_vars = file( get_template_directory().'/scss/_vars.scss' );\\n \\n gopathemes_compile_css( haira_setup_scss_vars($default_vars, $variables) );\\n }\\n \\n}\",\n \"function xanthia_admin_updateColors($args)\\n{\\n\\textract($args);\\n\\t// check the session auth key\\n\\tif (!pnSecConfirmAuthKey())\\t{\\n\\t\\tpnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_BADAUTHKEY));\\n\\t\\tpnRedirect(pnModURL('Xanthia', 'admin', 'main'));\\n\\t\\treturn true;\\n\\t}\\n\\n\\t// grab our parameters in a secure manner\\n\\tlist($skin, $paletteid) = pnVarCleanFromInput('skin','paletteid');\\n\\tlist($palname,\\n\\t\\t $bgcolor,\\n\\t\\t $color1,\\n\\t\\t $color2,\\n\\t\\t $color3,\\n\\t\\t $color4,\\n\\t\\t $color5,\\n\\t\\t $color6,\\n\\t\\t $color7,\\n\\t\\t $color8,\\n\\t\\t $sepcolor,\\n\\t\\t $text1,\\n\\t\\t $text2,\\n\\t\\t $link,\\n\\t\\t $vlink,\\n\\t\\t $hover) = pnVarCleanFromInput('palname',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'bgcolor',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color1',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color2',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color3',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color4',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color5',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color6',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color7',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'color8',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'sepcolor',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'text1',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'text2',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'link',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'vlink',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t 'hover');\\n\\n\\t// check for our parameters\\n\\tif (empty($palname)) {\\n\\t\\tpnSessionSetVar('errormsg', pnVarPrepForDisplay(_XA_ARGSERROR));\\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\\n\\t\\treturn false;\\n\\t}\\n\\n\\t// load admin API\\n\\tif (!pnModAPILoad('Xanthia', 'admin')){\\n pnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_XA_APILOADFAILED));\\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\\n return true;\\n\\t}\\n\\n\\t// Update colors\\n\\tif (pnModAPIFunc('Xanthia', 'admin', 'updateColors',\\n\\t\\t\\t\\t\\t\\t array('skin'\\t => $skin,\\n 'paletteid' => $paletteid,\\n 'palname' => $palname,\\n 'bgcolor' => $bgcolor,\\n 'color1' => $color1,\\n 'color2' => $color2,\\n 'color3' => $color3,\\n 'color4' => $color4,\\n 'color5' => $color5,\\n 'color6' => $color6,\\n 'color7' => $color7,\\n 'color8' => $color8,\\n 'sepcolor' => $sepcolor,\\n 'text1' => $text1,\\n 'text2' => $text2,\\n 'link' => $link,\\n 'vlink' => $vlink,\\n 'hover' => $hover))) {\\n\\t\\t// Success\\n\\t\\tpnSessionSetVar('statusmsg', pnVarPrepForDisplay(_XA_COLORSUPDATED));\\n\\t\\t\\n // Load user API\\n\\tif (!pnModAPILoad('Xanthia','user')) {\\t \\n pnSessionSetVar('errormsg', pnVarPrepHTMLDisplay(_XA_APILOADFAILED));\\n pnRedirect(pnModURL('Xanthia', 'admin', 'view'));\\n return true;\\n\\t}\\n\\t\\n\\t\\n\\t$skinName = pnModAPIFunc('Xanthia','user','getSkinFromID',\\n\\t\\t\\tarray('id' => $skin));\\n\\n\\t\\t\\tif ($paletteid == pnModGetVar('Xanthia',''.$skinName.'use')){\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t$cachedthemes = pnModGetVar('Xanthia',''.$skinName.'themecache');\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif (isset($cachedthemes)){\\n\\t\\t\\t\\t\\tpnModAPIFunc('Xanthia', 'admin', 'writepalettescache', array('skinid' => $skin));\\n\\t\\t\\t\\t\\tpnModAPIFunc('Xanthia', 'admin', 'writestylesheet', array('skinid' => $skin,\\n\\t\\t\\t\\t\\t\\t\\t'paletteid' => $paletteid));\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n }\\n\\t// Work completed, return to main\\n\\tpnRedirect(pnModURL('Xanthia', 'admin', 'editTheme',\\n\\t\\t\\t\\t\\t\\t\\tarray('todo' => 'colors',\\n\\t\\t\\t\\t\\t\\t\\t 'skin' => $skinName)));\\n\\treturn true;\\n}\",\n \"abstract public function register_style();\",\n \"public function get_color_scheme() {\\r\\n\\r\\n return \\tarray(\\r\\n 'epsilon_general_separator' => array(\\r\\n 'label' => esc_html__( 'Accent Colors', 'unapp' ),\\r\\n 'section' => 'colors',\\r\\n 'separator' => true,\\r\\n ),\\r\\n\\r\\n 'epsilon_accent_color' => array(\\r\\n 'label' => esc_html__( 'Accent Color #1', 'unapp' ),\\r\\n 'description' => esc_html__( 'Theme main color.', 'unapp' ),\\r\\n 'default' => '#798eea',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_accent_color_second' => array(\\r\\n 'label' => esc_html__( 'Accent Color #2', 'unapp' ),\\r\\n 'description' => esc_html__( 'The second main color.', 'unapp' ),\\r\\n 'default' => '#4aca85',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n 'epsilon_accent_color_third' => array(\\r\\n 'label' => esc_html__( 'Accent Color #3', 'unapp' ),\\r\\n 'description' => esc_html__( 'The third main color.', 'unapp' ),\\r\\n 'default' => '#499bea',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_text_separator' => array(\\r\\n 'label' => esc_html__( 'Typography Colors', 'unapp' ),\\r\\n 'section' => 'colors',\\r\\n 'separator' => true,\\r\\n ),\\r\\n\\r\\n 'epsilon_title_color' => array(\\r\\n 'label' => esc_html__( 'Title Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for titles.', 'unapp' ),\\r\\n 'default' => '#303133',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_text_color' => array(\\r\\n 'label' => esc_html__( 'Text Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for paragraphs.', 'unapp' ),\\r\\n 'default' => '#808080',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_link_color' => array(\\r\\n 'label' => esc_html__( 'Link Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for links.', 'unapp' ),\\r\\n 'default' => '#4aca85',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_link_hover_color' => array(\\r\\n 'label' => esc_html__( 'Link Hover Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for hovered links.', 'unapp' ),\\r\\n 'default' => '#5ed092',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_menu_separator' => array(\\r\\n 'label' => esc_html__( 'Navigation Colors', 'unapp' ),\\r\\n 'section' => 'colors',\\r\\n 'separator' => true,\\r\\n ),\\r\\n\\r\\n \\r\\n\\r\\n 'epsilon_menu_item_color' => array(\\r\\n 'label' => esc_html__( 'Menu item color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu item color.', 'unapp' ),\\r\\n 'default' => '#ffffff',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_menu_item_hover_color' => array(\\r\\n 'label' => esc_html__( 'Menu item hover color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu item hover color.', 'unapp' ),\\r\\n 'default' => '#ffffff',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_menu_item_active_color' => array(\\r\\n 'label' => esc_html__( 'Menu item active color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu item active color.', 'unapp' ),\\r\\n 'default' => '#ffffff',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_dropdown_menu_background' => array(\\r\\n 'label' => esc_html__( 'Dropdown background', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu background.', 'unapp' ),\\r\\n 'default' => '#000000',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_dropdown_menu_item_color' => array(\\r\\n 'label' => esc_html__( 'Dropdown menu item color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu item color.', 'unapp' ),\\r\\n 'default' => '#999999',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_dropdown_menu_item_hover_color' => array(\\r\\n 'label' => esc_html__( 'Dropdown menu item hover color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu item hover color.', 'unapp' ),\\r\\n 'default' => '#ffffff',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_dropdown_menu_item_active_color' => array(\\r\\n 'label' => esc_html__( 'Dropdown menu item active color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the menu item active color.', 'unapp' ),\\r\\n 'default' => '#ffffff',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_separator' => array(\\r\\n 'label' => esc_html__( 'Footer Colors', 'unapp' ),\\r\\n 'section' => 'colors',\\r\\n 'separator' => true,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_contact_background' => array(\\r\\n 'label' => esc_html__( 'Footer Widget Background', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the footer widget background.', 'unapp' ),\\r\\n 'default' => '#303133',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_background' => array(\\r\\n 'label' => esc_html__( 'Footer Copyright Background', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the footer copyright background.', 'unapp' ),\\r\\n 'default' => '#262626',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_title_color' => array(\\r\\n 'label' => esc_html__( 'Footer Title Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the footer widget title.', 'unapp' ),\\r\\n 'default' => '#e6e6e6',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_text_color' => array(\\r\\n 'label' => esc_html__( 'Text Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the footer text.', 'unapp' ),\\r\\n 'default' => '#808080',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_link_color' => array(\\r\\n 'label' => esc_html__( 'Link Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the footer link.', 'unapp' ),\\r\\n 'default' => '#4aca85',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n 'epsilon_footer_link_hover_color' => array(\\r\\n 'label' => esc_html__( 'Link Hover Color', 'unapp' ),\\r\\n 'description' => esc_html__( 'The color used for the footer link hover.', 'unapp' ),\\r\\n 'default' => '#5ed092',\\r\\n 'section' => 'colors',\\r\\n 'hover-state' => false,\\r\\n ),\\r\\n\\r\\n );\\r\\n\\t}\",\n \"function dwwp_register_custom_settings_colors() {\\n\\tregister_setting( 'colors-settings-group','color1' );\\n\\t// Register Color Background Two\\n\\tregister_setting( 'colors-settings-group','color2' );\\n\\t// Register Color Main Color\\n\\tregister_setting( 'colors-settings-group','color3' );\\n\\t// Register Color Main Color\\n\\tregister_setting( 'colors-settings-group','color4' );\\n\\t// Register Color Main Color\\n\\tregister_setting( 'colors-settings-group','color5' );\\n\\t// Register Color Main Color\\n\\tregister_setting( 'colors-settings-group','color6' );\\n\\t// Register Color Main Color\\n\\tregister_setting( 'colors-settings-group','color7' );\\n\\t// Register Color Fonts\\n\\tregister_setting( 'colors-settings-group','color8' );\\n\\t// Register Color Fonts\\n\\tregister_setting( 'colors-settings-group','infoColor' );\\n\\t// Register Transparent Image Background Color\\n\\tregister_setting( 'colors-settings-group','transparentColor' );\\n\\t// Register Font Color Have Deffrent Background\\n\\tregister_setting( 'colors-settings-group','fontColorHaveBackground' );\\n\\t// Register Scroll Color\\n\\tregister_setting( 'colors-settings-group','mainScrollColor' );\\n\\t// Register Words Under Logo\\n\\tregister_setting( 'colors-settings-group','wordsUnderLogo' );\\n\\t// Register Notification Upperbar\\n\\tregister_setting( 'colors-settings-group','notificationUpperbar' );\\n\\t// Register Notification Upperbar Link\\n\\tregister_setting( 'colors-settings-group','notificationUpperbarLink' );\\n\\t// Shoose Your Logo Image\\n\\tregister_setting( 'colors-settings-group','logoImages' );\\n\\t// Shoose Your Images For Header\\n\\tregister_setting( 'colors-settings-group','headerImages' );\\n\\n\\tadd_settings_section( 'main-colors-settings', '', 'colors_main__options', 'colors_setting' );\\n\\n\\t// Color Background One\\n\\tadd_settings_field( 'color1', 'background One', 'costum_setting_colors_background1_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Color Background Two\\n\\tadd_settings_field( 'color2', 'background Two', 'costum_setting_colors_background2_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Main Color\\n\\tadd_settings_field( 'color3', 'Main Color 1', 'costum_setting_colors_color3_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Main Color\\n\\tadd_settings_field( 'color4', 'Main Color 2', 'costum_setting_colors_color4_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Main Color\\n\\tadd_settings_field( 'color5', 'Main Color 3', 'costum_setting_colors_color5_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Main Color\\n\\tadd_settings_field( 'color6', 'Main Color 4', 'costum_setting_colors_color6_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Main Color\\n\\tadd_settings_field( 'color7', 'Main Color 5', 'costum_setting_colors_color7_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Fonts Color One\\n\\tadd_settings_field( 'color8', 'Fonts Color One', 'costum_setting_colors_color8_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Fonts Color Two\\n\\tadd_settings_field( 'infoColor', 'Fonts Color Two', 'costum_setting_colors_infoColor_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// font Color Have Background\\n\\tadd_settings_field( 'fontColorHaveBackground', 'Font Color Three', 'costum_setting_colors_fontColorHaveBackground_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Transparent Image\\n\\tadd_settings_field( 'transparentColor', 'Transparent Image', 'costum_setting_colors_transparentColor_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Scroll Image\\n\\tadd_settings_field( 'mainScrollColor', 'main Scroll Color', 'costum_setting_colors_mainScrollColor_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Words Under Logo\\n\\tadd_settings_field( 'wordsUnderLogo', 'Words Under Logo', 'costum_setting_colors_wordsUnderLogo_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Notification Upperbar\\n\\tadd_settings_field( 'notificationUpperbar', 'Notification Upperbar', 'costum_setting_notificationUpperbar_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Notification Upperbar\\n\\tadd_settings_field( 'notificationUpperbarLink', 'Notification Upperbar Link', 'costum_setting_notificationUpperbarLink_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Shoose Your Logo Image\\n\\tadd_settings_field( 'logoImages', 'Logo Images', 'costum_setting_LogoImages_callback', 'colors_setting', 'main-colors-settings' );\\n\\t// Shoose Your Images For Header\\n\\tadd_settings_field( 'headerImages', 'Header Images', 'costum_setting_headerImages_callback', 'colors_setting', 'main-colors-settings' );\\n\\n}\",\n \"function colorMap(): array\\n{\\n return [\\n 'black' => 'white',\\n 'red' => 'white',\\n 'green' => 'black',\\n 'yellow' => 'black',\\n 'blue' => 'white',\\n 'magenta' => 'white',\\n 'cyan' => 'black',\\n 'white' => 'black',\\n 'default' => 'white',\\n ];\\n}\",\n \"function costum_setting_colors_color3_callback() {\\n\\t$color3 = esc_attr( get_option( 'color3' ) ); ?>\\n\\n\\t
    \\n\\t\\t\\\" class=\\\"input-color\\\" type=\\\"color\\\">\\n\\t
    \\n\\n\\t\\n\\n\\t
    \\n\\t\\t\\\" class=\\\"input-color\\\" type=\\\"color\\\">\\n\\t
    \\n\\n\\toptions->outputType === QROutputInterface::GDIMAGE_JPG || !$this->options->imageTransparent){\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\t$transparencyColor = $this->background;\\n\\n\\t\\tif($this::moduleValueIsValid($this->options->transparencyColor)){\\n\\t\\t\\t$transparencyColor = $this->prepareModuleValue($this->options->transparencyColor);\\n\\t\\t}\\n\\n\\t\\timagecolortransparent($this->image, $transparencyColor);\\n\\t}\",\n \"public function color()\\n {\\n }\",\n \"function generateSocialColorPalette()\\n {\\n $socialnetworks = array(\\\"twitter\\\", \\\"instagram\\\", \\\"facebook\\\", \\\"storify\\\");\\n \\n $properties = array(\\\"cti\\\", \\\"cte\\\", \\\"ca\\\", \\\"cbg\\\", \\\"cbc\\\", \\\"cbs\\\", \\\"cbr\\\", \\\"cfs\\\", \\\"ctmtb\\\", \\\"ctmlr\\\");\\n /*$properties[$socialnetowks[1]] = array(\\\"cti\\\", \\\"cte\\\", \\\"ca\\\", \\\"cbg\\\", \\\"cbc\\\", \\\"cbs\\\", \\\"cbr\\\", \\\"cfs\\\", \\\"cmtb\\\", \\\"cmlr\\\");\\n $properties[$socialnetowks[2]] = array(\\\"cti\\\", \\\"cte\\\", \\\"ca\\\", \\\"cbg\\\", \\\"cbc\\\", \\\"cbs\\\", \\\"cbr\\\", \\\"cfs\\\", \\\"cmtb\\\", \\\"cmlr\\\");\\n $properties[$socialnetowks[3]] = array(\\\"cti\\\", \\\"cte\\\", \\\"ca\\\", \\\"cbg\\\", \\\"cbc\\\", \\\"cbs\\\", \\\"cbr\\\", \\\"cfs\\\", \\\"cmtb\\\", \\\"cmlr\\\");\\n */\\n // Twitter default values\\n $default_properties[$socialnetworks[0]] = array(\\\"#ffffff\\\", \\\"#ffffff\\\", \\\"#002957\\\", \\\"#4099ff\\\", \\\"\\\", \\\"0\\\", \\\"10\\\", \\\"12\\\", \\\"20\\\", \\\"20\\\");\\n // Instagram default values\\n $default_properties[$socialnetworks[1]] = array(\\\"#ffffff\\\", \\\"#000000\\\", \\\"#ffffff\\\", \\\"#517fa4\\\", \\\"\\\", \\\"0\\\", \\\"10\\\", \\\"12\\\", \\\"20\\\", \\\"20\\\");\\n // Facebook default values\\n $default_properties[$socialnetworks[2]] = array(\\\"#ffffff\\\", \\\"#000000\\\", \\\"#ffffff\\\", \\\"#3B5998\\\", \\\"\\\", \\\"0\\\", \\\"10\\\", \\\"12\\\", \\\"20\\\", \\\"20\\\");\\n // Storify default values\\n $default_properties[$socialnetworks[3]] = array(\\\"#3a96db\\\", \\\"#3a96db\\\", \\\"#dfe5ea\\\", \\\"#a9bbcc\\\", \\\"\\\", \\\"0\\\", \\\"10\\\", \\\"12\\\", \\\"20\\\", \\\"20\\\");\\n \\n \\n $db = JFactory::getDBO();\\n\\n foreach($socialnetworks as $socialnetwork)\\n {\\n $category_id = self::checkCategoryExists($socialnetwork);\\n if($category_id)\\n {\\n $propertyIndex = 0;\\n foreach($properties as $property)\\n {\\n $value = $default_properties[$socialnetwork][$propertyIndex++]; \\n if(!self::checkExistingCategoryColorPalette($property, $category_id)) \\n {\\n $sql = \\\"INSERT INTO #__activategrid (context, name, value) VALUES ('category_color', '\\\".$property.\\\"_\\\".$category_id.\\\"', '{$value}');\\\";\\n $db->setQuery($sql);\\n $db->execute();\\n }\\n }\\n }\\n }\\n \\n \\n // Default properties for other categories\\n $default_properties[\\\"other\\\"] = array(\\\"#000000\\\", \\\"#000000\\\", \\\"#002bff\\\", \\\"#ebebeb\\\", \\\"\\\", \\\"0\\\", \\\"10\\\", \\\"12\\\", \\\"20\\\", \\\"20\\\");\\n \\n // Other categories \\n $sql = \\\"SELECT id FROM #__categories WHERE extension='com_content' AND title <> 'twitter' AND title <> 'facebook' AND title <> 'instagram' AND title <> 'storify'\\\";\\n $db->setQuery($sql);\\n $db->execute();\\n $result = $db->loadObjectList();\\n foreach($result as $category)\\n { \\n $category_id = $category->id; \\n $propertyIndex = 0;\\n foreach($properties as $property)\\n {\\n $value = $default_properties[\\\"other\\\"][$propertyIndex++]; \\n if(!self::checkExistingCategoryColorPalette($property, $category_id)) \\n {\\n $sql = \\\"INSERT INTO #__activategrid (context, name, value) VALUES ('category_color', '\\\".$property.\\\"_\\\".$category_id.\\\"', '{$value}');\\\";\\n $db->setQuery($sql);\\n $db->execute();\\n }\\n }\\n }\\n }\",\n \"function wp_tinycolor_hue_to_rgb($p, $q, $t)\\n {\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.72150284","0.69665104","0.6926205","0.64307857","0.614706","0.6119006","0.61009115","0.60835445","0.60757315","0.60445267","0.60401005","0.6023986","0.60196173","0.5969022","0.5923433","0.586679","0.5779214","0.5763321","0.57502395","0.5736252","0.5730938","0.5656518","0.5647034","0.56443346","0.5594995","0.5584178","0.55325514","0.5528638","0.5492364","0.5481506","0.5441452","0.543912","0.5435025","0.54269475","0.54269475","0.54113346","0.5381968","0.5363842","0.5356244","0.53519833","0.53498834","0.5345584","0.53266245","0.5318394","0.53179044","0.53014684","0.52980715","0.529352","0.5288625","0.52757704","0.52582157","0.5248254","0.5229616","0.52283025","0.52214926","0.5198083","0.51947683","0.518959","0.51894873","0.51831734","0.51584715","0.5158285","0.51401573","0.51384425","0.5129733","0.5129733","0.5129733","0.5129733","0.5129733","0.5129733","0.51297265","0.5126454","0.5116464","0.5111363","0.5109498","0.5109008","0.51080155","0.5096496","0.50936574","0.50816524","0.50808775","0.50802386","0.50761116","0.5074816","0.5074816","0.50695044","0.506775","0.50671923","0.5062138","0.505741","0.50524026","0.5050118","0.50488764","0.50406975","0.5033328","0.5033328","0.50320965","0.5032052","0.5030233","0.5024881"],"string":"[\n \"0.72150284\",\n \"0.69665104\",\n \"0.6926205\",\n \"0.64307857\",\n \"0.614706\",\n \"0.6119006\",\n \"0.61009115\",\n \"0.60835445\",\n \"0.60757315\",\n \"0.60445267\",\n \"0.60401005\",\n \"0.6023986\",\n \"0.60196173\",\n \"0.5969022\",\n \"0.5923433\",\n \"0.586679\",\n \"0.5779214\",\n \"0.5763321\",\n \"0.57502395\",\n \"0.5736252\",\n \"0.5730938\",\n \"0.5656518\",\n \"0.5647034\",\n \"0.56443346\",\n \"0.5594995\",\n \"0.5584178\",\n \"0.55325514\",\n \"0.5528638\",\n \"0.5492364\",\n \"0.5481506\",\n \"0.5441452\",\n \"0.543912\",\n \"0.5435025\",\n \"0.54269475\",\n \"0.54269475\",\n \"0.54113346\",\n \"0.5381968\",\n \"0.5363842\",\n \"0.5356244\",\n \"0.53519833\",\n \"0.53498834\",\n \"0.5345584\",\n \"0.53266245\",\n \"0.5318394\",\n \"0.53179044\",\n \"0.53014684\",\n \"0.52980715\",\n \"0.529352\",\n \"0.5288625\",\n \"0.52757704\",\n \"0.52582157\",\n \"0.5248254\",\n \"0.5229616\",\n \"0.52283025\",\n \"0.52214926\",\n \"0.5198083\",\n \"0.51947683\",\n \"0.518959\",\n \"0.51894873\",\n \"0.51831734\",\n \"0.51584715\",\n \"0.5158285\",\n \"0.51401573\",\n \"0.51384425\",\n \"0.5129733\",\n \"0.5129733\",\n \"0.5129733\",\n \"0.5129733\",\n \"0.5129733\",\n \"0.5129733\",\n \"0.51297265\",\n \"0.5126454\",\n \"0.5116464\",\n \"0.5111363\",\n \"0.5109498\",\n \"0.5109008\",\n \"0.51080155\",\n \"0.5096496\",\n \"0.50936574\",\n \"0.50816524\",\n \"0.50808775\",\n \"0.50802386\",\n \"0.50761116\",\n \"0.5074816\",\n \"0.5074816\",\n \"0.50695044\",\n \"0.506775\",\n \"0.50671923\",\n \"0.5062138\",\n \"0.505741\",\n \"0.50524026\",\n \"0.5050118\",\n \"0.50488764\",\n \"0.50406975\",\n \"0.5033328\",\n \"0.5033328\",\n \"0.50320965\",\n \"0.5032052\",\n \"0.5030233\",\n \"0.5024881\"\n]"},"document_score":{"kind":"string","value":"0.7064425"},"document_rank":{"kind":"string","value":"1"}}},{"rowIdx":448,"cells":{"query":{"kind":"string","value":"Remove page templates inherited from the parent theme."},"document":{"kind":"string","value":"function child_theme_remove_page_template( $page_templates ) {\n\tunset( $page_templates['page-templates/blank.php'],$page_templates['page-templates/empty.php'], $page_templates['page-templates/fullwidthpage.php'], $page_templates['page-templates/left-sidebarpage.php'], $page_templates['page-templates/both-sidebarspage.php'] );\n\treturn $page_templates;\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function be_remove_genesis_page_templates( $page_templates ) {\n\tunset( $page_templates['page_archive.php'] );\n\tunset( $page_templates['page_blog.php'] );\n\treturn $page_templates;\n}","function wmf_undo_redirect_template_changes_in_admin() {\n\tremove_filter( 'page_link', 'wmf_skip_redirect_template_in_page_link' );\n\tremove_filter( 'the_title', 'wmf_skip_redirect_template_in_title' );\n}","function kanso_custom_menu_page_removing() {\n //remove_menu_page( 'themes.php' ); // Appearance -- (!) There are other ways to do this\n //remove_menu_page( itsec ); // iThemes Security -- Very specific, consider revising\n}","function remove_parent_features() {\n \tremove_action( 'init', 'gdlr_register_portfolio_admin_option' );\n remove_action('init', 'gdlr_init_page_feature');\n\n //remove theme support for post formats\n remove_theme_support('post-formats');\n}","function jn_htmlInUrl_deactive() {\r\n\t\tglobal $wp_rewrite;\r\n\t\tif ( in_array( 'page', $this->selected_post_type ) ) {\r\n\t\t\t$wp_rewrite->page_structure = str_replace( '.html','',$wp_rewrite->page_structure );\r\n\t\t\t$wp_rewrite->flush_rules();\r\n\t\t}\r\n\t}","function ws_kill_parent_theme($themes) {\r\n\tunset( $themes['thematic'] );\r\n\treturn $themes;\r\n}","public static function use_parent_template() {\n add_action('save_post', array('core_admin', 'switch_page_template'));\n }","function remove_post_type_support_for_pages() {\n\t\t// UNCOMMENT if you want to remove some stuff\n\t\t// Replace 'page' with 'post' or a custom post/content type\n\t\t# remove_post_type_support( 'page', 'title' );\n\t\t// remove_post_type_support( 'page', 'editor' );\n\t\tremove_post_type_support( 'page', 'thumbnail' );\n\t\t# remove_post_type_support( 'page', 'page-attributes' );\n\t\t# remove_post_type_support( 'page', 'excerpt' );\n}","public function remove_page_editor() {\n\t\tremove_post_type_support('page', 'editor');\n\t}","function remove_parent_widgets(){\n\t\t\n\t// remove footer sidebars\n\tunregister_sidebar( 'sidebar-3' );\n\tunregister_sidebar( 'sidebar-4' );\n\tunregister_sidebar( 'sidebar-5' );\n\t\n\t\n}","function unhook_parent_style() {\n \n wp_dequeue_style( 'genericons' );\n\twp_deregister_style( 'genericons' );\n wp_dequeue_style( 'twentyfifteen-ie' );\n\twp_deregister_style( 'twentyfifteen-ie' );\n wp_dequeue_style( 'twentyfifteen-ie7' );\n\twp_deregister_style( 'twentyfifteen-ie7' );\n wp_dequeue_style( 'twentyfifteen-fonts' );\n\twp_deregister_style( 'twentyfifteen-fonts' );\n}","function _ut_remove_default_vc_templates( $data ) {\r\n \r\n $data = array();\r\n \r\n return $data;\r\n \r\n}","function remove_guttenberg_from_pages() {\n\tremove_post_type_support( 'youthclub', 'editor' );\n}","function remove_theme_mods()\n {\n }","function _remove_theme_attribute_in_block_template_content($template_content)\n {\n }","function childtheme_no_superfish(){\r\n\tremove_theme_support('thematic_superfish');\r\n}","function remove_post_support() {\n remove_post_type_support( 'page', 'editor' );\n }","public function deleteCompiledTemplates() {\n\t\t// templates\n\t\t$filenames = glob(WCF_DIR.'templates/compiled/*_'.$this->languageID.'_*.php');\n\t\tif ($filenames) foreach ($filenames as $filename) @unlink($filename);\n\t\t\n\t\t// acp templates\n\t\t$filenames = glob(WCF_DIR.'acp/templates/compiled/*_'.$this->languageID.'_*.php');\n\t\tif ($filenames) foreach ($filenames as $filename) @unlink($filename);\n\t}","function deactivate() {\r\n global $wp_rewrite;\r\n\r\n $wp_rewrite->page_structure = str_replace(\".\" . $this->options->extension, \"\", $wp_rewrite->page_structure);\r\n $wp_rewrite->flush_rules();\r\n }","public static function register_templates() {\n if (version_compare(floatval(get_bloginfo('version')), '4.7', '<')) {\n // 4.6 and older\n add_filter('page_attributes_dropdown_pages_args', array(get_called_class(), 'register_project_templates'));\n } else {\n // Add a filter to the wp 4.7 version attributes metabox\n add_filter('theme_page_templates', array(get_called_class(), 'add_new_template'));\n }\n // Add a filter to the save post to inject out template into the page cache\n add_filter('wp_insert_post_data', array(get_called_class(), 'register_project_templates'));\n // Add a filter to the template include to determine if the page has our \n // template assigned and return it's path\n add_filter('template_include', array(get_called_class(), 'view_project_template'));\n }","function remove_menu_pages() {\n //remove_menu_page( 'upload.php' ); //Media\n remove_menu_page( 'edit-comments.php' ); //Comments\n //remove_menu_page( 'themes.php' ); //Appearance\n //remove_menu_page( 'tools.php' ); //Tools\n //remove_menu_page( 'options-general.php' ); //Settings\n //remove_menu_page( 'edit.php?post_type=page' );\n \n}","function kill_unused_templates() {\n\tglobal $wp_query, $post;\n\n\tif ( is_author() || is_attachment() || is_day() || is_search() || is_feed() ) {\n\t\twp_redirect( home_url() );\n\t\texit();\n\t}\n}","public static function switch_page_template() {\n\n global $post;\n\n $post_type = get_post_type($post->ID);\n\n if (is_page() or is_post_type_hierarchical($post_type)) {// Checks if current post type is a page, rather than a post\n $current_page_template = get_post_meta($post->ID, '_wp_page_template', true);\n $parent_page_template = get_post_meta($post->post_parent, '_wp_page_template', true);\n $parents = get_post_ancestors($post->ID);\n\n if ($parents) {\n update_post_meta($post->ID, '_wp_page_template', $parent_page_template, $current_page_template);\n }\n }// End check for page\n }","function jetpackme_remove_rp() {\n\tif ( class_exists( 'Jetpack_relatedPosts')) {\n\t\t$jprp = Jetpack_relatedPosts::init();\n\t\t$callback = array ( $jprp, 'filter_add_target_to_dom' );\n\t\tremove_filter( 'the_content', $callback, 40);\n\t}\n}","final public function removePages(): void\n {\n $this->pages = [];\n $this->index = [];\n }","function rd_fix_blog_tab_on_cpt($classes, $item, $args) {\n if (!is_singular('post') && !is_category() && !is_tag()) {\n $blog_page_id = intval(get_option('page_for_posts'));\n if ($blog_page_id != 0) {\n if ($item->object_id == $blog_page_id) {\n unset($classes[array_search('current_page_parent', $classes)]);\n }\n }\n }\n return $classes;\n}","function custom_page_home() {\n\tif(isset($_GET['post']))\n\t\t$post_id = $_GET['post'];\n\telse if(isset($_POST['post_ID']))\n\t\t$post_id = $_POST['post_ID'];\n\n\tif(!isset($post_id) || empty($post_id))\n\t\treturn;\n\n\t// Get the name of the Page Template file.\n\t$template_file = get_post_meta($post_id, '_wp_page_template', true);\n\n\t// Do something for the template\n\tif($template_file == \"home\") {\n\t\tremove_post_type_support('page','author');\n\t\tremove_post_type_support('page','custom-fields');\n\t\tremove_post_type_support('page','comments');\n\t\tremove_post_type_support('page','excerpt' );\n\t\tremove_post_type_support('page','trackbacks');\n\t\tremove_post_type_support('page','revisions');\n\t}\n}","public static function remove_menu_pages() {\n\t\t$post_type = Registrations::get_post_type();\n\n\t\tremove_submenu_page( \"edit.php?post_type={$post_type}\", \"manage_frontend_uploader_{$post_type}s\" );\n\t\tremove_submenu_page( 'upload.php', 'manage_frontend_uploader' );\n\t}","protected function uninstall_templates()\n {\n // initialize the Finder\n $finder = new Finder();\n // we need only the top level\n $finder->depth('== 0');\n // get all directories in the /Examples\n $finder->directories()->in(MANUFAKTUR_PATH.'/TemplateTools/Examples');\n \n foreach ($finder as $directory) {\n $template_name = $directory->getFilename();\n $target_directory = CMS_PATH.'/templates/'.$template_name;\n \n if ($this->app['filesystem']->exists($target_directory)) {\n // the template exists - remove it\n $this->app['filesystem']->remove($target_directory);\n }\n \n $this->app['db']->delete(CMS_TABLE_PREFIX.'addons', \n array('type' => 'template', 'directory' => $template_name));\n }\n }","function _preview_theme_template_filter()\n {\n }","function my_remove_post_type_support()\n{\n\tremove_post_type_support('page', 'editor');\n\tremove_post_type_support('post', 'editor');\n\tremove_post_type_support('companies', 'editor');\n\tremove_post_type_support('group_of_companies', 'editor');\n}","public function remove_sub_menus() {\n remove_menu_page( 'edit-comments.php' );\n\n if ( current_user_can( 'editor' ) ) {\n remove_submenu_page( 'themes.php', 'themes.php' );\n\n global $submenu;\n unset( $submenu['themes.php'][6] );\n }\n }","function ti_wp_foundation_theme_head_cleanup() {\n\t// Remove category feeds\n\t// remove_action( 'wp_head', 'feed_links_extra', 3 );\n\t// Remove post and comment feeds\n\t// remove_action( 'wp_head', 'feed_links', 2 );\n\t// Remove EditURI link\n\tremove_action( 'wp_head', 'rsd_link' );\n\t// Remove Windows live writer\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\t// Remove index link\n\tremove_action( 'wp_head', 'index_rel_link' );\n\t// Remove previous link\n\tremove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );\n\t// Remove start link\n\tremove_action( 'wp_head', 'start_post_rel_link', 10, 0 );\n\t// Remove links for adjacent posts\n\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\n\t// Remove WP version\n\tremove_action( 'wp_head', 'wp_generator' );\n}","function my_remove_menu_pages(){\n\t// remove_menu_page('edit.php?post_type=acf');\n\t// remove_menu_page( 'index.php' ); //Dashboard\n\t//remove_menu_page( 'edit.php' ); \t//Posts\n\t// remove_menu_page( 'upload.php' ); //Media\n\t// remove_menu_page( 'edit.php?post_type=page' ); \t//Pages\n\t//remove_menu_page( 'edit-comments.php' ); \t//Comments\n\t// remove_menu_page( 'themes.php' ); //Appearance\n\t// remove_menu_page( 'plugins.php' ); //Plugins\n\t#remove_menu_page( 'users.php' ); \t//Users\n\t//remove_menu_page( 'tools.php' ); \t//Tools\n\t// remove_menu_page( 'options-general.php' ); //Settings\n}","function remove_genesis_features() {\n remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );\n remove_action('genesis_footer', 'genesis_do_footer');\n remove_action('genesis_footer', 'genesis_footer_markup_open', 5);\n remove_action('genesis_footer', 'genesis_footer_markup_close', 15);\n remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );\n remove_action( 'genesis_entry_footer', 'genesis_post_meta' );\n}","function PREFIX_remove_page_class_from_post_class($classes) {\n\t$classes = array_diff( $classes, array(\"page\") );\n\n\treturn $classes;\n}","function remove_menus(){\n// remove_menu_page( 'edit.php' ); //Posts\n\n// remove_menu_page( 'edit.php?post_type=page' ); //Pages\n\n\n}","public function Setup_Templates_List() : void\n {\n $this->Templates = apply_filters(\"WP_Plugin_virtual_pages_templates\",[\n ...array('page.php', 'index.php' ), ...(array) $this->Template]);\n }","function my_remove_menu_pages() {\n global $menu;\n if (!current_user_can('manage_options')) {\n remove_menu_page('tools.php');\n remove_menu_page('edit-comments.php');\n\t remove_menu_page('upload.php');\n\t remove_menu_page('edit.php');\n\t\tremove_menu_page('edit.php?post_type=page');\n\t\tremove_menu_page('index.php');\n\t\tunset($menu[4]);\n }\n}","function customize_themes_print_templates()\n {\n }","public static function plugin_deactivated() {\n\n\t\t// define page array\n\t\t$page_definitions = [\n\t\t\t'codeable-users-table-shortcode-page' => [\n\t\t\t\t'title' => __( 'Codeable Users Table Shortcode Page', 'codeable-user-tables' ),\n\t\t\t\t'content' => '[codeable_users_table]'\n\t\t\t],\n\t\t];\n\n\t\tforeach ( $page_definitions as $slug => $page ) {\n\t\t\t// remove all the data we created\n\t\t\t$page = get_page_by_path( $slug, OBJECT, 'page' );\n\t\t\twp_delete_post( $page->ID, true );\n\t\t}\n\n\t}","public function page_templates()\n {\n // Single Chiro Quiz page template\n if (is_single() && get_post_type() == $this->token) {\n if (!defined('PLATFORM_FUNNEL')) {\n define('PLATFORM_FUNNEL', 'CHIRO_QUIZ');\n }\n\n include($this->template_path . 'single-quiz.php');\n exit;\n }\n }","public function removeNodeThemes()\n\t{\n\t\t$this->removeNode( 'themes' );\n\t}","function minim_preprocess_page(&$vars) {\n //for some reason system main inserts itself into content region even if empty\n //so we remove it here to prevent bloat\n //to test if this is still applicable comment out, clear caches and look for a white space at\n //bottom of the front page\n if (count($vars['page']['content']) == 1 && empty($vars['page']['content']['system_main']['main']['#markup'])) {\n unset($vars['page']['content']);\n }\n\n //default styling for tabs\n if (!empty($vars['tabs'])) {\n foreach ($vars['tabs']['#primary'] as $tab_key => $tab) {\n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'padding-xxs'; \n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'margin-s'; \n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'block-link'; \n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'bg-green'; \n }\n }\n\n //node-type adjustments\n if (is_object($vars['node'])) {\n $node_type = $vars['node']->getType();\n switch ($node_type) {\n case 'google_form':\n //all the js and css specific to dealing with google forms\n minim_add_google_form_elements($vars);\n break;\n case 'portfolio_piece':\n //no titles on portfolio pages\n $vars['title'] = false;\n break;\n case 'facility':\n //automatically setting parent for facility nodes\n $menu_tree = \\Drupal::service('menu_link.tree');\n $menu_tree->setPath('main', 'tools/facilities');\n break;\n }\n\n //set a variable here for nodes without bodies that\n //way we can hide titles as well.. allows for easy creation\n //of pages without content that we can place blocks on\n $body = $vars['node']->get('body')->getValue();\n if (empty($body[0]['value']) && $node_type != 'google_form') {\n $vars['page']['no_body'] = true;\n } \n }\n if (\\Drupal::request()->attributes->get('_system_path') == '2011-annual-report') {\n $drop_menus = array(\n '#attached' => array(\n 'css' => array(\n drupal_get_path('theme', 'minim') . '/css/ar2011.css',\n ),\n ),\n );\n drupal_render($drop_menus);\n }\n}","public function removePage()\n\t{\n\t\tif(isset($this->searchFilters[$this->ref_page]))\n\t\t{\n\t\t\tunset($this->searchFilters[$this->ref_page]);\n\t\t}\n\t}","function mdwpfp_init_markup_cleanup() {\n add_action('init', 'mdwpfp_head_cleanup');\n\n // Remove WP version from the RSS feed.\n add_filter('the_generator', 'mdwpfp_rss_version');\n\n // Clean the WP generated code around images.\n add_filter('the_content', 'mdwpfp_filter_ptags_on_images');\n\n // Remove pesky injected css for recent comments widget.\n add_filter('wp_head', 'mdwpfp_remove_wp_widget_recent_comments_style', 1);\n // Clean up injected comment styles in the .\n add_action('wp_head', 'mdwpfp_remove_recent_comments_style', 1);\n\n // Clean the default WP photo gallery output.\n add_filter('gallery_style', 'mdwpfp_gallery_style');\n\n}","function isf_remove_unused_menu_options() {\n\n\tremove_menu_page( 'edit.php' ); // Removes Posts.\n\tremove_menu_page( 'edit.php?post_type=page' ); // Removes Pages.\n\tremove_menu_page( 'edit-comments.php' ); // Removes Comments.\n\n}","function childtheme_remove_scripts(){\n remove_action('wp_enqueue_scripts','thematic_head_scripts');\n}","function noc_deregister_scripts() {\n\n //Deregister styles\n\n\t// Parent\n\twp_dequeue_style( 'theme-style-child' );\n\twp_deregister_style( 'theme-style-child' );\n\n\t// Theme child from parent\n\twp_dequeue_style( 'theme-style' );\n\twp_deregister_style( 'theme-style' );\n\n\t// // tt-main-style\n\t// wp_dequeue_style( 'tt-main-style' );\n\t// wp_deregister_style( 'tt-main-style' );\n\n\t// // tt-theme-style\n\t// wp_dequeue_style( 'tt-theme-style' );\n\t// wp_deregister_style( 'tt-theme-style' );\n\n}","public function stop_previewing_theme()\n {\n }","function itcr_preprocess_page( & $variables ) {\n\tif ( $variables[ 'is_front' ] ) {\n\t\t$variables[ 'title' ] = '';\n\t\tunset( $variables[ 'page' ][ 'content' ][ 'system_main' ][ 'default_message' ] );\n\t}\n}","function GTPress_hide_themes()\r\n{\r\n\t$disabled_menu_items = get_option('gtpressMenu_disabled_menu_items');\r\n\t$disabled_submenu_items = get_option('gtpressMenu_disabled_submenu_items');\r\n\tif (in_array('themes.php', $disabled_menu_items)) {\r\n\t\tadd_menu_page ( 'Look & Feel', 'Look & Feel', 'edit_theme_options', 'nav-menus.php' );\r\n\t\tadd_submenu_page( 'nav-menus.php', 'Menus', 'Menus', 'edit_theme_options', 'nav-menus.php' );\r\n\t\tadd_submenu_page( 'nav-menus.php', 'Custom Header', 'Custom Header', 'edit_theme_options', 'themes.php?page=custom-header' );\r\n\t\tadd_submenu_page( 'nav-menus.php', 'Custom Background', 'Custom Background', 'edit_theme_options', 'themes.php?page=custom-background' );\r\n\t}\r\n}","public static function resetTemplates()\n\t{\n\t\tself::$_template_names = array();\n\t}","function phptemplate_preprocess_page(&$vars) {\n $vars['tabs2'] = menu_secondary_local_tasks();\n // Hook into color.module\n if (module_exists('color')) {\n _color_page_alter($vars);\n }\n// Add per content type pages\n#\n if (isset($vars['node'])) {\n# // Add template naming suggestion. It should alway use hyphens.\n#// If node type is \"custom_news\", it will pickup \"page-custom-news.tpl.php\".\n#\n $vars['template_files'][] = 'page-' . str_replace('_', '-', $vars['node']->type);\n }\n drupal_add_js('sites/all/libraries/tinymce/jscripts/tiny_mce/tiny_mce.js');\n drupal_add_js('sites/all/libraries/ckeditor5/ckeditor.js');\n $vars['scripts'] = drupal_get_js();\n}","public function tear_down(): void {\n\t\tremove_action( 'wp_body_open', [ $this->instance, 'embed_web_stories' ] );\n\n\t\tremove_theme_support( 'web-stories' );\n\n\t\tdelete_option( Customizer::STORY_OPTION );\n\t\tupdate_option( 'stylesheet', $this->stylesheet );\n\n\t\tparent::tear_down();\n\t}","function cera_grimlock_remove_actions() {\n\t\tif ( is_page_template( 'template-homepage.php' ) || is_page_template( 'template-dashboard.php' ) || is_page_template( 'template-homepage-minimal.php' ) ) :\n\t\t\tremove_action( 'cera_header', 'cera_grimlock_before_content', 20 );\n\t\t\tadd_action( 'cera_header', 'cera_grimlock_homepage_before_content', 20 );\n\n\t\t\tremove_action( 'cera_footer', 'cera_grimlock_after_content', 10 );\n\t\t\tadd_action( 'cera_footer', 'cera_grimlock_homepage_after_content', 10 );\n\t\telseif ( is_404() ) :\n\t\t\tremove_action( 'cera_header', 'cera_grimlock_before_content', 20 );\n\t\t\tadd_action( 'cera_header', 'cera_grimlock_404_before_content', 20 );\n\n\t\t\tremove_action( 'cera_footer', 'cera_grimlock_after_content', 10 );\n\t\t\tadd_action( 'cera_footer', 'cera_grimlock_404_after_content', 10 );\n\t\tendif;\n\t}","function dentario_clients_settings_theme_setup2() {\n\t\tdentario_add_theme_inheritance( array('clients' => array(\n\t\t\t'stream_template' => 'blog-clients',\n\t\t\t'single_template' => 'single-client',\n\t\t\t'taxonomy' => array('clients_group'),\n\t\t\t'taxonomy_tags' => array(),\n\t\t\t'post_type' => array('clients'),\n\t\t\t'override' => 'custom'\n\t\t\t) )\n\t\t);\n\t}","function rgc_remove_menus(){\n remove_menu_page( 'jetpack' ); //Jetpack* \n //remove_menu_page( 'edit.php' ); //Posts\n //remove_menu_page( 'upload.php' ); //Media\n //remove_menu_page( 'edit.php?post_type=page' ); //Pages\n remove_menu_page( 'edit-comments.php' ); //Comments\n //remove_menu_page( 'themes.php' ); //Appearance\n //remove_menu_page( 'plugins.php' ); //Plugins\n //remove_menu_page( 'users.php' ); //Users\n //remove_menu_page( 'tools.php' ); //Tools\n //remove_menu_page( 'options-general.php' ); //Settings\n}","function d4tw_remove_sidebars () {\r\n\tunregister_sidebar( 'statichero' );\r\n\tunregister_sidebar( 'hero' );\r\n\tunregister_sidebar( 'footerfull' );\r\n\tunregister_sidebar( 'left-sidebar' );\r\n unregister_sidebar( 'right-sidebar' );\r\n unregister_sidebar( 'herocanvas' );\r\n}","function rgc_remove_menus(){\n remove_menu_page( 'jetpack' ); //Jetpack* \n //remove_menu_page( 'edit.php' ); //Posts\n //remove_menu_page( 'upload.php' ); //Media\n //remove_menu_page( 'edit.php?post_type=page' ); //Pages\n remove_menu_page( 'edit-comments.php' ); //Comments\n //remove_menu_page( 'themes.php' ); //Appearance\n //remove_menu_page( 'plugins.php' ); //Plugins\n //remove_menu_page( 'users.php' ); //Users\n remove_menu_page( 'tools.php' ); //Tools\n //remove_menu_page( 'options-general.php' ); //Settings\n}","public static function removeDefaultViews()\n {\n File::delete(resource_path('/views/home.blade.php'));\n File::delete(resource_path('/views/welcome.blade.php'));\n }","function remove_menus(){\n \n remove_menu_page( 'edit.php' ); //Posts\n remove_menu_page( 'edit-comments.php' ); //Comments\n remove_menu_page( 'themes.php' ); //Appearance\n\t//remove_menu_page( 'plugins.php' ); //Plugins\n //remove_menu_page( 'users.php' ); //Users\n \n}","function _h_remove_jetpack_related_posts() {\n if (class_exists('Jetpack_RelatedPosts')) {\n $jprp = Jetpack_RelatedPosts::init();\n $callback = [$jprp, 'filter_add_target_to_dom'];\n remove_filter('the_content', $callback, 40);\n }\n}","function extamus_remove_menu_pages() {\n if ( ! current_user_can( 'administrator' ) ) {\n remove_menu_page( 'index.php' ); //Dashboard\n remove_menu_page( 'edit.php' ); //Posts\n remove_menu_page( 'upload.php' ); //Media\n remove_menu_page( 'edit.php?post_type=page' ); //Pages\n remove_menu_page( 'edit-comments.php' ); //Comments\n remove_menu_page( 'themes.php' ); //Appearance\n remove_menu_page( 'plugins.php' ); //Plugins\n remove_menu_page( 'users.php' ); //Users\n remove_menu_page( 'tools.php' ); //Tools\n remove_menu_page( 'options-general.php' ); //Settings\n remove_menu_page( 'acf.php' ); //Advanced Custom Fields\n}}","function cleaning_wp(){\n remove_action('wp_head', 'wp_generator'); // remove WP tag\n\n remove_action( 'wp_head', 'feed_links_extra', 3 ); // remove extra feeds\n remove_action( 'wp_head', 'feed_links', 2 ); // remove general feeds\n remove_action( 'wp_head', 'rsd_link' ); // remove RSD link\n remove_action( 'wp_head', 'wlwmanifest_link' ); // remove manifest link\n remove_action( 'wp_head', 'index_rel_link' ); // remove index link\n remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // remove prev link\n remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // remove start link\n remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // remove links to adjacent posts\n remove_action( 'wp_head', 'wp_shortlink_wp_head'); // remove shortlink\n\n // disable admin bar\n add_filter('the_generator', '__return_false');\n add_filter('show_admin_bar','__return_false');\n\n // disable emoji\n remove_action( 'wp_head', 'print_emoji_detection_script', 7);\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\n\n // disbale json\n remove_action( 'wp_head', 'rest_output_link_wp_head' );\n remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );\n remove_action( 'template_redirect', 'rest_output_link_header', 11 );\n}","function thb_disable_layout_default_options_splash_page() {\n\t\tif ( thb_get_admin_template() == 'template-splash.php' ) {\n\t\t\t$fields_container = thb_theme()->getPostType( 'page' )->getMetabox( 'layout' )->getContainer( 'layout_container' );\n\t\t\t$fields_container->removeField('subtitle');\n\t\t\t$fields_container->removeField('pageheader_disable');\n\t\t}\n\t}","function kstHelpWordpressSitePages_customPageTemplates() {\n ?>\n

    \n WordPress offers incredible flexibility as a CMS (Content Management System).\n Theme and plugin developers often include special layout templates that you\n can use on your site pages to present information in a different format or\n layout, as well as to add functionality to certain pages of your site.\n

    \n

    \n Examples include contact forms, multi-column layouts, magazine style\n index layouts, or even mini applications.\n

    \n

    \n Occasionally these templates can be so complex that you can't really\n even edit the content the page and the page that appears in your\n Pages Admin List is really only a place holder. It will be obvious\n if you come across one of these pages.\n

    \n

    \n You will know that the creator of your theme or plugins included custom\n layout templates for you to use if (when creating/editing a Site Page)\n you see \"Template\" with a dropdown box under it in the right hand sidebar.\n

    \n

    \n Choosing a template and publishing the page will use that template instead of\n the default \"pages\" template that your site pages use.\n

    \n loadedTemplates = array();\n }","function admin_remove_menus() {\n if ( ! current_user_can( 'manage_options' ) ) {\n remove_menu_page( 'themes.php' ); // Appearance\n remove_menu_page( 'plugins.php' ); // Plugins\n remove_menu_page( 'users.php' ); // Users\n remove_menu_page( 'profile.php' ); // Profile\n remove_menu_page( 'tools.php' ); // Tools\n remove_menu_page( 'options-general.php' ); // Settings\n }\n}","function remove_menus(){ \n\t// remove_menu_page('edit.php');\n\t// remove_menu_page('edit-comments.php');\n}","function remove_menus_bloggood_ru(){\n// remove_menu_page( 'index.php' ); //Консоль\n// remove_menu_page( 'edit.php' ); //Записи\n// remove_menu_page( 'upload.php' ); //Медиафайлы\n// remove_menu_page( 'edit.php?post_ENGINE=page' ); //Страницы\n// remove_menu_page( 'edit-comments.php' ); //Комментарии\n// remove_menu_page( 'themes.php' ); //Внешний вид\n// remove_menu_page( 'plugins.php' ); //Плагины\n// remove_menu_page( 'users.php' ); //Пользователи\n// remove_menu_page( 'tools.php' ); //Инструменты\n// remove_menu_page( 'options-general.php' ); //Настройки\n\n}","function fes_remove_posts_admin_menus() {\n remove_menu_page( 'edit.php' );\n}","function deenqueue_parent_scripts_styles() {\n wp_dequeue_script( 'one-page-slitslider' );\n wp_deregister_script( 'one-page-slitslider' );\n wp_dequeue_script( 'one-page-custom' );\n wp_deregister_script( 'one-page-custom' );\n}","function purity_theme_init() {\n elgg_extend_view('page/elements/head', 'purity_theme/meta');\n elgg_unregister_menu_item('topbar', 'elgg_logo');\n\telgg_register_plugin_hook_handler('index', 'system', 'purity_theme');\n}","function ru_filter_styles(){\n $this->removestyle(\"bbp-default\");\n\n // download monitor is not used in the front-end.\n $this->removestyle(\"wp_dlmp_styles\");\n\n if( !is_singular( 'docs' ) ){\n // the table of contents plugin is being used on documentation pages only\n $this->removestyle(\"toc-screen\");\n }\n\n if ( !( is_page( 'account' ) || is_page( 'edit-profile' )) ){\n // this should not be like this. Need to look into it.\n $this->removestyle(\"wppb_stylesheet\");\n }\n\n if( !is_singular( array('docs', 'post' ) ) ){\n $this->removestyle(\"codebox\");\n }\n }","function my_footer_shh() {\n remove_filter( 'update_footer', 'core_update_footer' );\n}","function init_remove_support(){\n if( !empty($_GET['post']) && intval($_GET['post']) == get_option( 'page_on_front' ) ) {\n remove_post_type_support('page', 'editor');\n }\n}","public function createPlaceholdersAndDeleteLiveParentPage() {}","function vida_theme_setup() {\n\t\n\tadd_theme_support( 'title-tag' );\n\n\t/*\n\t * Remove parent theme setups we don't need/use\n\t */\t\n\t\n\tremove_theme_support( 'custom-header' );\n\t\n\t// remove post formats\n\tremove_theme_support( 'post-formats' );\n\n\t// remove custom scripts\n\tremove_action( 'wp_enqueue_scripts', 'moesia_custom_styles');\n\t\n\t// remove images sizes\n\tif ( function_exists( 'remove_image_size' ) ) {\n\t\t\n\t\tremove_image_size('moesia-thumb');\n\t\tremove_image_size('project-image');\n\t\tremove_image_size('moesia-news-thumb');\n\t\tremove_image_size('moesia-news-thumb');\n\t\tremove_image_size('moesia-clients-thumb');\n\t\tremove_image_size('moesia-testimonials-thumb');\t\n\t\tremove_image_size('moesia-employees-thumb');\t\t\n\t\t\n\t}\n\t\n\t// hide wp generator\n\tremove_action('wp_head', 'wp_generator');\n\t\n\t// removes EditURI/RSD (Really Simple Discovery) link.\n\tremove_action('wp_head', 'rsd_link');\n\t\n\t// removes wlwmanifest (Windows Live Writer) link.\n\tremove_action('wp_head', 'wlwmanifest_link');\t\n\t\n\t// Remove the REST API lines from the HTML Header\n remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\n\t\n\tremove_action( 'after_setup_theme', 'moesia_custom_header_setup', 10 );\n\t\n\tremove_action('wp_head', 'print_emoji_detection_script', 7);\n\t\n\tremove_action('wp_print_styles', 'print_emoji_styles');\t\n\t\n\t/*\n\t * Add our custom theme setups\n\t *\n\t * Footer menu, additional sidebars, etc..\n\t */\n\n\t// Add our footer menu\n\tregister_nav_menus( array(\n\t\t'secondary' => __( 'Footer Menu', 'vida-footer-menu' ),\n\t\t'tertiary' => __( 'Blog - Posts', 'vida-blog-menu' ),\n\t\t'footerblog' => __( 'Blog - Posts Footer Menu', 'vida-blog-footer' ),\n\t) );\t\n\t\n\t// Register the articles pages' sidebar. \n\tregister_sidebar(\n\t\tarray(\n\t\t\t'id' => 'article-header-widget',\n\t\t\t'name' => __( 'Articles Header Widget', 'moesia-vida' ),\n\t\t\t'description' => __( 'Header widget for the articles pages only', 'moesia-vida' ),\n\t\t\t'before_widget' => '',\n\t\t\t'before_title' => '

    ',\n\t\t\t'after_title' => '

    '\n\t\t)\n\t);\n\tregister_sidebar( array(\n\t\t'name' => __( 'Sidebar Search', 'moesia' ),\n\t\t'id' => 'sidebar-search',\n\t\t'description' => __( 'Widget to add a search box in the sidebar, goes at the top most of the sidebar.', 'moesia-vida' ),\n\t\t'before_widget' => '',\n\t\t'before_title' => '',\n\t\t'after_title' => '',\n\t) );\n\tregister_sidebar( array(\n\t\t'name' => __( 'Sidebar Optin', 'moesia' ),\n\t\t'id' => 'sidebar-optin',\n\t\t'description' => __( 'Widget to display an optin in the posts\\' sidebar, goes above the main sidebar.', 'moesia-vida' ),\n\t\t'before_widget' => '',\n\t\t'before_title' => '

    ',\n\t\t'after_title' => '

    ',\n\t) );\n\tregister_sidebar( array(\n\t\t'name' => __( 'Sidebar - Matchmaking', 'moesia' ),\n\t\t'id' => 'sidebar-matchmaking',\n\t\t'description' => __( 'Widget to display an optin in the posts\\' sidebar, goes above the main sidebar.', 'moesia-vida' ),\n\t\t'before_widget' => '',\n\t\t'before_title' => '

    ',\n\t\t'after_title' => '

    ',\n\t) );\n\t\n\t// Add custom image sizes\n\tif ( function_exists('add_image_size') ) {\n\n\t\n\t\t//add_image_size( 'vida-blog-thumb', xxx, xxx, TRUE ); <-- in case of changing blog featured\n\t\t\n\t\t// used mainly as the featured\n\t\tadd_image_size( 'vida-blog-featured', 682, 480, TRUE );\n\t\t\n\t\t// blog full width\n\t\tadd_image_size( 'vida-blog-full', 720, 9999 );\n\t\t\n\t\t// blog three-fourth width\n\t\tadd_image_size( 'vida-blog-threefourth', 525, 9999 );\n\t\t\n\t\t// blog two-third width\n\t\tadd_image_size( 'vida-blog-twothird', 460, 9999 );\n\t\t\n\t\t// blog half width \n\t\tadd_image_size( 'vida-blog-onehalf', 355, 9999 );\t\t\n\t\t\n\t\t// blog one-third width\n\t\tadd_image_size( 'vida-blog-onethird', 230, 9999 );\n\n\t\t// related posts thumbs\n\t\tadd_image_size( 'vida-rel-thumb', 237, 165, true );\t\t\n\t\t\n\t} //end custom image sizes\n\t\n\t\n}","function remove_business_starter_widgets(){\n\n\tunregister_sidebar( 'sidebar-1' );\n\tunregister_sidebar( 'sidebar-2' );\n\tunregister_sidebar( 'sidebar-3' );\n}","public function wp_delete_theme(){\n\n\t\trequire_once( 'wp-load.php' );\n\t\trequire_once( 'wp-admin/includes/upgrade.php' );\n\n\t\tdelete_theme( 'twentyfourteen' );\n\t\tdelete_theme( 'twentythirteen' );\n\t\tdelete_theme( 'twentytwelve' );\n\t\tdelete_theme( 'twentyeleven' );\n\t\tdelete_theme( 'twentyten' );\n\t\t// We delete the _MACOSX folder (bug with a Mac)\n\t\tdelete_theme( '__MACOSX' );\n\t}","public function remove_content_filter() {\n\t\t// @todo also check if this page supports blocks.\n\t\tif ( is_page() ) {\n\t\t\tremove_filter( 'the_content', 'wpautop', 10 );\n\t\t\tadd_filter( 'the_content', array( $this, 'spineautop' ), 10 );\n\t\t}\n\t}","function hide_menu() {\n // To remove the whole Appearance admin menu\n //remove_menu_page( 'themes.php' );\n\n // remove the theme editor and theme options submenus \n\n remove_submenu_page( 'themes.php', 'themes.php' );\n remove_submenu_page( 'themes.php', 'theme-editor.php' );\n remove_submenu_page( 'themes.php', 'customize.php' );\n remove_submenu_page( 'themes.php', 'theme_options' );\n remove_submenu_page( 'themes.php', 'options-framework' );\n\n}","public static function uninstall() {\r\n // $pop_ups = get_pages( array('post_type'=>DGDSCROLLBOXTYPE));\r\n // foreach($pop_ups as $pop_up) {\r\n // wp_delete_post($pop_up->ID, true);\r\n // }\r\n }","public function theme() {\n // Do nothing by default\n }","function delete_sample_page() {\n $default_page = get_page_by_title( 'Sample Page' );\n if ($default_page) {\n wp_delete_post( $default_page->ID );\n }\n }","function child_theme_setup_before_parent() {\n}","public static function cleanTemplatesCache()\r\n {\r\n $path = APP_VAR_DIR.'/_compiled/site/*';\r\n exec('rm -rf '.$path);\r\n return true;\r\n }","function childtheme_override_postfooter() {}","function tsapress_clean_assets($content) {\n\t$tsapress_base_dir = tsapress_base_dir();\n $theme_name = next(explode('/themes/', $content));\n \n $current_path = '/'.$tsapress_base_dir.'wp-content/themes/' . $theme_name;\n $new_path = '';\n $content = str_replace($current_path, $new_path, $content);\n \n return $content;\n}","function shift_admin_menu_cleanup() {\n remove_menu_page( 'edit.php' );\n remove_menu_page( 'edit-comments.php' );\n}","private function hierarchy()\n {\n $types = [\n '404',\n 'archive',\n 'attachment',\n 'author',\n 'category',\n 'date',\n 'embed',\n 'frontpage',\n 'home',\n 'index',\n 'page',\n 'paged',\n 'search',\n 'single',\n 'singular',\n 'tag',\n 'taxonomy',\n ];\n\n foreach ($types as $type) {\n add_filter(\"{$type}_template_hierarchy\", [$this, 'addTemplateDirectory']);\n }\n }","function replace_widjets_content() {\n remove_action( 'widgets_init', 'envo_storefront_widgets_init' );\n}","public function restore_templates( $name = '' ) {\n\t\t\t$theme = wp_get_theme( $name );\n\n\t\t\tif ( empty( $theme ) || ! $theme->exists() ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ( isset( $this->restored[ $theme->get( 'Name' ) ] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ( empty( $this->saved[ $theme->get( 'Name' ) ] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$old_version = get_option( 'theme_version ' . $theme->get( 'Name' ) );\n\t\t\t$version = $theme->get( 'Version' );\n\t\t\tif ( $old_version === $version ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$temp_dir = UM()->uploader()->get_core_temp_dir() . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $theme->get( 'template' );\n\t\t\tif ( ! is_dir( $temp_dir ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$um_dir = $theme->get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'ultimate-member';\n\t\t\t@mkdir( $um_dir, 0777, true );\n\n\t\t\t$src = realpath( $temp_dir );\n\t\t\t$dest = realpath( $um_dir );\n\t\t\tif ( $src && $dest ) {\n\t\t\t\tself::recurse_copy( $src, $dest );\n\t\t\t\terror_log( \"UM Log. Theme '\" . $theme->get( 'template' ) . \"' templates restored.\" );\n\t\t\t\tUM()->files()->remove_dir( $src );\n\t\t\t} else {\n\t\t\t\terror_log( \"UM Error. Can not restore theme templates.\" );\n\t\t\t}\n\n\t\t\tdelete_option( 'theme_version ' . $theme->get( 'Name' ) );\n\t\t\t$this->restored[ $theme->get( 'Name' ) ] = $theme->get( 'Version' );\n\t\t}","function wpgrade_head_cleanup() {\r\n\t// Remove WP version\r\n\tremove_action( 'wp_head', 'wp_generator' );\r\n\t\r\n\tremove_action( 'wp_head', 'rsd_link' );\r\n\t// windows live writer\r\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\r\n\t\r\n\t// remove WP version from css - those parameters can prevent caching\r\n\t//add_filter( 'style_loader_src', 'wpgrade_noversion_css_js', 9999 );\r\n\t// remove WP version from scripts - those parameters can prevent caching\r\n\t//add_filter( 'script_loader_src', 'wpgrade_noversion_css_js', 9999 );\r\n\r\n}","function remove_thefeeds()\r\n{\r\n remove_theme_support( 'automatic-feed-links' ); //remove feed links in head\r\n}","function cinerama_edge_remove_default_custom_fields() {\n\t\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\n\t\t\tforeach ( apply_filters( 'cinerama_edge_filter_meta_box_post_types_remove', array( 'post', 'page' ) ) as $postType ) {\n\t\t\t\tremove_meta_box( 'postcustom', $postType, $context );\n\t\t\t}\n\t\t}\n\t}","function pd_head_cleanup()\n{\n\n /* ===============\n Remove RSS from header\n =============== */\n remove_action('wp_head', 'rsd_link'); #remove page feed\n remove_action('wp_head', 'feed_links_extra', 3); // Remove category feeds\n remove_action('wp_head', 'feed_links', 2); // Remove Post and Comment Feeds\n\n\n /* ===============\n remove windindows live writer link\n =============== */\n remove_action('wp_head', 'wlwmanifest_link');\n\n\n /* ===============\n links for adjacent posts\n =============== */\n remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);\n\n\n /* ===============\n WP version\n =============== */\n remove_action('wp_head', 'wp_generator');\n\n\n /* ===============\n remove WP version from css\n =============== */\n add_filter('style_loader_src', 'pd_remove_wp_ver_css_js', 9999);\n\n\n /* ===============\n remove Wp version from scripts\n =============== */\n add_filter('script_loader_src', 'pd_remove_wp_ver_css_js', 9999);\n}","public function plugin_deactive_hook(){\r\n delete_transient( 'woolentor_template_info' );\r\n delete_metadata( 'user', null, 'woolentor_dismissed_lic_notice', null, true );\r\n }","function full_reset(){\n\t/**\n\t* This function will reset all the header links\n\t* http://wordpress.stackexchange.com/questions/207104/edit-theme-wp-head\n\t*/\n\t// Removes the wlwmanifest link\n\tremove_action( 'wp_head', 'wlwmanifest_link' );\n\t// Removes the RSD link\n\tremove_action( 'wp_head', 'rsd_link' );\n\t// Removes the WP shortlink\n\t//remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );\n\t// Removes the canonical links\n\t//remove_action( 'wp_head', 'rel_canonical' );\n\t// Removes the links to the extra feeds such as category feeds\n\t//remove_action( 'wp_head', 'feed_links_extra', 3 ); \n\t// Removes links to the general feeds: Post and Comment Feed\n\t//remove_action( 'wp_head', 'feed_links', 2 ); \n\t// Removes the index link\n\tremove_action( 'wp_head', 'index_rel_link' ); \n\t// Removes the prev link\n\tremove_action( 'wp_head', 'parent_post_rel_link' ); \n\t// Removes the start link\n\tremove_action( 'wp_head', 'start_post_rel_link' ); \n\t// Removes the relational links for the posts adjacent to the current post\n\tremove_action( 'wp_head', 'adjacent_posts_rel_link' );\n\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );\n\t// Removes the WordPress version i.e. -\n\tremove_action( 'wp_head', 'wp_generator' );\n\t\n\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\n\tremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\n\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\n\tremove_action( 'admin_print_styles', 'print_emoji_styles' );\n\t\n\t/**\n\t*https://wordpress.org/support/topic/wp-44-remove-json-api-and-x-pingback-from-http-headers\n\t*/\n\tadd_filter('rest_enabled', '_return_false');\n\tadd_filter('rest_jsonp_enabled', '_return_false');\n\t\n\tremove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\n\tremove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );\n\t\n\tremove_action('wp_head', 'wp_print_scripts');\n //remove_action('wp_head', 'wp_print_head_scripts', 9);\n add_action('wp_footer', 'wp_print_scripts', 5);\n add_action('wp_footer', 'wp_print_head_scripts', 5);\n}"],"string":"[\n \"function be_remove_genesis_page_templates( $page_templates ) {\\n\\tunset( $page_templates['page_archive.php'] );\\n\\tunset( $page_templates['page_blog.php'] );\\n\\treturn $page_templates;\\n}\",\n \"function wmf_undo_redirect_template_changes_in_admin() {\\n\\tremove_filter( 'page_link', 'wmf_skip_redirect_template_in_page_link' );\\n\\tremove_filter( 'the_title', 'wmf_skip_redirect_template_in_title' );\\n}\",\n \"function kanso_custom_menu_page_removing() {\\n //remove_menu_page( 'themes.php' ); // Appearance -- (!) There are other ways to do this\\n //remove_menu_page( itsec ); // iThemes Security -- Very specific, consider revising\\n}\",\n \"function remove_parent_features() {\\n \\tremove_action( 'init', 'gdlr_register_portfolio_admin_option' );\\n remove_action('init', 'gdlr_init_page_feature');\\n\\n //remove theme support for post formats\\n remove_theme_support('post-formats');\\n}\",\n \"function jn_htmlInUrl_deactive() {\\r\\n\\t\\tglobal $wp_rewrite;\\r\\n\\t\\tif ( in_array( 'page', $this->selected_post_type ) ) {\\r\\n\\t\\t\\t$wp_rewrite->page_structure = str_replace( '.html','',$wp_rewrite->page_structure );\\r\\n\\t\\t\\t$wp_rewrite->flush_rules();\\r\\n\\t\\t}\\r\\n\\t}\",\n \"function ws_kill_parent_theme($themes) {\\r\\n\\tunset( $themes['thematic'] );\\r\\n\\treturn $themes;\\r\\n}\",\n \"public static function use_parent_template() {\\n add_action('save_post', array('core_admin', 'switch_page_template'));\\n }\",\n \"function remove_post_type_support_for_pages() {\\n\\t\\t// UNCOMMENT if you want to remove some stuff\\n\\t\\t// Replace 'page' with 'post' or a custom post/content type\\n\\t\\t# remove_post_type_support( 'page', 'title' );\\n\\t\\t// remove_post_type_support( 'page', 'editor' );\\n\\t\\tremove_post_type_support( 'page', 'thumbnail' );\\n\\t\\t# remove_post_type_support( 'page', 'page-attributes' );\\n\\t\\t# remove_post_type_support( 'page', 'excerpt' );\\n}\",\n \"public function remove_page_editor() {\\n\\t\\tremove_post_type_support('page', 'editor');\\n\\t}\",\n \"function remove_parent_widgets(){\\n\\t\\t\\n\\t// remove footer sidebars\\n\\tunregister_sidebar( 'sidebar-3' );\\n\\tunregister_sidebar( 'sidebar-4' );\\n\\tunregister_sidebar( 'sidebar-5' );\\n\\t\\n\\t\\n}\",\n \"function unhook_parent_style() {\\n \\n wp_dequeue_style( 'genericons' );\\n\\twp_deregister_style( 'genericons' );\\n wp_dequeue_style( 'twentyfifteen-ie' );\\n\\twp_deregister_style( 'twentyfifteen-ie' );\\n wp_dequeue_style( 'twentyfifteen-ie7' );\\n\\twp_deregister_style( 'twentyfifteen-ie7' );\\n wp_dequeue_style( 'twentyfifteen-fonts' );\\n\\twp_deregister_style( 'twentyfifteen-fonts' );\\n}\",\n \"function _ut_remove_default_vc_templates( $data ) {\\r\\n \\r\\n $data = array();\\r\\n \\r\\n return $data;\\r\\n \\r\\n}\",\n \"function remove_guttenberg_from_pages() {\\n\\tremove_post_type_support( 'youthclub', 'editor' );\\n}\",\n \"function remove_theme_mods()\\n {\\n }\",\n \"function _remove_theme_attribute_in_block_template_content($template_content)\\n {\\n }\",\n \"function childtheme_no_superfish(){\\r\\n\\tremove_theme_support('thematic_superfish');\\r\\n}\",\n \"function remove_post_support() {\\n remove_post_type_support( 'page', 'editor' );\\n }\",\n \"public function deleteCompiledTemplates() {\\n\\t\\t// templates\\n\\t\\t$filenames = glob(WCF_DIR.'templates/compiled/*_'.$this->languageID.'_*.php');\\n\\t\\tif ($filenames) foreach ($filenames as $filename) @unlink($filename);\\n\\t\\t\\n\\t\\t// acp templates\\n\\t\\t$filenames = glob(WCF_DIR.'acp/templates/compiled/*_'.$this->languageID.'_*.php');\\n\\t\\tif ($filenames) foreach ($filenames as $filename) @unlink($filename);\\n\\t}\",\n \"function deactivate() {\\r\\n global $wp_rewrite;\\r\\n\\r\\n $wp_rewrite->page_structure = str_replace(\\\".\\\" . $this->options->extension, \\\"\\\", $wp_rewrite->page_structure);\\r\\n $wp_rewrite->flush_rules();\\r\\n }\",\n \"public static function register_templates() {\\n if (version_compare(floatval(get_bloginfo('version')), '4.7', '<')) {\\n // 4.6 and older\\n add_filter('page_attributes_dropdown_pages_args', array(get_called_class(), 'register_project_templates'));\\n } else {\\n // Add a filter to the wp 4.7 version attributes metabox\\n add_filter('theme_page_templates', array(get_called_class(), 'add_new_template'));\\n }\\n // Add a filter to the save post to inject out template into the page cache\\n add_filter('wp_insert_post_data', array(get_called_class(), 'register_project_templates'));\\n // Add a filter to the template include to determine if the page has our \\n // template assigned and return it's path\\n add_filter('template_include', array(get_called_class(), 'view_project_template'));\\n }\",\n \"function remove_menu_pages() {\\n //remove_menu_page( 'upload.php' ); //Media\\n remove_menu_page( 'edit-comments.php' ); //Comments\\n //remove_menu_page( 'themes.php' ); //Appearance\\n //remove_menu_page( 'tools.php' ); //Tools\\n //remove_menu_page( 'options-general.php' ); //Settings\\n //remove_menu_page( 'edit.php?post_type=page' );\\n \\n}\",\n \"function kill_unused_templates() {\\n\\tglobal $wp_query, $post;\\n\\n\\tif ( is_author() || is_attachment() || is_day() || is_search() || is_feed() ) {\\n\\t\\twp_redirect( home_url() );\\n\\t\\texit();\\n\\t}\\n}\",\n \"public static function switch_page_template() {\\n\\n global $post;\\n\\n $post_type = get_post_type($post->ID);\\n\\n if (is_page() or is_post_type_hierarchical($post_type)) {// Checks if current post type is a page, rather than a post\\n $current_page_template = get_post_meta($post->ID, '_wp_page_template', true);\\n $parent_page_template = get_post_meta($post->post_parent, '_wp_page_template', true);\\n $parents = get_post_ancestors($post->ID);\\n\\n if ($parents) {\\n update_post_meta($post->ID, '_wp_page_template', $parent_page_template, $current_page_template);\\n }\\n }// End check for page\\n }\",\n \"function jetpackme_remove_rp() {\\n\\tif ( class_exists( 'Jetpack_relatedPosts')) {\\n\\t\\t$jprp = Jetpack_relatedPosts::init();\\n\\t\\t$callback = array ( $jprp, 'filter_add_target_to_dom' );\\n\\t\\tremove_filter( 'the_content', $callback, 40);\\n\\t}\\n}\",\n \"final public function removePages(): void\\n {\\n $this->pages = [];\\n $this->index = [];\\n }\",\n \"function rd_fix_blog_tab_on_cpt($classes, $item, $args) {\\n if (!is_singular('post') && !is_category() && !is_tag()) {\\n $blog_page_id = intval(get_option('page_for_posts'));\\n if ($blog_page_id != 0) {\\n if ($item->object_id == $blog_page_id) {\\n unset($classes[array_search('current_page_parent', $classes)]);\\n }\\n }\\n }\\n return $classes;\\n}\",\n \"function custom_page_home() {\\n\\tif(isset($_GET['post']))\\n\\t\\t$post_id = $_GET['post'];\\n\\telse if(isset($_POST['post_ID']))\\n\\t\\t$post_id = $_POST['post_ID'];\\n\\n\\tif(!isset($post_id) || empty($post_id))\\n\\t\\treturn;\\n\\n\\t// Get the name of the Page Template file.\\n\\t$template_file = get_post_meta($post_id, '_wp_page_template', true);\\n\\n\\t// Do something for the template\\n\\tif($template_file == \\\"home\\\") {\\n\\t\\tremove_post_type_support('page','author');\\n\\t\\tremove_post_type_support('page','custom-fields');\\n\\t\\tremove_post_type_support('page','comments');\\n\\t\\tremove_post_type_support('page','excerpt' );\\n\\t\\tremove_post_type_support('page','trackbacks');\\n\\t\\tremove_post_type_support('page','revisions');\\n\\t}\\n}\",\n \"public static function remove_menu_pages() {\\n\\t\\t$post_type = Registrations::get_post_type();\\n\\n\\t\\tremove_submenu_page( \\\"edit.php?post_type={$post_type}\\\", \\\"manage_frontend_uploader_{$post_type}s\\\" );\\n\\t\\tremove_submenu_page( 'upload.php', 'manage_frontend_uploader' );\\n\\t}\",\n \"protected function uninstall_templates()\\n {\\n // initialize the Finder\\n $finder = new Finder();\\n // we need only the top level\\n $finder->depth('== 0');\\n // get all directories in the /Examples\\n $finder->directories()->in(MANUFAKTUR_PATH.'/TemplateTools/Examples');\\n \\n foreach ($finder as $directory) {\\n $template_name = $directory->getFilename();\\n $target_directory = CMS_PATH.'/templates/'.$template_name;\\n \\n if ($this->app['filesystem']->exists($target_directory)) {\\n // the template exists - remove it\\n $this->app['filesystem']->remove($target_directory);\\n }\\n \\n $this->app['db']->delete(CMS_TABLE_PREFIX.'addons', \\n array('type' => 'template', 'directory' => $template_name));\\n }\\n }\",\n \"function _preview_theme_template_filter()\\n {\\n }\",\n \"function my_remove_post_type_support()\\n{\\n\\tremove_post_type_support('page', 'editor');\\n\\tremove_post_type_support('post', 'editor');\\n\\tremove_post_type_support('companies', 'editor');\\n\\tremove_post_type_support('group_of_companies', 'editor');\\n}\",\n \"public function remove_sub_menus() {\\n remove_menu_page( 'edit-comments.php' );\\n\\n if ( current_user_can( 'editor' ) ) {\\n remove_submenu_page( 'themes.php', 'themes.php' );\\n\\n global $submenu;\\n unset( $submenu['themes.php'][6] );\\n }\\n }\",\n \"function ti_wp_foundation_theme_head_cleanup() {\\n\\t// Remove category feeds\\n\\t// remove_action( 'wp_head', 'feed_links_extra', 3 );\\n\\t// Remove post and comment feeds\\n\\t// remove_action( 'wp_head', 'feed_links', 2 );\\n\\t// Remove EditURI link\\n\\tremove_action( 'wp_head', 'rsd_link' );\\n\\t// Remove Windows live writer\\n\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\n\\t// Remove index link\\n\\tremove_action( 'wp_head', 'index_rel_link' );\\n\\t// Remove previous link\\n\\tremove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );\\n\\t// Remove start link\\n\\tremove_action( 'wp_head', 'start_post_rel_link', 10, 0 );\\n\\t// Remove links for adjacent posts\\n\\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );\\n\\t// Remove WP version\\n\\tremove_action( 'wp_head', 'wp_generator' );\\n}\",\n \"function my_remove_menu_pages(){\\n\\t// remove_menu_page('edit.php?post_type=acf');\\n\\t// remove_menu_page( 'index.php' ); //Dashboard\\n\\t//remove_menu_page( 'edit.php' ); \\t//Posts\\n\\t// remove_menu_page( 'upload.php' ); //Media\\n\\t// remove_menu_page( 'edit.php?post_type=page' ); \\t//Pages\\n\\t//remove_menu_page( 'edit-comments.php' ); \\t//Comments\\n\\t// remove_menu_page( 'themes.php' ); //Appearance\\n\\t// remove_menu_page( 'plugins.php' ); //Plugins\\n\\t#remove_menu_page( 'users.php' ); \\t//Users\\n\\t//remove_menu_page( 'tools.php' ); \\t//Tools\\n\\t// remove_menu_page( 'options-general.php' ); //Settings\\n}\",\n \"function remove_genesis_features() {\\n remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );\\n remove_action('genesis_footer', 'genesis_do_footer');\\n remove_action('genesis_footer', 'genesis_footer_markup_open', 5);\\n remove_action('genesis_footer', 'genesis_footer_markup_close', 15);\\n remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );\\n remove_action( 'genesis_entry_footer', 'genesis_post_meta' );\\n}\",\n \"function PREFIX_remove_page_class_from_post_class($classes) {\\n\\t$classes = array_diff( $classes, array(\\\"page\\\") );\\n\\n\\treturn $classes;\\n}\",\n \"function remove_menus(){\\n// remove_menu_page( 'edit.php' ); //Posts\\n\\n// remove_menu_page( 'edit.php?post_type=page' ); //Pages\\n\\n\\n}\",\n \"public function Setup_Templates_List() : void\\n {\\n $this->Templates = apply_filters(\\\"WP_Plugin_virtual_pages_templates\\\",[\\n ...array('page.php', 'index.php' ), ...(array) $this->Template]);\\n }\",\n \"function my_remove_menu_pages() {\\n global $menu;\\n if (!current_user_can('manage_options')) {\\n remove_menu_page('tools.php');\\n remove_menu_page('edit-comments.php');\\n\\t remove_menu_page('upload.php');\\n\\t remove_menu_page('edit.php');\\n\\t\\tremove_menu_page('edit.php?post_type=page');\\n\\t\\tremove_menu_page('index.php');\\n\\t\\tunset($menu[4]);\\n }\\n}\",\n \"function customize_themes_print_templates()\\n {\\n }\",\n \"public static function plugin_deactivated() {\\n\\n\\t\\t// define page array\\n\\t\\t$page_definitions = [\\n\\t\\t\\t'codeable-users-table-shortcode-page' => [\\n\\t\\t\\t\\t'title' => __( 'Codeable Users Table Shortcode Page', 'codeable-user-tables' ),\\n\\t\\t\\t\\t'content' => '[codeable_users_table]'\\n\\t\\t\\t],\\n\\t\\t];\\n\\n\\t\\tforeach ( $page_definitions as $slug => $page ) {\\n\\t\\t\\t// remove all the data we created\\n\\t\\t\\t$page = get_page_by_path( $slug, OBJECT, 'page' );\\n\\t\\t\\twp_delete_post( $page->ID, true );\\n\\t\\t}\\n\\n\\t}\",\n \"public function page_templates()\\n {\\n // Single Chiro Quiz page template\\n if (is_single() && get_post_type() == $this->token) {\\n if (!defined('PLATFORM_FUNNEL')) {\\n define('PLATFORM_FUNNEL', 'CHIRO_QUIZ');\\n }\\n\\n include($this->template_path . 'single-quiz.php');\\n exit;\\n }\\n }\",\n \"public function removeNodeThemes()\\n\\t{\\n\\t\\t$this->removeNode( 'themes' );\\n\\t}\",\n \"function minim_preprocess_page(&$vars) {\\n //for some reason system main inserts itself into content region even if empty\\n //so we remove it here to prevent bloat\\n //to test if this is still applicable comment out, clear caches and look for a white space at\\n //bottom of the front page\\n if (count($vars['page']['content']) == 1 && empty($vars['page']['content']['system_main']['main']['#markup'])) {\\n unset($vars['page']['content']);\\n }\\n\\n //default styling for tabs\\n if (!empty($vars['tabs'])) {\\n foreach ($vars['tabs']['#primary'] as $tab_key => $tab) {\\n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'padding-xxs'; \\n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'margin-s'; \\n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'block-link'; \\n $vars['tabs']['#primary'][$tab_key]['#link']['localized_options']['attributes']['class'][] = 'bg-green'; \\n }\\n }\\n\\n //node-type adjustments\\n if (is_object($vars['node'])) {\\n $node_type = $vars['node']->getType();\\n switch ($node_type) {\\n case 'google_form':\\n //all the js and css specific to dealing with google forms\\n minim_add_google_form_elements($vars);\\n break;\\n case 'portfolio_piece':\\n //no titles on portfolio pages\\n $vars['title'] = false;\\n break;\\n case 'facility':\\n //automatically setting parent for facility nodes\\n $menu_tree = \\\\Drupal::service('menu_link.tree');\\n $menu_tree->setPath('main', 'tools/facilities');\\n break;\\n }\\n\\n //set a variable here for nodes without bodies that\\n //way we can hide titles as well.. allows for easy creation\\n //of pages without content that we can place blocks on\\n $body = $vars['node']->get('body')->getValue();\\n if (empty($body[0]['value']) && $node_type != 'google_form') {\\n $vars['page']['no_body'] = true;\\n } \\n }\\n if (\\\\Drupal::request()->attributes->get('_system_path') == '2011-annual-report') {\\n $drop_menus = array(\\n '#attached' => array(\\n 'css' => array(\\n drupal_get_path('theme', 'minim') . '/css/ar2011.css',\\n ),\\n ),\\n );\\n drupal_render($drop_menus);\\n }\\n}\",\n \"public function removePage()\\n\\t{\\n\\t\\tif(isset($this->searchFilters[$this->ref_page]))\\n\\t\\t{\\n\\t\\t\\tunset($this->searchFilters[$this->ref_page]);\\n\\t\\t}\\n\\t}\",\n \"function mdwpfp_init_markup_cleanup() {\\n add_action('init', 'mdwpfp_head_cleanup');\\n\\n // Remove WP version from the RSS feed.\\n add_filter('the_generator', 'mdwpfp_rss_version');\\n\\n // Clean the WP generated code around images.\\n add_filter('the_content', 'mdwpfp_filter_ptags_on_images');\\n\\n // Remove pesky injected css for recent comments widget.\\n add_filter('wp_head', 'mdwpfp_remove_wp_widget_recent_comments_style', 1);\\n // Clean up injected comment styles in the .\\n add_action('wp_head', 'mdwpfp_remove_recent_comments_style', 1);\\n\\n // Clean the default WP photo gallery output.\\n add_filter('gallery_style', 'mdwpfp_gallery_style');\\n\\n}\",\n \"function isf_remove_unused_menu_options() {\\n\\n\\tremove_menu_page( 'edit.php' ); // Removes Posts.\\n\\tremove_menu_page( 'edit.php?post_type=page' ); // Removes Pages.\\n\\tremove_menu_page( 'edit-comments.php' ); // Removes Comments.\\n\\n}\",\n \"function childtheme_remove_scripts(){\\n remove_action('wp_enqueue_scripts','thematic_head_scripts');\\n}\",\n \"function noc_deregister_scripts() {\\n\\n //Deregister styles\\n\\n\\t// Parent\\n\\twp_dequeue_style( 'theme-style-child' );\\n\\twp_deregister_style( 'theme-style-child' );\\n\\n\\t// Theme child from parent\\n\\twp_dequeue_style( 'theme-style' );\\n\\twp_deregister_style( 'theme-style' );\\n\\n\\t// // tt-main-style\\n\\t// wp_dequeue_style( 'tt-main-style' );\\n\\t// wp_deregister_style( 'tt-main-style' );\\n\\n\\t// // tt-theme-style\\n\\t// wp_dequeue_style( 'tt-theme-style' );\\n\\t// wp_deregister_style( 'tt-theme-style' );\\n\\n}\",\n \"public function stop_previewing_theme()\\n {\\n }\",\n \"function itcr_preprocess_page( & $variables ) {\\n\\tif ( $variables[ 'is_front' ] ) {\\n\\t\\t$variables[ 'title' ] = '';\\n\\t\\tunset( $variables[ 'page' ][ 'content' ][ 'system_main' ][ 'default_message' ] );\\n\\t}\\n}\",\n \"function GTPress_hide_themes()\\r\\n{\\r\\n\\t$disabled_menu_items = get_option('gtpressMenu_disabled_menu_items');\\r\\n\\t$disabled_submenu_items = get_option('gtpressMenu_disabled_submenu_items');\\r\\n\\tif (in_array('themes.php', $disabled_menu_items)) {\\r\\n\\t\\tadd_menu_page ( 'Look & Feel', 'Look & Feel', 'edit_theme_options', 'nav-menus.php' );\\r\\n\\t\\tadd_submenu_page( 'nav-menus.php', 'Menus', 'Menus', 'edit_theme_options', 'nav-menus.php' );\\r\\n\\t\\tadd_submenu_page( 'nav-menus.php', 'Custom Header', 'Custom Header', 'edit_theme_options', 'themes.php?page=custom-header' );\\r\\n\\t\\tadd_submenu_page( 'nav-menus.php', 'Custom Background', 'Custom Background', 'edit_theme_options', 'themes.php?page=custom-background' );\\r\\n\\t}\\r\\n}\",\n \"public static function resetTemplates()\\n\\t{\\n\\t\\tself::$_template_names = array();\\n\\t}\",\n \"function phptemplate_preprocess_page(&$vars) {\\n $vars['tabs2'] = menu_secondary_local_tasks();\\n // Hook into color.module\\n if (module_exists('color')) {\\n _color_page_alter($vars);\\n }\\n// Add per content type pages\\n#\\n if (isset($vars['node'])) {\\n# // Add template naming suggestion. It should alway use hyphens.\\n#// If node type is \\\"custom_news\\\", it will pickup \\\"page-custom-news.tpl.php\\\".\\n#\\n $vars['template_files'][] = 'page-' . str_replace('_', '-', $vars['node']->type);\\n }\\n drupal_add_js('sites/all/libraries/tinymce/jscripts/tiny_mce/tiny_mce.js');\\n drupal_add_js('sites/all/libraries/ckeditor5/ckeditor.js');\\n $vars['scripts'] = drupal_get_js();\\n}\",\n \"public function tear_down(): void {\\n\\t\\tremove_action( 'wp_body_open', [ $this->instance, 'embed_web_stories' ] );\\n\\n\\t\\tremove_theme_support( 'web-stories' );\\n\\n\\t\\tdelete_option( Customizer::STORY_OPTION );\\n\\t\\tupdate_option( 'stylesheet', $this->stylesheet );\\n\\n\\t\\tparent::tear_down();\\n\\t}\",\n \"function cera_grimlock_remove_actions() {\\n\\t\\tif ( is_page_template( 'template-homepage.php' ) || is_page_template( 'template-dashboard.php' ) || is_page_template( 'template-homepage-minimal.php' ) ) :\\n\\t\\t\\tremove_action( 'cera_header', 'cera_grimlock_before_content', 20 );\\n\\t\\t\\tadd_action( 'cera_header', 'cera_grimlock_homepage_before_content', 20 );\\n\\n\\t\\t\\tremove_action( 'cera_footer', 'cera_grimlock_after_content', 10 );\\n\\t\\t\\tadd_action( 'cera_footer', 'cera_grimlock_homepage_after_content', 10 );\\n\\t\\telseif ( is_404() ) :\\n\\t\\t\\tremove_action( 'cera_header', 'cera_grimlock_before_content', 20 );\\n\\t\\t\\tadd_action( 'cera_header', 'cera_grimlock_404_before_content', 20 );\\n\\n\\t\\t\\tremove_action( 'cera_footer', 'cera_grimlock_after_content', 10 );\\n\\t\\t\\tadd_action( 'cera_footer', 'cera_grimlock_404_after_content', 10 );\\n\\t\\tendif;\\n\\t}\",\n \"function dentario_clients_settings_theme_setup2() {\\n\\t\\tdentario_add_theme_inheritance( array('clients' => array(\\n\\t\\t\\t'stream_template' => 'blog-clients',\\n\\t\\t\\t'single_template' => 'single-client',\\n\\t\\t\\t'taxonomy' => array('clients_group'),\\n\\t\\t\\t'taxonomy_tags' => array(),\\n\\t\\t\\t'post_type' => array('clients'),\\n\\t\\t\\t'override' => 'custom'\\n\\t\\t\\t) )\\n\\t\\t);\\n\\t}\",\n \"function rgc_remove_menus(){\\n remove_menu_page( 'jetpack' ); //Jetpack* \\n //remove_menu_page( 'edit.php' ); //Posts\\n //remove_menu_page( 'upload.php' ); //Media\\n //remove_menu_page( 'edit.php?post_type=page' ); //Pages\\n remove_menu_page( 'edit-comments.php' ); //Comments\\n //remove_menu_page( 'themes.php' ); //Appearance\\n //remove_menu_page( 'plugins.php' ); //Plugins\\n //remove_menu_page( 'users.php' ); //Users\\n //remove_menu_page( 'tools.php' ); //Tools\\n //remove_menu_page( 'options-general.php' ); //Settings\\n}\",\n \"function d4tw_remove_sidebars () {\\r\\n\\tunregister_sidebar( 'statichero' );\\r\\n\\tunregister_sidebar( 'hero' );\\r\\n\\tunregister_sidebar( 'footerfull' );\\r\\n\\tunregister_sidebar( 'left-sidebar' );\\r\\n unregister_sidebar( 'right-sidebar' );\\r\\n unregister_sidebar( 'herocanvas' );\\r\\n}\",\n \"function rgc_remove_menus(){\\n remove_menu_page( 'jetpack' ); //Jetpack* \\n //remove_menu_page( 'edit.php' ); //Posts\\n //remove_menu_page( 'upload.php' ); //Media\\n //remove_menu_page( 'edit.php?post_type=page' ); //Pages\\n remove_menu_page( 'edit-comments.php' ); //Comments\\n //remove_menu_page( 'themes.php' ); //Appearance\\n //remove_menu_page( 'plugins.php' ); //Plugins\\n //remove_menu_page( 'users.php' ); //Users\\n remove_menu_page( 'tools.php' ); //Tools\\n //remove_menu_page( 'options-general.php' ); //Settings\\n}\",\n \"public static function removeDefaultViews()\\n {\\n File::delete(resource_path('/views/home.blade.php'));\\n File::delete(resource_path('/views/welcome.blade.php'));\\n }\",\n \"function remove_menus(){\\n \\n remove_menu_page( 'edit.php' ); //Posts\\n remove_menu_page( 'edit-comments.php' ); //Comments\\n remove_menu_page( 'themes.php' ); //Appearance\\n\\t//remove_menu_page( 'plugins.php' ); //Plugins\\n //remove_menu_page( 'users.php' ); //Users\\n \\n}\",\n \"function _h_remove_jetpack_related_posts() {\\n if (class_exists('Jetpack_RelatedPosts')) {\\n $jprp = Jetpack_RelatedPosts::init();\\n $callback = [$jprp, 'filter_add_target_to_dom'];\\n remove_filter('the_content', $callback, 40);\\n }\\n}\",\n \"function extamus_remove_menu_pages() {\\n if ( ! current_user_can( 'administrator' ) ) {\\n remove_menu_page( 'index.php' ); //Dashboard\\n remove_menu_page( 'edit.php' ); //Posts\\n remove_menu_page( 'upload.php' ); //Media\\n remove_menu_page( 'edit.php?post_type=page' ); //Pages\\n remove_menu_page( 'edit-comments.php' ); //Comments\\n remove_menu_page( 'themes.php' ); //Appearance\\n remove_menu_page( 'plugins.php' ); //Plugins\\n remove_menu_page( 'users.php' ); //Users\\n remove_menu_page( 'tools.php' ); //Tools\\n remove_menu_page( 'options-general.php' ); //Settings\\n remove_menu_page( 'acf.php' ); //Advanced Custom Fields\\n}}\",\n \"function cleaning_wp(){\\n remove_action('wp_head', 'wp_generator'); // remove WP tag\\n\\n remove_action( 'wp_head', 'feed_links_extra', 3 ); // remove extra feeds\\n remove_action( 'wp_head', 'feed_links', 2 ); // remove general feeds\\n remove_action( 'wp_head', 'rsd_link' ); // remove RSD link\\n remove_action( 'wp_head', 'wlwmanifest_link' ); // remove manifest link\\n remove_action( 'wp_head', 'index_rel_link' ); // remove index link\\n remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // remove prev link\\n remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // remove start link\\n remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // remove links to adjacent posts\\n remove_action( 'wp_head', 'wp_shortlink_wp_head'); // remove shortlink\\n\\n // disable admin bar\\n add_filter('the_generator', '__return_false');\\n add_filter('show_admin_bar','__return_false');\\n\\n // disable emoji\\n remove_action( 'wp_head', 'print_emoji_detection_script', 7);\\n remove_action( 'wp_print_styles', 'print_emoji_styles' );\\n\\n // disbale json\\n remove_action( 'wp_head', 'rest_output_link_wp_head' );\\n remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );\\n remove_action( 'template_redirect', 'rest_output_link_header', 11 );\\n}\",\n \"function thb_disable_layout_default_options_splash_page() {\\n\\t\\tif ( thb_get_admin_template() == 'template-splash.php' ) {\\n\\t\\t\\t$fields_container = thb_theme()->getPostType( 'page' )->getMetabox( 'layout' )->getContainer( 'layout_container' );\\n\\t\\t\\t$fields_container->removeField('subtitle');\\n\\t\\t\\t$fields_container->removeField('pageheader_disable');\\n\\t\\t}\\n\\t}\",\n \"function kstHelpWordpressSitePages_customPageTemplates() {\\n ?>\\n

    \\n WordPress offers incredible flexibility as a CMS (Content Management System).\\n Theme and plugin developers often include special layout templates that you\\n can use on your site pages to present information in a different format or\\n layout, as well as to add functionality to certain pages of your site.\\n

    \\n

    \\n Examples include contact forms, multi-column layouts, magazine style\\n index layouts, or even mini applications.\\n

    \\n

    \\n Occasionally these templates can be so complex that you can't really\\n even edit the content the page and the page that appears in your\\n Pages Admin List is really only a place holder. It will be obvious\\n if you come across one of these pages.\\n

    \\n

    \\n You will know that the creator of your theme or plugins included custom\\n layout templates for you to use if (when creating/editing a Site Page)\\n you see \\\"Template\\\" with a dropdown box under it in the right hand sidebar.\\n

    \\n

    \\n Choosing a template and publishing the page will use that template instead of\\n the default \\\"pages\\\" template that your site pages use.\\n

    \\n loadedTemplates = array();\\n }\",\n \"function admin_remove_menus() {\\n if ( ! current_user_can( 'manage_options' ) ) {\\n remove_menu_page( 'themes.php' ); // Appearance\\n remove_menu_page( 'plugins.php' ); // Plugins\\n remove_menu_page( 'users.php' ); // Users\\n remove_menu_page( 'profile.php' ); // Profile\\n remove_menu_page( 'tools.php' ); // Tools\\n remove_menu_page( 'options-general.php' ); // Settings\\n }\\n}\",\n \"function remove_menus(){ \\n\\t// remove_menu_page('edit.php');\\n\\t// remove_menu_page('edit-comments.php');\\n}\",\n \"function remove_menus_bloggood_ru(){\\n// remove_menu_page( 'index.php' ); //Консоль\\n// remove_menu_page( 'edit.php' ); //Записи\\n// remove_menu_page( 'upload.php' ); //Медиафайлы\\n// remove_menu_page( 'edit.php?post_ENGINE=page' ); //Страницы\\n// remove_menu_page( 'edit-comments.php' ); //Комментарии\\n// remove_menu_page( 'themes.php' ); //Внешний вид\\n// remove_menu_page( 'plugins.php' ); //Плагины\\n// remove_menu_page( 'users.php' ); //Пользователи\\n// remove_menu_page( 'tools.php' ); //Инструменты\\n// remove_menu_page( 'options-general.php' ); //Настройки\\n\\n}\",\n \"function fes_remove_posts_admin_menus() {\\n remove_menu_page( 'edit.php' );\\n}\",\n \"function deenqueue_parent_scripts_styles() {\\n wp_dequeue_script( 'one-page-slitslider' );\\n wp_deregister_script( 'one-page-slitslider' );\\n wp_dequeue_script( 'one-page-custom' );\\n wp_deregister_script( 'one-page-custom' );\\n}\",\n \"function purity_theme_init() {\\n elgg_extend_view('page/elements/head', 'purity_theme/meta');\\n elgg_unregister_menu_item('topbar', 'elgg_logo');\\n\\telgg_register_plugin_hook_handler('index', 'system', 'purity_theme');\\n}\",\n \"function ru_filter_styles(){\\n $this->removestyle(\\\"bbp-default\\\");\\n\\n // download monitor is not used in the front-end.\\n $this->removestyle(\\\"wp_dlmp_styles\\\");\\n\\n if( !is_singular( 'docs' ) ){\\n // the table of contents plugin is being used on documentation pages only\\n $this->removestyle(\\\"toc-screen\\\");\\n }\\n\\n if ( !( is_page( 'account' ) || is_page( 'edit-profile' )) ){\\n // this should not be like this. Need to look into it.\\n $this->removestyle(\\\"wppb_stylesheet\\\");\\n }\\n\\n if( !is_singular( array('docs', 'post' ) ) ){\\n $this->removestyle(\\\"codebox\\\");\\n }\\n }\",\n \"function my_footer_shh() {\\n remove_filter( 'update_footer', 'core_update_footer' );\\n}\",\n \"function init_remove_support(){\\n if( !empty($_GET['post']) && intval($_GET['post']) == get_option( 'page_on_front' ) ) {\\n remove_post_type_support('page', 'editor');\\n }\\n}\",\n \"public function createPlaceholdersAndDeleteLiveParentPage() {}\",\n \"function vida_theme_setup() {\\n\\t\\n\\tadd_theme_support( 'title-tag' );\\n\\n\\t/*\\n\\t * Remove parent theme setups we don't need/use\\n\\t */\\t\\n\\t\\n\\tremove_theme_support( 'custom-header' );\\n\\t\\n\\t// remove post formats\\n\\tremove_theme_support( 'post-formats' );\\n\\n\\t// remove custom scripts\\n\\tremove_action( 'wp_enqueue_scripts', 'moesia_custom_styles');\\n\\t\\n\\t// remove images sizes\\n\\tif ( function_exists( 'remove_image_size' ) ) {\\n\\t\\t\\n\\t\\tremove_image_size('moesia-thumb');\\n\\t\\tremove_image_size('project-image');\\n\\t\\tremove_image_size('moesia-news-thumb');\\n\\t\\tremove_image_size('moesia-news-thumb');\\n\\t\\tremove_image_size('moesia-clients-thumb');\\n\\t\\tremove_image_size('moesia-testimonials-thumb');\\t\\n\\t\\tremove_image_size('moesia-employees-thumb');\\t\\t\\n\\t\\t\\n\\t}\\n\\t\\n\\t// hide wp generator\\n\\tremove_action('wp_head', 'wp_generator');\\n\\t\\n\\t// removes EditURI/RSD (Really Simple Discovery) link.\\n\\tremove_action('wp_head', 'rsd_link');\\n\\t\\n\\t// removes wlwmanifest (Windows Live Writer) link.\\n\\tremove_action('wp_head', 'wlwmanifest_link');\\t\\n\\t\\n\\t// Remove the REST API lines from the HTML Header\\n remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\\n\\t\\n\\tremove_action( 'after_setup_theme', 'moesia_custom_header_setup', 10 );\\n\\t\\n\\tremove_action('wp_head', 'print_emoji_detection_script', 7);\\n\\t\\n\\tremove_action('wp_print_styles', 'print_emoji_styles');\\t\\n\\t\\n\\t/*\\n\\t * Add our custom theme setups\\n\\t *\\n\\t * Footer menu, additional sidebars, etc..\\n\\t */\\n\\n\\t// Add our footer menu\\n\\tregister_nav_menus( array(\\n\\t\\t'secondary' => __( 'Footer Menu', 'vida-footer-menu' ),\\n\\t\\t'tertiary' => __( 'Blog - Posts', 'vida-blog-menu' ),\\n\\t\\t'footerblog' => __( 'Blog - Posts Footer Menu', 'vida-blog-footer' ),\\n\\t) );\\t\\n\\t\\n\\t// Register the articles pages' sidebar. \\n\\tregister_sidebar(\\n\\t\\tarray(\\n\\t\\t\\t'id' => 'article-header-widget',\\n\\t\\t\\t'name' => __( 'Articles Header Widget', 'moesia-vida' ),\\n\\t\\t\\t'description' => __( 'Header widget for the articles pages only', 'moesia-vida' ),\\n\\t\\t\\t'before_widget' => '',\\n\\t\\t\\t'before_title' => '

    ',\\n\\t\\t\\t'after_title' => '

    '\\n\\t\\t)\\n\\t);\\n\\tregister_sidebar( array(\\n\\t\\t'name' => __( 'Sidebar Search', 'moesia' ),\\n\\t\\t'id' => 'sidebar-search',\\n\\t\\t'description' => __( 'Widget to add a search box in the sidebar, goes at the top most of the sidebar.', 'moesia-vida' ),\\n\\t\\t'before_widget' => '',\\n\\t\\t'before_title' => '',\\n\\t\\t'after_title' => '',\\n\\t) );\\n\\tregister_sidebar( array(\\n\\t\\t'name' => __( 'Sidebar Optin', 'moesia' ),\\n\\t\\t'id' => 'sidebar-optin',\\n\\t\\t'description' => __( 'Widget to display an optin in the posts\\\\' sidebar, goes above the main sidebar.', 'moesia-vida' ),\\n\\t\\t'before_widget' => '',\\n\\t\\t'before_title' => '

    ',\\n\\t\\t'after_title' => '

    ',\\n\\t) );\\n\\tregister_sidebar( array(\\n\\t\\t'name' => __( 'Sidebar - Matchmaking', 'moesia' ),\\n\\t\\t'id' => 'sidebar-matchmaking',\\n\\t\\t'description' => __( 'Widget to display an optin in the posts\\\\' sidebar, goes above the main sidebar.', 'moesia-vida' ),\\n\\t\\t'before_widget' => '',\\n\\t\\t'before_title' => '

    ',\\n\\t\\t'after_title' => '

    ',\\n\\t) );\\n\\t\\n\\t// Add custom image sizes\\n\\tif ( function_exists('add_image_size') ) {\\n\\n\\t\\n\\t\\t//add_image_size( 'vida-blog-thumb', xxx, xxx, TRUE ); <-- in case of changing blog featured\\n\\t\\t\\n\\t\\t// used mainly as the featured\\n\\t\\tadd_image_size( 'vida-blog-featured', 682, 480, TRUE );\\n\\t\\t\\n\\t\\t// blog full width\\n\\t\\tadd_image_size( 'vida-blog-full', 720, 9999 );\\n\\t\\t\\n\\t\\t// blog three-fourth width\\n\\t\\tadd_image_size( 'vida-blog-threefourth', 525, 9999 );\\n\\t\\t\\n\\t\\t// blog two-third width\\n\\t\\tadd_image_size( 'vida-blog-twothird', 460, 9999 );\\n\\t\\t\\n\\t\\t// blog half width \\n\\t\\tadd_image_size( 'vida-blog-onehalf', 355, 9999 );\\t\\t\\n\\t\\t\\n\\t\\t// blog one-third width\\n\\t\\tadd_image_size( 'vida-blog-onethird', 230, 9999 );\\n\\n\\t\\t// related posts thumbs\\n\\t\\tadd_image_size( 'vida-rel-thumb', 237, 165, true );\\t\\t\\n\\t\\t\\n\\t} //end custom image sizes\\n\\t\\n\\t\\n}\",\n \"function remove_business_starter_widgets(){\\n\\n\\tunregister_sidebar( 'sidebar-1' );\\n\\tunregister_sidebar( 'sidebar-2' );\\n\\tunregister_sidebar( 'sidebar-3' );\\n}\",\n \"public function wp_delete_theme(){\\n\\n\\t\\trequire_once( 'wp-load.php' );\\n\\t\\trequire_once( 'wp-admin/includes/upgrade.php' );\\n\\n\\t\\tdelete_theme( 'twentyfourteen' );\\n\\t\\tdelete_theme( 'twentythirteen' );\\n\\t\\tdelete_theme( 'twentytwelve' );\\n\\t\\tdelete_theme( 'twentyeleven' );\\n\\t\\tdelete_theme( 'twentyten' );\\n\\t\\t// We delete the _MACOSX folder (bug with a Mac)\\n\\t\\tdelete_theme( '__MACOSX' );\\n\\t}\",\n \"public function remove_content_filter() {\\n\\t\\t// @todo also check if this page supports blocks.\\n\\t\\tif ( is_page() ) {\\n\\t\\t\\tremove_filter( 'the_content', 'wpautop', 10 );\\n\\t\\t\\tadd_filter( 'the_content', array( $this, 'spineautop' ), 10 );\\n\\t\\t}\\n\\t}\",\n \"function hide_menu() {\\n // To remove the whole Appearance admin menu\\n //remove_menu_page( 'themes.php' );\\n\\n // remove the theme editor and theme options submenus \\n\\n remove_submenu_page( 'themes.php', 'themes.php' );\\n remove_submenu_page( 'themes.php', 'theme-editor.php' );\\n remove_submenu_page( 'themes.php', 'customize.php' );\\n remove_submenu_page( 'themes.php', 'theme_options' );\\n remove_submenu_page( 'themes.php', 'options-framework' );\\n\\n}\",\n \"public static function uninstall() {\\r\\n // $pop_ups = get_pages( array('post_type'=>DGDSCROLLBOXTYPE));\\r\\n // foreach($pop_ups as $pop_up) {\\r\\n // wp_delete_post($pop_up->ID, true);\\r\\n // }\\r\\n }\",\n \"public function theme() {\\n // Do nothing by default\\n }\",\n \"function delete_sample_page() {\\n $default_page = get_page_by_title( 'Sample Page' );\\n if ($default_page) {\\n wp_delete_post( $default_page->ID );\\n }\\n }\",\n \"function child_theme_setup_before_parent() {\\n}\",\n \"public static function cleanTemplatesCache()\\r\\n {\\r\\n $path = APP_VAR_DIR.'/_compiled/site/*';\\r\\n exec('rm -rf '.$path);\\r\\n return true;\\r\\n }\",\n \"function childtheme_override_postfooter() {}\",\n \"function tsapress_clean_assets($content) {\\n\\t$tsapress_base_dir = tsapress_base_dir();\\n $theme_name = next(explode('/themes/', $content));\\n \\n $current_path = '/'.$tsapress_base_dir.'wp-content/themes/' . $theme_name;\\n $new_path = '';\\n $content = str_replace($current_path, $new_path, $content);\\n \\n return $content;\\n}\",\n \"function shift_admin_menu_cleanup() {\\n remove_menu_page( 'edit.php' );\\n remove_menu_page( 'edit-comments.php' );\\n}\",\n \"private function hierarchy()\\n {\\n $types = [\\n '404',\\n 'archive',\\n 'attachment',\\n 'author',\\n 'category',\\n 'date',\\n 'embed',\\n 'frontpage',\\n 'home',\\n 'index',\\n 'page',\\n 'paged',\\n 'search',\\n 'single',\\n 'singular',\\n 'tag',\\n 'taxonomy',\\n ];\\n\\n foreach ($types as $type) {\\n add_filter(\\\"{$type}_template_hierarchy\\\", [$this, 'addTemplateDirectory']);\\n }\\n }\",\n \"function replace_widjets_content() {\\n remove_action( 'widgets_init', 'envo_storefront_widgets_init' );\\n}\",\n \"public function restore_templates( $name = '' ) {\\n\\t\\t\\t$theme = wp_get_theme( $name );\\n\\n\\t\\t\\tif ( empty( $theme ) || ! $theme->exists() ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\tif ( isset( $this->restored[ $theme->get( 'Name' ) ] ) ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\tif ( empty( $this->saved[ $theme->get( 'Name' ) ] ) ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\t$old_version = get_option( 'theme_version ' . $theme->get( 'Name' ) );\\n\\t\\t\\t$version = $theme->get( 'Version' );\\n\\t\\t\\tif ( $old_version === $version ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\t$temp_dir = UM()->uploader()->get_core_temp_dir() . DIRECTORY_SEPARATOR . 'themes' . DIRECTORY_SEPARATOR . $theme->get( 'template' );\\n\\t\\t\\tif ( ! is_dir( $temp_dir ) ) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\t$um_dir = $theme->get_stylesheet_directory() . DIRECTORY_SEPARATOR . 'ultimate-member';\\n\\t\\t\\t@mkdir( $um_dir, 0777, true );\\n\\n\\t\\t\\t$src = realpath( $temp_dir );\\n\\t\\t\\t$dest = realpath( $um_dir );\\n\\t\\t\\tif ( $src && $dest ) {\\n\\t\\t\\t\\tself::recurse_copy( $src, $dest );\\n\\t\\t\\t\\terror_log( \\\"UM Log. Theme '\\\" . $theme->get( 'template' ) . \\\"' templates restored.\\\" );\\n\\t\\t\\t\\tUM()->files()->remove_dir( $src );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\terror_log( \\\"UM Error. Can not restore theme templates.\\\" );\\n\\t\\t\\t}\\n\\n\\t\\t\\tdelete_option( 'theme_version ' . $theme->get( 'Name' ) );\\n\\t\\t\\t$this->restored[ $theme->get( 'Name' ) ] = $theme->get( 'Version' );\\n\\t\\t}\",\n \"function wpgrade_head_cleanup() {\\r\\n\\t// Remove WP version\\r\\n\\tremove_action( 'wp_head', 'wp_generator' );\\r\\n\\t\\r\\n\\tremove_action( 'wp_head', 'rsd_link' );\\r\\n\\t// windows live writer\\r\\n\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\r\\n\\t\\r\\n\\t// remove WP version from css - those parameters can prevent caching\\r\\n\\t//add_filter( 'style_loader_src', 'wpgrade_noversion_css_js', 9999 );\\r\\n\\t// remove WP version from scripts - those parameters can prevent caching\\r\\n\\t//add_filter( 'script_loader_src', 'wpgrade_noversion_css_js', 9999 );\\r\\n\\r\\n}\",\n \"function remove_thefeeds()\\r\\n{\\r\\n remove_theme_support( 'automatic-feed-links' ); //remove feed links in head\\r\\n}\",\n \"function cinerama_edge_remove_default_custom_fields() {\\n\\t\\tforeach ( array( 'normal', 'advanced', 'side' ) as $context ) {\\n\\t\\t\\tforeach ( apply_filters( 'cinerama_edge_filter_meta_box_post_types_remove', array( 'post', 'page' ) ) as $postType ) {\\n\\t\\t\\t\\tremove_meta_box( 'postcustom', $postType, $context );\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function pd_head_cleanup()\\n{\\n\\n /* ===============\\n Remove RSS from header\\n =============== */\\n remove_action('wp_head', 'rsd_link'); #remove page feed\\n remove_action('wp_head', 'feed_links_extra', 3); // Remove category feeds\\n remove_action('wp_head', 'feed_links', 2); // Remove Post and Comment Feeds\\n\\n\\n /* ===============\\n remove windindows live writer link\\n =============== */\\n remove_action('wp_head', 'wlwmanifest_link');\\n\\n\\n /* ===============\\n links for adjacent posts\\n =============== */\\n remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);\\n\\n\\n /* ===============\\n WP version\\n =============== */\\n remove_action('wp_head', 'wp_generator');\\n\\n\\n /* ===============\\n remove WP version from css\\n =============== */\\n add_filter('style_loader_src', 'pd_remove_wp_ver_css_js', 9999);\\n\\n\\n /* ===============\\n remove Wp version from scripts\\n =============== */\\n add_filter('script_loader_src', 'pd_remove_wp_ver_css_js', 9999);\\n}\",\n \"public function plugin_deactive_hook(){\\r\\n delete_transient( 'woolentor_template_info' );\\r\\n delete_metadata( 'user', null, 'woolentor_dismissed_lic_notice', null, true );\\r\\n }\",\n \"function full_reset(){\\n\\t/**\\n\\t* This function will reset all the header links\\n\\t* http://wordpress.stackexchange.com/questions/207104/edit-theme-wp-head\\n\\t*/\\n\\t// Removes the wlwmanifest link\\n\\tremove_action( 'wp_head', 'wlwmanifest_link' );\\n\\t// Removes the RSD link\\n\\tremove_action( 'wp_head', 'rsd_link' );\\n\\t// Removes the WP shortlink\\n\\t//remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );\\n\\t// Removes the canonical links\\n\\t//remove_action( 'wp_head', 'rel_canonical' );\\n\\t// Removes the links to the extra feeds such as category feeds\\n\\t//remove_action( 'wp_head', 'feed_links_extra', 3 ); \\n\\t// Removes links to the general feeds: Post and Comment Feed\\n\\t//remove_action( 'wp_head', 'feed_links', 2 ); \\n\\t// Removes the index link\\n\\tremove_action( 'wp_head', 'index_rel_link' ); \\n\\t// Removes the prev link\\n\\tremove_action( 'wp_head', 'parent_post_rel_link' ); \\n\\t// Removes the start link\\n\\tremove_action( 'wp_head', 'start_post_rel_link' ); \\n\\t// Removes the relational links for the posts adjacent to the current post\\n\\tremove_action( 'wp_head', 'adjacent_posts_rel_link' );\\n\\tremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );\\n\\t// Removes the WordPress version i.e. -\\n\\tremove_action( 'wp_head', 'wp_generator' );\\n\\t\\n\\tremove_action( 'wp_head', 'print_emoji_detection_script', 7 );\\n\\tremove_action( 'admin_print_scripts', 'print_emoji_detection_script' );\\n\\tremove_action( 'wp_print_styles', 'print_emoji_styles' );\\n\\tremove_action( 'admin_print_styles', 'print_emoji_styles' );\\n\\t\\n\\t/**\\n\\t*https://wordpress.org/support/topic/wp-44-remove-json-api-and-x-pingback-from-http-headers\\n\\t*/\\n\\tadd_filter('rest_enabled', '_return_false');\\n\\tadd_filter('rest_jsonp_enabled', '_return_false');\\n\\t\\n\\tremove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\\n\\tremove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );\\n\\t\\n\\tremove_action('wp_head', 'wp_print_scripts');\\n //remove_action('wp_head', 'wp_print_head_scripts', 9);\\n add_action('wp_footer', 'wp_print_scripts', 5);\\n add_action('wp_footer', 'wp_print_head_scripts', 5);\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.702426","0.65037644","0.64131457","0.6406326","0.6262876","0.62376744","0.61424834","0.6110962","0.61082923","0.6108143","0.6036941","0.60307467","0.602198","0.5971363","0.59237164","0.58937496","0.5886289","0.5847543","0.58383566","0.5826905","0.5806757","0.5801867","0.5782649","0.5775987","0.57499826","0.57460856","0.5743062","0.57243055","0.5705576","0.56426513","0.56407607","0.56347555","0.56237876","0.5618678","0.5617391","0.5613601","0.5605866","0.5598111","0.5590409","0.55682844","0.55120546","0.5504017","0.5485255","0.5477747","0.5474641","0.5468583","0.5448823","0.54335845","0.5408053","0.54067576","0.54059404","0.540026","0.53872985","0.53782916","0.53493255","0.53492683","0.5345255","0.53424835","0.5335433","0.53352004","0.5335157","0.53329825","0.5329625","0.5323008","0.5312587","0.53035575","0.52992743","0.52986866","0.52908677","0.5287484","0.52851605","0.52746713","0.52704227","0.5268362","0.5266471","0.52653843","0.52513397","0.5249128","0.5246151","0.52433425","0.52425134","0.5239628","0.5222094","0.5213075","0.5208597","0.5204263","0.51930004","0.5192849","0.51921654","0.51860934","0.5175579","0.5168917","0.5161614","0.51603353","0.5151271","0.51494986","0.5141813","0.514177","0.51397103","0.51374274"],"string":"[\n \"0.702426\",\n \"0.65037644\",\n \"0.64131457\",\n \"0.6406326\",\n \"0.6262876\",\n \"0.62376744\",\n \"0.61424834\",\n \"0.6110962\",\n \"0.61082923\",\n \"0.6108143\",\n \"0.6036941\",\n \"0.60307467\",\n \"0.602198\",\n \"0.5971363\",\n \"0.59237164\",\n \"0.58937496\",\n \"0.5886289\",\n \"0.5847543\",\n \"0.58383566\",\n \"0.5826905\",\n \"0.5806757\",\n \"0.5801867\",\n \"0.5782649\",\n \"0.5775987\",\n \"0.57499826\",\n \"0.57460856\",\n \"0.5743062\",\n \"0.57243055\",\n \"0.5705576\",\n \"0.56426513\",\n \"0.56407607\",\n \"0.56347555\",\n \"0.56237876\",\n \"0.5618678\",\n \"0.5617391\",\n \"0.5613601\",\n \"0.5605866\",\n \"0.5598111\",\n \"0.5590409\",\n \"0.55682844\",\n \"0.55120546\",\n \"0.5504017\",\n \"0.5485255\",\n \"0.5477747\",\n \"0.5474641\",\n \"0.5468583\",\n \"0.5448823\",\n \"0.54335845\",\n \"0.5408053\",\n \"0.54067576\",\n \"0.54059404\",\n \"0.540026\",\n \"0.53872985\",\n \"0.53782916\",\n \"0.53493255\",\n \"0.53492683\",\n \"0.5345255\",\n \"0.53424835\",\n \"0.5335433\",\n \"0.53352004\",\n \"0.5335157\",\n \"0.53329825\",\n \"0.5329625\",\n \"0.5323008\",\n \"0.5312587\",\n \"0.53035575\",\n \"0.52992743\",\n \"0.52986866\",\n \"0.52908677\",\n \"0.5287484\",\n \"0.52851605\",\n \"0.52746713\",\n \"0.52704227\",\n \"0.5268362\",\n \"0.5266471\",\n \"0.52653843\",\n \"0.52513397\",\n \"0.5249128\",\n \"0.5246151\",\n \"0.52433425\",\n \"0.52425134\",\n \"0.5239628\",\n \"0.5222094\",\n \"0.5213075\",\n \"0.5208597\",\n \"0.5204263\",\n \"0.51930004\",\n \"0.5192849\",\n \"0.51921654\",\n \"0.51860934\",\n \"0.5175579\",\n \"0.5168917\",\n \"0.5161614\",\n \"0.51603353\",\n \"0.5151271\",\n \"0.51494986\",\n \"0.5141813\",\n \"0.514177\",\n \"0.51397103\",\n \"0.51374274\"\n]"},"document_score":{"kind":"string","value":"0.7632337"},"document_rank":{"kind":"string","value":"0"}}},{"rowIdx":449,"cells":{"query":{"kind":"string","value":"Template Parts with Display Posts Shortcode"},"document":{"kind":"string","value":"function be_dps_template_part( $output, $original_atts ) {\n\t// Return early if our \"layout\" attribute is not specified\n\tif( empty( $original_atts['layout'] ) )\n\t\treturn $output;\n\tob_start();\n\tget_template_part( 'partials/dps', $original_atts['layout'] );\n\t$new_output = ob_get_clean();\n\tif( !empty( $new_output ) )\n\t\t$output = $new_output;\n\treturn $output;\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function accouk_display_post_content() {\n\n $post_formats = get_the_terms(get_the_id(), 'post-format');\n\n switch($post_formats[0]->slug) {\n\n case 'post-with-hero':\n include_once('templates/post-with-hero.php');\n break;\n\n case 'portfolio':\n include_once('templates/post-portfolio.php');\n break;\n\n case 'portfolio-item-with-hero':\n include_once('templates/post-portfolio-with-hero.php');\n break;\n\n case 'default':\n include_once('templates/post-default.php');\n break;\n\n case 'no-featured-image':\n include_once('templates/post-no-featured-image.php');\n break;\n\n default:\n include_once('templates/post-default.php');\n break;\n\n }\n\n}","protected function content($atts, $content = null) {\n\n extract(shortcode_atts(array(\n\t\t\t'id' => '',\n\t\t\t'display_social_meta' => 'on',\n\t\t\t'display_comments_count' => 'on',\n\t\t\t'display_excerpt' => 'off',\n\t\t\t'display_meta' => 'on',\n ), $atts));\n\n\n /* ================ Render Shortcodes ================ */\n\n ob_start();\n\t\t\n\t\t//Method to retrieve a single post\n\t\t$queried_post = get_post($id);\n\t\t$postID = $queried_post->ID;\n\t\t$postLink = get_permalink($postID);\n\t\t$postTitle = $queried_post->post_title;\n\t\t$postDate = mysql2date('l, F j, Y', $queried_post->post_date);\n\t\t$postAuthorID = $queried_post->post_author;\n\t\t$postAuthor = get_the_author_meta('nickname', $postAuthorID);\n\t\t//$postTags = get_the_tags($postID);\n\t\t$postCommentCount = $queried_post->comment_count;\n\t\t$postExcerpt = $queried_post->post_excerpt;\n\t\t$postContent = $queried_post->post_content;\n\t\t$postTip = get_post_meta($postID, 'pm_post_tooltip_meta_function', true);\n\t\t$postIconSaved = get_post_meta($postID, 'pm_post_icon_meta', true);\n\t\t$postIcon = $postIconSaved != '' ? $postIconSaved : 'fa fa-file';\n\t\t\n\t\t$displayExcerptOnMeta = get_theme_mod('displayExcerptOnMeta', 'on');\n\t\t\t\n ?>\n \n \n\n \n \n
    \n\t\n
    \n

    \n \n \n \n \n pm_tip\" title=\"\" href=\"\">\n \n \" href=\"\">\n \n \n

    \n
    \n \n
    \n \n
    \n \n \n \n

    \n \n \n \n

    ...

    \n \n \n
    \n \n
    \n
    \n \n \t\n

    ...

    \n \n \n \"> &raquo;\n \n \n \n \n \n \t\n \n \n \t\t\t\t\t\t\t\t\t\t\n \n \n \n \t\n \n
    \n
    \n \n
    \n \t\n
    \n \n
    \n \n
    \t\n \n \n\n 'post',\n\t\t\t'posts_per_page'=>2,\n\t\t\t\n\t\t\t\n\t\t\n\t\t), $attr,'our_shortcode' ));\n\t\n\t$query = new WP_Query(array(\n\t\t'post_type'=>$post_type,\n\t\t'posts_per_page'=>$posts_per_page,\n\t\n\t));\n\t\n\tif($query->have_posts()):\n\t\t$output = '
      ';\n\t\t$i=0;\n\t\twhile($query->have_posts()){\n\t\t\t\n\t\t\t$query->the_post();\n\t\t\tif($i == 0):\n\t\t\t$output .= '
    • '.get_the_title().'
    • ';\n\t\t\telse:\n\t\t\t$output .= '
    • '.get_the_title().'
    • ';\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t$i++; }\n\t\twp_reset_postdata();\n\t$output .= '
    ';\n\treturn $output;\n\telse:\n\t return 'no post found';\n\t\n\tendif;\n\t\n\t\n\t\n\t\n\t\n\t\n}","function digthis_show_posts( $atts ) {\n\t// \t'default' => 'values'\n\t// ), $atts );\n\twp_enqueue_script( 'digthis-load-more-js' );\n\tob_start();\n\t?>\n\t\n\n\t\n\t\t
    \n\n\t\t
    \n\t\t
    \n\t\t\t\n\t\t
    \n\t\n\t\n\t\t\n\t$plural,\r\n 'singular_name'=>$singular,\r\n 'add_name'=>'Add New',\r\n 'add_new_item'=>'Add New' . $singular,\r\n 'edit'=>'Edit',\r\n 'edit_item' =>'Edit' . $singular,\r\n 'new_item' =>'New' . $singular,\r\n 'view'=>'View' . $singular,\r\n 'view_item'=>'View' . $singular,\r\n 'search_item'=>'Search' . $plural,\r\n 'parent'=>'Parent' . $singular,\r\n 'not_found'=>'No' . $plural .'found',\r\n 'not_found_in_trash'=>'No' . $plural .'in Trash'\r\n\t\t);\r\n\t$args =array(\r\n 'labels' =>$labels,\r\n 'public' =>true,\r\n 'menu_position'=>10,\r\n 'has_archive'=>true,\r\n 'capability_type'=>'post',\r\n 'map_meta_cap'=>true,\r\n 'supports'=>array(\r\n 'title',\r\n 'editor',\r\n 'custom-fields',\r\n 'thumbnail'\r\n \t)\r\n\t\t);\r\n\tregister_post_type('training_show',$args);\r\n}","function x_add_social_sharing ( $content ) {\n\t\n if ( is_singular('post') ) {\n\t \n echo do_shortcode('[share title=\"Share this Post\" facebook=\"true\" twitter=\"true\" google_plus=\"true\" linkedin=\"true\" pinterest=\"false\" reddit=\"false\" email=\"true\"]');\n \n }\n}","public function uwd_articles_display( $atts ) {\n\t\t//* Collect values, combining passed in values and defaults.\n\t\t$values = shortcode_atts( array(\n\t\t\t'id' => 'rand',\n\t\t), $atts );\n\n\t\t//* Form the arguments for WP_Query.\n\t\t$args = array(\n\t\t\t'post_type' => array( 'post', 'weeklies', 'videos' ),\n\t\t\t'ignore_sticky_posts' => true,\n\t\t\t'posts_per_page' => 2,\n\t\t);\n\n\t\tif ( $values['id'] == 'rand' ) {\n\t\t\t//* Set random order if no ids specified.\n\t\t\t$args['orderby'] = 'rand';\n\t\t} else {\n\t\t\t//* Remove all the whitespace.\n\t\t\t$id_string = preg_replace( '/\\s+/', '', $values['id'] );\n\t\t\t//* Explode the string into array.\n\t\t\t$id = explode( ',', $id_string );\n\t\t\t//* Set the array to the query.\n\t\t\t$args['post__in'] = $id;\n\t\t}\n\n\t\t$wp_query = new WP_Query( $args );\n\n\t\t//* Start the buffer.\n\t\tob_start();\n\n\t\tif ( $wp_query->have_posts() ) {\n\t\t\t?>\n\t\t\t
    \n\t\t\t\thave_posts() ) {\n\t\t\t\t\t$wp_query->the_post();\n\n\t\t\t\t\t$entry_image_id = get_post_thumbnail_id();\n\t\t\t\t\t$entry_image_object = wp_get_attachment_image_src( $entry_image_id, 'uwd-custom-medium' );\n\t\t\t\t\t$entry_image_src = $entry_image_object[0];\n\t\t\t\t\t$entry_image_width = $entry_image_object[1];\n\t\t\t\t\t$entry_image_height = $entry_image_object[2];\n\t\t\t\t\t$entry_image_alt = get_post_meta( $entry_image_id, '_wp_attachment_image_alt', true );\n\t\t\t\t\t?>\n\t\t\t\t\t
    \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t\t height=\"\"\n\t\t\t\t\t\t\t src=\"\" alt=\"\"\n\t\t\t\t\t\t\t title=\"\">\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t

    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t

    \n\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t\n\t\t\t
    \n\t\t\t '',\n\t\t\t'num' => ''\n\t\t),$atts));\t\n\t\t\n\t\t$output = '';\n\t\t$category_link = get_category_link( $category );\n\t\t\n\t\t$args = array(\n\t\t\t\t\t\t'cat' \t\t\t\t=> $category,\n\t\t\t\t\t\t'posts_per_page' \t=> $num\n\t\t\t\t );\n\t\tquery_posts( $args );\t\n\t\t\n\t\tif( have_posts() ) while ( have_posts() ) : the_post();\n\t\t\n\t\t$format = get_post_format();\n\t\t\n\t\t$post_thumb = get_post_thumbnail_id( $post->ID );\n\t\t$image_src = wp_get_attachment_image_src($post_thumb, 'large');\n\t\t$image = aq_resize( $image_src[0], 118, 118, true ); //resize & crop the image\n\t\t\n\t\t$output .= '
    ';\n\t\t\n\t\tif ( ( function_exists( 'get_post_format' ) && 'audio' == get_post_format( $post->ID ) ) ) :\n\t\t\n\t\t$output .= do_shortcode( sp_get_custom_field( 'sp_audio_external', $post->ID ) );\n\t\t\n\t\telse:\n\t\t\n\t\t$output .= '
    ';\n\t\t\n\t\tif ( ( function_exists( 'get_post_format' ) && 'video' == get_post_format( $post->ID ) ) ) : \n\t\t$output .= '';\n\t\t$output .= 'ID ) . '/0.jpg\" width=\"267\" height=\"175\" class=\"alignnone\" />';\n\t\t$output .= '';\n\t\telse:\n\t\t\tif ($image) {\n\t\t\t$output .= '';\n\t\t\t} else {\n\t\t\t$output .= '\"Blank';\n\t\t\t}\n\t\tendif;\n\t\t\n\t\t$output .= '
    ';\n\t\t\n\t\t$output .= '
    ';\n\t\t$output .= '

    ' . get_the_title() .'

    ';\n\n\t\t$output .= '

    ' . sp_excerpt_length(6) . '

    ';\n\t\t$output .= '' . __( 'Read more »', 'sptheme' ) . '';\n\t\t\n\t\t$output .= '
    ';\n\t\t$output .= '
    ';\n\t\t\n\t\tendif; // end if audio post\n\t\t\n\t\t$output .= '
    ';\n\t\t\n\t\tendwhile;\n\n\t\twp_reset_query();\n\t\t\n\t\t$output .= '' . __('See more ', 'sptheme') . get_the_title($post->ID) .'';\n\n\t\treturn $output;\t \t \n\t}","public function register_shortcodes(){\n\t\tadd_shortcode('upcoming_post_preview', array($this,'shortcode_display'));\n\t}","function demolistposts_handler() {\n $demolph_output = demolistposts_function();\n //send back text to replace shortcode in post\n return $demolph_output;\n}","public function featured_q_display() {\n\t\t// Build the output to return for use by the shortcode.\n\t\tob_start();\n\n\t\t$args = array(\n\t\t\t'posts_per_page' => 1,\n\t\t\t'post_type' => 'post',\n\t\t\t'tax_query' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'taxonomy' => 'category',\n\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t'terms' => 'featured-q',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t\t$my_posts = new WP_Query( $args );\n\n\t\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\n\t\t?>\n\t\t\t
    \n\t\t\t\t
    \n\t\t\t

    \" class=\"crimson\">

    \n\t\t\t

    \n\t\t\t

    \">Read more

    \n\t\t
    \n\t\t\t
    \n\t\t\t\n\t\t\t
    \n\t\t
    \n\t\t ($post ? $post->ID : ''),\n\t\t'title' => \"In the News\",\n\t\t'limit' => 1,\n\t), $atts));\n\n\tif (!$post_id) {\n\t\treturn '';\n\t}\n\n\t$term_ids = dm_get_post_term_ids($post_id, 'solutions');\n\n\tif (empty($term_ids)) return '';\n\n\t$args = array(\n\t\t'post_status' => 'publish',\n\t\t'post_type' => 'post',\n\t\t'posts_per_page' => $limit,\n\t\t'orderby' => 'date',\n\t\t'order' => 'DESC',\n\t\t'tax_query' => array(\n\t\t\tarray(\n\t\t\t\t'taxonomy' => 'solutions',\n\t\t\t\t'field' => 'id',\n\t\t\t\t'terms' => $term_ids,\n\t\t\t)\n\t\t),\n\t);\n\t$query = new WP_Query($args);\n\n\tif (!$query->have_posts()) return '';\n\n\tob_start();\n?>\n\t
    \n\t\thave_posts()): $query->the_post(); ?>\n\t\t\t

    \n\t\t\t\t:\n\t\t\t\t\n\t\t\t\t\">READ MORE &raquo;\n\t\t\t

    \n\t\t\n\t
    \n BDPP_POST_TYPE,\n\t\t'taxonomy'\t\t\t\t=> BDPP_CAT,\n\t\t'cat_taxonomy'\t\t\t=> '',\n\t\t'type'\t\t\t\t\t=> '',\n\t\t'limit' \t\t\t\t=> 9,\n\t\t'grid' \t\t\t\t\t=> 3,\n\t\t'show_author' \t\t\t=> 'true',\n\t\t'show_comments'\t\t\t=> 'true',\n\t\t'show_category' \t\t=> 'true',\n\t\t'show_date' \t\t\t=> 'true',\n\t\t'link_behaviour'\t\t=> 'self',\n\t\t'sharing'\t\t\t\t=> '',\n\t\t'media_size' \t\t\t=> 'full',\n\t\t'lazyload'\t\t\t\t=> 'true',\n\t\t'order'\t\t\t\t\t=> 'DESC',\n\t\t'orderby'\t\t\t\t=> 'date',\n\t\t'category' \t\t\t\t=> array(),\n\t\t'exclude_cat'\t\t\t=> array(),\n\t\t'category_operator'\t\t=> 'IN',\n\t\t'include_cat_child'\t\t=> 'true',\n\t\t'posts'\t\t\t\t\t=> array(),\n\t\t'hide_post'\t\t\t\t=> array(),\n\t\t'author' \t\t\t\t=> array(),\n\t\t'exclude_author'\t\t=> array(),\n\t\t'sticky_posts'\t\t\t=> 'false',\n\t\t'query_offset'\t\t\t=> '',\n\t\t'css_class'\t\t\t\t=> '',\n\t\t'slider_screen'\t\t\t=> 640,\n\t\t'custom_param_1'\t\t=> '',\t// Custom Param Passed Just for Developer\n\t\t'custom_param_2'\t\t=> '',\n\t\t), $atts, 'bdp_post_ctv1');\n\n\t$sharing_designs\t\t\t\t= bdpp_sharing_designs();\n\t$allowed_post_types\t\t\t\t= ( $atts['type'] == 'trending' ) ? bdpp_get_option( 'trend_post_types', array() ) : bdpp_get_option( 'post_types', array() );\n\t$atts['shortcode']\t\t\t\t= 'bdp_post_ctv1';\n\t$atts['limit'] \t\t\t\t\t= bdpp_clean_number( $atts['limit'], 9, 'number' );\n\t$atts['grid']\t\t\t\t\t= bdpp_clean_number( $atts['grid'], 3 );\n\t$atts['grid']\t\t\t\t\t= ( $atts['grid'] <= 12 ) ? $atts['grid'] : 3;\n\t$atts['post_type']\t\t\t\t= !empty( $atts['post_type'] )\t\t\t\t? explode( ',', $atts['post_type'] )\t: array( BDPP_POST_TYPE );\n\t$atts['cat_taxonomy']\t\t\t= !empty( $atts['cat_taxonomy'] )\t\t\t? $atts['cat_taxonomy'] \t\t\t\t: $atts['taxonomy'];\n\t$atts['show_author'] \t\t\t= ($atts['show_author'] == 'false')\t\t\t? false\t\t\t\t\t\t\t\t\t: true;\n\t$atts['show_comments'] \t\t\t= ( $atts['show_comments'] == 'false' ) \t? false\t\t\t\t\t\t\t\t\t: true;\n\t$atts['show_date'] \t\t\t\t= ( $atts['show_date'] == 'false' ) \t\t? false\t \t\t\t\t\t\t\t\t: true;\n\t$atts['show_category'] \t\t\t= ( $atts['show_category'] == 'false' ) \t? false \t\t\t\t\t\t\t\t: true;\n\t$atts['lazyload']\t\t\t\t= ( $atts['lazyload'] == 'false' ) \t\t\t? false\t\t\t\t\t\t\t\t\t: true;\n\t$atts['link_behaviour']\t\t\t= ( $atts['link_behaviour'] == 'new' )\t\t? '_blank'\t\t\t\t\t\t\t\t: '_self';\n\t$atts['order'] \t\t\t\t\t= ( strtolower($atts['order']) == 'asc' ) \t? 'ASC' \t\t\t\t\t\t\t\t: 'DESC';\n\t$atts['orderby'] \t\t\t\t= !empty( $atts['orderby'] )\t\t\t\t? $atts['orderby'] \t\t\t\t\t\t: 'date';\n\t$atts['category'] \t\t\t\t= !empty( $atts['category'] )\t\t\t\t? explode(',', $atts['category']) \t\t: array();\n\t$atts['exclude_cat']\t\t\t= !empty( $atts['exclude_cat'] )\t\t\t? explode(',', $atts['exclude_cat'])\t: array();\n\t$atts['include_cat_child']\t\t= ( $atts['include_cat_child'] == 'false' )\t? false \t\t\t\t\t\t\t\t: true;\n\t$atts['posts']\t\t\t\t\t= !empty( $atts['posts'] )\t\t\t\t\t? explode(',', $atts['posts']) \t\t\t: array();\n\t$atts['hide_post']\t\t\t\t= !empty( $atts['hide_post'] )\t\t\t\t? explode(',', $atts['hide_post']) \t\t: array();\n\t$atts['author']\t\t\t\t\t= !empty( $atts['author'] )\t\t\t\t\t? explode(',', $atts['author']) \t\t: array();\n\t$atts['exclude_author']\t\t\t= !empty( $atts['exclude_author'] )\t\t\t? explode(',', $atts['exclude_author']) : array();\n\t$atts['sticky_posts'] \t\t\t= ($atts['sticky_posts'] == 'false')\t\t? true\t\t\t\t\t\t\t\t\t: false;\n\t$atts['query_offset']\t\t\t= !empty( $atts['query_offset'] )\t\t\t? $atts['query_offset'] \t\t\t\t: null;\t\n\t$atts['sharing'] \t\t\t\t= ( $atts['sharing'] && (array_key_exists(trim($atts['sharing']), $sharing_designs)) ) ? trim( $atts['sharing'] ) : false;\n\t$atts['slider_screen']\t\t\t= bdpp_clean_number( $atts['slider_screen'], 640 );\n\t$atts['css_class']\t\t\t\t= bdpp_sanitize_html_classes( $atts['css_class'] );\n\t$atts['unique'] \t\t\t\t= bdpp_get_unique();\n\t$atts['thumb_html']\t\t\t\t= '';\n\n\textract( $atts );\n\n\t// Taking some globals\n\tglobal $post;\n\n\t// Enqueue required scripts\n\tif( $sharing ) {\n\t\twp_enqueue_script( 'tooltipster' );\n\t}\n\twp_enqueue_script( 'jquery-owl-carousel' );\n\twp_enqueue_script( 'bdpp-public-script' );\n\tbdpp_enqueue_script();\n\n\t// Taking some variables\n\t$count \t\t\t= 0;\n\t$post_type_arr\t= array();\n\t$prefix \t\t= BDPP_META_PREFIX;\n\n\t// Processing post types\n\tif( !empty( $post_type ) ) {\n\t\tforeach ($post_type as $post_key => $post_val) {\n\t\t\t\n\t\t\t$post_val = bdpp_clean( $post_val );\n\t\t\t\n\t\t\tif( in_array( $post_val, $allowed_post_types ) ) {\n\t\t\t\t$post_type_arr[] = $post_val;\n\t\t\t}\n\t\t}\n\t\t$post_type_arr\t\t= array_unique( $post_type_arr );\n\t\t$atts['post_type']\t= $post_type_arr;\n\t}\n\n\t// WP Query Parameters\n\t$args = array(\n\t\t'post_type' \t\t=> $post_type_arr,\n\t\t'post_status' \t\t\t=> array('publish'),\n\t\t'order' \t\t=> $order,\n\t\t'orderby' \t\t=> $orderby,\n\t\t'posts_per_page' \t\t=> $limit,\n\t\t'post__in'\t\t \t\t=> $posts,\n\t\t'post__not_in'\t \t\t=> $hide_post,\n\t\t'author__in' \t=> $author,\n\t\t'author__not_in' \t\t=> $exclude_author,\t\t\n\t\t'offset'\t\t\t\t=> $query_offset,\n\t\t'no_found_rows'\t\t\t=> true,\n\t\t'ignore_sticky_posts'\t=> $sticky_posts,\n\t);\n\n // Category Parameter\n\tif( $category ) {\n\n\t\t$args['tax_query'] = array(\n\t\t\t\t\t\t\t\tarray( \n\t\t\t\t\t\t\t\t\t'taxonomy' \t\t\t=> $taxonomy,\n\t\t\t\t\t\t\t\t\t'terms' \t\t\t=> $category,\n\t\t\t\t\t\t\t\t\t'operator'\t\t\t=> $category_operator,\n\t\t\t\t\t\t\t\t\t'include_children'\t=> $include_cat_child,\n\t\t\t\t\t\t\t\t\t'field' \t\t\t=> ( isset($category[0]) && is_numeric($category[0]) ) ? 'term_id' : 'slug',\n\t\t\t\t\t\t\t\t));\n\n\t} else if( $exclude_cat ) {\n\t\t\n\t\t$args['tax_query'] = array(\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'taxonomy' \t\t\t=> $taxonomy,\n\t\t\t\t\t\t\t\t\t\t'terms' \t\t\t=> $exclude_cat,\n\t\t\t\t\t\t\t\t\t\t'operator'\t\t\t=> 'NOT IN',\n\t\t\t\t\t\t\t\t\t\t'include_children'\t=> $include_cat_child,\n\t\t\t\t\t\t\t\t\t\t'field' \t\t\t=> ( isset($exclude_cat[0]) && is_numeric($exclude_cat[0]) ) ? 'term_id' : 'slug',\n\t\t\t\t\t\t\t\t\t));\n\t}\n\n\t// For featured post\n\tif( $type == 'featured' ) {\n\n\t\t$args['meta_query'] = array(\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'key'\t=> $prefix.'feat_post',\n\t\t\t\t\t\t\t\t\t\t'value'\t=> 1,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t);\n\n\t} else if( $type == 'trending' ) {\n\n\t\t$args['orderby'] \t= ( $orderby == 'post_views' ) ? 'meta_value_num' : $orderby;\n\t\t$args['meta_query'] = array(\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'post_views',\n\t\t\t\t\t\t\t\t\t\t'value'\t\t=> 0,\n\t\t\t\t\t\t\t\t\t\t'compare' \t=> '>',\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t);\n\t}\n\n\t$args = apply_filters( 'bdpp_post_ctv1_query_args', $args, $atts );\n\t$args = apply_filters( 'bdpp_posts_query_args', $args, $atts );\n\n\t// WP Query\n\t$query \t\t\t\t\t= new WP_Query( $args );\n\t$atts['max_num_pages'] \t= $query->max_num_pages;\n\n\tob_start();\n\n\t// If post is there\n\tif ( $query->have_posts() ) {\n\n\t\t\tbdpp_get_template( 'misc/creative-1/loop-start.php', $atts );\n\n\t\t\twhile ( $query->have_posts() ) : $query->the_post();\n\n\t\t\t\t$count++;\n\t\t\t\t$atts['count'] \t\t= $count;\n\t\t\t\t$atts['format']\t\t= bdpp_get_post_format();\n\t\t\t\t$atts['feat_img'] \t= bdpp_get_post_feat_image( $post->ID, $media_size, true );\n\t\t\t\t$atts['post_link'] \t= bdpp_get_post_link( $post->ID );\n\t\t\t\t$atts['cate_name'] \t= bdpp_get_post_terms( $post->ID, $cat_taxonomy );\n\n\t\t\t\t$atts['wrp_cls']\t= \"bdpp-col-nr-{$grid} bdpp-columns bdpp-post-{$atts['format']} bdpp-post-{$post->ID}\";\n\t\t\t\t$atts['wrp_cls']\t.= empty( $atts['feat_img'] )\t? ' bdpp-no-thumb'\t: '';\n\t\t\t\t$atts['wrp_cls']\t.=\t( is_sticky( $post->ID ) )\t? ' bdpp-sticky'\t: '';\n\n\t // Include Dsign File\n\t\t\t\tbdpp_get_template( \"misc/creative-1/creative-1.php\", $atts );\n\n\t\t\t\t// Creating Thumb HTML\n\t\t\t\tif( $atts['feat_img'] ) {\n\t\t\t\t\t$thumb_active\t= ( $count == 1 ) ? 'bdpp-post-ctv1-thumb-active' : '';\n\t\t\t\t\t$lazy_style\t\t= ( ! $lazyload ) ? 'style=\"background-image:url('.$atts['feat_img'].');\"' : '';\n\t\t\t\t\t\n\t\t\t\t\tif( $count == 1 ) {\n\t\t\t\t\t\t$atts['thumb_html'] .= '
    ';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$atts['thumb_html'] .= '
    ';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tendwhile;\n\n\t\t\tbdpp_get_template( 'misc/creative-1/loop-end.php', $atts );\n\n\t} // end of have_post()\n\n\twp_reset_postdata(); // Reset WP Query\n\n\t$content .= ob_get_clean();\n\treturn $content;\n}","function cpt_casestudy() {\n\n \t$labels = array(\n \t\t'name' => _x( 'Case Studies', 'Post Type General Name', 'case_study' ),\n \t\t'singular_name' => _x( 'Case Study', 'Post Type Singular Name', 'case_study' ),\n \t\t'menu_name' => __( 'Case Studies', 'case_study' ),\n \t\t'name_admin_bar' => __( 'Case Study', 'case_study' ),\n \t\t'archives' => __( 'Case Study Archives', 'case_study' ),\n \t\t'attributes' => __( 'Case Study Attributes', 'case_study' ),\n \t\t'parent_item_colon' => __( 'Parent Case Study:', 'case_study' ),\n \t\t'all_items' => __( 'All Case Studies', 'case_study' ),\n \t\t'add_new_item' => __( 'Add New Case Study', 'case_study' ),\n \t\t'add_new' => __( 'Add New', 'case_study' ),\n \t\t'new_item' => __( 'New Case Study', 'case_study' ),\n \t\t'edit_item' => __( 'Edit Case Study', 'case_study' ),\n \t\t'update_item' => __( 'Update Case Study', 'case_study' ),\n \t\t'view_item' => __( 'View Case Study', 'case_study' ),\n \t\t'view_items' => __( 'View Case Studies', 'case_study' ),\n \t\t'search_items' => __( 'Search Case Study', 'case_study' ),\n \t\t'not_found' => __( 'Not found', 'case_study' ),\n \t\t'not_found_in_trash' => __( 'Not found in Trash', 'case_study' ),\n \t\t'featured_image' => __( 'Business Logo', 'case_study' ),\n \t\t'set_featured_image' => __( 'Set business logo', 'case_study' ),\n \t\t'remove_featured_image' => __( 'Remove business logo', 'case_study' ),\n \t\t'use_featured_image' => __( 'Use as business logo', 'case_study' ),\n \t\t'insert_into_item' => __( 'Insert into Case Study', 'case_study' ),\n \t\t'uploaded_to_this_item' => __( 'Uploaded to this Case Study', 'case_study' ),\n \t\t'items_list' => __( 'Case Studies list', 'case_study' ),\n \t\t'items_list_navigation' => __( 'Case Studies list navigation', 'case_study' ),\n \t\t'filter_items_list' => __( 'Filter Case Studies list', 'case_study' ),\n \t);\n \t$args = array(\n \t\t'label' => __( 'Case Study', 'case_study' ),\n \t\t'labels' => $labels,\n \t\t'supports' => array( 'title', 'thumbnail' ),\n \t\t'taxonomies' => array( 'case_study_categories' ),\n \t\t'hierarchical' => false,\n \t\t'public' => true,\n \t\t'show_ui' => true,\n \t\t'show_in_menu' => true,\n \t\t'menu_position' => 20,\n \t\t'menu_icon' => 'dashicons-analytics',\n \t\t'show_in_admin_bar' => true,\n \t\t'show_in_nav_menus' => true,\n \t\t'can_export' => true,\n \t\t'has_archive' => true,\n \t\t'exclude_from_search' => true,\n \t\t'publicly_queryable' => true,\n \t\t'rewrite' => false,\n \t\t'capability_type' => 'page',\n \t);\n \tregister_post_type( 'case_study', $args );\n\n }","function dm_product_news_shortcode($atts, $content = null) {\n\tglobal $post;\n\textract(shortcode_atts(array(\n\t\t'post_id' => ($post ? $post->ID : ''),\n\t\t'title' => \"In the News\",\n\t\t'limit' => 1,\n\t), $atts));\n\n\tif (!$post_id) {\n\t\treturn '';\n\t}\n\n\t$term_ids = dm_get_post_term_ids($post_id, 'products');\n\n\tif (empty($term_ids)) return '';\n\n\t$args = array(\n\t\t'post_status' => 'publish',\n\t\t'post_type' => 'post',\n\t\t'posts_per_page' => $limit,\n\t\t'orderby' => 'date',\n\t\t'order' => 'DESC',\n\t\t'tax_query' => array(\n\t\t\tarray(\n\t\t\t\t'taxonomy' => 'products',\n\t\t\t\t'field' => 'id',\n\t\t\t\t'terms' => $term_ids,\n\t\t\t)\n\t\t),\n\t);\n\t$query = new WP_Query($args);\n\n\tif (!$query->have_posts()) return '';\n\n\tob_start();\n?>\n\t
    \n\t\thave_posts()): $query->the_post(); ?>\n\t\t\t

    \n\t\t\t\t:\n\t\t\t\t\n\t\t\t\t\">READ MORE &raquo;\n\t\t\t

    \n\t\t\n\t
    \n\n
    \n
      \n
    • {{{ settings.all_text }}}
    • \n
    • {{{ settings.taxonomy }}} 1
    • \n
    • {{{ settings.taxonomy }}} 2
    • \n
    \n
    \npt_show_blc_front();\n\t\t}","function blog_post_shortcode($atts) {\n // Defaults\n extract(shortcode_atts(array(\n\t \"no_of_post\" => '',\n\t \"order\" => 'desc',\n\t \"order_by\" => 'rand',\n\t \"excerpt_length\" => '80',\n\t \"link_text\" => 'Continue Reading'\n ), $atts));\n $paged = (get_query_var('paged')); \n $the_query = '';\n // de-funkify query\n $the_query = preg_replace('~&#x0*([0-9a-f]+);~ei', 'chr(hexdec(\"\\\\1\"))', $the_query);\n $the_query = preg_replace('~&#0*([0-9]+);~e', 'chr(\\\\1)', $the_query);\n \n \n\t$the_query = array(\n\t\t\"posts_per_page\" => $no_of_post,\n\t\t\"order\" => $order,\n\t\t\"orderby\" => $order_by,\n\t\t\"paged\" => $paged\n\t);\n // query is made \n query_posts($the_query);\n\n // Reset and setup variables\n $output = '';\n $temp_title = '';\n $temp_link = '';\n $temp_ex = '';\n $temp_content = '';\n $temp_thumb = '';\n $temp_id = '';\n\n // the loop\n $output = '';\n if (have_posts()) : while (have_posts()) : the_post();\n global $post;\n \t $temp_id = get_the_ID();\n $temp_title = get_the_title($temp_id);\n $temp_link = get_permalink($temp_id);\n $temp_content = ShortenText(strip_shortcodes(strip_tags(get_the_content($temp_id))), $excerpt_length) ;\n\t \n\t $meta = '

    Posted by ';\n\t $meta .= ' author). '\">'; \n\t $meta .= get_the_author_meta('display_name');\n\t $meta .= '';\n\t \n\t \n\t $meta .= ' On '.get_the_time('F j, Y');\n\t $meta .= '

    ';\n\t $category = get_the_category_list(', ');\n\t \n\t \n\t \n $output .= '
    \n \t
    \n \t\t

    '.$temp_title.'

    \n \t
    \n
    \n\t\t\t\t\t\t '.$meta.'\n

    Categories: '.$category.'

    \n
    \n
    \n \n
    ';\n \n $meta = get_post_meta($post->ID, 'drive_post_options', false);\n\t\t\t\t\t\n if( !empty($meta) )\n extract($meta[0]);\n\n $fcs_video = isset($fcs_video) ? $fcs_video : '';\n $fcs_audio = isset($fcs_audio) ? esc_url($fcs_audio) : '';\n\n if ( has_post_format( 'audio' ) ){\n if(!empty($fcs_audio)){\n $output .= '
    '.do_shortcode('[audio src=\"'. $fcs_audio .'\"]').'
    ';\n }\n }\n elseif ( has_post_format( 'video' ) ){\n if (!empty($fcs_video)) {\n $output .= '
    '.$fcs_video.'
    ';\n }\n }\n else{\n if( has_post_thumbnail() && function_exists('dfi_get_featured_images') ) {\n \n \t$output .= '
    \n
    \n
      '; \n\t\t\t\t\t\t\t\n $img = '';\n // Checks if post has a feature image, grabs the feature-image and outputs that along with thumbnail SRC as a REL attribute \n if (has_post_thumbnail()) { // checks if post has a featured image and then outputs it. \n $image_id = get_post_thumbnail_id ($post->ID ); \n $image_thumb_url = wp_get_attachment_image_src( $image_id, 'full'); \n if(!empty($image_thumb_url))\n $img = aq_resize($image_thumb_url[0], 1100, 300, true, true); \n\n if($img){\n $output .= '
    • \"\"
    • ';\n }else{\n $output .= '
    • \"\"
    • '; \n }\n }\n\n \n if( function_exists('dfi_get_featured_images') ) {\n $featuredImages = dfi_get_featured_images();\n\n if(!empty($featuredImages)){\n\n foreach ($featuredImages as $featuredImage) {\n $img = aq_resize($featuredImage['full'], 817, 300, true, true);\n \n if($img){\n $output .= '
    • \"\"
    • ';\n }else{\n $output .= '
    • \"\"
    • '; \n }\n }\n }\n }\n \n \n $output .= '
    \n
    \n
    '; \n \n }\n }\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\n $output .= '

    '.$temp_content.'

    ';\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n \n $output .= ''.$link_text.'\n
    \n
    ';\n\t\t\n\t\t\n\t\t\t\n endwhile; \n $output .= shortcode_nav( '
    ','
    ');\n else:\n $output .= \"Post not found.\";\n endif;\n wp_reset_query();\n return $output;\n}","function khLess_shortcodes_init()\n{\n function khLess_shortcode($atts = [], $content = null)\n {\n get_template_part('template', 'schedule');\n }\n\n add_shortcode('khLess', 'khLess_shortcode');\n}","function the_show( $before = '', $after = ': ' ) {\n global $post;\n echo get_the_show( $post->ID, $before, $after );\n}","function displayTemplateColumn($column_name, $post_ID) { \n if ($column_name == 'template') { \n $pageTemplate = $this->getPageTemplate($post_ID); \n if ($pageTemplate) { \n echo $pageTemplate; \n } \n } \n }","function Display_Shortcode_metabox() \n{\n\n ?>\n
    \n \n
    \n ' . do_shortcode($content) . '';\n}","function otm_show_featured_posts() {\n\n\t$my_query = new WP_Query( array( \n\t\t'meta_key' \t\t\t\t=> 'is_featured',\n\t\t'post_type'\t\t\t\t=> 'post',\n\t\t'meta_value'\t\t\t=> true,\n\t\t'numberposts' \t\t=> 3\n\t) );\n\n\t// If our query has posts\n\tif ( $my_query->have_posts() ) :\n\t\twhile ( $my_query->have_posts() ) : $my_query->the_post();\n\n\t\t\t// Get specific template-part\n\t\t\tget_template_part( 'template-parts/post/content-featured' );\n\n\t\tendwhile;\n\tendif;\n\n\twp_reset_query();\n}","public function get_shortcode() {\n\t\t$args = array();\n\t\tforeach ($this->args as $k => $v) {\n\t\t\t// Only include info if it's not the default... save space and easier to read shortcodes\n\t\t\tif (isset($this->defaults[$k]) && $this->defaults[$k] != $v) { // && (!empty($this->defaults[$k]) && !empty($v))) {\n\t\t\t\tif ( !empty($v) ) {\n\t\t\t\t\tif ( is_array($v) ) {\n\t\t\t\t\t\t$args[] = $k.'=\"'.implode(',', $v).'\"';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$args[] = $k.'=\"'.$v.'\"';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Direct filtering on a field\n\t\t\telseif (!isset($this->defaults[$k])) {\n\t\t\t\t$args[] = $k.'=\"'.$v.'\"';\n\t\t\t}\n\t\t}\n\t\t\n\t\t$args = implode(' ', $args);\n\t\tif (!empty($args)) {\n\t\t\t$args = ' '.$args;\n\t\t}\n\t\treturn '[summarize-posts'.$args.']';\n\t}","function tmiContentAreaShortCode( $atts) {\n $atts = shortcode_atts( array(\n \t'id' => '0',\n \t'slug' => ''\n \t), $atts, 'tmiContentArea' );\n $args = array('post_type' => 'tmi-content-Area',\n 'post_status' => 'publish',\n 'numberposts' => 1);\n if($atts['id'] != '0'){\n $args['ID'] = $atts['id'];\n }elseif($atts['slug'] != ''){\n $args['name'] = $atts['slug'];\n }else{\n return 'Please sepecify attribute ID or slug for shortcode';\n }\n // tmiDebug($args);\n $content = get_posts($args);\n if(is_array($content) && count($content) > 0){\n // tmiDebug($content);\n return apply_filters( 'the_content', $content[0]->post_content);\n }\n\treturn \"No data found\";\n }","public function p_news_display() {\n\t\t// Build the output to return for use by the shortcode.\n\t\tob_start();\n\t\t?>\n\t\t
    \n\t\t\t 3,\n\t\t\t\t'offset'=> 0,\n\t\t\t\t'post_type' => 'post',\n\t\t\t\t'tax_query' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'taxonomy' => 'category',\n\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t'terms' => 'news-polymeric'\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$my_posts = new WP_Query( $args );\n\n\t\t\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t\t

    \">

    \n\t\t\t\n\n\t\t
    \n\t\t '' ) {\n\t\t$title = $short_title;\n\t}\n\t\n\t$url = get_the_permalink();\t\n\t$title = \"

    $title

    \";\t\n\n\t// if the post we are displaying is an ibio custom post type, we want to use a div for the span tag normally used around an excerpt.\n\tglobal $post;\n\tif ( $post->post_type == IBioSession::$post_type\n\t || $post->post_type == IBioPlaylist::$post_type\n\t\t|| $post->post_type == IBioTalk::$post_type\n\t) {\n\t\t$excerpt = preg_replace( '/$/', '', $excerpt);\n\t}\n\t// Now let's rebuild the output\n\t$output = '<' . $inner_wrapper . ' class=\"' . implode( ' ', $class ) . '\">' . $image . $title . $date . $excerpt . $content . '';\n\n\n\t// Finally we'll return the modified output\n\treturn $output;\n}","function echotheme_flexslider_shortcode($atts)\n{\n\tob_start();\n\tget_template_part('part', 'flexslider-gallery');\n\treturn ob_get_clean();\n}","function iin_panels_extras_blog_related_posts_content_type_render($subtype, $conf, $panel_args, $context) {\n $pane = new stdClass();\n $pane->content = '';\n $arg1 = arg(1);\n $node = node_load($arg1);\n $category = $node->field_blog_category['und'][0]['tid'];\n\n if (!empty($category)) {\n $terms = db_query('SELECT nid FROM {taxonomy_index} WHERE tid = :tid AND nid != :nid ORDER BY created DESC LIMIT 3',\n array(':tid' => $category, ':nid' => $node->nid));\n $pane->content .= ' ';\n\n foreach ($terms as $term) {\n $term_node = node_load($term->nid);\n $image = (empty($term_node->field_special_featured_image)) ? $term_node->field_featured_image['und'][0] : $term_node->field_special_featured_image['und'][0];\n $image_style = image_style_url('blog_mobile_list', $image['uri']);\n\n $pane->content .= ' ';\n }\n }\n\n return $pane;\n}","function euforia_multimedia() {\n\n $labels = array(\n 'name' => _x( 'Euforia Multimedia', 'Post Type General Name', 'euforia' ),\n 'singular_name' => _x( 'Euforia Multimedia', 'Post Type Singular Name', 'euforia' ),\n 'menu_name' => __( 'Euforia Multimedia', 'euforia' ),\n 'name_admin_bar' => __( 'Euforia Multimedia', 'euforia' ),\n 'archives' => __( 'Euforia Multimedia historico', 'euforia' ),\n 'attributes' => __( 'Euforia Multimedia atributos', 'euforia' ),\n 'parent_item_colon' => __( 'Euforia Multimedia padre:', 'euforia' ),\n 'all_items' => __( 'Euforia Multimedia todos', 'euforia' ),\n 'add_new_item' => __( 'agregar Nuevo Euforia Multimedia', 'euforia' ),\n 'add_new' => __( 'Agregar Euforia Multimedia', 'euforia' ),\n 'new_item' => __( 'Nuevo Euforia Multimedia', 'euforia' ),\n 'edit_item' => __( 'Editar Euforia Multimedia', 'euforia' ),\n 'update_item' => __( 'Actualizar Euforia Multimedia', 'euforia' ),\n 'view_item' => __( 'Ver Euforia Multimedia', 'euforia' ),\n 'view_items' => __( 'Ver todos Euforia Multimedia', 'euforia' ),\n 'search_items' => __( 'Buscar Euforia Multimedia', 'euforia' ),\n 'not_found' => __( 'No se encuentra', 'euforia' ),\n 'not_found_in_trash' => __( 'No se encuentra en papelera', 'euforia' ),\n 'featured_image' => __( 'Imagen destacada', 'euforia' ),\n 'set_featured_image' => __( 'Colocar imagen destacada', 'euforia' ),\n 'remove_featured_image' => __( 'Remover imagen destacada', 'euforia' ),\n 'use_featured_image' => __( 'Use como imagen destacada', 'euforia' ),\n 'insert_into_item' => __( 'Insertar en Euforia Multimedia', 'euforia' ),\n 'uploaded_to_this_item' => __( 'Subido a Euforia Multimedia', 'euforia' ),\n 'items_list' => __( 'Euforia Multimedia Listado', 'euforia' ),\n 'items_list_navigation' => __( 'Euforia Multimedia listado navegacion', 'euforia' ),\n 'filter_items_list' => __( 'Filtro Euforia Multimedia lista', 'euforia' ),\n );\n $rewrite = array(\n 'slug' => 'euforia-multimedia',\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => true,\n );\n $args = array(\n 'label' => __( 'Euforia Multimedia', 'euforia' ),\n 'description' => __( 'Sección multimedia del sitio para Euforia', 'euforia' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'excerpt', 'thumbnail', 'post-formats' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => get_template_directory_uri() . '/images/favicon-16x16.png',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => true,\n 'publicly_queryable' => true,\n 'query_var' => 'multimedia',\n 'rewrite' => $rewrite,\n 'capability_type' => 'post',\n );\n register_post_type( 'euforia_mm', $args );\n\n}","function gallery_section_shortcode( $atts, $content = null ) {\t\n\t$output = '
  • ';\n\t$output .= do_shortcode($content);\n\t$output .= '
  • ';\n\treturn $output;\n}","function et_excerpt_more($more) {\n global $post;\n return '';\n}","function display( array $atts , $content = '' ){\r\n\r\n ob_start();\r\n\r\n if( $atts['title'] && ! Better_Framework::widget_manager()->get_current_sidebar() && $atts['show_title'] ){\r\n $atts['element-type'] = $this->id;\r\n echo apply_filters( 'better-framework/shortcodes/title', $atts );\r\n }\r\n\r\n $height = 65;\r\n if( $atts['show_faces'] == true ){\r\n $height += 175;\r\n }\r\n if( $atts['show_posts'] == true ){\r\n $height += 350;\r\n }\r\n\r\n ?>\r\n
    \">\r\n
    \r\n \r\n
    \r\n
    \r\n 1,\n\t\t\t\t'post_id'\t\t\t\t=> false\n\t\t\t\t), $atts, $tag);\n\t\t\t\t\n\t\t\t//build output\n\t\t\t$html .= $this->get_upcoming_post_preview($arguments);\n\t\t}\n\t\t\n\t\treturn $html;\n\t}","function historias_consultants_shortcode( $atts ) {\n ob_start();\n\n extract( shortcode_atts( array (\n 'type' => 'consultant',\n 'order' => 'ASC',\n 'orderby' => 'title',\n 'posts' => -1,\n ), $atts ) );\n\n $options = array(\n 'post_type' => $type,\n 'order' => $order,\n 'orderby' => $orderby,\n 'posts_per_page' => $posts,\n );\n\n $query = new WP_Query( $options );\n if ( $query->have_posts() ) { ?>\n
    \n have_posts() ) : $query->the_post(); ?>\n
    >\n \n
    \n \n
    )\">\n
    \n
    \n \n
    \n

    \n \n ' ) ); ?>\n
    \n
    \n \n
    \n fetch_base_config( $id, $post );\n $context['selector'] = 'feed' . $id;\n $context = $this->fetch_module_config( $context, $id );\n $context = $this->fetch_btn_config( $context, $id, $meta );\n $context['post_list_layout'] = get_post_meta( $id, 'yali_cdp_post_list_layout', true);\n\n //$this->debug($context );\n return Twig::render( 'content_blocks/post-list.twig', $context );\n }","function custom_loop_shortcode_get_posts($atts){\n\n // get global post variable\n global $post;\n\n // define shortcode variable\n extract(shortcode_atts(array(\n 'posts_per_page' => 5,\n 'orderby' => 'date'\n ), $atts));\n\n // define get_posts parameters\n $args = array(\n 'posts_per_page' => $posts_per_page,\n 'orderby' => $orderby\n );\n\n // get the posts\n $posts = get_posts($args);\n\n // begin output variable\n $output = '

    Custom Loop Example: get_posts()

    ';\n $output .= '
      ';\n\n // loop thru posts\n foreach($posts as $post){\n\n // prepare post data\n setup_postdata($post);\n\n // continue output\n $output .= '
    • ' . get_the_title() . '
    • ';\n\n }\n\n // reset post data\n wp_reset_postdata();\n\n // complete output variable\n $output .= '
    ';\n\n // return output\n return $output;\n}","function _show_post_preview()\n {\n }","function flatsome_single_page_header(){\n if(is_singular('post') && get_theme_mod('blog_post_style') == 'top'){\n\t\techo get_template_part( 'template-parts/posts/partials/single-featured', get_theme_mod('blog_post_style'));\n\t}\n}","public function p_pub_display() {\n\t\t// Build the output to return for use by the shortcode.\n\t\tob_start();\n\t\t?>\n\n\t\t
    \n\t\t\t 4,\n\t\t\t\t'offset'=> 0,\n\t\t\t\t'post_type' => 'wsuwp_uc_publication',\n\t\t\t\t'tax_query' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'taxonomy' => 'category',\n\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t'terms' => 'polymeric-materials-publications'\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$my_posts = new WP_Query( $args );\n\n\t\t\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t\t

    \">

    \n\t\t\t\n\n\t\t
    \n\n\t\t get_the_ID() ,\n\t\t'key' => '',\n\t\t'single' => false,\n ), $atts );\t\n \n return get_post_meta( $a[\"post-id\"], $a[\"key\"], $a[\"post-id\"] ) ;\n\n}","function custom_bcn_template_tag($replacements, $type, $id)\n{\n if (in_array('post-products', $type)) {\n $short_title = get_field('short_title', $id);\n $replacements['%short_title%'] = ($short_title) ? $short_title : $replacements['%htitle%'];\n } else {\n $replacements['%short_title%'] = $replacements['%htitle%'];\n }\n return $replacements;\n}","function pm_blog_shortcode( $atts, $content = null) {\n\textract(shortcode_atts(array(\n\t\t'number_of_post' => '',\n\t\t'exclude' \t\t => '',\n\t\t'class'\t\t\t => '',\n\t), $atts));\n\n\t$result = '';\n\n\tob_start(); \n\n\t// Assigning a master css class and hooking into KC\n\t$master_class = apply_filters( 'kc-el-class', $atts );\n\t$master_class[] = 'pm-team';\n\n\t// Retrieving user define classes\n\t$classes = array( 'row about-content' );\n\t(!empty($class)) ? $classes[] = $class : ''; ?>\n\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\t 'post',\n\t\t\t\t\t\t'posts_per_page'\t\t=> $number_of_post,\n\t\t\t\t\t\t'post_status'\t\t\t=> 'publish',\n\t\t\t\t\t\t'order'\t\t\t\t\t=> 'DESC',\n\t\t\t\t\t\t'category__not_in' \t\t=> $cat_excludes\n\t\t\t\t\t);\n\n\t\t\t\t\t$count_posts = wp_count_posts();\n\t\t\t\t\t$published_posts = $count_posts->publish;\n\n\t\t\t\t\t$data = new WP_Query( $args );\n\n\t\t\t\t\tif( $data->have_posts() ) :\n\t\t\t\t\t\twhile( $data->have_posts() ) : $data->the_post(); ?>\n\n\t\t\t\t\t\t
    \" >\n\t\t\t\t\t\t\t
    \n\t\t\t\t\t\t\t

    \">

    \n\n\t\t\t\t\t\t\t

    \n\t\t\t\t\t\t
    \n\n\t\t\t\t\n\t\t\t\t
    \n\t\t\t\t $number_of_post ) : ?>\n\t\t\t\t\t

    \" class=\"button orange\">View More

    \n\t\t\t\t\n\t\t\t
    \n\t\t
    \n\t
    \n\t 'coursenote',\n\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t'post_status' => array('draft'),\n\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t\t'orderby' => 'title',\n\n\t\t\t);\n\t\t}\n\t\t//Viewer can only see their notes\n\t\telse {\n\t\t\t$args = array(\n\t\t\t\t\t'post_type' => 'coursenote',\n\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t'post_status' => array('draft'),\n\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t\t'orderby' => 'title',\n\t\t\t\t\t'author__in' => $current_user\n\t\t\t);\n\t\t}\n\n\n\n $query = new WP_Query($args);\n if ( $query->have_posts() ) { ?>\n
      \n have_posts() ) : $query->the_post(); ?>\n
    • \" >\n \">\n
    • \n \n
    \n 5,\n\t\t'orderby' => 'date',\n\t\t\n\t), $atts ) );\n\t\n\t// define get_post parameters\n\t$args = array( 'posts_per_page' => $posts_per_page, 'orderby' => $orderby );\n\t\n\t// get the posts\n\t$posts = get_posts( $args );\n\t\n\t// begin output variable\n\t$output = '

    Custom Loop Example: get_posts()

    ';\n\t$output .= '
      ';\n\t\n\t// loop thru posts\n\tforeach ( $posts as $post ) {\n\t\t\n\t\t// prepare post data\n\t\tsetup_postdata( $post );\n\t\t\n\t\t// continue output variable\n\t\t$output .= '
    • '. get_the_title() .'
    • ';\n\t\t\n\t}\n\t\n\t// reset post data\n\twp_reset_postdata();\n\t\n\t// complete output variable\n\t$output .= '
    ';\n\t\n\t// return output\n\treturn $output;\n\t\n}","function prefix_render_callback( $post ) {\n\t \n\t\tinclude( plugin_dir_path( __FILE__ ).'../../templates/partials/car-tease.php');\n\t \n\t}","function my_shortcode() {\n\n$options = get_option('foodrecipecptplugin_settings');\nreturn \"

    Recipe Name:\" . $options['foodrecipecptplugin_text_field_0'] . \"

    \".\"

    Category: \" . $options['foodrecipecptplugin_text_field_1'].\"

    \".\"

    Ingredients: \". $options['foodrecipecptplugin_text_field_2'].\"

    \".\"

    Recipe Instructions: \" . $options['foodrecipecptplugin_text_field_3'] . \"

    \";\n}","function create_easyvideo_cpt() {\n\n $labels = array(\n 'name' => _x( 'Easy Videos', 'Post Type General Name', 'easycoupons' ),\n 'singular_name' => _x( 'Easy Video', 'Post Type Singular Name', 'easycoupons' ),\n 'menu_name' => _x( 'Easy Videos', 'AdminLoader Menu text', 'easycoupons' ),\n 'name_admin_bar' => _x( 'Easy Video', 'Add New on Toolbar', 'easycoupons' ),\n 'archives' => __( 'Easy Video Archives', 'easycoupons' ),\n 'attributes' => __( 'Easy Video Attributes', 'easycoupons' ),\n 'parent_item_colon' => __( 'Parent Easy Video:', 'easycoupons' ),\n 'all_items' => __( 'All Easy Videos', 'easycoupons' ),\n 'add_new_item' => __( 'Add New Easy Video', 'easycoupons' ),\n 'add_new' => __( 'Add New', 'easycoupons' ),\n 'new_item' => __( 'New Easy Video', 'easycoupons' ),\n 'edit_item' => __( 'Edit Easy Video', 'easycoupons' ),\n 'update_item' => __( 'Update Easy Video', 'easycoupons' ),\n 'view_item' => __( 'View Easy Video', 'easycoupons' ),\n 'view_items' => __( 'View Easy Videos', 'easycoupons' ),\n 'search_items' => __( 'Search Easy Video', 'easycoupons' ),\n 'not_found' => __( 'Not found', 'easycoupons' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'easycoupons' ),\n 'featured_image' => __( 'Featured Image', 'easycoupons' ),\n 'set_featured_image' => __( 'Set featured image', 'easycoupons' ),\n 'remove_featured_image' => __( 'Remove featured image', 'easycoupons' ),\n 'use_featured_image' => __( 'Use as featured image', 'easycoupons' ),\n 'insert_into_item' => __( 'Insert into Easy Video', 'easycoupons' ),\n 'uploaded_to_this_item' => __( 'Uploaded to this Easy Video', 'easycoupons' ),\n 'items_list' => __( 'Easy Videos list', 'easycoupons' ),\n 'items_list_navigation' => __( 'Easy Videos list navigation', 'easycoupons' ),\n 'filter_items_list' => __( 'Filter Easy Videos list', 'easycoupons' ),\n );\n $args = array(\n 'label' => __( 'Easy Video', 'easycoupons' ),\n 'description' => __( '', 'easycoupons' ),\n 'labels' => $labels,\n 'menu_icon' => 'dashicons-video-alt3',\n 'supports' => array('title','thumbnail'),\n 'taxonomies' => array(),\n 'public' => false,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 100,\n 'show_in_admin_bar' => false,\n 'show_in_nav_menus' => false,\n 'can_export' => true,\n 'has_archive' => false,\n 'hierarchical' => false,\n 'exclude_from_search' => true,\n 'show_in_rest' => false,\n 'publicly_queryable' => false,\n 'capability_type' => 'post',\n );\n\n register_post_type( 'easy-video', $args );\n\n }","function cah_news_display_post($post, $dept=0) {\r\n if (!is_object($post)) {\r\n return;\r\n }\r\n\r\n $title = $post->title->rendered;\r\n $excerpt = cah_news_excerpt($post->excerpt->rendered);\r\n \r\n $link = $post->link;\r\n if ($dept) {\r\n $link = add_query_arg(['dept' => $dept], $link);\r\n }\r\n $link = esc_url($link);\r\n \r\n $date = date_format(date_create($post->date), 'F d, Y');\r\n $thumbnail = '';\r\n // // $thumbnail = $post.embedded.{'wp:featuredmedia'}.media_details.sizes.thumbnail.source_url;\r\n if (isset($post->_embedded->{'wp:featuredmedia'}[0]->media_details->sizes->thumbnail->source_url))\r\n {\r\n $thumbnail = $post->_embedded->{'wp:featuredmedia'}[0]->media_details->sizes->thumbnail->source_url;\r\n }\r\n\t\r\n\t// Looking to see if it links to an outside page\r\n\t$links_to = (bool) get_post_meta( $post->id, '_links_to', true );\r\n\t$links_to_target = (bool) get_post_meta( $post->id, '_links_to_target', true) == \"_blank\";\r\n\r\n ?>\r\n\r\n \">\r\n
    \r\n ';\r\n echo '';\r\n }\r\n else {\r\n echo 'ID ) . '\">';\r\n }\r\n ?>\r\n
    \r\n
    \r\n

    \r\n &nbsp;\r\n \r\n

    \r\n
    \r\n
    \r\n
    \r\n getOptionValue('blog_single_related_posts') == 'yes') ? true : false;\n if($show_related) {\n $hasSidebar = voyage_mikado_sidebar_layout();\n $post_id = get_the_ID();\n $related_post_number = ($hasSidebar == '' || $hasSidebar == 'default' || $hasSidebar == 'no-sidebar') ? 4 : 3;\n $related_posts_options = array(\n 'posts_per_page' => $related_post_number\n );\n $related_posts_params = array(\n 'related_posts' => voyage_mikado_get_related_post_type($post_id, $related_posts_options)\n );\n }\n\n $single_options_template = voyage_mikado_options()->getOptionValue('blog_single_type');\n\n voyage_mikado_get_module_template_part('templates/single/post-formats/'.$post_format, 'blog', $single_options_template, $params);\n voyage_mikado_get_module_template_part('templates/single/parts/author-info', 'blog');\n voyage_mikado_get_single_post_navigation_template();\n if($show_related) {\n voyage_mikado_get_module_template_part('templates/single/parts/related-posts', 'blog', '', $related_posts_params);\n }\n comments_template('', true);\n\n }","public function se_news_display() {\n\t\t// Build the output to return for use by the shortcode.\n\t\tob_start();\n\t\t?>\n\t\t
    \n\t\t\t 3,\n\t\t\t\t'offset'=> 0,\n\t\t\t\t'post_type' => 'post',\n\t\t\t\t'tax_query' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'taxonomy' => 'category',\n\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t'terms' => 'news-structural-engineering'\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$my_posts = new WP_Query( $args );\n\n\t\t\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t\t

    \">

    \n\t\t\t\n\n\t\t
    \n\t\t '{$pageid}',\n'displaytype' => '{$displaytype}',\n'showcontent' => '{$showcontent}',\n'colourthumbs' => '{$colourthumbs}',\n'css' => ''\n), $atts ) );\n$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $atts );\n\n$args = array(\n'page_id' => $pageid,\n);\n$output;\nglobal $post;\n$loop = new WP_Query( $args );\nif ( $loop->have_posts() ) {\n$isinternation = get_post_meta($post->ID, '_internationalPage', true);\n\n\t\n\t$output .= \"
    \";\nwhile ( $loop->have_posts() ) : $loop->the_post();\n\nif($isinternation == 1 && !empty(get_post_meta($post->ID, '_subheadtwo', true))) {\n$thetitle = get_post_meta($post->ID, '_subheadtwo', true);\t\n} else {\n$thetitle = get_the_title();\t\n}\n\tif (isset($GLOBALS['styles'])) {\n\t$GLOBALS['styles'] = $GLOBALS['styles'];\n\t } else {\n\t$GLOBALS['styles'] = '';\t\n\t}\n\t\n\t\n\t$colour = get_post_meta($post->ID, '_pagecolour', true);\n\t$GLOBALS['styles'] .= \".media.list.media-\".get_the_ID().\" .cover{ background:\".$colour.\";}\";\n\n\t$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );\n$url = $thumb['0'];\n$GLOBALS['styles'] .= \".media-\".get_post_type().\".media-\".get_the_ID().\" .media-left{ background:url(\".$url.\"); background-size:cover; background-position:center center;}\";\n\nif ('people' == get_post_type() || $displaytype == \"medialist\" ) {\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/media-list.php';\n\t\n} elseif($displaytype == \"medialistnoimage\" ) {\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/media-list-no-image.php';\n\n\t\n} elseif($displaytype == \"list\") { \n\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/list.php';\n\n\n}else {\n\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/overlay-grid.php';\n\t\t\n}\nendwhile;\n\t$output .= \"
    \";\n\n}\nreturn $output;\n}","function endcore_socialbuttons_shortcode($atts, $content = null) {\n if(is_admin()) {\n return;\n }\n\n\tob_start();\t\n\tget_template_part('parts/stuff/code', 'social');\n\t$output = ob_get_contents();\n\tob_end_clean();\n\treturn $output;\n}","function render_post_item( $post, $in_pool=false ) {\n\t\t?>\n\t\t
    ID; ?>\">\n\t\t\t
    \n\t\t\t\t&#8722;+\n\t\t\t
    \n\n\t\t\t
    \n\t\t\t\tID, 'pr_advance_ui_thumb' ); ?>\n\t\t\t\t
    ID ); ?>
    \n\t\t\t\t
    \n\t\t\t\t\tlabels->singular_name ); ?>\n\t\t\t\t\t|\n\t\t\t\t\tpost_date); ?>\n\t\t\t\t\t|\n\t\t\t\t\t\" data-hide-text=\"\">Expand\n\t\t\t\t
    \n\t\t\t
    \n\n\t\t\t
    \n\t\t\t\tID, 'post-thumbnail' ); ?>\n\t\t\t\tpost_content ); ?>\n\t\t\t
    \n\t\t\t\n\t\t
    \n\t\tget_settings_for_display();\n ?>\n\t\t
    \n\t\t\t\t\n\t\t
    \n\t\t\n\n\t\t
    \n\t\t\t 4,\n\t\t\t\t'offset'=> 0,\n\t\t\t\t'post_type' => 'wsuwp_uc_publication',\n\t\t\t\t'tax_query' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'taxonomy' => 'category',\n\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t'terms' => 'structural-engineering-publications'\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$my_posts = new WP_Query( $args );\n\n\t\t\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t\t

    \">

    \n\t\t\t\n\n\t\t
    \n\n\t\t\n
    \">\n ID);\n $path = '/wp-content/plugins/elementor-custom-widgets/';\n $settings = $this->get_settings_for_display();\n $this->add_inline_editing_attributes('paragraphText', 'none');\n\n $pageList = get_pages(\"child_of=\".$post->post_parent.\"&parent=\".$post->post_parent.\"&sort_column=menu_order&sort_order=asc\");\n ?>\n\n
    \n
    \n
    \n
    \n\n \n\n
    \n
    \n
    \n post_author);\n $avatar = get_avatar($page->post_author);\n echo $avatar;\n ?>\n
    \n
    \n
    \n \">@\n
    \n
    \n\n
    \n \n
    \n
    \n\n
    \n
    \n ID, 'large'); ?>\">\n

    Source

    \n
    \n
    \n\n
    \n
    \n post_date;\n $unixTimestamp = strtotime($date);\n $dayOfWeek = date(\"l\", $unixTimestamp);\n ?>\n

    PUBLISHED\n ID);\n echo ' / '.get_post_time('i:h A T', true, $page->ID);\n ?>

    \n
    \n
    \n
    \n
    \n

    \n
    \n
    \n
    \n\n ID;\n }\n $randPageIndex = array_rand($pages, 1);\n $randPage = $pages[$randPageIndex];\n $marker = true;\n $count = count($pages);\n\n if ($randPage === $post->ID && $count > 1) {\n while ($marker) {\n $randPageIndex = array_rand($pages, 1);\n $randPage = $pages[$randPageIndex];\n if ($randPage !== $post->ID) {\n $marker = false;\n }\n }\n }\n if ($count > 1) { ?>\n \n \n\n \n\n ID, 'tags', true);\n $allTags = explode(', ', $tags);\n $lastElement = end($allTags);\n ?>\n
    TAGS:\n \n \n \">\n \n \">\n \n
    \n
    \n \n
    \n
    \n
    \n\n\n ID, $pages, false);\n $prevID = $pages[$current - 1];\n $nextID = $pages[$current + 1];\n\n ?>\n
    \n
    \n
    Previous Post
    \n \">\n
    \n
    \n
    Next Post
    \n \">\n
    \n
    \n\n\n \n
    \n
    \n
    \n

    \n Get our newsletter in your inbox Monday through Friday.\n

    \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n\n
    \n \n
    \n \n\n
    \n
    \n 'Tab' );\n\t\textract( shortcode_atts( $defaults, $atts ) );\n\t\t//MAKE TAB ID MATCH THE CONTENT TAB ID\n\t\treturn '
    '. do_shortcode( $content ) .'
    ';\n\t}","function hybrid_entry_meta() {\n\n\t$meta = '';\n\n\tif ( 'post' == get_post_type() )\n\t\t$meta = '

    ' . __( '[entry-terms taxonomy=\"category\" before=\"Posted in \"] [entry-terms taxonomy=\"post_tag\" before=\"| Tagged \"] [entry-comments-link before=\"| \"]', 'hybrid' ) . '

    ';\n\n\telseif ( is_page() && current_user_can( 'edit_page', get_the_ID() ) )\n\t\t$meta = '

    [entry-edit-link]

    ';\n\n\techo apply_atomic_shortcode( 'entry_meta', $meta );\n}","function segments_demo_actions() { \n echo get_template_part( 'templates/content', 'dashboard-action' );\n}","function oet_featured_content_block_display($attributes, $ajax = false){\n $html = \"\";\n $shortcodeText = \"\";\n if (!empty($attributes)) {\n extract($attributes);\n \n if (!$ajax)\n $html = '';\n }\n return $html;\n}","function mt_shortcode_portfolio_customer_support_single($params, $content) {\n extract( shortcode_atts( \n array(\n 'order_element1' =>'',\n 'animation' =>'',\n ), $params ) );\n\n $html = ''; \n\n $active = '';\n if($order_element1 == 1) {\n $html .= '
    ';\n $active = 'in active';\n }\n\tglobal $post;\n\t\n\t$post_id = $post->ID;\n\t\n\t\n\t\n $html .= '
    ';\n \n\t if(!empty(tikidocs('support_section'))) {\n $html .= '
    ';\n // $html .= tikidocs('support_section');\n\t\t $html .= get_field(\"screenshots\",$post_id);\n\t\t $html .= '
    ';\n }\n $html .= '
    ';\n if($order_element1 == 2) {\n $html .= '
    ';\n }\n\n return $html;\n}","public function getPostContent($atts = []){\n $atts = array_change_key_case((array)$atts, CASE_LOWER);\n \n // override default attributes with user attributes\n $atts = shortcode_atts([\n 'taxo' => null,\n ], $atts);\n\n global $postid;\n $postid = get_the_ID();\n\n // get json data from db\n $databaseQuery = new DatabaseAPI();\n $data = $databaseQuery->getJsonBomb($postid, $atts['taxo'])->json;\n\n // send the data as an object to front end\n wp_localize_script(\n 'rdJsCore',\n 'rdJson',\n $data\n );\n\n // plugin structure\n $rdNodeContent = <<\n
    \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n
    \n \n
    \n\nEOT;\n\n ob_start();\n echo $rdNodeContent;\n\n if ( post_password_required($postid) ) {\n return;\n }\n\n // gather comments for a specific page/post \n $comments = get_comments(array(\n 'post_id' => $postid,\n 'status' => 'approve' // type of comments to be displayed\n ));\n\n $comment_count = count($comments);\n\n echo '
    ';\n\n // comment form\n echo <<\n
    \n\n
    Comment
    \n
    \n
    Topics
    \n
      \n
    \n
    \n \n \n

    \n \nEOT;\n echo '';\n echo '';\n echo '

    ';\n\n\n if ($comment_count > 0) {\n echo '
      ';\n // Display the list of comments via template function\n wp_list_comments(array(\n 'per_page' => 10,\n 'reverse_top_level' => false,\n 'type' => 'comment',\n 'callback' => array($this,'format_comment')\n ), $comments);\n echo '
    ';\n\n echo '('.($comment_count - 1).') Comment Toggle';\n\n // If comments are closed and there are comments\n if ( ! comments_open($postid) && get_comments_number($postid) && post_type_supports( get_post_type($postid), 'comments' ) ) {\n echo '

    Comments are closed

    ';\n }\n }\n\n // end of comment area\n echo '
    ';\n return ob_get_clean();\n }","function pm_portfolio_shortcode( $atts, $content = null) {\n\textract(shortcode_atts(array(\n\t\t\t'number_of_portfolio'\t=> '',\n\t\t\t'class'\t=> '',\n\t), $atts));\n\n\t$result = '';\n\n\tob_start(); \n\n\t// Assigning a master css class and hooking into KC\n\t$master_class = apply_filters( 'kc-el-class', $atts );\n\t$master_class[] = 'pm_portfolio';\n\n\t// Retrieving user define classes\n\t$classes = array( 'row items' );\n\t(!empty($class)) ? $classes[] = $class : ''; ?>\n\n\t\t
    \">\n\t\t\t
    \">\n\t\t\t\t
    \n\t\t\t\t\t
    \n\t\t\t\t\t 'portfolio',\n\t\t\t\t\t\t\t'orderby'\t\t\t=> 'date',\n\t\t\t\t\t\t\t'order'\t\t\t\t=> 'DESC',\n\t\t\t\t\t\t\t'posts_per_page'\t=> $number_of_portfolio\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t$data = new WP_Query( $args );\n\t\t\t\t\t\t//Check post\n\t\t\t\t\t\tif( $data->have_posts() ) :\n\t\t\t\t\t\t\t//startloop here..\n\t\t\t\t\t\t\twhile( $data->have_posts() ) : $data->the_post();\n\n\t\t\t\t\t\t\t$term_list = wp_get_post_terms( get_the_ID(), 'field' ); \n\t\t\t\t\t\t\tglobal $post;\n\t\t\t\t $image = wp_prepare_attachment_for_js( get_post_thumbnail_id( $post->ID ) );\n\t\t\t\t $image_alt = ( !empty( $image['alt'] ) ) ? 'alt=\"' . esc_attr( $image['alt'] ) . '\"' : 'alt=\"' .get_the_title() . '\"';\n\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t
    \n\n\t _x( 'Ferramentas', 'Post Type General Name', 'text_domain' ),\n 'singular_name' => _x( 'ferramenta', 'Post Type Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Ferramenta', 'text_domain' ),\n 'name_admin_bar' => __( 'Post Type', 'text_domain' ),\n 'archives' => __( 'Item Archives', 'text_domain' ),\n 'attributes' => __( 'Item Attributes', 'text_domain' ),\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n 'all_items' => __( 'todas as ferramentas', 'text_domain' ),\n 'add_new_item' => __( 'Add novaferramenta', 'text_domain' ),\n 'add_new' => __( 'nova ferramenta', 'text_domain' ),\n 'new_item' => __( 'nova ferramenta', 'text_domain' ),\n 'edit_item' => __( 'Edit Item', 'text_domain' ),\n 'update_item' => __( 'Update Item', 'text_domain' ),\n 'view_item' => __( 'View Item', 'text_domain' ),\n 'view_items' => __( 'View Items', 'text_domain' ),\n 'search_items' => __( 'Search Item', 'text_domain' ),\n 'not_found' => __( 'não encontrado', 'text_domain' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n 'featured_image' => __( 'Featured Image', 'text_domain' ),\n 'set_featured_image' => __( 'Set featured image', 'text_domain' ),\n 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\n 'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\n 'insert_into_item' => __( 'Insert into item', 'text_domain' ),\n 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\n 'items_list' => __( 'Items list', 'text_domain' ),\n 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n 'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n );\n $args = array(\n 'label' => __( 'ferramentas', 'text_domain' ),\n 'description' => __( 'ferramentas', 'text_domain' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields'),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n );\n register_post_type( 'classTools_post_type', $args );\n\n}","function RBTM_RelPost_display($content){\n\tif( is_single() && is_main_query() ) {\n\t $content .= RBTM_RelPost_baseline_html();\n\t}\n\treturn $content;\n}","function absolvution_post_meta() {\n if ( get_post_type() == 'post' ) {\n echo sprintf(\n __( '
    Posted %s
    %s
    %s
    ', 'absolvution' ),\n get_the_time( get_option( 'date_format' ) ),\n get_the_category_list( ', ' ),\n get_the_tag_list( __( '', 'absolvution' ), ', ' )\n );\n }\n edit_post_link( __( ' (edit)', 'absolvution' ), '', '' );\n}","function echotheme_nivoslider_shortcode($atts)\n{\n\tob_start();\n\tget_template_part('part', 'nivo-slider');\n\treturn ob_get_clean();\n}","function cpt_sedes() {\n \n $labels = array(\n 'name' => _x( 'sedes', 'Post Type General Name', 'text_domain' ),\n 'singular_name' => _x( 'sede', 'Post Type Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Sedes', 'text_domain' ),\n 'name_admin_bar' => __( 'Sedes', 'text_domain' ),\n 'archives' => __( 'Archivo de Sedes', 'text_domain' ),\n 'attributes' => __( 'Atributos de sede', 'text_domain' ),\n 'parent_item_colon' => __( 'Sede padre', 'text_domain' ),\n 'all_items' => __( 'Todas las Sedes', 'text_domain' ),\n 'add_new_item' => __( 'Añadir nueva Sede', 'text_domain' ),\n 'add_new' => __( 'Añadir Sede', 'text_domain' ),\n 'new_item' => __( 'Nueva Sede', 'text_domain' ),\n 'edit_item' => __( 'Editar Sede', 'text_domain' ),\n 'update_item' => __( 'Actualizar Sede', 'text_domain' ),\n 'view_item' => __( 'Ver Sede', 'text_domain' ),\n 'view_items' => __( 'Ver Sedes', 'text_domain' ),\n 'search_items' => __( 'Buscar Sedes', 'text_domain' ),\n 'not_found' => __( 'No Encontrado', 'text_domain' ),\n 'not_found_in_trash' => __( 'No encontrado en papelera', 'text_domain' ),\n 'featured_image' => __( 'Imagen Destacada', 'text_domain' ),\n 'set_featured_image' => __( 'Configurar Imagen Destacada', 'text_domain' ),\n 'remove_featured_image' => __( 'Remover Imagen Destacada', 'text_domain' ),\n 'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),\n 'insert_into_item' => __( 'Intertar en la Sede', 'text_domain' ),\n 'uploaded_to_this_item' => __( 'Actualizar en esta sede', 'text_domain' ),\n 'items_list' => __( 'Listado de Sedes', 'text_domain' ),\n 'items_list_navigation' => __( 'Lista Navegable de Sedes', 'text_domain' ),\n 'filter_items_list' => __( 'Filtro de lista de Sedes', 'text_domain' ),\n );\n $args = array(\n 'label' => __( 'sede', 'text_domain' ),\n 'description' => __( 'Diferentes sedes con la que cuenta m&q', 'text_domain' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ),\n 'taxonomies' => array( 'category', 'post_tag' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'menu_icon' => 'dashicons-store',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n // genera el editor de codigo gutember\n 'show_in_rest' => true,\n\n );\n register_post_type( 'sedes', $args );\n \n }","function placeholder_shortcode($attr) {\n $post = get_post();\n\n static $index = 0;\n static $component_cache = null;\n\n\n if($component_cache === null) {\n $component_cache = array();\n $story_content = get_field('story_content', $post->ID);\n\n if($story_content !== false) {\n foreach($story_content as $content) {\n $layout = $content['acf_fc_layout'];\n $component = array('type' => $layout);\n $fun = 'component_' . $layout;\n\n if(function_exists($fun)) {\n $component = call_user_func($fun, $content, $component);\n }\n\n $component_cache[] = $component;\n }\n }\n }\n\n $context = array();\n\n if($index < count($component_cache)) {\n $component = $component_cache[$index];\n if($component) {\n $context = $component;\n }\n $template = array('component-' . $component['type'] .'.twig', 'empty.twig');\n }\n else {\n $template = is_user_logged_in() ? 'component-extraneous.twig' : 'empty.twig';\n }\n\n // do not echo:\n ob_start();\n $output = Timber::render($template, $context);\n ob_end_clean();\n\n $index++;\n\n return $output;\n\n}","function kstHelpWordpressBlogPosts_excerptsAndMoreTeasers() {\n ?>\n

    \n Your theme uses the excerpt field as well as the &lt;--more--&gt; tag giving\n you many options for formatting your blog index. Many themes use either the\n excerpt or the &lt;--more--&gt; tag to control what content appears on your\n blog index.\n

    \n

    \n Posts are displayed on the index in one of these formats (and order shown):\n

    \n
      \n
    1. Title and excerpt (if you type anything in the excerpt field)
    2. \n
    3. Title and the post up to the &lt;--more--&gt; (if you insert &lt;--more--&gt; in the post)
    4. \n
    5. Title and the entire post (if you do not enter an excerpt or the &lt;--more--&gt; tag)
    6. \n
    \n

    i.e. If you enter an excerpt and include a &lt;--more--&gt; tag only the excerpt will display

    \n

    \n How to use the \"more\" tag:\n

    \n

    \n In \"Visual\" mode:
    \n Place the cursor after the content you would like to appear on the blog index for that post.\n Click the button above the post editor that looks like\n a rectangle cut in two pieces (a small rectangle on top and a longer rectangle on the button).\n A line that says \"more\" will appear.\n

    \n

    \n In \"html\" mode:
    \n Place the cursor after the content you would like to appear on the blog index for that post.\n Type &lt;--more--&gt; on it's own line.\n

    \n

    \n Note: You may also customize the \"more\" link text that is shown per post (only possible using \"html\" mode).
    \n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Simply type the text to use after \"more\" e.g. &lt;--more But wait, there's more! --&gt;\n

    \n _x( 'Partner Stories', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Partner Story', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Partner Stories', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Partner Story', 'text_domain' ),\n\t\t'archives' => __( 'Item Archives', 'text_domain' ),\n\t\t'attributes' => __( 'Item Attributes', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n\t\t'all_items' => __( 'All Items', 'text_domain' ),\n\t\t'add_new_item' => __( 'Add New Item', 'text_domain' ),\n\t\t'add_new' => __( 'Add New', 'text_domain' ),\n\t\t'new_item' => __( 'New Item', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit Item', 'text_domain' ),\n\t\t'update_item' => __( 'Update Item', 'text_domain' ),\n\t\t'view_item' => __( 'View Item', 'text_domain' ),\n\t\t'view_items' => __( 'View Items', 'text_domain' ),\n\t\t'search_items' => __( 'Search Item', 'text_domain' ),\n\t\t'not_found' => __( 'Not found', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n\t\t'featured_image' => __( 'Featured Image', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insert into item', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\n\t\t'items_list' => __( 'Items list', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Partner Story', 'text_domain' ),\n\t\t'description' => __( 'Strategic Partner Features', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', 'thumbnail' ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-id-alt',\n\t\t'show_in_admin_bar' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'partner_stories', $args );\n\n}","function omfg_mobile_pro_pagecontent () {\n\n\tglobal $post, $wp_query;\n\t\n\t// Post ID\n\t$postid = $wp_query->post->ID;\n\t$page_content = get_post_meta($postid, '_omfg_page_content', true);\n\t$page_content = do_shortcode($page_content);\n\t$page_content = wpautop($page_content, 1);\n\t\n\techo $page_content;\n\n}","function chapel_hour_post_type() {\n\n $labels = array(\n 'name' => 'Chapel Hour Episodes',\n 'singular_name' => 'Chapel Hour Episode',\n 'menu_name' => 'Chapel Hour Episodes',\n 'name_admin_bar' => 'Chapel Hour Episode',\n 'archives' => 'Chapel Hour Archives',\n 'parent_item_colon' => 'Parent Chapel Hour Episode:',\n 'all_items' => 'All Chapel Hour Episodes',\n 'add_new_item' => 'Add New Chapel Hour Episode',\n 'add_new' => 'Add New',\n 'new_item' => 'New Chapel Hour Episode',\n 'edit_item' => 'Edit Chapel Hour Episode',\n 'update_item' => 'Update Chapel Hour Episode',\n 'view_item' => 'View Chapel Hour Episode',\n 'search_items' => 'Search Chapel Hour Episode',\n 'not_found' => 'Not found',\n 'not_found_in_trash' => 'Not found in Trash',\n 'featured_image' => 'Featured Image',\n 'set_featured_image' => 'Set featured image',\n 'remove_featured_image' => 'Remove featured image',\n 'use_featured_image' => 'Use as featured image',\n 'insert_into_item' => 'Insert into Chapel Hour Episode',\n 'uploaded_to_this_item' => 'Uploaded to this Chapel Hour Episode',\n 'items_list' => 'Chapel Hour Episodes list',\n 'items_list_navigation' => 'Chapel Hour Episodes list navigation',\n 'filter_items_list' => 'Filter Chapel Hour Episodes list',\n );\n $rewrite = array(\n 'slug' => 'resources/chapel-hour-weekly-radio-broadcast/all',\n 'with_front' => true,\n 'pages' => true,\n 'feeds' => true,\n );\n $args = array(\n 'label' => 'Chapel Hour Episode',\n 'description' => 'Chapel Hour Episodes',\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', ),\n 'taxonomies' => array(),\n 'hierarchical' => true,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 30,\n 'menu_icon' => 'dashicons-clock',\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => 'resources/chapel-hour-weekly-radio-broadcast/all',\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'rewrite' => $rewrite,\n 'capability_type' => 'page',\n );\n register_post_type( 'chapel_hour', $args );\n\n}","function shortcode_posts( $atts ) {\n\t\textract( shortcode_atts( array(\n\t\t\t'title' => '',\n\t\t\t'type' => 'latest',\n\t\t\t'style' => 'style1',\n\t\t\t'count' => 10,\n\t\t\t'count_per_row' => 4,\n\t\t\t'post_ids' => '',\n\t\t\t'slide' => 'true',\n\t\t\t'before_list' => '',\n\t\t\t'after_list' => '',\n\t\t\t'before_item' => '',\n\t\t\t'after_item' => '',\n\t\t\t'animation_type' => '',\n\t\t\t'animation_duration' => '',\n\t\t\t'animation_delay' => '',\n\t\t), $atts) );\n\n\t\tif ( $slide == 'no' || $slide == 'false' ) { $slide = 'false'; }\n\t\t$styles = array( 'style1', 'style2', 'style3', 'style4' );\n\t\t$types = array( 'latest', 'popular', 'selected' );\n\t\tif ( ! in_array( $style, $styles ) ) $style = 'style1';\n\t\tif ( ! in_array( $type, $types ) ) $type = 'latest';\n\t\t$post_ids = explode( ',', $post_ids );\n\t\t$count = is_numeric( $count )?$count:10;\n\t\t$count_per_row = is_numeric( $count_per_row )?$count_per_row:4;\n\n\t\t$def_before_list = '';\n\t\t$def_after_list = '';\n\t\t$def_before_item = '';\n\t\t$def_after_item = '';\n\n\t\tif ( $style == 'style3' ) {\n\t\t\t$def_before_list = '
    ';\n\t\t\t$def_after_list = '
    ';\n\t\t} else {\n\t\t\tif ( $slide == 'false' ) {\n\t\t\t\t$def_before_list = '
    ';\n\t\t\t\t$def_after_list = '
    ';\n\t\t\t\tif ( ( 2 == $count_per_row ) ) {\n\t\t\t\t\t$def_before_list = '
    ';\n\t\t\t\t\t$def_before_item = \"
    \";\n\t\t\t\t\t$def_after_item = \"
    \";\n\t\t\t\t} elseif ( 3 == $count_per_row ) {\n\t\t\t\t\t$def_before_list = '
    ';\n\t\t\t\t\t$def_before_item = \"
    \";\n\t\t\t\t\t$def_after_item = \"
    \";\n\t\t\t\t} else {\n\t\t\t\t\t$def_before_list = '
    ';\n\t\t\t\t\t$def_before_item = \"
    \";\n\t\t\t\t\t$def_after_item = \"
    \";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$def_before_list = '
      ';\n\t\t\t\t$def_after_list = '
    ';\n\t\t\t\t$def_before_item = '
  • ';\n\t\t\t\t$def_after_item = '
  • ';\n\t\t\t}\n\t\t}\n\t\tif ( empty( $before_list ) ) $before_list = $def_before_list;\n\t\tif ( empty( $after_list ) ) $after_list = $def_after_list;\n\t\tif ( empty( $before_item ) ) $before_item = $def_before_item;\n\t\tif ( empty( $after_item ) ) $after_item = $def_after_item;\n\n\t\t$posts = array();\n\t\tif ( $type == 'selected' ) {\n\t\t\tif ( is_array( $post_ids ) ) {\n\t\t\t\tforeach( $post_ids as $post_id ) {\n\t\t\t\t\t$post = get_post( $post_id );\n\t\t\t\t\tif ( ! empty( $post ) && ! is_wp_error( $post ) ) {\n\t\t\t\t\t\t$posts[] = $post;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ( $type == 'latest' ) {\n\t\t\t$args = array(\n\t\t\t\t'posts_per_page' => $count,\n\t\t\t\t'orderby' => 'post_date',\n\t\t\t\t'order' => 'DESC',\n\t\t\t\t'suppress_filters' => 0,\n\t\t\t\t'post_status' => 'publish',\n\t\t\t);\n\t\t\t$posts = get_posts( $args );\n\t\t} elseif ( $type == 'popular' ) {\n\t\t\t$posts = get_posts('posts_per_page=' . $count . '&meta_key=trav_count_post_views&orderby=meta_value_num&order=DESC&suppress_filters=0&post_status=publish');\n\t\t}\n\n\t\tob_start();\n\t\tif ( ! empty( $title ) ) { echo '

    ' . esc_html( $title ) . '

    '; }\n\t\techo ( $before_list );\n\t\t$i = 0;\n\t\tforeach ( $posts as $post ) {\n\t\t\t$animation = '';\n\t\t\tif ( ! empty( $animation_type ) ) { $animation .= ' class=\"animated\" data-animation-type=\"' . esc_attr( $animation_type ) . '\" data-animation-duration=\"' . esc_attr( $animation_duration ) . '\" data-animation-delay=\"' . esc_attr( $animation_delay * $i ) . '\" '; }\n\t\t\ttrav_get_post_list_sigle( $post->ID, $style, $before_item, $after_item, $animation );\n\t\t\t$i++;\n\t\t}\n\t\techo ( $after_list );\n\n\t\t$output = ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $output;\n\t}","function display_metaslider_by_slug() {\n\tif ( is_front_page() ) {\n\t\techo do_shortcode(\"[metaslider id=front-page]\");\n\t}\n\telseif ( is_page() ) {\n\t\techo do_shortcode(\"[metaslider id=page]\");\n\t}\n\telse {\n\t\techo do_shortcode(\"[metaslider id=default]\");\n\t}\n}","function showpics_func($atts, $content = null) { ?>\n\t\t '',\n\t\t\t\t\"order\" => 'ASC',\n\t\t\t\t\"orderby\" => 'menu_order'\n ), $atts));\n global $post;\n $lrgpics = get_children('numberposts=-1&order='.$order.'&orderby='.$orderby.'&post_type=attachment&post_mime_type=image&post_parent='.$post->ID);\n\t\t$return='';\n foreach($lrgpics as $lrgpic) :\n\t\t\tif (strtoupper($lrgpic->post_name) != strtoupper($lrgpic->post_title)) { // If the picture hasn't been given a new name, it won't show up.\n\t\t\t$image = wp_get_attachment_image_src($lrgpic->ID, 'full'); \n\t\t\t$lrgimage = wp_get_attachment_image_src($lrgpic->ID, 'large');\n\t\t\t$imgwidth = $lrgimage[1] + 10;\n\t\t\t$theimage = wp_get_attachment_image($lrgpic->ID, 'large');\n\t $return.='
    ID.'\" class=\"wp-caption alignnone\">'.$theimage.'';\n\t\t\t\tif($lrgpic->post_content) {\n\t\t\t\t\t$return.='

    '.$lrgpic->post_content.'

    ';\n\t\t\t\t} else {\n\t\t\t\t\t$return.='

    '.$lrgpic->post_title.'

    ';\n\t\t\t\t}\n\t\t\t// if title has been given, show title, if description has been given, show description\n\t\t\t// if no title has been given, just show the image\n \t} else { \n\t\t\t$image = wp_get_attachment_image_src($lrgpic->ID, 'full'); \n\t\t\t$theimage = wp_get_attachment_image($lrgpic->ID, 'large');\n\t $return.='

    '.$theimage.'

    ';\n\t\t\t} // end check to see if title has been given\n\t\tendforeach;\n return $return;\n}","function fcc_norad_podcast_single_post_content( $content ) {\n\tif ( is_singular( 'podcasts' ) && ! is_admin() ) {\n\t\t$id = $GLOBALS['post']->ID;\n\t\t$content = '';\n\n\t\t# POST META\n\t\t$segment_1_title = get_post_meta( $id, 'segment_1_title', true );\n\t\t$segment_2_title = get_post_meta( $id, 'segment_2_title', true );\n\t\t$segment_3_title = get_post_meta( $id, 'segment_3_title', true );\n\n\t\t$segment_1_description = get_post_meta( $id, 'segment_1_description', true );\n\t\t$segment_2_description = get_post_meta( $id, 'segment_2_description', true );\n\t\t$segment_3_description = get_post_meta( $id, 'segment_3_description', true );\n\n\t\t$segment_1_link = get_post_meta( $id, 'segment_1_link', true );\n\t\t$segment_2_link = get_post_meta( $id, 'segment_2_link', true );\n\t\t$segment_3_link = get_post_meta( $id, 'segment_3_link', true );\n\n\t\t# Segment 1\n\t\tif ( $segment_1_link ) {\n\t\t\t$segment_1_title_link .= '' . $segment_1_title . ' &ndash; ';\n\t\t} else {\n\t\t\t$segment_1_title_link = '';\n\t\t}\n\n\t\t# Segment 2\n\t\tif ( $segment_2_link ) {\n\t\t\t$segment_2_title_link .= '' . $segment_2_title . ' &ndash; ';\n\t\t} else {\n\t\t\t$segment_2_title_link = '';\n\t\t}\n\n\t\t# Segment 3\n\t\tif ( $segment_3_link ) {\n\t\t\t$segment_3_title_link .= '' . $segment_3_title . ' &ndash; ';\n\t\t} else {\n\t\t\t$segment_3_title_link = '';\n\t\t}\n\n\t\t# The Content *****/\n\t\t$content .= '
      ';\n\t\t$content .= '
    • ' . $segment_1_title_link . $segment_1_description . '
    • ';\n\t\t$content .= '
    • ' . $segment_2_title_link . $segment_2_description . '
    • ';\n\t\t$content .= '
    • ' . $segment_3_title_link . $segment_3_description . '
    • ';\n\t\t$content .= '
    ';\n\t}\n\treturn $content;\n}","public function wmel_pub_display() {\n\t\t// Build the output to return for use by the shortcode.\n\t\tob_start();\n\t\t?>\n\n\t\t
    \n\t\t\t 4,\n\t\t\t\t'offset'=> 0,\n\t\t\t\t'post_type' => 'wsuwp_uc_publication',\n\t\t\t\t'tax_query' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'taxonomy' => 'category',\n\t\t\t\t\t\t'field' => 'slug',\n\t\t\t\t\t\t'terms' => 'wmel-publications'\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$my_posts = new WP_Query( $args );\n\n\t\t\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t\t

    \">

    \n\t\t\t\n\n\t\t
    \n\n\t\t'testimonials',\n 'numberposts' => '-1',\n );\n $testimonials = get_posts($args);\n\n $count=0;\n foreach($testimonials as $post) : setup_postdata($post);\n $count++;\n\n $output = '
    ';\n $output .= '
    ' .get_the_title(). '
    ';\n if($count == '3') { \n \t$output .= '
    '; \n $count=0; \n } \n endforeach; \n wp_reset_postdata();\n\n return $output;\n }","function acf_shortcode($atts)\n{\n}","function itstar_projects_in_cat( $atts, $content = null ) {\n global $wp_query;\n $a = shortcode_atts( array(\n 'cat' => '',\n 'qty' => -1,\n // ...etc\n ), $atts );\n\n$projects = get_posts(array(\n 'post_type' => 'project',\n 'posts_per_page' => $a['qty'],\n 'project_cat' => $a['cat'],\n )\n );\n\n \n if(!empty($projects)){ ?>\n \n \n get_settings_for_display();\n\n $posts = get_posts(\n array(\n 'post_type' => 'post',\n 'numberposts' => $settings['posts'],\n 'orderby' => 'date',\n )\n );\n\n include PLUGIN_DIR . '/templates/widgets/recent-posts.php';\n }","function howTo_post_type() {\n\n $labels = array(\n 'name' => _x( 'Como Funciona', 'Post Type General Name', 'text_domain' ),\n 'singular_name' => _x( 'Como Funciona', 'Post Type Singular Name', 'text_domain' ),\n 'menu_name' => __( 'Como Funciona', 'text_domain' ),\n 'name_admin_bar' => __( 'Post Type', 'text_domain' ),\n 'archives' => __( 'Item Archives', 'text_domain' ),\n 'attributes' => __( 'Item Attributes', 'text_domain' ),\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n 'all_items' => __( 'todos os cards', 'text_domain' ),\n 'add_new_item' => __( 'Add novo card', 'text_domain' ),\n 'add_new' => __( 'novo card', 'text_domain' ),\n 'new_item' => __( 'novo card', 'text_domain' ),\n 'edit_item' => __( 'Edit Item', 'text_domain' ),\n 'update_item' => __( 'Update Item', 'text_domain' ),\n 'view_item' => __( 'View Item', 'text_domain' ),\n 'view_items' => __( 'View Items', 'text_domain' ),\n 'search_items' => __( 'Search Item', 'text_domain' ),\n 'not_found' => __( 'não encontrato', 'text_domain' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n 'featured_image' => __( 'Featured Image', 'text_domain' ),\n 'set_featured_image' => __( 'Set featured image', 'text_domain' ),\n 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\n 'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\n 'insert_into_item' => __( 'Insert into item', 'text_domain' ),\n 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\n 'items_list' => __( 'Items list', 'text_domain' ),\n 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n 'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n );\n $args = array(\n 'label' => __( 'Como Funciona', 'text_domain' ),\n 'description' => __( 'Como Funciona', 'text_domain' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n );\n register_post_type( 'howTo_post_type', $args );\n\n}","function simple_bootstrap_display_post_meta($short=true) {\n?>\n\n
      \n
    • \n \">\n \n \n \n \n
    • \n
    • \n \">\n \n \n \n \n
    • \n \n
    • \n ';\n comments_popup_link($sp . __( 'Leave a comment', \"simple-bootstrap\"), $sp . __( '1 Comment', \"simple-bootstrap\"), $sp . __( '% Comments', \"simple-bootstrap\"));\n ?>\n
    • \n \n \n\n \n \n
    • \n \n \n \n
    • \n \n \n \n
    • \n \n \n \n
    • \n \n\n ', ''); ?>\n \n
    \n\nloaded_modules[$this->basename] = $this->pluginPath;\n\t\t\t$cfct_build->module_paths[$this->basename] = $this->pluginPath;\n\t\t\t$cfct_build->module_urls[$this->basename] = $this->pluginUrl;\n\n\t\t\t$text = do_shortcode($data[$this->get_field_id('content')]);\n\t\t\treturn $this->load_view($data, compact('text'));\t\t\t\n\t\t}","function projects_shortcode($atts) \n{\n\t//Options\n extract(shortcode_atts(array(\n 'limit' => '-1',\n 'location' => '',\n 'category' => '',\n ), $atts));\n\n global $post;\n \n //Query Options\n $args = array(\n 'posts_per_page' => $limit, \n 'orderby' => 'post_date',\n 'post_type' => 'projects',\n 'tax_query' => array(\n 'relation' => 'OR',\n array(\n 'taxonomy' => 'location',\n 'field' => 'slug',\n 'terms' => array($location)\n ),\n array(\n 'taxonomy' => 'category',\n 'field' => 'slug',\n 'terms' => array($category)\n ),\n ));\n \n //Query for projects \n $get_projects = NEW WP_Query($args);\n\t\n\t//Wrapper\n\t$output .= '
    ';\n\t\n\t//Loop\n while($get_projects->have_posts()) \n {\n $get_projects->the_post();\n $img_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), \"full\");\n\t\t$feat_img = $img_src[0];\n \n $output .= '
    ';\n $output .= '

    '.get_the_title().'

    ';\n $output .= '
    '.get_the_excerpt().'
    ';\n $output .= '
    '.get_post_meta( $post->ID, 'Awards', true).'
    ';\n $output .= '
    ';\n };\n \n $output .= '
    ';\n \n //Important: Reset wp query\n wp_reset_query();\n \n return $output;\n}","function et_excerpt_more($more) {\n global $post;\n return ';';\n}","function render_sc_myShortcode( $context ) {\n\tob_start();\n\t?>\n
    Some:
    \n
    Another:
    \nhtheme_content->htheme_get_content_blog_split($atts);\r\n\r\n\t\t#RETURN DATA/HTML\r\n\t\treturn $htheme_data;\r\n\r\n\t}","function lp_show_frontend( $attr, $content='' ){\r\n\t$attributes = shortcode_atts(array(\r\n\t\t\t\t\t'post_id'\t=> get_the_ID()\r\n\t\t\t\t),$attr);\r\n\tglobal $wpdb;\r\n\t$table_name = $wpdb->prefix.'like_post';\r\n\t$id = $attributes['post_id'];\r\n\t$cookie_like = 'lp_'.$id;\r\n\tif(!isset($_COOKIE[$cookie_like])){\r\n\t\t$lp_like_text = 'Like';\r\n\t}else{\r\n\t\t$lp_like_text = 'LIKED';\r\n\t}\r\n\t$selected_time = get_option('lp_showing_year');\r\n\t$selected_date_time = date('Y-m-d', strtotime(\"-$selected_time days\"));\r\n\t$like_time = date('Y-m-d',time());\r\n\t$wpdb->show_errors( true );\r\n\t$total_like = $wpdb->get_var(\"SELECT count(POST_ID) FROM $table_name WHERE POST_ID = $id AND STATUS = 1 AND LIKE_TIME BETWEEN '$selected_date_time' AND '$like_time' \");\r\n\r\n\t$output = \"

    \";\r\n\t$output .= \"\".$lp_like_text.\" \";\r\n\t$output .= \"\".$total_like.\" Like\";\r\n\t$output .= \"

    \";\r\n\treturn $output;\r\n}","function custom_post_portfolio() {\n\n $labels = array(\n 'name' => _x( 'Proyectos', 'Post Type General Name', 'ohmarketingtravel' ),\n 'singular_name' => _x( 'Proyecto', 'Post Type Singular Name', 'ohmarketingtravel' ),\n 'menu_name' => __( 'Portafolio', 'ohmarketingtravel' ),\n 'name_admin_bar' => __( 'Portafolio', 'ohmarketingtravel' ),\n 'archives' => __( 'Item Archives', 'ohmarketingtravel' ),\n 'attributes' => __( 'Item Attributes', 'ohmarketingtravel' ),\n 'parent_item_colon' => __( 'Parent Item:', 'ohmarketingtravel' ),\n 'all_items' => __( 'All Items', 'ohmarketingtravel' ),\n 'add_new_item' => __( 'Add New Item', 'ohmarketingtravel' ),\n 'add_new' => __( 'Add New', 'ohmarketingtravel' ),\n 'new_item' => __( 'New Item', 'ohmarketingtravel' ),\n 'edit_item' => __( 'Edit Item', 'ohmarketingtravel' ),\n 'update_item' => __( 'Update Item', 'ohmarketingtravel' ),\n 'view_item' => __( 'View Item', 'ohmarketingtravel' ),\n 'view_items' => __( 'View Items', 'ohmarketingtravel' ),\n 'search_items' => __( 'Search Item', 'ohmarketingtravel' ),\n 'not_found' => __( 'Not found', 'ohmarketingtravel' ),\n 'not_found_in_trash' => __( 'Not found in Trash', 'ohmarketingtravel' ),\n 'featured_image' => __( 'Featured Image', 'ohmarketingtravel' ),\n 'set_featured_image' => __( 'Set featured image', 'ohmarketingtravel' ),\n 'remove_featured_image' => __( 'Remove featured image', 'ohmarketingtravel' ),\n 'use_featured_image' => __( 'Use as featured image', 'ohmarketingtravel' ),\n 'insert_into_item' => __( 'Insert into item', 'ohmarketingtravel' ),\n 'uploaded_to_this_item' => __( 'Uploaded to this item', 'ohmarketingtravel' ),\n 'items_list' => __( 'Items list', 'ohmarketingtravel' ),\n 'items_list_navigation' => __( 'Items list navigation', 'ohmarketingtravel' ),\n 'filter_items_list' => __( 'Filter items list', 'ohmarketingtravel' ),\n );\n $args = array(\n 'label' => __( 'Proyecto', 'ohmarketingtravel' ),\n 'labels' => $labels,\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\n 'taxonomies' => array( 'category', 'post_tag' ),\n 'hierarchical' => false,\n 'public' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'menu_position' => 5,\n 'show_in_admin_bar' => true,\n 'show_in_nav_menus' => true,\n 'can_export' => true,\n 'has_archive' => true,\n 'menu_icon' => 'dashicons-schedule',\n 'exclude_from_search' => false,\n 'publicly_queryable' => true,\n 'capability_type' => 'page',\n );\n register_post_type( 'Portafolio', $args );\n\n}","function flatsome_before_blog_comments(){\n if(get_theme_mod('blog_after_post')){\n echo '
    '.do_shortcode(get_theme_mod('blog_after_post')).'
    ';\n }\n}","function accouk_display_post_meta() {\n\n global $main_category;\n echo '
    Published on '; the_date();\n echo ' in ' . $main_category['name'] . '
    ';\n\n}"],"string":"[\n \"function accouk_display_post_content() {\\n\\n $post_formats = get_the_terms(get_the_id(), 'post-format');\\n\\n switch($post_formats[0]->slug) {\\n\\n case 'post-with-hero':\\n include_once('templates/post-with-hero.php');\\n break;\\n\\n case 'portfolio':\\n include_once('templates/post-portfolio.php');\\n break;\\n\\n case 'portfolio-item-with-hero':\\n include_once('templates/post-portfolio-with-hero.php');\\n break;\\n\\n case 'default':\\n include_once('templates/post-default.php');\\n break;\\n\\n case 'no-featured-image':\\n include_once('templates/post-no-featured-image.php');\\n break;\\n\\n default:\\n include_once('templates/post-default.php');\\n break;\\n\\n }\\n\\n}\",\n \"protected function content($atts, $content = null) {\\n\\n extract(shortcode_atts(array(\\n\\t\\t\\t'id' => '',\\n\\t\\t\\t'display_social_meta' => 'on',\\n\\t\\t\\t'display_comments_count' => 'on',\\n\\t\\t\\t'display_excerpt' => 'off',\\n\\t\\t\\t'display_meta' => 'on',\\n ), $atts));\\n\\n\\n /* ================ Render Shortcodes ================ */\\n\\n ob_start();\\n\\t\\t\\n\\t\\t//Method to retrieve a single post\\n\\t\\t$queried_post = get_post($id);\\n\\t\\t$postID = $queried_post->ID;\\n\\t\\t$postLink = get_permalink($postID);\\n\\t\\t$postTitle = $queried_post->post_title;\\n\\t\\t$postDate = mysql2date('l, F j, Y', $queried_post->post_date);\\n\\t\\t$postAuthorID = $queried_post->post_author;\\n\\t\\t$postAuthor = get_the_author_meta('nickname', $postAuthorID);\\n\\t\\t//$postTags = get_the_tags($postID);\\n\\t\\t$postCommentCount = $queried_post->comment_count;\\n\\t\\t$postExcerpt = $queried_post->post_excerpt;\\n\\t\\t$postContent = $queried_post->post_content;\\n\\t\\t$postTip = get_post_meta($postID, 'pm_post_tooltip_meta_function', true);\\n\\t\\t$postIconSaved = get_post_meta($postID, 'pm_post_icon_meta', true);\\n\\t\\t$postIcon = $postIconSaved != '' ? $postIconSaved : 'fa fa-file';\\n\\t\\t\\n\\t\\t$displayExcerptOnMeta = get_theme_mod('displayExcerptOnMeta', 'on');\\n\\t\\t\\t\\n ?>\\n \\n \\n\\n \\n \\n
    \\n\\t\\n
    \\n

    \\n \\n \\n \\n \\n pm_tip\\\" title=\\\"\\\" href=\\\"\\\">\\n \\n \\\" href=\\\"\\\">\\n \\n \\n

    \\n
    \\n \\n
    \\n \\n
    \\n \\n \\n \\n

    \\n \\n \\n \\n

    ...

    \\n \\n \\n
    \\n \\n
    \\n
    \\n \\n \\t\\n

    ...

    \\n \\n \\n \\\"> &raquo;\\n \\n \\n \\n \\n \\n \\t\\n \\n \\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n \\n \\n \\n \\t\\n \\n
    \\n
    \\n \\n
    \\n \\t\\n
    \\n \\n
    \\n \\n
    \\t\\n \\n \\n\\n 'post',\\n\\t\\t\\t'posts_per_page'=>2,\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\n\\t\\t), $attr,'our_shortcode' ));\\n\\t\\n\\t$query = new WP_Query(array(\\n\\t\\t'post_type'=>$post_type,\\n\\t\\t'posts_per_page'=>$posts_per_page,\\n\\t\\n\\t));\\n\\t\\n\\tif($query->have_posts()):\\n\\t\\t$output = '
      ';\\n\\t\\t$i=0;\\n\\t\\twhile($query->have_posts()){\\n\\t\\t\\t\\n\\t\\t\\t$query->the_post();\\n\\t\\t\\tif($i == 0):\\n\\t\\t\\t$output .= '
    • '.get_the_title().'
    • ';\\n\\t\\t\\telse:\\n\\t\\t\\t$output .= '
    • '.get_the_title().'
    • ';\\n\\t\\t\\tendif;\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t$i++; }\\n\\t\\twp_reset_postdata();\\n\\t$output .= '
    ';\\n\\treturn $output;\\n\\telse:\\n\\t return 'no post found';\\n\\t\\n\\tendif;\\n\\t\\n\\t\\n\\t\\n\\t\\n\\t\\n\\t\\n}\",\n \"function digthis_show_posts( $atts ) {\\n\\t// \\t'default' => 'values'\\n\\t// ), $atts );\\n\\twp_enqueue_script( 'digthis-load-more-js' );\\n\\tob_start();\\n\\t?>\\n\\t\\n\\n\\t\\n\\t\\t
    \\n\\n\\t\\t
    \\n\\t\\t
    \\n\\t\\t\\t\\n\\t\\t
    \\n\\t\\n\\t\\n\\t\\t\\n\\t$plural,\\r\\n 'singular_name'=>$singular,\\r\\n 'add_name'=>'Add New',\\r\\n 'add_new_item'=>'Add New' . $singular,\\r\\n 'edit'=>'Edit',\\r\\n 'edit_item' =>'Edit' . $singular,\\r\\n 'new_item' =>'New' . $singular,\\r\\n 'view'=>'View' . $singular,\\r\\n 'view_item'=>'View' . $singular,\\r\\n 'search_item'=>'Search' . $plural,\\r\\n 'parent'=>'Parent' . $singular,\\r\\n 'not_found'=>'No' . $plural .'found',\\r\\n 'not_found_in_trash'=>'No' . $plural .'in Trash'\\r\\n\\t\\t);\\r\\n\\t$args =array(\\r\\n 'labels' =>$labels,\\r\\n 'public' =>true,\\r\\n 'menu_position'=>10,\\r\\n 'has_archive'=>true,\\r\\n 'capability_type'=>'post',\\r\\n 'map_meta_cap'=>true,\\r\\n 'supports'=>array(\\r\\n 'title',\\r\\n 'editor',\\r\\n 'custom-fields',\\r\\n 'thumbnail'\\r\\n \\t)\\r\\n\\t\\t);\\r\\n\\tregister_post_type('training_show',$args);\\r\\n}\",\n \"function x_add_social_sharing ( $content ) {\\n\\t\\n if ( is_singular('post') ) {\\n\\t \\n echo do_shortcode('[share title=\\\"Share this Post\\\" facebook=\\\"true\\\" twitter=\\\"true\\\" google_plus=\\\"true\\\" linkedin=\\\"true\\\" pinterest=\\\"false\\\" reddit=\\\"false\\\" email=\\\"true\\\"]');\\n \\n }\\n}\",\n \"public function uwd_articles_display( $atts ) {\\n\\t\\t//* Collect values, combining passed in values and defaults.\\n\\t\\t$values = shortcode_atts( array(\\n\\t\\t\\t'id' => 'rand',\\n\\t\\t), $atts );\\n\\n\\t\\t//* Form the arguments for WP_Query.\\n\\t\\t$args = array(\\n\\t\\t\\t'post_type' => array( 'post', 'weeklies', 'videos' ),\\n\\t\\t\\t'ignore_sticky_posts' => true,\\n\\t\\t\\t'posts_per_page' => 2,\\n\\t\\t);\\n\\n\\t\\tif ( $values['id'] == 'rand' ) {\\n\\t\\t\\t//* Set random order if no ids specified.\\n\\t\\t\\t$args['orderby'] = 'rand';\\n\\t\\t} else {\\n\\t\\t\\t//* Remove all the whitespace.\\n\\t\\t\\t$id_string = preg_replace( '/\\\\s+/', '', $values['id'] );\\n\\t\\t\\t//* Explode the string into array.\\n\\t\\t\\t$id = explode( ',', $id_string );\\n\\t\\t\\t//* Set the array to the query.\\n\\t\\t\\t$args['post__in'] = $id;\\n\\t\\t}\\n\\n\\t\\t$wp_query = new WP_Query( $args );\\n\\n\\t\\t//* Start the buffer.\\n\\t\\tob_start();\\n\\n\\t\\tif ( $wp_query->have_posts() ) {\\n\\t\\t\\t?>\\n\\t\\t\\t
    \\n\\t\\t\\t\\thave_posts() ) {\\n\\t\\t\\t\\t\\t$wp_query->the_post();\\n\\n\\t\\t\\t\\t\\t$entry_image_id = get_post_thumbnail_id();\\n\\t\\t\\t\\t\\t$entry_image_object = wp_get_attachment_image_src( $entry_image_id, 'uwd-custom-medium' );\\n\\t\\t\\t\\t\\t$entry_image_src = $entry_image_object[0];\\n\\t\\t\\t\\t\\t$entry_image_width = $entry_image_object[1];\\n\\t\\t\\t\\t\\t$entry_image_height = $entry_image_object[2];\\n\\t\\t\\t\\t\\t$entry_image_alt = get_post_meta( $entry_image_id, '_wp_attachment_image_alt', true );\\n\\t\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\\"\\n\\t\\t\\t\\t\\t\\t\\t height=\\\"\\\"\\n\\t\\t\\t\\t\\t\\t\\t src=\\\"\\\" alt=\\\"\\\"\\n\\t\\t\\t\\t\\t\\t\\t title=\\\"\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t

    \\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t

    \\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t
    \\n\\t\\t\\t '',\\n\\t\\t\\t'num' => ''\\n\\t\\t),$atts));\\t\\n\\t\\t\\n\\t\\t$output = '';\\n\\t\\t$category_link = get_category_link( $category );\\n\\t\\t\\n\\t\\t$args = array(\\n\\t\\t\\t\\t\\t\\t'cat' \\t\\t\\t\\t=> $category,\\n\\t\\t\\t\\t\\t\\t'posts_per_page' \\t=> $num\\n\\t\\t\\t\\t );\\n\\t\\tquery_posts( $args );\\t\\n\\t\\t\\n\\t\\tif( have_posts() ) while ( have_posts() ) : the_post();\\n\\t\\t\\n\\t\\t$format = get_post_format();\\n\\t\\t\\n\\t\\t$post_thumb = get_post_thumbnail_id( $post->ID );\\n\\t\\t$image_src = wp_get_attachment_image_src($post_thumb, 'large');\\n\\t\\t$image = aq_resize( $image_src[0], 118, 118, true ); //resize & crop the image\\n\\t\\t\\n\\t\\t$output .= '
    ';\\n\\t\\t\\n\\t\\tif ( ( function_exists( 'get_post_format' ) && 'audio' == get_post_format( $post->ID ) ) ) :\\n\\t\\t\\n\\t\\t$output .= do_shortcode( sp_get_custom_field( 'sp_audio_external', $post->ID ) );\\n\\t\\t\\n\\t\\telse:\\n\\t\\t\\n\\t\\t$output .= '
    ';\\n\\t\\t\\n\\t\\tif ( ( function_exists( 'get_post_format' ) && 'video' == get_post_format( $post->ID ) ) ) : \\n\\t\\t$output .= '';\\n\\t\\t$output .= 'ID ) . '/0.jpg\\\" width=\\\"267\\\" height=\\\"175\\\" class=\\\"alignnone\\\" />';\\n\\t\\t$output .= '';\\n\\t\\telse:\\n\\t\\t\\tif ($image) {\\n\\t\\t\\t$output .= '';\\n\\t\\t\\t} else {\\n\\t\\t\\t$output .= '\\\"Blank';\\n\\t\\t\\t}\\n\\t\\tendif;\\n\\t\\t\\n\\t\\t$output .= '
    ';\\n\\t\\t\\n\\t\\t$output .= '
    ';\\n\\t\\t$output .= '

    ' . get_the_title() .'

    ';\\n\\n\\t\\t$output .= '

    ' . sp_excerpt_length(6) . '

    ';\\n\\t\\t$output .= '' . __( 'Read more »', 'sptheme' ) . '';\\n\\t\\t\\n\\t\\t$output .= '
    ';\\n\\t\\t$output .= '
    ';\\n\\t\\t\\n\\t\\tendif; // end if audio post\\n\\t\\t\\n\\t\\t$output .= '
    ';\\n\\t\\t\\n\\t\\tendwhile;\\n\\n\\t\\twp_reset_query();\\n\\t\\t\\n\\t\\t$output .= '' . __('See more ', 'sptheme') . get_the_title($post->ID) .'';\\n\\n\\t\\treturn $output;\\t \\t \\n\\t}\",\n \"public function register_shortcodes(){\\n\\t\\tadd_shortcode('upcoming_post_preview', array($this,'shortcode_display'));\\n\\t}\",\n \"function demolistposts_handler() {\\n $demolph_output = demolistposts_function();\\n //send back text to replace shortcode in post\\n return $demolph_output;\\n}\",\n \"public function featured_q_display() {\\n\\t\\t// Build the output to return for use by the shortcode.\\n\\t\\tob_start();\\n\\n\\t\\t$args = array(\\n\\t\\t\\t'posts_per_page' => 1,\\n\\t\\t\\t'post_type' => 'post',\\n\\t\\t\\t'tax_query' => array(\\n\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t'taxonomy' => 'category',\\n\\t\\t\\t\\t\\t'field' => 'slug',\\n\\t\\t\\t\\t\\t'terms' => 'featured-q',\\n\\t\\t\\t\\t),\\n\\t\\t\\t),\\n\\t\\t);\\n\\t\\t$my_posts = new WP_Query( $args );\\n\\n\\t\\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\\n\\t\\t?>\\n\\t\\t\\t
    \\n\\t\\t\\t\\t
    \\n\\t\\t\\t

    \\\" class=\\\"crimson\\\">

    \\n\\t\\t\\t

    \\n\\t\\t\\t

    \\\">Read more

    \\n\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t\\t\\n\\t\\t\\t
    \\n\\t\\t
    \\n\\t\\t ($post ? $post->ID : ''),\\n\\t\\t'title' => \\\"In the News\\\",\\n\\t\\t'limit' => 1,\\n\\t), $atts));\\n\\n\\tif (!$post_id) {\\n\\t\\treturn '';\\n\\t}\\n\\n\\t$term_ids = dm_get_post_term_ids($post_id, 'solutions');\\n\\n\\tif (empty($term_ids)) return '';\\n\\n\\t$args = array(\\n\\t\\t'post_status' => 'publish',\\n\\t\\t'post_type' => 'post',\\n\\t\\t'posts_per_page' => $limit,\\n\\t\\t'orderby' => 'date',\\n\\t\\t'order' => 'DESC',\\n\\t\\t'tax_query' => array(\\n\\t\\t\\tarray(\\n\\t\\t\\t\\t'taxonomy' => 'solutions',\\n\\t\\t\\t\\t'field' => 'id',\\n\\t\\t\\t\\t'terms' => $term_ids,\\n\\t\\t\\t)\\n\\t\\t),\\n\\t);\\n\\t$query = new WP_Query($args);\\n\\n\\tif (!$query->have_posts()) return '';\\n\\n\\tob_start();\\n?>\\n\\t
    \\n\\t\\thave_posts()): $query->the_post(); ?>\\n\\t\\t\\t

    \\n\\t\\t\\t\\t:\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\\">READ MORE &raquo;\\n\\t\\t\\t

    \\n\\t\\t\\n\\t
    \\n BDPP_POST_TYPE,\\n\\t\\t'taxonomy'\\t\\t\\t\\t=> BDPP_CAT,\\n\\t\\t'cat_taxonomy'\\t\\t\\t=> '',\\n\\t\\t'type'\\t\\t\\t\\t\\t=> '',\\n\\t\\t'limit' \\t\\t\\t\\t=> 9,\\n\\t\\t'grid' \\t\\t\\t\\t\\t=> 3,\\n\\t\\t'show_author' \\t\\t\\t=> 'true',\\n\\t\\t'show_comments'\\t\\t\\t=> 'true',\\n\\t\\t'show_category' \\t\\t=> 'true',\\n\\t\\t'show_date' \\t\\t\\t=> 'true',\\n\\t\\t'link_behaviour'\\t\\t=> 'self',\\n\\t\\t'sharing'\\t\\t\\t\\t=> '',\\n\\t\\t'media_size' \\t\\t\\t=> 'full',\\n\\t\\t'lazyload'\\t\\t\\t\\t=> 'true',\\n\\t\\t'order'\\t\\t\\t\\t\\t=> 'DESC',\\n\\t\\t'orderby'\\t\\t\\t\\t=> 'date',\\n\\t\\t'category' \\t\\t\\t\\t=> array(),\\n\\t\\t'exclude_cat'\\t\\t\\t=> array(),\\n\\t\\t'category_operator'\\t\\t=> 'IN',\\n\\t\\t'include_cat_child'\\t\\t=> 'true',\\n\\t\\t'posts'\\t\\t\\t\\t\\t=> array(),\\n\\t\\t'hide_post'\\t\\t\\t\\t=> array(),\\n\\t\\t'author' \\t\\t\\t\\t=> array(),\\n\\t\\t'exclude_author'\\t\\t=> array(),\\n\\t\\t'sticky_posts'\\t\\t\\t=> 'false',\\n\\t\\t'query_offset'\\t\\t\\t=> '',\\n\\t\\t'css_class'\\t\\t\\t\\t=> '',\\n\\t\\t'slider_screen'\\t\\t\\t=> 640,\\n\\t\\t'custom_param_1'\\t\\t=> '',\\t// Custom Param Passed Just for Developer\\n\\t\\t'custom_param_2'\\t\\t=> '',\\n\\t\\t), $atts, 'bdp_post_ctv1');\\n\\n\\t$sharing_designs\\t\\t\\t\\t= bdpp_sharing_designs();\\n\\t$allowed_post_types\\t\\t\\t\\t= ( $atts['type'] == 'trending' ) ? bdpp_get_option( 'trend_post_types', array() ) : bdpp_get_option( 'post_types', array() );\\n\\t$atts['shortcode']\\t\\t\\t\\t= 'bdp_post_ctv1';\\n\\t$atts['limit'] \\t\\t\\t\\t\\t= bdpp_clean_number( $atts['limit'], 9, 'number' );\\n\\t$atts['grid']\\t\\t\\t\\t\\t= bdpp_clean_number( $atts['grid'], 3 );\\n\\t$atts['grid']\\t\\t\\t\\t\\t= ( $atts['grid'] <= 12 ) ? $atts['grid'] : 3;\\n\\t$atts['post_type']\\t\\t\\t\\t= !empty( $atts['post_type'] )\\t\\t\\t\\t? explode( ',', $atts['post_type'] )\\t: array( BDPP_POST_TYPE );\\n\\t$atts['cat_taxonomy']\\t\\t\\t= !empty( $atts['cat_taxonomy'] )\\t\\t\\t? $atts['cat_taxonomy'] \\t\\t\\t\\t: $atts['taxonomy'];\\n\\t$atts['show_author'] \\t\\t\\t= ($atts['show_author'] == 'false')\\t\\t\\t? false\\t\\t\\t\\t\\t\\t\\t\\t\\t: true;\\n\\t$atts['show_comments'] \\t\\t\\t= ( $atts['show_comments'] == 'false' ) \\t? false\\t\\t\\t\\t\\t\\t\\t\\t\\t: true;\\n\\t$atts['show_date'] \\t\\t\\t\\t= ( $atts['show_date'] == 'false' ) \\t\\t? false\\t \\t\\t\\t\\t\\t\\t\\t\\t: true;\\n\\t$atts['show_category'] \\t\\t\\t= ( $atts['show_category'] == 'false' ) \\t? false \\t\\t\\t\\t\\t\\t\\t\\t: true;\\n\\t$atts['lazyload']\\t\\t\\t\\t= ( $atts['lazyload'] == 'false' ) \\t\\t\\t? false\\t\\t\\t\\t\\t\\t\\t\\t\\t: true;\\n\\t$atts['link_behaviour']\\t\\t\\t= ( $atts['link_behaviour'] == 'new' )\\t\\t? '_blank'\\t\\t\\t\\t\\t\\t\\t\\t: '_self';\\n\\t$atts['order'] \\t\\t\\t\\t\\t= ( strtolower($atts['order']) == 'asc' ) \\t? 'ASC' \\t\\t\\t\\t\\t\\t\\t\\t: 'DESC';\\n\\t$atts['orderby'] \\t\\t\\t\\t= !empty( $atts['orderby'] )\\t\\t\\t\\t? $atts['orderby'] \\t\\t\\t\\t\\t\\t: 'date';\\n\\t$atts['category'] \\t\\t\\t\\t= !empty( $atts['category'] )\\t\\t\\t\\t? explode(',', $atts['category']) \\t\\t: array();\\n\\t$atts['exclude_cat']\\t\\t\\t= !empty( $atts['exclude_cat'] )\\t\\t\\t? explode(',', $atts['exclude_cat'])\\t: array();\\n\\t$atts['include_cat_child']\\t\\t= ( $atts['include_cat_child'] == 'false' )\\t? false \\t\\t\\t\\t\\t\\t\\t\\t: true;\\n\\t$atts['posts']\\t\\t\\t\\t\\t= !empty( $atts['posts'] )\\t\\t\\t\\t\\t? explode(',', $atts['posts']) \\t\\t\\t: array();\\n\\t$atts['hide_post']\\t\\t\\t\\t= !empty( $atts['hide_post'] )\\t\\t\\t\\t? explode(',', $atts['hide_post']) \\t\\t: array();\\n\\t$atts['author']\\t\\t\\t\\t\\t= !empty( $atts['author'] )\\t\\t\\t\\t\\t? explode(',', $atts['author']) \\t\\t: array();\\n\\t$atts['exclude_author']\\t\\t\\t= !empty( $atts['exclude_author'] )\\t\\t\\t? explode(',', $atts['exclude_author']) : array();\\n\\t$atts['sticky_posts'] \\t\\t\\t= ($atts['sticky_posts'] == 'false')\\t\\t? true\\t\\t\\t\\t\\t\\t\\t\\t\\t: false;\\n\\t$atts['query_offset']\\t\\t\\t= !empty( $atts['query_offset'] )\\t\\t\\t? $atts['query_offset'] \\t\\t\\t\\t: null;\\t\\n\\t$atts['sharing'] \\t\\t\\t\\t= ( $atts['sharing'] && (array_key_exists(trim($atts['sharing']), $sharing_designs)) ) ? trim( $atts['sharing'] ) : false;\\n\\t$atts['slider_screen']\\t\\t\\t= bdpp_clean_number( $atts['slider_screen'], 640 );\\n\\t$atts['css_class']\\t\\t\\t\\t= bdpp_sanitize_html_classes( $atts['css_class'] );\\n\\t$atts['unique'] \\t\\t\\t\\t= bdpp_get_unique();\\n\\t$atts['thumb_html']\\t\\t\\t\\t= '';\\n\\n\\textract( $atts );\\n\\n\\t// Taking some globals\\n\\tglobal $post;\\n\\n\\t// Enqueue required scripts\\n\\tif( $sharing ) {\\n\\t\\twp_enqueue_script( 'tooltipster' );\\n\\t}\\n\\twp_enqueue_script( 'jquery-owl-carousel' );\\n\\twp_enqueue_script( 'bdpp-public-script' );\\n\\tbdpp_enqueue_script();\\n\\n\\t// Taking some variables\\n\\t$count \\t\\t\\t= 0;\\n\\t$post_type_arr\\t= array();\\n\\t$prefix \\t\\t= BDPP_META_PREFIX;\\n\\n\\t// Processing post types\\n\\tif( !empty( $post_type ) ) {\\n\\t\\tforeach ($post_type as $post_key => $post_val) {\\n\\t\\t\\t\\n\\t\\t\\t$post_val = bdpp_clean( $post_val );\\n\\t\\t\\t\\n\\t\\t\\tif( in_array( $post_val, $allowed_post_types ) ) {\\n\\t\\t\\t\\t$post_type_arr[] = $post_val;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t$post_type_arr\\t\\t= array_unique( $post_type_arr );\\n\\t\\t$atts['post_type']\\t= $post_type_arr;\\n\\t}\\n\\n\\t// WP Query Parameters\\n\\t$args = array(\\n\\t\\t'post_type' \\t\\t=> $post_type_arr,\\n\\t\\t'post_status' \\t\\t\\t=> array('publish'),\\n\\t\\t'order' \\t\\t=> $order,\\n\\t\\t'orderby' \\t\\t=> $orderby,\\n\\t\\t'posts_per_page' \\t\\t=> $limit,\\n\\t\\t'post__in'\\t\\t \\t\\t=> $posts,\\n\\t\\t'post__not_in'\\t \\t\\t=> $hide_post,\\n\\t\\t'author__in' \\t=> $author,\\n\\t\\t'author__not_in' \\t\\t=> $exclude_author,\\t\\t\\n\\t\\t'offset'\\t\\t\\t\\t=> $query_offset,\\n\\t\\t'no_found_rows'\\t\\t\\t=> true,\\n\\t\\t'ignore_sticky_posts'\\t=> $sticky_posts,\\n\\t);\\n\\n // Category Parameter\\n\\tif( $category ) {\\n\\n\\t\\t$args['tax_query'] = array(\\n\\t\\t\\t\\t\\t\\t\\t\\tarray( \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'taxonomy' \\t\\t\\t=> $taxonomy,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'terms' \\t\\t\\t=> $category,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'operator'\\t\\t\\t=> $category_operator,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'include_children'\\t=> $include_cat_child,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'field' \\t\\t\\t=> ( isset($category[0]) && is_numeric($category[0]) ) ? 'term_id' : 'slug',\\n\\t\\t\\t\\t\\t\\t\\t\\t));\\n\\n\\t} else if( $exclude_cat ) {\\n\\t\\t\\n\\t\\t$args['tax_query'] = array(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'taxonomy' \\t\\t\\t=> $taxonomy,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'terms' \\t\\t\\t=> $exclude_cat,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'operator'\\t\\t\\t=> 'NOT IN',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'include_children'\\t=> $include_cat_child,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'field' \\t\\t\\t=> ( isset($exclude_cat[0]) && is_numeric($exclude_cat[0]) ) ? 'term_id' : 'slug',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t));\\n\\t}\\n\\n\\t// For featured post\\n\\tif( $type == 'featured' ) {\\n\\n\\t\\t$args['meta_query'] = array(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'key'\\t=> $prefix.'feat_post',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'value'\\t=> 1,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\n\\t} else if( $type == 'trending' ) {\\n\\n\\t\\t$args['orderby'] \\t= ( $orderby == 'post_views' ) ? 'meta_value_num' : $orderby;\\n\\t\\t$args['meta_query'] = array(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'key'\\t\\t=> $prefix.'post_views',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'value'\\t\\t=> 0,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'compare' \\t=> '>',\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t\\t\\t\\t\\t);\\n\\t}\\n\\n\\t$args = apply_filters( 'bdpp_post_ctv1_query_args', $args, $atts );\\n\\t$args = apply_filters( 'bdpp_posts_query_args', $args, $atts );\\n\\n\\t// WP Query\\n\\t$query \\t\\t\\t\\t\\t= new WP_Query( $args );\\n\\t$atts['max_num_pages'] \\t= $query->max_num_pages;\\n\\n\\tob_start();\\n\\n\\t// If post is there\\n\\tif ( $query->have_posts() ) {\\n\\n\\t\\t\\tbdpp_get_template( 'misc/creative-1/loop-start.php', $atts );\\n\\n\\t\\t\\twhile ( $query->have_posts() ) : $query->the_post();\\n\\n\\t\\t\\t\\t$count++;\\n\\t\\t\\t\\t$atts['count'] \\t\\t= $count;\\n\\t\\t\\t\\t$atts['format']\\t\\t= bdpp_get_post_format();\\n\\t\\t\\t\\t$atts['feat_img'] \\t= bdpp_get_post_feat_image( $post->ID, $media_size, true );\\n\\t\\t\\t\\t$atts['post_link'] \\t= bdpp_get_post_link( $post->ID );\\n\\t\\t\\t\\t$atts['cate_name'] \\t= bdpp_get_post_terms( $post->ID, $cat_taxonomy );\\n\\n\\t\\t\\t\\t$atts['wrp_cls']\\t= \\\"bdpp-col-nr-{$grid} bdpp-columns bdpp-post-{$atts['format']} bdpp-post-{$post->ID}\\\";\\n\\t\\t\\t\\t$atts['wrp_cls']\\t.= empty( $atts['feat_img'] )\\t? ' bdpp-no-thumb'\\t: '';\\n\\t\\t\\t\\t$atts['wrp_cls']\\t.=\\t( is_sticky( $post->ID ) )\\t? ' bdpp-sticky'\\t: '';\\n\\n\\t // Include Dsign File\\n\\t\\t\\t\\tbdpp_get_template( \\\"misc/creative-1/creative-1.php\\\", $atts );\\n\\n\\t\\t\\t\\t// Creating Thumb HTML\\n\\t\\t\\t\\tif( $atts['feat_img'] ) {\\n\\t\\t\\t\\t\\t$thumb_active\\t= ( $count == 1 ) ? 'bdpp-post-ctv1-thumb-active' : '';\\n\\t\\t\\t\\t\\t$lazy_style\\t\\t= ( ! $lazyload ) ? 'style=\\\"background-image:url('.$atts['feat_img'].');\\\"' : '';\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tif( $count == 1 ) {\\n\\t\\t\\t\\t\\t\\t$atts['thumb_html'] .= '
    ';\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t$atts['thumb_html'] .= '
    ';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\tendwhile;\\n\\n\\t\\t\\tbdpp_get_template( 'misc/creative-1/loop-end.php', $atts );\\n\\n\\t} // end of have_post()\\n\\n\\twp_reset_postdata(); // Reset WP Query\\n\\n\\t$content .= ob_get_clean();\\n\\treturn $content;\\n}\",\n \"function cpt_casestudy() {\\n\\n \\t$labels = array(\\n \\t\\t'name' => _x( 'Case Studies', 'Post Type General Name', 'case_study' ),\\n \\t\\t'singular_name' => _x( 'Case Study', 'Post Type Singular Name', 'case_study' ),\\n \\t\\t'menu_name' => __( 'Case Studies', 'case_study' ),\\n \\t\\t'name_admin_bar' => __( 'Case Study', 'case_study' ),\\n \\t\\t'archives' => __( 'Case Study Archives', 'case_study' ),\\n \\t\\t'attributes' => __( 'Case Study Attributes', 'case_study' ),\\n \\t\\t'parent_item_colon' => __( 'Parent Case Study:', 'case_study' ),\\n \\t\\t'all_items' => __( 'All Case Studies', 'case_study' ),\\n \\t\\t'add_new_item' => __( 'Add New Case Study', 'case_study' ),\\n \\t\\t'add_new' => __( 'Add New', 'case_study' ),\\n \\t\\t'new_item' => __( 'New Case Study', 'case_study' ),\\n \\t\\t'edit_item' => __( 'Edit Case Study', 'case_study' ),\\n \\t\\t'update_item' => __( 'Update Case Study', 'case_study' ),\\n \\t\\t'view_item' => __( 'View Case Study', 'case_study' ),\\n \\t\\t'view_items' => __( 'View Case Studies', 'case_study' ),\\n \\t\\t'search_items' => __( 'Search Case Study', 'case_study' ),\\n \\t\\t'not_found' => __( 'Not found', 'case_study' ),\\n \\t\\t'not_found_in_trash' => __( 'Not found in Trash', 'case_study' ),\\n \\t\\t'featured_image' => __( 'Business Logo', 'case_study' ),\\n \\t\\t'set_featured_image' => __( 'Set business logo', 'case_study' ),\\n \\t\\t'remove_featured_image' => __( 'Remove business logo', 'case_study' ),\\n \\t\\t'use_featured_image' => __( 'Use as business logo', 'case_study' ),\\n \\t\\t'insert_into_item' => __( 'Insert into Case Study', 'case_study' ),\\n \\t\\t'uploaded_to_this_item' => __( 'Uploaded to this Case Study', 'case_study' ),\\n \\t\\t'items_list' => __( 'Case Studies list', 'case_study' ),\\n \\t\\t'items_list_navigation' => __( 'Case Studies list navigation', 'case_study' ),\\n \\t\\t'filter_items_list' => __( 'Filter Case Studies list', 'case_study' ),\\n \\t);\\n \\t$args = array(\\n \\t\\t'label' => __( 'Case Study', 'case_study' ),\\n \\t\\t'labels' => $labels,\\n \\t\\t'supports' => array( 'title', 'thumbnail' ),\\n \\t\\t'taxonomies' => array( 'case_study_categories' ),\\n \\t\\t'hierarchical' => false,\\n \\t\\t'public' => true,\\n \\t\\t'show_ui' => true,\\n \\t\\t'show_in_menu' => true,\\n \\t\\t'menu_position' => 20,\\n \\t\\t'menu_icon' => 'dashicons-analytics',\\n \\t\\t'show_in_admin_bar' => true,\\n \\t\\t'show_in_nav_menus' => true,\\n \\t\\t'can_export' => true,\\n \\t\\t'has_archive' => true,\\n \\t\\t'exclude_from_search' => true,\\n \\t\\t'publicly_queryable' => true,\\n \\t\\t'rewrite' => false,\\n \\t\\t'capability_type' => 'page',\\n \\t);\\n \\tregister_post_type( 'case_study', $args );\\n\\n }\",\n \"function dm_product_news_shortcode($atts, $content = null) {\\n\\tglobal $post;\\n\\textract(shortcode_atts(array(\\n\\t\\t'post_id' => ($post ? $post->ID : ''),\\n\\t\\t'title' => \\\"In the News\\\",\\n\\t\\t'limit' => 1,\\n\\t), $atts));\\n\\n\\tif (!$post_id) {\\n\\t\\treturn '';\\n\\t}\\n\\n\\t$term_ids = dm_get_post_term_ids($post_id, 'products');\\n\\n\\tif (empty($term_ids)) return '';\\n\\n\\t$args = array(\\n\\t\\t'post_status' => 'publish',\\n\\t\\t'post_type' => 'post',\\n\\t\\t'posts_per_page' => $limit,\\n\\t\\t'orderby' => 'date',\\n\\t\\t'order' => 'DESC',\\n\\t\\t'tax_query' => array(\\n\\t\\t\\tarray(\\n\\t\\t\\t\\t'taxonomy' => 'products',\\n\\t\\t\\t\\t'field' => 'id',\\n\\t\\t\\t\\t'terms' => $term_ids,\\n\\t\\t\\t)\\n\\t\\t),\\n\\t);\\n\\t$query = new WP_Query($args);\\n\\n\\tif (!$query->have_posts()) return '';\\n\\n\\tob_start();\\n?>\\n\\t
    \\n\\t\\thave_posts()): $query->the_post(); ?>\\n\\t\\t\\t

    \\n\\t\\t\\t\\t:\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\\">READ MORE &raquo;\\n\\t\\t\\t

    \\n\\t\\t\\n\\t
    \\n\\n
    \\n
      \\n
    • {{{ settings.all_text }}}
    • \\n
    • {{{ settings.taxonomy }}} 1
    • \\n
    • {{{ settings.taxonomy }}} 2
    • \\n
    \\n
    \\npt_show_blc_front();\\n\\t\\t}\",\n \"function blog_post_shortcode($atts) {\\n // Defaults\\n extract(shortcode_atts(array(\\n\\t \\\"no_of_post\\\" => '',\\n\\t \\\"order\\\" => 'desc',\\n\\t \\\"order_by\\\" => 'rand',\\n\\t \\\"excerpt_length\\\" => '80',\\n\\t \\\"link_text\\\" => 'Continue Reading'\\n ), $atts));\\n $paged = (get_query_var('paged')); \\n $the_query = '';\\n // de-funkify query\\n $the_query = preg_replace('~&#x0*([0-9a-f]+);~ei', 'chr(hexdec(\\\"\\\\\\\\1\\\"))', $the_query);\\n $the_query = preg_replace('~&#0*([0-9]+);~e', 'chr(\\\\\\\\1)', $the_query);\\n \\n \\n\\t$the_query = array(\\n\\t\\t\\\"posts_per_page\\\" => $no_of_post,\\n\\t\\t\\\"order\\\" => $order,\\n\\t\\t\\\"orderby\\\" => $order_by,\\n\\t\\t\\\"paged\\\" => $paged\\n\\t);\\n // query is made \\n query_posts($the_query);\\n\\n // Reset and setup variables\\n $output = '';\\n $temp_title = '';\\n $temp_link = '';\\n $temp_ex = '';\\n $temp_content = '';\\n $temp_thumb = '';\\n $temp_id = '';\\n\\n // the loop\\n $output = '';\\n if (have_posts()) : while (have_posts()) : the_post();\\n global $post;\\n \\t $temp_id = get_the_ID();\\n $temp_title = get_the_title($temp_id);\\n $temp_link = get_permalink($temp_id);\\n $temp_content = ShortenText(strip_shortcodes(strip_tags(get_the_content($temp_id))), $excerpt_length) ;\\n\\t \\n\\t $meta = '

    Posted by ';\\n\\t $meta .= ' author). '\\\">'; \\n\\t $meta .= get_the_author_meta('display_name');\\n\\t $meta .= '';\\n\\t \\n\\t \\n\\t $meta .= ' On '.get_the_time('F j, Y');\\n\\t $meta .= '

    ';\\n\\t $category = get_the_category_list(', ');\\n\\t \\n\\t \\n\\t \\n $output .= '
    \\n \\t
    \\n \\t\\t

    '.$temp_title.'

    \\n \\t
    \\n
    \\n\\t\\t\\t\\t\\t\\t '.$meta.'\\n

    Categories: '.$category.'

    \\n
    \\n
    \\n \\n
    ';\\n \\n $meta = get_post_meta($post->ID, 'drive_post_options', false);\\n\\t\\t\\t\\t\\t\\n if( !empty($meta) )\\n extract($meta[0]);\\n\\n $fcs_video = isset($fcs_video) ? $fcs_video : '';\\n $fcs_audio = isset($fcs_audio) ? esc_url($fcs_audio) : '';\\n\\n if ( has_post_format( 'audio' ) ){\\n if(!empty($fcs_audio)){\\n $output .= '
    '.do_shortcode('[audio src=\\\"'. $fcs_audio .'\\\"]').'
    ';\\n }\\n }\\n elseif ( has_post_format( 'video' ) ){\\n if (!empty($fcs_video)) {\\n $output .= '
    '.$fcs_video.'
    ';\\n }\\n }\\n else{\\n if( has_post_thumbnail() && function_exists('dfi_get_featured_images') ) {\\n \\n \\t$output .= '
    \\n
    \\n
      '; \\n\\t\\t\\t\\t\\t\\t\\t\\n $img = '';\\n // Checks if post has a feature image, grabs the feature-image and outputs that along with thumbnail SRC as a REL attribute \\n if (has_post_thumbnail()) { // checks if post has a featured image and then outputs it. \\n $image_id = get_post_thumbnail_id ($post->ID ); \\n $image_thumb_url = wp_get_attachment_image_src( $image_id, 'full'); \\n if(!empty($image_thumb_url))\\n $img = aq_resize($image_thumb_url[0], 1100, 300, true, true); \\n\\n if($img){\\n $output .= '
    • \\\"\\\"
    • ';\\n }else{\\n $output .= '
    • \\\"\\\"
    • '; \\n }\\n }\\n\\n \\n if( function_exists('dfi_get_featured_images') ) {\\n $featuredImages = dfi_get_featured_images();\\n\\n if(!empty($featuredImages)){\\n\\n foreach ($featuredImages as $featuredImage) {\\n $img = aq_resize($featuredImage['full'], 817, 300, true, true);\\n \\n if($img){\\n $output .= '
    • \\\"\\\"
    • ';\\n }else{\\n $output .= '
    • \\\"\\\"
    • '; \\n }\\n }\\n }\\n }\\n \\n \\n $output .= '
    \\n
    \\n
    '; \\n \\n }\\n }\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\n $output .= '

    '.$temp_content.'

    ';\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n \\n $output .= ''.$link_text.'\\n
    \\n
    ';\\n\\t\\t\\n\\t\\t\\n\\t\\t\\t\\n endwhile; \\n $output .= shortcode_nav( '
    ','
    ');\\n else:\\n $output .= \\\"Post not found.\\\";\\n endif;\\n wp_reset_query();\\n return $output;\\n}\",\n \"function khLess_shortcodes_init()\\n{\\n function khLess_shortcode($atts = [], $content = null)\\n {\\n get_template_part('template', 'schedule');\\n }\\n\\n add_shortcode('khLess', 'khLess_shortcode');\\n}\",\n \"function the_show( $before = '', $after = ': ' ) {\\n global $post;\\n echo get_the_show( $post->ID, $before, $after );\\n}\",\n \"function displayTemplateColumn($column_name, $post_ID) { \\n if ($column_name == 'template') { \\n $pageTemplate = $this->getPageTemplate($post_ID); \\n if ($pageTemplate) { \\n echo $pageTemplate; \\n } \\n } \\n }\",\n \"function Display_Shortcode_metabox() \\n{\\n\\n ?>\\n
    \\n \\n
    \\n ' . do_shortcode($content) . '
    ';\\n}\",\n \"function otm_show_featured_posts() {\\n\\n\\t$my_query = new WP_Query( array( \\n\\t\\t'meta_key' \\t\\t\\t\\t=> 'is_featured',\\n\\t\\t'post_type'\\t\\t\\t\\t=> 'post',\\n\\t\\t'meta_value'\\t\\t\\t=> true,\\n\\t\\t'numberposts' \\t\\t=> 3\\n\\t) );\\n\\n\\t// If our query has posts\\n\\tif ( $my_query->have_posts() ) :\\n\\t\\twhile ( $my_query->have_posts() ) : $my_query->the_post();\\n\\n\\t\\t\\t// Get specific template-part\\n\\t\\t\\tget_template_part( 'template-parts/post/content-featured' );\\n\\n\\t\\tendwhile;\\n\\tendif;\\n\\n\\twp_reset_query();\\n}\",\n \"public function get_shortcode() {\\n\\t\\t$args = array();\\n\\t\\tforeach ($this->args as $k => $v) {\\n\\t\\t\\t// Only include info if it's not the default... save space and easier to read shortcodes\\n\\t\\t\\tif (isset($this->defaults[$k]) && $this->defaults[$k] != $v) { // && (!empty($this->defaults[$k]) && !empty($v))) {\\n\\t\\t\\t\\tif ( !empty($v) ) {\\n\\t\\t\\t\\t\\tif ( is_array($v) ) {\\n\\t\\t\\t\\t\\t\\t$args[] = $k.'=\\\"'.implode(',', $v).'\\\"';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\t$args[] = $k.'=\\\"'.$v.'\\\"';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\t// Direct filtering on a field\\n\\t\\t\\telseif (!isset($this->defaults[$k])) {\\n\\t\\t\\t\\t$args[] = $k.'=\\\"'.$v.'\\\"';\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\t$args = implode(' ', $args);\\n\\t\\tif (!empty($args)) {\\n\\t\\t\\t$args = ' '.$args;\\n\\t\\t}\\n\\t\\treturn '[summarize-posts'.$args.']';\\n\\t}\",\n \"function tmiContentAreaShortCode( $atts) {\\n $atts = shortcode_atts( array(\\n \\t'id' => '0',\\n \\t'slug' => ''\\n \\t), $atts, 'tmiContentArea' );\\n $args = array('post_type' => 'tmi-content-Area',\\n 'post_status' => 'publish',\\n 'numberposts' => 1);\\n if($atts['id'] != '0'){\\n $args['ID'] = $atts['id'];\\n }elseif($atts['slug'] != ''){\\n $args['name'] = $atts['slug'];\\n }else{\\n return 'Please sepecify attribute ID or slug for shortcode';\\n }\\n // tmiDebug($args);\\n $content = get_posts($args);\\n if(is_array($content) && count($content) > 0){\\n // tmiDebug($content);\\n return apply_filters( 'the_content', $content[0]->post_content);\\n }\\n\\treturn \\\"No data found\\\";\\n }\",\n \"public function p_news_display() {\\n\\t\\t// Build the output to return for use by the shortcode.\\n\\t\\tob_start();\\n\\t\\t?>\\n\\t\\t
    \\n\\t\\t\\t 3,\\n\\t\\t\\t\\t'offset'=> 0,\\n\\t\\t\\t\\t'post_type' => 'post',\\n\\t\\t\\t\\t'tax_query' => array(\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'taxonomy' => 'category',\\n\\t\\t\\t\\t\\t\\t'field' => 'slug',\\n\\t\\t\\t\\t\\t\\t'terms' => 'news-polymeric'\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t);\\n\\n\\t\\t\\t$my_posts = new WP_Query( $args );\\n\\n\\t\\t\\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t

    \\\">

    \\n\\t\\t\\t\\n\\n\\t\\t
    \\n\\t\\t '' ) {\\n\\t\\t$title = $short_title;\\n\\t}\\n\\t\\n\\t$url = get_the_permalink();\\t\\n\\t$title = \\\"

    $title

    \\\";\\t\\n\\n\\t// if the post we are displaying is an ibio custom post type, we want to use a div for the span tag normally used around an excerpt.\\n\\tglobal $post;\\n\\tif ( $post->post_type == IBioSession::$post_type\\n\\t || $post->post_type == IBioPlaylist::$post_type\\n\\t\\t|| $post->post_type == IBioTalk::$post_type\\n\\t) {\\n\\t\\t$excerpt = preg_replace( '/$/', '
    ', $excerpt);\\n\\t}\\n\\t// Now let's rebuild the output\\n\\t$output = '<' . $inner_wrapper . ' class=\\\"' . implode( ' ', $class ) . '\\\">' . $image . $title . $date . $excerpt . $content . '';\\n\\n\\n\\t// Finally we'll return the modified output\\n\\treturn $output;\\n}\",\n \"function echotheme_flexslider_shortcode($atts)\\n{\\n\\tob_start();\\n\\tget_template_part('part', 'flexslider-gallery');\\n\\treturn ob_get_clean();\\n}\",\n \"function iin_panels_extras_blog_related_posts_content_type_render($subtype, $conf, $panel_args, $context) {\\n $pane = new stdClass();\\n $pane->content = '';\\n $arg1 = arg(1);\\n $node = node_load($arg1);\\n $category = $node->field_blog_category['und'][0]['tid'];\\n\\n if (!empty($category)) {\\n $terms = db_query('SELECT nid FROM {taxonomy_index} WHERE tid = :tid AND nid != :nid ORDER BY created DESC LIMIT 3',\\n array(':tid' => $category, ':nid' => $node->nid));\\n $pane->content .= ' ';\\n\\n foreach ($terms as $term) {\\n $term_node = node_load($term->nid);\\n $image = (empty($term_node->field_special_featured_image)) ? $term_node->field_featured_image['und'][0] : $term_node->field_special_featured_image['und'][0];\\n $image_style = image_style_url('blog_mobile_list', $image['uri']);\\n\\n $pane->content .= ' ';\\n }\\n }\\n\\n return $pane;\\n}\",\n \"function euforia_multimedia() {\\n\\n $labels = array(\\n 'name' => _x( 'Euforia Multimedia', 'Post Type General Name', 'euforia' ),\\n 'singular_name' => _x( 'Euforia Multimedia', 'Post Type Singular Name', 'euforia' ),\\n 'menu_name' => __( 'Euforia Multimedia', 'euforia' ),\\n 'name_admin_bar' => __( 'Euforia Multimedia', 'euforia' ),\\n 'archives' => __( 'Euforia Multimedia historico', 'euforia' ),\\n 'attributes' => __( 'Euforia Multimedia atributos', 'euforia' ),\\n 'parent_item_colon' => __( 'Euforia Multimedia padre:', 'euforia' ),\\n 'all_items' => __( 'Euforia Multimedia todos', 'euforia' ),\\n 'add_new_item' => __( 'agregar Nuevo Euforia Multimedia', 'euforia' ),\\n 'add_new' => __( 'Agregar Euforia Multimedia', 'euforia' ),\\n 'new_item' => __( 'Nuevo Euforia Multimedia', 'euforia' ),\\n 'edit_item' => __( 'Editar Euforia Multimedia', 'euforia' ),\\n 'update_item' => __( 'Actualizar Euforia Multimedia', 'euforia' ),\\n 'view_item' => __( 'Ver Euforia Multimedia', 'euforia' ),\\n 'view_items' => __( 'Ver todos Euforia Multimedia', 'euforia' ),\\n 'search_items' => __( 'Buscar Euforia Multimedia', 'euforia' ),\\n 'not_found' => __( 'No se encuentra', 'euforia' ),\\n 'not_found_in_trash' => __( 'No se encuentra en papelera', 'euforia' ),\\n 'featured_image' => __( 'Imagen destacada', 'euforia' ),\\n 'set_featured_image' => __( 'Colocar imagen destacada', 'euforia' ),\\n 'remove_featured_image' => __( 'Remover imagen destacada', 'euforia' ),\\n 'use_featured_image' => __( 'Use como imagen destacada', 'euforia' ),\\n 'insert_into_item' => __( 'Insertar en Euforia Multimedia', 'euforia' ),\\n 'uploaded_to_this_item' => __( 'Subido a Euforia Multimedia', 'euforia' ),\\n 'items_list' => __( 'Euforia Multimedia Listado', 'euforia' ),\\n 'items_list_navigation' => __( 'Euforia Multimedia listado navegacion', 'euforia' ),\\n 'filter_items_list' => __( 'Filtro Euforia Multimedia lista', 'euforia' ),\\n );\\n $rewrite = array(\\n 'slug' => 'euforia-multimedia',\\n 'with_front' => true,\\n 'pages' => true,\\n 'feeds' => true,\\n );\\n $args = array(\\n 'label' => __( 'Euforia Multimedia', 'euforia' ),\\n 'description' => __( 'Sección multimedia del sitio para Euforia', 'euforia' ),\\n 'labels' => $labels,\\n 'supports' => array( 'title', 'excerpt', 'thumbnail', 'post-formats' ),\\n 'hierarchical' => false,\\n 'public' => true,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 5,\\n 'menu_icon' => get_template_directory_uri() . '/images/favicon-16x16.png',\\n 'show_in_admin_bar' => true,\\n 'show_in_nav_menus' => true,\\n 'can_export' => true,\\n 'has_archive' => true,\\n 'exclude_from_search' => true,\\n 'publicly_queryable' => true,\\n 'query_var' => 'multimedia',\\n 'rewrite' => $rewrite,\\n 'capability_type' => 'post',\\n );\\n register_post_type( 'euforia_mm', $args );\\n\\n}\",\n \"function gallery_section_shortcode( $atts, $content = null ) {\\t\\n\\t$output = '
  • ';\\n\\t$output .= do_shortcode($content);\\n\\t$output .= '
  • ';\\n\\treturn $output;\\n}\",\n \"function et_excerpt_more($more) {\\n global $post;\\n return '';\\n}\",\n \"function display( array $atts , $content = '' ){\\r\\n\\r\\n ob_start();\\r\\n\\r\\n if( $atts['title'] && ! Better_Framework::widget_manager()->get_current_sidebar() && $atts['show_title'] ){\\r\\n $atts['element-type'] = $this->id;\\r\\n echo apply_filters( 'better-framework/shortcodes/title', $atts );\\r\\n }\\r\\n\\r\\n $height = 65;\\r\\n if( $atts['show_faces'] == true ){\\r\\n $height += 175;\\r\\n }\\r\\n if( $atts['show_posts'] == true ){\\r\\n $height += 350;\\r\\n }\\r\\n\\r\\n ?>\\r\\n
    \\\">\\r\\n
    \\r\\n \\r\\n
    \\r\\n
    \\r\\n 1,\\n\\t\\t\\t\\t'post_id'\\t\\t\\t\\t=> false\\n\\t\\t\\t\\t), $atts, $tag);\\n\\t\\t\\t\\t\\n\\t\\t\\t//build output\\n\\t\\t\\t$html .= $this->get_upcoming_post_preview($arguments);\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn $html;\\n\\t}\",\n \"function historias_consultants_shortcode( $atts ) {\\n ob_start();\\n\\n extract( shortcode_atts( array (\\n 'type' => 'consultant',\\n 'order' => 'ASC',\\n 'orderby' => 'title',\\n 'posts' => -1,\\n ), $atts ) );\\n\\n $options = array(\\n 'post_type' => $type,\\n 'order' => $order,\\n 'orderby' => $orderby,\\n 'posts_per_page' => $posts,\\n );\\n\\n $query = new WP_Query( $options );\\n if ( $query->have_posts() ) { ?>\\n
    \\n have_posts() ) : $query->the_post(); ?>\\n
    >\\n \\n
    \\n \\n
    )\\\">\\n
    \\n
    \\n \\n
    \\n

    \\n \\n ' ) ); ?>\\n
    \\n
    \\n \\n
    \\n fetch_base_config( $id, $post );\\n $context['selector'] = 'feed' . $id;\\n $context = $this->fetch_module_config( $context, $id );\\n $context = $this->fetch_btn_config( $context, $id, $meta );\\n $context['post_list_layout'] = get_post_meta( $id, 'yali_cdp_post_list_layout', true);\\n\\n //$this->debug($context );\\n return Twig::render( 'content_blocks/post-list.twig', $context );\\n }\",\n \"function custom_loop_shortcode_get_posts($atts){\\n\\n // get global post variable\\n global $post;\\n\\n // define shortcode variable\\n extract(shortcode_atts(array(\\n 'posts_per_page' => 5,\\n 'orderby' => 'date'\\n ), $atts));\\n\\n // define get_posts parameters\\n $args = array(\\n 'posts_per_page' => $posts_per_page,\\n 'orderby' => $orderby\\n );\\n\\n // get the posts\\n $posts = get_posts($args);\\n\\n // begin output variable\\n $output = '

    Custom Loop Example: get_posts()

    ';\\n $output .= '
      ';\\n\\n // loop thru posts\\n foreach($posts as $post){\\n\\n // prepare post data\\n setup_postdata($post);\\n\\n // continue output\\n $output .= '
    • ' . get_the_title() . '
    • ';\\n\\n }\\n\\n // reset post data\\n wp_reset_postdata();\\n\\n // complete output variable\\n $output .= '
    ';\\n\\n // return output\\n return $output;\\n}\",\n \"function _show_post_preview()\\n {\\n }\",\n \"function flatsome_single_page_header(){\\n if(is_singular('post') && get_theme_mod('blog_post_style') == 'top'){\\n\\t\\techo get_template_part( 'template-parts/posts/partials/single-featured', get_theme_mod('blog_post_style'));\\n\\t}\\n}\",\n \"public function p_pub_display() {\\n\\t\\t// Build the output to return for use by the shortcode.\\n\\t\\tob_start();\\n\\t\\t?>\\n\\n\\t\\t
    \\n\\t\\t\\t 4,\\n\\t\\t\\t\\t'offset'=> 0,\\n\\t\\t\\t\\t'post_type' => 'wsuwp_uc_publication',\\n\\t\\t\\t\\t'tax_query' => array(\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'taxonomy' => 'category',\\n\\t\\t\\t\\t\\t\\t'field' => 'slug',\\n\\t\\t\\t\\t\\t\\t'terms' => 'polymeric-materials-publications'\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t);\\n\\n\\t\\t\\t$my_posts = new WP_Query( $args );\\n\\n\\t\\t\\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t

    \\\">

    \\n\\t\\t\\t\\n\\n\\t\\t
    \\n\\n\\t\\t get_the_ID() ,\\n\\t\\t'key' => '',\\n\\t\\t'single' => false,\\n ), $atts );\\t\\n \\n return get_post_meta( $a[\\\"post-id\\\"], $a[\\\"key\\\"], $a[\\\"post-id\\\"] ) ;\\n\\n}\",\n \"function custom_bcn_template_tag($replacements, $type, $id)\\n{\\n if (in_array('post-products', $type)) {\\n $short_title = get_field('short_title', $id);\\n $replacements['%short_title%'] = ($short_title) ? $short_title : $replacements['%htitle%'];\\n } else {\\n $replacements['%short_title%'] = $replacements['%htitle%'];\\n }\\n return $replacements;\\n}\",\n \"function pm_blog_shortcode( $atts, $content = null) {\\n\\textract(shortcode_atts(array(\\n\\t\\t'number_of_post' => '',\\n\\t\\t'exclude' \\t\\t => '',\\n\\t\\t'class'\\t\\t\\t => '',\\n\\t), $atts));\\n\\n\\t$result = '';\\n\\n\\tob_start(); \\n\\n\\t// Assigning a master css class and hooking into KC\\n\\t$master_class = apply_filters( 'kc-el-class', $atts );\\n\\t$master_class[] = 'pm-team';\\n\\n\\t// Retrieving user define classes\\n\\t$classes = array( 'row about-content' );\\n\\t(!empty($class)) ? $classes[] = $class : ''; ?>\\n\\t
    \\n\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t 'post',\\n\\t\\t\\t\\t\\t\\t'posts_per_page'\\t\\t=> $number_of_post,\\n\\t\\t\\t\\t\\t\\t'post_status'\\t\\t\\t=> 'publish',\\n\\t\\t\\t\\t\\t\\t'order'\\t\\t\\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t\\t\\t'category__not_in' \\t\\t=> $cat_excludes\\n\\t\\t\\t\\t\\t);\\n\\n\\t\\t\\t\\t\\t$count_posts = wp_count_posts();\\n\\t\\t\\t\\t\\t$published_posts = $count_posts->publish;\\n\\n\\t\\t\\t\\t\\t$data = new WP_Query( $args );\\n\\n\\t\\t\\t\\t\\tif( $data->have_posts() ) :\\n\\t\\t\\t\\t\\t\\twhile( $data->have_posts() ) : $data->the_post(); ?>\\n\\n\\t\\t\\t\\t\\t\\t
    \\\" >\\n\\t\\t\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t\\t\\t

    \\\">

    \\n\\n\\t\\t\\t\\t\\t\\t\\t

    \\n\\t\\t\\t\\t\\t\\t
    \\n\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t
    \\n\\t\\t\\t\\t $number_of_post ) : ?>\\n\\t\\t\\t\\t\\t

    \\\" class=\\\"button orange\\\">View More

    \\n\\t\\t\\t\\t\\n\\t\\t\\t
    \\n\\t\\t
    \\n\\t
    \\n\\t 'coursenote',\\n\\t\\t\\t\\t\\t'posts_per_page' => -1,\\n\\t\\t\\t\\t\\t'post_status' => array('draft'),\\n\\t\\t\\t\\t\\t'order' => 'ASC',\\n\\t\\t\\t\\t\\t'orderby' => 'title',\\n\\n\\t\\t\\t);\\n\\t\\t}\\n\\t\\t//Viewer can only see their notes\\n\\t\\telse {\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t\\t'post_type' => 'coursenote',\\n\\t\\t\\t\\t\\t'posts_per_page' => -1,\\n\\t\\t\\t\\t\\t'post_status' => array('draft'),\\n\\t\\t\\t\\t\\t'order' => 'ASC',\\n\\t\\t\\t\\t\\t'orderby' => 'title',\\n\\t\\t\\t\\t\\t'author__in' => $current_user\\n\\t\\t\\t);\\n\\t\\t}\\n\\n\\n\\n $query = new WP_Query($args);\\n if ( $query->have_posts() ) { ?>\\n
      \\n have_posts() ) : $query->the_post(); ?>\\n
    • \\\" >\\n \\\">\\n
    • \\n \\n
    \\n 5,\\n\\t\\t'orderby' => 'date',\\n\\t\\t\\n\\t), $atts ) );\\n\\t\\n\\t// define get_post parameters\\n\\t$args = array( 'posts_per_page' => $posts_per_page, 'orderby' => $orderby );\\n\\t\\n\\t// get the posts\\n\\t$posts = get_posts( $args );\\n\\t\\n\\t// begin output variable\\n\\t$output = '

    Custom Loop Example: get_posts()

    ';\\n\\t$output .= '
      ';\\n\\t\\n\\t// loop thru posts\\n\\tforeach ( $posts as $post ) {\\n\\t\\t\\n\\t\\t// prepare post data\\n\\t\\tsetup_postdata( $post );\\n\\t\\t\\n\\t\\t// continue output variable\\n\\t\\t$output .= '
    • '. get_the_title() .'
    • ';\\n\\t\\t\\n\\t}\\n\\t\\n\\t// reset post data\\n\\twp_reset_postdata();\\n\\t\\n\\t// complete output variable\\n\\t$output .= '
    ';\\n\\t\\n\\t// return output\\n\\treturn $output;\\n\\t\\n}\",\n \"function prefix_render_callback( $post ) {\\n\\t \\n\\t\\tinclude( plugin_dir_path( __FILE__ ).'../../templates/partials/car-tease.php');\\n\\t \\n\\t}\",\n \"function my_shortcode() {\\n\\n$options = get_option('foodrecipecptplugin_settings');\\nreturn \\\"

    Recipe Name:\\\" . $options['foodrecipecptplugin_text_field_0'] . \\\"

    \\\".\\\"

    Category: \\\" . $options['foodrecipecptplugin_text_field_1'].\\\"

    \\\".\\\"

    Ingredients: \\\". $options['foodrecipecptplugin_text_field_2'].\\\"

    \\\".\\\"

    Recipe Instructions: \\\" . $options['foodrecipecptplugin_text_field_3'] . \\\"

    \\\";\\n}\",\n \"function create_easyvideo_cpt() {\\n\\n $labels = array(\\n 'name' => _x( 'Easy Videos', 'Post Type General Name', 'easycoupons' ),\\n 'singular_name' => _x( 'Easy Video', 'Post Type Singular Name', 'easycoupons' ),\\n 'menu_name' => _x( 'Easy Videos', 'AdminLoader Menu text', 'easycoupons' ),\\n 'name_admin_bar' => _x( 'Easy Video', 'Add New on Toolbar', 'easycoupons' ),\\n 'archives' => __( 'Easy Video Archives', 'easycoupons' ),\\n 'attributes' => __( 'Easy Video Attributes', 'easycoupons' ),\\n 'parent_item_colon' => __( 'Parent Easy Video:', 'easycoupons' ),\\n 'all_items' => __( 'All Easy Videos', 'easycoupons' ),\\n 'add_new_item' => __( 'Add New Easy Video', 'easycoupons' ),\\n 'add_new' => __( 'Add New', 'easycoupons' ),\\n 'new_item' => __( 'New Easy Video', 'easycoupons' ),\\n 'edit_item' => __( 'Edit Easy Video', 'easycoupons' ),\\n 'update_item' => __( 'Update Easy Video', 'easycoupons' ),\\n 'view_item' => __( 'View Easy Video', 'easycoupons' ),\\n 'view_items' => __( 'View Easy Videos', 'easycoupons' ),\\n 'search_items' => __( 'Search Easy Video', 'easycoupons' ),\\n 'not_found' => __( 'Not found', 'easycoupons' ),\\n 'not_found_in_trash' => __( 'Not found in Trash', 'easycoupons' ),\\n 'featured_image' => __( 'Featured Image', 'easycoupons' ),\\n 'set_featured_image' => __( 'Set featured image', 'easycoupons' ),\\n 'remove_featured_image' => __( 'Remove featured image', 'easycoupons' ),\\n 'use_featured_image' => __( 'Use as featured image', 'easycoupons' ),\\n 'insert_into_item' => __( 'Insert into Easy Video', 'easycoupons' ),\\n 'uploaded_to_this_item' => __( 'Uploaded to this Easy Video', 'easycoupons' ),\\n 'items_list' => __( 'Easy Videos list', 'easycoupons' ),\\n 'items_list_navigation' => __( 'Easy Videos list navigation', 'easycoupons' ),\\n 'filter_items_list' => __( 'Filter Easy Videos list', 'easycoupons' ),\\n );\\n $args = array(\\n 'label' => __( 'Easy Video', 'easycoupons' ),\\n 'description' => __( '', 'easycoupons' ),\\n 'labels' => $labels,\\n 'menu_icon' => 'dashicons-video-alt3',\\n 'supports' => array('title','thumbnail'),\\n 'taxonomies' => array(),\\n 'public' => false,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 100,\\n 'show_in_admin_bar' => false,\\n 'show_in_nav_menus' => false,\\n 'can_export' => true,\\n 'has_archive' => false,\\n 'hierarchical' => false,\\n 'exclude_from_search' => true,\\n 'show_in_rest' => false,\\n 'publicly_queryable' => false,\\n 'capability_type' => 'post',\\n );\\n\\n register_post_type( 'easy-video', $args );\\n\\n }\",\n \"function cah_news_display_post($post, $dept=0) {\\r\\n if (!is_object($post)) {\\r\\n return;\\r\\n }\\r\\n\\r\\n $title = $post->title->rendered;\\r\\n $excerpt = cah_news_excerpt($post->excerpt->rendered);\\r\\n \\r\\n $link = $post->link;\\r\\n if ($dept) {\\r\\n $link = add_query_arg(['dept' => $dept], $link);\\r\\n }\\r\\n $link = esc_url($link);\\r\\n \\r\\n $date = date_format(date_create($post->date), 'F d, Y');\\r\\n $thumbnail = '';\\r\\n // // $thumbnail = $post.embedded.{'wp:featuredmedia'}.media_details.sizes.thumbnail.source_url;\\r\\n if (isset($post->_embedded->{'wp:featuredmedia'}[0]->media_details->sizes->thumbnail->source_url))\\r\\n {\\r\\n $thumbnail = $post->_embedded->{'wp:featuredmedia'}[0]->media_details->sizes->thumbnail->source_url;\\r\\n }\\r\\n\\t\\r\\n\\t// Looking to see if it links to an outside page\\r\\n\\t$links_to = (bool) get_post_meta( $post->id, '_links_to', true );\\r\\n\\t$links_to_target = (bool) get_post_meta( $post->id, '_links_to_target', true) == \\\"_blank\\\";\\r\\n\\r\\n ?>\\r\\n\\r\\n \\\">\\r\\n
    \\r\\n ';\\r\\n echo '';\\r\\n }\\r\\n else {\\r\\n echo 'ID ) . '\\\">';\\r\\n }\\r\\n ?>\\r\\n
    \\r\\n
    \\r\\n

    \\r\\n &nbsp;\\r\\n \\r\\n

    \\r\\n
    \\r\\n
    \\r\\n
    \\r\\n getOptionValue('blog_single_related_posts') == 'yes') ? true : false;\\n if($show_related) {\\n $hasSidebar = voyage_mikado_sidebar_layout();\\n $post_id = get_the_ID();\\n $related_post_number = ($hasSidebar == '' || $hasSidebar == 'default' || $hasSidebar == 'no-sidebar') ? 4 : 3;\\n $related_posts_options = array(\\n 'posts_per_page' => $related_post_number\\n );\\n $related_posts_params = array(\\n 'related_posts' => voyage_mikado_get_related_post_type($post_id, $related_posts_options)\\n );\\n }\\n\\n $single_options_template = voyage_mikado_options()->getOptionValue('blog_single_type');\\n\\n voyage_mikado_get_module_template_part('templates/single/post-formats/'.$post_format, 'blog', $single_options_template, $params);\\n voyage_mikado_get_module_template_part('templates/single/parts/author-info', 'blog');\\n voyage_mikado_get_single_post_navigation_template();\\n if($show_related) {\\n voyage_mikado_get_module_template_part('templates/single/parts/related-posts', 'blog', '', $related_posts_params);\\n }\\n comments_template('', true);\\n\\n }\",\n \"public function se_news_display() {\\n\\t\\t// Build the output to return for use by the shortcode.\\n\\t\\tob_start();\\n\\t\\t?>\\n\\t\\t
    \\n\\t\\t\\t 3,\\n\\t\\t\\t\\t'offset'=> 0,\\n\\t\\t\\t\\t'post_type' => 'post',\\n\\t\\t\\t\\t'tax_query' => array(\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'taxonomy' => 'category',\\n\\t\\t\\t\\t\\t\\t'field' => 'slug',\\n\\t\\t\\t\\t\\t\\t'terms' => 'news-structural-engineering'\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t);\\n\\n\\t\\t\\t$my_posts = new WP_Query( $args );\\n\\n\\t\\t\\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t

    \\\">

    \\n\\t\\t\\t\\n\\n\\t\\t
    \\n\\t\\t '{$pageid}',\\n'displaytype' => '{$displaytype}',\\n'showcontent' => '{$showcontent}',\\n'colourthumbs' => '{$colourthumbs}',\\n'css' => ''\\n), $atts ) );\\n$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $atts );\\n\\n$args = array(\\n'page_id' => $pageid,\\n);\\n$output;\\nglobal $post;\\n$loop = new WP_Query( $args );\\nif ( $loop->have_posts() ) {\\n$isinternation = get_post_meta($post->ID, '_internationalPage', true);\\n\\n\\t\\n\\t$output .= \\\"
    \\\";\\nwhile ( $loop->have_posts() ) : $loop->the_post();\\n\\nif($isinternation == 1 && !empty(get_post_meta($post->ID, '_subheadtwo', true))) {\\n$thetitle = get_post_meta($post->ID, '_subheadtwo', true);\\t\\n} else {\\n$thetitle = get_the_title();\\t\\n}\\n\\tif (isset($GLOBALS['styles'])) {\\n\\t$GLOBALS['styles'] = $GLOBALS['styles'];\\n\\t } else {\\n\\t$GLOBALS['styles'] = '';\\t\\n\\t}\\n\\t\\n\\t\\n\\t$colour = get_post_meta($post->ID, '_pagecolour', true);\\n\\t$GLOBALS['styles'] .= \\\".media.list.media-\\\".get_the_ID().\\\" .cover{ background:\\\".$colour.\\\";}\\\";\\n\\n\\t$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );\\n$url = $thumb['0'];\\n$GLOBALS['styles'] .= \\\".media-\\\".get_post_type().\\\".media-\\\".get_the_ID().\\\" .media-left{ background:url(\\\".$url.\\\"); background-size:cover; background-position:center center;}\\\";\\n\\nif ('people' == get_post_type() || $displaytype == \\\"medialist\\\" ) {\\n\\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/media-list.php';\\n\\t\\n} elseif($displaytype == \\\"medialistnoimage\\\" ) {\\n\\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/media-list-no-image.php';\\n\\n\\t\\n} elseif($displaytype == \\\"list\\\") { \\n\\n\\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/list.php';\\n\\n\\n}else {\\n\\trequire get_template_directory() . '/assets/inc/plugins/vc-intergration/modules/shortcode-templates/overlay-grid.php';\\n\\t\\t\\n}\\nendwhile;\\n\\t$output .= \\\"
    \\\";\\n\\n}\\nreturn $output;\\n}\",\n \"function endcore_socialbuttons_shortcode($atts, $content = null) {\\n if(is_admin()) {\\n return;\\n }\\n\\n\\tob_start();\\t\\n\\tget_template_part('parts/stuff/code', 'social');\\n\\t$output = ob_get_contents();\\n\\tob_end_clean();\\n\\treturn $output;\\n}\",\n \"function render_post_item( $post, $in_pool=false ) {\\n\\t\\t?>\\n\\t\\t
    ID; ?>\\\">\\n\\t\\t\\t
    \\n\\t\\t\\t\\t&#8722;+\\n\\t\\t\\t
    \\n\\n\\t\\t\\t
    \\n\\t\\t\\t\\tID, 'pr_advance_ui_thumb' ); ?>\\n\\t\\t\\t\\t
    ID ); ?>
    \\n\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\tlabels->singular_name ); ?>\\n\\t\\t\\t\\t\\t|\\n\\t\\t\\t\\t\\tpost_date); ?>\\n\\t\\t\\t\\t\\t|\\n\\t\\t\\t\\t\\t\\\" data-hide-text=\\\"\\\">Expand\\n\\t\\t\\t\\t
    \\n\\t\\t\\t
    \\n\\n\\t\\t\\t
    \\n\\t\\t\\t\\tID, 'post-thumbnail' ); ?>\\n\\t\\t\\t\\tpost_content ); ?>\\n\\t\\t\\t
    \\n\\t\\t\\t\\n\\t\\t
    \\n\\t\\tget_settings_for_display();\\n ?>\\n\\t\\t
    \\n\\t\\t\\t\\t\\n\\t\\t
    \\n\\t\\t\\n\\n\\t\\t
    \\n\\t\\t\\t 4,\\n\\t\\t\\t\\t'offset'=> 0,\\n\\t\\t\\t\\t'post_type' => 'wsuwp_uc_publication',\\n\\t\\t\\t\\t'tax_query' => array(\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'taxonomy' => 'category',\\n\\t\\t\\t\\t\\t\\t'field' => 'slug',\\n\\t\\t\\t\\t\\t\\t'terms' => 'structural-engineering-publications'\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t);\\n\\n\\t\\t\\t$my_posts = new WP_Query( $args );\\n\\n\\t\\t\\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t

    \\\">

    \\n\\t\\t\\t\\n\\n\\t\\t
    \\n\\n\\t\\t\\n
    \\\">\\n ID);\\n $path = '/wp-content/plugins/elementor-custom-widgets/';\\n $settings = $this->get_settings_for_display();\\n $this->add_inline_editing_attributes('paragraphText', 'none');\\n\\n $pageList = get_pages(\\\"child_of=\\\".$post->post_parent.\\\"&parent=\\\".$post->post_parent.\\\"&sort_column=menu_order&sort_order=asc\\\");\\n ?>\\n\\n
    \\n
    \\n
    \\n
    \\n\\n \\n\\n
    \\n
    \\n
    \\n post_author);\\n $avatar = get_avatar($page->post_author);\\n echo $avatar;\\n ?>\\n
    \\n
    \\n
    \\n \\\">@\\n
    \\n
    \\n\\n
    \\n \\n
    \\n
    \\n\\n
    \\n
    \\n ID, 'large'); ?>\\\">\\n

    Source

    \\n
    \\n
    \\n\\n
    \\n
    \\n post_date;\\n $unixTimestamp = strtotime($date);\\n $dayOfWeek = date(\\\"l\\\", $unixTimestamp);\\n ?>\\n

    PUBLISHED\\n ID);\\n echo ' / '.get_post_time('i:h A T', true, $page->ID);\\n ?>

    \\n
    \\n
    \\n
    \\n
    \\n

    \\n
    \\n
    \\n
    \\n\\n ID;\\n }\\n $randPageIndex = array_rand($pages, 1);\\n $randPage = $pages[$randPageIndex];\\n $marker = true;\\n $count = count($pages);\\n\\n if ($randPage === $post->ID && $count > 1) {\\n while ($marker) {\\n $randPageIndex = array_rand($pages, 1);\\n $randPage = $pages[$randPageIndex];\\n if ($randPage !== $post->ID) {\\n $marker = false;\\n }\\n }\\n }\\n if ($count > 1) { ?>\\n
    \\n
    \\\">\\n
    \\n \\n
    \\n \\n\\n \\n\\n ID, 'tags', true);\\n $allTags = explode(', ', $tags);\\n $lastElement = end($allTags);\\n ?>\\n
    TAGS:\\n \\n \\n \\\">\\n \\n \\\">\\n \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n\\n\\n ID, $pages, false);\\n $prevID = $pages[$current - 1];\\n $nextID = $pages[$current + 1];\\n\\n ?>\\n
    \\n
    \\n
    Previous Post
    \\n \\\">\\n
    \\n
    \\n
    Next Post
    \\n \\\">\\n
    \\n
    \\n\\n\\n \\n
    \\n
    \\n
    \\n

    \\n Get our newsletter in your inbox Monday through Friday.\\n

    \\n
    \\n
    \\n
    \\n \\n \\n \\n
    \\n
    \\n
    \\n
    \\n\\n
    \\n
    \\n
    \\n

    Watch This

    \\n
    \\n \\n
    \\n \\n assets/icons/play.svg\\\">\\n \\n

    post_title; ?>

    \\n
    \\n
    \\n
    \\n \\n\\n
    \\n
    \\n 'Tab' );\\n\\t\\textract( shortcode_atts( $defaults, $atts ) );\\n\\t\\t//MAKE TAB ID MATCH THE CONTENT TAB ID\\n\\t\\treturn '
    '. do_shortcode( $content ) .'
    ';\\n\\t}\",\n \"function hybrid_entry_meta() {\\n\\n\\t$meta = '';\\n\\n\\tif ( 'post' == get_post_type() )\\n\\t\\t$meta = '

    ' . __( '[entry-terms taxonomy=\\\"category\\\" before=\\\"Posted in \\\"] [entry-terms taxonomy=\\\"post_tag\\\" before=\\\"| Tagged \\\"] [entry-comments-link before=\\\"| \\\"]', 'hybrid' ) . '

    ';\\n\\n\\telseif ( is_page() && current_user_can( 'edit_page', get_the_ID() ) )\\n\\t\\t$meta = '

    [entry-edit-link]

    ';\\n\\n\\techo apply_atomic_shortcode( 'entry_meta', $meta );\\n}\",\n \"function segments_demo_actions() { \\n echo get_template_part( 'templates/content', 'dashboard-action' );\\n}\",\n \"function oet_featured_content_block_display($attributes, $ajax = false){\\n $html = \\\"\\\";\\n $shortcodeText = \\\"\\\";\\n if (!empty($attributes)) {\\n extract($attributes);\\n \\n if (!$ajax)\\n $html = '';\\n }\\n return $html;\\n}\",\n \"function mt_shortcode_portfolio_customer_support_single($params, $content) {\\n extract( shortcode_atts( \\n array(\\n 'order_element1' =>'',\\n 'animation' =>'',\\n ), $params ) );\\n\\n $html = ''; \\n\\n $active = '';\\n if($order_element1 == 1) {\\n $html .= '
    ';\\n $active = 'in active';\\n }\\n\\tglobal $post;\\n\\t\\n\\t$post_id = $post->ID;\\n\\t\\n\\t\\n\\t\\n $html .= '
    ';\\n \\n\\t if(!empty(tikidocs('support_section'))) {\\n $html .= '
    ';\\n // $html .= tikidocs('support_section');\\n\\t\\t $html .= get_field(\\\"screenshots\\\",$post_id);\\n\\t\\t $html .= '
    ';\\n }\\n $html .= '
    ';\\n if($order_element1 == 2) {\\n $html .= '
    ';\\n }\\n\\n return $html;\\n}\",\n \"public function getPostContent($atts = []){\\n $atts = array_change_key_case((array)$atts, CASE_LOWER);\\n \\n // override default attributes with user attributes\\n $atts = shortcode_atts([\\n 'taxo' => null,\\n ], $atts);\\n\\n global $postid;\\n $postid = get_the_ID();\\n\\n // get json data from db\\n $databaseQuery = new DatabaseAPI();\\n $data = $databaseQuery->getJsonBomb($postid, $atts['taxo'])->json;\\n\\n // send the data as an object to front end\\n wp_localize_script(\\n 'rdJsCore',\\n 'rdJson',\\n $data\\n );\\n\\n // plugin structure\\n $rdNodeContent = <<\\n
    \\n \\n
    \\n
    \\n
    \\n \\n \\n \\n
    \\n
    \\n
    \\n
    \\n \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n \\n
    \\n \\n
    \\n
    \\n
    \\n \\n
    \\n \\n
    \\n\\nEOT;\\n\\n ob_start();\\n echo $rdNodeContent;\\n\\n if ( post_password_required($postid) ) {\\n return;\\n }\\n\\n // gather comments for a specific page/post \\n $comments = get_comments(array(\\n 'post_id' => $postid,\\n 'status' => 'approve' // type of comments to be displayed\\n ));\\n\\n $comment_count = count($comments);\\n\\n echo '
    ';\\n\\n // comment form\\n echo <<\\n
    \\n\\n
    Comment
    \\n
    \\n
    Topics
    \\n
      \\n
    \\n
    \\n \\n \\n

    \\n \\nEOT;\\n echo '';\\n echo '';\\n echo '

    ';\\n\\n\\n if ($comment_count > 0) {\\n echo '
      ';\\n // Display the list of comments via template function\\n wp_list_comments(array(\\n 'per_page' => 10,\\n 'reverse_top_level' => false,\\n 'type' => 'comment',\\n 'callback' => array($this,'format_comment')\\n ), $comments);\\n echo '
    ';\\n\\n echo '('.($comment_count - 1).') Comment Toggle';\\n\\n // If comments are closed and there are comments\\n if ( ! comments_open($postid) && get_comments_number($postid) && post_type_supports( get_post_type($postid), 'comments' ) ) {\\n echo '

    Comments are closed

    ';\\n }\\n }\\n\\n // end of comment area\\n echo '
    ';\\n return ob_get_clean();\\n }\",\n \"function pm_portfolio_shortcode( $atts, $content = null) {\\n\\textract(shortcode_atts(array(\\n\\t\\t\\t'number_of_portfolio'\\t=> '',\\n\\t\\t\\t'class'\\t=> '',\\n\\t), $atts));\\n\\n\\t$result = '';\\n\\n\\tob_start(); \\n\\n\\t// Assigning a master css class and hooking into KC\\n\\t$master_class = apply_filters( 'kc-el-class', $atts );\\n\\t$master_class[] = 'pm_portfolio';\\n\\n\\t// Retrieving user define classes\\n\\t$classes = array( 'row items' );\\n\\t(!empty($class)) ? $classes[] = $class : ''; ?>\\n\\n\\t\\t
    \\\">\\n\\t\\t\\t
    \\\">\\n\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t\\t 'portfolio',\\n\\t\\t\\t\\t\\t\\t\\t'orderby'\\t\\t\\t=> 'date',\\n\\t\\t\\t\\t\\t\\t\\t'order'\\t\\t\\t\\t=> 'DESC',\\n\\t\\t\\t\\t\\t\\t\\t'posts_per_page'\\t=> $number_of_portfolio\\n\\t\\t\\t\\t\\t\\t\\t);\\n\\t\\t\\t\\t\\t\\t$data = new WP_Query( $args );\\n\\t\\t\\t\\t\\t\\t//Check post\\n\\t\\t\\t\\t\\t\\tif( $data->have_posts() ) :\\n\\t\\t\\t\\t\\t\\t\\t//startloop here..\\n\\t\\t\\t\\t\\t\\t\\twhile( $data->have_posts() ) : $data->the_post();\\n\\n\\t\\t\\t\\t\\t\\t\\t$term_list = wp_get_post_terms( get_the_ID(), 'field' ); \\n\\t\\t\\t\\t\\t\\t\\tglobal $post;\\n\\t\\t\\t\\t $image = wp_prepare_attachment_for_js( get_post_thumbnail_id( $post->ID ) );\\n\\t\\t\\t\\t $image_alt = ( !empty( $image['alt'] ) ) ? 'alt=\\\"' . esc_attr( $image['alt'] ) . '\\\"' : 'alt=\\\"' .get_the_title() . '\\\"';\\n\\n\\t\\t\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t
    \\n\\t\\t\\t\\t
    \\n\\t\\t\\t
    \\n\\t\\t
    \\n\\n\\t _x( 'Ferramentas', 'Post Type General Name', 'text_domain' ),\\n 'singular_name' => _x( 'ferramenta', 'Post Type Singular Name', 'text_domain' ),\\n 'menu_name' => __( 'Ferramenta', 'text_domain' ),\\n 'name_admin_bar' => __( 'Post Type', 'text_domain' ),\\n 'archives' => __( 'Item Archives', 'text_domain' ),\\n 'attributes' => __( 'Item Attributes', 'text_domain' ),\\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\\n 'all_items' => __( 'todas as ferramentas', 'text_domain' ),\\n 'add_new_item' => __( 'Add novaferramenta', 'text_domain' ),\\n 'add_new' => __( 'nova ferramenta', 'text_domain' ),\\n 'new_item' => __( 'nova ferramenta', 'text_domain' ),\\n 'edit_item' => __( 'Edit Item', 'text_domain' ),\\n 'update_item' => __( 'Update Item', 'text_domain' ),\\n 'view_item' => __( 'View Item', 'text_domain' ),\\n 'view_items' => __( 'View Items', 'text_domain' ),\\n 'search_items' => __( 'Search Item', 'text_domain' ),\\n 'not_found' => __( 'não encontrado', 'text_domain' ),\\n 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\\n 'featured_image' => __( 'Featured Image', 'text_domain' ),\\n 'set_featured_image' => __( 'Set featured image', 'text_domain' ),\\n 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\\n 'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\\n 'insert_into_item' => __( 'Insert into item', 'text_domain' ),\\n 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\\n 'items_list' => __( 'Items list', 'text_domain' ),\\n 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\\n 'filter_items_list' => __( 'Filter items list', 'text_domain' ),\\n );\\n $args = array(\\n 'label' => __( 'ferramentas', 'text_domain' ),\\n 'description' => __( 'ferramentas', 'text_domain' ),\\n 'labels' => $labels,\\n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields'),\\n 'hierarchical' => false,\\n 'public' => true,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 5,\\n 'show_in_admin_bar' => true,\\n 'show_in_nav_menus' => true,\\n 'can_export' => true,\\n 'has_archive' => true,\\n 'exclude_from_search' => false,\\n 'publicly_queryable' => true,\\n 'capability_type' => 'page',\\n );\\n register_post_type( 'classTools_post_type', $args );\\n\\n}\",\n \"function RBTM_RelPost_display($content){\\n\\tif( is_single() && is_main_query() ) {\\n\\t $content .= RBTM_RelPost_baseline_html();\\n\\t}\\n\\treturn $content;\\n}\",\n \"function absolvution_post_meta() {\\n if ( get_post_type() == 'post' ) {\\n echo sprintf(\\n __( '
    Posted %s
    %s
    %s
    ', 'absolvution' ),\\n get_the_time( get_option( 'date_format' ) ),\\n get_the_category_list( ', ' ),\\n get_the_tag_list( __( '', 'absolvution' ), ', ' )\\n );\\n }\\n edit_post_link( __( ' (edit)', 'absolvution' ), '', '' );\\n}\",\n \"function echotheme_nivoslider_shortcode($atts)\\n{\\n\\tob_start();\\n\\tget_template_part('part', 'nivo-slider');\\n\\treturn ob_get_clean();\\n}\",\n \"function cpt_sedes() {\\n \\n $labels = array(\\n 'name' => _x( 'sedes', 'Post Type General Name', 'text_domain' ),\\n 'singular_name' => _x( 'sede', 'Post Type Singular Name', 'text_domain' ),\\n 'menu_name' => __( 'Sedes', 'text_domain' ),\\n 'name_admin_bar' => __( 'Sedes', 'text_domain' ),\\n 'archives' => __( 'Archivo de Sedes', 'text_domain' ),\\n 'attributes' => __( 'Atributos de sede', 'text_domain' ),\\n 'parent_item_colon' => __( 'Sede padre', 'text_domain' ),\\n 'all_items' => __( 'Todas las Sedes', 'text_domain' ),\\n 'add_new_item' => __( 'Añadir nueva Sede', 'text_domain' ),\\n 'add_new' => __( 'Añadir Sede', 'text_domain' ),\\n 'new_item' => __( 'Nueva Sede', 'text_domain' ),\\n 'edit_item' => __( 'Editar Sede', 'text_domain' ),\\n 'update_item' => __( 'Actualizar Sede', 'text_domain' ),\\n 'view_item' => __( 'Ver Sede', 'text_domain' ),\\n 'view_items' => __( 'Ver Sedes', 'text_domain' ),\\n 'search_items' => __( 'Buscar Sedes', 'text_domain' ),\\n 'not_found' => __( 'No Encontrado', 'text_domain' ),\\n 'not_found_in_trash' => __( 'No encontrado en papelera', 'text_domain' ),\\n 'featured_image' => __( 'Imagen Destacada', 'text_domain' ),\\n 'set_featured_image' => __( 'Configurar Imagen Destacada', 'text_domain' ),\\n 'remove_featured_image' => __( 'Remover Imagen Destacada', 'text_domain' ),\\n 'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),\\n 'insert_into_item' => __( 'Intertar en la Sede', 'text_domain' ),\\n 'uploaded_to_this_item' => __( 'Actualizar en esta sede', 'text_domain' ),\\n 'items_list' => __( 'Listado de Sedes', 'text_domain' ),\\n 'items_list_navigation' => __( 'Lista Navegable de Sedes', 'text_domain' ),\\n 'filter_items_list' => __( 'Filtro de lista de Sedes', 'text_domain' ),\\n );\\n $args = array(\\n 'label' => __( 'sede', 'text_domain' ),\\n 'description' => __( 'Diferentes sedes con la que cuenta m&q', 'text_domain' ),\\n 'labels' => $labels,\\n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ),\\n 'taxonomies' => array( 'category', 'post_tag' ),\\n 'hierarchical' => false,\\n 'public' => true,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 5,\\n 'menu_icon' => 'dashicons-store',\\n 'show_in_admin_bar' => true,\\n 'show_in_nav_menus' => true,\\n 'can_export' => true,\\n 'has_archive' => true,\\n 'exclude_from_search' => false,\\n 'publicly_queryable' => true,\\n 'capability_type' => 'page',\\n // genera el editor de codigo gutember\\n 'show_in_rest' => true,\\n\\n );\\n register_post_type( 'sedes', $args );\\n \\n }\",\n \"function placeholder_shortcode($attr) {\\n $post = get_post();\\n\\n static $index = 0;\\n static $component_cache = null;\\n\\n\\n if($component_cache === null) {\\n $component_cache = array();\\n $story_content = get_field('story_content', $post->ID);\\n\\n if($story_content !== false) {\\n foreach($story_content as $content) {\\n $layout = $content['acf_fc_layout'];\\n $component = array('type' => $layout);\\n $fun = 'component_' . $layout;\\n\\n if(function_exists($fun)) {\\n $component = call_user_func($fun, $content, $component);\\n }\\n\\n $component_cache[] = $component;\\n }\\n }\\n }\\n\\n $context = array();\\n\\n if($index < count($component_cache)) {\\n $component = $component_cache[$index];\\n if($component) {\\n $context = $component;\\n }\\n $template = array('component-' . $component['type'] .'.twig', 'empty.twig');\\n }\\n else {\\n $template = is_user_logged_in() ? 'component-extraneous.twig' : 'empty.twig';\\n }\\n\\n // do not echo:\\n ob_start();\\n $output = Timber::render($template, $context);\\n ob_end_clean();\\n\\n $index++;\\n\\n return $output;\\n\\n}\",\n \"function kstHelpWordpressBlogPosts_excerptsAndMoreTeasers() {\\n ?>\\n

    \\n Your theme uses the excerpt field as well as the &lt;--more--&gt; tag giving\\n you many options for formatting your blog index. Many themes use either the\\n excerpt or the &lt;--more--&gt; tag to control what content appears on your\\n blog index.\\n

    \\n

    \\n Posts are displayed on the index in one of these formats (and order shown):\\n

    \\n
      \\n
    1. Title and excerpt (if you type anything in the excerpt field)
    2. \\n
    3. Title and the post up to the &lt;--more--&gt; (if you insert &lt;--more--&gt; in the post)
    4. \\n
    5. Title and the entire post (if you do not enter an excerpt or the &lt;--more--&gt; tag)
    6. \\n
    \\n

    i.e. If you enter an excerpt and include a &lt;--more--&gt; tag only the excerpt will display

    \\n

    \\n How to use the \\\"more\\\" tag:\\n

    \\n

    \\n In \\\"Visual\\\" mode:
    \\n Place the cursor after the content you would like to appear on the blog index for that post.\\n Click the button above the post editor that looks like\\n a rectangle cut in two pieces (a small rectangle on top and a longer rectangle on the button).\\n A line that says \\\"more\\\" will appear.\\n

    \\n

    \\n In \\\"html\\\" mode:
    \\n Place the cursor after the content you would like to appear on the blog index for that post.\\n Type &lt;--more--&gt; on it's own line.\\n

    \\n

    \\n Note: You may also customize the \\\"more\\\" link text that is shown per post (only possible using \\\"html\\\" mode).
    \\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Simply type the text to use after \\\"more\\\" e.g. &lt;--more But wait, there's more! --&gt;\\n

    \\n _x( 'Partner Stories', 'Post Type General Name', 'text_domain' ),\\n\\t\\t'singular_name' => _x( 'Partner Story', 'Post Type Singular Name', 'text_domain' ),\\n\\t\\t'menu_name' => __( 'Partner Stories', 'text_domain' ),\\n\\t\\t'name_admin_bar' => __( 'Partner Story', 'text_domain' ),\\n\\t\\t'archives' => __( 'Item Archives', 'text_domain' ),\\n\\t\\t'attributes' => __( 'Item Attributes', 'text_domain' ),\\n\\t\\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\\n\\t\\t'all_items' => __( 'All Items', 'text_domain' ),\\n\\t\\t'add_new_item' => __( 'Add New Item', 'text_domain' ),\\n\\t\\t'add_new' => __( 'Add New', 'text_domain' ),\\n\\t\\t'new_item' => __( 'New Item', 'text_domain' ),\\n\\t\\t'edit_item' => __( 'Edit Item', 'text_domain' ),\\n\\t\\t'update_item' => __( 'Update Item', 'text_domain' ),\\n\\t\\t'view_item' => __( 'View Item', 'text_domain' ),\\n\\t\\t'view_items' => __( 'View Items', 'text_domain' ),\\n\\t\\t'search_items' => __( 'Search Item', 'text_domain' ),\\n\\t\\t'not_found' => __( 'Not found', 'text_domain' ),\\n\\t\\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\\n\\t\\t'featured_image' => __( 'Featured Image', 'text_domain' ),\\n\\t\\t'set_featured_image' => __( 'Set featured image', 'text_domain' ),\\n\\t\\t'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\\n\\t\\t'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\\n\\t\\t'insert_into_item' => __( 'Insert into item', 'text_domain' ),\\n\\t\\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\\n\\t\\t'items_list' => __( 'Items list', 'text_domain' ),\\n\\t\\t'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\\n\\t\\t'filter_items_list' => __( 'Filter items list', 'text_domain' ),\\n\\t);\\n\\t$args = array(\\n\\t\\t'label' => __( 'Partner Story', 'text_domain' ),\\n\\t\\t'description' => __( 'Strategic Partner Features', 'text_domain' ),\\n\\t\\t'labels' => $labels,\\n\\t\\t'supports' => array( 'title', 'editor', 'thumbnail' ),\\n\\t\\t'taxonomies' => array( 'category', 'post_tag' ),\\n\\t\\t'hierarchical' => false,\\n\\t\\t'public' => true,\\n\\t\\t'show_ui' => true,\\n\\t\\t'show_in_menu' => true,\\n\\t\\t'menu_position' => 5,\\n\\t\\t'menu_icon' => 'dashicons-id-alt',\\n\\t\\t'show_in_admin_bar' => true,\\n\\t\\t'show_in_nav_menus' => true,\\n\\t\\t'can_export' => true,\\n\\t\\t'has_archive' => true,\\n\\t\\t'exclude_from_search' => false,\\n\\t\\t'publicly_queryable' => true,\\n\\t\\t'capability_type' => 'page',\\n\\t);\\n\\tregister_post_type( 'partner_stories', $args );\\n\\n}\",\n \"function omfg_mobile_pro_pagecontent () {\\n\\n\\tglobal $post, $wp_query;\\n\\t\\n\\t// Post ID\\n\\t$postid = $wp_query->post->ID;\\n\\t$page_content = get_post_meta($postid, '_omfg_page_content', true);\\n\\t$page_content = do_shortcode($page_content);\\n\\t$page_content = wpautop($page_content, 1);\\n\\t\\n\\techo $page_content;\\n\\n}\",\n \"function chapel_hour_post_type() {\\n\\n $labels = array(\\n 'name' => 'Chapel Hour Episodes',\\n 'singular_name' => 'Chapel Hour Episode',\\n 'menu_name' => 'Chapel Hour Episodes',\\n 'name_admin_bar' => 'Chapel Hour Episode',\\n 'archives' => 'Chapel Hour Archives',\\n 'parent_item_colon' => 'Parent Chapel Hour Episode:',\\n 'all_items' => 'All Chapel Hour Episodes',\\n 'add_new_item' => 'Add New Chapel Hour Episode',\\n 'add_new' => 'Add New',\\n 'new_item' => 'New Chapel Hour Episode',\\n 'edit_item' => 'Edit Chapel Hour Episode',\\n 'update_item' => 'Update Chapel Hour Episode',\\n 'view_item' => 'View Chapel Hour Episode',\\n 'search_items' => 'Search Chapel Hour Episode',\\n 'not_found' => 'Not found',\\n 'not_found_in_trash' => 'Not found in Trash',\\n 'featured_image' => 'Featured Image',\\n 'set_featured_image' => 'Set featured image',\\n 'remove_featured_image' => 'Remove featured image',\\n 'use_featured_image' => 'Use as featured image',\\n 'insert_into_item' => 'Insert into Chapel Hour Episode',\\n 'uploaded_to_this_item' => 'Uploaded to this Chapel Hour Episode',\\n 'items_list' => 'Chapel Hour Episodes list',\\n 'items_list_navigation' => 'Chapel Hour Episodes list navigation',\\n 'filter_items_list' => 'Filter Chapel Hour Episodes list',\\n );\\n $rewrite = array(\\n 'slug' => 'resources/chapel-hour-weekly-radio-broadcast/all',\\n 'with_front' => true,\\n 'pages' => true,\\n 'feeds' => true,\\n );\\n $args = array(\\n 'label' => 'Chapel Hour Episode',\\n 'description' => 'Chapel Hour Episodes',\\n 'labels' => $labels,\\n 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', ),\\n 'taxonomies' => array(),\\n 'hierarchical' => true,\\n 'public' => true,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 30,\\n 'menu_icon' => 'dashicons-clock',\\n 'show_in_admin_bar' => true,\\n 'show_in_nav_menus' => true,\\n 'can_export' => true,\\n 'has_archive' => 'resources/chapel-hour-weekly-radio-broadcast/all',\\n 'exclude_from_search' => false,\\n 'publicly_queryable' => true,\\n 'rewrite' => $rewrite,\\n 'capability_type' => 'page',\\n );\\n register_post_type( 'chapel_hour', $args );\\n\\n}\",\n \"function shortcode_posts( $atts ) {\\n\\t\\textract( shortcode_atts( array(\\n\\t\\t\\t'title' => '',\\n\\t\\t\\t'type' => 'latest',\\n\\t\\t\\t'style' => 'style1',\\n\\t\\t\\t'count' => 10,\\n\\t\\t\\t'count_per_row' => 4,\\n\\t\\t\\t'post_ids' => '',\\n\\t\\t\\t'slide' => 'true',\\n\\t\\t\\t'before_list' => '',\\n\\t\\t\\t'after_list' => '',\\n\\t\\t\\t'before_item' => '',\\n\\t\\t\\t'after_item' => '',\\n\\t\\t\\t'animation_type' => '',\\n\\t\\t\\t'animation_duration' => '',\\n\\t\\t\\t'animation_delay' => '',\\n\\t\\t), $atts) );\\n\\n\\t\\tif ( $slide == 'no' || $slide == 'false' ) { $slide = 'false'; }\\n\\t\\t$styles = array( 'style1', 'style2', 'style3', 'style4' );\\n\\t\\t$types = array( 'latest', 'popular', 'selected' );\\n\\t\\tif ( ! in_array( $style, $styles ) ) $style = 'style1';\\n\\t\\tif ( ! in_array( $type, $types ) ) $type = 'latest';\\n\\t\\t$post_ids = explode( ',', $post_ids );\\n\\t\\t$count = is_numeric( $count )?$count:10;\\n\\t\\t$count_per_row = is_numeric( $count_per_row )?$count_per_row:4;\\n\\n\\t\\t$def_before_list = '';\\n\\t\\t$def_after_list = '';\\n\\t\\t$def_before_item = '';\\n\\t\\t$def_after_item = '';\\n\\n\\t\\tif ( $style == 'style3' ) {\\n\\t\\t\\t$def_before_list = '
    ';\\n\\t\\t\\t$def_after_list = '
    ';\\n\\t\\t} else {\\n\\t\\t\\tif ( $slide == 'false' ) {\\n\\t\\t\\t\\t$def_before_list = '
    ';\\n\\t\\t\\t\\t$def_after_list = '
    ';\\n\\t\\t\\t\\tif ( ( 2 == $count_per_row ) ) {\\n\\t\\t\\t\\t\\t$def_before_list = '
    ';\\n\\t\\t\\t\\t\\t$def_before_item = \\\"
    \\\";\\n\\t\\t\\t\\t\\t$def_after_item = \\\"
    \\\";\\n\\t\\t\\t\\t} elseif ( 3 == $count_per_row ) {\\n\\t\\t\\t\\t\\t$def_before_list = '
    ';\\n\\t\\t\\t\\t\\t$def_before_item = \\\"
    \\\";\\n\\t\\t\\t\\t\\t$def_after_item = \\\"
    \\\";\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$def_before_list = '
    ';\\n\\t\\t\\t\\t\\t$def_before_item = \\\"
    \\\";\\n\\t\\t\\t\\t\\t$def_after_item = \\\"
    \\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t$def_before_list = '
      ';\\n\\t\\t\\t\\t$def_after_list = '
    ';\\n\\t\\t\\t\\t$def_before_item = '
  • ';\\n\\t\\t\\t\\t$def_after_item = '
  • ';\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif ( empty( $before_list ) ) $before_list = $def_before_list;\\n\\t\\tif ( empty( $after_list ) ) $after_list = $def_after_list;\\n\\t\\tif ( empty( $before_item ) ) $before_item = $def_before_item;\\n\\t\\tif ( empty( $after_item ) ) $after_item = $def_after_item;\\n\\n\\t\\t$posts = array();\\n\\t\\tif ( $type == 'selected' ) {\\n\\t\\t\\tif ( is_array( $post_ids ) ) {\\n\\t\\t\\t\\tforeach( $post_ids as $post_id ) {\\n\\t\\t\\t\\t\\t$post = get_post( $post_id );\\n\\t\\t\\t\\t\\tif ( ! empty( $post ) && ! is_wp_error( $post ) ) {\\n\\t\\t\\t\\t\\t\\t$posts[] = $post;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} elseif ( $type == 'latest' ) {\\n\\t\\t\\t$args = array(\\n\\t\\t\\t\\t'posts_per_page' => $count,\\n\\t\\t\\t\\t'orderby' => 'post_date',\\n\\t\\t\\t\\t'order' => 'DESC',\\n\\t\\t\\t\\t'suppress_filters' => 0,\\n\\t\\t\\t\\t'post_status' => 'publish',\\n\\t\\t\\t);\\n\\t\\t\\t$posts = get_posts( $args );\\n\\t\\t} elseif ( $type == 'popular' ) {\\n\\t\\t\\t$posts = get_posts('posts_per_page=' . $count . '&meta_key=trav_count_post_views&orderby=meta_value_num&order=DESC&suppress_filters=0&post_status=publish');\\n\\t\\t}\\n\\n\\t\\tob_start();\\n\\t\\tif ( ! empty( $title ) ) { echo '

    ' . esc_html( $title ) . '

    '; }\\n\\t\\techo ( $before_list );\\n\\t\\t$i = 0;\\n\\t\\tforeach ( $posts as $post ) {\\n\\t\\t\\t$animation = '';\\n\\t\\t\\tif ( ! empty( $animation_type ) ) { $animation .= ' class=\\\"animated\\\" data-animation-type=\\\"' . esc_attr( $animation_type ) . '\\\" data-animation-duration=\\\"' . esc_attr( $animation_duration ) . '\\\" data-animation-delay=\\\"' . esc_attr( $animation_delay * $i ) . '\\\" '; }\\n\\t\\t\\ttrav_get_post_list_sigle( $post->ID, $style, $before_item, $after_item, $animation );\\n\\t\\t\\t$i++;\\n\\t\\t}\\n\\t\\techo ( $after_list );\\n\\n\\t\\t$output = ob_get_contents();\\n\\t\\tob_end_clean();\\n\\t\\treturn $output;\\n\\t}\",\n \"function display_metaslider_by_slug() {\\n\\tif ( is_front_page() ) {\\n\\t\\techo do_shortcode(\\\"[metaslider id=front-page]\\\");\\n\\t}\\n\\telseif ( is_page() ) {\\n\\t\\techo do_shortcode(\\\"[metaslider id=page]\\\");\\n\\t}\\n\\telse {\\n\\t\\techo do_shortcode(\\\"[metaslider id=default]\\\");\\n\\t}\\n}\",\n \"function showpics_func($atts, $content = null) { ?>\\n\\t\\t '',\\n\\t\\t\\t\\t\\\"order\\\" => 'ASC',\\n\\t\\t\\t\\t\\\"orderby\\\" => 'menu_order'\\n ), $atts));\\n global $post;\\n $lrgpics = get_children('numberposts=-1&order='.$order.'&orderby='.$orderby.'&post_type=attachment&post_mime_type=image&post_parent='.$post->ID);\\n\\t\\t$return='';\\n foreach($lrgpics as $lrgpic) :\\n\\t\\t\\tif (strtoupper($lrgpic->post_name) != strtoupper($lrgpic->post_title)) { // If the picture hasn't been given a new name, it won't show up.\\n\\t\\t\\t$image = wp_get_attachment_image_src($lrgpic->ID, 'full'); \\n\\t\\t\\t$lrgimage = wp_get_attachment_image_src($lrgpic->ID, 'large');\\n\\t\\t\\t$imgwidth = $lrgimage[1] + 10;\\n\\t\\t\\t$theimage = wp_get_attachment_image($lrgpic->ID, 'large');\\n\\t $return.='
    ID.'\\\" class=\\\"wp-caption alignnone\\\">'.$theimage.'';\\n\\t\\t\\t\\tif($lrgpic->post_content) {\\n\\t\\t\\t\\t\\t$return.='

    '.$lrgpic->post_content.'

    ';\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$return.='

    '.$lrgpic->post_title.'

    ';\\n\\t\\t\\t\\t}\\n\\t\\t\\t// if title has been given, show title, if description has been given, show description\\n\\t\\t\\t// if no title has been given, just show the image\\n \\t} else { \\n\\t\\t\\t$image = wp_get_attachment_image_src($lrgpic->ID, 'full'); \\n\\t\\t\\t$theimage = wp_get_attachment_image($lrgpic->ID, 'large');\\n\\t $return.='

    '.$theimage.'

    ';\\n\\t\\t\\t} // end check to see if title has been given\\n\\t\\tendforeach;\\n return $return;\\n}\",\n \"function fcc_norad_podcast_single_post_content( $content ) {\\n\\tif ( is_singular( 'podcasts' ) && ! is_admin() ) {\\n\\t\\t$id = $GLOBALS['post']->ID;\\n\\t\\t$content = '';\\n\\n\\t\\t# POST META\\n\\t\\t$segment_1_title = get_post_meta( $id, 'segment_1_title', true );\\n\\t\\t$segment_2_title = get_post_meta( $id, 'segment_2_title', true );\\n\\t\\t$segment_3_title = get_post_meta( $id, 'segment_3_title', true );\\n\\n\\t\\t$segment_1_description = get_post_meta( $id, 'segment_1_description', true );\\n\\t\\t$segment_2_description = get_post_meta( $id, 'segment_2_description', true );\\n\\t\\t$segment_3_description = get_post_meta( $id, 'segment_3_description', true );\\n\\n\\t\\t$segment_1_link = get_post_meta( $id, 'segment_1_link', true );\\n\\t\\t$segment_2_link = get_post_meta( $id, 'segment_2_link', true );\\n\\t\\t$segment_3_link = get_post_meta( $id, 'segment_3_link', true );\\n\\n\\t\\t# Segment 1\\n\\t\\tif ( $segment_1_link ) {\\n\\t\\t\\t$segment_1_title_link .= '' . $segment_1_title . ' &ndash; ';\\n\\t\\t} else {\\n\\t\\t\\t$segment_1_title_link = '';\\n\\t\\t}\\n\\n\\t\\t# Segment 2\\n\\t\\tif ( $segment_2_link ) {\\n\\t\\t\\t$segment_2_title_link .= '' . $segment_2_title . ' &ndash; ';\\n\\t\\t} else {\\n\\t\\t\\t$segment_2_title_link = '';\\n\\t\\t}\\n\\n\\t\\t# Segment 3\\n\\t\\tif ( $segment_3_link ) {\\n\\t\\t\\t$segment_3_title_link .= '' . $segment_3_title . ' &ndash; ';\\n\\t\\t} else {\\n\\t\\t\\t$segment_3_title_link = '';\\n\\t\\t}\\n\\n\\t\\t# The Content *****/\\n\\t\\t$content .= '
      ';\\n\\t\\t$content .= '
    • ' . $segment_1_title_link . $segment_1_description . '
    • ';\\n\\t\\t$content .= '
    • ' . $segment_2_title_link . $segment_2_description . '
    • ';\\n\\t\\t$content .= '
    • ' . $segment_3_title_link . $segment_3_description . '
    • ';\\n\\t\\t$content .= '
    ';\\n\\t}\\n\\treturn $content;\\n}\",\n \"public function wmel_pub_display() {\\n\\t\\t// Build the output to return for use by the shortcode.\\n\\t\\tob_start();\\n\\t\\t?>\\n\\n\\t\\t
    \\n\\t\\t\\t 4,\\n\\t\\t\\t\\t'offset'=> 0,\\n\\t\\t\\t\\t'post_type' => 'wsuwp_uc_publication',\\n\\t\\t\\t\\t'tax_query' => array(\\n\\t\\t\\t\\t\\tarray(\\n\\t\\t\\t\\t\\t\\t'taxonomy' => 'category',\\n\\t\\t\\t\\t\\t\\t'field' => 'slug',\\n\\t\\t\\t\\t\\t\\t'terms' => 'wmel-publications'\\n\\t\\t\\t\\t\\t),\\n\\t\\t\\t\\t),\\n\\t\\t\\t);\\n\\n\\t\\t\\t$my_posts = new WP_Query( $args );\\n\\n\\t\\t\\tif ( $my_posts->have_posts() ) : while( $my_posts->have_posts() ) : $my_posts->the_post();\\n\\t\\t\\t\\t?>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t

    \\\">

    \\n\\t\\t\\t\\n\\n\\t\\t
    \\n\\n\\t\\t'testimonials',\\n 'numberposts' => '-1',\\n );\\n $testimonials = get_posts($args);\\n\\n $count=0;\\n foreach($testimonials as $post) : setup_postdata($post);\\n $count++;\\n\\n $output = '
    ';\\n $output .= '
    ' .get_the_title(). '
    ';\\n if($count == '3') { \\n \\t$output .= '
    '; \\n $count=0; \\n } \\n endforeach; \\n wp_reset_postdata();\\n\\n return $output;\\n }\",\n \"function acf_shortcode($atts)\\n{\\n}\",\n \"function itstar_projects_in_cat( $atts, $content = null ) {\\n global $wp_query;\\n $a = shortcode_atts( array(\\n 'cat' => '',\\n 'qty' => -1,\\n // ...etc\\n ), $atts );\\n\\n$projects = get_posts(array(\\n 'post_type' => 'project',\\n 'posts_per_page' => $a['qty'],\\n 'project_cat' => $a['cat'],\\n )\\n );\\n\\n \\n if(!empty($projects)){ ?>\\n \\n \\n get_settings_for_display();\\n\\n $posts = get_posts(\\n array(\\n 'post_type' => 'post',\\n 'numberposts' => $settings['posts'],\\n 'orderby' => 'date',\\n )\\n );\\n\\n include PLUGIN_DIR . '/templates/widgets/recent-posts.php';\\n }\",\n \"function howTo_post_type() {\\n\\n $labels = array(\\n 'name' => _x( 'Como Funciona', 'Post Type General Name', 'text_domain' ),\\n 'singular_name' => _x( 'Como Funciona', 'Post Type Singular Name', 'text_domain' ),\\n 'menu_name' => __( 'Como Funciona', 'text_domain' ),\\n 'name_admin_bar' => __( 'Post Type', 'text_domain' ),\\n 'archives' => __( 'Item Archives', 'text_domain' ),\\n 'attributes' => __( 'Item Attributes', 'text_domain' ),\\n 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\\n 'all_items' => __( 'todos os cards', 'text_domain' ),\\n 'add_new_item' => __( 'Add novo card', 'text_domain' ),\\n 'add_new' => __( 'novo card', 'text_domain' ),\\n 'new_item' => __( 'novo card', 'text_domain' ),\\n 'edit_item' => __( 'Edit Item', 'text_domain' ),\\n 'update_item' => __( 'Update Item', 'text_domain' ),\\n 'view_item' => __( 'View Item', 'text_domain' ),\\n 'view_items' => __( 'View Items', 'text_domain' ),\\n 'search_items' => __( 'Search Item', 'text_domain' ),\\n 'not_found' => __( 'não encontrato', 'text_domain' ),\\n 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\\n 'featured_image' => __( 'Featured Image', 'text_domain' ),\\n 'set_featured_image' => __( 'Set featured image', 'text_domain' ),\\n 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\\n 'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\\n 'insert_into_item' => __( 'Insert into item', 'text_domain' ),\\n 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\\n 'items_list' => __( 'Items list', 'text_domain' ),\\n 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\\n 'filter_items_list' => __( 'Filter items list', 'text_domain' ),\\n );\\n $args = array(\\n 'label' => __( 'Como Funciona', 'text_domain' ),\\n 'description' => __( 'Como Funciona', 'text_domain' ),\\n 'labels' => $labels,\\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\\n 'hierarchical' => false,\\n 'public' => true,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 5,\\n 'show_in_admin_bar' => true,\\n 'show_in_nav_menus' => true,\\n 'can_export' => true,\\n 'has_archive' => true,\\n 'exclude_from_search' => false,\\n 'publicly_queryable' => true,\\n 'capability_type' => 'page',\\n );\\n register_post_type( 'howTo_post_type', $args );\\n\\n}\",\n \"function simple_bootstrap_display_post_meta($short=true) {\\n?>\\n\\n
      \\n
    • \\n \\\">\\n \\n \\n \\n \\n
    • \\n
    • \\n \\\">\\n \\n \\n \\n \\n
    • \\n \\n
    • \\n ';\\n comments_popup_link($sp . __( 'Leave a comment', \\\"simple-bootstrap\\\"), $sp . __( '1 Comment', \\\"simple-bootstrap\\\"), $sp . __( '% Comments', \\\"simple-bootstrap\\\"));\\n ?>\\n
    • \\n \\n \\n\\n \\n \\n
    • \\n \\n \\n \\n
    • \\n \\n \\n \\n
    • \\n \\n \\n \\n
    • \\n \\n\\n ', ''); ?>\\n \\n
    \\n\\nloaded_modules[$this->basename] = $this->pluginPath;\\n\\t\\t\\t$cfct_build->module_paths[$this->basename] = $this->pluginPath;\\n\\t\\t\\t$cfct_build->module_urls[$this->basename] = $this->pluginUrl;\\n\\n\\t\\t\\t$text = do_shortcode($data[$this->get_field_id('content')]);\\n\\t\\t\\treturn $this->load_view($data, compact('text'));\\t\\t\\t\\n\\t\\t}\",\n \"function projects_shortcode($atts) \\n{\\n\\t//Options\\n extract(shortcode_atts(array(\\n 'limit' => '-1',\\n 'location' => '',\\n 'category' => '',\\n ), $atts));\\n\\n global $post;\\n \\n //Query Options\\n $args = array(\\n 'posts_per_page' => $limit, \\n 'orderby' => 'post_date',\\n 'post_type' => 'projects',\\n 'tax_query' => array(\\n 'relation' => 'OR',\\n array(\\n 'taxonomy' => 'location',\\n 'field' => 'slug',\\n 'terms' => array($location)\\n ),\\n array(\\n 'taxonomy' => 'category',\\n 'field' => 'slug',\\n 'terms' => array($category)\\n ),\\n ));\\n \\n //Query for projects \\n $get_projects = NEW WP_Query($args);\\n\\t\\n\\t//Wrapper\\n\\t$output .= '
    ';\\n\\t\\n\\t//Loop\\n while($get_projects->have_posts()) \\n {\\n $get_projects->the_post();\\n $img_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), \\\"full\\\");\\n\\t\\t$feat_img = $img_src[0];\\n \\n $output .= '
    ';\\n $output .= '

    '.get_the_title().'

    ';\\n $output .= '
    '.get_the_excerpt().'
    ';\\n $output .= '
    '.get_post_meta( $post->ID, 'Awards', true).'
    ';\\n $output .= '
    ';\\n };\\n \\n $output .= '
    ';\\n \\n //Important: Reset wp query\\n wp_reset_query();\\n \\n return $output;\\n}\",\n \"function et_excerpt_more($more) {\\n global $post;\\n return ';';\\n}\",\n \"function render_sc_myShortcode( $context ) {\\n\\tob_start();\\n\\t?>\\n
    Some:
    \\n
    Another:
    \\nhtheme_content->htheme_get_content_blog_split($atts);\\r\\n\\r\\n\\t\\t#RETURN DATA/HTML\\r\\n\\t\\treturn $htheme_data;\\r\\n\\r\\n\\t}\",\n \"function lp_show_frontend( $attr, $content='' ){\\r\\n\\t$attributes = shortcode_atts(array(\\r\\n\\t\\t\\t\\t\\t'post_id'\\t=> get_the_ID()\\r\\n\\t\\t\\t\\t),$attr);\\r\\n\\tglobal $wpdb;\\r\\n\\t$table_name = $wpdb->prefix.'like_post';\\r\\n\\t$id = $attributes['post_id'];\\r\\n\\t$cookie_like = 'lp_'.$id;\\r\\n\\tif(!isset($_COOKIE[$cookie_like])){\\r\\n\\t\\t$lp_like_text = 'Like';\\r\\n\\t}else{\\r\\n\\t\\t$lp_like_text = 'LIKED';\\r\\n\\t}\\r\\n\\t$selected_time = get_option('lp_showing_year');\\r\\n\\t$selected_date_time = date('Y-m-d', strtotime(\\\"-$selected_time days\\\"));\\r\\n\\t$like_time = date('Y-m-d',time());\\r\\n\\t$wpdb->show_errors( true );\\r\\n\\t$total_like = $wpdb->get_var(\\\"SELECT count(POST_ID) FROM $table_name WHERE POST_ID = $id AND STATUS = 1 AND LIKE_TIME BETWEEN '$selected_date_time' AND '$like_time' \\\");\\r\\n\\r\\n\\t$output = \\\"

    \\\";\\r\\n\\t$output .= \\\"\\\".$lp_like_text.\\\" \\\";\\r\\n\\t$output .= \\\"\\\".$total_like.\\\" Like\\\";\\r\\n\\t$output .= \\\"

    \\\";\\r\\n\\treturn $output;\\r\\n}\",\n \"function custom_post_portfolio() {\\n\\n $labels = array(\\n 'name' => _x( 'Proyectos', 'Post Type General Name', 'ohmarketingtravel' ),\\n 'singular_name' => _x( 'Proyecto', 'Post Type Singular Name', 'ohmarketingtravel' ),\\n 'menu_name' => __( 'Portafolio', 'ohmarketingtravel' ),\\n 'name_admin_bar' => __( 'Portafolio', 'ohmarketingtravel' ),\\n 'archives' => __( 'Item Archives', 'ohmarketingtravel' ),\\n 'attributes' => __( 'Item Attributes', 'ohmarketingtravel' ),\\n 'parent_item_colon' => __( 'Parent Item:', 'ohmarketingtravel' ),\\n 'all_items' => __( 'All Items', 'ohmarketingtravel' ),\\n 'add_new_item' => __( 'Add New Item', 'ohmarketingtravel' ),\\n 'add_new' => __( 'Add New', 'ohmarketingtravel' ),\\n 'new_item' => __( 'New Item', 'ohmarketingtravel' ),\\n 'edit_item' => __( 'Edit Item', 'ohmarketingtravel' ),\\n 'update_item' => __( 'Update Item', 'ohmarketingtravel' ),\\n 'view_item' => __( 'View Item', 'ohmarketingtravel' ),\\n 'view_items' => __( 'View Items', 'ohmarketingtravel' ),\\n 'search_items' => __( 'Search Item', 'ohmarketingtravel' ),\\n 'not_found' => __( 'Not found', 'ohmarketingtravel' ),\\n 'not_found_in_trash' => __( 'Not found in Trash', 'ohmarketingtravel' ),\\n 'featured_image' => __( 'Featured Image', 'ohmarketingtravel' ),\\n 'set_featured_image' => __( 'Set featured image', 'ohmarketingtravel' ),\\n 'remove_featured_image' => __( 'Remove featured image', 'ohmarketingtravel' ),\\n 'use_featured_image' => __( 'Use as featured image', 'ohmarketingtravel' ),\\n 'insert_into_item' => __( 'Insert into item', 'ohmarketingtravel' ),\\n 'uploaded_to_this_item' => __( 'Uploaded to this item', 'ohmarketingtravel' ),\\n 'items_list' => __( 'Items list', 'ohmarketingtravel' ),\\n 'items_list_navigation' => __( 'Items list navigation', 'ohmarketingtravel' ),\\n 'filter_items_list' => __( 'Filter items list', 'ohmarketingtravel' ),\\n );\\n $args = array(\\n 'label' => __( 'Proyecto', 'ohmarketingtravel' ),\\n 'labels' => $labels,\\n 'supports' => array( 'title', 'editor', 'thumbnail' ),\\n 'taxonomies' => array( 'category', 'post_tag' ),\\n 'hierarchical' => false,\\n 'public' => true,\\n 'show_ui' => true,\\n 'show_in_menu' => true,\\n 'menu_position' => 5,\\n 'show_in_admin_bar' => true,\\n 'show_in_nav_menus' => true,\\n 'can_export' => true,\\n 'has_archive' => true,\\n 'menu_icon' => 'dashicons-schedule',\\n 'exclude_from_search' => false,\\n 'publicly_queryable' => true,\\n 'capability_type' => 'page',\\n );\\n register_post_type( 'Portafolio', $args );\\n\\n}\",\n \"function flatsome_before_blog_comments(){\\n if(get_theme_mod('blog_after_post')){\\n echo '
    '.do_shortcode(get_theme_mod('blog_after_post')).'
    ';\\n }\\n}\",\n \"function accouk_display_post_meta() {\\n\\n global $main_category;\\n echo '
    Published on '; the_date();\\n echo ' in ' . $main_category['name'] . '
    ';\\n\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.69495827","0.68045604","0.6665211","0.665168","0.66338897","0.6533469","0.6522628","0.6516861","0.651139","0.6507036","0.6497266","0.6439877","0.6439621","0.6423347","0.63677406","0.6331029","0.6309264","0.6308797","0.6287056","0.6278254","0.62667036","0.6253012","0.62526643","0.625068","0.6243409","0.6243323","0.6240014","0.6238617","0.623136","0.62246543","0.62144893","0.62063336","0.6201299","0.6199682","0.6195171","0.6191782","0.6190615","0.61795264","0.6177848","0.61744535","0.6168643","0.61639255","0.6136653","0.61273116","0.61229944","0.61224735","0.6115255","0.611036","0.6106964","0.6098969","0.60954607","0.60937655","0.60828286","0.6071302","0.606869","0.6068235","0.6057004","0.60520834","0.6047743","0.603992","0.6037382","0.60357434","0.60289997","0.6016994","0.6013399","0.6011683","0.60092276","0.60059786","0.60048515","0.600036","0.59901756","0.5988175","0.5986292","0.5981983","0.59811836","0.59750444","0.59731305","0.59681135","0.5961696","0.5952319","0.595124","0.59510314","0.5950729","0.5943548","0.5943274","0.59404534","0.5938502","0.5938468","0.59379","0.59328926","0.5930267","0.5929742","0.59287214","0.5928383","0.59255195","0.5925285","0.59247","0.5921934","0.5921724","0.59184575","0.59160244"],"string":"[\n \"0.69495827\",\n \"0.68045604\",\n \"0.6665211\",\n \"0.665168\",\n \"0.66338897\",\n \"0.6533469\",\n \"0.6522628\",\n \"0.6516861\",\n \"0.651139\",\n \"0.6507036\",\n \"0.6497266\",\n \"0.6439877\",\n \"0.6439621\",\n \"0.6423347\",\n \"0.63677406\",\n \"0.6331029\",\n \"0.6309264\",\n \"0.6308797\",\n \"0.6287056\",\n \"0.6278254\",\n \"0.62667036\",\n \"0.6253012\",\n \"0.62526643\",\n \"0.625068\",\n \"0.6243409\",\n \"0.6243323\",\n \"0.6240014\",\n \"0.6238617\",\n \"0.623136\",\n \"0.62246543\",\n \"0.62144893\",\n \"0.62063336\",\n \"0.6201299\",\n \"0.6199682\",\n \"0.6195171\",\n \"0.6191782\",\n \"0.6190615\",\n \"0.61795264\",\n \"0.6177848\",\n \"0.61744535\",\n \"0.6168643\",\n \"0.61639255\",\n \"0.6136653\",\n \"0.61273116\",\n \"0.61229944\",\n \"0.61224735\",\n \"0.6115255\",\n \"0.611036\",\n \"0.6106964\",\n \"0.6098969\",\n \"0.60954607\",\n \"0.60937655\",\n \"0.60828286\",\n \"0.6071302\",\n \"0.606869\",\n \"0.6068235\",\n \"0.6057004\",\n \"0.60520834\",\n \"0.6047743\",\n \"0.603992\",\n \"0.6037382\",\n \"0.60357434\",\n \"0.60289997\",\n \"0.6016994\",\n \"0.6013399\",\n \"0.6011683\",\n \"0.60092276\",\n \"0.60059786\",\n \"0.60048515\",\n \"0.600036\",\n \"0.59901756\",\n \"0.5988175\",\n \"0.5986292\",\n \"0.5981983\",\n \"0.59811836\",\n \"0.59750444\",\n \"0.59731305\",\n \"0.59681135\",\n \"0.5961696\",\n \"0.5952319\",\n \"0.595124\",\n \"0.59510314\",\n \"0.5950729\",\n \"0.5943548\",\n \"0.5943274\",\n \"0.59404534\",\n \"0.5938502\",\n \"0.5938468\",\n \"0.59379\",\n \"0.59328926\",\n \"0.5930267\",\n \"0.5929742\",\n \"0.59287214\",\n \"0.5928383\",\n \"0.59255195\",\n \"0.5925285\",\n \"0.59247\",\n \"0.5921934\",\n \"0.5921724\",\n \"0.59184575\",\n \"0.59160244\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":450,"cells":{"query":{"kind":"string","value":"Display only sticky posts"},"document":{"kind":"string","value":"function be_display_only_sticky_posts( $args, $atts ) {\n\t$sticky_variations = array( 'sticky_posts', 'sticky-posts', 'sticky posts' );\n\tif( !empty( $atts['id'] ) && in_array( $atts['id'], $sticky_variations ) ) {\n\t\t$sticky_posts = get_option( 'sticky_posts' );\n\t\t$args['post__in'] = $sticky_posts;\n\t}\n\tif( !empty( $atts['exclude'] ) && in_array( $atts['exclude'], $sticky_variations ) ) {\n\t\t$sticky_posts = get_option( 'sticky_posts' );\n\t\t$args['post__not_in'] = $sticky_posts;\n\t}\n\t\n\treturn $args;\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function onlyStickyPosts()\r\n{\r\n\t$sticky = get_option('sticky_posts');\r\n\t// check if there are any\r\n\tif (!empty($sticky)) {\r\n\t\t// optional: sort the newest IDs first\r\n\t\trsort($sticky);\r\n\t\t// override the query\r\n\t\t$args = array(\r\n\t\t\t'post__in' => $sticky\r\n\t\t);\r\n\t\tquery_posts($args);\r\n\t\t// the loop\r\n\t\twhile (have_posts()) {\r\n\t\t\tthe_post();\r\n\t\t\t// your code\r\n\t\t\tget_template_part('article');\r\n\t\t}\r\n\t}\r\n\twp_reset_query();\r\n}","function wpb_latest_sticky() { \n\n/* Get all sticky posts */\n$sticky = get_option( 'sticky_posts' );\n\n/* Sort the stickies with the newest ones at the top */\nrsort( $sticky );\n\n/* Get the 5 newest stickies (change 5 for a different number) */\n$sticky = array_slice( $sticky, 0, 5 );\n\n/* Query sticky posts */\n$the_query = new WP_Query( array( 'post__in' => $sticky, 'ignore_sticky_posts' => 2 ) );\n// The Loop\nif ( $the_query->have_posts() ) {\n\t$return = '
      ';\n\twhile ( $the_query->have_posts() ) {\n\t\t$the_query->the_post();\n\t\t$return .= '
    • ' . get_the_title() . '
      ' . get_the_excerpt(). '
    • ';\n\t\t\n\t}\n\t$return .= '
    ';\n\t\n} else {\n\t// no posts found\n}\n/* Restore original Post Data */\nwp_reset_postdata();\n\nreturn $return; \n\n}","function areThereStickyPosts()\r\n{\r\n\t$sticky = get_option('sticky_posts');\r\n\t// check if there are any\r\n\treturn !empty($sticky) ? true : false;\r\n}","function simpleTheme_blog_loop() {\n\n $loop = new WP_Query( array( 'post__in' => get_option('sticky_posts') ) );\n echo '
      ';\n while ( $loop->have_posts() ) : $loop->the_post();\n echo '
    • ' . get_the_title() . '';\n simpleTheme_date();\n echo '
    • ';\n endwhile;\n echo '
    ';\n\n}","public function showsticky() {\n }","function is_sticky() {\n\tglobal $discussion;\n\treturn $discussion['sticky'];\n}","function getSticky()\n {\n \t$query = 'SELECT t.id, t.post_subject, t.topic_type, t.hits, ' .\n \t\t\t\t't.forum_id, t.post_time, t.post_user, t.post_username ' .\n \t\t\t'FROM #__ccb_topics AS t ' .\n \t\t\t'WHERE ((t.topic_type = 1 OR t.topic_type = 3) AND (t.hold=0)) ' .\n \t\t\t'ORDER BY t.topic_type, t.post_time DESC ';\n\n\t\t$sticky = ($sticky = $this->_getList($query))? $sticky :array();\n\n\t\treturn $sticky;\n }","function ppo_posted_on() {\n if ( is_sticky() && is_home() && ! is_paged() ) {\n echo '' . __( 'Sticky post', SHORT_NAME ) . '';\n }\n\n // Set up and print post meta information.\n printf( ' %5$s',\n esc_url( get_permalink() ),\n esc_attr( get_the_date( 'c' ) ),\n esc_html( get_the_date() ),\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n get_the_author()\n );\n}","public function homepage_ignore_sticky( $query ) {\n\t\t\tif ( $query->is_front_page() && $query->is_main_query() ) {\n\t\t\t\t$query->set( 'ignore_sticky_posts', 1 );\n\t\t\t}\n\t\t}","function cc_get_sticky_page() {\n\tglobal $wpdb;\n\n\t$query = \"\n\t\tSELECT posts.*\n\t\tFROM $wpdb->posts posts, $wpdb->postmeta postmeta\n\t\tWHERE posts.ID = postmeta.post_id\n\t\tAND postmeta.meta_key = 'show_on_index'\n\t\tAND postmeta.meta_value = 'yes'\n\t\tAND posts.post_status = 'publish'\n\t\tAND posts.post_type = 'page'\n\t\tORDER BY posts.post_date ASC LIMIT 1\";\n\t$page = $wpdb->get_row ($query);\n\n\treturn $page;\n}","function thinkup_input_sticky() {\n\tprintf( '' . esc_html__( 'Sticky', 'ESTSB' ) . '',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_title() )\n\t);\n}","public function isSticky()\n {\n return $this->sticky;\n }","function horizon_theme_posted_on() {\n\t\tif ( is_sticky() && is_home() && ! is_paged() ) {\n\t\t\techo '' . __( 'Sticky', 'horizon-theme' ) . ' ';\n\t\t}\n\n\t\t// Set up and print post meta information.\n\t\tprintf( '%s %s %s.',\n\t\t\t__( 'Posted in', 'horizon-theme' ),\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\t__( 'by', 'horizon-theme' ),\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tget_the_author()\n\t\t);\n\t}","function post_pagination($query)\r\n{\r\n\t$sticky = get_option('sticky_posts');\r\n\tif ($query->is_home() && $query->is_main_query()) {\r\n\t\t$query->set('posts_per_page', '5');\r\n\t\t$query->set('post__not_in', get_option('sticky_posts'));\r\n\t}\r\n}","public function getIsSticky()\n {\n return $this->isSticky;\n }","public static function get_sticky_data()\n {\n /**\n * Put all results in the response array.\n */\n $response = [];\n\n /**\n * \n */\n $sticky = [\n 'id' => 0,\n 'title' => 'Uitgelicht',\n 'items' => [],\n 'hasMore' => false\n ];\n\n /**\n * Get all fragments with the sticky meta.\n */\n $args = [\n 'post_type' => 'fragment',\n 'post_status' => 'publish',\n 'posts_per_page' => -1,\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'meta_query' => [\n [\n 'key' => 'fragment_sticky',\n 'value' => 1,\n 'compare' => '='\n ]\n ]\n ];\n\n $query = new \\WP_Query($args);\n if ($query->have_posts()) {\n while ($query->have_posts()) {\n $query->the_post();\n\n $fragment_id = get_the_id();\n $audio_file = get_field('fragment_audio_file');\n $still = get_field('fragment_still');\n\n $title = apply_filters('the_title', get_the_title());\n $title = html_entity_decode($title);\n\n /**\n * Only append items that have valid audio files.\n */\n if ($audio_file) {\n $sticky['items'][] = [\n 'id' => 'sticky-' . $fragment_id,\n 'title' => $title,\n 'category' => 0,\n 'thumbnail' => [\n '@1x' => $still['sizes']['fragment-thumbnail@1x'],\n 'alt' => $still['alt']\n ],\n 'audio' => [\n 'url' => $audio_file['url'],\n 'mimeType' => $audio_file['mime_type']\n ]\n ];\n }\n }\n\n wp_reset_postdata();\n }\n\n $response[] = $sticky;\n return $response;\n }","public function index() {\n \n if (!Auth::check()) {\n return Redirect::to('login');\n }\n\n $results = Sticky::where('user_id', '=', Auth::user()->id)\n ->orderBy('id', 'DESC')\n ->skip(0)\n ->take(8)\n ->get();\n $count = Sticky::where('user_id', '=', Auth::user()->id)\n ->count();\n \n $this->layout->content = View::make('sticky.show')\n ->with(array('results'=>$results,'count'=>$count));\n }","function ridizain_has_featured_posts() {\r\n\treturn ! is_paged() && (bool) ridizain_get_featured_posts();\r\n}","function sticky_class($post_id = \\null)\n {\n }","function tptn_pop_posts( $daily = false , $widget = false ) {\r\n\tglobal $wpdb, $siteurl, $tableposts, $id;\r\n\tif ($daily) $table_name = $wpdb->prefix . \"top_ten_daily\"; \r\n\t\telse $table_name = $wpdb->prefix . \"top_ten\";\r\n\t$tptn_settings = tptn_read_options();\r\n\t$limit = $tptn_settings['limit'];\r\n\r\n\tif (!$daily) {\r\n\t\t$sql = \"SELECT postnumber, cntaccess as sumCount, ID, post_type, post_status, post_content \";\r\n\t\t$sql .= \"FROM $table_name INNER JOIN \". $wpdb->posts .\" ON postnumber=ID \" ;\r\n\t\tif ($tptn_settings['exclude_pages']) $sql .= \"AND post_type = 'post' \";\r\n\t\t$sql .= \"AND post_status = 'publish' \";\r\n\t\t$sql .= \"ORDER BY sumCount DESC LIMIT $limit\";\r\n\t} else {\r\n\t\t$daily_range = $tptn_settings[daily_range] - 1;\r\n\t\t$current_time = gmdate( 'Y-m-d', ( time() + ( get_option( 'gmt_offset' ) * 3600 ) ) );\r\n\t\t$current_date = strtotime ( '-'.$daily_range. ' DAY' , strtotime ( $current_time ) );\r\n\t\t$current_date = date ( 'Y-m-j' , $current_date );\r\n\t\t\r\n\t\t$sql = \"SELECT postnumber, SUM(cntaccess) as sumCount, dp_date, ID, post_type, post_status, post_content \";\r\n\t\t$sql .= \"FROM $table_name INNER JOIN \". $wpdb->posts .\" ON postnumber=ID \" ;\r\n\t\tif ($tptn_settings['exclude_pages']) $sql .= \"AND post_type = 'post' \";\r\n\t\t$sql .= \"AND post_status = 'publish' AND dp_date >= '$current_date' \";\r\n\t\t$sql .= \"GROUP BY postnumber \";\r\n\t\t$sql .= \"ORDER BY sumCount DESC LIMIT $limit\";\r\n\t}\r\n\t$results = $wpdb->get_results($sql);\r\n\t$output = '';\r\n\r\n\tif (!$widget) {\r\n\t\tif (!$daily) {\r\n\t\t\t$output .= '
    '.$tptn_settings['title'];\r\n\t\t} else {\r\n\t\t\t$output .= '';\r\n\r\n\treturn $output;\r\n}","function tptn_show_pop_posts() {\r\n\techo tptn_pop_posts(false,false);\r\n}","function have_posts()\n {\n }","function wp_bottom_featured_bar_post() {\n global $post;\n // show only if the post type is a blog post\n if($post && $post->post_type != \"post\")\n return null;\n\n // load categories \n $categories = wp_get_post_categories($post->ID);\n $args = array( 'posts_per_page' => 5, 'orderby' => 'rand', 'exclude' => $post->ID ); \n\n if ( $count = count($categories) > 0 ) {\n if ( $count == 1 && $categories[0] == 1) {\n // ignore the filter.\n } else {\n $args['category'] = implode($categories, \",\");\n }\n }\n\n $rand_posts = get_posts( $args );\n\n return $rand_posts[0];\n}","function otm_show_featured_posts() {\n\n\t$my_query = new WP_Query( array( \n\t\t'meta_key' \t\t\t\t=> 'is_featured',\n\t\t'post_type'\t\t\t\t=> 'post',\n\t\t'meta_value'\t\t\t=> true,\n\t\t'numberposts' \t\t=> 3\n\t) );\n\n\t// If our query has posts\n\tif ( $my_query->have_posts() ) :\n\t\twhile ( $my_query->have_posts() ) : $my_query->the_post();\n\n\t\t\t// Get specific template-part\n\t\t\tget_template_part( 'template-parts/post/content-featured' );\n\n\t\tendwhile;\n\tendif;\n\n\twp_reset_query();\n}","function tptn_show_daily_pop_posts() {\r\n\tglobal $tptn_url;\r\n\t$tptn_settings = tptn_read_options();\r\n\tif ($tptn_settings['d_use_js']) {\r\n\t\techo '';\r\n\t} else {\r\n\t\techo tptn_pop_posts(true,false);\r\n\t}\r\n}","public function show() {\n $skip=Input::get('limit');\n $take=3;\n $results = Sticky::where('user_id', '=', Auth::user()->id)\n ->orderBy('id', 'DESC')\n ->skip($skip)\n ->take($take)\n ->get();\n \n return View::make('sticky.scroll')\n ->with('results', $results);\n }","function show_posts(\n $thread, $forum, $start, $postid, $sort_style, $filter, $logged_in_user\n) {\n $n = 1;\n\n $num_to_show = 20;\n if ($logged_in_user && $logged_in_user->prefs->display_wrap_postcount > 0) {\n $num_to_show = $logged_in_user->prefs->display_wrap_postcount;\n }\n\n // let moderators see all posts, including hidden ones\n //\n if (is_moderator($logged_in_user, $forum)) {\n $show_hidden = true;\n } else {\n $show_hidden = false;\n }\n\n $posts = get_thread_posts($thread->id, $sort_style, $show_hidden);\n\n $latest_viewed = 0;\n $forum_log = null;\n if ($logged_in_user) {\n $forum_log = BoincForumLogging::lookup($logged_in_user->id, $thread->id);\n if ($forum_log) {\n $latest_viewed = $forum_log->timestamp;\n }\n }\n\n if ($sort_style == CREATE_TIME_OLD) {\n // show the last page\n //\n $nposts = sizeof($posts);\n if ($nposts) $nposts -= 1;\n $page = (int)($nposts/$num_to_show);\n $default_start = $page*$num_to_show;\n } else {\n $default_start = 0;\n }\n\n // jump to a specific post if needed\n //\n $jump_to_post = null;\n if ($start === null) {\n if ($postid) {\n // jump to a specific post\n //\n $i = 0;\n foreach ($posts as $post) {\n if ($post->id == $postid) {\n $start = $i - ($i % $num_to_show);\n $jump_to_post = $post;\n break;\n }\n $i++;\n }\n if ($start === null) {\n echo \"Post $postid not found.\";\n return;\n }\n } else if ($logged_in_user && $logged_in_user->prefs->jump_to_unread) {\n // jump to the first unread post\n //\n $i = 0;\n $ibest = 0;\n foreach ($posts as $post) {\n if ($post->timestamp > $latest_viewed) {\n if (!$jump_to_post || ($post->timestamp < $jump_to_post->timestamp)) {\n $jump_to_post = $post;\n $ibest = $i;\n }\n }\n $i++;\n }\n if ($jump_to_post) {\n $start = $ibest - ($ibest % $num_to_show);\n } else {\n $start = $default_start;\n }\n } else {\n $start = $default_start;\n }\n }\n\n $page_nav = page_links(\n \"forum_thread.php?id=$thread->id&sort_style=$sort_style\",\n sizeof($posts),\n $num_to_show,\n $start\n );\n\n echo $page_nav;\n\n $num_shown = 0;\n $num_skipped = 0;\n $headings = array(array(tra(\"Author\"),\"authorcol\"), array(tra(\"Message\"),\"\"));\n start_forum_table($headings, \"id=\\\"thread\\\" cellspacing=0\");\n\n $latest_shown_timestamp = 0;\n foreach ($posts as $post) {\n if ($num_skipped < $start) {\n $num_skipped++;\n continue;\n }\n if ($num_shown == $num_to_show) {\n break;\n }\n show_post(\n $post, $thread, $forum, $logged_in_user, $latest_viewed, $n,\n FORUM_CONTROLS, $filter\n );\n $n = ($n+1)%2;\n \n if ($post->timestamp > $latest_shown_timestamp) {\n $latest_shown_timestamp = $post->timestamp;\n }\n $num_shown++;\n }\n end_table();\n echo $page_nav;\n\n if ($jump_to_post) {\n echo \"\";\n } else {\n echo \"\";\n }\n\n if ($logged_in_user) {\n if (!$forum_log || $latest_shown_timestamp > $forum_log->timestamp) {\n BoincForumLogging::replace(\n $logged_in_user->id, $thread->id, $latest_shown_timestamp\n );\n }\n }\n}","function twentyfourteen_has_featured_posts() {\n\treturn ! is_paged() && (bool) twentyfourteen_get_featured_posts();\n}","function twentyfourteen_has_featured_posts() {\n\treturn ! is_paged() && (bool) twentyfourteen_get_featured_posts();\n}","function wpex_has_sticky_header() {\n\n\t// Disable for custom header and in VC Live editor\n\tif ( wpex_has_custom_header() || wpex_vc_is_inline() ) {\n\t\treturn;\n\t}\n\n\t// Disabled by default\n\t$return = false;\n\n\t// Get current post id\n\t$post_id = wpex_get_current_post_id();\n\n\t// Check meta first it should override any filter!\n\tif ( $post_id && 'disable' == get_post_meta( $post_id, 'wpex_sticky_header', true ) ) {\n\t\treturn false;\n\t}\n\n\t// Get header style\n\t$header_style = wpex_header_style( $post_id );\n\n\t// Return true if header is not disabled and header style is either 1 or 2\n\tif ( 'disabled' != wpex_sticky_header_style() && ( 'one' == $header_style || 'five' == $header_style ) ) {\n\t\t$return = true;\n\t}\n\n\t// No sticky header for the vertical header\n\tif ( 'six' == $header_style ) {\n\t\t$return = false;\n\t}\n\n\t// Apply filters and return\n\treturn apply_filters( 'wpex_has_fixed_header', $return );\n\n}","function oppen_pre_get_posts($query) {\n /*if ($_GET['infinity'] === 'scrolling' && !$query->is_category('blogg')) {\n return;\n }*/\n\n // If we're in the admin, don't modify the query\n if (is_admin()) {\n return;\n }\n\n // If we're on the front page, fetch the 3 latest blog posts\n if ($query->is_home() && $query->is_main_query()) {\n $query->set('is_category_blog', true);\n $query->set('category_name', 'blogg');\n $query->set('showposts', 3);\n return;\n }\n\n // If we're on the blog category page, increase the post\n // limit to 90 posts and order descending by date.\n if (!$query->is_home() && $query->is_category('blogg')) {\n $query->set('showposts', 9);\n $query->set('orderby', 'date');\n $query->set('order', 'desc');\n } else {\n // Otherwise, order ascending by title\n $query->set('orderby', 'title');\n $query->set('order', 'asc');\n }\n}","function hkr_skip_featured_post() {\n global $post, $_hkr_displayed_ids;\n\n if ( in_array($post->ID, $_hkr_displayed_ids) ) {\n the_post(); // advance to the next post\n }\n}","function getPublishedPostsOnly() {\n\tglobal $conn;\n\t$sql = \"SELECT * FROM posts WHERE published=true order by created_at DESC LIMIT 3\";\n\t$result = mysqli_query($conn, $sql);\n\n\t// fetch all posts as an associative array called $posts\n\t$posts = mysqli_fetch_all($result, MYSQLI_ASSOC);\n\t$final_posts = array();\n\tforeach ($posts as $post) {\n\t\t$post['topic'] = getPostTopic($post['id']); \n\t\tarray_push($final_posts, $post);\n\t}\n\treturn $final_posts;\n}","function broadcast_content() {\n\t// Always print broadcast title\n\tbroadcast_archive_title();\n\t\n\tif ( have_posts() ) : \n\t\n\t\t/* Start the Loop */ \n\n\t\t// Set variable for first post\n\t\t$first_post = true;\n\n\t\t// Get paged variable\n\t\t$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;\n\n\t\twhile ( have_posts() ) : the_post();\n\n\t\t\t// Is it a specialpost?\n\t\t\t$specialpost = ( 1 === (int) get_post_meta( get_the_ID(), 'rabe_specialpost', true ) ) ? true : false;\n\t\t\t\n\t\t\t// Is it really first post on first page? Open a div with first-post class\n\t\t\tif ( $first_post && 1 === $paged ) {\n\t\t\t\t$first_post_div = true;\n\t\t\t\techo '
    ';\t\t\t\n\t\t\t} else {\n\t\t\t\t$first_post_div = false;\n\t\t\t}\n\t\t\t\n\t\t\t?>\n\t\t\t
    >\n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t\n\t\t\t\t\t
    >\n\t\t\t\t\t\t\n\t\t\t\t\t
    ';\n\t\t\t\t\tget_template_part( 'partials/entry', 'title' );\n\t\t\t\t\techo '';\n\t\t\t\t// Normal posts\n\t\t\t\t} else {\n\t\t\t\t\tdo_action( 'omega_before_entry' );\n\t\t\t\t\tdo_action( 'omega_entry' );\n\t\t\t\t\tdo_action( 'omega_after_entry' );\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t\t
    \n\t\t\t\t
    \n\t\t\t
    \n\t\t\t
    \n\t\t\t';\n\t\t\t}\n\t\t\t\n\t\tendwhile; \n\t\t\n\t\tdo_action( 'omega_after_loop'); \n\tendif; \n}","function cosmetro_sticky_label() {\n\n\tif ( ! is_sticky() || ! is_home() || is_paged() ) {\n\t\treturn;\n\t}\n\n\t$sticky_label = get_theme_mod( 'blog_sticky_label' );\n\n\tif ( empty( $sticky_label ) ) {\n\t\treturn;\n\t}\n\n\tprintf( '%s', cosmetro_render_icons( $sticky_label ) );\n}","private function unsetStickyArticle()\n {\n\t\t$articles = $this->model->getArticles()->where('sticky', TRUE);\n\t\tforeach ($articles as $article) {\n\t\t\t$this->model->getArticles()->find($article->id)->update(array('sticky' => 0));\n\t\t}\n }","function wgom_top_featured_posts($pinned_categories, $featured_tags) {\n\t// Query for last Cup of Coffee post (catid = 5) and Video post\n\t// (catid = 22).\n\t//$pinned_categories = array(5, 22);\n\n\t$pinned_categories_sql = implode(', ', $pinned_categories);\n\t$category_posts = array();\n\tforeach ($pinned_categories as $catid) {\n\t\t$post = get_posts(array(\n\t\t\t'fields' => 'ids',\n\t\t\t'numberposts' => 1,\n\t\t\t'category' => $catid,\n\t\t\t'orderby' => 'post_date',\n\t\t\t'order' => 'DESC',\n\t\t));\n\t\tif ($post) {\n\t\t\t$category_posts[] = $post[0];\n\t\t}\n\t}\n\n\t// Map the tag names to IDs. The get_posts function needs the tag ID.\n\t$featured_tag_ids = array();\n\t// Return sticky post ids if no tag name is set.\n\tforeach ($featured_tags as $tag_name => $num_posts) {\n\t\t$term = get_term_by('name', $tag_name, 'post_tag');\n\t\tif ($term) {\n\t\t\t$featured_tag_ids[$term->term_id] = $num_posts;\n\t\t}\n\t}\n\n\t$featured_tag_posts = array();\n\t// Query for featured tag posts.\n\tforeach ($featured_tag_ids as $featured_tag => $num_posts) {\n\t\t$tag_posts = get_posts( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'numberposts' => $num_posts,\n\t\t\t'orderby' => 'post_date',\n\t\t\t'order' => 'DESC',\n\t\t\t'tax_query' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'field' => 'term_id',\n\t\t\t\t\t'taxonomy' => 'post_tag',\n\t\t\t\t\t'terms' => $featured_tag,\n\t\t\t\t),\n\t\t\t),\n\t\t) );\n\n\t\t$featured_tag_posts = array_merge($featured_tag_posts, $tag_posts);\n\t}\n\n\t$pinned_row_ids = array_merge($category_posts, $featured_tag_posts);\n\treturn $pinned_row_ids;\n}","public function mostRecentPostsForSidebar()\n {\n return $this->where(['status' => 'active'])\n ->order(['date_created' => 'DESC'])\n ->limit(10);\n }","function delivery_pre_get_posts( $query ) {\n\n\t// Bail if not home or not main query.\n\tif ( ! $query->is_home() || ! $query->is_main_query() ) {\n\t\treturn;\n\t}\n\n\t$page_on_front = get_option( 'page_on_front' );\n\n\t// Bail if the blog page is not the front page.\n\tif ( ! empty( $page_on_front ) ) {\n\t\treturn;\n\t}\n\n\t// Get the tag.\n\t$featured = get_theme_mod( 'delivery_featured_posts', 'featured' );\n\n\t// Bail if no featured posts.\n\tif ( ! $featured ) {\n\t\treturn;\n\t}\n\n\t// Get the tag name.\n\t$exclude = get_term_by( 'name', $featured, 'post_tag' );\n\n\t// Exclude the main query.\n\tif ( ! empty( $exclude ) ) {\n\t\t$query->set( 'tag__not_in', $exclude->term_id );\n\t}\n\n}","function ridizain_get_featured_posts() {\r\n\t/**\r\n\t * Filter the featured posts to return in Ridizain.\r\n\t *\r\n\t * @since Ridizain 1.0\r\n\t *\r\n\t * @param array|bool $posts Array of featured posts, otherwise false.\r\n\t */\r\n\treturn apply_filters( 'ridizain_get_featured_posts', array() );\r\n}","function block_core_calendar_has_published_posts()\n {\n }","function caldol_no_replies_bbpress_topics_shortcode() {\n\n\t?>\n\n\n\n

    Discussions with No Replies. Be the first to jump in!

    \n\n 0, 'show_stickies' => false, 'order' => 'DESC', 'meta_key' => '_bbp_reply_count', 'orderby' => 'post_date', 'meta_value' => '0', 'meta_compare' => '=', 'post_parent' => 'any', 'posts_per_page' => 10 ) ) )\n\nbbp_get_template_part( 'bbpress/loop', 'topics' );\n\n?>\n\n\n\ncurrent_post + 1 < $wp_query->post_count;\n}","function ajan_use_embed_in_forum_posts() {\n\treturn apply_filters( 'ajan_use_embed_in_forum_posts', !defined( 'AJAN_EMBED_DISABLE_FORUM_POSTS' ) || !AJAN_EMBED_DISABLE_FORUM_POSTS );\n}","public function woo_single_product_sticky() {\n\n\t\t\tif ( ! astra_get_option( 'single-product-sticky-summary' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tadd_action( 'woocommerce_before_single_product_summary', array( $this, 'sticky_content_wrapper_start' ), 10 );\n\t\t\tadd_action( 'woocommerce_after_single_product_summary', array( $this, 'sticky_content_wrapper_end' ), 9 );\n\t\t}","function otm_get_featured_posts() {\n\n\t$my_query = new WP_Query( array( \n\t\t'meta_key' \t\t\t\t=> 'is_featured',\n\t\t'post_type'\t\t\t\t=> 'post',\n\t\t'meta_value'\t\t\t=> true,\n\t\t'numberposts' \t\t=> 3\n\t) );\n\n\t// If our query has posts\n\tif ( $my_query->have_posts() ) :\n\t\treturn true;\n\t\twp_reset_query();\n\telse :\n\t\twp_reset_query();\n\t\treturn;\n\tendif;\n}","public function is_posts_page() {\n return ( is_home() && 'page' == get_option( 'show_on_front' ) );\n }","public function toggleStickinessObject()\n\t{\n\t\tglobal $ilAccess;\n\t\t\n\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t{\n\t\t\tif ($this->objCurrentTopic->isSticky())\n\t\t\t{\n\t\t\t\t$this->objCurrentTopic->unmakeSticky();\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->objCurrentTopic->makeSticky();\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->viewThreadObject();\n\t\t\n\t\treturn true;\n\t}","function more_posts() {\n global $wp_query; // following the current one\n return $wp_query->current_post + 1 < $wp_query->post_count;\n}","function ind_pre_get_posts(&$query) {\r\n\tif (\r\n\t\tisset( $query->query_vars['post_status'] ) && $query->query_vars['post_status'] == 'draft'\r\n\t\t&& isset( $query->query_vars['post_type'] ) && $query->query_vars['post_type'] == 'post'\r\n\t\t&& isset( $query->query_vars['author'] ) && $query->query_vars['author'] == $GLOBALS['current_user']->ID\r\n\t\t&& isset( $query->query_vars['posts_per_page'] ) && $query->query_vars['posts_per_page'] == 5\r\n\t\t&& isset( $query->query_vars['orderby'] ) && $query->query_vars['orderby'] == 'modified'\r\n\t\t&& isset( $query->query_vars['order'] ) && $query->query_vars['order'] == 'DESC'\r\n\t\t) {\r\n\t\t// show all post types\r\n\t\t$query->query_vars['post_type'] = 'any';\r\n\t\t// show 10 drafts\r\n\t\t$query->query_vars['posts_per_page'] = 10;\r\n\t\t// if admin or editor, show drafts of all users\r\n\t\tif ( current_user_can( 'administrator' ) || current_user_can( 'editor' ) ) {\r\n\t\t\tunset( $query->query_vars['author'] );\r\n\t\t}\r\n\t}\r\n\r\n\tif ( $query->is_admin ) return;\r\n\r\n\tif ( !$query->is_main_query() ) return;\r\n\r\n\tif (!empty($query->query['post_type']) && ( $query->query['post_type'] == 'memberlevel' ) ) return;\r\n\r\n\tif ( $query->is_search ) {\r\n\t\t$query->set( 'posts_per_page', -1);\r\n\t \tif ( ! empty( $query->query_vars['filter'] ) ) {\r\n\t \t\t$query->set( 'post_type', $query->query_vars['filter'] );\r\n\t\t\tunset( $query->query['filter'] );\r\n \t\t} else if ( !empty( $_GET['filter'] ) ) {\r\n\t\t\t$query->set( 'post_type', $_GET['filter'] );\r\n\t \t} else {\r\n\t\t\t$query->set( 'post_type', array( 'hotel', 'restaurant', 'shop', 'activity', 'itinerary', 'library', 'article', 'offer', 'insidertrip' ) );\r\n\t\t}\r\n\t}\r\n\r\n\tif ( is_archive() ) {\r\n\t\tif ( !empty($query->query['post_type']) && in_array($query->query['post_type'], array(\r\n\t\t\t\t\t\t'hotel',\r\n\t\t\t\t\t\t'restaurant',\r\n\t\t\t\t\t\t'shop',\r\n\t\t\t\t\t\t'activity',\r\n\t\t\t\t\t\t'offer'\r\n\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t) {\r\n\t\t\t$query->set('orderby', array( 'post_title' => 'ASC' ) );\r\n\r\n\t } else if ( !empty($query->query['post_type']) && $query->query['post_type'] == 'article' && getLastPathSegment($_SERVER['REQUEST_URI']) !== 'features' ) {\r\n\t\t // order articles by reverse date except features page\r\n\t\t$query->set( 'orderby', array( 'date' => 'DESC' ) );\r\n\t }\r\n\t}\r\n}","function has_posts() {\n\tif(($posts = IoC::resolve('posts')) === false) {\n\t\t$params['sortby'] = 'id';\n\t\t$params['sortmode'] = 'desc';\n\t\t\n\t\t$posts = Posts::list_all($params);\n\t\tIoC::instance('posts', $posts, true);\n\t}\n\t\n\treturn $posts->length() > 0;\n}","function block_core_calendar_update_has_published_posts()\n {\n }","function accouk_homepage_latest_posts() {\n\n $args = array('post_type' => 'post', 'category_name' => 'blog', 'posts_per_page' => 4, 'orderby' => 'date', 'order' => 'DESC');\n $query = new WP_Query( $args );\n\n if ( $query->have_posts() ) {\n\n echo '