• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP lnotif函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中lnotif函数的典型用法代码示例。如果您正苦于以下问题:PHP lnotif函数的具体用法?PHP lnotif怎么用?PHP lnotif使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了lnotif函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: md5

                            }
                            $('#' + err_hold).html(resp.error);
                        }
                        else {
                            mw.reload_module('#<?php 
    print $params['id'];
    ?>
');
                        }

                    });
                return false;
            });
        }


        $(document).ready(function () {
            mw.init_comment_form<?php 
    print md5($params['id']);
    ?>
();
        });

    </script>
    <?php 
    if ($template_file != false and is_file($template_file)) {
        include $template_file;
    }
} else {
    print lnotif('Comments posting is disabled from the admin panel');
}
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:index.php


示例2: menu_tree

<?php

/*
type: layout
name: Small
description: Small Navigation
*/
$menu_filter['ul_class'] = 'module-pages-menu module-pages-menu-small';
$menu_filter['maxdepth'] = 1;
$menu_filter['li_class_empty'] = ' ';
$mt = menu_tree($menu_filter);
if ($mt != false) {
    print $mt;
} else {
    print lnotif("There are no items in the menu <b>" . $params['menu-name'] . '</b>');
}
?>
<script>mw.require("<?php 
print $config['url_to_module'];
?>
templates/templates.css", true);</script>


开发者ID:minhkiller,项目名称:microweber,代码行数:21,代码来源:small.php


示例3: array

<?php

$breacrumb_params = array();
if (isset($params['current-page-as-root'])) {
    $breacrumb_params['current-page-as-root'] = $params['current-page-as-root'];
}
$selected_start_depth = get_option('data-start-from', $params['id']);
if ($selected_start_depth) {
    $breacrumb_params['start_from'] = $selected_start_depth;
}
//dd($breacrumb_params);
$data = breadcrumb($breacrumb_params);
$module_template = get_option('data-template', $params['id']);
if ($module_template == false and isset($params['template'])) {
    $module_template = $params['template'];
}
if ($module_template != false) {
    $template_file = module_templates($config['module'], $module_template);
} else {
    $template_file = module_templates($config['module'], 'default');
}
if (is_file($template_file) != false) {
    include $template_file;
} else {
    $template_file = module_templates($config['module'], 'default');
    if (is_file($template_file) != false) {
        include $template_file;
    } else {
        print lnotif("No template found. Please choose template.");
    }
}
开发者ID:microweber,项目名称:microweber,代码行数:31,代码来源:index.php


示例4: index


//.........这里部分代码省略.........
                if (isset($post_params['content_type']) and $post_params['content_type'] == 'product') {
                    $item['prices'] = get_custom_fields("field_type=price&for=content&for_id=" . $item['id']);
                } else {
                    $item['prices'] = false;
                }
                if (isset($item['prices']) and is_array($item['prices']) and !empty($item['prices'])) {
                    $vals2 = array_values($item['prices']);
                    $val1 = array_shift($vals2);
                    $item['price'] = $val1;
                } else {
                    $item['price'] = false;
                }
                if (isset($show_fields) and is_array($show_fields) and !empty($show_fields)) {
                    if (!in_array('title', $show_fields)) {
                        $item['title'] = false;
                    }
                    if (!in_array('description', $show_fields)) {
                        $item['description'] = false;
                    }
                    if (!in_array('created_at', $show_fields)) {
                        $item['created_at'] = false;
                    }
                    if (!in_array('read_more', $show_fields)) {
                        $item['read_more'] = false;
                    }
                    if (!in_array('thumbnail', $show_fields)) {
                        $item['thumbnail'] = false;
                    }
                }
                $data[] = $item;
            }
        } else {
            if (isset($params['is_shop'])) {
                print lnotif('Your products module is empty');
            } elseif (isset($params['global'])) {
                print lnotif('Your content module is empty');
            } else {
                print lnotif('Your posts module is empty');
            }
        }
        $post_params_paging = $post_params;
        $post_params_paging['page_count'] = true;
        $cfg_data_hide_paging = get_option('data-hide-paging', $params['id']);
        if ($cfg_data_hide_paging === false) {
            if (isset($post_params['hide_paging']) and trim($post_params['hide_paging']) != 'false') {
                $post_params['hide-paging'] = $post_params['hide_paging'];
                unset($post_params['hide_paging']);
            }
            if (isset($post_params['hide-paging']) and trim($post_params['hide-paging']) != 'false') {
                $cfg_data_hide_paging = 'y';
                unset($post_params['hide-paging']);
            }
        }
        if ($cfg_data_hide_paging != 'y') {
            $pages_of_posts = get_content($post_params_paging);
            $pages_count = intval($pages_of_posts);
        } else {
            $pages_count = 0;
        }
        $paging_links = false;
        if (intval($pages_count) > 1) {
            //$paging_links = mw()->content_manager->paging_links(false, $pages_count, $paging_param, $keyword_param = 'keyword');
        }
        $read_more_text = get_option('data-read-more-text', $params['id']);
        $add_cart_text = get_option('data-add-to-cart-text', $params['id']);
        if ($add_cart_text == false or $add_cart_text == "Add to cart") {
开发者ID:hyrmedia,项目名称:microweber,代码行数:67,代码来源:Front.php


示例5: lnotif

        ?>
	</ul>
	<?php 
    }
    ?>



	<div id="mw-payment-gateway-selected-<?php 
    print $params['id'];
    ?>
