Example #1
0
    private void PrepareHowToImportSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();

        YouTubeVideoLinkID = Guid.NewGuid().ToString();
        var link = linkBuilder.GetLink("KcTM0ur0MH4", YouTubeVideoLinkID, GetString("om.contact.importcsv.howto.howtoimportcontacts.link"));

        smrtpHowToImport.Content = string.Format(@"
<h4>{0}</h4>
<div class=""content-block-50"">
    <p>{1}<br />{2}</p>
</div>        
<div class=""content-block-50"">
    <p class=""lead"">{3}</p>
    <ul class=""om-import-csv-list"">
        <li>{4}</li>
        <li>{5}</li>
    </ul>
</div>", GetString("om.contact.importcsv.selectfilestepmessage.main"),
                                                 GetString("om.contact.importcsv.selectfilestepmessage.message"),
                                                 link,
                                                 GetString("om.contact.importcsv.selectfilestepmessage.filerequirements"),
                                                 GetString("om.contact.importcsv.selectfilestepmessage.header"),
                                                 GetString("om.contact.importcsv.selectfilestepmessage.encoding"));

        smrtpHowToImport.ClientIDMode  = ClientIDMode.Static;
        smrtpHowToImport.IsDismissable = false;
    }
Example #2
0
    /// <summary>
    /// Initializes the smart tip with the how to video.
    /// </summary>
    private void InitSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
        var linkID      = Guid.NewGuid().ToString();
        var link        = linkBuilder.GetLink("EGzYxXggueM", linkID, GetString("abtesting.howto.howtoevaluateabtest.link"));

        new MagnificPopupYouTubeJavaScriptRegistrator().RegisterMagnificPopupElement(this, linkID);

        smrtpHowToOverview.Content = string.Format("{0}", link);
        smrtpHowToOverview.DismissedStateIdentifier = "howtovideo|abtest|overview";
    }
Example #3
0
    /// <summary>
    /// Init the smart tip with the how to video.
    /// Shows how to video.
    /// </summary>
    private void InitSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
        var linkID      = Guid.NewGuid().ToString();
        var link        = linkBuilder.GetLink("2wU7rNzC95w", linkID, GetString("abtesting.howto.howtosetupabtest.link"));

        new MagnificPopupYouTubeJavaScriptRegistrator().RegisterMagnificPopupElement(this, linkID);

        smrtpHowToListing.Content = string.Format("<h4>{0}</h4>{1}<br />{2}", GetString("abtesting.howto.howtosetupabtest.title"), GetString("abtesting.howto.howtosetupabtest.text"), link);
        smrtpHowToListing.DismissedStateIdentifier = "howtovideo|abtest|listing";
    }
Example #4
0
    /// <summary>
    /// Initializes the smart tip with the how to video.
    /// </summary>
    private void InitSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
        var linkID      = Guid.NewGuid().ToString();
        var link        = linkBuilder.GetLink("EGzYxXggueM", linkID, GetString("abtesting.howto.howtoevaluateabtest.link"));

        new MagnificPopupYouTubeJavaScriptRegistrator().RegisterMagnificPopupElement(this, linkID);

        tipHowToOverview.Content = string.Format("{0} {1}", GetString("abtesting.howto.howtoevaluateabtest.overview.text"), link);
        tipHowToOverview.CollapsedStateIdentifier = SMART_TIP_IDENTIFIER;
        tipHowToOverview.ExpandedHeader           = GetString("abtesting.howto.howtoevaluateabtest.title");
    }
Example #5
0
    /// <summary>
    /// Initialize the smart tip with the how to video.
    /// Shows how to video.
    /// </summary>
    private void InitSmartTip()
    {
        tipHowToListing.ExpandedHeader = GetString("abtesting.howto.howtosetupabtest.title");

        if (SiteContext.CurrentSite.SiteIsContentOnly)
        {
            tipHowToListing.CollapsedStateIdentifier = SMART_TIP_IDENTIFIER_MVC;
            tipHowToListing.Content = String.Format(GetString("abtesting.howto.howtosetupabtestmvc.text"), DocumentationHelper.GetDocumentationTopicUrl("ab_testing_mvc"));
        }
        else
        {
            var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
            var linkID      = Guid.NewGuid().ToString();
            var link        = linkBuilder.GetLink("2wU7rNzC95w", linkID, GetString("abtesting.howto.howtosetupabtest.link"));

            new MagnificPopupYouTubeJavaScriptRegistrator().RegisterMagnificPopupElement(this, linkID);

            tipHowToListing.CollapsedStateIdentifier = SMART_TIP_IDENTIFIER;
            tipHowToListing.Content = String.Format("{0} {1}", GetString("abtesting.howto.howtosetupabtest.text"), link);
        }
    }
    private void PrepareHowToImportSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
        YouTubeVideoLinkID = Guid.NewGuid().ToString();
        var link = linkBuilder.GetLink("KcTM0ur0MH4", YouTubeVideoLinkID, GetString("om.contact.importcsv.howto.howtoimportcontacts.link"));

        smrtpHowToImport.Content = string.Format(@"
        <h4>{0}</h4>
        <div class=""content-block-50"">
        <p>{1}<br />{2}</p>
        </div>
        <div class=""content-block-50"">
        <p class=""lead"">{3}</p>
        <ul class=""om-import-csv-list"">
        <li>{4}</li>
        <li>{5}</li>
        </ul>
        </div>", GetString("om.contact.importcsv.selectfilestepmessage.main"),
         GetString("om.contact.importcsv.selectfilestepmessage.message"),
         link,
         GetString("om.contact.importcsv.selectfilestepmessage.filerequirements"),
         GetString("om.contact.importcsv.selectfilestepmessage.header"),
         GetString("om.contact.importcsv.selectfilestepmessage.encoding"));

        smrtpHowToImport.ClientIDMode = ClientIDMode.Static;
        smrtpHowToImport.IsDismissable = false;
    }
    /// <summary>
    /// Initializes the smart tip with the how to video.
    /// </summary>
    private void InitSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
        var linkID = Guid.NewGuid().ToString();
        var link = linkBuilder.GetLink("EGzYxXggueM", linkID, GetString("abtesting.howto.howtoevaluateabtest.link"));

        new MagnificPopupYouTubeJavaScriptRegistrator().RegisterMagnificPopupElement(this, linkID);

        smrtpHowToOverview.Content = string.Format("{0}", link);
        smrtpHowToOverview.DismissedStateIdentifier = "howtovideo|abtest|overview";
    }
    /// <summary>
    /// Init the smart tip with the how to video.
    /// Shows how to video.
    /// </summary>
    private void InitSmartTip()
    {
        var linkBuilder = new MagnificPopupYouTubeLinkBuilder();
        var linkID = Guid.NewGuid().ToString();
        var link = linkBuilder.GetLink("2wU7rNzC95w", linkID, GetString("abtesting.howto.howtosetupabtest.link"));

        new MagnificPopupYouTubeJavaScriptRegistrator().RegisterMagnificPopupElement(this, linkID);

        smrtpHowToListing.Content = string.Format("<h4>{0}</h4>{1}<br />{2}", GetString("abtesting.howto.howtosetupabtest.title"), GetString("abtesting.howto.howtosetupabtest.text"), link);
        smrtpHowToListing.DismissedStateIdentifier = "howtovideo|abtest|listing";
    }