">
        <?php 
    //var_dump($payment_options);
    ?>
        <?php 
    if (isset($payment_options[0])) {
        ?>
		<module type="<?php 
        print $payment_options[0]['gw_file'];
        ?>
"  />
        <?php 
    }
    ?>
	</div>
</div>
<?php 
} else {
    print lnotif("Click here to edit Payment Options");
}
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:index.php


示例6: foreach

<div class="categories-posts categories-posts-big mw-open-module-settings">
  <?php 
if ($cats != false) {
    foreach ($cats as $cat) {
        $latest_product = get_content("order_by=position desc&category=" . $cat['id']);
        if (isset($latest_product[0]) == false) {
            continue;
        }
        $latest_product = $latest_product[0];
        $pic = get_picture($latest_product['id']);
        ?>
  <a href="<?php 
        print category_link($cat['id']);
        ?>
"> <span class="bgimg" style="background-image: url(<?php 
        print thumbnail($pic, 1100, 1100);
        ?>
);"></span> <strong><?php 
        print $cat['title'];
        ?>
</strong> </a>
  <?php 
    }
} else {
    print lnotif('Select category');
}
?>

</div>
开发者ID:Staalkoper,项目名称:templates,代码行数:29,代码来源:big.php


示例7: _e

  </div>
  <h2 style="margin-top:0 " class="edit nodrop" field="checkout_shipping_information_title" rel="global"
            rel_id="<?php 
    print $params['id'];
    ?>
">
    <?php 
    _e("Shipping Information");
    ?>
  </h2>
  <hr/>
  <?php 
    if (isset($shipping_options[0]) and isset($shipping_options[0]['module_base'])) {
        ?>
  <div id="mw-shipping-gateway-selected-<?php 
        print $params['id'];
        ?>
">
    <module type="<?php 
        print $shipping_options[0]['module_base'];
        ?>
"/>
  </div>
  <?php 
    }
    ?>
</div>
<?php 
} else {
    print lnotif("Click here to edit Shipping Options");
}
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:index.php


示例8: trim

    $autoplay = '0';
}
if ($prior != '2' or $prior == false) {
    if ($code != '') {
        $code = trim($code);
        if (stristr($code, '<iframe') !== false) {
            $code = preg_replace('#\\<iframe(.*?)\\ssrc\\=\\"(.*?)\\"(.*?)\\>#i', '<iframe$1 src="$2?wmode=transparent"$3>', $code);
            //print '<div class="mwembed">' . $code . '</div>';
        }
        if (video_module_is_embed($code) == true) {
            print '<div class="mwembed">' . $code . '</div>';
        } else {
            print video_module_url2embed($code, $w, $h, $autoplay);
        }
    } else {
        print lnotif("<div class='video-module-default-view mw-open-module-settings'><img src='" . $config['url_to_module'] . "video.png' /></div>", true);
    }
} else {
    if ($prior == '2') {
        if ($upload != '') {
            if ($autoplay == '0') {
                $autoplay = '';
            } else {
                $autoplay = 'autoplay';
            }
            print '<div class="mwembed "><video controls width="' . $w . '" height="' . $h . '" ' . $autoplay . ' src="' . $upload . '"></video></div>';
        } else {
            print "<div class='video-module-default-view mw-open-module-settings'><img src='" . $config['url_to_module'] . "video.png' /></div>";
        }
    } else {
        print "<div class='video-module-default-view mw-open-module-settings'><img src='" . $config['url_to_module'] . "video.png' /></div>";
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:index.php


示例9: lnotif

}
?>

<div class="mwembed mw-audio" id="<?php 
print $id;
?>
">
        <?php 
if ($audio != '') {
    ?>
            <audio controls src="<?php 
    print $audio;
    ?>
"></audio>
        <?php 
} else {
    ?>
            <?php 
    print lnotif("Upload Audio File or paste URL.");
    ?>
        <?php 
}
?>
</div>






开发者ID:hyrmedia,项目名称:microweber,代码行数:24,代码来源:index.php


示例10: get_quotes

$(document).ready(function() { $('.quotes').quovolver(); });
</script>
<?php 
$data = get_quotes("no_limit=true");
if ($data) {
    ?>
<div id="ezq_<?php 
    print $params['id'];
    ?>
" class="quotes">
    <?php 
    foreach ($data as $item) {
        ?>
        <blockquote>
            <p>"<?php 
        print $item['quote_text'];
        ?>
"</p>
			<p>- <?php 
        print $item['name'];
        ?>
</p>
        </blockquote>
    <?php 
    }
    ?>
</div>
<?php 
} else {
    print lnotif("Edit EZ Quotes");
}
开发者ID:pinecreativelabs,项目名称:EZ-Quotes,代码行数:31,代码来源:index.php


示例11: get_option

$linkedin_url = get_option('linkedin_url', $params['id']);
$social_links_has_enabled = false;
if ($facebook_enabled or $twitter_enabled or $googleplus_enabled or $pinterest_enabled or $youtube_enabled or $linkedin_enabled) {
    $social_links_has_enabled = true;
}
?>

<script>mw.moduleCSS('<?php 
print module_url();
?>
style.css');</script>
<div class="mw-social-links">

   <?php 
if ($social_links_has_enabled == false) {
    print lnotif('Social links');
}
?>


<?php 
if ($facebook_enabled) {
    ?>


    <a href="//facebook.com/<?php 
    print $facebook_url;
    ?>
" target="_blank"><span class="mw-icon-facebook"></span></a>

<?php 
开发者ID:newaltcoin,项目名称:microweber,代码行数:31,代码来源:index.php


示例12: get_option

<?php

$source_code = get_option('source_code', $params['id']);
if (strval($source_code) == '') {
    $source_code = lnotif('Click to insert Embed Code');
}
if ($source_code != false and $source_code != '') {
    print "<div class='mwembed'>" . $source_code . '</div>';
} else {
}
开发者ID:hyrmedia,项目名称:microweber,代码行数:10,代码来源:index.php


示例13: lnotif

        ?>
  <input type="hidden"  name="for" value="<?php 
        print $for;
        ?>
" />
  <input type="hidden"  name="for_id" value="<?php 
        print $for_id;
        ?>
" />
  <?php 
    }
    ?>
  
  <?php 
    if (isset($template_file) and is_file($template_file) != false) {
        ?>
  	<?php 
        include $template_file;
        ?>
  <?php 
    } else {
        ?>
  	<?php 
        print lnotif('No default template for ' . $config['module'] . ' is found');
        ?>
  <?php 
    }
    ?>
</div>
<?php 
}
开发者ID:minhkiller,项目名称:microweber,代码行数:31,代码来源:index.php


示例14: foreach

  <?php 
        }
        ?>
  <?php 
        foreach ($price_fields as $field) {
            ?>
  <?php 
            $prined_items_count++;
            if ($price_fields_c > 1) {
                $field['make_select'] = true;
            }
            ?>
  <?php 
            print mw()->fields_manager->make($field);
            ?>
  <?php 
        }
        ?>
  <?php 
        if ($price_fields_c > 1) {
            ?>
</select>
<?php 
        } else {
        }
    }
} else {
}
if ($prined_items_count == 0) {
    print lnotif("Click on settings to edit your custom fields.");
}
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:default.php


示例15: get_menus

    $params['menu-name'] = $menu_name;
}
if (isset($params['menu-name'])) {
    $menu = get_menus('make_on_not_found=1&one=1&limit=1&title=' . $params['menu-name']);
    if (is_array($menu)) {
        $menu_filter = $params;
        if (!isset($params['ul_class'])) {
            $menu_filter['ul_class'] = 'nav';
        }
        $menu_filter['menu_id'] = intval($menu['id']);
        $module_template = get_option('data-template', $params['id']);
        if ($module_template == false and isset($params['template'])) {
            $module_template = $params['template'];
        }
        if ($module_template != false and trim($module_template) != '' and trim(strtolower($module_template) != 'none')) {
            $template_file = module_templates($config['module'], $module_template);
        } else {
            $template_file = module_templates($config['module'], 'default');
        }
        if (isset($template_file) and $template_file != '' and is_file($template_file) != false) {
            include $template_file;
        } else {
            $template_file = module_templates($config['module'], 'default');
            include $template_file;
        }
    } else {
        print lnotif("Click on settings to edit this menu");
    }
} else {
    print lnotif("Click on settings to edit this menu");
}
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:index.php


示例16: get_option

<?php

$settings = get_option('settings', $params['id']);
$defaults = array('title' => '', 'icon' => '');
$json = json_decode($settings, true);
if ($json == false) {
    print lnotif("Click to edit tabs");
    return;
}
if (isset($json) == false or count($json) == 0) {
    $json = array(0 => $defaults);
}
?>
<script>
    $(document).ready(function () {
        mw.tabs({
            nav: '#mw-tabs-module-<?php 
print $params['id'];
?>
 .mw-ui-btn-nav-tabs a',
            tabs: '#mw-tabs-module-<?php 
print $params['id'];
?>
 .mw-ui-box-tab-content'
        });
    });
</script>

<div id="mw-tabs-module-<?php 
print $params['id'];
?>
开发者ID:hyrmedia,项目名称:microweber,代码行数:31,代码来源:default.php



注:本文中的lnotif函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP load函数代码示例发布时间:2022-05-15
下一篇:
PHP lng_include函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap